sql
stringlengths
6
1.05M
/******************************************************************************/ /* Generated by IBExpert 2008.02.19 19/03/2016 07:52:51 */ /******************************************************************************/ SET SQL DIALECT 3; SET NAMES NONE; CREATE DATABASE 'D:\Projetos\Delphi\phMedNew\BASE.FDB' USER 'SYSDBA' PASSWORD '<PASSWORD>' PAGE_SIZE 4096 DEFAULT CHARACTER SET NONE; /******************************************************************************/ /* Tables */ /******************************************************************************/ CREATE TABLE AGENDA ( IDAGENDA INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDCONVENIO INTEGER, INTERVALO INTEGER, IDENCAIXE SMALLINT NOT NULL, IDURGENTE SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, DATAAGENDA DATE NOT NULL, HORAAGENDA TIME NOT NULL, HORACHEGADA TIME, HORAMANHAINICIAL TIME, HORAMANHAFINAL TIME, HORATARDEINICIAL TIME, HORATARDEFINAL TIME, STATUS VARCHAR(80) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, MOTIVO VARCHAR(80) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, OBSERVACAO VARCHAR(26000) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE BANCO ( IDBANCO INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, BANCO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE CIDADE ( IDCIDADE INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, CIDADE VARCHAR(50) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, UF VARCHAR(2) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE CLINICA ( IDCLINICA INTEGER NOT NULL, IDCIDADE INTEGER, DATAINCLUSAO DATE NOT NULL, NUMERO INTEGER, SMTPPORTA INTEGER, CLINICA VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, ENDERECO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, BAIRRO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, SITECLINICA VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, EMAILCLINICA VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, SMTPSERVIDOR VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, EMAILCLINICASENHA VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE1 VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE2 VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CEP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, FOTOMENUPRINCIPAL BLOB SUB_TYPE 0 SEGMENT SIZE 80, FOTORELATORIO BLOB SUB_TYPE 0 SEGMENT SIZE 80 ); CREATE TABLE CONVENIO ( IDCONVENIO INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, CONVENIO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE DOUTOR ( IDDOUTOR INTEGER NOT NULL, IDCIDADE INTEGER, IDUSUARIO INTEGER, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, NUMERO INTEGER, NOME VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, ENDERECO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, BAIRRO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, EMAIL VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CPF VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, RG VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CELULAR VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CEP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CRM VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, INTERVALO INTEGER NOT NULL, HORAINICIALMANHA VARCHAR(10) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, HORAFINALMANHA VARCHAR(10) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, HORAINICIALTARDE VARCHAR(10) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, HORAFINALTARDE VARCHAR(10) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, FOTODOUTOR BLOB SUB_TYPE 0 SEGMENT SIZE 80 ); CREATE TABLE EXAME ( IDEXAME INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, DESCRICAO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE LOGREPLICACAO ( IDLOGREPLICACAO BIGINT NOT NULL, IDUSARIO INTEGER NOT NULL, DATAACAO DATE NOT NULL, HORAACAO TIME NOT NULL, ACAO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, TELA VARCHAR(200) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, CLASSETELA VARCHAR(200) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, DESCRICAO VARCHAR(500) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE MEDICAMENTO ( IDMEDICAMENTO INTEGER NOT NULL, IDMEDICAMENTOQTDE INTEGER NOT NULL, IDMEDICAMENTOUSO INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, DESCRICAO VARCHAR(400) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, POSOLOGIA VARCHAR(400) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE MEDICAMENTOQTDE ( IDMEDICAMENTOQTDE INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, DESCRICAO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE MEDICAMENTOUSO ( IDMEDICAMENTOUSO INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, DESCRICAO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE PACIENTE ( IDPACIENTE INTEGER NOT NULL, IDCIDADE INTEGER, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE, DATANASCIMENTO DATE, NUMERO INTEGER, ESTADOCIVIL VARCHAR(50) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, SEXO VARCHAR(16) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, OBSERVACAO VARCHAR(26000) CHARACTER SET WIN1252 COLLATE WIN_PTBR, NOME VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, ENDERECO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, BAIRRO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, EMAIL VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, COMPLEMENTO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, RG VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CPF VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE1 VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE2 VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CEP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE PACIENTECONSULTA ( IDPACIENTECONSULTA INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL ); CREATE TABLE PACIENTECONVENIO ( IDPACIENTECONVENIO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDCONVENIO INTEGER NOT NULL, IDPRINCIPAL SMALLINT NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL ); CREATE TABLE PACIENTEEVOLUCAO ( IDPACIENTEEVOLUCAO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, IDRASCUNHO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL, EVOLUCAOCLINICA VARCHAR(26000) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE PACIENTEEXAME ( IDPACIENTEEXAME INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL ); CREATE TABLE PACIENTEEXAMESOLICITADO ( IDPACIENTEEXAMESOLICITADO INTEGER NOT NULL, IDPACIENTEEXAME INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDEXAME INTEGER NOT NULL ); CREATE TABLE PACIENTEFOTO ( IDPACIENTEFOTO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL, OSERVACAO VARCHAR(25000) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE PACIENTEFOTOITEM ( IDPACIENTEFOTOITEM INTEGER NOT NULL, IDPACIENTEFOTO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, FOTODESCRICAO VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, FOTOBINARIO BLOB SUB_TYPE 0 SEGMENT SIZE 80 NOT NULL, OBSERVACAO VARCHAR(26000) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE PACIENTELAUDOOFTALMO ( IDPACIENTELAUDOOFTALMO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, IDAPTO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL, ACUIDADEODCOMCORRECAO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, ACUIDADEOECOMCORRECAO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, ACUIDADEODSEMCORRECAO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, ACUIDADEOESEMCORRECAO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TONOMETRIAOD VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TONOMETRIAOE VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, FUNDOSCOPIAOD VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, FUNDOSCOPIAOE VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE PACIENTEPRESCRICAOLENTE ( IDPACIENTEPRESCRICAOLENTE INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL, LONGEODESF VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEOEESF VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEODCIL VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEOECIL VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEODEIXO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEOEEIXO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEODDP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, LONGEOEDP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOODESF VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOOEESF VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOODCIL VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOOECIL VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOODEIXO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOOEEIXO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOODDP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, PERTOOEDP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, ADICAO VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE PACIENTERECEITUARIO ( IDPACIENTERECEITUARIO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDDOUTOR INTEGER NOT NULL, IDAGENDA INTEGER NOT NULL, DATAINCLUSAO DATE NOT NULL, HORAINCLUSAO TIME NOT NULL ); CREATE TABLE PACIENTERECEITUARIOUSO ( IDPACIENTERECEITUARIOUSO INTEGER NOT NULL, IDPACIENTERECEITUARIO INTEGER NOT NULL, IDPACIENTE INTEGER NOT NULL, IDMEDICAMENTO INTEGER NOT NULL, POSOLOGIA VARCHAR(200) CHARACTER SET WIN1252 COLLATE WIN_PTBR ); CREATE TABLE SECRETARIA ( IDSECRETARIA INTEGER NOT NULL, IDCIDADE INTEGER, IDUSUARIO INTEGER, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, NUMERO INTEGER, NOME VARCHAR(100) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, ENDERECO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, BAIRRO VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, EMAIL VARCHAR(100) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CPF VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, RG VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, TELEFONE VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CELULAR VARCHAR(20) CHARACTER SET WIN1252 COLLATE WIN_PTBR, CEP VARCHAR(10) CHARACTER SET WIN1252 COLLATE WIN_PTBR, FOTOSECRETARIA BLOB SUB_TYPE 0 SEGMENT SIZE 80 ); CREATE TABLE SITUACAOREGISTRO ( IDSITUACAOREGISTRO SMALLINT NOT NULL, DESCRICAO VARCHAR(50) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE USUARIO ( IDUSUARIO INTEGER NOT NULL, IDPERFIL INTEGER NOT NULL, IDSITUACAOREGISTRO SMALLINT NOT NULL, DATAINCLUSAO DATE NOT NULL, LOGIN VARCHAR(20) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR, SENHA VARCHAR(20) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE VALORNAOSIM ( IDVALORNAOSIM SMALLINT NOT NULL, DESCRICAO VARCHAR(50) CHARACTER SET WIN1252 NOT NULL COLLATE WIN_PTBR ); CREATE TABLE VIRTUALAGENDA ( IDVIRTUALAGENDA INTEGER NOT NULL, IDAGENDA INTEGER, IDPACIENTE INTEGER, IDDOUTOR INTEGER, IDCONVENIO INTEGER, DATAAGENDA DATE, HORAAGENDA TIME, STATUS VARCHAR(50), STATUSIMAGEM VARCHAR(50), MOTIVO VARCHAR(50) ); /******************************************************************************/ /* Primary Keys */ /******************************************************************************/ ALTER TABLE AGENDA ADD CONSTRAINT PK_AGENDA PRIMARY KEY (IDAGENDA); ALTER TABLE BANCO ADD CONSTRAINT PK_BANCO PRIMARY KEY (IDBANCO); ALTER TABLE CIDADE ADD CONSTRAINT PK_CIDADE PRIMARY KEY (IDCIDADE); ALTER TABLE CLINICA ADD CONSTRAINT PK_CLINICA PRIMARY KEY (IDCLINICA); ALTER TABLE CONVENIO ADD CONSTRAINT PK_CONVENIO PRIMARY KEY (IDCONVENIO); ALTER TABLE DOUTOR ADD CONSTRAINT PK_DOUTOR PRIMARY KEY (IDDOUTOR); ALTER TABLE EXAME ADD CONSTRAINT PK_EXAME PRIMARY KEY (IDEXAME); ALTER TABLE LOGREPLICACAO ADD CONSTRAINT PK_LOGREPLICACAO PRIMARY KEY (IDLOGREPLICACAO); ALTER TABLE MEDICAMENTO ADD CONSTRAINT PK_MEDICAMENTO PRIMARY KEY (IDMEDICAMENTO); ALTER TABLE MEDICAMENTOQTDE ADD CONSTRAINT PK_MEDICAMENTOQTDE PRIMARY KEY (IDMEDICAMENTOQTDE); ALTER TABLE MEDICAMENTOUSO ADD CONSTRAINT PK_MEDICAMENTOUSO PRIMARY KEY (IDMEDICAMENTOUSO); ALTER TABLE PACIENTE ADD CONSTRAINT PK_PACIENTE PRIMARY KEY (IDPACIENTE); ALTER TABLE PACIENTECONSULTA ADD CONSTRAINT PK_PACIENTECONSULTA PRIMARY KEY (IDPACIENTECONSULTA, IDPACIENTE); ALTER TABLE PACIENTECONVENIO ADD CONSTRAINT PK_PACIENTECONVENIO PRIMARY KEY (IDPACIENTECONVENIO, IDPACIENTE); ALTER TABLE PACIENTEEVOLUCAO ADD CONSTRAINT PK_PACIENTEEVOLUCAO PRIMARY KEY (IDPACIENTEEVOLUCAO, IDPACIENTE); ALTER TABLE PACIENTEEXAME ADD CONSTRAINT PK_PACIENTEEXAME PRIMARY KEY (IDPACIENTEEXAME, IDPACIENTE); ALTER TABLE PACIENTEEXAMESOLICITADO ADD CONSTRAINT PK_PACIENTEEXAMESOLICITADO PRIMARY KEY (IDPACIENTEEXAMESOLICITADO, IDPACIENTEEXAME, IDPACIENTE); ALTER TABLE PACIENTEFOTO ADD CONSTRAINT PK_PACIENTEFOTO PRIMARY KEY (IDPACIENTEFOTO, IDPACIENTE); ALTER TABLE PACIENTEFOTOITEM ADD CONSTRAINT PK_PACIENTEFOTOITEM PRIMARY KEY (IDPACIENTEFOTOITEM, IDPACIENTEFOTO, IDPACIENTE); ALTER TABLE PACIENTELAUDOOFTALMO ADD CONSTRAINT PK_PACIENTELAUDOOFTALMO PRIMARY KEY (IDPACIENTELAUDOOFTALMO, IDPACIENTE); ALTER TABLE PACIENTEPRESCRICAOLENTE ADD CONSTRAINT PK_PACIENTEPRESCRICAOLENTE PRIMARY KEY (IDPACIENTEPRESCRICAOLENTE, IDPACIENTE); ALTER TABLE PACIENTERECEITUARIO ADD CONSTRAINT PK_PACIENTERECEITUARIO PRIMARY KEY (IDPACIENTERECEITUARIO, IDPACIENTE); ALTER TABLE PACIENTERECEITUARIOUSO ADD CONSTRAINT PK_PACIENTERECEITUARIOUSO PRIMARY KEY (IDPACIENTERECEITUARIOUSO, IDPACIENTERECEITUARIO, IDPACIENTE); ALTER TABLE SECRETARIA ADD CONSTRAINT PK_SECRETARIA PRIMARY KEY (IDSECRETARIA); ALTER TABLE SITUACAOREGISTRO ADD CONSTRAINT PK_SITUACAOREGISTRO PRIMARY KEY (IDSITUACAOREGISTRO); ALTER TABLE USUARIO ADD CONSTRAINT PK_USUARIO PRIMARY KEY (IDUSUARIO); ALTER TABLE VALORNAOSIM ADD CONSTRAINT PK_VALORNAOSIM PRIMARY KEY (IDVALORNAOSIM); ALTER TABLE VIRTUALAGENDA ADD CONSTRAINT PK_VIRTUALAGENDA PRIMARY KEY (IDVIRTUALAGENDA); /******************************************************************************/ /* Foreign Keys */ /******************************************************************************/ ALTER TABLE AGENDA ADD CONSTRAINT FK_AGENDA_CONVENIO FOREIGN KEY (IDCONVENIO) REFERENCES CONVENIO (IDCONVENIO); ALTER TABLE AGENDA ADD CONSTRAINT FK_AGENDA_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE AGENDA ADD CONSTRAINT FK_AGENDA_PACIENTE FOREIGN KEY (IDPACIENTE) REFERENCES PACIENTE (IDPACIENTE); ALTER TABLE AGENDA ADD CONSTRAINT FK_AGENDA_VALORNAOSIM_IDENCAIXE FOREIGN KEY (IDENCAIXE) REFERENCES VALORNAOSIM (IDVALORNAOSIM) USING INDEX FK_AGENDA_VALORNAOSIM; ALTER TABLE AGENDA ADD CONSTRAINT FK_AGENDA_VALORNAOSIM_IDURGENTE FOREIGN KEY (IDURGENTE) REFERENCES VALORNAOSIM (IDVALORNAOSIM); ALTER TABLE BANCO ADD CONSTRAINT FK_BANCO_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE CIDADE ADD CONSTRAINT FK_CIDADE_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE CLINICA ADD CONSTRAINT FK_CLINICA_CIDADE FOREIGN KEY (IDCIDADE) REFERENCES CIDADE (IDCIDADE); ALTER TABLE CONVENIO ADD CONSTRAINT FK_CONVENIO_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE DOUTOR ADD CONSTRAINT FK_DOUTOR_CIDADE FOREIGN KEY (IDCIDADE) REFERENCES CIDADE (IDCIDADE); ALTER TABLE DOUTOR ADD CONSTRAINT FK_DOUTOR_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE DOUTOR ADD CONSTRAINT FK_DOUTOR_USUARIO FOREIGN KEY (IDUSUARIO) REFERENCES USUARIO (IDUSUARIO); ALTER TABLE EXAME ADD CONSTRAINT FK_EXAME_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE MEDICAMENTO ADD CONSTRAINT FK_MEDICAMENTO_MEDICAMENTOQTDE FOREIGN KEY (IDMEDICAMENTOQTDE) REFERENCES MEDICAMENTOQTDE (IDMEDICAMENTOQTDE); ALTER TABLE MEDICAMENTO ADD CONSTRAINT FK_MEDICAMENTO_MEDICAMENTOUSO FOREIGN KEY (IDMEDICAMENTOUSO) REFERENCES MEDICAMENTOUSO (IDMEDICAMENTOUSO); ALTER TABLE MEDICAMENTO ADD CONSTRAINT FK_MEDICAMENTO_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE MEDICAMENTOQTDE ADD CONSTRAINT FK_MEDICAMENTOQTDE_SITUACAOREGI FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE MEDICAMENTOUSO ADD CONSTRAINT FK_MEDICAMENTOUSO_SITUACAOREGIS FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE PACIENTE ADD CONSTRAINT FK_PACIENTE_CIDADE FOREIGN KEY (IDCIDADE) REFERENCES CIDADE (IDCIDADE); ALTER TABLE PACIENTE ADD CONSTRAINT FK_PACIENTE_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE PACIENTECONSULTA ADD CONSTRAINT FK_PACIENTECONSULTA_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTECONSULTA ADD CONSTRAINT FK_PACIENTECONSULTA_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTECONVENIO ADD CONSTRAINT FK_PACIENTECONVENIO_CONVENIO FOREIGN KEY (IDCONVENIO) REFERENCES CONVENIO (IDCONVENIO); ALTER TABLE PACIENTECONVENIO ADD CONSTRAINT FK_PACIENTECONVENIO_SITUACAOREG FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO); ALTER TABLE PACIENTECONVENIO ADD CONSTRAINT FK_PACIENTECONVENIO_VALORNAOSIM FOREIGN KEY (IDPRINCIPAL) REFERENCES VALORNAOSIM (IDVALORNAOSIM); ALTER TABLE PACIENTEEVOLUCAO ADD CONSTRAINT FK_PACIENTEEVOLUCAO_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTEEVOLUCAO ADD CONSTRAINT FK_PACIENTEEVOLUCAO_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTEEVOLUCAO ADD CONSTRAINT FK_PACIENTEEVOLUCAO_VALORNAOSIM FOREIGN KEY (IDRASCUNHO) REFERENCES VALORNAOSIM (IDVALORNAOSIM); ALTER TABLE PACIENTEEXAME ADD CONSTRAINT FK_PACIENTEEXAME_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTEEXAME ADD CONSTRAINT FK_PACIENTEEXAME_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTEEXAMESOLICITADO ADD CONSTRAINT FK_PACIENTEEXAMESOLICITADO_EXAM FOREIGN KEY (IDEXAME) REFERENCES EXAME (IDEXAME); ALTER TABLE PACIENTEFOTO ADD CONSTRAINT FK_PACIENTEFOTO_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTEFOTO ADD CONSTRAINT FK_PACIENTEFOTO_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTELAUDOOFTALMO ADD CONSTRAINT FK_PACIENTELAUDOOFTALMO_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTELAUDOOFTALMO ADD CONSTRAINT FK_PACIENTELAUDOOFTALMO_APTO FOREIGN KEY (IDAPTO) REFERENCES VALORNAOSIM (IDVALORNAOSIM); ALTER TABLE PACIENTELAUDOOFTALMO ADD CONSTRAINT FK_PACIENTELAUDOOFTALMO_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTEPRESCRICAOLENTE ADD CONSTRAINT FK_PACIENTEPRESCRICAOLENTE_AGEN FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTEPRESCRICAOLENTE ADD CONSTRAINT FK_PACIENTEPRESCRICAOLENTE_DOUT FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTERECEITUARIO ADD CONSTRAINT FK_PACIENTERECEITUARIO_AGENDA FOREIGN KEY (IDAGENDA) REFERENCES AGENDA (IDAGENDA); ALTER TABLE PACIENTERECEITUARIO ADD CONSTRAINT FK_PACIENTERECEITUARIO_DOUTOR FOREIGN KEY (IDDOUTOR) REFERENCES DOUTOR (IDDOUTOR); ALTER TABLE PACIENTERECEITUARIOUSO ADD CONSTRAINT FK_PACIENTERECEITUARIOUSO_MEDIC FOREIGN KEY (IDMEDICAMENTO) REFERENCES MEDICAMENTO (IDMEDICAMENTO); ALTER TABLE USUARIO ADD CONSTRAINT FK_USUARIO_SITUACAOREGISTRO FOREIGN KEY (IDSITUACAOREGISTRO) REFERENCES SITUACAOREGISTRO (IDSITUACAOREGISTRO);
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50553 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-04-07 09:40:20 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) CHARACTER SET latin1 NOT NULL, `password` varchar(50) CHARACTER SET latin1 NOT NULL, PRIMARY KEY (`id`), KEY `username` (`username`,`password`) USING HASH ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('1', 'admin', '<PASSWORD>');
drop table if exists test1; drop table if exists test_tuple; drop table if exists test_two_args; create table test1(p DateTime, k int) engine MergeTree partition by toDate(p) order by k settings index_granularity = 1; insert into test1 values ('2020-09-01 00:01:02', 1), ('2020-09-01 20:01:03', 2), ('2020-09-02 00:01:03', 3); set max_rows_to_read = 1; -- non-optimized select count() from test1 settings max_parallel_replicas = 3; -- { serverError 158; } -- optimized (toYear is monotonic and we provide the partition expr as is) select count() from test1 where toYear(toDate(p)) = 1999; -- non-optimized (toDate(DateTime) is always monotonic, but we cannot relaxing the predicates to do trivial count()) select count() from test1 where p > toDateTime('2020-09-01 10:00:00'); -- { serverError 158; } -- optimized (partition expr wrapped with non-monotonic functions) select count() FROM test1 where toDate(p) = '2020-09-01' and sipHash64(toString(toDate(p))) % 2 = 1; select count() FROM test1 where toDate(p) = '2020-09-01' and sipHash64(toString(toDate(p))) % 2 = 0; -- non-optimized (some predicate depends on non-partition_expr columns) select count() FROM test1 where toDate(p) = '2020-09-01' and k = 2; -- { serverError 158; } -- optimized select count() from test1 where toDate(p) > '2020-09-01'; -- non-optimized select count() from test1 where toDate(p) >= '2020-09-01' and p <= '2020-09-01 00:00:00'; create table test_tuple(p DateTime, i int, j int) engine MergeTree partition by (toDate(p), i) order by j settings index_granularity = 1; insert into test_tuple values ('2020-09-01 00:01:02', 1, 2), ('2020-09-01 00:01:03', 2, 3), ('2020-09-02 00:01:03', 3, 4); -- optimized select count() from test_tuple where toDate(p) > '2020-09-01'; -- optimized select count() from test_tuple where toDate(p) > '2020-09-01' and i = 1; -- optimized select count() from test_tuple where i > 2; -- optimized select count() from test_tuple where i < 1; -- non-optimized select count() from test_tuple array join [p,p] as c where toDate(p) = '2020-09-01'; -- { serverError 158; } select count() from test_tuple array join [1,2] as c where toDate(p) = '2020-09-01' settings max_rows_to_read = 4; -- non-optimized select count() from test_tuple array join [1,2,3] as c where toDate(p) = '2020-09-01'; -- { serverError 158; } select count() from test_tuple array join [1,2,3] as c where toDate(p) = '2020-09-01' settings max_rows_to_read = 6; create table test_two_args(i int, j int, k int) engine MergeTree partition by i + j order by k settings index_granularity = 1; insert into test_two_args values (1, 2, 3), (2, 1, 3), (0, 3, 4); -- optimized select count() from test_two_args where i + j = 3; -- non-optimized select count() from test_two_args where i = 1; -- { serverError 158; } drop table test1; drop table test_tuple; drop table test_two_args;
CREATE INDEX "I_SP_DER_FROM_CAT_ITEM" ON "SPECIMEN_PART" ("DERIVED_FROM_CAT_ITEM")
CREATE TABLE [Membership].[AnonymousUser] ( [AnonymousUserID] UNIQUEIDENTIFIER NOT NULL, [LastActivityDate] DATETIME NOT NULL, CONSTRAINT [PK_AnonymousUser_AnonymousUserID] PRIMARY KEY CLUSTERED ([AnonymousUserID] ASC) );
<filename>dms/mc/mc.test_harness.sql<gh_stars>1-10 -- -- Name: test_harness(text); Type: FUNCTION; Schema: mc; Owner: d3l243 -- CREATE OR REPLACE FUNCTION mc.test_harness(_managernamelist text) RETURNS TABLE(manager_name text) LANGUAGE plpgsql AS $$ DECLARE _message TEXT; _sqlstate text; _exceptionMessage text; _exceptionContext text; BEGIN DROP TABLE IF EXISTS TmpManagerList; CREATE TEMP TABLE TmpManagerList ( manager_name text NOT NULL ); CALL mc.ParseManagerNameList(_managerNameList, _removeUnknownManagers => 0, _message => _message); RAISE INFO '%', _message; RETURN Query SELECT * FROM TmpManagerList; EXCEPTION WHEN OTHERS THEN GET STACKED DIAGNOSTICS _sqlstate = returned_sqlstate, _exceptionMessage = message_text, _exceptionContext = pg_exception_context; _message := 'Error calling udf_parse_delimited_list: ' || _exceptionMessage; RAISE Info '%', _message; RAISE Info 'Exception context; %', _exceptionContext; RAISE Exception '%, code %; see the output for context', _message, _sqlstate; End $$; ALTER FUNCTION mc.test_harness(_managernamelist text) OWNER TO d3l243;
INSERT INTO permit_amendment_status_code (permit_amendment_status_code, description, display_order , active_ind , create_user , create_timestamp , update_user , update_timestamp ) VALUES ('DFT', 'Draft', 30, true, 'system-mds', now(), 'system-mds', now()); ALTER TABLE permit_status_code ADD COLUMN active_ind boolean DEFAULT true NOT null; INSERT INTO permit_status_code (permit_status_code, description, display_order, effective_date, create_user , create_timestamp , update_user , update_timestamp, active_ind) VALUES ('D', 'Draft', 30, now(), 'system-mds', now(), 'system-mds', now(), false ); ALTER TABLE permit_amendment ADD COLUMN lead_inspector_title varchar; ALTER TABLE permit_amendment ADD COLUMN regional_office varchar;
CREATE FUNCTION pg_catalog.pg_ptrack_test(oid) RETURNS _int4 AS 'pg_ptrack_test' LANGUAGE internal STRICT VOLATILE;
-- Get the Longitude and Latitude of all occurrences for a species SELECT ST_X(location) as longitude, ST_Y(location) as latitude FROM occurrences WHERE species_id = 1 -- the species to look at ;
<gh_stars>1-10 /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ drop index SYS_C0021170_IDX; drop index PROTEIN_SION_PROTEIN_ID; drop index PROTEIN_SION_SECONDARY_; drop index PROTEIN_SION_ID; drop index PROTEIN_SION_SECONDARY__LWR; --EXIT;
<filename>openGaussBase/testcase/KEYWORDS/parameter_specific_name/Opengauss_Function_Keyword_Parameter_specific_name_Case0019.sql -- @testpoint:opengauss关键字parameter_specific_name(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists parameter_specific_name; create data source parameter_specific_name; drop data source parameter_specific_name; --关键字带双引号-成功 drop data source if exists "parameter_specific_name"; create data source "parameter_specific_name"; drop data source "parameter_specific_name"; --关键字带单引号-合理报错 drop data source if exists 'parameter_specific_name'; create data source 'parameter_specific_name'; --关键字带反引号-合理报错 drop data source if exists `parameter_specific_name`; create data source `parameter_specific_name`;
-- @testpoint: 词条位置的词汇中包含常量 SELECT $$the lexeme 'Joe''s' contains a quote$$::tsvector;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字Buckets(保留),作为角色名 --关键字不带引号-合理报错 drop role if exists Buckets; create role Buckets with password '<PASSWORD>' valid until '2020-12-31'; --关键字带双引号-成功 drop role if exists "Buckets"; create role "Buckets" with password '<PASSWORD>' valid until '2020-12-31'; --清理环境 drop role "Buckets"; --关键字带单引号-合理报错 drop role if exists 'Buckets'; create role 'Buckets' with password '<PASSWORD>' valid until '2020-12-31'; --关键字带反引号-合理报错 drop role if exists `Buckets`; create role `Buckets` with password '<PASSWORD>' valid until '2020-12-31';
SELECT code, year FROM economies union all SELECT country_code, year FROM populations ORDER BY code, year;
<gh_stars>0 /* <NAME> 2, Zadatak 6 Prikazati broj proizvoda po kategoriji. Listu sortirati opadajucim redosljedom po broju proizvoda. Prikazati samo 10 kategorija. Takodjer, provjeriti da li ima kategorija koji imaju isti broj proizvoda kao ona na 10 mjestu. (AdventureWorksLT) */ USE AdventureWorksLT2014 SELECT TOP 10 WITH TIES ProductCategoryID, COUNT(ProductID) AS 'Broj proizvoda' FROM [SalesLT].[Product] GROUP BY ProductCategoryID ORDER BY 2 DESC
<gh_stars>0 if exists(select * from sysobjects where name='pr_Reports_PresumptiveTBRegister' and type='p') drop proc pr_Reports_PresumptiveTBRegister go create proc pr_Reports_PresumptiveTBRegister @fromdate datetime, @todate datetime as begin if exists(select * from sysobjects where name='tempPresumptiveTB' and type='u') drop table tempPresumptiveTB select a.ptn_pk as PatientPK , a.Visit_pk , a.name as TBStatus , b.visitdate as TBSuspectDate , case when a.chestXray=1 then 'Yes' when a.chestXray=0 then 'No' end as chestXray , case when a.chestXray=1 then a.ChestXrayDate end as ChestXrayDate , SputumSmearResult , SputumSmearDate into tempPresumptiveTB from ( select a.*, ROW_NUMBER() over (partition by a.ptn_pk order by a.visit_pk desc) RowNo ,b.name as SputumSmearResult from ( select b.name, a.* from dtl_tbscreening a inner join MST_BLUEDECODE b on a.TBFindings=b.id where name like '%suspect%' union all select b.name, a.* from dtl_tbscreening a inner join mst_Decode b on a.TBFindings=b.id where name like '%suspect%' and b.ID>100 ) a left join mst_decode b on a.sputumsmear = b.id ) a inner join ord_visit b on a.visit_pk = b.visit_id where a.RowNo=1 select a.PatientPK , a.PatientID , a.PatientName , a.PhoneNumber , a.Gender , a.AgeCurrent , a.ServiceArea , b.StartARTDate , b.LastRegimen , b.LastRegimenLine , c.TBStatus as TBScreeningStatus , c.TBSuspectDate as TB_Screening_Date , '' [Sputum_collected] , '' [sputum collected] , (select top 1 x.OrderedbyDate from ord_patientlaborder x inner join dtl_patientlabresults y on x.LabID=y.LabID inner join mst_labtest z on y.labtestid=z.labtestid where z.labName like '%gene%' and x.Ptn_pk=a.patientpk order by x.OrderedbyDate desc) as GeneXpertOrderDate , (select top 1 z.Result from ord_patientlaborder x inner join dtl_patientlabresults y on x.LabID=y.LabID inner join lnk_parameterresult z on y.TestResultid=z.ResultID inner join mst_labtest zz on y.labtestid=zz.labtestid where zz.labName like '%gene%' and x.Ptn_pk=a.patientpk order by x.OrderedbyDate desc) as GeneXpertResult , '' MicroscopyOrderDate , '' MicroscopyResults , '' CultureOrderDate , '' CultureResults , chestXray as ChestXRayOrdered , ChestXrayDate , (select top 1 y.name from dtl_TbScreening x inner join MST_BLUEDECODE y on x.TBFindings=y.id where x.ptn_pk=a.PatientPK and x.visit_pk>c.visit_pk) as OutcomeOfInvestigation , (select top 1 'Yes' from VW_PatientPharmacy x where x.Ptn_pk=a.patientpk and x.DispensedByDate > c.TBSuspectDate and (x.DrugName like '%RHZE%' or x.DrugName like '%RIFAMPICIN%')) as StartedAntiTB , (select top 1 'Yes' from VW_PatientPharmacy x where x.Ptn_pk=a.patientpk and x.DispensedByDate > c.TBSuspectDate and x.DrugName like 'isoniazid%') as StartedIPT , b.CurrentStatus from tmp_PatientMaster a inner join tmp_ARTPatients b on a.PatientPK=b.PatientPK inner join tempPresumptiveTB c on b.PatientPK=c.PatientPK where c.TBSuspectDate between cast(@fromdate as datetime) and cast(@todate as datetime) end go
DROP PROCEDURE IF EXISTS getTreeNodes; DELIMITER $$ # CALL getTreeNodes('Reports'); CREATE DEFINER=`root`@`localhost` PROCEDURE `getTreeNodes`(IN _treeDesc VARCHAR(50)) BEGIN DROP TEMPORARY TABLE IF EXISTS _parentNodes; CREATE TEMPORARY TABLE IF NOT EXISTS _parentNodes AS (SELECT CONCAT(LOWER(_treeDesc), '_P', n.node_id ) AS id, n.node_desc AS 'text', COALESCE(n.parent_node, '#') AS parent, n.node_icon AS icon, n.node_id, n.created_by, n.datetime, t.tree_id, n.file_url FROM tree_node n LEFT JOIN tree t ON t.tree_id = n.tree_id WHERE n.node_status <> 2 AND n.parent_node IS NULL OR n.parent_node = '' AND t.description LIKE '%_treeDesc%'); DROP TEMPORARY TABLE IF EXISTS _childNodes; CREATE TEMPORARY TABLE IF NOT EXISTS _childNodes AS (SELECT CONCAT(LOWER(_treeDesc), '_C', n.node_id ) AS id, n.node_desc AS 'text', t.id AS parent, n.node_icon AS icon, n.node_id, n.created_by, n.datetime, n.tree_id, n.file_url FROM _parentNodes t LEFT JOIN tree_node n ON n.parent_node = t.node_id AND n.node_status <> 2); SELECT * FROM _parentNodes UNION SELECT * FROM _childNodes; END$$ DELIMITER ;
CREATE TABLE [dbo].[Alunos] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1), [Nome] VARCHAR(100) NOT NULL, [Turma] INT NOT NULL, [Nota1] INT NULL, [Nota2] INT NULL, [Nota3] INT NULL, [Nota4] INT NULL )
select 'alter tablespace '|| a.tablespace_name || ' end backup;' from dba_Data_files a, v$backup b where a.file_id=b.file# and b.status = 'ACTIVE'; /
CREATE OR ALTER PROCEDURE [spStudentCourse] ( @StudentId UNIQUEIDENTIFIER ) AS SELECT [Student].[Name] AS [Student], [Course].[Title] AS [Course], [StudentCourse].[Progress], [StudentCourse].[LastUpdateDate] FROM [StudentCourse] INNER JOIN [Student] ON [StudentCourse].[StudentId] = [Student].[Id] INNER JOIN [Course] ON [StudentCourse].[CourseId] = [Course].[Id] WHERE [Student].[Id] = @StudentId AND [StudentCourse].[Progress] BETWEEN 0 AND 100 ORDER BY [StudentCourse].[LastUpdateDate] DESC
<reponame>junior3635/proyecto-sai<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.7 -- Dumped by pg_dump version 9.6.7 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: alumnos; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE alumnos ( id bigint NOT NULL, idpersona bigint NOT NULL, condicionalum character varying(191), procedenciaalum character varying(191), idrepresentante bigint NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE alumnos OWNER TO jutineo; -- -- Name: alumnos_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE alumnos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE alumnos_id_seq OWNER TO jutineo; -- -- Name: alumnos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE alumnos_id_seq OWNED BY alumnos.id; -- -- Name: estado; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE estado ( id integer NOT NULL, nombre character varying(191) NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE estado OWNER TO jutineo; -- -- Name: estado_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE estado_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE estado_id_seq OWNER TO jutineo; -- -- Name: estado_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE estado_id_seq OWNED BY estado.id; -- -- Name: grados; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE grados ( id bigint NOT NULL, grado integer NOT NULL, descripciongrado character varying(191) NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE grados OWNER TO jutineo; -- -- Name: grados_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE grados_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE grados_id_seq OWNER TO jutineo; -- -- Name: grados_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE grados_id_seq OWNED BY grados.id; -- -- Name: inscripcions; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE inscripcions ( id bigint NOT NULL, codigoinscripcion bigint NOT NULL, fecha date NOT NULL, idseccion bigint NOT NULL, idalum bigint NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE inscripcions OWNER TO jutineo; -- -- Name: inscripcions_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE inscripcions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE inscripcions_id_seq OWNER TO jutineo; -- -- Name: inscripcions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE inscripcions_id_seq OWNED BY inscripcions.id; -- -- Name: medidas; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE medidas ( id bigint NOT NULL, idalumno bigint NOT NULL, pesoalum double precision, estaturaalum double precision, tallcamalum integer, tallpantalum integer, tallzapalum integer, circunferenciadebrazo integer, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE medidas OWNER TO jutineo; -- -- Name: medidas_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE medidas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE medidas_id_seq OWNER TO jutineo; -- -- Name: medidas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE medidas_id_seq OWNED BY medidas.id; -- -- Name: migrations; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE migrations ( id integer NOT NULL, migration character varying(191) NOT NULL, batch integer NOT NULL ); ALTER TABLE migrations OWNER TO jutineo; -- -- Name: migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE migrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE migrations_id_seq OWNER TO jutineo; -- -- Name: migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE migrations_id_seq OWNED BY migrations.id; -- -- Name: municipio; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE municipio ( id integer NOT NULL, nombre character varying(191) NOT NULL, estado_id integer NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE municipio OWNER TO jutineo; -- -- Name: municipio_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE municipio_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE municipio_id_seq OWNER TO jutineo; -- -- Name: municipio_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE municipio_id_seq OWNED BY municipio.id; -- -- Name: parroquia; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE parroquia ( id integer NOT NULL, nombre character varying(191) NOT NULL, municipio_id integer NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE parroquia OWNER TO jutineo; -- -- Name: parroquia_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE parroquia_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE parroquia_id_seq OWNER TO jutineo; -- -- Name: parroquia_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE parroquia_id_seq OWNED BY parroquia.id; -- -- Name: password_resets; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE password_resets ( email character varying(191) NOT NULL, token character varying(191) NOT NULL, created_at timestamp(0) without time zone ); ALTER TABLE password_resets OWNER TO jutineo; -- -- Name: periodo_academicos; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE periodo_academicos ( id bigint NOT NULL, periodo character varying(191) NOT NULL, ano integer NOT NULL, descripcionperiodo character varying(191) NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE periodo_academicos OWNER TO jutineo; -- -- Name: periodo_academicos_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE periodo_academicos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE periodo_academicos_id_seq OWNER TO jutineo; -- -- Name: periodo_academicos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE periodo_academicos_id_seq OWNED BY periodo_academicos.id; -- -- Name: personas; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE personas ( id bigint NOT NULL, cedula integer NOT NULL, nombres character varying(191) NOT NULL, apellidos character varying(191) NOT NULL, lugnacimiento character varying(191) NOT NULL, fechnacimiento date NOT NULL, sexo character varying(191) NOT NULL, telefono bigint NOT NULL, celular bigint NOT NULL, direccion character varying(191) NOT NULL, correo character varying(191) NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE personas OWNER TO jutineo; -- -- Name: personas_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE personas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE personas_id_seq OWNER TO jutineo; -- -- Name: personas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE personas_id_seq OWNED BY personas.id; -- -- Name: profesors; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE profesors ( id bigint NOT NULL, idpersona bigint NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE profesors OWNER TO jutineo; -- -- Name: profesors_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE profesors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE profesors_id_seq OWNER TO jutineo; -- -- Name: profesors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE profesors_id_seq OWNED BY profesors.id; -- -- Name: representantes; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE representantes ( id bigint NOT NULL, idpersona bigint NOT NULL, parentesco character varying(191) NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE representantes OWNER TO jutineo; -- -- Name: representantes_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE representantes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE representantes_id_seq OWNER TO jutineo; -- -- Name: representantes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE representantes_id_seq OWNED BY representantes.id; -- -- Name: seccions; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE seccions ( id bigint NOT NULL, nomsecc character varying(191) NOT NULL, idgrado bigint NOT NULL, capacidad integer NOT NULL, turno character varying(191) NOT NULL, idperiodo bigint NOT NULL, idprofesor bigint NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone, descripcionseccion character varying(191) ); ALTER TABLE seccions OWNER TO jutineo; -- -- Name: seccions_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE seccions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE seccions_id_seq OWNER TO jutineo; -- -- Name: seccions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE seccions_id_seq OWNED BY seccions.id; -- -- Name: users; Type: TABLE; Schema: public; Owner: jutineo -- CREATE TABLE users ( id bigint NOT NULL, nombre character varying(191) NOT NULL, apellido character varying(191) NOT NULL, email character varying(191) NOT NULL, email_verified_at timestamp(0) without time zone, password character varying(191) NOT NULL, remember_token character varying(100), created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone ); ALTER TABLE users OWNER TO jutineo; -- -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: jutineo -- CREATE SEQUENCE users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE users_id_seq OWNER TO jutineo; -- -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: jutineo -- ALTER SEQUENCE users_id_seq OWNED BY users.id; -- -- Name: alumnos id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY alumnos ALTER COLUMN id SET DEFAULT nextval('alumnos_id_seq'::regclass); -- -- Name: estado id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY estado ALTER COLUMN id SET DEFAULT nextval('estado_id_seq'::regclass); -- -- Name: grados id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY grados ALTER COLUMN id SET DEFAULT nextval('grados_id_seq'::regclass); -- -- Name: inscripcions id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY inscripcions ALTER COLUMN id SET DEFAULT nextval('inscripcions_id_seq'::regclass); -- -- Name: medidas id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY medidas ALTER COLUMN id SET DEFAULT nextval('medidas_id_seq'::regclass); -- -- Name: migrations id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY migrations ALTER COLUMN id SET DEFAULT nextval('migrations_id_seq'::regclass); -- -- Name: municipio id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY municipio ALTER COLUMN id SET DEFAULT nextval('municipio_id_seq'::regclass); -- -- Name: parroquia id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY parroquia ALTER COLUMN id SET DEFAULT nextval('parroquia_id_seq'::regclass); -- -- Name: periodo_academicos id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY periodo_academicos ALTER COLUMN id SET DEFAULT nextval('periodo_academicos_id_seq'::regclass); -- -- Name: personas id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY personas ALTER COLUMN id SET DEFAULT nextval('personas_id_seq'::regclass); -- -- Name: profesors id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY profesors ALTER COLUMN id SET DEFAULT nextval('profesors_id_seq'::regclass); -- -- Name: representantes id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY representantes ALTER COLUMN id SET DEFAULT nextval('representantes_id_seq'::regclass); -- -- Name: seccions id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY seccions ALTER COLUMN id SET DEFAULT nextval('seccions_id_seq'::regclass); -- -- Name: users id; Type: DEFAULT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass); -- -- Data for Name: alumnos; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY alumnos (id, idpersona, condicionalum, procedenciaalum, idrepresentante, created_at, updated_at) FROM stdin; 1 2 regular uen caracas 1 2019-06-27 16:40:21 2019-06-27 16:40:21 2 4 regular u,e,n ida 1 2019-06-27 18:37:37 2019-06-27 18:37:37 \. -- -- Name: alumnos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('alumnos_id_seq', 2, true); -- -- Data for Name: estado; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY estado (id, nombre, created_at, updated_at) FROM stdin; \. -- -- Name: estado_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('estado_id_seq', 1, false); -- -- Data for Name: grados; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY grados (id, grado, descripciongrado, created_at, updated_at) FROM stdin; 1 1 1er Grado \N \N 2 2 2do Grado \N \N 3 3 3er Grado \N \N 4 4 4to Grado \N \N 5 5 5to Grado \N \N 6 6 6to Grado \N \N \. -- -- Name: grados_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('grados_id_seq', 1, false); -- -- Data for Name: inscripcions; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY inscripcions (id, codigoinscripcion, fecha, idseccion, idalum, created_at, updated_at) FROM stdin; 32 100232312311 2019-06-25 1 1 2019-06-27 18:56:32 2019-06-27 18:56:32 42 100125521 2019-06-28 1 2 2019-06-28 16:08:48 2019-06-28 16:08:48 43 100232312312 2019-06-28 2 1 2019-06-28 16:11:10 2019-06-28 16:11:10 \. -- -- Name: inscripcions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('inscripcions_id_seq', 43, true); -- -- Data for Name: medidas; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY medidas (id, idalumno, pesoalum, estaturaalum, tallcamalum, tallpantalum, tallzapalum, circunferenciadebrazo, created_at, updated_at) FROM stdin; \. -- -- Name: medidas_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('medidas_id_seq', 1, false); -- -- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY migrations (id, migration, batch) FROM stdin; 1 2014_10_12_000000_create_users_table 1 2 2014_10_12_100000_create_password_resets_table 1 3 2019_01_07_193851_create_estado_table 1 4 2019_01_07_194117_create_municipio_table 1 5 2019_01_07_195045_create_parroquia_table 1 6 2019_04_28_164648_create_personas_table 1 7 2019_05_07_151600_create_grados_table 1 8 2019_05_07_185509_create_profesors_table 1 9 2019_05_07_185549_create_representantes_table 1 10 2019_05_07_185550_create_alumnos_table 1 11 2019_05_07_185612_create_periodo_academicos_table 1 12 2019_05_07_185620_create_seccions_table 1 13 2019_05_07_185659_create_inscripcions_table 1 14 2019_05_30_161440_create_medidas_table 1 \. -- -- Name: migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('migrations_id_seq', 14, true); -- -- Data for Name: municipio; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY municipio (id, nombre, estado_id, created_at, updated_at) FROM stdin; \. -- -- Name: municipio_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('municipio_id_seq', 1, false); -- -- Data for Name: parroquia; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY parroquia (id, nombre, municipio_id, created_at, updated_at) FROM stdin; \. -- -- Name: parroquia_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('parroquia_id_seq', 1, false); -- -- Data for Name: password_resets; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY password_resets (email, token, created_at) FROM stdin; \. -- -- Data for Name: periodo_academicos; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY periodo_academicos (id, periodo, ano, descripcionperiodo, created_at, updated_at) FROM stdin; 1 1 2019 2018-2019 2019-06-27 16:41:26 2019-06-27 16:41:26 \. -- -- Name: periodo_academicos_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('periodo_academicos_id_seq', 1, true); -- -- Data for Name: personas; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY personas (id, cedula, nombres, apellidos, lugnacimiento, fechnacimiento, sexo, telefono, celular, direccion, correo, created_at, updated_at) FROM stdin; 1 25253131 junior tineo Caracas 2019-06-14 masculino 4141405614 4141405614 Av sucre calle toro casa 2611 <EMAIL> 2019-06-27 16:38:15 2019-06-27 16:38:15 2 23231231 manuel ribas caracas 2019-06-27 masculino 1525125 12512512 wachintong <EMAIL> 2019-06-27 16:38:48 2019-06-27 16:38:48 4 12552 katarina morgues Caracas 2009-06-03 femenino 4141405614 4141405614 Av sucre calle toro casa 2611 <EMAIL> 2019-06-27 18:37:07 2019-06-27 18:37:07 3 5895235 profesor briseño Caracas 2019-06-05 masculino 5614 5614 Av sucre calle toro casa 2611 <EMAIL> 2019-06-27 16:39:14 2019-07-04 13:39:40 \. -- -- Name: personas_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('personas_id_seq', 5, true); -- -- Data for Name: profesors; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY profesors (id, idpersona, created_at, updated_at) FROM stdin; 1 3 2019-06-27 16:40:32 2019-06-27 16:40:32 \. -- -- Name: profesors_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('profesors_id_seq', 1, true); -- -- Data for Name: representantes; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY representantes (id, idpersona, parentesco, created_at, updated_at) FROM stdin; 1 1 Padre 2019-06-27 16:39:47 2019-06-27 16:39:47 \. -- -- Name: representantes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('representantes_id_seq', 1, true); -- -- Data for Name: seccions; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY seccions (id, nomsecc, idgrado, capacidad, turno, idperiodo, idprofesor, created_at, updated_at, descripcionseccion) FROM stdin; 1 A 2 31 mañana 1 1 2019-06-27 16:43:53 2019-06-27 16:43:53 2-A-mañana 2 B 2 31 Mañana 1 1 2019-06-28 16:10:42 2019-06-28 16:10:42 2-B-Mañana \. -- -- Name: seccions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('seccions_id_seq', 2, true); -- -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: jutineo -- COPY users (id, nombre, apellido, email, email_verified_at, password, remember_token, created_at, updated_at) FROM stdin; 1 junior tineo <EMAIL> \N $2y$10$cBMWwtTI1TEA0p7bZshg9e3gBW42MzL1MDrOZJFB59HdlxrvLOazK \N 2019-07-04 13:35:17 2019-07-04 13:35:17 \. -- -- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: jutineo -- SELECT pg_catalog.setval('users_id_seq', 1, true); -- -- Name: alumnos alumnos_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY alumnos ADD CONSTRAINT alumnos_pkey PRIMARY KEY (id); -- -- Name: estado estado_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY estado ADD CONSTRAINT estado_pkey PRIMARY KEY (id); -- -- Name: grados grados_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY grados ADD CONSTRAINT grados_pkey PRIMARY KEY (id); -- -- Name: inscripcions inscripcions_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY inscripcions ADD CONSTRAINT inscripcions_pkey PRIMARY KEY (id); -- -- Name: medidas medidas_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY medidas ADD CONSTRAINT medidas_pkey PRIMARY KEY (id); -- -- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY migrations ADD CONSTRAINT migrations_pkey PRIMARY KEY (id); -- -- Name: municipio municipio_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY municipio ADD CONSTRAINT municipio_pkey PRIMARY KEY (id); -- -- Name: parroquia parroquia_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY parroquia ADD CONSTRAINT parroquia_pkey PRIMARY KEY (id); -- -- Name: periodo_academicos periodo_academicos_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY periodo_academicos ADD CONSTRAINT periodo_academicos_pkey PRIMARY KEY (id); -- -- Name: personas personas_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY personas ADD CONSTRAINT personas_pkey PRIMARY KEY (id); -- -- Name: profesors profesors_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY profesors ADD CONSTRAINT profesors_pkey PRIMARY KEY (id); -- -- Name: representantes representantes_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY representantes ADD CONSTRAINT representantes_pkey PRIMARY KEY (id); -- -- Name: seccions seccions_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY seccions ADD CONSTRAINT seccions_pkey PRIMARY KEY (id); -- -- Name: users users_email_unique; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY users ADD CONSTRAINT users_email_unique UNIQUE (email); -- -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY users ADD CONSTRAINT users_pkey PRIMARY KEY (id); -- -- Name: password_resets_email_index; Type: INDEX; Schema: public; Owner: jutineo -- CREATE INDEX password_resets_email_index ON password_resets USING btree (email); -- -- Name: alumnos alumnos_idpersona_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY alumnos ADD CONSTRAINT alumnos_idpersona_foreign FOREIGN KEY (idpersona) REFERENCES personas(id); -- -- Name: alumnos alumnos_idrepresentante_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY alumnos ADD CONSTRAINT alumnos_idrepresentante_foreign FOREIGN KEY (idrepresentante) REFERENCES representantes(id); -- -- Name: inscripcions inscripcions_idalum_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY inscripcions ADD CONSTRAINT inscripcions_idalum_foreign FOREIGN KEY (idalum) REFERENCES alumnos(id); -- -- Name: inscripcions inscripcions_idseccion_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY inscripcions ADD CONSTRAINT inscripcions_idseccion_foreign FOREIGN KEY (idseccion) REFERENCES seccions(id); -- -- Name: medidas medidas_idalumno_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY medidas ADD CONSTRAINT medidas_idalumno_foreign FOREIGN KEY (idalumno) REFERENCES alumnos(id); -- -- Name: municipio municipio_estado_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY municipio ADD CONSTRAINT municipio_estado_id_foreign FOREIGN KEY (estado_id) REFERENCES estado(id); -- -- Name: parroquia parroquia_municipio_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY parroquia ADD CONSTRAINT parroquia_municipio_id_foreign FOREIGN KEY (municipio_id) REFERENCES municipio(id); -- -- Name: profesors profesors_idpersona_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY profesors ADD CONSTRAINT profesors_idpersona_foreign FOREIGN KEY (idpersona) REFERENCES personas(id); -- -- Name: representantes representantes_idpersona_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY representantes ADD CONSTRAINT representantes_idpersona_foreign FOREIGN KEY (idpersona) REFERENCES personas(id); -- -- Name: seccions seccions_idgrado_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY seccions ADD CONSTRAINT seccions_idgrado_foreign FOREIGN KEY (idgrado) REFERENCES grados(id); -- -- Name: seccions seccions_idperiodo_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY seccions ADD CONSTRAINT seccions_idperiodo_foreign FOREIGN KEY (idperiodo) REFERENCES periodo_academicos(id); -- -- Name: seccions seccions_idprofesor_foreign; Type: FK CONSTRAINT; Schema: public; Owner: jutineo -- ALTER TABLE ONLY seccions ADD CONSTRAINT seccions_idprofesor_foreign FOREIGN KEY (idprofesor) REFERENCES profesors(id); -- -- PostgreSQL database dump complete --
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS stores CASCADE; DROP TABLE IF EXISTS signup_users; DROP TABLE IF EXISTS create_employees; DROP Table IF EXISTS stores_employees CASCADE; DROP TABLE IF EXISTS coupons CASCADE; DROP TABLE IF EXISTS archive_coupons; DROP TABLE IF EXISTS redeemed_coupons CASCADE; DROP TABLE IF EXISTS coupon_categories CASCADE; DROP TABLE IF EXISTS categories CASCADE; DROP TABLE IF EXISTS employee_state CASCADE; DROP TABLE IF EXISTS coupon_state CASCADE; DROP TABLE IF EXISTS store_state CASCADE; DROP TABLE IF EXISTS discount_type CASCADE; CREATE TABLE employee_state( state_id PRIMARY KEY generated always AS IDENTITY, state_name text UNIQUE ); CREATE TABLE coupon_state( state_id PRIMARY KEY generated always AS IDENTITY, state_name text UNIQUE ); CREATE TABLE store_state( state_id PRIMARY KEY generated always AS IDENTITY, store_name text UNIQUE ); CREATE TABLE discount_type( dis_id PRIMARY KEY generated always AS IDENTITY, dis_name text UNIQUE ); INSERT INTO employee_state(state_name) VALUES ('active'), ("removed"), ("suspended"); INSERT INTO coupon_state(state_name) VALUES ('active'), ("deleted"), ("expired"), ("used"); INSERT INTO store_state(state_name) VALUES ('active'), ("inactive"); INSERT INTO discount_type(dis_name) VALUES ('amount_off'), ("percentage_off"); Create type store_state AS Enum('active', 'inactive'); CREATE TABLE users ( user_id text PRIMARY KEY, email text NOT NULL UNIQUE, password_hash text NOT NULL, created_at timestamp NOT NULL ); CREATE TABLE stores( store_id text PRIMARY KEY REFERENCES users(user_id), store_name text NOT NULL, store_state REFERENCES store_state(store_name) DEFAULT 'inactive', theme_color integer, tagline text NOT NULL, "address" text NULL ); CREATE Table stores_followed( user_id text REFERENCES users(user_id) NOT NULL, store_id text REFERENCES stores(store_id) NOT NULL, UNIQUE(user_id, store_id) ); Create TABLE signup_users( id integer PRIMARY KEY generated always AS IDENTITY, email text NOT NULL UNIQUE, password_hash text NOT NULL, token text NOT NULL UNIQUE, expired_at timestamp NOT NULL ); Create Table create_employees( emp_id integer PRIMARY KEY generated always AS IDENTITY, store_id text REFERENCES stores(store_id), email text NOT NULL, token text NOT NULL UNIQUE, expired_at timestamp NOT NULL, revoked boolean NOT NULL DEFAULT false ); CREATE TABLE stores_employees( emp_id text PRIMARY KEY, store_id text REFERENCES stores(store_id), created_at timestamp NOT NULL, user_id text REFERENCES users(user_id), emp_state REFERENCES employee_state(state_name) ); Create TABLE coupons( coupon_id integer PRIMARY KEY generated always AS IDENTITY, store_id text REFERENCES stores(store_id) NOT NULL, "desc" text NOT NULL, "state" coupon_state NOT NULL DEFAULT 'active', discount_type text REFERENCES discount_type("dis_name") NOT NULL, amount_off NUMERIC, percentage_off NUMERIC, currency_code char(3), qr_code_url text NULL, expired_at timestamp NOT NULL, created_at timestamp NOT NULL, is_text_coupon boolean NOT NULL DEFAULT false, text_coupon_code text UNIQUE, text_coupon_weburl text, max_redemptions integer, unlimited_redemption boolean NOT NULL DEFAULT true, redemption_count integer NOT NULL DEFAULT 0, tsv tsvector, CONSTRAINT either_text_or_is_qr CHECK( is_text_coupon = false OR qr_code_url <> NULL ), CHECK( ( unlimited_redemption <> true AND (redemption_count <= max_redemptions) ) OR (unlimited_redemption) ), CHECK( amount_off <> NULL OR percentage_off <> NULL ) ); CREATE INDEX in_coupons_tsv ON coupons USING GIN(tsv); CREATE OR REPLACE FUNCTION set_full_text_search_on_coupons() RETURNS TRIGGER AS $$ BEGIN coupons.tsv = to_tsvector(coupons.desc ) RETURN NEW; END; $ $ language 'plpgsql'; CREATE TRIGGER update_new_full_text_search BEFORE UPDATE ON coupons FOR EACH ROW EXECUTE PROCEDURE set_full_text_search_on_coupons(); Create TABLE saved_coupons( id integer PRIMARY KEY generated always AS IDENTITY, user_id text REFERENCES users(user_id) NOT NULL, coupon_id text REFERENCES coupons(coupon_id) NOT NULL, UNIQUE(user_id, coupon_id) ); Create Table archive_coupons( coupon_id text PRIMARY KEY NOT NULL, store_id text REFERENCES stores(store_id) NOT NULL, "desc" text NOT NULL, coupon_state coupon_state NOT NULL, amount_off NUMERIC, percentage_off NUMERIC, currency_code char(3), qr_code_url text NULL, expired_at timestamp NOT NULL, created_at timestamp NOT NULL, is_text_coupon boolean NOT NULL DEFAULT false, text_coupon_code text UNIQUE, text_coupon_webUrl text, max_redemptions integer, unlimited_redemption boolean NOT NULL DEFAULT true, redemption_count integer NOT NULL DEFAULT 0, CHECK(coupon_state = 'deleted') ); CREATE TABLE redeemed_coupons( id integer PRIMARY KEY generated always AS IDENTITY, coupon_id text REFERENCES coupons(coupon_id) NOT NULL, redeemed_by text REFERENCES stores_employees(employee_id), redeemed_when timestamp NOT NULL ); CREATE TABLE categories ( cat_id integer PRIMARY KEY generated always AS IDENTITY, cat_name text NOT NULL ); CREATE TABLE coupon_categories( coupon_id text REFERENCES coupons(coupon_id), cat_name integer REFERENCES categories(cat_name), PRIMARY KEY(coupon_id, cat_id) ); CREATE MATERIALIZED VIEW popular_coupons As SELECT coupon_id, store_id, store_name, tagline, "address", theme_color, "desc", amount_off, percentage_off, currency_code, qr_code_url, expired_at, is_text_coupon, text_coupon_code, text_coupon_webUrl, redeemed_count FROM ( SELECT coupon_id, amount_off, percentage_off, currency_code, qr_code_url, "desc", expired_at, is_text_coupon, text_coupon_code, text_coupon_webUrl, store_id, count(coupon_id) AS redeemed_count FROM coupons INNER JOIN redeemed_coupons using(coupon_id) WHERE coupon_state = 'active' GROUP BY coupon_id ORDER BY redeemed_count ) AS redeemed INNER JOIN stores using(store_id);
-- URL: https://www.hackerrank.com/challenges/average-population/problem select floor(avg(population)) from city;
CREATE FUNCTION dbo.REGEXP_LIKE ( @input nvarchar(4000), @pattern nvarchar(4000), @caseSensitive int ) RETURNS bit AS BEGIN DECLARE @hresult integer DECLARE @oRegexp integer DECLARE @objMatches integer DECLARE @objMatch integer DECLARE @count integer DECLARE @results bit EXEC @hresult = sp_OACreate 'VBScript.RegExp', @oRegexp OUTPUT IF @hresult <> 0 return -1; EXEC @hresult = sp_OASetProperty @oRegexp, 'Pattern', @pattern IF @hresult <> 0 return -1; EXEC @hresult = sp_OASetProperty @oRegexp, 'Global', false IF @hresult <> 0 return -1; IF @caseSensitive = 0 EXEC @hresult = sp_OASetProperty @oRegexp, 'IgnoreCase', 1 IF @hresult <> 0 return -1; EXEC @hresult = sp_OAMethod @oRegexp, 'Test', @results OUTPUT, @input IF @hresult <> 0 return -1; EXEC @hresult = sp_OADestroy @oRegexp IF @hresult <> 0 return -1; RETURN @results END
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2014 at 03:15 PM -- Server version: 5.6.20 -- PHP Version: 5.5.15 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: `webboard` -- -- -------------------------------------------------------- -- -- Table structure for table `answers` -- CREATE TABLE IF NOT EXISTS `answers` ( `id` int(11) NOT NULL, `name` varchar(70) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(70) COLLATE utf8_unicode_ci NOT NULL, `detail` longtext COLLATE utf8_unicode_ci NOT NULL, `question_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `questions` -- CREATE TABLE IF NOT EXISTS `questions` ( `id` int(11) NOT NULL, `topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `detail` longtext COLLATE utf8_unicode_ci NOT NULL, `name` varchar(70) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(70) COLLATE utf8_unicode_ci NOT NULL, `created` datetime NOT NULL, `view` int(4) NOT NULL, `reply` int(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Indexes for dumped tables -- -- -- Indexes for table `answers` -- ALTER TABLE `answers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `questions` -- ALTER TABLE `questions` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `answers` -- ALTER TABLE `answers` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `questions` -- ALTER TABLE `questions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
DROP TABLE IF EXISTS hello_world_messages;
<reponame>reshimahendra/lbw-go -- DROP TABLE public.membership_status; CREATE TABLE public.membership_status ( id int2 NOT NULL, -- membership id will refer to user id. using 1:1 relation status_name varchar(30) NOT NULL, description text NULL, CONSTRAINT membership_status_name_un UNIQUE (status_name), CONSTRAINT membership_status_pk PRIMARY KEY (id) ); COMMENT ON TABLE public.membership_status IS 'membership status'; -- Column comments COMMENT ON COLUMN public.membership_status.id IS 'membership id will refer to user id. using 1:1 relation'; -- Permissions ALTER TABLE public.membership_status OWNER TO lotus; GRANT ALL ON TABLE public.membership_status TO lotus; -- ---------------------------------------------- -- DROP TABLE public.membership_mail_app_type; CREATE TABLE public.membership_mail_app_type ( id int2 NOT NULL, type_name varchar(50) NOT NULL, -- Membership type name description text NULL, -- description for the membership service price money NOT NULL DEFAULT 0, -- price of the service created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, -- date time the membership created updated_at timestamp NULL, -- datetime the membershipservice was updated deleted_at timestamp NULL, -- soft delete for the membership status CONSTRAINT membership_mail_app_type_name_un UNIQUE (type_name), CONSTRAINT membership_mail_app_type_pk PRIMARY KEY (id) ); COMMENT ON TABLE public.membership_mail_app_type IS 'Membership of mail app service'; -- Column comments COMMENT ON COLUMN public.membership_mail_app_type.type_name IS 'Membership type name'; COMMENT ON COLUMN public.membership_mail_app_type.description IS 'description for the membership service'; COMMENT ON COLUMN public.membership_mail_app_type.price IS 'price of the service'; COMMENT ON COLUMN public.membership_mail_app_type.created_at IS 'date time the membership created'; COMMENT ON COLUMN public.membership_mail_app_type.updated_at IS 'datetime the membershipservice was updated'; COMMENT ON COLUMN public.membership_mail_app_type.deleted_at IS 'soft delete for the membership status'; -- Permissions ALTER TABLE public.membership_mail_app_type OWNER TO lotus; GRANT ALL ON TABLE public.membership_mail_app_type TO lotus; -- ---------------------------------------------- -- DROP TABLE public.membership_mail_app; CREATE TABLE public.membership_mail_app ( id uuid NOT NULL, type_id int2 NOT NULL DEFAULT 0, -- refer to membership mail app type status_id int2 NOT NULL DEFAULT 0, -- refer to membership status price money NOT NULL DEFAULT 0, -- membership subscription price last_paid_amount money NOT NULL DEFAULT 0, last_paid_at timestamp NULL, subscribed_at timestamp NULL, updated_at timestamp NULL, CONSTRAINT membership_mail_app_pk PRIMARY KEY (id), CONSTRAINT membership_mail_app_status_fk FOREIGN KEY (status_id) REFERENCES public.membership_status(id) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT membership_mail_app_type_fk FOREIGN KEY (type_id) REFERENCES public.membership_mail_app_type(id) ON UPDATE CASCADE, CONSTRAINT membership_mail_app_user_fk FOREIGN KEY (id) REFERENCES public.users(id) ON UPDATE CASCADE ); COMMENT ON TABLE public.membership_mail_app IS 'user membership to mail app service for mail service handler on static site'; -- Column comments COMMENT ON COLUMN public.membership_mail_app.type_id IS 'refer to membership mail app type'; COMMENT ON COLUMN public.membership_mail_app.status_id IS 'refer to membership status'; COMMENT ON COLUMN public.membership_mail_app.price IS 'membership subscription price'; -- Permissions ALTER TABLE public.membership_mail_app OWNER TO lotus; GRANT ALL ON TABLE public.membership_mail_app TO lotus; -- ---------------------------------------------- -- DROP TABLE public.membership_mail_app_config; CREATE TABLE public.membership_mail_app_config ( cfg_id int2 NOT NULL, id uuid NOT NULL, config_name varchar(30) NOT NULL, default_config bool NOT NULL DEFAULT false, -- whether this config is default config or not smtp_server varchar(100) NOT NULL, smtp_port int4 NOT NULL, smtp_username varchar(75) NOT NULL, smtp_password varchar(50) NOT NULL, smtp_sender_email varchar(75) NOT NULL, smtp_sender_identity varchar(50) NOT NULL, active_status bool NOT NULL DEFAULT true, created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at timestamp NULL, deleted_at timestamp NULL, -- soft delete features CONSTRAINT membership_mail_app_config_name_un UNIQUE (config_name), CONSTRAINT membership_mail_app_config_pk PRIMARY KEY (cfg_id, id), CONSTRAINT membership_mail_app_config_users_fk FOREIGN KEY (id) REFERENCES public.users(id) ON DELETE SET NULL ON UPDATE CASCADE ); COMMENT ON TABLE public.membership_mail_app_config IS 'user configuration for their mail server configuration'; -- Column comments COMMENT ON COLUMN public.membership_mail_app_config.default_config IS 'whether this config is default config or not'; COMMENT ON COLUMN public.membership_mail_app_config.deleted_at IS 'soft delete features'; -- Permissions ALTER TABLE public.membership_mail_app_config OWNER TO lotus; GRANT ALL ON TABLE public.membership_mail_app_config TO lotus; -- ----------------------------------------------
ALTER TABLE `resource` MODIFY `dir_path` varchar(45);
<filename>src/main/resources/db/migration/nomis/ddl/V1_402__AGY_INT_LOC_PROFILES.sql CREATE TABLE AGY_INT_LOC_PROFILES ( INTERNAL_LOCATION_ID NUMBER(10,0) NOT NULL, INT_LOC_PROFILE_TYPE VARCHAR2(12 CHAR) NOT NULL, INT_LOC_PROFILE_CODE VARCHAR2(12 CHAR) NOT NULL, CREATE_DATETIME TIMESTAMP DEFAULT systimestamp NOT NULL, CREATE_USER_ID VARCHAR2(32) DEFAULT USER NOT NULL, MODIFY_DATETIME TIMESTAMP, MODIFY_USER_ID VARCHAR2(32), AUDIT_TIMESTAMP TIMESTAMP, AUDIT_USER_ID VARCHAR2(32), AUDIT_MODULE_NAME VARCHAR2(65), AUDIT_CLIENT_USER_ID VARCHAR2(64), AUDIT_CLIENT_IP_ADDRESS VARCHAR2(39), AUDIT_CLIENT_WORKSTATION_NAME VARCHAR2(64), AUDIT_ADDITIONAL_INFO VARCHAR2(256) );
<reponame>andypohl/kent # Add scientificName column to dbDb table # This will have the format: Genus species ALTER TABLE dbDb ADD COLUMN scientificName VARCHAR(255); # Add entries for all organisms currently in table UPDATE dbDb SET scientificName='Papio hamadryas' WHERE organism='Baboon'; UPDATE dbDb SET scientificName='Felis catus' WHERE organism='Cat'; UPDATE dbDb SET scientificName='Gallus gallus' WHERE organism='Chicken'; UPDATE dbDb SET scientificName='Pan troglodytes' WHERE organism='Chimpanzee'; UPDATE dbDb SET scientificName='Ciona intestinalis' WHERE organism='Ciona intestinalis'; UPDATE dbDb SET scientificName='Bos taurus' WHERE organism='Cow'; UPDATE dbDb SET scientificName='Canis familiaris' WHERE organism='Dog'; UPDATE dbDb SET scientificName='Takifugu rubripes' WHERE organism='Fugu'; UPDATE dbDb SET scientificName='Homo sapiens' WHERE organism='Human'; UPDATE dbDb SET scientificName='Mus musculus' WHERE organism='Mouse'; UPDATE dbDb SET scientificName='Plasmodium falciparum' WHERE organism='P. falciparum'; UPDATE dbDb SET scientificName='Pyrobaculum aerophilum' WHERE organism='P. aerophilum'; UPDATE dbDb SET scientificName='Sus scrofa' WHERE organism='Pig'; UPDATE dbDb SET scientificName='Rattus norvegicus' WHERE organism='Rat'; UPDATE dbDb SET scientificName='SARS coronavirus' WHERE organism='SARS'; UPDATE dbDb SET scientificName='Tetraodon nigroviridis' WHERE organism='Tetraodon'; UPDATE dbDb SET scientificName='Caenorhabditis elegans' WHERE genome='C. elegans'; UPDATE dbDb SET scientificName='Caenorhabditis briggsae' WHERE genome='C. briggsae'; UPDATE dbDb SET scientificName='Danio rerio' WHERE organism='Zebrafish';
<gh_stars>0 begin; savepoint SP1; create table T(A int); insert into T values(0); rollback transaction to savepoint SP1; release SP1; select * from T;
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.0.1/constraints/KC_FK_PROTOCOL_VOTE_ABSTAINEES.sql ALTER TABLE PROTOCOL_VOTE_ABSTAINEES ADD CONSTRAINT PROT_VOTE_ABSTNEES_IACPRO_FK1 FOREIGN KEY (IACUC_PROTOCOL_ID_FK) REFERENCES IACUC_PROTOCOL (PROTOCOL_ID) / ALTER TABLE PROTOCOL_VOTE_ABSTAINEES ADD CONSTRAINT PROT_VOTE_ABSTNEES_IACPRO_FK2 FOREIGN KEY (IACUC_SUBMISSION_ID_FK) REFERENCES IACUC_PROTOCOL_SUBMISSION (IACUC_PROTOCOL_SUBMISSION_ID) /
DROP DATABASE IF EXISTS ets_DB; CREATE DATABASE ets_DB; USE ets_DB; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL, ); CREATE TABLE role( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50) NOT NULL, salary DECIMAL (10,2), department_id INT NOT NULL, INDEX department_index (deparment_id), CONSTRAINT fk_department FOREIGN KEY (department_id) REFERENCES department(id) ON DELETE CASCADE ); CREATE TABLE employee( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NOT NULL, manager_id INT NULL, INDEX role_index (role_id), CONSTRAINT fk_role FOREIGN KEY (role_id) REFERENCES role(id) ON DELETE CASCADE, INDEX manager_index (manager_id), CONSTRAINT fk_manager FOREIGN KEY (manager_id) REFERENCES employee(id) ON DELETE SET NULL );
<gh_stars>0 library NonEmergentAmbulanceTransport using FHIR version '3.0.0' include FHIRHelpers version '3.0.0' called FHIRHelpers codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm' codesystem "ICD-9-CM": 'http://hl7.org/fhir/sid/icd-9' codesystem "LOINC": 'http://loinc.org' codesystem "HCPCS": 'https://hcpcs.codes/' codesystem "SNOMED-CT": 'http://snomed.info/sct' codesystem "CPT": 'https://www.aapc.com/resources/medical-coding/cpt.aspx' codesystem "NUCCPT":'https://www.nlm.nih.gov/research/umls/sourcereleasedocs/current/NUCCPT/sourcerepresentation.html' //Reduced mobility code "Z74.0": 'Z74.0' from "ICD-10-CM" //Need for assistance with personal care code "Z74.1": 'Z74.1' from "ICD-10-CM" //Other problems related to care provider dependency code "Z74.8": 'Z74.8' from "ICD-10-CM" //Dependence on other enabling machines and devices code "Z99.8": 'Z99.8' from "ICD-10-CM" //Dialysis code "Z99.2": 'Z99.2' from "ICD-10-CM" //Difficulty in walking, not elsewhere classified code "R26.2": 'R26.2' from "ICD-10-CM" //Fall from moving wheelchair code "V00.811": 'V00.811' from "ICD-10-CM" //Osteoarthritis of knee, unspecified code "M17.9": 'M17.9' from "ICD-10-CM" //Muscle weakness (generalized) code "M62.81": 'M62.81' from "ICD-10-CM" //Physical deconditioning code "R53.81": 'R53.81' from "ICD-10-CM" //Lack of physical exercise code "Z72.3": 'Z72.3' from "ICD-10-CM" //Sequelae of cerebrovascular disease code "I69": 'I69' from "ICD-10-CM" //Presence of other orthopedic joint implants code "Z96.698": 'Z96.698' from "ICD-10-CM" //Acquired absence of limb code "Z89": 'Z89' from "ICD-10-CM" //Acute embolism and thrombosis of unspecified deep veins of lower extremity code "I82.40": 'I82.40' from "ICD-10-CM" //Other symptoms involving nervous and musculoskeletal systems code "781.99": '781.99' from "ICD-9-CM" //Nonunion of fracture code "733.82": '733.82' from "ICD-9-CM" //Bed confinement status code "Z74.01": 'Z74.01' from "ICD-10-CM" //Wound care code "97597": '97597' from "CPT" code "97598": '97598' from "CPT" code "11042": '11042' from "CPT" code "11043": '11043' from "CPT" code "11044": '11044' from "CPT" code "11045": '11045' from "CPT" code "11046": '11046' from "CPT" code "11047": '11047' from "CPT" //Unspecified injury at unspecified level of cervical spinal cord, initial encounter code "S14.109A": 'S14.109A' from "ICD-10-CM" //transient paralysis code "R29.5": 'R29.5' from "ICD-10-CM" //Demyelinating disease of central nervous system, unspecified code "G37.9": 'G37.9' from "ICD-10-CM" // Special radiation treatment code "77470": '77470' from "CPT" //Under care of public health physician (finding) code "305524001": '305524001' from "SNOMED-CT" // Physician supervision of a hospice patient code "99377": '99377' from "CPT" //Physician Assistants & Advanced Practice Nursing Providers; Clinical Nurse Specialist, Home Health code "364SH0200X" : '364SH0200X' from "NUCCPT" //Medicare or comparable number code "45397-7" : '45397-7' from "LOINC" //National provider ID code "45952-9" : '45952-9' from "LOINC" //CMS certification number code "46456-0" : '46456-0' from "LOINC" //Facility Address code "65833-6" : '65833-6' from "LOINC" //hcpcs codes for NonEmergentAmbulanceTransport code "A0426" : 'A0426' from "HCPCS" code "A0428" : 'A0428' from "HCPCS" //Chemotherapy Administration code "Q0083" : 'Q0083' from "HCPCS" code "Q0084" : 'Q0084' from "HCPCS" code "Q0085" : 'Q0085' from "HCPCS" code "Q0081" : 'Q0081' from "HCPCS" code "90772": '90772' from "CPT" code "90773": '90773' from "CPT" code "90774": '90774' from "CPT" code "90775": '90775' from "CPT" code "90776": '90776' from "CPT" code "90779": '90779' from "CPT" //Pain, unspecified code "R52": 'R52' from "ICD-10-CM" //Pressure ulcer of unspecified buttock, stage 2 code "L89.302": 'L89.302' from "ICD-10-CM" //Morbid (severe) obesity due to excess calories code "E66.01": 'E66.01' from "ICD-10-CM" //Need for isolation code "V07.0": 'V07.0' from "ICD-10-CM" //Als specialized service disposable supplies; iv drug therapy code "A0394" : 'A0394' from "HCPCS" //Violent behavior code "R45.6": 'R45.6' from "ICD-10-CM" //Personal history of self-harm code "Z91.5": 'Z91.5' from "ICD-10-CM" //Disorientation, unspecified code "R41.0": 'R41.0' from "ICD-10-CM" //Conduct disorder, unspecified code "F91.9": 'F91.9' from "ICD-10-CM" //Other fatigue code "R53.83": 'R53.83' from "ICD-10-CM" //Unspecified coma code "R40.20": 'R40.20' from "ICD-10-CM" parameter supply_request SupplyRequest parameter "Measurement Period" Interval<DateTime> context Patient define NonEmergentAmbulanceTransportCodes : {'A0426','A0428'} define WoundCare:{'97597','97598','11042','11043','11044','11045','11046','11047'} define Chemotherapy: {'Q0083','Q0084','Q0085','Q0081','90772','90773','90774','90775','90776','90779'} define NonEmergentAmbulanceTransport: singleton from ( [Procedure] service where service.code.coding[0].code.value in "NonEmergentAmbulanceTransportCodes" ) define Today: Today() // Beneficiary info define BeneficiaryNameObject: singleton from (Patient.name) define BeneficiaryName: PatientFirstName +' '+PatientMiddleInitial + ' '+ PatientLastName define PatientLastName: "BeneficiaryNameObject".family.value define PatientMiddleInitial: if (Length("BeneficiaryNameObject".given)>1) then GetMiddleInitials("BeneficiaryNameObject") else '' define PatientFirstName: "BeneficiaryNameObject".given[0].value define BeneficiaryGender: Patient.gender.value define BeneficiaryDateOfBirth: Patient.birthDate.value define BeneficiaryMedicareNumber: (singleton from ( Patient.identifier identifier where identifier.system.value = 'http://hl7.org/fhir/sid/us-medicare')).value.value // Practitioner info define Practitioner: //singleton from ( // [Practitioner] practitioner where practitioner.id.value = '4526007') singleton from ( [Practitioner] practitioner where ('Practitioner/' + practitioner.id.value) = "NonEmergentAmbulanceTransport".performer[0].actor.reference.value) define PractitionerNameObject: singleton from ("Practitioner".name) define PractitionerName: //PractitionerFirstName + ' '+ PractitionerMiddleInitial + ' '+ PractitionerLastName PractitionerFirstName + ' '+ PractitionerLastName define PractitionerLastName: "PractitionerNameObject".family.value define PractitionerMiddleInitial: GetMiddleInitials("PractitionerNameObject") define PractitionerFirstName: "PractitionerNameObject".given[0].value define PractitionerTelephone: (singleton from ( "Practitioner".telecom tele where tele.system.value = 'phone' and tele.use.value='work')).value.value define PractitionerNPI: //'(257) 563-7401' (singleton from ( "Practitioner".identifier identifier where identifier.system.value = 'http://hl7.org/fhir/sid/us-npi')).value.value define PractitionerAddressObject: singleton from ("Practitioner".address address where address.use.value = 'home') define PractitionerPTAN: (singleton from ( "Practitioner".identifier identifier where identifier.type.coding[0].system.value = 'http://terminology.hl7.org/CodeSystem/v2-0203' and identifier.type.coding[0].code.value = 'PRN')).value.value define PractitionerAddress: //'1234 Blvd, Overland Park, KS, 66213' "PractitionerAddressObject".line[0].value +', ' +"PractitionerAddressObject".city.value +', ' +"PractitionerAddressObject".state.value+', ' +"PractitionerAddressObject".postalCode.value // Ambulance Supplier info define SupplyRequestObject: singleton from ([SupplyRequest]) define AmbulanceSupplier: singleton from ( [Organization] org where ('Organization/' + org.id.value) = "SupplyRequestObject".supplier[0].reference.value) //define AmbulanceSupplierService: //singleton from ( //[HealthcareService] service //where ('HealthcareService/' + service.id.value) = supply_request.supplier[0].reference.value) //define AmbulanceSupplier: //if exists(AmbulanceSupplierOrg) then AmbulanceSupplierOrg //else AmbulanceSupplierService define AmbulanceSupplierName: '<NAME>' //"AmbulanceSupplier".name.value //define AmbulanceSupplierNPI: '1935467921' //(singleton from ( //"AmbulanceSupplier".identifier identifier //where identifier.system.value = 'http://hl7.org/fhir/sid/us-npi')).value.value define AmbulanceSupplierPTAN: (singleton from ( "AmbulanceSupplier".identifier identifier where identifier.type.coding[0].system.value = 'http://terminology.hl7.org/CodeSystem/v2-0203' and identifier.type.coding[0].code.value = 'PRN')).value.value define AmbulanceSupplierAddressObject: singleton from ("AmbulanceSupplier".address) define AmbulanceSupplierAddress: '711-2800 Nulla St., Mankato, Mississippi, 96522' //"AmbulanceSupplierAddressObject".line[0].value +', ' +"AmbulanceSupplierAddressObject".city.value +', ' +"AmbulanceSupplierAddressObject".state.value+', ' +"AmbulanceSupplierAddressObject".postalCode.value define SubmissionDate: Today define TransportContraindicated: true define MedicallyRequired: true define Dialysis: singleton from ([Procedure] c where c.code.coding[0].code.value= 'Z99.2') define RadiationTherapy: singleton from ([Procedure] c where c.code.coding[0].code.value= '77470') define WoundCareCondition: singleton from ([Procedure] c where c.code.coding[0].code.value in "WoundCare") define ChemotherapyCondition: singleton from ([Procedure] c where c.code.coding[0].code.value in "Chemotherapy") define BedConfined: if (exists([Observation] c where c.code.coding[0].code.value= 'Z74.01') or exists([Observation] c where c.code.coding[0].code.value= 'R26.2') or exists([Observation] c where c.code.coding[0].code.value= 'Z74.1')) then true else false define SittingPosition: if (exists([Observation] c where c.code.coding[0].code.value= 'V00.811') and exists([Condition] c where c.code.coding[0].code.value= 'M62.81') and exists([Condition] c where c.code.coding[0].code.value= 'R53.81')) then true else false define FracturesCondition: singleton from ([Condition] c where c.code.coding[0].code.value ='733.82') define Osteoarthritis: singleton from ([Condition] c where c.code.coding[0].code.value ='M17.9') define MuscularWeakness: if (exists([Observation] c where c.code.coding[0].code.value= 'Z72.3') and exists([Condition] c where c.code.coding[0].code.value= 'M62.81') and exists([Condition] c where c.code.coding[0].code.value= 'R53.81')) then true else false define OrthopedicJointImplants: singleton from ([Condition] c where c.code.coding[0].code.value ='Z96.698') define Amputation: singleton from ([Condition] c where c.code.coding[0].code.value ='Z89') define CVAWithSequelae: singleton from ([Condition] c where c.code.coding[0].code.value ='I69') define DVT: singleton from ([Condition] c where c.code.coding[0].code.value ='I82.40') define DemyelinatingDisease: singleton from ([Condition] c where c.code.coding[0].code.value ='G37.9') define Ulcer: if (exists([Condition] c where c.code.coding[0].code.value= 'L89.302')) then true else false define MorbidObesity: if (exists([Observation] c where c.code.coding[0].code.value= 'Z74.1') and exists([Observation] c where c.code.coding[0].code.value= 'Z99.8') and exists([Condition] c where c.code.coding[0].code.value= 'E66.01')) then true else false define IVMedications: singleton from ([Procedure] c where c.code.coding[0].code.value= 'A0394') define Isolation: singleton from ([Observation] c where c.code.coding[0].code.value= 'V07.0') define Danger: if (exists([Observation] c where c.code.coding[0].code.value= 'Z91.5') or exists([Condition] c where c.code.coding[0].code.value= 'R45.6')) then true else false define MentalCondition: if (exists([Condition] c where c.code.coding[0].code.value= 'R41.0') or exists([Condition] c where c.code.coding[0].code.value= 'F91.9') or exists([Condition] c where c.code.coding[0].code.value= 'R53.83') or exists([Condition] c where c.code.coding[0].code.value= 'R40.20')) then true else false define RelevantDiagnoses: { if exists("Dialysis") then 'Dialysis' else 'null', if exists("RiskOfFalling") then 'Risk of falling off wheelchair or stretcher while in motion (not related to obesity)' else 'null', if exists("WoundCareCondition") then 'Wound care' else 'null', if exists("RadiationTherapy") then 'Radiation therapy' else 'null', if exists("ChemotherapyCondition") then 'Chemotherapy' else 'null', if "BedConfined" then 'Bed confined (Unable to ambulate, Unable to get out of bed without assistance, Unable to safely sit in a chair or wheelchair)' else 'null', if "SittingPosition" then 'Unable to maintain erect sitting position in a chair for time needed to transport, due to moderate muscular weakness and de-conditioning' else 'null', if exists("FracturesCondition") then 'Non-healed fractures requiring ambulance' else 'null', if exists("Osteoarthritis") then 'Incapacitating Osteoarthritis' else 'null', if "MuscularWeakness" then 'Severe muscular weakness and de-conditioned state precludes any significant physical activity' else 'null', if exists("OrthopedicJointImplants") then 'Orthopedic device required in transit' else 'null', if exists("Amputation") then 'Amputation(s)' else 'null', if exists("CVAWithSequelae") then 'CVA with sequelae (late effect of CVA) that impair mobility and result in be confinement' else 'null', if exists("DVT") then 'DVT requires elevation of lower extremity' else 'null', if exists("DemyelinatingDisease") then 'Progressive demyelinating disease' else 'null', if exists([Condition] c where c.code.coding[0].code.value ='R52') then 'Moderate to severe pain on movement' else 'null', if "Ulcer" then 'Unable to sit in chair or wheelchair due to Grade II or greater decubitus ulcers on buttocks' else 'null', if "MorbidObesity" then 'Morbid obesity requires additional personnel/equipment to handle' else 'null', if exists("IVMedications") then 'IV medications/fluids required during transport' else 'null', if exists("Isolation") then 'Special handling en route – isolation' else 'null', if "Danger" then 'Danger to self or others' else 'null', if "MentalCondition" then 'Confused, combative, lethargic, comatose' else 'null' } define RiskOfFalling: singleton from ([Observation] c where c.code.coding[0].code.value= 'V00.811') define LocationFromObject: singleton from ([Location] l1 where ('Location/' + l1.id.value) = "SupplyRequestObject".deliverFrom.reference.value) define LocationToObject: singleton from ([Location] l2 where ('Location/' + l2.id.value) = "SupplyRequestObject".deliverTo.reference.value) define LocationFromAddressObject: singleton from ("LocationFromObject".address) define TransportFrom: '15208 West 119th Street, Olathe, KS, 66213' //"LocationFromAddressObject".line[0].value +', ' +"LocationFromAddressObject".city.value +', ' +"LocationFromAddressObject".state.value+', ' +"LocationFromAddressObject".postalCode.value define LocationToAddressObject: singleton from ("LocationToObject".address) define TransportTo: '1234 Blvd, Overland Park, KS, 66213' //"LocationToAddressObject".line[0].value +', ' +"LocationToAddressObject".city.value +', ' +"LocationToAddressObject".state.value+', ' +"LocationToAddressObject".postalCode.value define RoundTrip: false define "ExpeditedRequestBoolean": true define NumofTransports: 2 //Requestor info define Requestor: singleton from ( [Practitioner] practitioner where ('Practitioner/' + practitioner.id.value) = "NonEmergentAmbulanceTransport".performer[0].actor.reference.value) define RequestorNameObject: singleton from ("Requestor".name) define RequestorName: //PractitionerFirstName + ' '+ PractitionerMiddleInitial + ' '+ PractitionerLastName RequestorFirstName + ' '+ RequestorLastName define RequestorLastName: "RequestorNameObject".family.value define RequestorMiddleInitial: GetMiddleInitials("RequestorNameObject") define RequestorFirstName: "RequestorNameObject".given[0].value define RequestorTelephone: //'(257) 563-7401' (singleton from ( "Requestor".telecom tele where tele.system.value = 'phone' and tele.use.value='work')).value.value //define Typeofrequest: {'Initial'} define StartDate: "NonEmergentAmbulanceTransport".performed.start.value define function GetMiddleInitials(name FHIR.HumanName): Substring(Combine((name.given given return Substring(given.value,0,1)),', '),3) define function GetProcedure(ProcedureList List<Procedure>, ProcedureCode String): ProcedureList P where P.code.coding[0].code.value= ProcedureCode
CREATE KEYSPACE IF NOT EXISTS raintank WITH replication = {'class': 'NetworkTopologyStrategy', 'us-central1': '2'} AND durable_writes = true; CREATE TABLE IF NOT EXISTS raintank.metric ( key ascii, ts int, data blob, PRIMARY KEY (key, ts) ) WITH CLUSTERING ORDER BY (ts DESC) AND compaction = {'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy', 'compaction_window_unit': 'DAYS', 'compaction_window_size': '1' } AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'};
<gh_stars>0 If Not Exists (Select * From sys.columns Where Name = N'PatientClassification' And Object_ID = Object_id(N'Ord_Visit')) Begin ALTER TABLE Ord_Visit ADD PatientClassification int; End Go If Not Exists (Select * From sys.columns Where Name = N'IsEnrolDifferenciatedCare' And Object_ID = Object_id(N'Ord_Visit')) Begin ALTER TABLE Ord_Visit ADD IsEnrolDifferenciatedCare bit; End Go If Not Exists (Select * From sys.columns Where Name = N'ARTRefillModel' And Object_ID = Object_id(N'Ord_Visit')) Begin ALTER TABLE Ord_Visit ADD ARTRefillModel int; End Go
<reponame>drkennetz/CodingChallengeSite -- insert me as a user insert into public.accounts (full_name, email, opted_in) values('<NAME>', '<EMAIL>', true); insert into public.users (account_id, admin_user, username, password, grade) values(1, true, 'drkennetz', 'password', '<PASSWORD>'); -- insert generic users for data recovery upon deleted accounts insert into public.accounts (full_name, email, opted_in) values('Beginner Store', '<EMAIL>', false); insert into public.accounts (full_name, email, opted_in) values('Junior Store', '<EMAIL>', false); insert into public.accounts (full_name, email, opted_in) values('Midlevel Store', '<EMAIL>', false); insert into public.accounts (full_name, email, opted_in) values('Senior Store', '<EMAIL>', false); insert into public.users (account_id, admin_user, username, password, grade) values((SELECT id from accounts where email = '<EMAIL>'), false, 'beginner', '<PASSWORD>!', 'begin<PASSWORD>'); insert into public.users (account_id, admin_user, username, password, grade) values((SELECT id from accounts where email = '<EMAIL>'), false, 'junior', '<PASSWORD>!', 'junior'); insert into public.users (account_id, admin_user, username, password, grade) values((SELECT id from accounts where email = '<EMAIL>'), false, 'midlevel', '<PASSWORD>!', 'midlevel'); insert into public.users (account_id, admin_user, username, password, grade) values((SELECT id from accounts where email = '<EMAIL>'), false, 'senior', '<PASSWORD>!', 'senior'); -- add public.categories insert into public.categories (category) values('math'); insert into public.categories (category) values('strings'); insert into public.categories (category) values('arrays'); -- add some sample questions insert into public.questions (challenge_name, description, example, difficulty, complexity, completion_time, question_type) values('Sum of Squares', 'Given a positive integer n, find the smallest number of squared integers which sum to n.', 'SumOfSquares(13)=>2; For n=13: 3^2 + 2^2 = 9 + 4 = 13 => 2', 1, 'O(NlogN) time | O(N) space', 30, 'practice'); insert into public.questions (challenge_name, description, example, difficulty, complexity, completion_time, question_type) values('Potential Palindrome', 'Given a string, determine whether any permutation of it is a palindrome. A palindrome is any string that can be read the same both forwards and backwards, such as kayak. Case and punctuation / spaces should be ignored.', 'PotentialPalindrome("kayak")=>true; PotentialPalindrome("Kayak")=>true; PotentialPalindrome("Yo Banana boy.")=>true', 1, 'O(N) time | O(1) space', 20, 'practice'); insert into public.questions (challenge_name, description, example, difficulty, complexity, completion_time, question_type) values('Monotonic Array', 'Given an array, determine if the array is monotonic and return a boolean. An array is monotonic if it is entirely non-decreasing or entirely non-increasing.', 'IsMonotonic([1, 1, 1, 1])=>true, IsMonotonic([1, 2, 3, 3]=>true, IsMonotonic([3, 2, 1])=>true, IsMonotonic([1, 2, 3, 2])=>false', 2, 'O(N) time | O(1) space', 30, 'practice'); -- create some linkages between questions and categories insert into public.question_categories (question_id, category_id) values (1, 1); insert into public.question_categories (question_id, category_id) values (2, 2); insert into public.question_categories (question_id, category_id) values (3, 3); -- need multiple test case tables that store a question category id -- add some test cases to the questions insert into public.question_test_cases (question_id, inputs, outputs) values (1, '{"math": 13}', '{"math": 2}'); insert into public.question_test_cases (question_id, inputs, outputs) values (1, '{"math": 27}', '{"math": 3}'); insert into public.question_test_cases (question_id, inputs, outputs) values (1, '{"math": 144}', '{"math": 1}'); insert into public.question_test_cases (question_id, inputs, outputs) values (1, '{"math": 84}', '{"math": 3}'); insert into public.question_test_cases (question_id, inputs, outputs) values (1, '{"math": 85}', '{"math": 2}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "kayak"}', '{"strings": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "Kayak"}', '{"strings": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "Yo Banana boy."}', '{"strings": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "this is not a palindrome."}', '{"strings": false}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "civic duty"}', '{"strings": false}'); insert into public.question_test_cases (question_id, inputs, outputs) values (2, '{"strings": "d civicd"}', '{"strings": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": []}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [1]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [1, 2, 3, 4, 5]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [2, 2, 2, 2]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [5, 4, 3, 2, 1, 2]}', '{"arrays": false}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [2, 1, 2, 3, 4, 5]}', '{"arrays": false}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [5, 4, 3, 2, 1]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [-5, -4, -3, -2, -1]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [1, 0, -1, -2, -3, -4, -5]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [1, 1, 1, 2]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [5, 5, 5, 2, 1]}', '{"arrays": true}'); insert into public.question_test_cases (question_id, inputs, outputs) values (3, '{"arrays": [1, 2, 5, 2, 1]}', '{"arrays": false}');
ALTER TABLE gspanother.INDEX_TEST3 ADD CONSTRAINT PK_INDEX_TEST12 PRIMARY KEY ( INDEX_TEST3_ID );
SELECT tab0.v1 AS v1 , tab6.v7 AS v7 , tab4.v5 AS v5 , tab5.v6 AS v6 , tab3.v4 AS v4 , tab2.v3 AS v3 , tab7.v8 AS v8 , tab1.v2 AS v2 FROM (SELECT obj AS v1 FROM gr__offers$$1$$ WHERE sub = 'wsdbm:Retailer27355' ) tab0 JOIN (SELECT sub AS v1 , obj AS v2 FROM gr__includes$$2$$ ) tab1 ON(tab0.v1=tab1.v1) JOIN (SELECT obj AS v3 , sub AS v2 FROM sorg__author$$3$$ ) tab2 ON(tab1.v2=tab2.v2) JOIN (SELECT obj AS v4 , sub AS v3 FROM wsdbm__friendOf$$4$$ ) tab3 ON(tab2.v3=tab3.v3) JOIN (SELECT obj AS v5 , sub AS v4 FROM wsdbm__friendOf$$5$$ ) tab4 ON(tab3.v4=tab4.v4) JOIN (SELECT sub AS v5 , obj AS v6 FROM wsdbm__makesPurchase$$6$$ ) tab5 ON(tab4.v5=tab5.v5) JOIN (SELECT obj AS v7 , sub AS v6 FROM wsdbm__purchaseFor$$7$$ ) tab6 ON(tab5.v6=tab6.v6) JOIN (SELECT sub AS v7 , obj AS v8 FROM foaf__homepage$$8$$ ) tab7 ON(tab6.v7=tab7.v7) ++++++Tables Statistic wsdbm__makesPurchase$$6$$ 0 VP wsdbm__makesPurchase/ VP <wsdbm__makesPurchase> 14999930 SO <wsdbm__makesPurchase><wsdbm__friendOf> 14999930 1.0 OS <wsdbm__makesPurchase><wsdbm__purchaseFor> 14999930 1.0 ------ sorg__author$$3$$ 2 OS sorg__author/wsdbm__friendOf VP <sorg__author> 399974 SO <sorg__author><gr__includes> 389021 0.97 OS <sorg__author><wsdbm__friendOf> 158561 0.4 ------ gr__offers$$1$$ 0 VP gr__offers/ VP <gr__offers> 14156906 OS <gr__offers><gr__includes> 14156906 1.0 ------ wsdbm__purchaseFor$$7$$ 2 OS wsdbm__purchaseFor/foaf__homepage VP <wsdbm__purchaseFor> 15000000 SO <wsdbm__purchaseFor><wsdbm__makesPurchase> 14999930 1.0 OS <wsdbm__purchaseFor><foaf__homepage> 3145979 0.21 ------ wsdbm__friendOf$$4$$ 1 SO wsdbm__friendOf/sorg__author VP <wsdbm__friendOf> 449969341 SO <wsdbm__friendOf><sorg__author> 16939400 0.04 OS <wsdbm__friendOf><wsdbm__friendOf> 179722774 0.4 ------ gr__includes$$2$$ 2 OS gr__includes/sorg__author VP <gr__includes> 9000000 SO <gr__includes><gr__offers> 4166185 0.46 OS <gr__includes><sorg__author> 954086 0.11 ------ foaf__homepage$$8$$ 1 SO foaf__homepage/wsdbm__purchaseFor VP <foaf__homepage> 1118496 SO <foaf__homepage><wsdbm__purchaseFor> 379161 0.34 ------ wsdbm__friendOf$$5$$ 2 OS wsdbm__friendOf/wsdbm__makesPurchase VP <wsdbm__friendOf> 449969341 SO <wsdbm__friendOf><wsdbm__friendOf> 449969341 1.0 OS <wsdbm__friendOf><wsdbm__makesPurchase> 71070457 0.16 ------
<gh_stars>1-10 {{ config(tags=["requires_script"]) }} select * from {{ ref('data_snowplow_delete_from_manifest') }} where model not in ({% for model in var("models_to_delete",[]) %} '{{ model }}' {% if not loop.last %}, {% endif %} {% endfor %})
SET CONSTRAINTS ALL IMMEDIATE SET CONSTRAINTS foo, bar IMMEDIATE SET CONSTRAINTS ALL DEFERRED SET CONSTRAINTS foo, bar DEFERRED SET TIME ZONE LOCAL SET LOCAL TIME ZONE DEFAULT SET SESSION TIME ZONE 'Europe/Rome' SET datestyle TO postgres, dmy SET search_path TO my_schema, public
-- View: synthese.v_tree_taxons_synthese CREATE OR REPLACE VIEW synthese.v_tree_taxons_synthese AS WITH taxon AS ( SELECT n.id_nom, t_1.cd_ref, t_1.lb_nom AS nom_latin, CASE WHEN n.nom_francais IS NULL THEN t_1.lb_nom WHEN n.nom_francais::text = ''::text THEN t_1.lb_nom ELSE n.nom_francais END AS nom_francais, t_1.cd_nom, t_1.id_rang, t_1.regne, t_1.phylum, t_1.classe, t_1.ordre, t_1.famille, t_1.lb_nom FROM taxonomie.taxref t_1 LEFT JOIN taxonomie.bib_noms n ON n.cd_nom = t_1.cd_nom WHERE (t_1.cd_nom IN ( SELECT DISTINCT syntheseff.cd_nom FROM synthese.syntheseff)) ) SELECT t.id_nom, t.cd_ref, t.nom_latin, t.nom_francais, t.id_regne, t.nom_regne, COALESCE(t.id_embranchement, t.id_regne) AS id_embranchement, COALESCE(t.nom_embranchement, ' Sans embranchement dans taxref'::character varying) AS nom_embranchement, COALESCE(t.id_classe, t.id_embranchement) AS id_classe, COALESCE(t.nom_classe, ' Sans classe dans taxref'::character varying) AS nom_classe, COALESCE(t.desc_classe, ' Sans classe dans taxref'::character varying) AS desc_classe, COALESCE(t.id_ordre, t.id_classe) AS id_ordre, COALESCE(t.nom_ordre, ' Sans ordre dans taxref'::character varying) AS nom_ordre, COALESCE(t.id_famille, t.id_ordre) AS id_famille, COALESCE(t.nom_famille, ' Sans famille dans taxref'::character varying) AS nom_famille FROM ( SELECT DISTINCT t_1.id_nom, t_1.cd_ref, t_1.nom_latin, t_1.nom_francais, ( SELECT taxref.cd_nom FROM taxonomie.taxref WHERE taxref.id_rang = 'KD'::bpchar AND taxref.lb_nom::text = t_1.regne::text) AS id_regne, t_1.regne AS nom_regne, ph.cd_nom AS id_embranchement, t_1.phylum AS nom_embranchement, t_1.phylum AS desc_embranchement, cl.cd_nom AS id_classe, t_1.classe AS nom_classe, t_1.classe AS desc_classe, ord.cd_nom AS id_ordre, t_1.ordre AS nom_ordre, f.cd_nom AS id_famille, t_1.famille AS nom_famille FROM taxon t_1 LEFT JOIN taxonomie.taxref ph ON ph.id_rang = 'PH'::bpchar AND ph.cd_nom = ph.cd_ref AND ph.lb_nom::text = t_1.phylum::text AND NOT t_1.phylum IS NULL LEFT JOIN taxonomie.taxref cl ON cl.id_rang = 'CL'::bpchar AND cl.cd_nom = cl.cd_ref AND cl.lb_nom::text = t_1.classe::text AND NOT t_1.classe IS NULL LEFT JOIN taxonomie.taxref ord ON ord.id_rang = 'OR'::bpchar AND ord.cd_nom = ord.cd_ref AND ord.lb_nom::text = t_1.ordre::text AND NOT t_1.ordre IS NULL LEFT JOIN taxonomie.taxref f ON f.id_rang = 'FM'::bpchar AND f.cd_nom = f.cd_ref AND f.lb_nom::text = t_1.famille::text AND f.phylum::text = t_1.phylum::text AND NOT t_1.famille IS NULL) t; ----- MAJ de 2 fonctions pour le contactflore CREATE OR REPLACE FUNCTION contactflore.update_releve_cflore() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE re integer; BEGIN -- Si changement de taxon, IF new.id_nom<>old.id_nom THEN -- Correction du cd_ref_origine SELECT INTO re taxonomie.find_cdref(cd_nom) FROM taxonomie.bib_noms WHERE id_nom = new.id_nom; new.cd_ref_origine = re; END IF; RETURN NEW; END; $$; CREATE OR REPLACE FUNCTION contactflore.insert_releve_cflore() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE cdnom integer; re integer; unite integer; nbobs integer; line record; fiche record; BEGIN --récup du cd_nom du taxon SELECT INTO cdnom cd_nom FROM taxonomie.bib_noms WHERE id_nom = new.id_nom; --récup du cd_ref du taxon pour le stocker en base au moment de l'enregistrement (= conseil inpn) SELECT INTO re taxonomie.find_cdref(cd_nom) FROM taxonomie.bib_noms WHERE id_nom = new.id_nom; new.cd_ref_origine = re; -- MAJ de la table cor_unite_taxon_cflore, on commence par récupérer l'unité à partir du pointage (table t_fiches_cf) SELECT INTO fiche * FROM contactflore.t_fiches_cflore WHERE id_cflore = new.id_cflore; SELECT INTO unite u.id_unite_geo FROM layers.l_unites_geo u WHERE ST_INTERSECTS(fiche.the_geom_2154,u.the_geom); --si on est dans une des unités on peut mettre à jour la table cor_unite_taxon_cflore, sinon on fait rien IF unite>0 THEN SELECT INTO line * FROM contactflore.cor_unite_taxon_cflore WHERE id_unite_geo = unite AND id_nom = new.id_nom; --si la ligne existe dans cor_unite_taxon_cflore on la supprime IF line IS NOT NULL THEN DELETE FROM contactflore.cor_unite_taxon_cflore WHERE id_unite_geo = unite AND id_nom = new.id_nom; END IF; --on compte le nombre d'enregistrement pour ce taxon dans l'unité SELECT INTO nbobs count(*) from synthese.syntheseff s JOIN layers.l_unites_geo u ON ST_Intersects(u.the_geom, s.the_geom_2154) AND u.id_unite_geo = unite WHERE s.cd_nom = cdnom; --on créé ou recréé la ligne INSERT INTO contactflore.cor_unite_taxon_cflore VALUES(unite,new.id_nom,fiche.dateobs,contactflore.couleur_taxon(new.id_nom,fiche.dateobs), nbobs+1); END IF; RETURN NEW; END; $$;
############################################################### # Migration: V2.1.7.8__Insert_new_monitor_usage_keys.sql # # Adding in new Monitor History table and usage Activities to track # history events # # Database changes: # # Table changes: # + monitorevents # # Index changes: # # Column changes: # # Data changes: # + UsageActivities # + MonitorHistoryGet # + MonitorHistoryList # + MonitorHistoryGetById # ################################################################# CREATE TABLE IF NOT EXISTS `monitorevents` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created` datetime NOT NULL, `created_by` varchar(32) CHARACTER SET latin1 NOT NULL, `description` varchar(128) CHARACTER SET latin1 DEFAULT NULL, `entity_uuid` varchar(64) CHARACTER SET latin1 NOT NULL, `ip_address` varchar(15) CHARACTER SET latin1 NOT NULL, `status` varchar(32) CHARACTER SET latin1 NOT NULL, `tenant_id` varchar(64) CHARACTER SET latin1 NOT NULL, `uuid` varchar(64) CHARACTER SET latin1 NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), UNIQUE KEY `uuid` (`uuid`), KEY `entity_uuid` (`entity_uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `UsageActivities` (`id`, `ActivityKey`, `Description`, `ServiceKey`) SELECT NULL, 'MonitorHistoryGet', NULL, 'MONITORS02' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM `UsageActivities` WHERE `ActivityKey` = 'MonitorHistoryGet' AND `ServiceKey` = 'MONITORS02'); INSERT INTO `UsageActivities` (`id`, `ActivityKey`, `Description`, `ServiceKey`) SELECT NULL, 'MonitorHistoryList', NULL, 'MONITORS02' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM `UsageActivities` WHERE `ActivityKey` = 'MonitorHistoryList' AND `ServiceKey` = 'MONITORS02'); INSERT INTO `UsageActivities` (`id`, `ActivityKey`, `Description`, `ServiceKey`) SELECT NULL, 'MonitorHistoryGetById', NULL, 'MONITORS02' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM `UsageActivities` WHERE `ActivityKey` = 'MonitorHistoryGetById' AND `ServiceKey` = 'MONITORS02');
-- MySQL dump 10.13 Distrib 8.0.27, for macos11.6 (x86_64) -- -- Host: 127.0.0.1 Database: project_db -- ------------------------------------------------------ -- Server version 8.0.27 /*!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 utf8mb4 */; /*!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 `records` -- DROP TABLE IF EXISTS `records`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `records` ( `id` int unsigned NOT NULL, `first_name` varchar(200) COLLATE utf8_bin NOT NULL, `last_name` varchar(200) COLLATE utf8_bin NOT NULL, `email_address` varchar(255) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `records` -- LOCK TABLES `records` WRITE; /*!40000 ALTER TABLE `records` DISABLE KEYS */; INSERT INTO `records` VALUES (2,'Steve','McGarrett','<EMAIL>'),(3,'Danny','Williams','<EMAIL>'),(4,'Kamekona','','<EMAIL>'),(5,'<NAME>','Kelly','<EMAIL>'),(6,'Kono','Kalakaua','<EMAIL>'),(7,'Lou','Grover','<EMAIL>'),(8,'Duke','Lukela','<EMAIL>'),(9,'Max','Bergman','<EMAIL>'),(10,'Jerry','Ortega','<EMAIL>'),(11,'Adam','Noshimuri','<EMAIL>'); /*!40000 ALTER TABLE `records` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-11-09 10:20:53
-- @testpoint: IN --右侧括号中的是一个表达式列表。 --左侧表达式的结果与表达式列表的内容进行比较。 --如果列表中的内容符合左侧表达式的结果,则IN的结果为true。 --如果没有相符的结果,则IN的结果为false。 --一般常用的数值,日期,和字符表达式,与函数结合 SELECT 8000+500 IN (10000, 9000) AS RESULT; SELECT 'hello'::TEXT || ' world'::TEXT IN ('hello world', 'hello','world') AS RESULT; SELECT ADD_MONTHS('2020-10-13',1) IN ('2020-11-01'::timestamp,'2020-11-13 00:00:05'::timestamp,'2020-11-04'::timestamp) AS RESULT; --表达式结果为null,IN返回NULL SELECT null IN (10000, 9000) AS RESULT; --表达式列表不符合表达式的条件且右侧表达式列表返回结果至少一处为空,IN返回NULL SELECT 8000+500 IN (10000, 9000, null) AS RESULT; --表达式列表符合表达式的条件且右侧表达式列表返回结果至少一处为空,IN返回TRUE SELECT 8000+2000 IN (10000, 9000, null) AS RESULT; --表达式列表不符合表达式的条件且右侧表达式列表返回结果均不为空,IN返回FALSE SELECT 8000+200 IN (10000, 9000) AS RESULT; --环境清理 --no need to clean
/* * This file is used to test the function of sort & sortagg with LLVM Optimization */ ---- --- Create Table and Insert Data ---- drop schema if exists llvm_vecsort_engine2 cascade; create schema llvm_vecsort_engine2; set current_schema = llvm_vecsort_engine2; set codegen_cost_threshold=0; create table llvm_vecsort_engine2.LLVM_VECSORT_TABLE_03 ( L_ORDERKEY BIGINT NOT NULL , L_PARTKEY BIGINT NOT NULL , L_SUPPKEY BIGINT NOT NULL , L_LINENUMBER BIGINT NOT NULL , L_QUANTITY DECIMAL(15,2) NOT NULL , L_EXTENDEDPRICE DECIMAL(15,2) NOT NULL , L_DISCOUNT DECIMAL(15,2) NOT NULL , L_TAX DECIMAL(15,2) NOT NULL , L_RETURNFLAG CHAR(1) NOT NULL , L_LINESTATUS CHAR(1) NOT NULL , L_SHIPDATE DATE NOT NULL , L_COMMITDATE DATE NOT NULL , L_RECEIPTDATE DATE NOT NULL , L_SHIPINSTRUCT CHAR(25) NOT NULL , L_SHIPMODE CHAR(10) NOT NULL , L_COMMENT VARCHAR(44) NOT NULL ) with (orientation = column); insert into llvm_vecsort_table_03 select * from vector_engine.lineitem_vec where L_ORDERKEY < 4962; create table llvm_vecsort_engine2.LLVM_VECSORT_TABLE_04 ( col_int int ,col_bint bigint ,col_num1 numeric ,col_num2 numeric ,col_num3 numeric(8,2) ,col_num4 numeric(20,2) ,col_vchar varchar ,col_text text ) with (orientation = column); copy llvm_vecsort_table_04 from stdin; 1 123 -0.12587459 987654384193888888888888 2.56 2563.254 bebestme sheisbeautiful 1 256 0 569842.2564789556211452145236 3.65 584.257 bebestmeto sheissobeautiful 1 2 2.458 587.254 658.25 3.6 bebestme sheisbeautiful 2 254 1542 6589.36 12.25 254.6 bebestyou bebestyou 2 254 65.24 -0.00000000000000000000000000012 12.24 58.65 bebestme seeyoutomorrow 2 142 -2541.6587 254632541 2.25 6.36 bebestme likeyou 2 65 -415.5477893125447583 698547452455662245587 2.36 12548254.36 bebestyou seeyoutomorrow 2 6325487 15246.2548879666336 25.125000001 25.25 65.36 bebestyou seeyoutomorrow 4 542 45269858796 41.25488896 6.36 12.25 justforyou begreat 78 698 452.2547 0 1.25 5.25 justforyou likeyou -587 569874 652.00 0.01 5623.36 69.36 likemeforeverandgoneverseethetime howaboutthiscse 0 -2541 0.012 23654.3698775244562 2.3 3.65 youreallyme payformagic 45 8597 256987.00000000 25478963542.25644878632 1.25 6.36 youreallyme playmagic 58 41 -10.012548 542.2558 6.36 25.21 justforyou A 65 5879 0.000000000000000000000000002 102478.25874 78.21 69.36 justforyou kattypary 96 14 -25.36 69365256348996666254.63 2.35 63.48 findanotherday BB 75 598756324489 36.215 7.256369 2.0 14.21 Findanotherday cC 78 2587365 1489636987 365215.25214 78.20 6.0 \N Disble 95 0 2.01 5263.369874152 2.1 6.5 findanotherday justforyou -0 -0 0.0 0.0 5.2 4.6 likemeforeverandgoneverseethetime likemeforeverandgoneverseethetime -23 5 25.36 3.36 2.25 6.3 kindle kindle 5 56 2.25 25.36587954893 2.1 3.65 justforyou justforyou 12 963 1458752.365 63.36 2.12 3.6 behappy heimifan \. analyze llvm_vecsort_table_03; analyze llvm_vecsort_table_04; ---- --- test1 : test comparemulticolumns with different data type in sort node ---- -- test with numric type select col_num1, col_num2 from llvm_vecsort_table_04 order by col_num1, col_num2, col_int; select col_num1, col_vchar from llvm_vecsort_table_04 order by col_num1, col_vchar, col_num2; select col_num2, col_text from llvm_vecsort_table_04 order by col_num2, col_text, col_bint; ---- --- test2 : test comparemulticolumns with limit node ---- select col_num1, col_num2, col_num3 from llvm_vecsort_table_04 order by col_num1, col_num3 limit 4 offset 5; select col_num2, col_num4, col_text from llvm_vecsort_table_04 order by col_num2, col_num4 limit 10; ---- --- test3 : test sortagg with only group by rollup(...) case ---- select sum(col_num1), col_vchar, col_text from llvm_vecsort_table_04 group by rollup(col_vchar, col_text) order by 1, 2, 3; ---- --- test4 : test mergejoin with sort node ---- set enable_nestloop = off; set enable_hashjoin = off; select A.col_text, B.col_text, sum(A.col_num1) from llvm_vecsort_table_04 A inner join llvm_vecsort_table_04 B on A.col_text = B.col_text group by rollup(1, 2), 1, 2 order by 1, 2, 3; reset enable_nestloop; reset enable_hashjoin; ---- --- test5 : test window func with sort operation ---- select col_num1, col_num4, rank() over(order by col_num2) from llvm_vecsort_table_04 order by 1, 2, 3; ---- --- test6 : test comparemulticolumns with external sort ---- set work_mem=64; set query_mem=0; explain (analyze on, costs off, timing off) select * from llvm_vecsort_table_03 order by 1,2,3,4,5,6,7,8,9,10,14,15,16; select * from llvm_vecsort_table_03 order by 1,2,3,4,5,6,7,8,9,10,14,15,16; reset work_mem; reset query_mem; ---- --- clean table and resource ---- drop schema llvm_vecsort_engine2 cascade; ---- --- case 7 : test llvm sort with lc_collate 'C' ---- create database llvmsortdb with lc_collate='C' template template0; \c llvmsortdb drop schema if exists llvm_vecsort_c_engine cascade; create schema llvm_vecsort_c_engine; set current_schema = llvm_vecsort_c_engine; set codegen_cost_threshold=0; create table llvm_vecsort_c_engine.LLVM_VECSORT_TABLE( col_int int, col_bint bigint, col_bchar1 bpchar(3), col_bchar2 bpchar(9), col_bchar3 bpchar(18), col_bchar4 bpchar(24), col_vchar1 varchar(8), col_vchar2 varchar(11), col_vchar3 varchar(23), col_vchar4 varchar(40) )with(orientation=column); copy llvm_vecsort_table from stdin; 1 1 TUI XJPUIO tianjing j00142589678 test bottle whatisgoodfortodaysfood begreat 2 256 ZUI ZUKK beijing bookisfriend far bottle zooisforchildren letusmakeupajokeforteacher 1 3 AMX XJPUIO shijiazhu kehlssince1985 LK outputlink mergesort hereissheandbeau 3 5 KIL begood kehlssince be funk outputlink mergesort formulatedwithsqualanceandantioxidant 9 52 aMX yesterday TINK likeherea begreat justforyou mergesortinternal formulatedwithsqualanceandantioxidant 7 25 nil KUL likehim beagoodguy how \N awayfromhome whataboutwhat -2 582 UIL be akindleissogood Zo ugg ugg ki u 158 6 tea beauty while ZooK be P mergesortinternal likehere 7 -21 AMX KUL \N dayisdayisday ZK TINK begreater \N 90 34 AMX AMX Pig \N bottle outputlink mergesort hereissheandbeau 90 -2134 P teaandtea howaboutthis Z C LK outputlink hereisshe 0 24 lp about dataisgooddata five Zo uuc testa farha -2 25 oK just justforyou begreat bebestme seeyou seeyoutomorrow seeyoutomorrow 1 2 Kij \N bebestmeto bebestme likeyou a sheisbeautiful outputlink 15 -72 TMT likehim beagoodguy justforfunand how \N awayfromhome whataboutwhat 7 -31 TH beauty beagoodguy akindleissogood Zo zara TINK letusmakeupajokeforteacher 3 1 far book algorithm analysis \N Rq Request input 7 14 Y value outpit see you andI zara keep 8 32 \N UIL beagoodguy AJ uuc testa far ABT \. analyze llvm_vecsort_table; select col_bchar1, col_bchar3 from llvm_vecsort_table order by col_bchar1, col_bchar3; select col_bchar2, col_vchar2 from llvm_vecsort_table order by col_bchar2, col_vchar2; select col_vchar1, col_vchar4 from llvm_vecsort_table order by col_vchar1, col_vchar4; select col_bchar2, col_bchar4 from llvm_vecsort_table order by col_bchar2, col_bchar4 limit 5; select col_vchar3, col_bchar1 from llvm_vecsort_table order by col_vchar3, col_bchar1 desc limit 5; ---- --- clean table and resource ---- drop schema llvm_vecsort_c_engine cascade; \c postgres drop database llvmsortdb;
--cat cargadados.sql | heroku pg:psql --app resthouse DELETE FROM produto_tamanho; DELETE FROM produto; DELETE FROM associado_categorias; DELETE FROM associado; DELETE FROM associado_usuario_tags; DELETE FROM categoria; -- Categoria (OK) INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (1, 'BEBIDAS', NULL, 'categorias/bebidas.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (2, 'BOLOS', NULL, 'categorias/bolos.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (3, 'DOCES', NULL, 'categorias/doces.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (4, 'CACHORROS-QUENTES', NULL, 'categorias/hotdogs.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (5, 'HAMBURGUER', NULL, 'categorias/hamburguer.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (6, 'KITS FESTA', NULL, 'categorias/kitfesta.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (7, 'LANCHES', NULL, 'categorias/lanches.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (8, 'PIZZAS', NULL, 'categorias/pizzas.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (9, 'PORÇÕES', NULL, 'categorias/porcoes.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (10, 'REFEIÇÕES', NULL, 'categorias/refeicoes.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (11, 'SOBREMESAS', NULL, 'categorias/sobremesas.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (12, 'SALGADOS', NULL, 'categorias/salgados.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (13, 'YAKISOBA', NULL, 'categorias/yakisoba.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (14, 'BEBIDAS', NULL, 'categorias/sucos.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (15, 'MARMITAS', NULL, 'marmita/sucos.jpg'); INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (16, '<NAME>', NULL, 'carneassada/sucos.jpg'); -- -- Associados /**/ INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (1, 'Disponivel', '<EMAIL>', '<NAME>', 'Ateliê de Doces', 'Doces, Bolos, Sobremesas', 'Seg a Sáb', '08:00', '23:00', 'S', '3,00', 'Fisica', 'Rua Chile', '67', NULL, 'Rebouças', NULL, NULL, NULL, NULL, 'associados/1.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (2, 'Disponivel', '<EMAIL>', 'Burger Time Torres', 'Delivery de hamburger artesanal', 'Lanches, Hamburger', 'Qua a Dom', '18:30', '23:30', 'N', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/2.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (3, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Lanches, Cachorro Quente', 'Seg a Dom', '19:00', '00:00', 'S', '3,00', 'Juridica', 'Rua dorival Almir Zagonel', '101', NULL, 'Prado Velho', NULL, NULL, NULL, NULL, 'associados/3.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (4, 'Disponivel', '<EMAIL>', 'Dog Ostenta', '', 'Lanches, Cachorro Quente', 'Seg a Dom', '19:00', '00:00', 'N', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/4.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (5, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Doces, Bolos, Salgados', 'Seg a Sáb', '08:00', '20:00', 'X', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/5.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (6, 'Disponivel', '<EMAIL>', 'Beijoca', 'Ateliê de Doces', 'Doces, Bolos, Sobremesas', 'Seg a Sáb', '08:00', '21:00', 'S', '3,00', 'Juridica', 'Rua Chile', '67', NULL, 'Rebouças', NULL, NULL, NULL, NULL, 'associados/6.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (7, 'Disponivel', '<EMAIL>', 'Delivery do Beção', '', 'Lanches, Porções, Refeições', 'Seg a Dom', '19:00', '00:00', 'N', '0,00', 'Juridica', '<NAME>', '37', NULL, 'Prado Velho', NULL, NULL, NULL, NULL, 'associados/7.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (8, 'Disponivel', '<EMAIL>', 'Val Bebidas', '', 'Bebidas', 'Seg a Sex', '09:30', '20:30', 'S', '3,00', 'Juridica', 'R<NAME>', '158', NULL, 'Prado Velho', NULL, NULL, NULL, NULL, 'associados/8.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (9, 'Disponivel', '<EMAIL>', '<NAME>', 'A melhor comida caseira da região.', 'Salgados, Refeições', 'Seg a Sex', '06:30', '18:30', 'X', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/9.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (10, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Doces, Bolos, Salgados', 'Seg a Dom', '08:00', '20:00', 'X', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/10.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (11, 'Disponivel', '<EMAIL>', 'Feijoada da Dona Rosa', '', 'Refeições, Feijoada', 'Sáb', '11:30', '14:30', 'X', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/11.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (12, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Panquecas, Refeições', 'Seg a Sex', '18:00', '21:00', 'X', '0,00', 'Juridica', '<NAME>', '137', NULL, 'Prado Velho', NULL, NULL, NULL, NULL, 'associados/12.jpg'); /**/ INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (13, 'Disponivel', '<EMAIL>', 'Con<NAME>', '', 'Lanches, Hamburger, Porcões', 'Seg a Dom', '', '', 'N', '0,00', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/13.jpg'); /**/ INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (14, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Pastel, Bebidas', 'Ter a Sáb', '18:00', '00:00', 'X', '0,00', 'Juridica', '<NAME>', '129', NULL, 'Prado Velho', NULL, NULL, NULL, NULL, 'associados/14.jpg'); INSERT INTO associado (id, situacao, email, nomefantasia, resumo, categoria, funcionamentodias, funcionamentohorarioinicio, funcionamentohorariotermino, taxaentrega, valortaxaentrega, tipopessoa, logradouro, numero, complemento, bairro, cidade, estado, cep, dtregistro, logo) VALUES (15, 'Disponivel', '<EMAIL>', '<NAME>', '', 'Pizzas, Lanches', 'Seg a Dom', '19:00', '23:59', 'S', '2,50', 'Juridica', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'associados/15.jpg'); /**/ --categoriaxassociado /**/ INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(1, 2, 1, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(2, 3, 1, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(3, 11, 1, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(5, 1, 2, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(6, 5, 2, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(7, 11, 2, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(8, 1, 3, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(9, 4, 3, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(10, 7, 3, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(11, 1, 4, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(12, 4, 4, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(13, 2, 5, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(14, 3, 5, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(15, 6, 5, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(16, 12, 5, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(17, 3, 6, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(18, 6, 6, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(19, 7, 7, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(20, 9, 7, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(21, 13, 7, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(22, 1, 8, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(23, 10, 9, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(24, 2, 10, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(25, 3, 10, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(26, 6, 10, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(27, 12, 10, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(28, 10, 11, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(29, 10, 12, '', '', NULL); /**/ INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(30, 1, 13, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(31, 5, 13, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(32, 9, 13, '', '', NULL); /**/ INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(33, 1, 14, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(34, 12, 14, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(35, 7, 15, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(36, 8, 15, '', '', NULL); INSERT INTO associado_categorias(id, categoria_id, associado_id, resumo, logo, dtregistro) VALUES(37, 9, 15, '', '', NULL); /**/ -- Tabela Produtos /**/ INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit Brigadeiros - C/ 4 unidades', '5,50', '25 g', 'UN', 'associados/100x100/1.jpg', 2, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit Brigadeiros – C/ 8 unidades', '11,00', '25 g', 'UN', 'associados/100x100/1.jpg', 2, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit Brigadeiros – C/ 12 unidades', '15,50', '25 g', 'UN', 'associados/100x100/1.jpg', 2, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit Brigadeiros – C/ 16 unidades', '22,00', '25 g', 'UN', 'associados/100x100/1.jpg', 2, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit Brigadeiros – Cento de brigadeiros ', '65,00', '4 sabores, 14g cada', 'UN', 'associados/100x100/1.jpg', 2, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo no Pote - Brigadeiro', '3,50', '200 gr', 'UN', 'associados/100x100/1.jpg', 1, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo no Pote – Dois amores', '3,50', '200 gr', 'UN', 'associados/100x100/1.jpg', 1, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo no Pote – Morango', '5,00', '200 gr', 'UN', 'associados/100x100/1.jpg', 1, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mousse no Pote - Maracujá', '4,00', '200 gr', 'UN', 'associados/100x100/1.jpg', 3, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mousse no Pote – Limão', '4,00', '200 gr', 'UN', 'associados/100x100/1.jpg', 3, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Burger das Palmeiras', '10,00', 'Nosso delicioso hambúrguer artesanal de costela Angus, maionese verde especial da casa, queijo e rúcula, envolvidos em um maravilhoso pão bolinha.', 'UN', 'produtos/211.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Burger Rua 10', '10,00', 'Nosso suculento hambúrguer artesanal de alcatra Angus, molho especial da casa à base de requeijão e mostarda, queijo e alface americana, envolvidos em um maravilhoso pão bolinha.', 'UN', 'produtos/212.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '10,00', 'Nosso maravilhoso hambúrguer artesanal de Frango, maionese especial da casa com chimichurri, queijo e alface americana, envolvidos em um maravilhoso pão bolinha.', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '14,00', 'Nosso delicioso hambúrguer artesanal de costela Angus, maionese verde especial da casa, queijo, rúcula e duas camadas generosas de bacon envolvidos em um maravilhoso pão bolinha.', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '14,00', 'Nosso suculento hambúrguer artesanal de alcatra Angus, molho especial da casa à base de requeijão e mostarda, queijo, alface americana e duas camadas generosas de bacon envolvidos em um maravilhoso pão bolinha.', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '14,00', 'Nosso maravilhoso hambúrguer artesanal de Frango, maionese especial da casa com chimichurri, queijo, alface americana, duas camadas generosas de bacon envolvidos em um maravilhoso pão bolinha.', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicionais', '5,00', 'Hambúrguer', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicionais', '3,00', 'Queijo', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicionais', '4,00', 'Bacon (duas camadas generosas)', 'UN', 'associados/100x100/2.jpg', 6, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Coca-Cola', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Fanta Uva', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Fanta Laranja', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Guaraná Antártica', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Sprite', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante 1 Litro', '7,00', 'Coca-Cola', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante 2 Litros', '8,50', 'Coca-Cola', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Chá', '3,00', 'Chá natural copo', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Chá', '3,00', 'Chá açaí copo', 'UN', 'associados/100x100/2.jpg', 5, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Tortinhas', '5,00', 'Tortinha de mousse de limão com base de chocolate', 'UN', 'produtos/231.jpg', 7, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Tortinhas', '5,00', 'Tortinha de mousse de maracujá com base bolacha Maria', 'UN', 'produtos/232.jpg', 7, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Simples 1 Vina', '7,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Simples 2 Vinas', '7,50', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Prensado Cheddar', '8,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '8,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '9,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '9,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '9,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ingredientes Adicionais', '2,00', ' ', 'UN', 'associados/100x100/3.jpg', 9, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Burguer', '7,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Salada', '7,50', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Salada Duplo', '8,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Bacon', '8,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Calabresa', '8,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Frango', '9,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Tudo', '18,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Tudão', '18,00', ' ', 'UN', 'associados/100x100/3.jpg', 10, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> ', '2,00', 'Coca-cola', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> ', '2,00', 'Guaraná Antarctica', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> ', '2,00', 'Soda', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '3,50', 'Coca-cola', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '3,50', 'Fanta Laranja', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Sprite', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Guaraná Antarctica', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Kuat', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante 2 litros', '8,00', 'Coca-cola', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante 2 litros', '8,00', 'Fanta Laranja', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante 2 litros', '8,00', 'Guaraná Antarctica', 'UN', 'associados/100x100/3.jpg', 8, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Simples', '5,00', 'Cebola, tomate, milho, patata-palha, farofa e 1 vina.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '6,00', 'Bacon, cebola, tomate, milho, patata-palha, farofa e 1 vina.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Duplo', '7,00', 'Bacon, cebola, tomate, milho, patata-palha, farofa e 2 vinas.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '8,00', 'Bacon, cebola, tomate, milho, patata-palha, farofa, chedder e 2 vinas.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '8,00', 'Bacon, cebola, tomate, milho, patata-palha, farofa, catupiry e 2 vinas.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Calabresa ', '10,00', 'Calabresa, bacon, cebola, tomate, milho, patata-palha, farofa, purê de batata, chedder ou catupiry e 1 vina.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Frango', '10,00', 'Frango, bacon, cebola, tomate, milho, patata-palha, farofa, purê de batata, chedder ou catupiry e 1 vina.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '12,00', 'Bacon, calabresa, frango, cebola, tomate, milho, patata-palha, farofa, purê de batata, chedder ou catupiry e 2 vinas.', 'UN', 'associados/100x100/4.jpg', 12, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Coca-cola', 'UN', 'associados/100x100/4.jpg', 11, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Fanta Laranja', 'UN', 'associados/100x100/4.jpg', 11, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Fanta Uva', 'UN', 'associados/100x100/4.jpg', 11, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Sprite', 'UN', 'associados/100x100/4.jpg', 11, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Refrigerante Lata', '3,50', 'Guaraná Antarctica', 'UN', 'associados/100x100/4.jpg', 11, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Morango com nata', '5,00', ' ', 'UN', 'produtos/511.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Abacaxi com ninho', '5,00', ' ', 'UN', 'produtos/512.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Frutas vermelhas com ninho', '5,00', ' ', 'UN', 'produtos/513.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Dois amores', '5,00', ' ', 'UN', 'produtos/514.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Prestígio', '5,00', ' ', 'UN', 'produtos/515.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Sonho de valsa', '5,00', ' ', 'UN', 'produtos/516.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ouro Branco', '5,00', ' ', 'UN', 'produtos/517.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Negresco', '5,00', ' ', 'UN', 'produtos/518.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Brigadeiro', '40,00', ' ', 'UN', 'produtos/521.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Beijinho', '40,00', ' ', 'UN', 'produtos/522.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Dois amores', '40,00', ' ', 'UN', 'produtos/523.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Amendoim', '40,00', ' ', 'UN', 'produtos/524.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Brigadeiro de churros', '40,00', ' ', 'UN', 'produtos/525.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Coxinha', '35,00', ' ', 'UN', 'produtos/531.jpg', 16, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Risolis de carne', '35,00', ' ', 'UN', 'produtos/532.jpg', 16, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Risolis de queijo e presunto', '35,00', ' ', 'UN', 'produtos/533.jpg', 16, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Bolinha de queijo', '35,00', ' ', 'UN', 'produtos/534.jpg', 16, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Maçã Decorada', '6,00', ' ', 'UN', 'produtos/541.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Pirulito de Chocolate', '5,00', ' ', 'UN', 'associados/100x100/5.jpg', 14, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 30 pessoas', '275,00', '3kl de bolo – 300 salgados – 200 doces', 'UN', 'associados/100x100/5.jpg', 15, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 50 pessoas', '445,00', '5kl de bolo – 500 salgados – 300 doces', 'UN', 'associados/100x100/5.jpg', 15, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 70 pessoas', '655,00', '7kl de bolo – 700 salgados – 500 doces', 'UN', 'associados/100x100/5.jpg', 15, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 100 pessoas', '925,00', '10kl de bolo – 1000 salgados – 700 doces', 'UN', 'associados/100x100/5.jpg', 15, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Morango com suspiro', '30,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Abacaxi com creme', '30,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Chocorango', '30,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Dois amores', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Prestígio', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ouro Branco', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ninho com morango', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ninnho com abacaxi', '35,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Strogonoff de nozes', '50,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Damasco', '50,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ameixa', '50,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit-Kat', '50,00', ' ', 'UN', 'associados/100x100/5.jpg', 13, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('C/ 4 docinhos sortidos', '6,00', ' ', 'UN', 'produtos/5614.jpg', 17, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('C/ 10 docinhos sortidos', '12,00', ' ', 'UN', 'associados/100x100/6.jpg', 17, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Brigadeiro preto tradicional ', '50,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Beijinho', '50,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Dois amores', '70,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Prestígio', '90,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cookies', '90,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Paçoca ', '100,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Churros', '100,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ninho com Nutella', '110,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Surpresa de uva', '110,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Belga ao leite', '100,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Belga branco', '100,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Belga de doce de leite', '100,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Belga ao leite com Cremoça', '120,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Belga morango', '130,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '130,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Nutella Premium', '130,00', 'Cento de doces', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bombom de morango', '4,00', ' ', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coxinha de leite ninho', '4,00', ' ', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coxinha de brigadeiro', '4,00', ' ', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coxinha de morango', '6,00', 'Leite ninho com Nutella', 'UN', 'associados/100x100/6.jpg', 18, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Peixe', '27,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Camarão', '40,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '20,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '18,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Calabresa ', '15,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mandioca', '15,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Batata', '15,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bata com bacon e cheddar', '18,00', ' ', 'UN', 'associados/100x100/7.jpg', 20, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Yakisoba misto', '25,00', ' ', 'UN', 'associados/100x100/7.jpg', 21, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Yakisoba de carne', '23,00', ' ', 'UN', 'associados/100x100/7.jpg', 21, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Yakisoba de frango', '23,00', ' ', 'UN', 'associados/100x100/7.jpg', 21, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Yakisoba de camarão', '35,00', ' ', 'UN', 'associados/100x100/7.jpg', 21, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Burguer', '7,00', 'Com hamburger artesanal', 'UN', 'associados/100x100/7.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Salada', '10,00', 'Com hamburger artesanal', 'UN', 'associados/100x100/7.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Salada Duplo - Dois X Salada', '17,00', 'Com hamburger artesanal', 'UN', 'produtos/733.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Bacon', '11,00', 'Com hamburger artesanal', 'UN', 'associados/100x100/7.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Calabresa', '11,00', 'Com hamburger artesanal', 'UN', 'associados/100x100/7.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Frango', '11,00', 'Com hamburger artesanal', 'UN', 'associados/100x100/7.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Ovo', '11,00', 'Com hamburger artesanal', 'UN', 'produtos/737.jpg', 19, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Água Mineral - Fardo', '14,50', '500 ml c/ doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coca-cola lata - Fardo', '26,50', '350 ml c/ doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mini Coca-cola – Fardo', '15,00', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Brahma Lata – Fardo', '28,50', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Skol Lata – Fardo', '28,50', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> – Fardo', '24,00', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> – Fardo', '34,00', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> – Fardo', '45,00', 'Com doze unidades', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Smirnoff', '35,00', '1 litro', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Sky', '35,00', '1 litro', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Corote', '3,50', 'Unidade', 'UN', 'associados/100x100/8.jpg', 22, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Segunda-feira - Peito de frango empanado', '10,00', 'Arroz, feijão, macarrão, batata frita, almondegas, peito de frango empanado, salada e sobremesa', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Terça-feira - Carne de Panela', '10,00', 'Arroz, feijão, macarrão, carne de panela, frango à passarinho, salada e sobremesa', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Quarta-feira - Filé de peixe', '10,00', 'Arroz, feijão, macarrão, purê de batata, filé de peixe, almondegas, salada e sobremesa', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Quinta-feira - Bisteca', '10,00', 'Arroz, feijão, macarrão, batata frita, carne de panela, bisteca frita, salada e sobremesa', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Sexta-feira - Costela', '10,00', 'Arroz, feijão, macarrão, batata refogada, costela ao molho, franto frito, salada e sobremesa', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Sábado - Feijoada', '10,00', 'Feijoada: Arroz, feijoada, couve refogada, farofa com torresmo, banana frita, laranja e vinagrete', 'UN', 'associados/100x100/9.jpg', 23, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '28,00', 'Quilo', 'KG', 'produtos/1011.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '28,00', 'Quilo', 'KG', 'produtos/1012.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '28,00', 'Quilo', 'KG', 'produtos/1013.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME> com suspiro', '30,00', 'Quilo', 'KG', 'produtos/1014.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Abacaxi com creme', '30,00', 'Quilo', 'KG', 'produtos/1015.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Pêssego com creme', '30,00', 'Quilo', 'KG', 'produtos/1016.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '35,00', 'Quilo', 'KG', 'produtos/1017.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '35,00', 'Quilo', 'KG', 'produtos/1018.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '35,00', 'Quilo', 'KG', 'produtos/1019.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Ouro Branco', '35,00', 'Quilo', 'KG', 'produtos/10110.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Dois amores', '35,00', 'Quilo', 'KG', 'produtos/10111.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Floresta negra', '35,00', 'Quilo', 'KG', 'produtos/10112.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolo Chocorango', '35,00', 'Quilo', 'KG', 'produtos/10113.jpg', 24, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Brigadeiro', '35,00', 'c/ 50 unidades', 'UN', 'produtos/1021.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Beijinho', '35,00', 'c/ 50 unidades', 'UN', 'produtos/1022.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Cajujinho', '35,00', 'c/ 50 unidades', 'UN', 'produtos/1023.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Dois Amores', '37,00', 'c/ 50 unidades', 'UN', 'produtos/1024.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Brigadeiro', '40,00', 'c/ 100 unidades', 'UN', 'produtos/1025.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Beijinho', '40,00', 'c/ 100 unidades', 'UN', 'produtos/1026.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Cajujinho', '40,00', 'c/ 100 unidades', 'UN', 'produtos/1027.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Cento de Dois Amores', '42,00', 'c/ 100 unidades', 'UN', 'produtos/1028.jpg', 25, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coxinhas de frango com catupiry', '35,00', ' ', 'UN', 'produtos/1031.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '35,00', ' ', 'UN', 'produtos/1032.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Rissolis Pres/ queijo', '35,00', ' ', 'UN', 'produtos/1033.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bolinhas de queijo nu', '35,00', ' ', 'UN', 'produtos/1034.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mini- vinas', '35,00', ' ', 'UN', 'produtos/1035.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Quibes recheados com queijo', '36,00', ' ', 'UN', 'produtos/1036.jpg', 27, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 10 pessoas ', '85,00', '1 kl de bolo de fruta – 100 salgados – 50 doces - 10 descartáveis', 'UN', 'produtos/1041.jpg', 26, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Kit festa p/ 20 pessoas ', '165,00', '2 kl de bolo de fruta – 200 salgados – 100 doces - 20 descartáveis', 'UN', 'produtos/1042.jpg', 26, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Feijoada', '15,00', 'Feijoada: Arroz, feijoada, couve refogada, farofa com torresmo', 'UN', 'produtos/1111.jpg', 28, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Panqueca de frango', '3,00', 'Frango desfiado, tomate, cebola, milho, cheiro verde, extrato de tomate. ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Panqueca de carne', '3,00', 'Carne moída, tomate, cebola, milho, cheiro verde, extrato de tomate. ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de frango', '1,00', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de carne', '1,00', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de tomate', '0,50', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de cebola', '0,50', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de milho', '0,50', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de cheiro verde', '0,50', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional de extrato de tomate', '0,50', ' ', 'UN', 'associados/100x100/12.jpg', 29, 'default', NULL); /**/ --crys INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('F.P', '13,00', 'Hambúrguer caseiro de 120 gr temperado com 11 ingredientes, frango grelhado, bacon defumado, cheddar, queijo cremoso, molho caseiro, alface, tomate e molho especial barbecue. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('P.B.C', '13,00', 'Hambúrguer caseiro de 120 gr temperado com 11 ingredientes, bacon fatiado, calabresa defumada, queijo cremoso, cheddar, molho caseiro, molho barbecue, alface, tomate e picles. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('3 Burguer Bacon', '17,00', '3 hambúrgueres caseiros temperados com 11 ingredientes, 3 camadas de cheddar top de linha, 3 camadas de bacon fatiado, mussarela e molho caseiro.', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('3 Burguer Cheddar', '16,00', '3 hambúrgueres caseiros temperados com 11 ingredientes, 3 camadas de cheddar top de linha, molho caseiro e molho barbecue.', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Tudão', '18,00', 'Hambúrguer caseiro de 120 gr temperado com 11 ingredientes, frango, bacon fatiado, calabresa, ovo, picles, tomate, alface, molho caseiro e molho barbecue. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('K.2', '13,00', '2 hambúrgueres caseiros temperados com 11 ingredientes, cheddar, queijo cremoso, picles, alface, tomate, molho caseiro e molho especial barbecue. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('TOP', '13,00', 'Hambúrguer caseiro temperado com 11 ingredientes, bacon defumado, queijo cremoso, picles, alface, tomate e molho caseiro.', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>.P.', '20,00', 'Frango grelhado, hamburguer caseiro, cheddar, molho caseiro e barbecue. Batata frita e refrigerante. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '24,00', '3 hambúrgueres caseiros temperados com 11 ingredientes, 3 camadas de bacon fatiado, mussarela e molho caseiro. Bata frita e refrigerante.', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '20,00', 'Hambúrguer caseiro de 120 gr temperado com 11 ingredientes, bacon fatiado, calabresa defumada, queijo cremoso, cheddar, molho caseiro, molho barbecue, alface, tomate e picles. Batata frita e refrigerante. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '19,00', '2 hambúrgueres caseiros temperados com 11 ingredientes, cheddar, queijo cremoso, picles, alface, tomate, molho caseiro e molho especial barbecue. Batata frita e refrigerante. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '18,00', 'Hambúrguer caseiro temperado com 11 ingredientes, bacon defumado, queijo cremoso, picles, alface, tomate e molho caseiro. Batata frita e refrigerante. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Salada', '7,50', 'Hambúrguer tradicional, queijo, presunto, alface, tomate e molho caseiro. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Bacon', '9,00', 'Hambúrguer tradicional, queijo, presunto, bacon, alface, tomate e molho caseiro. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Frango', '9,00', 'Hambúrguer tradicional, queijo, presunto, frango, tomate e molho caseiro. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Calabresa', '9,00', 'Hambúrguer tradicional, queijo, presunto, calabresa, alface, tomate e molho caseiro. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Egg', '8,50', 'Hambúrguer tradicional, queijo, presunto, ovo, alface, tomate e molho caseiro. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X Cryspy', '12,00', 'Hambúrguer bovino, queijo duplo, bacon, cebola Cryspy, barbecue, alface, tomate e molho especial, envolvido no pão artesanal. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '12,00', 'Dois hambúrgueres bovinos, muito bacon, cheddar, molho especial, envolvido no pão artesanal. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '15,00', 'Três hambúrgueres bovinos, queijo, presunto, mussarela, cheddar, alface, picles, tomate e molho especial, envolvido no pão artesanal. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('2 Burguer', '15,00', 'Dois hambúrgueres bovinos, cheddar, alface, tomate, picles, molho especial, envolvido no pão artesanal. ', 'UN', 'associados/100x100/13.jpg', 31, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicionais', '2,00', ' ', 'UN', 'associados/100x100/13.jpg', 32, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Batata frita', '15,00', '500 gr', 'UN', 'associados/100x100/13.jpg', 32, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Franto frito', '20,00', '1 quilo', 'UN', 'associados/100x100/13.jpg', 32, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Anéis de cebola ', '15,00', '400 gr', 'UN', 'associados/100x100/13.jpg', 32, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Aipim', '15,00', '400 gr', 'UN', 'associados/100x100/13.jpg', 32, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Morango', '5,00', ' ', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mamão', '5,00', ' ', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Abacaxi', '5,00', ' ', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Manga', '5,00', ' ', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Laranja', '5,00', ' ', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Adicional', '1,50', 'Adicionar leite ao suco', 'UN', 'produtos/suco.jpg', 30, 'default', NULL); /**/ INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Carne', '5,00', ' ', 'UN', 'associados/100x100/14.jpg', 34, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Frango com catupiry', '5,00', ' ', 'UN', 'associados/100x100/14.jpg', 34, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijo e presunto', '5,00', ' ', 'UN', 'associados/100x100/14.jpg', 34, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijo', '5,00', ' ', 'UN', 'associados/100x100/14.jpg', 34, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Coca-cola', '3,50', ' ', 'UN', 'associados/100x100/14.jpg', 33, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Fanta laranja', '3,50', ' ', 'UN', 'associados/100x100/14.jpg', 33, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Guaraná', '3,50', ' ', 'UN', 'associados/100x100/14.jpg', 33, 'default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Burguer', '5,00', 'Pão, maionese, hambúrguer, queijo cheddar', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Egg', '6,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto e ovo', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Salada', '5,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto, alface e tomate', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Bacon', '8,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto, alface e tomate, bacon', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Calabresa', '8,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto, alface e tomate, calabresa', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Frango', '9,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto, alface e tomate, filé de peito de frango', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('X-Tudo', '12,00', 'Pão, maionese, hambúrguer, queijo cheddar, presunto, alface e tomate, filé de peito de frango, bacon, calabresa e milho', 'UN', 'associados/100x100/15.jpg', 35, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de batata', '13,50', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de polenta', '13,50', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de aipim', '13,00', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de frango a passarinho', '14,00', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de anéis de cebola', '14,00', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Porção de tiras de frango empanado', '14,00', 'não informado', 'UN', 'associados/100x100/15.jpg', 37, 'Default', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Mussarela', '0,00', 'Molho, mussarela, azeitona e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Alho e Óleo', '0,00', 'Molho, mussarela, alho, óleo e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Napolitano', '0,00', 'Molho, mussarela, tomate, parmesão e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Marguerita', '0,00', 'Molho, mussarela, tomate, manjericão e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Milho', '0,00', 'Molho, mussarela, milho e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Calabresa', '0,00', 'Molho, mussarela, calabresa, cebola, azeitona e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Milho com Bacon', '0,00', 'Molho, mussarela, milho, bacon e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Presunto', '0,00', 'Molho, mussarela, presunto e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Toscana', '0,00', 'Molho, mussarela, presunto, tomate e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Lombo', '0,00', 'Molho, mussarela, lombo e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Catupiry', '0,00', 'Molho, mussarela, catupiry e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Palmito', '0,00', 'Molho, mussarela, palmito e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Bacon', '0,00', 'Molho, mussarela, bacon e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Crocante I', '0,00', 'Molho, mussarela, calabresa, batata-palha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Crocante II', '0,00', 'Molho, mussarela, bacon, batata-palha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Frango', '0,00', 'Molho, mussarela, frango e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Portuguesa', '0,00', 'Molho, mussarela, presunto, cebola, azeitona, ovo e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Parmegiana', '0,00', 'Molho, mussarela, presunto, molho, parmesão e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Americana', '0,00', 'Molho, mussarela, tomate, bacon, pimentão, palmito e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Hot-Dog', '0,00', 'Molho, mussarela, vina, milho, ervilha, batata-palha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Tradicionais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Atum', '0,00', 'Molho, mussarela, atum, cebola e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Brasileira', '0,00', 'Molho, mussarela, bacon, calabresa, cheddar, azeitona e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Caipira', '0,00', 'Molho, mussarela, frango, milho,bacon e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Romanesca', '0,00', 'Molho, mussarela, frango, milho, tomate, palmito e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Peruana', '0,00', 'Molho, mussarela, atun, ervilha, cebola e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijos', '0,00', 'Molho, mussarela, catupiry, parmesão e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Frango com Catupiry/Cheddar', '0,00', 'Molho, mussarela, frango, catupiry/cheddar e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Especial', '0,00', 'Molho, mussarela, calabresa, milho, ovo e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Lombo com Bacon', '0,00', 'Molho, mussarela, lombo, bacon, cheddar e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Lombo com Champignon', '0,00', 'Molho, mussarela, lombo, champignon, catupiry e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Paulista', '0,00', 'Molho, mussarela, milho, ervilha, palmito e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Baiana', '0,00', 'Molho, mussarela, calabresa, palmito, ovo, pimenta calabresa e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Especiais', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('A Moda', '0,00', 'Molho, mussarela, champignon, pepperone, azeitona e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('A Moda II', '0,00', 'Molho, mussarela, calabresa, tomate, ovo, milho, ervilha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('A Moda da Casa I', '0,00', 'Molho, mussarela, calabresa, presunto, bacon, cheddar e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('A Moda da Casa II', '0,00', 'Molho, mussarela, lombo, champignon, bacon, ovo, catupiry, azeitona e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Imperial', '0,00', 'Molho, mussarela, frango, palmito, bacon, cream cheese e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Salame', '0,00', 'Molho, mussarela, salame, cheddar e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Pepperone', '0,00', 'Molho, mussarela, pepperone, cream cheese e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Strogonofe de Carne', '0,00', 'Molho, mussarela, estrogonofe de carne, champignon, batata-palha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Strogonofe de Frango', '0,00', 'Molho, mussarela, estrogonofe de frango, champignon, batata-palha e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijos', '0,00', 'Molho, mussarela, provolone, parmesão, catupiry e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijos', '0,00', 'Molho, mussarela, provolone, parmesão, catupiry, gongorzola e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijos', '0,00', 'Molho, mussarela, provolone, parmesão, catupiry, gongorzola, cheddar e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Queijos', '0,00', 'Molho, mussarela, provolone, parmesão, catupiry, gongorzola, cheddar, cream cheese e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Florença', '0,00', 'Molho, mussarela, calabresa, bacon, ovos, tomate, parmesão, manjericão e orégano', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Do Cliente', '0,00', 'Até 5 ingredientes', 'UN', 'associados/100x100/15.jpg', 36, 'Premium', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Banana', '0,00', 'Creme de leite, mussarela, banana e canela', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Banana com Chocolate', '0,00', 'Creme de leite, mussarela, banana, chocolate preto ou branco', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Morango', '0,00', 'Creme de leite, mussarela', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Confet', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Ele e Ela', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Brigadeiro', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Dois Amores', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Sensação', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Floresta negra', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Beijinho', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('<NAME>', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Prestígio', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Chocolate Preto', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); INSERT INTO produto (descricao, valor, resumo, medida, logo, associado_categoria_id, tipo, dtregistro) VALUES ('Chocolate Branco', '0,00', ' ', 'UN', 'associados/100x100/15.jpg', 36, 'Doces', NULL); /**/
CREATE TABLE IF NOT EXISTS CB ( COLLEGE_ID TEXT, TERM_ID TEXT, COURSE_ID TEXT, CONTROL_NUMBER TEXT, TITLE TEXT, TOP_CODE TEXT, CREDIT_STATUS TEXT, TRANSFER_STATUS TEXT, UNITS_MAXIMUM REAL, UNITS_MINIMUM REAL, BASIC_SKILLS_STATUS TEXT, SAM_CODE TEXT, COOP_ED_STATUS TEXT, CLASSIFICATION_CODE TEXT, SPECIAL_CLASS_STATUS TEXT, CAN_CODE TEXT, CAN_SEQ_CODE TEXT, CROSSWALK_CRS_NAME TEXT, CROSSWALK_CRS_NUMBER TEXT, PRIOR_TO_COLLEGE TEXT, NONCREDIT_CATEGORY TEXT, FUNDING_CATEGORY TEXT, CRCC_ID TEXT, PROGRAM_STATUS TEXT, GENERAL_EDUCATION_STATUS TEXT, SUPPORT_COURSE_STATUS TEXT );
CREATE TABLE [procfwk].[BatchStageLink] ( [BatchId] [UNIQUEIDENTIFIER] NOT NULL, [StageId] [INT] NOT NULL, CONSTRAINT [PK_BatchStageLink] PRIMARY KEY CLUSTERED ( [BatchId] ASC, [StageId] ASC ), CONSTRAINT [FK_BatchStageLink_Batches] FOREIGN KEY([BatchId]) REFERENCES [procfwk].[Batches] ([BatchId]), CONSTRAINT [FK_BatchStageLink_Stages] FOREIGN KEY([StageId]) REFERENCES [procfwk].[Stages] ([StageId]) )
DROP TABLE IF EXISTS `category`; CREATE TABLE `category` ( `id` mediumint unsigned not null auto_increment, `name` varchar(250) not null, `type` enum('A''s', 'B''s', 'C''s'), `active` bool not null default 1, `createdAt` datetime not null, `changedAt` timestamp not null, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `active` (`active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; DROP TABLE IF EXISTS `item`; CREATE TABLE `item` ( `id` mediumint unsigned not null auto_increment, `categoryId` mediumint unsigned not null, `name` varchar(250) not null, `price` decimal(10,2), `active` bool not null default 1, `createdAt` datetime not null, `changedAt` timestamp not null, PRIMARY KEY (`id`), UNIQUE KEY (`name`), FOREIGN KEY `categoryId` (`categoryId`) REFERENCES `category` (`id`), KEY `categoryIdByActive` (`categoryId`, `active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; DROP TABLE IF EXISTS `tag`; CREATE TABLE `tag` ( `id` mediumint unsigned not null auto_increment, `name` varchar(250) not null, `type` enum('A''s', 'B''s', 'C''s'), `active` bool not null default 1, `createdAt` datetime not null, `changedAt` timestamp not null, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `active` (`active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; DROP TABLE IF EXISTS `itemTag`; CREATE TABLE `item_tag` ( `id` mediumint unsigned not null auto_increment, `itemId` mediumint unsigned not null, `tagId` mediumint unsigned not null, `active` bool not null default 1, `createdAt` datetime not null, `changedAt` timestamp not null, PRIMARY KEY (`id`), UNIQUE KEY `itemIdTagId` (`itemId`,`tagId`), KEY `active` (`active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
DROP TABLE WeatherData IF EXISTS; CREATE TABLE WeatherData ( city VARCHAR(30), description VARCHAR(30), humidity VARCHAR(50), pressure VARCHAR(50), temperature VARCHAR(50), creationtime VARCHAR(50), speed VARCHAR(50), degree VARCHAR(50) );
/* Code generated using gnorm. postgrest api crud functions for table {{table.name}} {{table.description}} */ GRANT ALL ON TABLE public.{{table.name}} TO web_user; {%-for keyC in keys %} GRANT USAGE, SELECT ON SEQUENCE public.{{table.name}}_{{keyC.name}}_seq TO web_user; {%-endfor%} DROP FUNCTION IF EXISTS api.{{table.name}}_list(int); DROP FUNCTION IF EXISTS api.{{table.name}}_get({{list_fmt(keys,"{.dbtype}")|join(',')}}); DROP FUNCTION IF EXISTS api.{{table.name}}_page_count(); DROP FUNCTION IF EXISTS api.{{table.name}}_update({{list_fmt(fields,"{.dbtype}")|join(',')}}); DROP FUNCTION IF EXISTS api.{{table.name}}_create({{list_fmt(fields,"{.dbtype}")|join(',')}}); DROP FUNCTION IF EXISTS api.{{table.name}}_delete({{list_fmt(keys,"{.dbtype}")|join(',')}}); /* {{table.name}}_list List {{table.name}}s select * from api.{{table.name}}_list(0) */ CREATE FUNCTION api.{{table.name}}_list(IN page int) RETURNS TABLE ( {{ list_fmt(fields, "{0.name} {0.dbtype}")|join('\n , ') }} ) AS $$ SELECT {{ list_fmt(fields, "{0.name}")|join('\n , ') }} FROM public.{{table.name}} OFFSET ({{table.name}}_list.page * api.const_page_size()) LIMIT api.const_page_size(); $$ LANGUAGE SQL STABLE; COMMENT ON FUNCTION api.{{table.name}}_list(int) IS 'Return a list {{table.name}}s by page.'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_list(int) TO web_user; /* {{table.name}}_page_count Count the number of pages that {{table.name}}_list will return. select * from api.{{table.name}}_page_count() */ CREATE FUNCTION api.{{table.name}}_page_count() RETURNS int AS $$ SELECT ceil(count(*)::decimal / api.const_page_size())::int AS result FROM public.{{table.name}}; $$ LANGUAGE SQL STABLE; COMMENT ON FUNCTION api.{{table.name}}_page_count() IS 'Count the number of pages that will be returned by {{table.name}}_list'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_page_count() TO web_user; /* {{table.name}}_get List {{table.name}}s select * from api.{{table.name}}_get(0) */ CREATE FUNCTION api.{{table.name}}_get({{list_fmt(keys,"IN {0.name} {0.dbtype}")|join(', ')}}) RETURNS TABLE ( {{ list_fmt(fields, "{0.name} {0.dbtype}")|join('\n , ') }} ) AS $$ SELECT {{ list_fmt(fields, "{0.name}")|join(',\n ') }} FROM public.{{table.name}} WHERE {{list_fmt(keys,"{0.name} = {0.table}_get.{0.name}")|join('\n AND ')}}; $$ LANGUAGE SQL STABLE; COMMENT ON FUNCTION api.{{table.name}}_get({{list_fmt(keys,"{.dbtype}")|join(',')}}) IS 'Return a single {{table.name}} detail'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_get({{list_fmt(keys,"{.dbtype}")|join(',')}}) TO web_user; /* {{table.name}}_update update a {{table.name}} */ CREATE FUNCTION api.{{table.name}}_update ( {{ list_fmt(fields, "{0.name}_arg {0.dbtype}")|join('\n , ') }} ) RETURNS TABLE ( {{ list_fmt(fields, "{0.name} {0.dbtype}")|join('\n , ') }} ) AS $$ DECLARE {%-for keyC in keys %} {{keyC.name}}_var {{keyC.dbtype}}; {%-endfor%} BEGIN UPDATE public.{{table.name}} SET {{ list_fmt(no_keys, "{0.name} = {0.table}_update.{0.name}_arg")|join(',\n ') }} WHERE {{list_fmt(keys,"{0.name} = {0.table}_update.{0.name}_arg")|join('\n AND ')}} RETURNING {{ list_fmt(keys, "{0.name} INTO {0.name}_var")|join('\n , ') }}; RETURN QUERY SELECT * FROM api.{{table.name}}_get({{list_fmt(keys, "{0.name}_var")|join(',')}}); END $$ LANGUAGE PLPGSQL; COMMENT ON FUNCTION api.{{table.name}}_update({{list_fmt(fields,"{.dbtype}")|join(',')}}) IS 'update a {{table.name}}'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_update({{list_fmt(fields,"{.dbtype}")|join(',')}}) TO web_user; /* {{table.name}}_create create a new {{table.name}} record. */ CREATE FUNCTION api.{{table.name}}_create ( {{ list_fmt(fields, "{0.name}_arg {0.dbtype}")|join('\n , ') }} ) RETURNS TABLE ( {{ list_fmt(fields, "{0.name} {0.dbtype}")|join('\n , ') }} ) AS $$ DECLARE {%-for keyC in keys %} {{keyC.name}}_var {{keyC.dbtype}}; {%-endfor%} BEGIN INSERT INTO public.{{table.name}} ( {{ list_fmt(no_keys, "{0.name}")|join('\n , ') }} ) VALUES ( {{ list_fmt(no_keys, "{0.table}_create.{0.name}_arg")|join('\n , ') }} ) RETURNING {{ list_fmt(keys, "{0.name} INTO {0.name}_var")|join('\n , ') }}; RETURN QUERY SELECT * FROM api.{{table.name}}_get({{list_fmt(keys, "{0.name}_var")|join(',')}}); END $$ LANGUAGE PLPGSQL; COMMENT ON FUNCTION api.{{table.name}}_create({{list_fmt(fields,"{.dbtype}")|join(',')}}) IS 'create a new {{table.name}} record.'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_create({{list_fmt(fields,"{0.dbtype}")|join(',')}}) TO web_user; /* {{table.name}}_delete List {{table.name}}s select api.{{table.name}}_delete(0) */ CREATE FUNCTION api.{{table.name}}_delete({{list_fmt(keys,"IN {0.name} {0.dbtype}")|join(',')}}) RETURNS void AS $$ DELETE FROM public.{{table.name}} WHERE {{list_fmt(keys,"{0.name} = {0.table}_delete.{0.name}")|join('\n AND ')}}; $$ LANGUAGE SQL; COMMENT ON FUNCTION api.{{table.name}}_delete({{list_fmt(keys,"{.dbtype}")|join(',')}}) IS 'Delete a {{table.name}}'; GRANT EXECUTE ON FUNCTION api.{{table.name}}_delete({{list_fmt(keys,"{.dbtype}")|join(',')}}) TO web_user;
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2018 at 02:23 PM -- Server version: 5.5.32 -- PHP Version: 5.4.16 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: `microproperties` -- CREATE DATABASE IF NOT EXISTS `microproperties` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `microproperties`; -- -------------------------------------------------------- -- -- Table structure for table `ci_sessions` -- CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `data` blob NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `ci_sessions` -- INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2c0cce733beb14eb5c350b6f749c78b1fe2c1a16', '::1', 1523431364, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333433313330313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('d1a5776746985ad917d95df2ed9bfaaea52eba51', '::1', 1523430803, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333433303634333b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('91a721355fb5a8c3d4723caef081e6acbd7ede9a', '::1', 1523430249, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333433303234363b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('293639763d2a26c1066f2c2e86c26fb4a82c6e97', '::1', 1523429777, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333432393438373b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('3f7b281ee79fbf3ce0a59db3aca75d2f53259fd1', '::1', 1523429801, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333432393739323b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('<KEY>', '::1', 1523428149, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333432383133383b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b6d6573736167657c733a32393a223c703e4c6f6767656420496e205375636365737366756c6c793c2f703e223b5f5f63695f766172737c613a313a7b733a373a226d657373616765223b733a333a226f6c64223b7d), ('7751e69bde5ab8d936d2a7542c7593949488ac31', '::1', 1523428702, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333432383530323b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('e0a826a1375cd76a742f30d320d79cff5887e25e', '::1', 1523433164, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333433333135393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d30352031343a34343a3037223b6c6173745f636865636b7c693a313532333432383134383b), ('0a2000b3f162ee22ddc6e24f7332f1d940624838', '::1', 1523512741, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531323733313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b6d6573736167657c733a32393a223c703e4c6f6767656420496e205375636365737366756c6c793c2f703e223b5f5f63695f766172737c613a313a7b733a373a226d657373616765223b733a333a226f6c64223b7d), ('<KEY>', '::1', 1523513774, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531333535303b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523513931, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531333839313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523514733, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531343433393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('3e0933cebc023e0def7760417c16bc5026e2ef5e', '::1', 1523516568, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531363338363b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523517154, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531373134383b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('b5facf618e0fc3b9bb20a4649fd98a337d37803c', '::1', 1523518532, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531383330313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('cefb72c43fe80d7983928f4073f1599055dabb0a', '::1', 1523519434, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531393133353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('52d7f3be59090ff6c3be70ebdf17fdec8976b2da', '::1', 1523519660, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531393433363b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523520076, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333531393738343b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('9d7420c436e375129aa4282dadbe978b9e14c967', '::1', 1523520939, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532303732343b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('994327382802a2faf69fb71ebc73cc04077c9501', '::1', 1523523554, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532333239353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('31b98e4d6c83523e4b5b7e1cb3c339625e8ae6f2', '::1', 1523523766, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532333633333b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('c44ec040acfe8b14be21e5fa29f025ac23a778ed', '::1', 1523524426, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532343138303b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('16817caf9af95691233ae051232e1abce0a5355e', '::1', 1523524591, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532343438353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523524895, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532343839333b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('1485f6b29daed6aa9e05365841a605a136e43bd5', '::1', 1523525258, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532353232323b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523525599, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532353532353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523526457, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532363336333b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1523526710, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532333532363637333b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31312031343a32393a3038223b6c6173745f636865636b7c693a313532333531323734303b), ('<KEY>', '::1', 1524134976, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343133343632303b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31322031333a35393a3030223b6c6173745f636865636b7c693a313532343133343633313b), ('ad131f09e0dac0fcc0c8afb6aaa5a67b9b7dfee8', '::1', 1524466523, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343436363234323b), ('e2a9c68b44fe5f1ebf609be58fa831a31d3f982d', '::1', 1524466589, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343436363534353b), ('1b1a4c62e10f93954276552a4f8ed2b39447edfb', '::1', 1524550308, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343535303239343b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b6d6573736167657c733a32393a223c703e4c6f6767656420496e205375636365737366756c6c793c2f703e223b5f5f63695f766172737c613a313a7b733a373a226d657373616765223b733a333a226f6c64223b7d), ('8af123d74a817a682933b2cf3c06ec2e3ce16ac1', '::1', 1524557088, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343535363836373b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('4df38454c6eac5938180f1d3319404aeea80ffe2', '::1', 1524558485, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343535383438353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524560638, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536303432343b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('f5472355261e468ede8341b857d6dc5f9aed3bc3', '::1', 1524561006, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536303732353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('956e512eae92c5a2e133c01c4b81d31d7e9978df', '::1', 1524561141, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536313132383b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('4fffeb78e13f21fa92ab5c8198fcc3e8efb66104', '::1', 1524564365, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536343036393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('ea2a6124333b5d953adde71f8cda5c817af3716b', '::1', 1524564668, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536343430353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524566229, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536363138313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('159f7ff0743efa5fa88a54ff51293d208d58cfaf', '::1', 1524566847, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536363535393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('ea656e1e741ebbf28558e215040795c8066f4f66', '::1', 1524566897, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536363839363b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524569115, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536383832363b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524569465, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536393232393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524569872, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536393539303b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524570225, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343536393931393b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('<KEY>', '::1', 1524570560, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343537303535353b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('03fd3a1e605e0c0f058de6fda41e85bc196a0f53', '::1', 1524572125, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343537313933323b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('ef931bdefca602956fec4e3aa09d191e5023ddb2', '::1', 1524572526, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343537323338313b6964656e746974797c733a31353a2261646d696e4061646d696e2e636f6d223b656d61696c7c733a31353a2261646d696e4061646d696e2e636f6d223b757365725f69647c733a313a2231223b6f6c645f6c6173745f6c6f67696e7c733a31393a22323031382d30342d31392031383a34333a3531223b6c6173745f636865636b7c693a313532343535303330373b), ('99ca2bdf049827a8425d1705c28312bec6e212c9', '::1', 1524572546, 0x5f5f63695f6c6173745f726567656e65726174657c693a313532343537323534323b); -- -------------------------------------------------------- -- -- Table structure for table `email_templates` -- CREATE TABLE IF NOT EXISTS `email_templates` ( `id` int(9) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `subject` varchar(100) DEFAULT NULL, `content` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `email_templates` -- INSERT INTO `email_templates` (`id`, `name`, `subject`, `content`) VALUES (1, 'Activation Email', '[MicroProperties] - Activate your account', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<meta content="telephone=no" name="format-detection">\n<title>MicroProperties - Activate Account</title>\n<style type="text/css">\n\n\nbody {\n background-color: #ffffff;\n margin: 0;\n padding: 0;\n -webkit-font-smoothing: antialiased;\n font-family: Arial;\n -webkit-text-size-adjust: none;\n -ms-text-size-adjust: none;\n}\n/* Fixes for Links catering to mobile devices */\n.androidWhite, .appleLinks a, .appleLinksWhite a {\n color: #ffffff !important;\n text-decoration: none;\n}\n.appleLinks a, .appleLinksDark a {\n color: #000000 !important;\n text-decoration: none;\n}\n/* End:Common Style Fixes */\n\n</style>\n</head>\n<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" yahoo="fix" style="-webkit-text-size-adjust:none;-ms-text-size-adjust: 100%; background-color: #f4f4f4;">\n \n <center>\n <table cellpadding="0" cellspacing="0" align="center" width="600">\n <tr>\n <td>\n <table cellpadding="0" cellspacing="0" align="center" width="100%">\n <tr>\n <td style="line-height: 30px;" height="30">&nbsp;</td>\n </tr>\n <tr>\n <td align="center">\n <img src="{url}assets/edm/images/logo.jpg" width="210" height="46" border="0" style="display: block; border: 0;" />\n </td>\n </tr>\n <tr>\n <td style="line-height: 30px;" height="30">&nbsp;</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td align="center">\n <img src="{url}assets/edm/images/banner.jpg" width="600" border="0" style="display: block; border: 0;" />\n </td>\n </tr>\n <tr>\n <td style="background-color: #ffffff;">\n <!--body-->\n <table cellpadding="0" cellspacing="0" align="center" width="100%">\n <tr>\n <td style="line-height: 30px;" height="30" width="42">&nbsp;</td>\n <td style="line-height: 30px;" height="30" width="516" align="center">&nbsp;</td>\n <td style="line-height: 30px;" height="30" width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td width="42">&nbsp;</td>\n <td align="left">\n <p style="font-family: arial; font-size: 15px; color: #666666; line-height: 24px; margin: 0; padding: 0;" align="left">Dear <span style="font-weight: bold;">{first_name}</span></p>\n </td>\n <td width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td style="line-height: 15px;" height="15" width="42">&nbsp;</td>\n <td style="line-height: 15px;" height="15" width="516" align="center">&nbsp;</td>\n <td style="line-height: 15px;" height="15" width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td width="42">&nbsp;</td>\n <td align="left">\n <p style="font-family: arial; font-size: 15px; color: #666666; line-height: 24px; margin: 0; padding: 0;" align="left">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n </td>\n <td width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td style="line-height: 15px;" height="15" width="42">&nbsp;</td>\n <td style="line-height: 15px;" height="15" width="516" align="center">&nbsp;</td>\n <td style="line-height: 15px;" height="15" width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td align="center"><a href="{activation_url}" target="_blank"><img src="{url}assets/edm/images/btn.jpg" width="600" height="40" border="0" style="display: block; border: 0;" /></a>\n </td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td style="line-height: 50px;" height="50" width="42">&nbsp;</td>\n <td style="line-height: 50px;" height="50" width="516" align="center">&nbsp;</td>\n <td style="line-height: 50px;" height="50" width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td width="42" align="left" valign="top"><img src="{url}assets/edm/images/arrow-right.jpg" width="13" height="16" border="0" style="display: block; border: 0;" /></td>\n <td align="left">\n <p style="font-family: arial; font-size: 15px; color: #666666; line-height: 15px; margin: 0; padding: 0;" align="left">The <span style="font-weight: bold;">MicroProperties</span> team</p>\n </td>\n <td width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td style="line-height: 20px;" height="20" width="42">&nbsp;</td>\n <td style="line-height: 20px;" height="20" width="516" align="center">&nbsp;</td>\n <td style="line-height: 20px;" height="20" width="42">&nbsp;</td>\n </tr>\n </table>\n <table cellpadding="0" cellspacing="0" align="center" width="100%"> \n <tr>\n <td width="42">&nbsp;</td>\n <td width="376" align="left" valign="top">\n <table cellpadding="0" cellspacing="0" align="center" width="100%">\n <tr>\n <td style="line-height: 10px;" height="10">&nbsp;</td>\n </tr>\n <tr>\n <td><p style="font-family: arial; font-size: 13px; color: #666666; line-height: 13px; margin: 0; padding: 0;" align="left">Questions? Contact us <a href="#" style="color: #00c0f3; font-weight: bold; text-decoration: none;">here</a>.</p></td>\n </tr>\n <tr>\n <td style="line-height: 60px;" height="60">&nbsp;</td>\n </tr>\n <tr>\n <td align="left">\n <table cellpadding="0" cellspacing="0" align="left">\n <tr>\n <td width="120" valign="middle"><span style="font-family: arial; font-size: 11px; color: #999999; line-height: 11px; margin: 0; padding: 0; text-transform: uppercase;" align="left">Connect with Us</span></td>\n <td width="24" valign="middle"><a href="#" target="_blank"><img src="{url}assets/edm/images/social-fb.jpg" width="24" height="19" border="0" style="display: block; border: 0;" /></a></td>\n <td width="31" valign="middle"><a href="#" target="_blank"><img src="{url}assets/edm/images/social-linkedin.jpg" width="31" height="19" border="0" style="display: block; border: 0;" /></a></td>\n <td width="34" valign="middle"><a href="#" target="_blank"><img src="{url}assets/edm/images/social-youtube.jpg" width="34" height="19" border="0" style="display: block; border: 0;" /></a></td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n \n </td>\n <td width="20">&nbsp;</td>\n <td width="162" valign="bottom"><img src="{url}assets/edm/images/bottom-triangle.jpg" width="162" height="127" border="0" style="display: block; border: 0;" /></td>\n </tr>\n </table>\n <!--body-->\n </td>\n </tr>\n </table>\n </center>\n</body>\n</html>'); -- -------------------------------------------------------- -- -- Table structure for table `fund_transaction` -- CREATE TABLE IF NOT EXISTS `fund_transaction` ( `fund_transaction_id` int(11) NOT NULL AUTO_INCREMENT, `bank_account_id` int(11) NOT NULL, `fund_transaction_type` int(2) NOT NULL, `amount` decimal(15,2) NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`fund_transaction_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE IF NOT EXISTS `groups` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `description` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `groups` -- INSERT INTO `groups` (`id`, `name`, `description`) VALUES (1, 'admin', 'Super Administrator'), (2, 'account manager', 'Account Manager'), (3, 'property manager', 'Property Manager'), (4, 'content manager', 'Content Manager'), (5, 'user', 'User'); -- -------------------------------------------------------- -- -- Table structure for table `login_attempts` -- CREATE TABLE IF NOT EXISTS `login_attempts` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(15) NOT NULL, `login` varchar(100) NOT NULL, `time` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=66 ; -- -- Dumping data for table `login_attempts` -- INSERT INTO `login_attempts` (`id`, `ip_address`, `login`, `time`) VALUES (55, '172.16.17.32', '<EMAIL>', 1507783932), (57, '172.16.17.32', 'bhutson', 1507790753), (58, '192.168.3.11', '<EMAIL>', 1507804032), (59, '192.168.3.11', '<EMAIL>', 1507806420), (60, '192.168.3.11', '<EMAIL>', 1507806434), (61, '192.168.3.11', '<EMAIL>', 1507806447), (62, '172.16.58.3', '<EMAIL>', 1507849830), (65, '172.16.58.3', '<EMAIL>', 1507852107); -- -------------------------------------------------------- -- -- Table structure for table `message` -- CREATE TABLE IF NOT EXISTS `message` ( `message_id` int(11) NOT NULL AUTO_INCREMENT, `sender_id` int(11) NOT NULL, `recipient_id` int(11) NOT NULL, `property_id` int(11) NOT NULL, `message` text NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`message_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `properties` -- CREATE TABLE IF NOT EXISTS `properties` ( `property_id` int(11) NOT NULL AUTO_INCREMENT, `property_name` varchar(100) NOT NULL, `address` text NOT NULL, `developer` varchar(100) NOT NULL, `property_size` decimal(15,2) NOT NULL, `property_price` decimal(15,2) NOT NULL, `property_description` text NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) DEFAULT '0', PRIMARY KEY (`property_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `properties` -- INSERT INTO `properties` (`property_id`, `property_name`, `address`, `developer`, `property_size`, `property_price`, `property_description`, `dtstamp`, `status`) VALUES (1, '<NAME>', 'Quezon City, Philippines', 'SMDC', '1000.00', '2000000.00', 'is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum', '2018-04-12 00:00:00', 0); -- -------------------------------------------------------- -- -- Table structure for table `property_transaction` -- CREATE TABLE IF NOT EXISTS `property_transaction` ( `transaction_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `property_id` int(11) NOT NULL, PRIMARY KEY (`transaction_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `shares` -- CREATE TABLE IF NOT EXISTS `shares` ( `share_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `user_portfolio_id` int(11) NOT NULL, `rental` varchar(100) NOT NULL, `equity` varchar(100) NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`share_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `trust_account` -- CREATE TABLE IF NOT EXISTS `trust_account` ( `trust_account_id` int(11) NOT NULL AUTO_INCREMENT, `amount` decimal(15,2) NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`trust_account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userkey` varchar(100) NOT NULL, `ip_address` varchar(45) NOT NULL, `username` varchar(100) DEFAULT NULL, `password` varchar(255) NOT NULL, `salt` varchar(255) DEFAULT NULL, `email` varchar(100) NOT NULL, `activation_code` varchar(40) DEFAULT NULL, `forgotten_password_code` varchar(40) DEFAULT NULL, `forgotten_password_time` int(11) unsigned DEFAULT NULL, `remember_code` varchar(40) DEFAULT NULL, `created_on` datetime NOT NULL, `last_login` datetime DEFAULT NULL, `active` tinyint(1) unsigned DEFAULT NULL, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, `dob` date NOT NULL, `address` text NOT NULL, `nationality` varchar(100) NOT NULL, `race` varchar(100) NOT NULL, `religion` varchar(100) NOT NULL, `billing_scan` varchar(100) NOT NULL, `id_scan` varchar(100) NOT NULL, `profile_photo` text NOT NULL, `is_complete` int(2) NOT NULL DEFAULT '0', `newsletter` int(2) NOT NULL DEFAULT '0', `status` enum('registered','verified','disabled') NOT NULL DEFAULT 'registered', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `userkey`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `phone`, `dob`, `address`, `nationality`, `race`, `religion`, `billing_scan`, `id_scan`, `profile_photo`, `is_complete`, `newsletter`, `status`) VALUES (1, '', '127.0.0.1', '<EMAIL>', '$2a$07$SeBknntpZror9uyftVopmu61qg0ms8Qv1yV6FG.kQOSM.9QhmTo36', '', '<EMAIL>', '', NULL, NULL, NULL, '0000-00-00 00:00:00', '2018-04-24 14:11:47', 1, 'Admin', 'Administrator', '0', '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (2, '', '::1', '<EMAIL>', '$2y$08$09a0WqM1e0pV3mXgPUtawOMcEJvUHIJ9TUnTm01ny0sy2adhDqmCW', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', 'Test', NULL, '0000-00-00', '', '', '', '', '', '', '339e5772.jpg', 0, 0, 'registered'), (3, '', '::1', '<EMAIL>', '$2y$08$6L939nb0PFB3LRs2oTB3H.oHITB2tzOMpwpedEIsWI5jndZfD4U2W', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, '<NAME>', 'Test', NULL, '0000-00-00', '', '', '', '', '', '', '8d966e6e.jpg', 0, 0, 'registered'), (4, '', '::1', '<EMAIL>', '$2y$08$0TxBfAcdvBiqnWzJtImcfOeTxICx1KizpLMD1jGRzzxznpLvM7o92', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', 'Carino', NULL, '0000-00-00', '', '', '', '', '', '', '26460861.jpg', 0, 0, 'registered'), (5, '', '::1', '<EMAIL>', '$2y$08$VA9IbUKH0I/Y9aXfzQVYGOfc0.FX2Ho2t9B.TuTwRS6z/kOCeEa9W', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Account Manager', 'Dino', NULL, '0000-00-00', '', '', '', '', '', '', '1c831980.jpg', 0, 0, 'registered'), (6, '', '::1', '<EMAIL>', <PASSWORD>', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Content', 'Manager', NULL, '0000-00-00', '', '', '', '', '', '', '21126283_1933068833600223_7861039776709738496_n.gif', 0, 0, 'registered'), (7, '', '::1', '<EMAIL>', <PASSWORD>', NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Property', 'Manager', NULL, '0000-00-00', '', '', '', '', '', '', '69e83619.png', 0, 0, 'registered'), (8, '', '::1', '<EMAIL>', '$2y$08$h0vK/5TLoXuSTCzAuNDo5OpZrcNNX60a7B3PLGhxm8E.FIAZeiU2.', NULL, '<EMAIL>', '183J1H3V1T3B163N', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (9, '', '::1', '<EMAIL>', '$2y$08$g3kRVJmkBw3JWGH8WzXEmu.Un2sNLWIgiIAway/5O5dwGXlNgn4py', NULL, '<EMAIL>', '72A0W290S2Y0O2U0', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (10, '', '::1', 'jk', '$2y$08$nFKTvY6w4k.GSxwBdtAFJ.0/ixlMiNPYB/Q5pqcrENWN1aYf8ZhIm', NULL, '<EMAIL>', '1X3F1D3R1P34183J', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (11, '', '::1', '<EMAIL>', '$2y$08$wGiVvdeUm7ka0QsQmJMiz.Dt/tSMdDDX1Fx9dufz0FcMQe/VLuB9S', NULL, 'hj', '163N1L3Z1X3F1D3R', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (12, '', '::1', '<EMAIL>', '$2y$08$anaOig2Y.Ft7DegrR9LSpeCu7noaCA5WhNIaVy2PFqx46uhECmp8O', NULL, '<EMAIL>', '183J1H3V1T3B163N', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (13, '', '::1', '<EMAIL>', '$2y$08$MRhQKAjIFgE49ExFeiZaL.JiI21PNx8ISKX25KNnr5vc53uYeezwK', NULL, '<EMAIL>', 'S2Y0O2U0K2Q0G2M0', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (14, '', '::1', '<EMAIL>', '$2y$08$HU6giay8F93PmPFgyOjl9O6E3cyTr2Z3ql/i4P1CDGUaCfv2DWMiW', NULL, '<EMAIL>', 'G2M0C2I052E072A0', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'), (15, '', '::1', '<EMAIL>', '$2y$08$rR/QB7tERpc8BSQ6HBwWDOo70ZWE6IJ7dENu7ZsR5her6fUD/vqtG', NULL, '<EMAIL>', 'Q0G2M0C2I052E072', NULL, NULL, NULL, '0000-00-00 00:00:00', NULL, 1, 'Dino', NULL, NULL, '0000-00-00', '', '', '', '', '', '', '', 0, 0, 'registered'); -- -------------------------------------------------------- -- -- Table structure for table `users_bank_details` -- CREATE TABLE IF NOT EXISTS `users_bank_details` ( `bank_account_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `bank_name` varchar(100) NOT NULL, `swift_code` varchar(25) NOT NULL, `account_no` varchar(15) NOT NULL, `account_name` varchar(100) NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`bank_account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `users_bank_details` -- INSERT INTO `users_bank_details` (`bank_account_id`, `user_id`, `bank_name`, `swift_code`, `account_no`, `account_name`, `dtstamp`, `status`) VALUES (1, 4, 'AUB', '87465132', '87465132', 'DINO PAOLO S CARINO', '2018-04-12 00:00:00', 0), (2, 4, 'BDO', '1234567', '1234567', 'DINO PAOLO S CARINO', '0000-00-00 00:00:00', 0), (3, 4, 'BPI', '987654321', '987654321', 'RHEA CARINO', '0000-00-00 00:00:00', 0); -- -------------------------------------------------------- -- -- Table structure for table `users_groups` -- CREATE TABLE IF NOT EXISTS `users_groups` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL, `group_id` mediumint(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uc_users_groups` (`user_id`,`group_id`), KEY `fk_users_groups_users1_idx` (`user_id`), KEY `fk_users_groups_groups1_idx` (`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ; -- -- Dumping data for table `users_groups` -- INSERT INTO `users_groups` (`id`, `user_id`, `group_id`) VALUES (1, 1, 1), (2, 2, 1), (3, 3, 1), (4, 4, 5), (5, 5, 2), (6, 6, 4), (7, 7, 3), (8, 8, 5), (9, 9, 5), (10, 10, 5), (11, 11, 5), (12, 12, 5), (13, 13, 5), (14, 14, 5), (15, 15, 5); -- -------------------------------------------------------- -- -- Table structure for table `users_portfolio` -- CREATE TABLE IF NOT EXISTS `users_portfolio` ( `user_portfolio_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `property_id` int(11) NOT NULL, `unit_holdings` int(11) NOT NULL, `unit_price` int(11) NOT NULL, `investment_value` int(11) NOT NULL, `property_value` int(11) NOT NULL, `psf` int(11) NOT NULL, `tax_amortisation` int(11) NOT NULL, `dtstamp` datetime NOT NULL, `status` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`user_portfolio_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 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 */;
CREATE TABLE [dbo].[l_priority_level] ( [Id] INT NOT NULL PRIMARY KEY Identity, [SortOrder] INT Not Null, [Text] varchar(50) NOT NULL, [Active] BIT NOT NULL )
create database Bank go use Bank go create Table Organisation ( OrgId INT IDENTITY(1,1) PRIMARY KEY NONCLUSTERED, OrgGuid UNIQUEIDENTIFIER NOT NULL DEFAULT(NEWID()), OrgName NVARCHAR(100) NOT NULL, OrgStatus BIT NOT NULL ) go create Table Accounts ( AccountId INT IDENTITY (1,1) PRIMARY KEY NONCLUSTERED, AccountGuid UNIQUEIDENTIFIER NOT NULL DEFAULT(NEWID()), AccountNumber NVARCHAR(50) NOT NULL, AccountNickname NVARCHAR(200), AccountStatus BIT NOT NULL DEFAULT(1) ) go -- THIS IS OUR BoundedContext's view of Users create Table Users ( UserId INT PRIMARY KEY NONCLUSTERED, UserGuid UNIQUEIDENTIFIER ) GO create Table AccountOwners ( AccountId INT, UserId INT FOREIGN KEY (AccountId) REFERENCES Accounts(AccountId), FOREIGN KEY (UserId) REFERENCES Users(UserId), PRIMARY KEY (AccountId, UserId) ) go
<filename>Merise/WorkgroupHorticool/Horticool.sql USE Horticool; CREATE TABLE depots( depot_id INT, PRIMARY KEY(depot_id) ); CREATE TABLE geographical_areas( geographical_name VARCHAR(64), PRIMARY KEY(geographical_name) ); CREATE TABLE cities( city_zipcode VARCHAR(5), city_name VARCHAR(64) NOT NULL, depot_id INT NOT NULL, geographical_name VARCHAR(64) NOT NULL, PRIMARY KEY(city_zipcode), FOREIGN KEY(depot_id) REFERENCES depots(depot_id), FOREIGN KEY(geographical_name) REFERENCES geographical_areas(geographical_name) ); CREATE TABLE meetings( meeting_date DATE, PRIMARY KEY(meeting_date) ); CREATE TABLE members( member_id INT, member_first_name VARCHAR(32) NOT NULL, production_type VARCHAR(255) NOT NULL, city_zipcode VARCHAR(5) NOT NULL, PRIMARY KEY(member_id), FOREIGN KEY(city_zipcode) REFERENCES cities(city_zipcode) ); CREATE TABLE reservations( reservation_id INT, reservation_products VARCHAR(32) NOT NULL, reservation_quantity INT NOT NULL, meeting_date DATE NOT NULL, member_id INT NOT NULL, PRIMARY KEY(reservation_id), FOREIGN KEY(meeting_date) REFERENCES meetings(meeting_date), FOREIGN KEY(member_id) REFERENCES members(member_id) ); CREATE TABLE products( product_variety VARCHAR(64), product_type VARCHAR(64) NOT NULL, product_price INT NOT NULL, product_quantity INT NOT NULL, member_id INT NOT NULL, reservation_id INT NOT NULL, PRIMARY KEY(product_variety), FOREIGN KEY(member_id) REFERENCES members(member_id), FOREIGN KEY(reservation_id) REFERENCES reservations(reservation_id) );
INSERT INTO RP_MOV_EGRESODET ( DESCUENTOME, DESCTO_UNIME, IVA_UNIME, PRECIOME, PRECIO_VENTAME, IVA_UNI, DESCTO_UNI, PRECIO, EXIS_ANT, COSTO_ANT, DESCUENTO, PORCENTAJE, PRECIO_LISTA, PRECIO_VENTA, COSTO_UNITARIO, COSTO_REPOSICION, CANTIDAD, IVA_SRV, EXIST_CALC, COSTO_CALC, ID_REPUESTOO, ID_REPUESTO, CORRELATIVO, ID_EGRESO, FLG_VENTA_ADICIONAL, FLG_DEVOLUCION ) VALUES ( :DESCUENTOME, :DESCTO_UNIME, :IVA_UNIME, :PRECIOME, :PRECIO_VENTAME, :IVA_UNI, :DESCTO_UNI, :PRECIO, 0, 0, :DESCUENTO, :PORCENTAJE, :PRECIO_LISTA, :PRECIO_VENTA, :COSTO_UNITARIO, :COSTO_REPOSICION, :CANTIDAD, 0, 0, 0, :OID_REPUESTO, :ID_REPUESTO, :CORRELATIVO, :ID_EGRESO, 'N', 'N' )
DELETE FROM `sys_page_compose` WHERE `Page` = 'bx_sounds_view' AND `Func` = 'RelatedFiles'; INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES ('bx_sounds_view', '1140px', '', '_bx_sounds_related', 0, 0, 'RelatedFiles', '', 1, 28.1, 'non,memb', 0); DELETE FROM `sys_stat_site` WHERE `Name` = 'pmu'; SET @iStatSiteOrder := (SELECT `StatOrder` + 1 FROM `sys_stat_site` WHERE 1 ORDER BY `StatOrder` DESC LIMIT 1); INSERT INTO `sys_stat_site` (`Name`, `Title`, `UserLink`, `UserQuery`, `AdminLink`, `AdminQuery`, `IconName`, `StatOrder`) VALUES ('pmu', 'bx_sounds', 'modules/?r=sounds/browse/all', 'SELECT COUNT(`ID`) FROM `RayMp3Files` WHERE `Status`=''approved''', 'modules/?r=sounds/administration/home/disapproved', 'SELECT COUNT(*) FROM `RayMp3Files` as a left JOIN `sys_albums_objects` as b ON b.`id_object`=a.`ID` left JOIN `sys_albums` as c ON c.`ID`=b.`id_album` WHERE a.`Status` =''disapproved'' AND c.`AllowAlbumView` NOT IN(8) AND c.`Type`=''bx_sounds''', 'music', @iStatSiteOrder); DELETE FROM `sys_account_custom_stat_elements` WHERE `Label` = '_bx_sounds'; INSERT INTO `sys_account_custom_stat_elements` VALUES (NULL, '_bx_sounds', '__pmu__ (<a href="modules/?r=sounds/albums/my/main/">__l_add__</a>)'); -- update module version UPDATE `sys_modules` SET `version` = '1.1.1' WHERE `uri` = 'sounds' AND `version` = '1.1.0';
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : coreapi Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 14/04/2020 18:28:13 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_configvalues -- ---------------------------- DROP TABLE IF EXISTS `sys_configvalues`; CREATE TABLE `sys_configvalues` ( `IID` int(11) NOT NULL AUTO_INCREMENT, `Key` int(11) NOT NULL, `Property0` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property1` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property2` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property3` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property4` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property5` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property6` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property7` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property8` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property9` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `Property10` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`IID`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_configvalues -- ---------------------------- INSERT INTO `sys_configvalues` VALUES (1, 1001, '{\"EmailAccount\":\"<EMAIL>\",\"PassWord\":\"<PASSWORD>\",\"EmailType\":\"IMAP\",\"PickUpServer\":\"imap-mail.outlook.com\",\"SendingServer\":\"smtp-mail.outlook.com\",\"IsSSl\":true}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); SET FOREIGN_KEY_CHECKS = 1;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2021 at 01:38 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `wikiproject` -- CREATE DATABASE IF NOT EXISTS `wikiproject` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `wikiproject`; -- -------------------------------------------------------- -- -- Table structure for table `comment` -- DROP TABLE IF EXISTS `comment`; CREATE TABLE `comment` ( `comment_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `page_id` int(11) NOT NULL, `comment_text` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `page` -- DROP TABLE IF EXISTS `page`; CREATE TABLE `page` ( `page_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `page_title` varchar(32) NOT NULL, `page_text` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `profile` -- DROP TABLE IF EXISTS `profile`; CREATE TABLE `profile` ( `profile_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `first_name` varchar(32) NOT NULL, `last_name` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `profile` -- INSERT INTO `profile` (`profile_id`, `user_id`, `first_name`, `last_name`) VALUES (1, 1, 'Joe', 'Smith'); -- -------------------------------------------------------- -- -- Table structure for table `report` -- DROP TABLE IF EXISTS `report`; CREATE TABLE `report` ( `report_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `comment_id` int(11) NOT NULL, `report_reason` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `star_page` -- DROP TABLE IF EXISTS `star_page`; CREATE TABLE `star_page` ( `profile_id` int(11) NOT NULL, `page_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `username` varchar(32) NOT NULL, `password_hash` varchar(256) NOT NULL, `timeout` timestamp NOT NULL DEFAULT current_timestamp(), `role` varchar(16) NOT NULL DEFAULT 'normal user' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `username`, `password_hash`, `timeout`, `role`) VALUES (1, 'admin', <PASSWORD>', '2021-05-10 23:35:32', 'admin'); -- -- Indexes for dumped tables -- -- -- Indexes for table `comment` -- ALTER TABLE `comment` ADD PRIMARY KEY (`comment_id`), ADD KEY `comment_profile_id_to_profile_id` (`profile_id`), ADD KEY `comment_page_id_to_page_id` (`page_id`); -- -- Indexes for table `page` -- ALTER TABLE `page` ADD PRIMARY KEY (`page_id`), ADD KEY `profile_id_to_profile_id` (`profile_id`); -- -- Indexes for table `profile` -- ALTER TABLE `profile` ADD PRIMARY KEY (`profile_id`), ADD UNIQUE KEY `first_name` (`first_name`), ADD KEY `user_id_to_user_id` (`user_id`); -- -- Indexes for table `report` -- ALTER TABLE `report` ADD PRIMARY KEY (`report_id`), ADD KEY `report_profile_id_to_profile_id` (`profile_id`), ADD KEY `report_comment_id_to_comment_id` (`comment_id`); -- -- Indexes for table `star_page` -- ALTER TABLE `star_page` ADD KEY `star_profile_id_to_profile_id` (`profile_id`), ADD KEY `star_page_id_to_page_id` (`page_id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `comment` -- ALTER TABLE `comment` MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `page` -- ALTER TABLE `page` MODIFY `page_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `profile` -- ALTER TABLE `profile` MODIFY `profile_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `report` -- ALTER TABLE `report` MODIFY `report_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `comment` -- ALTER TABLE `comment` ADD CONSTRAINT `comment_page_id_to_page_id` FOREIGN KEY (`page_id`) REFERENCES `page` (`page_id`), ADD CONSTRAINT `comment_profile_id_to_profile_id` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`); -- -- Constraints for table `page` -- ALTER TABLE `page` ADD CONSTRAINT `profile_id_to_profile_id` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`); -- -- Constraints for table `profile` -- ALTER TABLE `profile` ADD CONSTRAINT `user_id_to_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`); -- -- Constraints for table `report` -- ALTER TABLE `report` ADD CONSTRAINT `report_comment_id_to_comment_id` FOREIGN KEY (`comment_id`) REFERENCES `comment` (`comment_id`), ADD CONSTRAINT `report_profile_id_to_profile_id` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`); -- -- Constraints for table `star_page` -- ALTER TABLE `star_page` ADD CONSTRAINT `star_page_id_to_page_id` FOREIGN KEY (`page_id`) REFERENCES `page` (`page_id`), ADD CONSTRAINT `star_profile_id_to_profile_id` FOREIGN KEY (`profile_id`) REFERENCES `profile` (`profile_id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>src/OpaEarning/Source/Interface/1718.01/Reference Data/InsertReferenceDataSQL_2.sql truncate table [Reference].[EFA_PostcodeDisadvantage] insert into [Reference].[EFA_PostcodeDisadvantage] select distinct [EFA_PostcodeDisadvantage].[Postcode], [EFA_PostcodeDisadvantage].[Uplift] from [Valid].[Learner] inner join [${PostcodeFactorsReferenceData.FullyQualified}].[${PostcodeFactorsReferenceData.schemaname}].[EFA_PostcodeDisadvantage] on [EFA_PostcodeDisadvantage].[Postcode]=[Learner].[Postcode] go truncate table [Reference].[LargeEmployers] insert into [Reference].[LargeEmployers] select distinct [LargeEmployers].[EffectiveFrom], [LargeEmployers].[EffectiveTo], [LargeEmployers].[ERN] from [Valid].[LearnerEmploymentStatus] inner join [${Large_Employers_Reference_Data.FullyQualified}].[${Large_Employers_Reference_Data.schemaname}].[LargeEmployers] on [LargeEmployers].[ERN]=[LearnerEmploymentStatus].[EmpId] go truncate table [Reference].[LARS_Funding] insert into [Reference].[LARS_Funding] select distinct [LARS_Funding].[EffectiveFrom], [LARS_Funding].[EffectiveTo], [LARS_Funding].[FundingCategory], [LARS_Funding].[LearnAimRef], [LARS_Funding].[RateUnWeighted], [LARS_Funding].[RateWeighted], [LARS_Funding].[WeightingFactor] from [Valid].[LearningDelivery] inner join [${UoD.FullyQualified}].[${LARS.schemaname}].[LARS_Funding] on [LARS_Funding].[LearnAimRef]=[LearningDelivery].[LearnAimRef] go truncate table [Reference].[LARS_StandardCommonComponent] insert into [Reference].[LARS_StandardCommonComponent] select distinct [LARS_StandardCommonComponent].[CommonComponent], [LARS_StandardCommonComponent].[EffectiveFrom], [LARS_StandardCommonComponent].[EffectiveTo], [LARS_StandardCommonComponent].[StandardCode] from [Valid].[LearningDelivery] inner join [${UoD.FullyQualified}].[${LARS.schemaname}].[LARS_StandardCommonComponent] on [LARS_StandardCommonComponent].[StandardCode]=[LearningDelivery].[StdCode] go truncate table [Reference].[Org_Funding] insert into [Reference].[Org_Funding] select distinct [Org_Funding].[EffectiveFrom], [Org_Funding].[EffectiveTo], [Org_Funding].[FundingFactor], [Org_Funding].[FundingFactorType], [Org_Funding].[FundingFactorValue], [Org_Funding].[UKPRN] from [Valid].[LearningProvider] inner join [${ORG.FullyQualified}].[${Org.Schemaname}].[Org_Funding] on [Org_Funding].[UKPRN]=[LearningProvider].[UKPRN] and [Org_Funding].[FundingFactorType]='Adult Skills' go truncate table [Reference].[SFA_PostcodeAreaCost] insert into [Reference].[SFA_PostcodeAreaCost] select distinct [SFA_PostcodeAreaCost].[AreaCostFactor], [SFA_PostcodeAreaCost].[EffectiveFrom], [SFA_PostcodeAreaCost].[EffectiveTo], [SFA_PostcodeAreaCost].[Postcode] from [Valid].[LearningDelivery] inner join [${PostcodeFactorsReferenceData.FullyQualified}].[${PostcodeFactorsReferenceData.schemaname}].[SFA_PostcodeAreaCost] on [SFA_PostcodeAreaCost].[Postcode]=[LearningDelivery].[DelLocPostCode] go truncate table [Reference].[SFA_PostcodeDisadvantage] insert into [Reference].[SFA_PostcodeDisadvantage] ( [Apprenticeship_Uplift], [EffectiveFrom], [EffectiveTo], [Postcode], [Uplift] ) select distinct --[SFA_PostcodeDisadvantage].[Apprenticeship_Uplift], 1 as [Apprenticeship_Uplift], [SFA_PostcodeDisadvantage].[EffectiveFrom], [SFA_PostcodeDisadvantage].[EffectiveTo], [SFA_PostcodeDisadvantage].[Postcode], [SFA_PostcodeDisadvantage].[Uplift] from [Valid].[Learner] inner join [${PostcodeFactorsReferenceData.FullyQualified}].[${PostcodeFactorsReferenceData.schemaname}].[SFA_PostcodeDisadvantage] on [SFA_PostcodeDisadvantage].[Postcode]=[Learner].[Postcode] go
<reponame>StevenAdly32/attendingbasedarduino -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Waktu pembuatan: 23 Agu 2021 pada 09.10 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `absenrfid` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `absensi` -- CREATE TABLE `absensi` ( `id` int(11) NOT NULL, `nokartu` varchar(20) NOT NULL, `tanggal` date NOT NULL, `jam_masuk` time NOT NULL, `jam_pulang` time NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `absensi` -- INSERT INTO `absensi` (`id`, `nokartu`, `tanggal`, `jam_masuk`, `jam_pulang`) VALUES (6, '123', '2021-07-12', '19:40:04', '19:41:04'), (7, '1157416024', '2021-07-13', '13:19:54', '13:20:32'), (8, '5111816324', '2021-08-05', '13:18:21', '13:18:29'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pegawai` -- CREATE TABLE `pegawai` ( `id` int(11) NOT NULL, `nokartu` varchar(20) NOT NULL, `nama` varchar(50) NOT NULL, `alamat` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `pegawai` -- INSERT INTO `pegawai` (`id`, `nokartu`, `nama`, `alamat`) VALUES (10, '1157416024', 'adly ', 'tes'); -- -------------------------------------------------------- -- -- Struktur dari tabel `status` -- CREATE TABLE `status` ( `mode` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `status` -- INSERT INTO `status` (`mode`) VALUES (1); -- -------------------------------------------------------- -- -- Struktur dari tabel `tmprfid` -- CREATE TABLE `tmprfid` ( `nokartu` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `absensi` -- ALTER TABLE `absensi` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `pegawai` -- ALTER TABLE `pegawai` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `status` -- ALTER TABLE `status` ADD PRIMARY KEY (`mode`); -- -- Indeks untuk tabel `tmprfid` -- ALTER TABLE `tmprfid` ADD PRIMARY KEY (`nokartu`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `absensi` -- ALTER TABLE `absensi` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `pegawai` -- ALTER TABLE `pegawai` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/** * Inserts data for bids */ /*price integer NOT NULL, accepted_bid boolean DEFAULT false, bidder VARCHAR(355), caretaker VARCHAR(355), pet_name VARCHAR(32), start_date DATE, end_date DATE, FOREIGN KEY (caretaker, start_date, end_date) REFERENCES availability(caretaker, start_date, end_date) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY (bidder, pet_name) REFERENCES pet(owner, pet_name), PRIMARY KEY (bidder, pet_name, caretaker, start_date, end_date)*/ /*INSERT INTO availability VALUES ('2017-10-02', '2017-10-05', 'cat', '<EMAIL>', 10, TRUE, 'I love taking care of cats!');*/ INSERT INTO bid VALUES ('12', false, '<EMAIL>', '<EMAIL>', 'Dime', '2017-10-02', '2017-10-05'); INSERT INTO bid VALUES ('21', true, '<EMAIL>', '<EMAIL>', 'Shadow', '2017-10-02', '2017-10-05'); /*INSERT INTO availability VALUES ('2017-10-26', '2017-10-30', 'cat', '<EMAIL>', 13, FALSE);*/ INSERT INTO bid VALUES ('14', false, '<EMAIL>', '<EMAIL>', 'Dime', '2017-10-26', '2017-10-30'); INSERT INTO bid VALUES ('20', false, '<EMAIL>', '<EMAIL>', 'Shadow', '2017-10-26', '2017-10-30'); INSERT INTO bid VALUES ('17', false, '<EMAIL>', '<EMAIL>', 'Bean', '2017-10-26', '2017-10-30'); /*INSERT INTO availability VALUES ('2017-10-21', '2017-10-24', 'dog', '<EMAIL>', 7, TRUE);*/ INSERT INTO bid VALUES ('12', true, '<EMAIL>', '<EMAIL>', 'Power', '2017-10-21', '2017-10-24'); /* INSERT INTO availability VALUES ('2017-11-11', '2017-11-14', 'dog', '<EMAIL>', 6, FALSE, 'I am really experienced in taking care of dogs!');*/ INSERT INTO bid VALUES ('12', false, '<EMAIL>', '<EMAIL>', 'Power', '2017-11-11', '2017-11-14'); INSERT INTO bid VALUES ('15', false, '<EMAIL>', '<EMAIL>', 'Pippen', '2017-11-11', '2017-11-14'); INSERT INTO bid VALUES ('20', false, '<EMAIL>', '<EMAIL>', 'Maggie', '2017-11-11', '2017-11-14'); INSERT INTO bid VALUES ('17', false, '<EMAIL>', '<EMAIL>', 'Beauty', '2017-11-11', '2017-11-14'); /*INSERT INTO availability VALUES ('2017-12-12', '2017-12-16', 'hamster', '<EMAIL>', 18, FALSE);*/ INSERT INTO bid VALUES ('22', false, '<EMAIL>', '<EMAIL>', 'Dinky', '2017-12-12', '2017-12-16'); INSERT INTO bid VALUES ('31', false, '<EMAIL>', '<EMAIL>', 'Postgresql', '2017-12-12', '2017-12-16'); INSERT INTO bid VALUES ('19', false, '<EMAIL>', '<EMAIL>', 'Light', '2017-12-12', '2017-12-16'); /*INSERT INTO availability VALUES ('2017-12-19', '2017-12-21', 'hamster', '<EMAIL>', 10, FALSE);*/ INSERT INTO bid VALUES ('22', false, '<EMAIL>', '<EMAIL>', 'Dinky', '2017-12-19', '2017-12-21'); INSERT INTO bid VALUES ('31', false, '<EMAIL>', '<EMAIL>', 'Postgresql', '2017-12-19', '2017-12-21'); /*INSERT INTO availability VALUES ('2018-01-07', '2018-01-11', 'hamster', '<EMAIL>', 10, TRUE);*/ INSERT INTO bid VALUES ('22', true, '<EMAIL>', '<EMAIL>', 'Dinky', '2018-01-07', '2018-01-11'); INSERT INTO bid VALUES ('31', false, '<EMAIL>', '<EMAIL>', 'Postgresql', '2018-01-07', '2018-01-11'); INSERT INTO bid VALUES ('19', false, '<EMAIL>', '<EMAIL>', 'Light', '2018-01-07', '2018-01-11'); /*INSERT INTO availability VALUES ('2018-01-15', '2018-01-18', 'bird', '<EMAIL>', 10, FALSE, 'I will definitely take good care of your bird!');*/ INSERT INTO bid VALUES ('15', false, '<EMAIL>', '<EMAIL>', 'Salern', '2018-01-15', '2018-01-18'); INSERT INTO bid VALUES ('17', false, '<EMAIL>', '<EMAIL>', 'Leah', '2018-01-15', '2018-01-18'); /*INSERT INTO availability VALUES ('2018-02-16', '2018-02-20', 'bird', '<EMAIL>', 9, TRUE);*/ INSERT INTO bid VALUES ('20', false, '<EMAIL>', '<EMAIL>', 'Salern', '2018-02-16', '2018-02-20'); INSERT INTO bid VALUES ('10', true, '<EMAIL>', '<EMAIL>', 'Leah', '2018-02-16', '2018-02-20'); /*INSERT INTO availability VALUES ('2018-01-30', '2018-02-04', 'rabbit', '<EMAIL>', 8, FALSE);*/ INSERT INTO bid VALUES ('10', false, '<EMAIL>', '<EMAIL>', 'Prada', '2018-01-30', '2018-02-04'); INSERT INTO bid VALUES ('10', false, '<EMAIL>', '<EMAIL>', 'Balto', '2018-01-30', '2018-02-04'); /*INSERT INTO availability VALUES ('2018-02-01', '2018-02-05', 'hamster', '<EMAIL>', 10, FALSE);*/ INSERT INTO bid VALUES ('22', false, '<EMAIL>', '<EMAIL>', 'Dinky', '2018-02-01', '2018-02-05'); INSERT INTO bid VALUES ('13', false, '<EMAIL>', '<EMAIL>', 'Postgresql', '2018-02-01', '2018-02-05'); INSERT INTO bid VALUES ('29', false, '<EMAIL>', '<EMAIL>', 'Light', '2018-02-01', '2018-02-05'); /*INSERT INTO availability VALUES ('2017-10-30', '2017-11-04', 'rabbit', '<EMAIL>', 10, FALSE);*/ INSERT INTO bid VALUES ('12', false, '<EMAIL>', '<EMAIL>', 'Prada', '2017-10-30', '2017-11-04'); INSERT INTO bid VALUES ('16', false, '<EMAIL>', '<EMAIL>', 'Balto', '2017-10-30', '2017-11-04');
<gh_stars>1-10 -- Create database scoped credential to connect to MySQL server -- Provide appropriate credentials to MySQL server in below statement. -- If you are using SQL Server Management Studio then you can replace the parameters using -- the Query menu, and "Specify Values for Template Parameters" option. IF NOT EXISTS(SELECT * FROM sys.database_scoped_credentials WHERE name = 'MySQL80-user') CREATE DATABASE SCOPED CREDENTIAL [MySQL80-user] WITH IDENTITY = 'mssql-user' , SECRET = '<KEY>'; -- Create external data source that points to MySQL server -- The tokens '%u' and '%p' is used to reference the credential information. -- IF NOT EXISTS(SELECT * FROM sys.external_data_sources WHERE name = 'MySQL80') CREATE EXTERNAL DATA SOURCE MySQL80 WITH (LOCATION = 'odbc://uc-win19-vm.redmond.corp.microsoft.com' , CONNECTION_OPTIONS = 'Driver={MySQL 8.0 ODBC Driver Unicode Driver};User name=%u;Passwword=%p' , CREDENTIAL = [MySQL80-user]); -- Create external table over inventory table on MySQL server -- IF NOT EXISTS(SELECT * FROM sys.external_tables WHERE name = 'mysql_version') CREATE EXTERNAL TABLE mysql_version ( [sys_version] NVARCHAR(5) NOT NULL, [mysql_version] NVARCHAR(6) NOT NULL ) WITH (LOCATION = 'sys.version', DATA_SOURCE = MySQL80); SELECT * FROM mysql_version; /* IF NOT EXISTS(SELECT * FROM sys.external_tables WHERE name = 'mysql_tables') CREATE EXTERNAL TABLE mysql_tables ( TABLE_CATALOG nvarchar(64), TABLE_SCHEMA nvarchar(64), TABLE_NAME nvarchar(64), TABLE_TYPE nvarchar(64), ENGINE nvarchar(64), VERSION smallint, ROW_FORMAT nvarchar(64), TABLE_ROWS bigint, AVG_ROW_LENGTH bigint, DATA_LENGTH bigint, MAX_DATA_LENGTH bigint, INDEX_LENGTH bigint, DATA_FREE bigint, AUTO_INCREMENT bigint, CREATE_TIME datetime2, UPDATE_TIME datetime2, CHECK_TIME datetime2, TABLE_COLLATION nvarchar(64), CHECKSUM bigint, CREATE_OPTIONS nvarchar(256), TABLE_COMMENT nvarchar(256) ) WITH (LOCATION = 'information_schema.tables', DATA_SOURCE = MySQL80); SELECT * FROM mysql_tables; */ -- Cleanup /* DROP EXTERNAL TABLE mysql_tables DROP EXTERNAL DATA SOURCE MySQL80 DROP DATABASE SCOPED CREDENTIAL [MySQL80-user] */
<gh_stars>1-10 {{ config(materialized='table') }} select event, count(*) as event_count, count(distinct(anonymous_id)) as event_user_count, 21 as window_width, /* vary 21 as required */ event_count/window_width as event_daily_average, CURRENT_TIMESTAMP as record_created_at from {{ source("<schema>","tracks")}} where datediff(day,cast(received_at as timestamp),CURRENT_TIMESTAMP) > window_width group by event
<reponame>katzgrau/getsparks.org -- phpMyAdmin SQL Dump -- version 3.3.9.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 23, 2011 at 12:12 PM -- Server version: 5.5.9 -- PHP Version: 5.3.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!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: `sparks` -- -- -------------------------------------------------------- -- -- Table structure for table `contributors` -- CREATE TABLE `contributors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) CHARACTER SET latin1 NOT NULL, `email` varchar(100) CHARACTER SET latin1 NOT NULL, `email_hash` varchar(32) CHARACTER SET latin1 NOT NULL, `password` varchar(64) CHARACTER SET latin1 NOT NULL, `real_name` varchar(50) CHARACTER SET latin1 NOT NULL, `community_profile_link` varchar(150) CHARACTER SET latin1 NOT NULL, `website` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `is_admin` tinyint(4) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=80 ; -- -- Dumping data for table `contributors` -- INSERT INTO `contributors` VALUES(2, 'katzgrau', '<EMAIL>', '053aed11225b557dbc877098912f9048', '<PASSWORD>', '<NAME>', '', 'http://codefury.net', 1, '2011-02-05 07:23:02', '2011-02-05 07:23:02'); INSERT INTO `contributors` VALUES(3, 'seejohnrun', '<EMAIL>', '3a0541ed3d5324bb54b9f07990be20ae', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', '<NAME>', '', 'http://blog.johncrepezzi.com', 1, '2011-02-05 17:41:16', '2011-02-05 17:41:16'); INSERT INTO `contributors` VALUES(4, 'elliothaughin', '<EMAIL>', '05746ee5bd9c390529bcfc4e97bfaf92', 'e575084e21a8507a59c116dac95d233584e49d8b', '<NAME>', '', 'http://www.haughin.com', 0, '2011-02-13 19:44:57', '2011-02-13 19:44:57'); INSERT INTO `contributors` VALUES(5, 'beaufrusetta', '<EMAIL>', '4935b44b00f304faf444cb6e86a46e1c', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', '<NAME>', '', 'http://beau.frusetta.com', 1, '2011-02-16 22:44:47', '2011-02-16 22:44:47'); INSERT INTO `contributors` VALUES(6, 'mdpauley', '<EMAIL>', '5028354017460d2a697f90874bc62e72', '4afdff80dc61ae12dd15ea1741a1dbb1266c0216', '<NAME>', '', 'http://mdpauley.com', 1, '2011-02-18 02:20:15', '2011-02-18 02:20:15'); INSERT INTO `contributors` VALUES(8, '605651a92e4e984ca8e59e7d6c9e23de', '946dc7c1892a3b6344735f3e674394a4', '9f546e8bbb3268eec59f6bfc1660bb2d', '2920ab0dc41438559626e4e5eb19b0c3', 'a914e862c088a4d76aeb3687c961e3ef', '', 'b4d92393c0968a680f2a2a96d584b6d1', 0, '2011-02-24 21:12:24', '2011-02-24 21:12:24'); INSERT INTO `contributors` VALUES(9, '31cd58df4ec8de8e1e052f7cd784a300', '2a953dc940c9bf42c5376a1d282cba90', '', '2f6e9c54b15c0b505758c3e8c453a276', '4a11df27188585b158c9dc9bb88fdbd8', '', '627064518af679cfb88eb4c650d44f4e', 0, '2011-02-25 21:38:53', '2011-02-25 21:38:53'); INSERT INTO `contributors` VALUES(10, '62fdec77992cea94dc54396405b4334b', '659cf2ed08359b1521ca7cd2c8840606', '<PASSWORD>', 'bbe<PASSWORD>', 'c6a84b4fc6ea423b6b82fd70083eeb2b', '', '44107127ee136e33d1121e6549496a98', 0, '2011-02-26 18:45:45', '2011-02-26 18:45:45'); INSERT INTO `contributors` VALUES(11, '<KEY>', '3ac79e788cb79bcc92e9d11dda07511d', 'd664f094eaeebaa43bd3a2afe4e63c36', 'be479db70a63a8ce6fab0a483dc47a5e', '4c3a96ebada607c47b9430139744feee', '', '3ac5644b3f511dab2bbfd0668060be61', 0, '2011-02-28 19:45:15', '2011-02-28 19:45:14'); INSERT INTO `contributors` VALUES(12, 'c37e8ab19e079561f9b3eeabef2d27d8', '2604d6da7d3e505507664cc60eb4591e', 'a20e412303d8db9b5270c8a65c916bb8', 'f<PASSWORD>aac2bdd<PASSWORD>', '315e570fb12427f933c1a0e377605918', '', 'a5218c474034b37f8d8e166e301a57da', 0, '2011-02-28 19:54:25', '2011-02-28 19:54:25'); INSERT INTO `contributors` VALUES(13, '031205680009d9ea8acb124175ab5cfa', '20effe567eb8e4cfa91f62f1a9ad5eb6', '9d0a17889373de4ba8605767299288cc', '65210c7fc885f6a2b94ee8157c886682', 'e86c3e7f7ac555eec8e73da7fcd86a7b', '', 'e57cf29ef5d2007ac2bc23932f324218', 0, '2011-02-28 19:57:39', '2011-02-28 19:57:39'); INSERT INTO `contributors` VALUES(14, '4d7215c84e1f1d48431c9cf810df7dbc', 'fdf13b48f3e2e0af0d06cecd7cfa725b', '14df293d6c5cd6f05996dfc606a6a951', '52d460298c7a7281cc8563647220b43f', '0a687e411f3c2e1fd1bb1014c27aedd5', '', 'ab88b63940c6ecb1d27919f6803c090b', 0, '2011-02-28 23:56:46', '2011-02-28 23:56:46'); INSERT INTO `contributors` VALUES(15, '2bc50763e2a7c44ded51b67f11e661e4', '9743b0d8fe4ea0075133f8a0d9047394', 'f2f5131935ad6c0d4bd017d20935b37f', '3a915733b3014ef3bb005a6ea9f8deef', '57034832164ecb743a9c31350cdd5a06', '', 'e493f5bd18ecf8e7c58645a0770ad44b', 0, '2011-03-01 00:05:50', '2011-03-01 00:05:50'); INSERT INTO `contributors` VALUES(16, 'e5314aea5bbd88ba55cfdca3a64dba67', 'd8627fcfd6092e336cd3978b1b33d996', '6aec28c9e1522762caa93eadf2231a61', '1c4950b6dec72dad7460222b42c90b3d', '1dc98dfa7910ae7b317cf727bf9a37e5', '', '22424b460dc0ebfd36c37852105ac202', 0, '2011-03-01 00:07:46', '2011-03-01 00:07:46'); INSERT INTO `contributors` VALUES(17, '754d42a023e47081bd381fd1b25ccdb6', 'a7153ad61a5794fa983d617ad93370f4', 'e0aaa4446740a255fc4e74d44ea4d6bb', 'f4f1941c72c5f1e5c2dae03dc5a57274', '7510abca08a47389c5ad3b34c296200f', '', '0488feb9b5709d13ad2b0b2d509c3542', 0, '2011-03-01 00:23:45', '2011-03-01 00:23:45'); INSERT INTO `contributors` VALUES(18, 'f42c41060241fee91667a63e11e19d0d', '920d6b0c4853ffa571c1166667f019a5', 'e420241bec32f3d97b60f82e17550c2e', 'cc660641069f93e875c57e9b6ccee438', 'c270ab46cc74f6e65261eea715d02cdb', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 00:41:23', '2011-03-01 00:41:23'); INSERT INTO `contributors` VALUES(19, 'd06ab329c48872c7379f73a39cd043eb', '70e37bbb99d5610a7de229fa0b1a06cf', '5c3eb3001aad01f66124ce11c674b33b', '392058756cadfd1500910c46bb12b8cf', '7e3b547df246f967b44f1805d5446c5a', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 00:56:06', '2011-03-01 00:56:06'); INSERT INTO `contributors` VALUES(20, '5a5816be91a8a5d951c032c47fe189f2', 'dde3d8aea04c156c47b8fcc495637a4c', '15e10eaa69a500ab4e5acea7f2b3b7f9', '822742a873d4972a4bc28de42137eab0', 'e87125d751af94db17f31f40d74d602f', '', 'fd99b655c3506a855867d92e440138b6', 0, '2011-03-01 01:25:00', '2011-03-01 01:25:00'); INSERT INTO `contributors` VALUES(21, 'b30253670dec486d14c32a8906b<PASSWORD>d', '1558402afb9aee09b59aab155ed15d6e', 'f606e875610a1f3a038f142e6e592bdb', 'babc3cceca19dbb460cc2ed0cbea3cc5', 'cfeae439ab75a40feb322f31767b893d', '', '3c6df2c62c7e8341e363250353e6ce41', 0, '2011-03-01 01:46:51', '2011-03-01 01:46:51'); INSERT INTO `contributors` VALUES(22, '<KEY>', 'fa8a48039115c1a084e92fdcd62e2cf7', '377d40106df1a065334e45fef0d7a0cb', 'db5365e0edc0c40ca7c74120627847e5', '230b971faca3acf9870d82675007c857', '', 'edabf5d0e2b580ae9c778d52304817e5', 0, '2011-03-01 02:13:25', '2011-03-01 02:13:25'); INSERT INTO `contributors` VALUES(23, 'aba05b7863631ebd843c4d61c4e215c0', '07afe6c5e477989b61f67c5108800179', '69b0b75f21d3d55f0bf99d800a1e4547', '3e58ab79ea70e38a5f2598ff612e0a53', '7a153facdb7499413c3c21f8dbb4f80e', '', '771fedf347c7c88076bbc9b2ab81e207', 0, '2011-03-01 02:19:23', '2011-03-01 02:19:23'); INSERT INTO `contributors` VALUES(24, '29365c81b3826244077bb41f9b0706ce', '044e617c8dc9b80cd85994e287a1b69d', '38da1d3946740ae6a32a7918895db440', 'c8e3a728df491c1a72b5120a1f3008a5', 'c6725c67d8b9db45f43166ed2efdaab6', '', '09e201e83fa8582e6dbf263099387640', 0, '2011-03-01 03:10:59', '2011-03-01 03:10:59'); INSERT INTO `contributors` VALUES(25, 'f2d48d10e1c033a58d40b1d71d5cc184', 'bd37a483ac0c71e6f7d37ab6211244b5', '4ef<PASSWORD>4ef2dc<PASSWORD>', '6<PASSWORD>', '3b04b7f67754e2d74d3585d917997977', '', '067520d8bb1c658724fae858c2321f9c', 0, '2011-03-01 06:09:18', '2011-03-01 06:09:18'); INSERT INTO `contributors` VALUES(26, '3e21d74c8a477c51b0fd55d370230760', '4<PASSWORD>fd<PASSWORD>dfdcb<PASSWORD>', '66f85e3a3571bf<PASSWORD>bd6427d8d<PASSWORD>', '8a852ea5649cfec534eace3597b926c8', '611a0f2c3c99246bbe8ec70426ddb70c', '', '69e84844e8dfe93b7fdca8bdb10e1d62', 0, '2011-03-01 09:05:40', '2011-03-01 09:05:40'); INSERT INTO `contributors` VALUES(27, '1329e86859232b06b44fba34dee3c596', '024e16e4f9f6032f14a5825f38900fd0', '54534878e1e0354a3d453e0beeb48fa0', 'ced21b92ee00ebdc86677a5e0238cbcd', '8<PASSWORD>', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 09:25:11', '2011-03-01 09:25:11'); INSERT INTO `contributors` VALUES(28, '4921f80f8f3d22acc07a9f1ef24bd9ae', '5015e1c933692a09787278876854337d', 'c83608cd05d4301e2e05d5d3ed15bb43', '42d04144f98adb5b64c9470c993c43f3', '6b611f0d12a6eeffd245efad7607e918', '', '6b789fe3800fcbff5143d63a0271b37d', 0, '2011-03-01 11:10:19', '2011-03-01 11:10:19'); INSERT INTO `contributors` VALUES(29, '0f72116fab8350cb799a94c7d9aa2773', '82b57738c8d3e6a9d1bc28cc9ccc539f', '3cbe4f897045f81a06f3a285038ff5e1', 'df374cd7b843189cfba5d0a2087ce954', '6859b1fcdd3c663deffa0323d580f8d1', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 11:10:49', '2011-03-01 11:10:49'); INSERT INTO `contributors` VALUES(30, '49add4f25fcadc0b5e1b08bfb4fc30a5', 'abcd88dc4e0ee4a21ea17c2d57ec3a2b', '023c6c7fd19af6c8b4f6080cf3a30a7e', 'c52c7ea9a09ac171b561008912a9747a', '654ef8079bb66c6a6521846b313b995a', '', '12fbd61b05d7a992151992b88b1c97d3', 0, '2011-03-01 12:57:16', '2011-03-01 12:57:16'); INSERT INTO `contributors` VALUES(31, '2f7fd50e593f7b77998669a9d775f5f6', 'fba718fb74a716ffbd8bb35a11684cc4', '2644f325f04199424ab747647ccfacdc', '77446b590256f8950949cd6d20ce7bc6', '370e8f58c54eabe7d49decfa62af1d36', '', '9cc472f87a2adf4d38497b131582999e', 0, '2011-03-01 13:52:24', '2011-03-01 13:52:24'); INSERT INTO `contributors` VALUES(32, 'da7323ae2ada7966a57f0c733daee5be', '1f22230f00450d22eb6e485192c1eb1e', '54bf10ec8f553d3a3c2264ad37273b3e', '80786032dd90563c1f771ed197f01063', 'dec440f9e6916886b06b589e746caf2c', '', '033aa48df9c26c08f631a14fd7ef966d', 0, '2011-03-01 14:18:23', '2011-03-01 14:18:23'); INSERT INTO `contributors` VALUES(33, '8026de2cba3e5755d5f978705073c8da', '2c99606ff364165bca522b1a698094eb', '211dbf4c6372e1ecbc531af0b747f4e6', 'd7fb065d6ca0651eb7ff48aed0046b58', '8d94ac519fa06c46ae181757cc4bb4bf', '', '5910d99b87ebd0aaa2bc6ec668928951', 0, '2011-03-01 14:20:27', '2011-03-01 14:20:27'); INSERT INTO `contributors` VALUES(34, 'b85937b5df50585481f8ebb6521b0cf5', '0902ab75c232fc783bee2ecb641619c9', '37b092a324da25d53fd63d780692b174', '6b4289f9bd5f077c42b83518cab93af9', 'b45aa4a6e47511b48f28915c8c0dd86f', '', 'c96fdb21f36b8b2520dd5b4a657aa4ae', 0, '2011-03-01 15:24:21', '2011-03-01 15:24:21'); INSERT INTO `contributors` VALUES(35, '20cb1f79096d34d20dff7baa42749aef', 'a6dfccc128867b0a9cb48db5e2b1a057', 'a85e84e1e0b47549eb51efd8bf07f8b9', 'b4acdf33663e04ff89ab41a6366c0d40', '50400397b8027caf7adc53c76956a55a', '', '0f8dd82b34399ffc90a7f71c27f3b80d', 0, '2011-03-01 16:35:22', '2011-03-01 16:35:22'); INSERT INTO `contributors` VALUES(36, '06e3a1a9f2eae356d6d6ffd85fa6d87b', '401fd060d8477e6d85b40736431950e4', '17ebcebc76ceb837fd156116ef1663e0', '3a8e09f4ae7944a3fa7e32123aa3ac5a', '0be9fe68799c1e901686fadd87fc61f7', '', '84c37b57ca12db9f906358974ea11b80', 0, '2011-03-01 16:36:05', '2011-03-01 16:36:05'); INSERT INTO `contributors` VALUES(37, 'ecb369c6ba7410534ba7a96cfcb1a8e1', 'a3d626c83cfd5ac83c944904704c158a', 'fdf89d9f40d451897254b9780062dfc6', '9c053d273ab02de4c7f17c70d177de8d', 'a224f0aa89f926460a4360e21ddb0169', '', '00588e65ec98e1f68b62653803a26fb3', 0, '2011-03-01 16:49:16', '2011-03-01 16:49:16'); INSERT INTO `contributors` VALUES(38, '58d9df1e5a83cc2e7b52b0ab6c31103d', 'a90767fbb551679b0c19d0088bf69df1', 'f189844c7928838503c5feef7ded0f55', 'b2812491e2884329a8922b6b644d0c46', '97dc87ce62188d3dcdf2a0a3fb269df4', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 16:54:25', '2011-03-01 16:54:25'); INSERT INTO `contributors` VALUES(39, 'e45a2dd2a468c1dc77fb4fac696f5139', '5478ea20cfaf8fc664aebd5117666f01', 'd6d683476279a53e0ead7593c47091ce', '04f4effc7ca8ddc151a5bad4b087ed5c', '060c97125dc056ef436bfdf713fcd4a0', '', '5d39abb731c86465b30aa689f427e03a', 0, '2011-03-01 16:56:33', '2011-03-01 16:56:33'); INSERT INTO `contributors` VALUES(40, 'f17b38fdb040ae2bf1dc91219d763b52', '3ea2902828f6c1ed60f68963e30d6b02', '46fdf6e9b9868ba27968f6b5d673add4', 'e600c688<PASSWORD>f1bfb<PASSWORD>d2a4d4', '8<PASSWORD>', '', '3fcde9091785afaf1d973cba3361c2d0', 0, '2011-03-01 17:48:34', '2011-03-01 17:48:34'); INSERT INTO `contributors` VALUES(41, '4a46449dc679a19465a267ffac727de3', '7ca3edb700d27f61ffe0a2b38751c6c6', 'd004dd965146e8ab9f76c7e16aaf0c7c', '1f1757b8eed3c9c21b5907236ce92f02', '025e65cfb82f1183265316907cbc4355', '', '5a43585ab6675bc0a124c3de1bde0830', 0, '2011-03-01 19:29:52', '2011-03-01 19:29:52'); INSERT INTO `contributors` VALUES(42, '7b0db1d93ef76cd15315bdd642b05e96', '8612718b0cda6223aad0b6100705492c', 'b226a1ac0c40f65a312c577157129a58', '57e2bf70d0b6dc3731186be443a7570b', '0df5f62ef092a432cce688071125879c', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-01 23:04:54', '2011-03-01 23:04:54'); INSERT INTO `contributors` VALUES(43, '57312c9715118f58a6af9e20ff64bea0', 'e91d7ba44a1894ed1b858aca6492c587', '1025ecde22cd3c44810d905980ad30f6', '54fdce7e1bf69cf31bebcaaa1e526e3b', '24f92cab0d0cc91ad4a3d96ab9b32101', '', '247bf11410b8e0bf28d4e474cd5b94c1', 0, '2011-03-01 23:48:45', '2011-03-01 23:48:45'); INSERT INTO `contributors` VALUES(44, 'dda2d3639375fd69a9062ca06310863c', '54a5106cb13a4a1a73cf738f908f2d27', 'b6cf81dc31ecec621e949e659185a94d', '0d05de7ce26accf76fe7f1b3710b02cf', '6ed3203677d92c3968e67dffb1dbf113', '', '477348c11fa74cee93b39830378e6645', 0, '2011-03-02 02:16:24', '2011-03-02 02:16:24'); INSERT INTO `contributors` VALUES(45, '6bdd67bf046827897b43d11cd7be11b8', 'b973ea5468de9c34a225206b2d37b484', '6eb8c023b1d805a7ff8e0835d5b80df6', 'fa75b722791bed279f9bba54c08cbbeb', '02eba6bfd779f5be1912df745a184e50', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-02 11:03:29', '2011-03-02 11:03:29'); INSERT INTO `contributors` VALUES(46, '65f8c734dba6aa416fd0bc50054ecfe7', '20271409973ebeaf351d06a4b7939b8c', '77b720d9be530e39298e9ac3d2fa05e9', 'f9f333ab6645595eccdac622a2ee42a4', '98627647540941066f530f0493a39255', '', 'df44d605ba0a4314ee1f64891f73d6a7', 0, '2011-03-02 12:16:29', '2011-03-02 12:16:29'); INSERT INTO `contributors` VALUES(47, 'd<PASSWORD>bb<PASSWORD>bff<PASSWORD>', 'be7d8aa10a1fadc942349e460f4ec52a', '134f1a2edd3e6663fd58f81dbbcb807d', '258103dfe6ec9174aae0812e80d4186b', '67b60d29821b2b1acf59671987c9dbc9', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-02 14:04:17', '2011-03-02 14:04:17'); INSERT INTO `contributors` VALUES(48, 'a455f5b0eca323638a32623c32a985b8', '60f8f523e525dfe2e1b2b1369e342a58', '964a5f31f10ac2af29ae53e56e5281de', '65e8d1a4d0a6973864e303755400bc44', '847678a9431be6d4eb06186ffd6c1ada', '', '57d2580635d78fdcb15b4b44b82dd7ea', 0, '2011-03-02 16:01:59', '2011-03-02 16:01:59'); INSERT INTO `contributors` VALUES(49, '1c8152943b30fb6c9b62465c6ccd9eb6', 'd433823125e939fb24da6a53278b8ddc', 'cc1fe6bba707d5e1c1ace0fee47e8c29', 'e4820b1ec8f73079c2cfa7dc6f5e2236', '149792e144262dcd8ce14955764ac482', '', 'acf557a6b497fb0a2bac87ace428c5e1', 0, '2011-03-02 16:39:10', '2011-03-02 16:39:10'); INSERT INTO `contributors` VALUES(50, 'c6be256b2c373b35c055752811ba6824', 'deda67fb2cb7c936bfb80574ffc13005', 'd8d8a984e4f4ee70a9b3e397e1468221', '01b46ac6d0ab339b4462bf6c0dbd7e10', '27e962431fe225045ee338a020a423ee', '', 'b480dedf5729b07121cf6d5face4a623', 0, '2011-03-02 23:04:34', '2011-03-02 23:04:34'); INSERT INTO `contributors` VALUES(51, '33ae4f6238b5458b00962fe651e4f599', '3115c7108a3b42b259bcb305f3226aed', '6e<PASSWORD>ce7bef<PASSWORD>cc612def<PASSWORD>4<PASSWORD>b', '0<PASSWORD>', '8a5b73aa7d99a136774dfb1e25982718', '', '192a107ad6b676c392468c36bcb7f563', 0, '2011-03-03 02:45:50', '2011-03-03 02:45:50'); INSERT INTO `contributors` VALUES(52, 'c1603a91b4dd6ceac903a1ea486c70a6', '4416dc3ec24af6f3649f1ec0f4754b6c', '9c2452ee75fefb96beed8ced38bff475', 'bb9c4df65263896f060e14431501d804', 'c1603a91b4dd6ceac903a1ea486c70a6', '', '01a6566857a696068ae937cdc2ec1c0f', 0, '2011-03-03 09:49:47', '2011-03-03 09:49:47'); INSERT INTO `contributors` VALUES(53, 'dfaa08196c0a6032a9913cf455d4eb32', '4cc8396ded50b3b9a31975f2638fcc34', 'e33022e51524a1617fd20ffa3b039b91', 'cb2cbbeff3f34eec94a005a1e0d21cf4', 'db103e9fb264f0e84aad6cf304ae7975', '', '4a3f836a2253d0318158acb161492422', 0, '2011-03-03 13:34:59', '2011-03-03 13:34:59'); INSERT INTO `contributors` VALUES(54, 'a88c01f6c4a011876f578ed3f62bc6d1', '08a5fae5f5cf8bb8ce62f823dab90e7d', '2b3cbbccdd4c126e46ea85ef84428ee3', '1b4ac907400a36d3973c5102b6b8d80a', '7598b0e93931c1f2cfa2320b82169a6b', '', 'eb6edc178e013d71ac2e46a60563e802', 0, '2011-03-03 17:31:30', '2011-03-03 17:31:30'); INSERT INTO `contributors` VALUES(55, 'ce6dcad0d1d5137dd8cb9b2d325bcdb2', '3806785d04c89489682fd99e9f9891da', 'b38928ac79167fc030d958cbb367aaf3', '8cd7162c97e1de60d0c00a6b5d5081fd', '8397068437fc78a0391e875561e2a345', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-03 20:42:51', '2011-03-03 20:42:51'); INSERT INTO `contributors` VALUES(56, '03092d69e548b0dcf64a74657617ce75', '96bc6f50593d9fa6ba4f937f0f9fd726', '4229edd7cabee29bba0721170d00fa11', '432b2db212fb7dcea05029df53e79de9', '03092d69e548b0dcf64a74657617ce75', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-03 23:04:07', '2011-03-03 23:04:07'); INSERT INTO `contributors` VALUES(57, '716622a08f4563894feaf3bb928cda39', '383506b71af9402bce7356833d0ad47c', '92049f10bad31bde78023f9a19cac0e1', 'd660126c29d27bc294e53a27d8d01162', 'e32d7fb96ccb8b44e569420439dd2c0b', '', '8e2b8e9b6b6c7bf8a9d7d1fe4a3130a4', 0, '2011-03-04 00:53:14', '2011-03-04 00:53:14'); INSERT INTO `contributors` VALUES(58, 'd9a233a92c70df9c3da3960688cd8927', '280d61ef30481096b0aa7d001a8e14af', 'c2db930ff62d116e3533eadf7c4d5785', '95500015559befeca38e9c44e44d3e48', 'ebd5bc842594a30a16d9fb6a36faf4cd', '', 'f050f5121145a131fb0408c21f3c7c14', 0, '2011-03-04 01:04:44', '2011-03-04 01:04:44'); INSERT INTO `contributors` VALUES(59, '43cba687dd8237e4d719889ce77e6cd8', '190e0c5a25c70dd83c490ebf6d2ff582', '78b28b1f216bdba34f6011f8259151c2', 'cbb2b266f74950b92890d479e7a94a56', '1edc0199ce3ccabcf8382e0de7256eea', '', '6c186b478076d309f625fdf2f8977ead', 0, '2011-03-04 01:49:05', '2011-03-04 01:49:05'); INSERT INTO `contributors` VALUES(60, 'e57c0a847082be57cbc346345bf8d28b', 'f<PASSWORD>ba<PASSWORD>cf<PASSWORD>fdc<PASSWORD>f<PASSWORD>', 'b47e71287044e9400eeffc0bb75d9c09', 'a848c33b1a70880e0339c29fb703c2ad', '493d547042e93c5432bc74a6a36dabef', '', 'cc70424cbb597955a31c203f33960f51', 0, '2011-03-04 03:44:54', '2011-03-04 03:44:54'); INSERT INTO `contributors` VALUES(61, '40add30fe781609065c70e0435f9e5b1', 'cd9640e5358ad5c2a1afd07ec9f47686', 'd122254227a6f5cb2b8393e32eb32546', '3bd3c5250a34ff726fbf3c52c9b346e1', '203aa7a60663bd1981d5ab6d47046a98', '', '4fe92314b838578f9c122e871349ede4', 0, '2011-03-04 09:57:04', '2011-03-04 09:57:04'); INSERT INTO `contributors` VALUES(62, '7f211fb250377ea9eb39c215bb26cfed', '4db1da53fabf30c38e37f841bab228fd', 'afe<PASSWORD>', 'f2c222f5395bc077508e340b52f1a9f5', '7d427d61b07fa6ab3bc07e6c3ae51d69', '', 'cad066d5971ba679807d00b16fcc7393', 0, '2011-03-04 10:51:15', '2011-03-04 10:51:15'); INSERT INTO `contributors` VALUES(63, 'c1d306dc58994cb44698426531d8e325', '45abe189d3874435b6aed5f9ecb6c310', 'b630a0c8090c1a3a24e335cc5accc616', '72276a64c527fe3dd6835fb482e5f6a8', '9263f1c8dbb71cae7df831de2703c5a0', '', 'b2147811383658f37165ddf4a92ebd4c', 0, '2011-03-04 19:43:51', '2011-03-04 19:43:51'); INSERT INTO `contributors` VALUES(64, '088ac8ca4956573008885a81fdc63662', '00b350c52765b6dc8e775b89285a4e9a', '15027594a880b89393ff3a7670d42754', '30d3a0fb7428ef606c3353ea67ad92d8', '47e84ef24ad077232ef148ed5be14203', '', 'e96baf2ad547fbb4d596153553e1b459', 0, '2011-03-04 20:10:25', '2011-03-04 20:10:25'); INSERT INTO `contributors` VALUES(65, 'faa016e311657943d53176c2f87290df', 'c8a5e9d1af2e1bb5a0138c01afb5fd09', '39fcdf43e200302fdf0beff08b8a7e92', 'b51d09a0c99237c0e2eeaeb2bf5002c1', '6072cd53efa110eb400cf1bf38a519b5', '', '106e98898d094f1b912195cde38045ea', 0, '2011-03-04 20:43:54', '2011-03-04 20:43:54'); INSERT INTO `contributors` VALUES(66, 'ef2441987153c8f9c3ab561d23ad5faa', 'e8605fcbc5fd1cd33a8310e2e571a84b', 'cd6aaf7a0f4f66c7b26327fc4475b4d6', 'f69a4f264932833d60b6b131cd1e486c', 'e70b05ba7082a1b60412e4bd3b2cc963', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-04 23:18:45', '2011-03-04 23:18:45'); INSERT INTO `contributors` VALUES(67, 'd0a99828e360d667fc4e3b5c9a89870c', 'd61cb15a38634ad8a5a6694f983ab801', '98564e4c85090666d8f744253c4aa5aa', 'd78ef7a6233370c5c7b2f5505a824842', 'a1461ba9469b52ceb5ba83ddaabdb15b', '', '5eeae62e006032706386f0a94457c91e', 0, '2011-03-05 11:58:16', '2011-03-05 11:58:16'); INSERT INTO `contributors` VALUES(68, 'd0a99828e360d667fc4e3b5c9a89870c', 'd61cb15a38634ad8a5a6694f983ab801', '98564e4c85090666d8f744253c4aa5aa', 'd78ef7a6233370c5c7b2f5505a824842', 'a1461ba9469b52ceb5ba83ddaabdb15b', '', '5eeae62e006032706386f0a94457c91e', 0, '2011-03-05 11:58:16', '2011-03-05 11:58:16'); INSERT INTO `contributors` VALUES(69, '3ea72921b4c0d57909b15995e8a70587', '095a18a5d874293bc2752ac6c8153d6f', '0e67abb7e2d62de7b8c33fcdbbf95b80', '56a19a81dc78d582775df19bc5dcbe2d', '07f1e5974fc99f8f71daaa7dfedaabad', '', '3e8ee6fc189066d48410bd6c2e94ea99', 0, '2011-03-05 17:54:02', '2011-03-05 17:54:02'); INSERT INTO `contributors` VALUES(70, '3619bfe867d0029fcbaa0c443768073e', '5de2ad8571a9696e9204bc3cf1f5bef8', '8df94d27674771b1fa2a60d69676cb8f', '20624d2f8dbe5c7cda307116390dc283', '2ccdc22eda62cf5d507e40dd68d95053', '', '39e5124721a3b5a0af07b1b5e390817e', 0, '2011-03-05 22:44:26', '2011-03-05 22:44:26'); INSERT INTO `contributors` VALUES(71, 'cb4e41856875c4cb7813e3fe81aaf7e9', 'd254ddf597734f090b6e055f984b2834', '6ee3f3a3cda8fcbde1912ad4aeca151b', '9cc701ea636d8f51e7c9a50cec72942a', '0437acb7963c6539ad0327c2eb30b1be', '', '5a8dccb220de5c6775c873ead6ff2e43', 0, '2011-03-06 06:38:37', '2011-03-06 06:38:37'); INSERT INTO `contributors` VALUES(72, 'faeb0808f59d3d4b2d60c3bdbdc9f311', 'e6d27df592ae288f21ce7181a7d3298f', 'bb7d941eefba2c3641bdeeb72741a9c2', 'dad7020b855f7157362f6c285fcd285e', '733692b2101f18c25763f5ecfb520b55', '', '3945a2bb09c26f33461aea69fea44d27', 0, '2011-03-06 17:35:56', '2011-03-06 17:35:56'); INSERT INTO `contributors` VALUES(73, 'faeb<PASSWORD>bdbdc<PASSWORD>', 'e6d27df592ae288f21ce7181a7d3298f', 'bb7d941eefba2c3641bdeeb72741a9c2', '487bf54a28c218a4778e9d12064909d2', '733692b2101f18c25763f5ecfb520b55', '', '3945a2bb09c26f33461aea69fea44d27', 0, '2011-03-06 17:37:14', '2011-03-06 17:37:14'); INSERT INTO `contributors` VALUES(74, 'c823962b5de92a1abfd7cfdc27a21669', '3b37c66fa9b009cbcd31a2ee6e5a4017', '08ce969e23e0ad9a6ffda3f36b650f58', 'cc863591ce8cca7084bb3ef3cc925040', '573df2a62d709b4bdecba63fa4a58d2c', '', 'd5d40b0c2a04952b6fee8455fc9ae429', 0, '2011-03-06 19:49:05', '2011-03-06 19:49:05'); INSERT INTO `contributors` VALUES(75, 'b649785bc158f68a515655325a6e31e7', '031149efbf6cc9bfcbfaec72d33813f0', 'wfnflnwwnefk.wekjfnwk.ejfnw', '284a4f57b5a749fd90e23e069e53c50c', '28bf0d58efceaa867962ed2c87c721bf', 'fwkjfwefkjwefkw', NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `contributors` VALUES(76, 'b649785bc158f68a515655325a6e31e7', '031149efbf6cc9bfcbfaec72d33813f0', 'wfnflnwwnefk.wekjfnwk.ejfnw', '284a4f57b5a749fd90e23e069e53c50c', '28bf0d58efceaa867962ed2c87c721bf', 'fwkjfwefkjwefkw', NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `contributors` VALUES(77, 'b649785bc158f68a515655325a6e31e7', '031149efbf6cc9bfcbfaec72d33813f0', 'wfnflnwwnefk.wekjfnwk.ejfnw', '284a4f57b5a749fd90e23e069e53c50c', '28bf0d58efceaa867962ed2c87c721bf', 'fwkjfwefkjwefkw', NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `contributors` VALUES(78, 'b649785bc158f68a515655325a6e31e7', '031149efbf6cc9bfcbfaec72d33813f0', 'wfnflnwwnefk.wekjfnwk.ejfnw', '284a4f57b5a749fd90e23e069e53c50c', '28bf0d58efceaa867962ed2c87c721bf', 'fwkjfwefkjwefkw', NULL, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `contributors` VALUES(79, 'spicer', '<EMAIL>', '17ebcebc76ceb837fd156116ef1663e0', '27e46cca49725343bf8b1ee784fa71e4afbdf994', '<NAME>', '', 'http://cloudmanic.com', 0, '2011-11-23 17:53:49', '2011-11-23 17:53:49'); -- -------------------------------------------------------- -- -- Table structure for table `dependencies` -- CREATE TABLE `dependencies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `version_id` int(11) NOT NULL, `needed_version_id` int(11) NOT NULL, `is_direct` tinyint(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_version_dep` (`version_id`,`needed_version_id`), KEY `needed_version_id` (`needed_version_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `dependencies` -- INSERT INTO `dependencies` VALUES(1, 86, 85, 1); -- -------------------------------------------------------- -- -- Table structure for table `downloads` -- CREATE TABLE `downloads` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(15) CHARACTER SET latin1 DEFAULT NULL, `ip` varchar(32) CHARACTER SET latin1 DEFAULT NULL, `user_agent` varchar(250) CHARACTER SET latin1 DEFAULT NULL, `created` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_dl_type` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=817 ; -- -- Dumping data for table `downloads` -- INSERT INTO `downloads` VALUES(7, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-08 14:42:32'); INSERT INTO `downloads` VALUES(8, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13', '2011-02-08 15:15:53'); INSERT INTO `downloads` VALUES(9, 'spec', '172.16.58.3', '0', '2011-02-08 17:34:59'); INSERT INTO `downloads` VALUES(10, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-08 19:46:32'); INSERT INTO `downloads` VALUES(11, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-08 19:46:42'); INSERT INTO `downloads` VALUES(12, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-08 19:46:52'); INSERT INTO `downloads` VALUES(13, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-08 21:05:43'); INSERT INTO `downloads` VALUES(14, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13', '2011-02-08 21:06:14'); INSERT INTO `downloads` VALUES(15, 'system', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13', '2011-02-08 21:07:09'); INSERT INTO `downloads` VALUES(16, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13', '2011-02-08 21:07:32'); INSERT INTO `downloads` VALUES(17, 'spec', '172.16.17.32', '0', '2011-02-08 21:21:23'); INSERT INTO `downloads` VALUES(18, 'spec', '172.16.17.32', '0', '2011-02-08 21:21:34'); INSERT INTO `downloads` VALUES(19, 'spec', '172.16.17.32', '0', '2011-02-08 21:21:52'); INSERT INTO `downloads` VALUES(20, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13', '2011-02-08 23:08:41'); INSERT INTO `downloads` VALUES(21, 'spec', '192.168.3.11', '0', '2011-02-08 23:10:48'); INSERT INTO `downloads` VALUES(22, 'system', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 10:45:30'); INSERT INTO `downloads` VALUES(23, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:52'); INSERT INTO `downloads` VALUES(24, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:53'); INSERT INTO `downloads` VALUES(25, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:54'); INSERT INTO `downloads` VALUES(26, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:54'); INSERT INTO `downloads` VALUES(27, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:57'); INSERT INTO `downloads` VALUES(28, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:54:58'); INSERT INTO `downloads` VALUES(29, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:55:00'); INSERT INTO `downloads` VALUES(30, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-09 14:55:02'); INSERT INTO `downloads` VALUES(31, 'system', '192.168.3.11', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)', '2011-02-10 02:10:47'); INSERT INTO `downloads` VALUES(32, 'spec', '192.168.3.11', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)', '2011-02-10 02:10:51'); INSERT INTO `downloads` VALUES(33, 'system', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-10 08:26:14'); INSERT INTO `downloads` VALUES(34, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-10 11:19:52'); INSERT INTO `downloads` VALUES(35, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-10 11:23:20'); INSERT INTO `downloads` VALUES(36, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-10 11:26:50'); INSERT INTO `downloads` VALUES(37, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-10 11:44:14'); INSERT INTO `downloads` VALUES(38, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 03:40:27'); INSERT INTO `downloads` VALUES(39, 'spec', '172.16.58.3', '0', '2011-02-11 03:41:17'); INSERT INTO `downloads` VALUES(40, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-11 08:26:48'); INSERT INTO `downloads` VALUES(41, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 14:30:31'); INSERT INTO `downloads` VALUES(42, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 14:31:01'); INSERT INTO `downloads` VALUES(43, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 14:31:18'); INSERT INTO `downloads` VALUES(44, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 14:31:28'); INSERT INTO `downloads` VALUES(45, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-11 14:33:10'); INSERT INTO `downloads` VALUES(46, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-11 18:33:04'); INSERT INTO `downloads` VALUES(47, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-11 18:33:17'); INSERT INTO `downloads` VALUES(48, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-11 23:21:41'); INSERT INTO `downloads` VALUES(49, 'spec', '192.168.3.11', '0', '2011-02-13 20:00:15'); INSERT INTO `downloads` VALUES(50, 'spec', '192.168.3.11', '0', '2011-02-13 20:05:47'); INSERT INTO `downloads` VALUES(51, 'spec', '192.168.3.11', '0', '2011-02-13 21:00:29'); INSERT INTO `downloads` VALUES(52, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-13 21:51:43'); INSERT INTO `downloads` VALUES(53, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-13 21:57:12'); INSERT INTO `downloads` VALUES(54, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-13 21:57:20'); INSERT INTO `downloads` VALUES(55, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-13 21:57:51'); INSERT INTO `downloads` VALUES(56, 'spec', '192.168.3.11', '0', '2011-02-13 22:04:05'); INSERT INTO `downloads` VALUES(57, 'spec', '192.168.3.11', '0', '2011-02-13 22:04:17'); INSERT INTO `downloads` VALUES(58, 'system', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 02:44:14'); INSERT INTO `downloads` VALUES(59, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 02:45:53'); INSERT INTO `downloads` VALUES(60, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 02:49:45'); INSERT INTO `downloads` VALUES(61, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 02:53:37'); INSERT INTO `downloads` VALUES(62, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:01:22'); INSERT INTO `downloads` VALUES(63, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:05:14'); INSERT INTO `downloads` VALUES(64, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:09:38'); INSERT INTO `downloads` VALUES(65, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:11:09'); INSERT INTO `downloads` VALUES(66, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:13:54'); INSERT INTO `downloads` VALUES(67, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:18:01'); INSERT INTO `downloads` VALUES(68, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-15 03:41:48'); INSERT INTO `downloads` VALUES(69, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 04:42:59'); INSERT INTO `downloads` VALUES(70, 'spec', '172.16.17.32', '0', '2011-02-17 04:43:04'); INSERT INTO `downloads` VALUES(71, 'spec', '172.16.17.32', '0', '2011-02-17 04:43:49'); INSERT INTO `downloads` VALUES(72, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16', '2011-02-17 04:44:47'); INSERT INTO `downloads` VALUES(73, 'spec', '172.16.17.32', '0', '2011-02-17 04:46:25'); INSERT INTO `downloads` VALUES(74, 'spec', '172.16.17.32', '0', '2011-02-17 04:47:43'); INSERT INTO `downloads` VALUES(75, 'spec', '172.16.17.32', '0', '2011-02-17 04:49:52'); INSERT INTO `downloads` VALUES(76, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 04:50:28'); INSERT INTO `downloads` VALUES(77, 'spec', '172.16.17.32', '0', '2011-02-17 04:52:34'); INSERT INTO `downloads` VALUES(78, 'spec', '172.16.17.32', '0', '2011-02-17 04:53:09'); INSERT INTO `downloads` VALUES(79, 'spec', '172.16.17.32', '0', '2011-02-17 04:54:05'); INSERT INTO `downloads` VALUES(80, 'spec', '172.16.17.32', '0', '2011-02-17 04:54:15'); INSERT INTO `downloads` VALUES(81, 'spec', '172.16.17.32', '0', '2011-02-17 04:54:54'); INSERT INTO `downloads` VALUES(82, 'spec', '172.16.17.32', '0', '2011-02-17 04:55:27'); INSERT INTO `downloads` VALUES(83, 'spec', '172.16.17.32', '0', '2011-02-17 04:55:39'); INSERT INTO `downloads` VALUES(84, 'spec', '172.16.17.32', '0', '2011-02-17 04:56:43'); INSERT INTO `downloads` VALUES(85, 'spec', '172.16.17.32', '0', '2011-02-17 04:56:52'); INSERT INTO `downloads` VALUES(86, 'spec', '172.16.17.32', '0', '2011-02-17 05:01:35'); INSERT INTO `downloads` VALUES(87, 'spec', '172.16.17.32', '0', '2011-02-17 05:02:29'); INSERT INTO `downloads` VALUES(88, 'spec', '172.16.17.32', '0', '2011-02-17 05:02:40'); INSERT INTO `downloads` VALUES(89, 'spec', '172.16.17.32', '0', '2011-02-17 05:02:50'); INSERT INTO `downloads` VALUES(90, 'spec', '172.16.17.32', '0', '2011-02-17 05:03:34'); INSERT INTO `downloads` VALUES(91, 'system', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 05:24:14'); INSERT INTO `downloads` VALUES(92, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 05:26:05'); INSERT INTO `downloads` VALUES(93, 'spec', '172.16.17.32', '0', '2011-02-17 06:29:39'); INSERT INTO `downloads` VALUES(94, 'spec', '172.16.17.32', '0', '2011-02-17 06:30:51'); INSERT INTO `downloads` VALUES(95, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 07:01:59'); INSERT INTO `downloads` VALUES(96, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 07:04:01'); INSERT INTO `downloads` VALUES(97, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 07:10:51'); INSERT INTO `downloads` VALUES(98, 'spec', '172.16.17.32', '0', '2011-02-17 07:12:56'); INSERT INTO `downloads` VALUES(99, 'spec', '172.16.17.32', '0', '2011-02-17 07:13:24'); INSERT INTO `downloads` VALUES(100, 'spec', '172.16.17.32', '0', '2011-02-17 07:13:59'); INSERT INTO `downloads` VALUES(101, 'spec', '172.16.17.32', '0', '2011-02-17 07:14:07'); INSERT INTO `downloads` VALUES(102, 'spec', '172.16.17.32', '0', '2011-02-17 07:14:16'); INSERT INTO `downloads` VALUES(103, 'spec', '172.16.17.32', '0', '2011-02-17 07:15:05'); INSERT INTO `downloads` VALUES(104, 'spec', '172.16.17.32', '0', '2011-02-17 07:15:27'); INSERT INTO `downloads` VALUES(105, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-17 07:16:04'); INSERT INTO `downloads` VALUES(106, 'spec', '172.16.17.32', '0', '2011-02-17 07:17:28'); INSERT INTO `downloads` VALUES(107, 'system', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16', '2011-02-17 07:25:36'); INSERT INTO `downloads` VALUES(108, 'spec', '172.16.17.32', '0', '2011-02-17 07:26:41'); INSERT INTO `downloads` VALUES(109, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16', '2011-02-17 07:26:57'); INSERT INTO `downloads` VALUES(110, 'spec', '172.16.17.32', '0', '2011-02-17 07:35:22'); INSERT INTO `downloads` VALUES(111, 'spec', '172.16.17.32', '0', '2011-02-17 07:43:03'); INSERT INTO `downloads` VALUES(112, 'spec', '172.16.17.32', '0', '2011-02-17 07:43:19'); INSERT INTO `downloads` VALUES(113, 'spec', '172.16.17.32', '0', '2011-02-17 07:44:47'); INSERT INTO `downloads` VALUES(114, 'spec', '172.16.17.32', '0', '2011-02-17 07:49:39'); INSERT INTO `downloads` VALUES(115, 'spec', '172.16.58.3', '0', '2011-02-17 13:43:46'); INSERT INTO `downloads` VALUES(116, 'spec', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-02-17 18:53:00'); INSERT INTO `downloads` VALUES(117, 'spec', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-02-17 18:53:16'); INSERT INTO `downloads` VALUES(118, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-18 02:39:56'); INSERT INTO `downloads` VALUES(119, 'spec', '192.168.3.11', '0', '2011-02-18 02:49:20'); INSERT INTO `downloads` VALUES(120, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-18 07:56:58'); INSERT INTO `downloads` VALUES(121, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-18 17:54:58'); INSERT INTO `downloads` VALUES(122, 'spec', '192.168.3.11', '0', '2011-02-20 01:02:17'); INSERT INTO `downloads` VALUES(123, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 01:29:37'); INSERT INTO `downloads` VALUES(124, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-20 01:42:03'); INSERT INTO `downloads` VALUES(125, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 01:46:29'); INSERT INTO `downloads` VALUES(126, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 01:50:50'); INSERT INTO `downloads` VALUES(127, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:01:57'); INSERT INTO `downloads` VALUES(128, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:02:03'); INSERT INTO `downloads` VALUES(129, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:03:03'); INSERT INTO `downloads` VALUES(130, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-20 02:03:06'); INSERT INTO `downloads` VALUES(131, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-20 02:04:33'); INSERT INTO `downloads` VALUES(132, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:05:23'); INSERT INTO `downloads` VALUES(133, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:35:56'); INSERT INTO `downloads` VALUES(134, 'spec', '192.168.127.12', '0', '2011-02-20 02:38:16'); INSERT INTO `downloads` VALUES(135, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-20 02:40:34'); INSERT INTO `downloads` VALUES(136, 'spec', '192.168.127.12', '0', '2011-02-20 15:44:57'); INSERT INTO `downloads` VALUES(137, 'spec', '172.16.17.32', '0', '2011-02-20 21:25:53'); INSERT INTO `downloads` VALUES(138, 'spec', '172.16.17.32', '0', '2011-02-20 21:26:24'); INSERT INTO `downloads` VALUES(139, 'spec', '192.168.127.12', '0', '2011-02-21 01:14:52'); INSERT INTO `downloads` VALUES(140, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-21 13:46:06'); INSERT INTO `downloads` VALUES(141, 'spec', '172.16.58.3', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-22 06:03:37'); INSERT INTO `downloads` VALUES(142, 'spec', '172.16.17.32', '0', '2011-02-24 05:04:32'); INSERT INTO `downloads` VALUES(143, 'spec', '172.16.17.32', '0', '2011-02-24 05:10:44'); INSERT INTO `downloads` VALUES(144, 'spec', '172.16.17.32', '0', '2011-02-24 05:41:28'); INSERT INTO `downloads` VALUES(145, 'spec', '172.16.17.32', '0', '2011-02-24 05:44:20'); INSERT INTO `downloads` VALUES(146, 'system', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-25 14:53:53'); INSERT INTO `downloads` VALUES(147, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-25 15:44:35'); INSERT INTO `downloads` VALUES(148, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-25 15:44:42'); INSERT INTO `downloads` VALUES(149, 'spec', '172.16.17.32', '0', '2011-02-25 23:30:54'); INSERT INTO `downloads` VALUES(150, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-26 03:11:27'); INSERT INTO `downloads` VALUES(151, 'spec', '192.168.3.11', '0', '2011-02-26 03:47:17'); INSERT INTO `downloads` VALUES(152, 'spec', '192.168.3.11', '0', '2011-02-26 04:03:42'); INSERT INTO `downloads` VALUES(153, 'spec', '192.168.3.11', '0', '2011-02-26 04:13:27'); INSERT INTO `downloads` VALUES(154, 'spec', '192.168.3.11', '0', '2011-02-26 04:19:58'); INSERT INTO `downloads` VALUES(155, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-26 05:28:28'); INSERT INTO `downloads` VALUES(156, 'system', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4', '2011-02-26 15:09:03'); INSERT INTO `downloads` VALUES(157, 'system', '192.168.3.11', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)', '2011-02-26 17:24:53'); INSERT INTO `downloads` VALUES(158, 'spec', '192.168.3.11', '0', '2011-02-26 17:28:29'); INSERT INTO `downloads` VALUES(159, 'spec', '192.168.3.11', '0', '2011-02-26 17:49:11'); INSERT INTO `downloads` VALUES(160, 'spec', '192.168.3.11', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)', '2011-02-26 17:58:02'); INSERT INTO `downloads` VALUES(161, 'spec', '192.168.3.11', 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)', '2011-02-26 17:58:25'); INSERT INTO `downloads` VALUES(162, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-26 19:01:24'); INSERT INTO `downloads` VALUES(163, 'spec', '192.168.3.11', '0', '2011-02-26 19:03:27'); INSERT INTO `downloads` VALUES(164, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-26 19:17:41'); INSERT INTO `downloads` VALUES(165, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-26 19:39:51'); INSERT INTO `downloads` VALUES(166, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 03:43:49'); INSERT INTO `downloads` VALUES(167, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 03:43:51'); INSERT INTO `downloads` VALUES(168, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 04:27:05'); INSERT INTO `downloads` VALUES(169, 'system', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 04:27:08'); INSERT INTO `downloads` VALUES(170, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 04:27:09'); INSERT INTO `downloads` VALUES(171, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 05:11:56'); INSERT INTO `downloads` VALUES(172, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 06:41:37'); INSERT INTO `downloads` VALUES(173, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 06:41:39'); INSERT INTO `downloads` VALUES(174, 'system', '192.168.3.11', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13', '2011-02-27 15:57:07'); INSERT INTO `downloads` VALUES(175, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-27 22:10:01'); INSERT INTO `downloads` VALUES(176, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 07:41:25'); INSERT INTO `downloads` VALUES(177, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 07:41:30'); INSERT INTO `downloads` VALUES(178, 'system', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 14:04:14'); INSERT INTO `downloads` VALUES(179, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 14:44:16'); INSERT INTO `downloads` VALUES(180, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 14:49:16'); INSERT INTO `downloads` VALUES(181, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 15:04:17'); INSERT INTO `downloads` VALUES(182, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 15:09:18'); INSERT INTO `downloads` VALUES(183, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 15:14:18'); INSERT INTO `downloads` VALUES(184, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 17:56:54'); INSERT INTO `downloads` VALUES(185, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 18:12:47'); INSERT INTO `downloads` VALUES(186, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-28 19:09:47'); INSERT INTO `downloads` VALUES(187, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-02-28 19:57:14'); INSERT INTO `downloads` VALUES(188, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-02-28 20:02:12'); INSERT INTO `downloads` VALUES(189, 'spec', '192.168.127.12', '0', '2011-02-28 20:07:19'); INSERT INTO `downloads` VALUES(190, 'system', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-28 20:20:46'); INSERT INTO `downloads` VALUES(191, 'spec', '192.168.3.11', '0', '2011-02-28 20:53:36'); INSERT INTO `downloads` VALUES(192, 'spec', '192.168.3.11', '0', '2011-02-28 20:55:59'); INSERT INTO `downloads` VALUES(193, 'spec', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)', '2011-02-28 21:17:41'); INSERT INTO `downloads` VALUES(194, 'spec', '172.16.58.3', '0', '2011-02-28 21:31:19'); INSERT INTO `downloads` VALUES(195, 'spec', '172.16.58.3', '0', '2011-02-28 21:33:09'); INSERT INTO `downloads` VALUES(196, 'spec', '172.16.58.3', '0', '2011-02-28 21:33:40'); INSERT INTO `downloads` VALUES(197, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 YFF35 Firefox/3.6.13', '2011-02-28 21:35:17'); INSERT INTO `downloads` VALUES(198, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.119 Safari/534.16', '2011-02-28 21:39:02'); INSERT INTO `downloads` VALUES(199, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-02-28 21:48:28'); INSERT INTO `downloads` VALUES(200, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-02-28 21:48:44'); INSERT INTO `downloads` VALUES(201, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-02-28 21:49:00'); INSERT INTO `downloads` VALUES(202, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-02-28 21:49:33'); INSERT INTO `downloads` VALUES(203, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-28 23:06:01'); INSERT INTO `downloads` VALUES(204, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-02-28 23:06:04'); INSERT INTO `downloads` VALUES(205, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 23:07:33'); INSERT INTO `downloads` VALUES(206, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 23:12:37'); INSERT INTO `downloads` VALUES(207, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-02-28 23:22:44'); INSERT INTO `downloads` VALUES(208, 'spec', '172.16.58.3', '0', '2011-02-28 23:57:42'); INSERT INTO `downloads` VALUES(209, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13) Gecko/20101203 MRA 5.7 (build 03797) Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)', '2011-03-01 00:02:05'); INSERT INTO `downloads` VALUES(210, 'spec', '172.16.58.3', '0', '2011-03-01 00:11:38'); INSERT INTO `downloads` VALUES(211, 'spec', '172.16.58.3', '0', '2011-03-01 00:13:50'); INSERT INTO `downloads` VALUES(212, 'spec', '172.16.58.3', '0', '2011-03-01 00:14:59'); INSERT INTO `downloads` VALUES(213, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-01 00:29:28'); INSERT INTO `downloads` VALUES(214, 'system', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-01 00:41:23'); INSERT INTO `downloads` VALUES(215, 'spec', '172.16.58.3', '0', '2011-03-01 00:48:57'); INSERT INTO `downloads` VALUES(216, 'spec', '107.9.156.250', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-01 00:58:04'); INSERT INTO `downloads` VALUES(217, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 FirePHP/0.5', '2011-03-01 01:02:51'); INSERT INTO `downloads` VALUES(218, 'spec', '172.16.58.3', '0', '2011-03-01 01:38:10'); INSERT INTO `downloads` VALUES(219, 'spec', '172.16.31.10', '0', '2011-03-01 02:01:44'); INSERT INTO `downloads` VALUES(220, 'spec', '172.16.58.3', '0', '2011-03-01 02:02:15'); INSERT INTO `downloads` VALUES(221, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20', '2011-03-01 02:05:41'); INSERT INTO `downloads` VALUES(222, 'spec', '192.168.3.11', '0', '2011-03-01 02:18:34'); INSERT INTO `downloads` VALUES(223, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-01 02:20:43'); INSERT INTO `downloads` VALUES(224, 'spec', '192.168.3.11', '0', '2011-03-01 02:38:37'); INSERT INTO `downloads` VALUES(225, 'spec', '192.168.3.11', '0', '2011-03-01 02:38:54'); INSERT INTO `downloads` VALUES(226, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-01 02:41:09'); INSERT INTO `downloads` VALUES(227, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 02:41:23'); INSERT INTO `downloads` VALUES(228, 'system', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1', '2011-03-01 02:48:33'); INSERT INTO `downloads` VALUES(229, 'spec', '172.16.58.3', '0', '2011-03-01 02:52:23'); INSERT INTO `downloads` VALUES(230, 'spec', '172.16.58.3', '0', '2011-03-01 02:54:12'); INSERT INTO `downloads` VALUES(231, 'spec', '172.16.58.3', '0', '2011-03-01 02:54:48'); INSERT INTO `downloads` VALUES(232, 'spec', '172.16.58.3', '0', '2011-03-01 03:01:46'); INSERT INTO `downloads` VALUES(233, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20', '2011-03-01 03:12:14'); INSERT INTO `downloads` VALUES(234, 'spec', '172.16.17.32', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13', '2011-03-01 03:12:20'); INSERT INTO `downloads` VALUES(235, 'spec', '172.16.58.3', '0', '2011-03-01 03:23:11'); INSERT INTO `downloads` VALUES(236, 'spec', '172.16.58.3', '0', '2011-03-01 03:36:37'); INSERT INTO `downloads` VALUES(237, 'spec', '172.16.58.3', '0', '2011-03-01 03:37:01'); INSERT INTO `downloads` VALUES(238, 'spec', '172.16.58.3', '0', '2011-03-01 03:37:24'); INSERT INTO `downloads` VALUES(239, 'spec', '172.16.58.3', '0', '2011-03-01 03:38:55'); INSERT INTO `downloads` VALUES(240, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 03:39:30'); INSERT INTO `downloads` VALUES(241, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 03:39:32'); INSERT INTO `downloads` VALUES(242, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 04:00:39'); INSERT INTO `downloads` VALUES(243, 'spec', '172.16.58.3', '0', '2011-03-01 04:23:04'); INSERT INTO `downloads` VALUES(244, 'spec', '172.16.58.3', '0', '2011-03-01 04:57:57'); INSERT INTO `downloads` VALUES(245, 'spec', '172.16.58.3', '0', '2011-03-01 05:06:06'); INSERT INTO `downloads` VALUES(246, 'spec', '172.16.58.3', '0', '2011-03-01 05:06:51'); INSERT INTO `downloads` VALUES(247, 'spec', '172.16.58.3', '0', '2011-03-01 05:07:01'); INSERT INTO `downloads` VALUES(248, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.82 Safari/534.16', '2011-03-01 05:16:05'); INSERT INTO `downloads` VALUES(249, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 05:37:54'); INSERT INTO `downloads` VALUES(250, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 05:37:56'); INSERT INTO `downloads` VALUES(251, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-01 06:09:43'); INSERT INTO `downloads` VALUES(252, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 06:39:25'); INSERT INTO `downloads` VALUES(253, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 06:58:07'); INSERT INTO `downloads` VALUES(254, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 07:14:39'); INSERT INTO `downloads` VALUES(255, 'spec', '192.168.3.11', '0', '2011-03-01 07:35:37'); INSERT INTO `downloads` VALUES(256, 'spec', '192.168.3.11', '0', '2011-03-01 07:36:10'); INSERT INTO `downloads` VALUES(257, 'spec', '192.168.3.11', '0', '2011-03-01 07:36:56'); INSERT INTO `downloads` VALUES(258, 'spec', '192.168.3.11', '0', '2011-03-01 07:37:22'); INSERT INTO `downloads` VALUES(259, 'spec', '192.168.3.11', '0', '2011-03-01 07:37:54'); INSERT INTO `downloads` VALUES(260, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 07:38:45'); INSERT INTO `downloads` VALUES(261, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 07:38:46'); INSERT INTO `downloads` VALUES(262, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 08:59:38'); INSERT INTO `downloads` VALUES(263, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 09:00:48'); INSERT INTO `downloads` VALUES(264, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 09:07:09'); INSERT INTO `downloads` VALUES(265, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 09:21:58'); INSERT INTO `downloads` VALUES(266, 'spec', '192.168.3.11', '0', '2011-03-01 09:25:37'); INSERT INTO `downloads` VALUES(267, 'spec', '192.168.3.11', '0', '2011-03-01 09:26:12'); INSERT INTO `downloads` VALUES(268, 'spec', '192.168.3.11', '0', '2011-03-01 09:27:23'); INSERT INTO `downloads` VALUES(269, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-01 09:30:27'); INSERT INTO `downloads` VALUES(270, 'spec', '192.168.3.11', '0', '2011-03-01 09:33:32'); INSERT INTO `downloads` VALUES(271, 'spec', '192.168.127.12', '0', '2011-03-01 10:49:10'); INSERT INTO `downloads` VALUES(272, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-01 10:59:18'); INSERT INTO `downloads` VALUES(273, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 11:12:40'); INSERT INTO `downloads` VALUES(274, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 11:12:41'); INSERT INTO `downloads` VALUES(275, 'spec', '172.16.17.32', '0', '2011-03-01 11:17:17'); INSERT INTO `downloads` VALUES(276, 'spec', '172.16.17.32', '0', '2011-03-01 11:18:13'); INSERT INTO `downloads` VALUES(277, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-01 11:20:52'); INSERT INTO `downloads` VALUES(278, 'spec', '172.16.58.3', '0', '2011-03-01 11:42:58'); INSERT INTO `downloads` VALUES(279, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-01 11:50:25'); INSERT INTO `downloads` VALUES(280, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-01 11:56:04'); INSERT INTO `downloads` VALUES(281, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 12:08:39'); INSERT INTO `downloads` VALUES(282, 'system', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.119 Safari/534.16', '2011-03-01 12:12:45'); INSERT INTO `downloads` VALUES(283, 'spec', '172.16.58.3', 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.6; U; it) Presto/2.7.62 Version/11.01', '2011-03-01 12:29:39'); INSERT INTO `downloads` VALUES(284, 'spec', '192.168.3.11', '0', '2011-03-01 12:40:45'); INSERT INTO `downloads` VALUES(285, 'spec', '172.16.17.32', '0', '2011-03-01 13:54:02'); INSERT INTO `downloads` VALUES(286, 'spec', '172.16.58.3', '0', '2011-03-01 14:16:36'); INSERT INTO `downloads` VALUES(287, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-01 14:22:40'); INSERT INTO `downloads` VALUES(288, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.23 (KHTML, like Gecko) Chrome/11.0.686.0 Safari/534.23', '2011-03-01 14:44:32'); INSERT INTO `downloads` VALUES(289, 'spec', '172.16.31.10', '0', '2011-03-01 15:14:48'); INSERT INTO `downloads` VALUES(290, 'spec', '172.16.31.10', '0', '2011-03-01 15:30:58'); INSERT INTO `downloads` VALUES(291, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-01 16:01:07'); INSERT INTO `downloads` VALUES(292, 'spec', '192.168.3.11', '0', '2011-03-01 16:11:23'); INSERT INTO `downloads` VALUES(293, 'spec', '172.16.31.10', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13', '2011-03-01 16:25:25'); INSERT INTO `downloads` VALUES(294, 'spec', '172.16.17.32', '0', '2011-03-01 16:28:25'); INSERT INTO `downloads` VALUES(295, 'spec', '172.16.58.3', '0', '2011-03-01 16:44:16'); INSERT INTO `downloads` VALUES(296, 'spec', '172.16.58.3', '0', '2011-03-01 16:45:04'); INSERT INTO `downloads` VALUES(297, 'spec', '172.16.58.3', '0', '2011-03-01 16:46:18'); INSERT INTO `downloads` VALUES(298, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-01 16:51:09'); INSERT INTO `downloads` VALUES(299, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-01 16:56:40'); INSERT INTO `downloads` VALUES(300, 'spec', '172.16.17.32', '0', '2011-03-01 16:57:09'); INSERT INTO `downloads` VALUES(301, 'spec', '172.16.17.32', '0', '2011-03-01 16:59:12'); INSERT INTO `downloads` VALUES(302, 'spec', '172.16.58.3', '0', '2011-03-01 16:59:45'); INSERT INTO `downloads` VALUES(303, 'spec', '172.16.17.32', '0', '2011-03-01 17:00:03'); INSERT INTO `downloads` VALUES(304, 'spec', '172.16.58.3', '0', '2011-03-01 17:05:51'); INSERT INTO `downloads` VALUES(305, 'spec', '172.16.58.3', 'Mozilla/5.0 (X11; Linux i686; rv:2.0b13pre) Gecko/20110228 Firefox/4.0b13pre', '2011-03-01 17:06:11'); INSERT INTO `downloads` VALUES(306, 'spec', '172.16.17.32', 'Mozilla/5.0 (Linux; U; Android 2.2; en-gb; Desire_A8181 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', '2011-03-01 17:09:33'); INSERT INTO `downloads` VALUES(307, 'spec', '172.16.31.10', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.119 Safari/534.16', '2011-03-01 17:16:37'); INSERT INTO `downloads` VALUES(308, 'system', '192.168.3.11', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13', '2011-03-01 17:48:21'); INSERT INTO `downloads` VALUES(309, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-01 17:53:07'); INSERT INTO `downloads` VALUES(310, 'system', '172.16.31.10', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 FirePHP/0.5', '2011-03-01 18:37:00'); INSERT INTO `downloads` VALUES(311, 'spec', '172.16.17.32', '0', '2011-03-01 18:37:13'); INSERT INTO `downloads` VALUES(312, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-01 18:45:49'); INSERT INTO `downloads` VALUES(313, 'system', '172.16.31.10', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1 ( .NET CLR 3.5.30729)', '2011-03-01 18:53:21'); INSERT INTO `downloads` VALUES(314, 'spec', '172.16.58.3', '0', '2011-03-01 19:28:05'); INSERT INTO `downloads` VALUES(315, 'spec', '172.16.58.3', '0', '2011-03-01 19:28:43'); INSERT INTO `downloads` VALUES(316, 'spec', '172.16.58.3', '0', '2011-03-01 19:55:47'); INSERT INTO `downloads` VALUES(317, 'spec', '172.16.58.3', '0', '2011-03-01 19:56:19'); INSERT INTO `downloads` VALUES(318, 'spec', '172.16.58.3', '0', '2011-03-01 19:58:30'); INSERT INTO `downloads` VALUES(319, 'spec', '172.16.17.32', '0', '2011-03-01 20:09:40'); INSERT INTO `downloads` VALUES(320, 'spec', '172.16.17.32', '0', '2011-03-01 20:13:55'); INSERT INTO `downloads` VALUES(321, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-01 20:27:27'); INSERT INTO `downloads` VALUES(322, 'spec', '172.16.17.32', '0', '2011-03-01 20:28:42'); INSERT INTO `downloads` VALUES(323, 'spec', '172.16.17.32', '0', '2011-03-01 21:24:23'); INSERT INTO `downloads` VALUES(324, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-01 21:47:56'); INSERT INTO `downloads` VALUES(325, 'spec', '172.16.58.3', '0', '2011-03-01 21:55:46'); INSERT INTO `downloads` VALUES(326, 'spec', '172.16.58.3', '0', '2011-03-01 21:57:20'); INSERT INTO `downloads` VALUES(327, 'spec', '172.16.58.3', '0', '2011-03-01 21:58:01'); INSERT INTO `downloads` VALUES(328, 'spec', '172.16.58.3', '0', '2011-03-01 21:58:11'); INSERT INTO `downloads` VALUES(329, 'spec', '172.16.58.3', '0', '2011-03-01 21:58:25'); INSERT INTO `downloads` VALUES(330, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13', '2011-03-01 22:23:23'); INSERT INTO `downloads` VALUES(331, 'system', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.114 Safari/534.16', '2011-03-01 23:24:24'); INSERT INTO `downloads` VALUES(332, 'system', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-01 23:54:50'); INSERT INTO `downloads` VALUES(333, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 00:08:03'); INSERT INTO `downloads` VALUES(334, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 00:08:03'); INSERT INTO `downloads` VALUES(335, 'spec', '172.16.31.10', '0', '2011-03-02 00:23:34'); INSERT INTO `downloads` VALUES(336, 'system', '172.16.17.32', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-02 00:52:51'); INSERT INTO `downloads` VALUES(337, 'system', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 02:05:19'); INSERT INTO `downloads` VALUES(338, 'system', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 02:05:55'); INSERT INTO `downloads` VALUES(339, 'system', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 02:06:00'); INSERT INTO `downloads` VALUES(340, 'spec', '172.16.58.3', '0', '2011-03-02 02:10:47'); INSERT INTO `downloads` VALUES(341, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 02:13:24'); INSERT INTO `downloads` VALUES(342, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 02:20:29'); INSERT INTO `downloads` VALUES(343, 'spec', '172.16.58.3', '0', '2011-03-02 02:22:15'); INSERT INTO `downloads` VALUES(344, 'spec', '172.16.58.378', '0', '2011-03-02 03:45:31'); INSERT INTO `downloads` VALUES(345, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 04:41:46'); INSERT INTO `downloads` VALUES(346, 'system', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 06:46:45'); INSERT INTO `downloads` VALUES(347, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:26:48'); INSERT INTO `downloads` VALUES(348, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:27:20'); INSERT INTO `downloads` VALUES(349, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:28:20'); INSERT INTO `downloads` VALUES(350, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:28:52'); INSERT INTO `downloads` VALUES(351, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:29:24'); INSERT INTO `downloads` VALUES(352, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:30:55'); INSERT INTO `downloads` VALUES(353, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:31:46'); INSERT INTO `downloads` VALUES(354, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:32:14'); INSERT INTO `downloads` VALUES(355, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:32:43'); INSERT INTO `downloads` VALUES(356, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:43:14'); INSERT INTO `downloads` VALUES(357, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:46:49'); INSERT INTO `downloads` VALUES(358, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:48:09'); INSERT INTO `downloads` VALUES(359, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:50:54'); INSERT INTO `downloads` VALUES(360, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:52:20'); INSERT INTO `downloads` VALUES(361, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:53:53'); INSERT INTO `downloads` VALUES(362, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 07:58:48'); INSERT INTO `downloads` VALUES(363, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 09:53:50'); INSERT INTO `downloads` VALUES(364, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 09:59:52'); INSERT INTO `downloads` VALUES(365, 'spec', '192.168.127.12', '0', '2011-03-02 10:24:43'); INSERT INTO `downloads` VALUES(366, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; tr; rv:1.9.2.13) Gecko/20101203 AlexaToolbar/alxf-2.01 Firefox/3.6.13', '2011-03-02 10:27:10'); INSERT INTO `downloads` VALUES(367, 'spec', '192.168.3.11', '0', '2011-03-02 10:30:49'); INSERT INTO `downloads` VALUES(368, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 10:39:09'); INSERT INTO `downloads` VALUES(369, 'spec', '172.16.31.10', '0', '2011-03-02 11:07:34'); INSERT INTO `downloads` VALUES(370, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 11:25:28'); INSERT INTO `downloads` VALUES(371, 'spec', '172.16.58.3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Linux Mint/10 (Julia) Firefox/3.6.13', '2011-03-02 11:53:19'); INSERT INTO `downloads` VALUES(372, 'spec', '192.168.127.12', '0', '2011-03-02 12:13:37'); INSERT INTO `downloads` VALUES(373, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-02 12:36:03'); INSERT INTO `downloads` VALUES(374, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-02 12:36:08'); INSERT INTO `downloads` VALUES(375, 'spec', '192.168.127.12', '0', '2011-03-02 12:40:29'); INSERT INTO `downloads` VALUES(376, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 14:04:39'); INSERT INTO `downloads` VALUES(377, 'spec', '192.168.3.11', '0', '2011-03-02 14:05:36'); INSERT INTO `downloads` VALUES(378, 'spec', '192.168.3.11', '0', '2011-03-02 14:10:29'); INSERT INTO `downloads` VALUES(379, 'spec', '192.168.3.11', '0', '2011-03-02 15:42:17'); INSERT INTO `downloads` VALUES(380, 'spec', '172.16.17.32', '0', '2011-03-02 16:05:17'); INSERT INTO `downloads` VALUES(381, 'spec', '172.16.17.32', '0', '2011-03-02 16:06:38'); INSERT INTO `downloads` VALUES(382, 'spec', '192.168.127.12', '0', '2011-03-02 16:15:34'); INSERT INTO `downloads` VALUES(383, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-02 16:18:40'); INSERT INTO `downloads` VALUES(384, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-02 16:21:39'); INSERT INTO `downloads` VALUES(385, 'spec', '192.168.127.12', '0', '2011-03-02 16:33:34'); INSERT INTO `downloads` VALUES(386, 'spec', '192.168.127.12', '0', '2011-03-02 16:41:37'); INSERT INTO `downloads` VALUES(387, 'spec', '192.168.127.12', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-02 17:01:57'); INSERT INTO `downloads` VALUES(388, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-02 17:03:02'); INSERT INTO `downloads` VALUES(389, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729) InquisitiveMindsAddon', '2011-03-02 17:10:29'); INSERT INTO `downloads` VALUES(390, 'spec', '172.16.31.10', '0', '2011-03-02 17:14:44'); INSERT INTO `downloads` VALUES(391, 'spec', '172.16.31.10', '0', '2011-03-02 17:15:33'); INSERT INTO `downloads` VALUES(392, 'spec', '172.16.31.10', '0', '2011-03-02 17:16:20'); INSERT INTO `downloads` VALUES(393, 'spec', '172.16.31.10', '0', '2011-03-02 17:47:37'); INSERT INTO `downloads` VALUES(394, 'spec', '172.16.17.32', '0', '2011-03-02 18:04:33'); INSERT INTO `downloads` VALUES(395, 'spec', '172.16.17.32', '0', '2011-03-02 18:05:25'); INSERT INTO `downloads` VALUES(396, 'spec', '172.16.17.32', '0', '2011-03-02 18:07:59'); INSERT INTO `downloads` VALUES(397, 'spec', '172.16.17.32', '0', '2011-03-02 18:12:44'); INSERT INTO `downloads` VALUES(398, 'spec', '172.16.31.10', '0', '2011-03-02 19:00:16'); INSERT INTO `downloads` VALUES(399, 'spec', '172.16.31.10', '0', '2011-03-02 19:00:58'); INSERT INTO `downloads` VALUES(400, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.23 (KHTML, like Gecko) Chrome/11.0.686.1 Safari/534.23', '2011-03-02 19:59:09'); INSERT INTO `downloads` VALUES(401, 'spec', '192.168.3.11', '0', '2011-03-02 20:10:00'); INSERT INTO `downloads` VALUES(402, 'spec', '192.168.3.11', '0', '2011-03-02 20:10:01'); INSERT INTO `downloads` VALUES(403, 'spec', '192.168.3.11', '0', '2011-03-02 20:10:30'); INSERT INTO `downloads` VALUES(404, 'spec', '192.168.3.11', '0', '2011-03-02 20:10:30'); INSERT INTO `downloads` VALUES(405, 'spec', '192.168.3.11', '0', '2011-03-02 20:10:31'); INSERT INTO `downloads` VALUES(406, 'spec', '192.168.3.11', '0', '2011-03-02 20:12:03'); INSERT INTO `downloads` VALUES(407, 'spec', '192.168.3.11', '0', '2011-03-02 20:12:04'); INSERT INTO `downloads` VALUES(408, 'spec', '192.168.3.11', '0', '2011-03-02 20:12:04'); INSERT INTO `downloads` VALUES(409, 'spec', '192.168.3.11', '0', '2011-03-02 20:12:06'); INSERT INTO `downloads` VALUES(410, 'spec', '192.168.3.11', '0', '2011-03-02 20:40:42'); INSERT INTO `downloads` VALUES(411, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-02 21:18:32'); INSERT INTO `downloads` VALUES(412, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-02 21:20:38'); INSERT INTO `downloads` VALUES(413, 'spec', '192.168.3.11', '0', '2011-03-02 21:30:45'); INSERT INTO `downloads` VALUES(414, 'spec', '172.16.58.3', '0', '2011-03-02 21:51:58'); INSERT INTO `downloads` VALUES(415, 'spec', '172.16.58.3', '0', '2011-03-02 21:52:58'); INSERT INTO `downloads` VALUES(416, 'spec', '172.16.58.3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13', '2011-03-02 22:02:43'); INSERT INTO `downloads` VALUES(417, 'spec', '172.16.31.10', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-02 22:43:17'); INSERT INTO `downloads` VALUES(418, 'spec', '172.16.17.32', '0', '2011-03-02 22:52:04'); INSERT INTO `downloads` VALUES(419, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 23:01:18'); INSERT INTO `downloads` VALUES(420, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-02 23:24:00'); INSERT INTO `downloads` VALUES(421, 'system', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-03 04:04:31'); INSERT INTO `downloads` VALUES(422, 'spec', '192.168.3.11', '0', '2011-03-03 04:20:09'); INSERT INTO `downloads` VALUES(423, 'spec', '192.168.3.11', '0', '2011-03-03 04:22:41'); INSERT INTO `downloads` VALUES(424, 'spec', '172.16.17.32', '0', '2011-03-03 09:31:07'); INSERT INTO `downloads` VALUES(425, 'spec', '192.168.127.12', '0', '2011-03-03 09:47:53'); INSERT INTO `downloads` VALUES(426, 'spec', '192.168.127.12', '0', '2011-03-03 10:06:00'); INSERT INTO `downloads` VALUES(427, 'spec', '192.168.127.12', '0', '2011-03-03 10:15:19'); INSERT INTO `downloads` VALUES(428, 'spec', '192.168.127.12', '0', '2011-03-03 10:16:56'); INSERT INTO `downloads` VALUES(429, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-03 11:14:06'); INSERT INTO `downloads` VALUES(430, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-03 13:00:00'); INSERT INTO `downloads` VALUES(431, 'spec', '172.16.31.10', '0', '2011-03-03 15:40:48'); INSERT INTO `downloads` VALUES(432, 'spec', '172.16.58.3', 'Mozilla/5.0 (X11; Linux i686; rv:2.0b13pre) Gecko/20110301 Firefox/4.0b13pre', '2011-03-03 16:49:49'); INSERT INTO `downloads` VALUES(433, 'spec', '172.16.31.10', '0', '2011-03-03 17:03:41'); INSERT INTO `downloads` VALUES(434, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-03 18:06:44'); INSERT INTO `downloads` VALUES(435, 'spec', '192.168.127.12', '0', '2011-03-03 18:17:35'); INSERT INTO `downloads` VALUES(436, 'spec', '192.168.127.12', '0', '2011-03-03 18:18:11'); INSERT INTO `downloads` VALUES(437, 'spec', '192.168.127.12', '0', '2011-03-03 18:18:44'); INSERT INTO `downloads` VALUES(438, 'spec', '192.168.127.12', '0', '2011-03-03 18:26:42'); INSERT INTO `downloads` VALUES(439, 'spec', '172.16.58.3', '0', '2011-03-03 18:37:39'); INSERT INTO `downloads` VALUES(440, 'spec', '192.168.127.12', '0', '2011-03-03 18:37:50'); INSERT INTO `downloads` VALUES(441, 'spec', '192.168.127.12', '0', '2011-03-03 18:41:15'); INSERT INTO `downloads` VALUES(442, 'spec', '192.168.127.12', '0', '2011-03-03 18:52:45'); INSERT INTO `downloads` VALUES(443, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/534.23 (KHTML, like Gecko) Chrome/11.0.686.1 Safari/534.23', '2011-03-03 18:56:24'); INSERT INTO `downloads` VALUES(444, 'spec', '172.16.58.3', '0', '2011-03-03 19:21:40'); INSERT INTO `downloads` VALUES(445, 'spec', '192.168.3.11', '0', '2011-03-03 20:28:10'); INSERT INTO `downloads` VALUES(446, 'spec', '192.168.3.11', '0', '2011-03-03 20:32:20'); INSERT INTO `downloads` VALUES(447, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-03 20:42:03'); INSERT INTO `downloads` VALUES(448, 'spec', '192.168.3.11', '0', '2011-03-03 20:45:20'); INSERT INTO `downloads` VALUES(449, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-03 22:24:28'); INSERT INTO `downloads` VALUES(450, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-03 22:31:02'); INSERT INTO `downloads` VALUES(451, 'spec', '192.168.127.12', '0', '2011-03-03 22:41:16'); INSERT INTO `downloads` VALUES(452, 'spec', '192.168.127.12', '0', '2011-03-03 23:00:42'); INSERT INTO `downloads` VALUES(453, 'spec', '192.168.127.12', '0', '2011-03-03 23:03:00'); INSERT INTO `downloads` VALUES(454, 'spec', '172.16.58.3', '0', '2011-03-03 23:10:42'); INSERT INTO `downloads` VALUES(455, 'spec', '172.16.58.3', '0', '2011-03-03 23:11:41'); INSERT INTO `downloads` VALUES(456, 'spec', '172.16.58.3', '0', '2011-03-03 23:12:05'); INSERT INTO `downloads` VALUES(457, 'spec', '172.16.58.3', '0', '2011-03-03 23:13:24'); INSERT INTO `downloads` VALUES(458, 'spec', '172.16.58.3', '0', '2011-03-03 23:16:16'); INSERT INTO `downloads` VALUES(459, 'spec', '172.16.58.3', '0', '2011-03-03 23:16:37'); INSERT INTO `downloads` VALUES(460, 'spec', '172.16.58.3', '0', '2011-03-03 23:16:41'); INSERT INTO `downloads` VALUES(461, 'spec', '192.168.127.12', '0', '2011-03-03 23:51:56'); INSERT INTO `downloads` VALUES(462, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-04 00:07:45'); INSERT INTO `downloads` VALUES(463, 'spec', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-04 00:12:40'); INSERT INTO `downloads` VALUES(464, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 00:29:14'); INSERT INTO `downloads` VALUES(465, 'spec', '192.168.127.12', '0', '2011-03-04 01:46:47'); INSERT INTO `downloads` VALUES(466, 'spec', '192.168.127.12', '0', '2011-03-04 02:02:10'); INSERT INTO `downloads` VALUES(467, 'spec', '192.168.127.12', '0', '2011-03-04 02:10:23'); INSERT INTO `downloads` VALUES(468, 'spec', '192.168.3.11', '0', '2011-03-04 02:10:54'); INSERT INTO `downloads` VALUES(469, 'spec', '192.168.3.11', '0', '2011-03-04 02:11:37'); INSERT INTO `downloads` VALUES(470, 'spec', '192.168.127.12', '0', '2011-03-04 02:13:41'); INSERT INTO `downloads` VALUES(471, 'spec', '192.168.3.11', '0', '2011-03-04 02:27:35'); INSERT INTO `downloads` VALUES(472, 'spec', '192.168.3.11', '0', '2011-03-04 02:27:54'); INSERT INTO `downloads` VALUES(473, 'spec', '192.168.3.11', '0', '2011-03-04 02:28:12'); INSERT INTO `downloads` VALUES(474, 'spec', '172.16.31.10', '0', '2011-03-04 02:35:57'); INSERT INTO `downloads` VALUES(475, 'spec', '192.168.3.11', '0', '2011-03-04 02:36:25'); INSERT INTO `downloads` VALUES(476, 'spec', '172.16.58.3', '0', '2011-03-04 02:37:55'); INSERT INTO `downloads` VALUES(477, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-04 02:39:11'); INSERT INTO `downloads` VALUES(478, 'spec', '172.16.58.3', '0', '2011-03-04 02:39:31'); INSERT INTO `downloads` VALUES(479, 'spec', '172.16.58.3', '0', '2011-03-04 02:40:02'); INSERT INTO `downloads` VALUES(480, 'spec', '172.16.58.3', '0', '2011-03-04 02:40:24'); INSERT INTO `downloads` VALUES(481, 'spec', '192.168.3.11', '0', '2011-03-04 02:41:02'); INSERT INTO `downloads` VALUES(482, 'spec', '192.168.3.11', '0', '2011-03-04 02:41:23'); INSERT INTO `downloads` VALUES(483, 'spec', '192.168.3.11', '0', '2011-03-04 02:43:29'); INSERT INTO `downloads` VALUES(484, 'spec', '172.16.58.3', '0', '2011-03-04 02:44:37'); INSERT INTO `downloads` VALUES(485, 'system', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-04 02:45:39'); INSERT INTO `downloads` VALUES(486, 'spec', '192.168.3.11', '0', '2011-03-04 02:46:44'); INSERT INTO `downloads` VALUES(487, 'spec', '192.168.3.11', '0', '2011-03-04 02:47:05'); INSERT INTO `downloads` VALUES(488, 'spec', '192.168.3.11', '0', '2011-03-04 02:47:48'); INSERT INTO `downloads` VALUES(489, 'spec', '192.168.3.11', '0', '2011-03-04 02:48:09'); INSERT INTO `downloads` VALUES(490, 'spec', '192.168.3.11', '0', '2011-03-04 02:48:57'); INSERT INTO `downloads` VALUES(491, 'spec', '192.168.3.11', '0', '2011-03-04 02:48:58'); INSERT INTO `downloads` VALUES(492, 'spec', '192.168.3.11', '0', '2011-03-04 02:51:15'); INSERT INTO `downloads` VALUES(493, 'spec', '192.168.3.11', '0', '2011-03-04 02:51:16'); INSERT INTO `downloads` VALUES(494, 'spec', '192.168.3.11', '0', '2011-03-04 02:52:03'); INSERT INTO `downloads` VALUES(495, 'spec', '192.168.3.11', '0', '2011-03-04 02:52:04'); INSERT INTO `downloads` VALUES(496, 'spec', '192.168.3.11', '0', '2011-03-04 02:52:05'); INSERT INTO `downloads` VALUES(497, 'spec', '192.168.3.11', '0', '2011-03-04 02:56:53'); INSERT INTO `downloads` VALUES(498, 'spec', '192.168.3.11', '0', '2011-03-04 02:57:20'); INSERT INTO `downloads` VALUES(499, 'spec', '192.168.3.11', '0', '2011-03-04 02:59:41'); INSERT INTO `downloads` VALUES(500, 'spec', '192.168.3.11', '0', '2011-03-04 02:59:41'); INSERT INTO `downloads` VALUES(501, 'spec', '192.168.3.11', '0', '2011-03-04 02:59:43'); INSERT INTO `downloads` VALUES(502, 'spec', '192.168.3.11', '0', '2011-03-04 02:59:44'); INSERT INTO `downloads` VALUES(503, 'spec', '192.168.3.11', '0', '2011-03-04 02:59:44'); INSERT INTO `downloads` VALUES(504, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:45'); INSERT INTO `downloads` VALUES(505, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:46'); INSERT INTO `downloads` VALUES(506, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:47'); INSERT INTO `downloads` VALUES(507, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:48'); INSERT INTO `downloads` VALUES(508, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:49'); INSERT INTO `downloads` VALUES(509, 'spec', '192.168.3.11', '0', '2011-03-04 03:00:49'); INSERT INTO `downloads` VALUES(510, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:23'); INSERT INTO `downloads` VALUES(511, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:25'); INSERT INTO `downloads` VALUES(512, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:26'); INSERT INTO `downloads` VALUES(513, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:27'); INSERT INTO `downloads` VALUES(514, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:28'); INSERT INTO `downloads` VALUES(515, 'spec', '192.168.3.11', '0', '2011-03-04 03:01:28'); INSERT INTO `downloads` VALUES(516, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:12'); INSERT INTO `downloads` VALUES(517, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:13'); INSERT INTO `downloads` VALUES(518, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:15'); INSERT INTO `downloads` VALUES(519, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:16'); INSERT INTO `downloads` VALUES(520, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:16'); INSERT INTO `downloads` VALUES(521, 'spec', '192.168.3.11', '0', '2011-03-04 03:05:17'); INSERT INTO `downloads` VALUES(522, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:23'); INSERT INTO `downloads` VALUES(523, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:24'); INSERT INTO `downloads` VALUES(524, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:25'); INSERT INTO `downloads` VALUES(525, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:26'); INSERT INTO `downloads` VALUES(526, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:27'); INSERT INTO `downloads` VALUES(527, 'spec', '192.168.3.11', '0', '2011-03-04 03:07:28'); INSERT INTO `downloads` VALUES(528, 'spec', '172.16.58.3', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13', '2011-03-04 03:12:05'); INSERT INTO `downloads` VALUES(529, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:54'); INSERT INTO `downloads` VALUES(530, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:55'); INSERT INTO `downloads` VALUES(531, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:57'); INSERT INTO `downloads` VALUES(532, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:58'); INSERT INTO `downloads` VALUES(533, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:59'); INSERT INTO `downloads` VALUES(534, 'spec', '192.168.3.11', '0', '2011-03-04 03:28:59'); INSERT INTO `downloads` VALUES(535, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:00'); INSERT INTO `downloads` VALUES(536, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:01'); INSERT INTO `downloads` VALUES(537, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:02'); INSERT INTO `downloads` VALUES(538, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:03'); INSERT INTO `downloads` VALUES(539, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:05'); INSERT INTO `downloads` VALUES(540, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:06'); INSERT INTO `downloads` VALUES(541, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:07'); INSERT INTO `downloads` VALUES(542, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:08'); INSERT INTO `downloads` VALUES(543, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:09'); INSERT INTO `downloads` VALUES(544, 'spec', '192.168.3.11', '0', '2011-03-04 03:29:10'); INSERT INTO `downloads` VALUES(545, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:20'); INSERT INTO `downloads` VALUES(546, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:21'); INSERT INTO `downloads` VALUES(547, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:22'); INSERT INTO `downloads` VALUES(548, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:23'); INSERT INTO `downloads` VALUES(549, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:24'); INSERT INTO `downloads` VALUES(550, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:25'); INSERT INTO `downloads` VALUES(551, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:26'); INSERT INTO `downloads` VALUES(552, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:27'); INSERT INTO `downloads` VALUES(553, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:28'); INSERT INTO `downloads` VALUES(554, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:29'); INSERT INTO `downloads` VALUES(555, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:30'); INSERT INTO `downloads` VALUES(556, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:32'); INSERT INTO `downloads` VALUES(557, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:33'); INSERT INTO `downloads` VALUES(558, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:34'); INSERT INTO `downloads` VALUES(559, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:36'); INSERT INTO `downloads` VALUES(560, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:36'); INSERT INTO `downloads` VALUES(561, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:41'); INSERT INTO `downloads` VALUES(562, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:43'); INSERT INTO `downloads` VALUES(563, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:44'); INSERT INTO `downloads` VALUES(564, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:45'); INSERT INTO `downloads` VALUES(565, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:46'); INSERT INTO `downloads` VALUES(566, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:46'); INSERT INTO `downloads` VALUES(567, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:47'); INSERT INTO `downloads` VALUES(568, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:48'); INSERT INTO `downloads` VALUES(569, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:49'); INSERT INTO `downloads` VALUES(570, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:51'); INSERT INTO `downloads` VALUES(571, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:52'); INSERT INTO `downloads` VALUES(572, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:53'); INSERT INTO `downloads` VALUES(573, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:54'); INSERT INTO `downloads` VALUES(574, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:55'); INSERT INTO `downloads` VALUES(575, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:56'); INSERT INTO `downloads` VALUES(576, 'spec', '192.168.3.11', '0', '2011-03-04 03:30:56'); INSERT INTO `downloads` VALUES(577, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:52'); INSERT INTO `downloads` VALUES(578, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:52'); INSERT INTO `downloads` VALUES(579, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:53'); INSERT INTO `downloads` VALUES(580, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:54'); INSERT INTO `downloads` VALUES(581, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:55'); INSERT INTO `downloads` VALUES(582, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:55'); INSERT INTO `downloads` VALUES(583, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:56'); INSERT INTO `downloads` VALUES(584, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:57'); INSERT INTO `downloads` VALUES(585, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:58'); INSERT INTO `downloads` VALUES(586, 'spec', '192.168.3.11', '0', '2011-03-04 03:31:59'); INSERT INTO `downloads` VALUES(587, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:00'); INSERT INTO `downloads` VALUES(588, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:01'); INSERT INTO `downloads` VALUES(589, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:02'); INSERT INTO `downloads` VALUES(590, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:03'); INSERT INTO `downloads` VALUES(591, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:04'); INSERT INTO `downloads` VALUES(592, 'spec', '192.168.3.11', '0', '2011-03-04 03:32:04'); INSERT INTO `downloads` VALUES(593, 'spec', '172.16.58.3', '0', '2011-03-04 03:32:12'); INSERT INTO `downloads` VALUES(594, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:44'); INSERT INTO `downloads` VALUES(595, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:45'); INSERT INTO `downloads` VALUES(596, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:47'); INSERT INTO `downloads` VALUES(597, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:48'); INSERT INTO `downloads` VALUES(598, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:49'); INSERT INTO `downloads` VALUES(599, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:49'); INSERT INTO `downloads` VALUES(600, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:50'); INSERT INTO `downloads` VALUES(601, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:51'); INSERT INTO `downloads` VALUES(602, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:52'); INSERT INTO `downloads` VALUES(603, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:53'); INSERT INTO `downloads` VALUES(604, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:54'); INSERT INTO `downloads` VALUES(605, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:55'); INSERT INTO `downloads` VALUES(606, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:57'); INSERT INTO `downloads` VALUES(607, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:57'); INSERT INTO `downloads` VALUES(608, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:58'); INSERT INTO `downloads` VALUES(609, 'spec', '192.168.3.11', '0', '2011-03-04 03:34:59'); INSERT INTO `downloads` VALUES(610, 'spec', '192.168.3.11', '0', '2011-03-04 03:39:46'); INSERT INTO `downloads` VALUES(611, 'spec', '192.168.3.11', '0', '2011-03-04 03:39:47'); INSERT INTO `downloads` VALUES(612, 'spec', '192.168.3.11', '0', '2011-03-04 03:39:48'); INSERT INTO `downloads` VALUES(613, 'spec', '192.168.3.11', '0', '2011-03-04 03:39:49'); INSERT INTO `downloads` VALUES(614, 'spec', '172.16.58.3', '0', '2011-03-04 03:41:20'); INSERT INTO `downloads` VALUES(615, 'spec', '172.16.58.3', '0', '2011-03-04 03:41:59'); INSERT INTO `downloads` VALUES(616, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:16'); INSERT INTO `downloads` VALUES(617, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:17'); INSERT INTO `downloads` VALUES(618, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:18'); INSERT INTO `downloads` VALUES(619, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:19'); INSERT INTO `downloads` VALUES(620, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:20'); INSERT INTO `downloads` VALUES(621, 'spec', '192.168.3.11', '0', '2011-03-04 03:42:21'); INSERT INTO `downloads` VALUES(622, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:11'); INSERT INTO `downloads` VALUES(623, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:12'); INSERT INTO `downloads` VALUES(624, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:13'); INSERT INTO `downloads` VALUES(625, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:14'); INSERT INTO `downloads` VALUES(626, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:16'); INSERT INTO `downloads` VALUES(627, 'spec', '192.168.3.11', '0', '2011-03-04 03:43:17'); INSERT INTO `downloads` VALUES(628, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-04 03:46:06'); INSERT INTO `downloads` VALUES(629, 'spec', '172.16.58.3', '0', '2011-03-04 03:50:45'); INSERT INTO `downloads` VALUES(630, 'spec', '172.16.58.3', '0', '2011-03-04 03:52:31'); INSERT INTO `downloads` VALUES(631, 'spec', '172.16.58.3', '0', '2011-03-04 03:53:49'); INSERT INTO `downloads` VALUES(632, 'spec', '172.16.58.3', '0', '2011-03-04 03:59:20'); INSERT INTO `downloads` VALUES(633, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 04:19:17'); INSERT INTO `downloads` VALUES(634, 'spec', '192.168.3.11', '0', '2011-03-04 04:35:09'); INSERT INTO `downloads` VALUES(635, 'spec', '192.168.3.11', '0', '2011-03-04 04:59:04'); INSERT INTO `downloads` VALUES(636, 'spec', '172.16.31.10', '0', '2011-03-04 05:02:56'); INSERT INTO `downloads` VALUES(637, 'spec', '172.16.58.3', '0', '2011-03-04 06:11:48'); INSERT INTO `downloads` VALUES(638, 'spec', '172.16.58.3', '0', '2011-03-04 06:12:28'); INSERT INTO `downloads` VALUES(639, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; nl-nl) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4', '2011-03-04 08:32:38'); INSERT INTO `downloads` VALUES(640, 'spec', '172.16.58.3', '0', '2011-03-04 08:33:44'); INSERT INTO `downloads` VALUES(641, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-04 09:11:31'); INSERT INTO `downloads` VALUES(642, 'spec', '192.168.127.12', '0', '2011-03-04 09:28:20'); INSERT INTO `downloads` VALUES(643, 'spec', '192.168.127.12', '0', '2011-03-04 09:33:38'); INSERT INTO `downloads` VALUES(644, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 09:33:56'); INSERT INTO `downloads` VALUES(645, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 09:58:06'); INSERT INTO `downloads` VALUES(646, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 10:21:47'); INSERT INTO `downloads` VALUES(647, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 10:45:20'); INSERT INTO `downloads` VALUES(648, 'spec', '192.168.3.11', '0', '2011-03-04 11:01:41'); INSERT INTO `downloads` VALUES(649, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-04 11:02:51'); INSERT INTO `downloads` VALUES(650, 'spec', '172.16.58.3', '0', '2011-03-04 11:04:04'); INSERT INTO `downloads` VALUES(651, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 14:24:37'); INSERT INTO `downloads` VALUES(652, 'system', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-03-04 14:52:50'); INSERT INTO `downloads` VALUES(653, 'spec', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-03-04 14:56:23'); INSERT INTO `downloads` VALUES(654, 'spec', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-03-04 14:57:14'); INSERT INTO `downloads` VALUES(655, 'spec', '172.16.17.32', '0', '2011-03-04 15:01:13'); INSERT INTO `downloads` VALUES(656, 'spec', '172.16.17.32', '0', '2011-03-04 16:44:53'); INSERT INTO `downloads` VALUES(657, 'spec', '172.16.17.32', '0', '2011-03-04 16:46:47'); INSERT INTO `downloads` VALUES(658, 'spec', '172.16.17.32', '0', '2011-03-04 16:47:11'); INSERT INTO `downloads` VALUES(659, 'system', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-04 17:00:40'); INSERT INTO `downloads` VALUES(660, 'spec', '172.16.58.3', '0', '2011-03-04 17:03:08'); INSERT INTO `downloads` VALUES(661, 'spec', '172.16.58.3', '0', '2011-03-04 17:04:27'); INSERT INTO `downloads` VALUES(662, 'spec', '172.16.58.3', '0', '2011-03-04 17:06:38'); INSERT INTO `downloads` VALUES(663, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:19'); INSERT INTO `downloads` VALUES(664, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:31'); INSERT INTO `downloads` VALUES(665, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:37'); INSERT INTO `downloads` VALUES(666, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:43'); INSERT INTO `downloads` VALUES(667, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:50'); INSERT INTO `downloads` VALUES(668, 'spec', '172.16.58.3', '0', '2011-03-04 17:10:56'); INSERT INTO `downloads` VALUES(669, 'spec', '172.16.58.3', '0', '2011-03-04 17:11:34'); INSERT INTO `downloads` VALUES(670, 'spec', '192.168.127.12', '0', '2011-03-04 17:59:42'); INSERT INTO `downloads` VALUES(671, 'spec', '192.168.127.12', '0', '2011-03-04 18:00:37'); INSERT INTO `downloads` VALUES(672, 'spec', '192.168.127.12', '0', '2011-03-04 18:10:03'); INSERT INTO `downloads` VALUES(673, 'spec', '192.168.127.12', '0', '2011-03-04 18:13:02'); INSERT INTO `downloads` VALUES(674, 'spec', '192.168.127.12', '0', '2011-03-04 18:16:21'); INSERT INTO `downloads` VALUES(675, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.114 Safari/534.16', '2011-03-04 18:17:29'); INSERT INTO `downloads` VALUES(676, 'spec', '192.168.127.12', '0', '2011-03-04 18:23:14'); INSERT INTO `downloads` VALUES(677, 'spec', '192.168.127.12', '0', '2011-03-04 18:50:30'); INSERT INTO `downloads` VALUES(678, 'spec', '192.168.127.12', '0', '2011-03-04 18:50:54'); INSERT INTO `downloads` VALUES(679, 'spec', '192.168.127.12', '0', '2011-03-04 18:52:04'); INSERT INTO `downloads` VALUES(680, 'spec', '192.168.127.12', '0', '2011-03-04 18:55:07'); INSERT INTO `downloads` VALUES(681, 'spec', '192.168.127.12', '0', '2011-03-04 19:04:49'); INSERT INTO `downloads` VALUES(682, 'spec', '192.168.127.12', '0', '2011-03-04 19:05:43'); INSERT INTO `downloads` VALUES(683, 'spec', '192.168.127.12', '0', '2011-03-04 19:07:12'); INSERT INTO `downloads` VALUES(684, 'spec', '192.168.127.12', '0', '2011-03-04 19:09:39'); INSERT INTO `downloads` VALUES(685, 'spec', '192.168.127.12', '0', '2011-03-04 19:10:09'); INSERT INTO `downloads` VALUES(686, 'spec', '192.168.127.12', '0', '2011-03-04 19:11:36'); INSERT INTO `downloads` VALUES(687, 'spec', '192.168.127.12', '0', '2011-03-04 19:53:16'); INSERT INTO `downloads` VALUES(688, 'spec', '192.168.127.12', '0', '2011-03-04 19:56:53'); INSERT INTO `downloads` VALUES(689, 'spec', '192.168.127.12', '0', '2011-03-04 20:04:40'); INSERT INTO `downloads` VALUES(690, 'spec', '192.168.127.12', '0', '2011-03-04 20:05:29'); INSERT INTO `downloads` VALUES(691, 'spec', '192.168.127.12', '0', '2011-03-04 20:05:35'); INSERT INTO `downloads` VALUES(692, 'spec', '172.16.58.3', '0', '2011-03-04 20:23:42'); INSERT INTO `downloads` VALUES(693, 'spec', '192.168.127.12', '0', '2011-03-04 20:23:58'); INSERT INTO `downloads` VALUES(694, 'spec', '192.168.127.12', '0', '2011-03-04 20:24:54'); INSERT INTO `downloads` VALUES(695, 'spec', '192.168.127.12', '0', '2011-03-04 20:24:59'); INSERT INTO `downloads` VALUES(696, 'spec', '192.168.127.12', '0', '2011-03-04 20:25:55'); INSERT INTO `downloads` VALUES(697, 'spec', '192.168.127.12', '0', '2011-03-04 20:26:16'); INSERT INTO `downloads` VALUES(698, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13', '2011-03-04 20:32:35'); INSERT INTO `downloads` VALUES(699, 'spec', '192.168.127.12', '0', '2011-03-04 20:49:02'); INSERT INTO `downloads` VALUES(700, 'spec', '192.168.127.12', '0', '2011-03-04 20:53:05'); INSERT INTO `downloads` VALUES(701, 'spec', '172.16.31.10', 'ia_archiver (+http://www.alexa.com/site/help/webmasters; <EMAIL>)', '2011-03-04 20:53:17'); INSERT INTO `downloads` VALUES(702, 'spec', '192.168.3.11', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110221 Ubuntu/10.10 (maverick) Firefox/3.6.14', '2011-03-04 21:18:21'); INSERT INTO `downloads` VALUES(703, 'spec', '192.168.3.11', 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; sv-se) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8C148', '2011-03-04 21:26:06'); INSERT INTO `downloads` VALUES(704, 'spec', '192.168.3.11', '0', '2011-03-04 21:57:12'); INSERT INTO `downloads` VALUES(705, 'spec', '192.168.3.11', '0', '2011-03-04 22:04:00'); INSERT INTO `downloads` VALUES(706, 'spec', '192.168.3.11', '0', '2011-03-04 22:15:12'); INSERT INTO `downloads` VALUES(707, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 22:25:43'); INSERT INTO `downloads` VALUES(708, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-04 22:47:12'); INSERT INTO `downloads` VALUES(709, 'spec', '192.168.3.11', 'Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.2.14) Gecko/20110221 Ubuntu/10.10 (maverick) Firefox/3.6.14 GTB7.1', '2011-03-04 22:47:55'); INSERT INTO `downloads` VALUES(710, 'spec', '192.168.3.11', '0', '2011-03-04 23:12:47'); INSERT INTO `downloads` VALUES(711, 'spec', '192.168.3.11', '0', '2011-03-04 23:14:38'); INSERT INTO `downloads` VALUES(712, 'spec', '192.168.3.11', 'Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.2.14) Gecko/20110221 Ubuntu/10.10 (maverick) Firefox/3.6.14 GTB7.1', '2011-03-04 23:14:48'); INSERT INTO `downloads` VALUES(713, 'spec', '172.16.31.10', '0', '2011-03-04 23:36:53'); INSERT INTO `downloads` VALUES(714, 'spec', '172.16.31.10', '0', '2011-03-04 23:42:27'); INSERT INTO `downloads` VALUES(715, 'spec', '172.16.31.10', '0', '2011-03-05 00:00:54'); INSERT INTO `downloads` VALUES(716, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 00:42:08'); INSERT INTO `downloads` VALUES(717, 'system', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-05 03:06:31'); INSERT INTO `downloads` VALUES(718, 'spec', '192.168.3.11', '0', '2011-03-05 03:23:29'); INSERT INTO `downloads` VALUES(719, 'spec', '192.168.3.11', '0', '2011-03-05 03:24:08'); INSERT INTO `downloads` VALUES(720, 'spec', '192.168.3.11', '0', '2011-03-05 03:24:21'); INSERT INTO `downloads` VALUES(721, 'spec', '192.168.3.11', '0', '2011-03-05 03:24:33'); INSERT INTO `downloads` VALUES(722, 'spec', '192.168.3.11', '0', '2011-03-05 03:24:44'); INSERT INTO `downloads` VALUES(723, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 04:30:42'); INSERT INTO `downloads` VALUES(724, 'spec', '172.16.17.32', '0', '2011-03-05 05:31:13'); INSERT INTO `downloads` VALUES(725, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 05:34:13'); INSERT INTO `downloads` VALUES(726, 'spec', '172.16.17.32', '0', '2011-03-05 05:41:48'); INSERT INTO `downloads` VALUES(727, 'spec', '172.16.17.32', '0', '2011-03-05 05:47:23'); INSERT INTO `downloads` VALUES(728, 'spec', '172.16.17.32', '0', '2011-03-05 05:49:14'); INSERT INTO `downloads` VALUES(729, 'spec', '192.168.3.11', '0', '2011-03-05 06:07:56'); INSERT INTO `downloads` VALUES(730, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 10:15:34'); INSERT INTO `downloads` VALUES(731, 'spec', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16', '2011-03-05 10:19:09'); INSERT INTO `downloads` VALUES(732, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 10:34:06'); INSERT INTO `downloads` VALUES(733, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; es-AR; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-05 10:51:48'); INSERT INTO `downloads` VALUES(734, 'system', '192.168.127.12', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; es-AR; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14', '2011-03-05 11:00:35'); INSERT INTO `downloads` VALUES(735, 'system', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-05 11:59:37'); INSERT INTO `downloads` VALUES(736, 'spec', '172.16.58.3', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; it; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-05 14:18:45'); INSERT INTO `downloads` VALUES(737, 'spec', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-05 14:50:28'); INSERT INTO `downloads` VALUES(738, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13', '2011-03-05 16:11:56'); INSERT INTO `downloads` VALUES(739, 'spec', '192.168.3.11', '0', '2011-03-05 17:38:59'); INSERT INTO `downloads` VALUES(740, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.18 Safari/534.16', '2011-03-05 17:55:42'); INSERT INTO `downloads` VALUES(741, 'spec', '192.168.3.11', '0', '2011-03-05 17:58:43'); INSERT INTO `downloads` VALUES(742, 'system', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 FirePHP/0.5', '2011-03-05 18:10:48'); INSERT INTO `downloads` VALUES(743, 'spec', '172.16.17.32', '0', '2011-03-05 18:16:55'); INSERT INTO `downloads` VALUES(744, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 19:52:52'); INSERT INTO `downloads` VALUES(745, 'spec', '192.168.3.11', '0', '2011-03-05 20:26:39'); INSERT INTO `downloads` VALUES(746, 'spec', '192.168.3.11', '0', '2011-03-05 20:33:10'); INSERT INTO `downloads` VALUES(747, 'spec', '192.168.3.11', '0', '2011-03-05 20:35:21'); INSERT INTO `downloads` VALUES(748, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-05 20:37:56'); INSERT INTO `downloads` VALUES(749, 'spec', '192.168.3.11', '0', '2011-03-05 20:40:30'); INSERT INTO `downloads` VALUES(750, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-05 21:17:14'); INSERT INTO `downloads` VALUES(751, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-05 21:17:26'); INSERT INTO `downloads` VALUES(752, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-05 21:25:05'); INSERT INTO `downloads` VALUES(753, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 21:50:04'); INSERT INTO `downloads` VALUES(754, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-05 21:50:05'); INSERT INTO `downloads` VALUES(755, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)', '2011-03-05 22:25:10'); INSERT INTO `downloads` VALUES(756, 'spec', '172.16.17.32', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12) Gecko/20100101 Firefox/4.0b12', '2011-03-05 22:42:19'); INSERT INTO `downloads` VALUES(757, 'spec', '192.168.3.11', '0', '2011-03-06 01:23:27'); INSERT INTO `downloads` VALUES(758, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 01:40:03'); INSERT INTO `downloads` VALUES(759, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 01:41:57'); INSERT INTO `downloads` VALUES(760, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 01:45:32'); INSERT INTO `downloads` VALUES(761, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 01:56:34'); INSERT INTO `downloads` VALUES(762, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 04:23:48'); INSERT INTO `downloads` VALUES(763, 'system', '172.16.17.32', 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13', '2011-03-06 05:14:39'); INSERT INTO `downloads` VALUES(764, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:21:58'); INSERT INTO `downloads` VALUES(765, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:03'); INSERT INTO `downloads` VALUES(766, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:03'); INSERT INTO `downloads` VALUES(767, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:04'); INSERT INTO `downloads` VALUES(768, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:05'); INSERT INTO `downloads` VALUES(769, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:06'); INSERT INTO `downloads` VALUES(770, 'spec', '192.168.3.11', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13', '2011-03-06 05:22:07'); INSERT INTO `downloads` VALUES(771, 'spec', '172.16.31.10', '0', '2011-03-06 06:03:58'); INSERT INTO `downloads` VALUES(772, 'spec', '172.16.58.3', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13', '2011-03-06 06:42:52'); INSERT INTO `downloads` VALUES(773, 'spec', '192.168.3.11', 'Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5', '2011-03-06 07:59:57'); INSERT INTO `downloads` VALUES(774, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 09:28:32'); INSERT INTO `downloads` VALUES(775, 'system', '192.168.3.11', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-06 09:52:56'); INSERT INTO `downloads` VALUES(776, 'spec', '172.16.58.3', '0', '2011-03-06 12:28:54'); INSERT INTO `downloads` VALUES(777, 'spec', '172.16.17.32', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 12:29:05'); INSERT INTO `downloads` VALUES(778, 'spec', '172.16.58.3', '0', '2011-03-06 12:30:11'); INSERT INTO `downloads` VALUES(779, 'spec', '172.16.58.3', '0', '2011-03-06 12:34:46'); INSERT INTO `downloads` VALUES(780, 'spec', '172.16.58.3', '0', '2011-03-06 12:35:38'); INSERT INTO `downloads` VALUES(781, 'spec', '172.16.58.3', '0', '2011-03-06 12:35:47'); INSERT INTO `downloads` VALUES(782, 'spec', '172.16.58.3', '0', '2011-03-06 12:36:43'); INSERT INTO `downloads` VALUES(783, 'spec', '172.16.58.3', '0', '2011-03-06 12:36:56'); INSERT INTO `downloads` VALUES(784, 'spec', '172.16.58.3', '0', '2011-03-06 12:37:44'); INSERT INTO `downloads` VALUES(785, 'spec', '172.16.58.3', '0', '2011-03-06 12:40:14'); INSERT INTO `downloads` VALUES(786, 'spec', '192.168.3.11', '0', '2011-03-06 13:11:28'); INSERT INTO `downloads` VALUES(787, 'spec', '192.168.3.11', '0', '2011-03-06 14:09:51'); INSERT INTO `downloads` VALUES(788, 'spec', '192.168.3.11', '0', '2011-03-06 14:12:32'); INSERT INTO `downloads` VALUES(789, 'spec', '172.16.17.32', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729; .NET4.0E)', '2011-03-06 21:10:09'); INSERT INTO `downloads` VALUES(790, 'spec', '192.168.3.11', '0', '2011-03-06 21:30:40'); INSERT INTO `downloads` VALUES(791, 'spec', '172.16.31.10', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-06 21:37:00'); INSERT INTO `downloads` VALUES(792, 'spec', '192.168.3.11', '0', '2011-03-06 21:41:46'); INSERT INTO `downloads` VALUES(793, 'spec', '192.168.3.11', '0', '2011-03-06 21:43:38'); INSERT INTO `downloads` VALUES(794, 'spec', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 22:00:30'); INSERT INTO `downloads` VALUES(795, 'system', '192.168.127.12', 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '2011-03-06 22:13:20'); INSERT INTO `downloads` VALUES(796, 'system', '172.16.58.3', 'Java/1.6.0_20', '2011-03-06 22:14:47'); INSERT INTO `downloads` VALUES(797, 'system', '172.16.58.3', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3)', '2011-03-06 22:14:47'); INSERT INTO `downloads` VALUES(798, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-06 21:07:33'); INSERT INTO `downloads` VALUES(799, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-06 21:07:34'); INSERT INTO `downloads` VALUES(800, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-23 22:56:23'); INSERT INTO `downloads` VALUES(801, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-23 22:57:11'); INSERT INTO `downloads` VALUES(802, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-23 23:00:22'); INSERT INTO `downloads` VALUES(803, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-03-23 23:01:23'); INSERT INTO `downloads` VALUES(804, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:35:53'); INSERT INTO `downloads` VALUES(805, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:37:40'); INSERT INTO `downloads` VALUES(806, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:47:51'); INSERT INTO `downloads` VALUES(807, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:47:52'); INSERT INTO `downloads` VALUES(808, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:48:03'); INSERT INTO `downloads` VALUES(809, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 13:48:38'); INSERT INTO `downloads` VALUES(810, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 14:14:40'); INSERT INTO `downloads` VALUES(811, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 14:14:44'); INSERT INTO `downloads` VALUES(812, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 14:14:45'); INSERT INTO `downloads` VALUES(813, 'spec', '127.0.0.1', 'curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3', '2011-04-30 14:15:08'); INSERT INTO `downloads` VALUES(814, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 15:32:39'); INSERT INTO `downloads` VALUES(815, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 16:17:35'); INSERT INTO `downloads` VALUES(816, 'spec', '127.0.0.1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15', '2011-04-30 17:08:22'); -- -------------------------------------------------------- -- -- Table structure for table `installs` -- CREATE TABLE `installs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `spark_id` int(11) NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`), KEY `spark_id` (`spark_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=761 ; -- -- Dumping data for table `installs` -- INSERT INTO `installs` VALUES(16, 5, '2011-02-08 03:47:29'); INSERT INTO `installs` VALUES(19, 6, '2011-02-08 21:05:43'); INSERT INTO `installs` VALUES(20, 6, '2011-02-08 21:06:14'); INSERT INTO `installs` VALUES(21, 6, '2011-02-08 21:07:32'); INSERT INTO `installs` VALUES(25, 6, '2011-02-08 23:10:47'); INSERT INTO `installs` VALUES(29, 6, '2011-02-09 14:54:54'); INSERT INTO `installs` VALUES(33, 5, '2011-02-09 14:55:02'); INSERT INTO `installs` VALUES(34, 5, '2011-02-10 02:10:51'); INSERT INTO `installs` VALUES(39, 8, '2011-02-11 03:40:27'); INSERT INTO `installs` VALUES(40, 8, '2011-02-11 03:41:17'); INSERT INTO `installs` VALUES(41, 8, '2011-02-11 08:26:48'); INSERT INTO `installs` VALUES(42, 8, '2011-02-11 14:30:30'); INSERT INTO `installs` VALUES(43, 8, '2011-02-11 14:31:00'); INSERT INTO `installs` VALUES(44, 8, '2011-02-11 14:31:18'); INSERT INTO `installs` VALUES(45, 8, '2011-02-11 14:31:28'); INSERT INTO `installs` VALUES(46, 8, '2011-02-11 14:33:10'); INSERT INTO `installs` VALUES(47, 8, '2011-02-11 18:33:04'); INSERT INTO `installs` VALUES(48, 8, '2011-02-11 18:33:17'); INSERT INTO `installs` VALUES(49, 8, '2011-02-11 23:21:41'); INSERT INTO `installs` VALUES(50, 8, '2011-02-13 20:00:15'); INSERT INTO `installs` VALUES(51, 8, '2011-02-13 20:05:47'); INSERT INTO `installs` VALUES(52, 8, '2011-02-13 21:00:29'); INSERT INTO `installs` VALUES(53, 8, '2011-02-13 22:04:05'); INSERT INTO `installs` VALUES(55, 8, '2011-02-15 02:45:53'); INSERT INTO `installs` VALUES(57, 8, '2011-02-15 02:53:37'); INSERT INTO `installs` VALUES(63, 5, '2011-02-15 03:18:01'); INSERT INTO `installs` VALUES(64, 6, '2011-02-15 03:41:48'); INSERT INTO `installs` VALUES(65, 8, '2011-02-17 04:42:59'); INSERT INTO `installs` VALUES(66, 8, '2011-02-17 04:43:04'); INSERT INTO `installs` VALUES(67, 8, '2011-02-17 04:43:49'); INSERT INTO `installs` VALUES(68, 8, '2011-02-17 04:44:47'); INSERT INTO `installs` VALUES(69, 8, '2011-02-17 04:46:24'); INSERT INTO `installs` VALUES(70, 8, '2011-02-17 04:47:43'); INSERT INTO `installs` VALUES(71, 8, '2011-02-17 04:49:52'); INSERT INTO `installs` VALUES(72, 8, '2011-02-17 04:50:28'); INSERT INTO `installs` VALUES(73, 8, '2011-02-17 04:52:34'); INSERT INTO `installs` VALUES(74, 8, '2011-02-17 04:53:09'); INSERT INTO `installs` VALUES(75, 8, '2011-02-17 04:54:05'); INSERT INTO `installs` VALUES(76, 8, '2011-02-17 04:54:15'); INSERT INTO `installs` VALUES(77, 8, '2011-02-17 04:54:54'); INSERT INTO `installs` VALUES(78, 8, '2011-02-17 04:55:27'); INSERT INTO `installs` VALUES(79, 8, '2011-02-17 04:55:39'); INSERT INTO `installs` VALUES(80, 8, '2011-02-17 04:56:43'); INSERT INTO `installs` VALUES(81, 8, '2011-02-17 04:56:52'); INSERT INTO `installs` VALUES(82, 8, '2011-02-17 05:01:35'); INSERT INTO `installs` VALUES(83, 8, '2011-02-17 05:02:29'); INSERT INTO `installs` VALUES(84, 8, '2011-02-17 05:02:40'); INSERT INTO `installs` VALUES(85, 8, '2011-02-17 05:02:50'); INSERT INTO `installs` VALUES(86, 8, '2011-02-17 05:03:34'); INSERT INTO `installs` VALUES(87, 9, '2011-02-17 05:26:05'); INSERT INTO `installs` VALUES(88, 8, '2011-02-17 06:29:38'); INSERT INTO `installs` VALUES(89, 8, '2011-02-17 06:30:51'); INSERT INTO `installs` VALUES(90, 8, '2011-02-17 07:01:59'); INSERT INTO `installs` VALUES(91, 8, '2011-02-17 07:04:01'); INSERT INTO `installs` VALUES(92, 8, '2011-02-17 07:10:51'); INSERT INTO `installs` VALUES(93, 8, '2011-02-17 07:12:56'); INSERT INTO `installs` VALUES(94, 8, '2011-02-17 07:13:24'); INSERT INTO `installs` VALUES(95, 6, '2011-02-17 07:13:59'); INSERT INTO `installs` VALUES(96, 6, '2011-02-17 07:14:07'); INSERT INTO `installs` VALUES(97, 6, '2011-02-17 07:14:16'); INSERT INTO `installs` VALUES(98, 8, '2011-02-17 07:15:05'); INSERT INTO `installs` VALUES(99, 8, '2011-02-17 07:15:27'); INSERT INTO `installs` VALUES(100, 9, '2011-02-17 07:16:04'); INSERT INTO `installs` VALUES(101, 6, '2011-02-17 07:17:28'); INSERT INTO `installs` VALUES(102, 8, '2011-02-17 07:26:41'); INSERT INTO `installs` VALUES(103, 8, '2011-02-17 07:26:57'); INSERT INTO `installs` VALUES(104, 6, '2011-02-17 07:35:22'); INSERT INTO `installs` VALUES(105, 6, '2011-02-17 07:43:03'); INSERT INTO `installs` VALUES(106, 6, '2011-02-17 07:43:19'); INSERT INTO `installs` VALUES(107, 6, '2011-02-17 07:44:46'); INSERT INTO `installs` VALUES(108, 6, '2011-02-17 07:49:39'); INSERT INTO `installs` VALUES(109, 6, '2011-02-17 13:43:46'); INSERT INTO `installs` VALUES(110, 8, '2011-02-17 18:53:00'); INSERT INTO `installs` VALUES(111, 8, '2011-02-17 18:53:16'); INSERT INTO `installs` VALUES(112, 9, '2011-02-18 02:39:56'); INSERT INTO `installs` VALUES(113, 8, '2011-02-18 02:49:20'); INSERT INTO `installs` VALUES(114, 9, '2011-02-18 07:56:58'); INSERT INTO `installs` VALUES(115, 9, '2011-02-18 17:54:58'); INSERT INTO `installs` VALUES(116, 8, '2011-02-20 01:02:17'); INSERT INTO `installs` VALUES(117, 9, '2011-02-20 01:29:37'); INSERT INTO `installs` VALUES(118, 9, '2011-02-20 01:42:03'); INSERT INTO `installs` VALUES(119, 9, '2011-02-20 01:46:29'); INSERT INTO `installs` VALUES(120, 9, '2011-02-20 01:50:50'); INSERT INTO `installs` VALUES(121, 8, '2011-02-20 02:01:57'); INSERT INTO `installs` VALUES(122, 9, '2011-02-20 02:02:03'); INSERT INTO `installs` VALUES(123, 9, '2011-02-20 02:03:03'); INSERT INTO `installs` VALUES(124, 9, '2011-02-20 02:03:06'); INSERT INTO `installs` VALUES(125, 9, '2011-02-20 02:04:33'); INSERT INTO `installs` VALUES(126, 9, '2011-02-20 02:05:23'); INSERT INTO `installs` VALUES(127, 9, '2011-02-20 02:35:56'); INSERT INTO `installs` VALUES(128, 9, '2011-02-20 02:38:16'); INSERT INTO `installs` VALUES(129, 9, '2011-02-20 02:40:34'); INSERT INTO `installs` VALUES(130, 5, '2011-02-20 15:44:57'); INSERT INTO `installs` VALUES(131, 9, '2011-02-20 21:25:53'); INSERT INTO `installs` VALUES(132, 9, '2011-02-20 21:26:23'); INSERT INTO `installs` VALUES(133, 8, '2011-02-21 01:14:52'); INSERT INTO `installs` VALUES(134, 5, '2011-02-21 13:46:06'); INSERT INTO `installs` VALUES(135, 6, '2011-02-22 06:03:37'); INSERT INTO `installs` VALUES(136, 6, '2011-02-24 05:04:32'); INSERT INTO `installs` VALUES(137, 6, '2011-02-24 05:10:44'); INSERT INTO `installs` VALUES(138, 6, '2011-02-24 05:41:28'); INSERT INTO `installs` VALUES(139, 6, '2011-02-24 05:44:20'); INSERT INTO `installs` VALUES(140, 9, '2011-02-25 15:44:35'); INSERT INTO `installs` VALUES(141, 9, '2011-02-25 15:44:42'); INSERT INTO `installs` VALUES(142, 11, '2011-02-25 23:30:54'); INSERT INTO `installs` VALUES(143, 20, '2011-02-26 03:47:17'); INSERT INTO `installs` VALUES(144, 20, '2011-02-26 04:03:42'); INSERT INTO `installs` VALUES(145, 20, '2011-02-26 04:13:27'); INSERT INTO `installs` VALUES(146, 9, '2011-02-26 04:19:58'); INSERT INTO `installs` VALUES(147, 11, '2011-02-26 05:28:28'); INSERT INTO `installs` VALUES(148, 6, '2011-02-26 17:28:29'); INSERT INTO `installs` VALUES(149, 9, '2011-02-26 17:49:11'); INSERT INTO `installs` VALUES(150, 8, '2011-02-26 17:58:02'); INSERT INTO `installs` VALUES(151, 8, '2011-02-26 17:58:25'); INSERT INTO `installs` VALUES(152, 21, '2011-02-26 19:01:24'); INSERT INTO `installs` VALUES(153, 21, '2011-02-26 19:03:27'); INSERT INTO `installs` VALUES(154, 6, '2011-02-27 03:43:49'); INSERT INTO `installs` VALUES(155, 6, '2011-02-27 03:43:51'); INSERT INTO `installs` VALUES(156, 8, '2011-02-27 04:27:05'); INSERT INTO `installs` VALUES(157, 8, '2011-02-27 04:27:09'); INSERT INTO `installs` VALUES(158, 9, '2011-02-27 05:11:56'); INSERT INTO `installs` VALUES(159, 5, '2011-02-27 06:41:37'); INSERT INTO `installs` VALUES(160, 5, '2011-02-27 06:41:39'); INSERT INTO `installs` VALUES(161, 8, '2011-02-27 22:10:01'); INSERT INTO `installs` VALUES(162, 21, '2011-02-28 07:41:25'); INSERT INTO `installs` VALUES(163, 20, '2011-02-28 07:41:30'); INSERT INTO `installs` VALUES(164, 8, '2011-02-28 14:44:16'); INSERT INTO `installs` VALUES(165, 8, '2011-02-28 14:49:16'); INSERT INTO `installs` VALUES(166, 9, '2011-02-28 15:04:17'); INSERT INTO `installs` VALUES(167, 6, '2011-02-28 15:09:18'); INSERT INTO `installs` VALUES(168, 6, '2011-02-28 15:14:18'); INSERT INTO `installs` VALUES(169, 5, '2011-02-28 17:56:54'); INSERT INTO `installs` VALUES(170, 5, '2011-02-28 18:12:47'); INSERT INTO `installs` VALUES(171, 9, '2011-02-28 19:09:47'); INSERT INTO `installs` VALUES(172, 6, '2011-02-28 19:57:14'); INSERT INTO `installs` VALUES(173, 11, '2011-02-28 20:02:12'); INSERT INTO `installs` VALUES(174, 6, '2011-02-28 20:07:19'); INSERT INTO `installs` VALUES(175, 6, '2011-02-28 20:53:36'); INSERT INTO `installs` VALUES(176, 8, '2011-02-28 20:55:59'); INSERT INTO `installs` VALUES(177, 20, '2011-02-28 21:17:41'); INSERT INTO `installs` VALUES(178, 22, '2011-02-28 21:31:19'); INSERT INTO `installs` VALUES(179, 22, '2011-02-28 21:33:09'); INSERT INTO `installs` VALUES(180, 22, '2011-02-28 21:33:40'); INSERT INTO `installs` VALUES(181, 22, '2011-02-28 21:35:17'); INSERT INTO `installs` VALUES(182, 22, '2011-02-28 21:39:02'); INSERT INTO `installs` VALUES(183, 9, '2011-02-28 21:48:28'); INSERT INTO `installs` VALUES(184, 8, '2011-02-28 21:48:44'); INSERT INTO `installs` VALUES(185, 8, '2011-02-28 21:49:00'); INSERT INTO `installs` VALUES(186, 6, '2011-02-28 21:49:33'); INSERT INTO `installs` VALUES(187, 11, '2011-02-28 23:06:01'); INSERT INTO `installs` VALUES(188, 11, '2011-02-28 23:06:04'); INSERT INTO `installs` VALUES(189, 20, '2011-02-28 23:07:33'); INSERT INTO `installs` VALUES(190, 11, '2011-02-28 23:12:37'); INSERT INTO `installs` VALUES(191, 21, '2011-02-28 23:22:44'); INSERT INTO `installs` VALUES(192, 22, '2011-02-28 23:57:42'); INSERT INTO `installs` VALUES(193, 23, '2011-03-01 00:11:38'); INSERT INTO `installs` VALUES(194, 11, '2011-03-01 00:13:50'); INSERT INTO `installs` VALUES(195, 23, '2011-03-01 00:14:59'); INSERT INTO `installs` VALUES(196, 23, '2011-03-01 00:29:28'); INSERT INTO `installs` VALUES(197, 23, '2011-03-01 00:48:57'); INSERT INTO `installs` VALUES(198, 8, '2011-03-01 00:58:04'); INSERT INTO `installs` VALUES(199, 5, '2011-03-01 01:02:51'); INSERT INTO `installs` VALUES(200, 9, '2011-03-01 01:38:10'); INSERT INTO `installs` VALUES(201, 9, '2011-03-01 02:01:44'); INSERT INTO `installs` VALUES(202, 27, '2011-03-01 02:02:15'); INSERT INTO `installs` VALUES(203, 23, '2011-03-01 02:05:41'); INSERT INTO `installs` VALUES(204, 22, '2011-03-01 02:18:34'); INSERT INTO `installs` VALUES(205, 27, '2011-03-01 02:20:43'); INSERT INTO `installs` VALUES(206, 25, '2011-03-01 02:38:37'); INSERT INTO `installs` VALUES(207, 27, '2011-03-01 02:38:54'); INSERT INTO `installs` VALUES(208, 11, '2011-03-01 02:41:08'); INSERT INTO `installs` VALUES(209, 11, '2011-03-01 02:41:23'); INSERT INTO `installs` VALUES(210, 24, '2011-03-01 02:52:23'); INSERT INTO `installs` VALUES(211, 24, '2011-03-01 02:54:12'); INSERT INTO `installs` VALUES(212, 24, '2011-03-01 02:54:48'); INSERT INTO `installs` VALUES(213, 24, '2011-03-01 03:01:46'); INSERT INTO `installs` VALUES(214, 25, '2011-03-01 03:12:14'); INSERT INTO `installs` VALUES(215, 9, '2011-03-01 03:12:20'); INSERT INTO `installs` VALUES(216, 24, '2011-03-01 03:23:11'); INSERT INTO `installs` VALUES(217, 24, '2011-03-01 03:36:37'); INSERT INTO `installs` VALUES(218, 25, '2011-03-01 03:37:01'); INSERT INTO `installs` VALUES(219, 23, '2011-03-01 03:37:24'); INSERT INTO `installs` VALUES(220, 24, '2011-03-01 03:38:55'); INSERT INTO `installs` VALUES(221, 22, '2011-03-01 03:39:30'); INSERT INTO `installs` VALUES(222, 23, '2011-03-01 03:39:32'); INSERT INTO `installs` VALUES(223, 22, '2011-03-01 04:00:39'); INSERT INTO `installs` VALUES(224, 9, '2011-03-01 04:23:04'); INSERT INTO `installs` VALUES(225, 24, '2011-03-01 04:57:57'); INSERT INTO `installs` VALUES(226, 24, '2011-03-01 05:06:06'); INSERT INTO `installs` VALUES(227, 24, '2011-03-01 05:06:51'); INSERT INTO `installs` VALUES(228, 24, '2011-03-01 05:07:01'); INSERT INTO `installs` VALUES(229, 23, '2011-03-01 05:16:05'); INSERT INTO `installs` VALUES(230, 25, '2011-03-01 05:37:54'); INSERT INTO `installs` VALUES(231, 24, '2011-03-01 05:37:56'); INSERT INTO `installs` VALUES(232, 27, '2011-03-01 06:09:43'); INSERT INTO `installs` VALUES(233, 23, '2011-03-01 06:39:25'); INSERT INTO `installs` VALUES(234, 23, '2011-03-01 06:58:07'); INSERT INTO `installs` VALUES(235, 23, '2011-03-01 07:14:39'); INSERT INTO `installs` VALUES(236, 9, '2011-03-01 07:35:37'); INSERT INTO `installs` VALUES(237, 9, '2011-03-01 07:36:10'); INSERT INTO `installs` VALUES(238, 9, '2011-03-01 07:36:56'); INSERT INTO `installs` VALUES(239, 9, '2011-03-01 07:37:22'); INSERT INTO `installs` VALUES(240, 22, '2011-03-01 07:37:54'); INSERT INTO `installs` VALUES(241, 27, '2011-03-01 07:38:45'); INSERT INTO `installs` VALUES(242, 26, '2011-03-01 07:38:46'); INSERT INTO `installs` VALUES(243, 27, '2011-03-01 08:59:38'); INSERT INTO `installs` VALUES(244, 25, '2011-03-01 09:00:48'); INSERT INTO `installs` VALUES(245, 22, '2011-03-01 09:07:09'); INSERT INTO `installs` VALUES(246, 26, '2011-03-01 09:21:58'); INSERT INTO `installs` VALUES(247, 24, '2011-03-01 09:25:37'); INSERT INTO `installs` VALUES(248, 25, '2011-03-01 09:26:12'); INSERT INTO `installs` VALUES(249, 24, '2011-03-01 09:27:23'); INSERT INTO `installs` VALUES(250, 23, '2011-03-01 09:33:32'); INSERT INTO `installs` VALUES(251, 26, '2011-03-01 10:49:10'); INSERT INTO `installs` VALUES(252, 26, '2011-03-01 10:59:18'); INSERT INTO `installs` VALUES(253, 21, '2011-03-01 11:12:40'); INSERT INTO `installs` VALUES(254, 24, '2011-03-01 11:12:41'); INSERT INTO `installs` VALUES(255, 9, '2011-03-01 11:17:17'); INSERT INTO `installs` VALUES(256, 23, '2011-03-01 11:18:13'); INSERT INTO `installs` VALUES(257, 23, '2011-03-01 11:20:52'); INSERT INTO `installs` VALUES(258, 9, '2011-03-01 11:42:58'); INSERT INTO `installs` VALUES(259, 23, '2011-03-01 11:50:25'); INSERT INTO `installs` VALUES(260, 23, '2011-03-01 11:56:04'); INSERT INTO `installs` VALUES(261, 20, '2011-03-01 12:08:39'); INSERT INTO `installs` VALUES(262, 26, '2011-03-01 12:29:39'); INSERT INTO `installs` VALUES(263, 22, '2011-03-01 12:40:45'); INSERT INTO `installs` VALUES(264, 6, '2011-03-01 13:54:02'); INSERT INTO `installs` VALUES(265, 9, '2011-03-01 14:16:36'); INSERT INTO `installs` VALUES(266, 25, '2011-03-01 14:44:32'); INSERT INTO `installs` VALUES(267, 25, '2011-03-01 15:14:48'); INSERT INTO `installs` VALUES(268, 9, '2011-03-01 15:30:58'); INSERT INTO `installs` VALUES(269, 6, '2011-03-01 16:01:07'); INSERT INTO `installs` VALUES(270, 23, '2011-03-01 16:11:23'); INSERT INTO `installs` VALUES(271, 23, '2011-03-01 16:25:25'); INSERT INTO `installs` VALUES(272, 9, '2011-03-01 16:28:25'); INSERT INTO `installs` VALUES(273, 6, '2011-03-01 16:44:16'); INSERT INTO `installs` VALUES(274, 6, '2011-03-01 16:45:04'); INSERT INTO `installs` VALUES(275, 5, '2011-03-01 16:46:18'); INSERT INTO `installs` VALUES(276, 28, '2011-03-01 16:51:09'); INSERT INTO `installs` VALUES(277, 5, '2011-03-01 16:56:40'); INSERT INTO `installs` VALUES(278, 5, '2011-03-01 16:57:09'); INSERT INTO `installs` VALUES(279, 8, '2011-03-01 16:59:12'); INSERT INTO `installs` VALUES(280, 9, '2011-03-01 16:59:45'); INSERT INTO `installs` VALUES(281, 5, '2011-03-01 17:00:03'); INSERT INTO `installs` VALUES(282, 8, '2011-03-01 17:05:51'); INSERT INTO `installs` VALUES(283, 8, '2011-03-01 17:06:11'); INSERT INTO `installs` VALUES(284, 8, '2011-03-01 17:09:33'); INSERT INTO `installs` VALUES(285, 25, '2011-03-01 17:16:37'); INSERT INTO `installs` VALUES(286, 25, '2011-03-01 17:53:07'); INSERT INTO `installs` VALUES(287, 11, '2011-03-01 18:37:13'); INSERT INTO `installs` VALUES(288, 25, '2011-03-01 18:45:49'); INSERT INTO `installs` VALUES(289, 24, '2011-03-01 19:28:05'); INSERT INTO `installs` VALUES(290, 25, '2011-03-01 19:28:43'); INSERT INTO `installs` VALUES(291, 24, '2011-03-01 19:55:47'); INSERT INTO `installs` VALUES(292, 24, '2011-03-01 19:56:19'); INSERT INTO `installs` VALUES(293, 24, '2011-03-01 19:58:30'); INSERT INTO `installs` VALUES(294, 27, '2011-03-01 20:09:40'); INSERT INTO `installs` VALUES(295, 9, '2011-03-01 20:13:55'); INSERT INTO `installs` VALUES(296, 21, '2011-03-01 20:27:27'); INSERT INTO `installs` VALUES(297, 20, '2011-03-01 20:28:42'); INSERT INTO `installs` VALUES(298, 17, '2011-03-01 21:24:23'); INSERT INTO `installs` VALUES(299, 9, '2011-03-01 21:55:46'); INSERT INTO `installs` VALUES(300, 17, '2011-03-01 21:57:20'); INSERT INTO `installs` VALUES(301, 5, '2011-03-01 21:58:01'); INSERT INTO `installs` VALUES(302, 6, '2011-03-01 21:58:11'); INSERT INTO `installs` VALUES(303, 26, '2011-03-01 21:58:25'); INSERT INTO `installs` VALUES(304, 28, '2011-03-01 22:23:23'); INSERT INTO `installs` VALUES(305, 6, '2011-03-02 00:08:03'); INSERT INTO `installs` VALUES(306, 6, '2011-03-02 00:08:03'); INSERT INTO `installs` VALUES(307, 11, '2011-03-02 00:23:33'); INSERT INTO `installs` VALUES(308, 9, '2011-03-02 02:10:47'); INSERT INTO `installs` VALUES(309, 24, '2011-03-02 02:20:29'); INSERT INTO `installs` VALUES(310, 24, '2011-03-02 02:22:15'); INSERT INTO `installs` VALUES(311, 24, '2011-03-02 03:45:31'); INSERT INTO `installs` VALUES(312, 28, '2011-03-02 04:41:46'); INSERT INTO `installs` VALUES(313, 25, '2011-03-02 07:26:48'); INSERT INTO `installs` VALUES(314, 27, '2011-03-02 07:27:20'); INSERT INTO `installs` VALUES(315, 8, '2011-03-02 07:28:20'); INSERT INTO `installs` VALUES(316, 24, '2011-03-02 07:28:52'); INSERT INTO `installs` VALUES(317, 23, '2011-03-02 07:29:24'); INSERT INTO `installs` VALUES(318, 20, '2011-03-02 07:30:55'); INSERT INTO `installs` VALUES(319, 22, '2011-03-02 07:31:46'); INSERT INTO `installs` VALUES(320, 5, '2011-03-02 07:32:14'); INSERT INTO `installs` VALUES(321, 11, '2011-03-02 07:32:43'); INSERT INTO `installs` VALUES(322, 8, '2011-03-02 07:43:14'); INSERT INTO `installs` VALUES(323, 11, '2011-03-02 07:46:49'); INSERT INTO `installs` VALUES(324, 5, '2011-03-02 07:48:09'); INSERT INTO `installs` VALUES(325, 9, '2011-03-02 07:50:54'); INSERT INTO `installs` VALUES(326, 6, '2011-03-02 07:52:20'); INSERT INTO `installs` VALUES(327, 6, '2011-03-02 07:53:53'); INSERT INTO `installs` VALUES(328, 21, '2011-03-02 07:58:48'); INSERT INTO `installs` VALUES(329, 26, '2011-03-02 09:53:50'); INSERT INTO `installs` VALUES(330, 28, '2011-03-02 09:59:52'); INSERT INTO `installs` VALUES(331, 28, '2011-03-02 10:24:43'); INSERT INTO `installs` VALUES(332, 25, '2011-03-02 10:30:49'); INSERT INTO `installs` VALUES(333, 28, '2011-03-02 10:39:08'); INSERT INTO `installs` VALUES(334, 23, '2011-03-02 11:07:34'); INSERT INTO `installs` VALUES(335, 24, '2011-03-02 11:25:28'); INSERT INTO `installs` VALUES(336, 26, '2011-03-02 11:53:19'); INSERT INTO `installs` VALUES(337, 24, '2011-03-02 12:13:37'); INSERT INTO `installs` VALUES(338, 11, '2011-03-02 12:36:03'); INSERT INTO `installs` VALUES(339, 11, '2011-03-02 12:36:08'); INSERT INTO `installs` VALUES(340, 6, '2011-03-02 12:40:29'); INSERT INTO `installs` VALUES(341, 27, '2011-03-02 14:04:39'); INSERT INTO `installs` VALUES(342, 9, '2011-03-02 14:05:36'); INSERT INTO `installs` VALUES(343, 23, '2011-03-02 14:10:29'); INSERT INTO `installs` VALUES(344, 9, '2011-03-02 15:42:16'); INSERT INTO `installs` VALUES(345, 9, '2011-03-02 16:05:17'); INSERT INTO `installs` VALUES(346, 17, '2011-03-02 16:06:38'); INSERT INTO `installs` VALUES(347, 30, '2011-03-02 16:15:34'); INSERT INTO `installs` VALUES(348, 28, '2011-03-02 16:18:40'); INSERT INTO `installs` VALUES(349, 27, '2011-03-02 16:21:39'); INSERT INTO `installs` VALUES(350, 30, '2011-03-02 16:33:34'); INSERT INTO `installs` VALUES(351, 22, '2011-03-02 16:41:36'); INSERT INTO `installs` VALUES(352, 29, '2011-03-02 17:01:57'); INSERT INTO `installs` VALUES(353, 29, '2011-03-02 17:03:02'); INSERT INTO `installs` VALUES(354, 26, '2011-03-02 17:10:29'); INSERT INTO `installs` VALUES(355, 9, '2011-03-02 17:14:44'); INSERT INTO `installs` VALUES(356, 29, '2011-03-02 17:15:33'); INSERT INTO `installs` VALUES(357, 25, '2011-03-02 17:16:20'); INSERT INTO `installs` VALUES(358, 29, '2011-03-02 17:47:37'); INSERT INTO `installs` VALUES(359, 9, '2011-03-02 18:04:33'); INSERT INTO `installs` VALUES(360, 23, '2011-03-02 18:05:25'); INSERT INTO `installs` VALUES(361, 25, '2011-03-02 18:07:59'); INSERT INTO `installs` VALUES(362, 24, '2011-03-02 18:12:44'); INSERT INTO `installs` VALUES(363, 29, '2011-03-02 19:00:16'); INSERT INTO `installs` VALUES(364, 29, '2011-03-02 19:00:58'); INSERT INTO `installs` VALUES(365, 30, '2011-03-02 19:59:09'); INSERT INTO `installs` VALUES(366, 9, '2011-03-02 20:10:00'); INSERT INTO `installs` VALUES(367, 25, '2011-03-02 20:10:01'); INSERT INTO `installs` VALUES(368, 9, '2011-03-02 20:10:30'); INSERT INTO `installs` VALUES(369, 25, '2011-03-02 20:10:30'); INSERT INTO `installs` VALUES(370, 6, '2011-03-02 20:10:31'); INSERT INTO `installs` VALUES(371, 9, '2011-03-02 20:12:03'); INSERT INTO `installs` VALUES(372, 25, '2011-03-02 20:12:04'); INSERT INTO `installs` VALUES(373, 6, '2011-03-02 20:12:04'); INSERT INTO `installs` VALUES(374, 5, '2011-03-02 20:12:06'); INSERT INTO `installs` VALUES(375, 25, '2011-03-02 20:40:42'); INSERT INTO `installs` VALUES(376, 5, '2011-03-02 21:20:38'); INSERT INTO `installs` VALUES(377, 25, '2011-03-02 21:30:45'); INSERT INTO `installs` VALUES(378, 9, '2011-03-02 21:51:58'); INSERT INTO `installs` VALUES(379, 24, '2011-03-02 21:52:58'); INSERT INTO `installs` VALUES(380, 9, '2011-03-02 22:02:43'); INSERT INTO `installs` VALUES(381, 23, '2011-03-02 22:43:17'); INSERT INTO `installs` VALUES(382, 21, '2011-03-02 22:52:04'); INSERT INTO `installs` VALUES(383, 28, '2011-03-02 23:01:18'); INSERT INTO `installs` VALUES(384, 24, '2011-03-02 23:24:00'); INSERT INTO `installs` VALUES(385, 9, '2011-03-03 04:20:09'); INSERT INTO `installs` VALUES(386, 23, '2011-03-03 04:22:41'); INSERT INTO `installs` VALUES(387, 6, '2011-03-03 09:31:07'); INSERT INTO `installs` VALUES(388, 9, '2011-03-03 09:47:53'); INSERT INTO `installs` VALUES(389, 9, '2011-03-03 10:06:00'); INSERT INTO `installs` VALUES(390, 9, '2011-03-03 10:15:19'); INSERT INTO `installs` VALUES(391, 9, '2011-03-03 10:16:56'); INSERT INTO `installs` VALUES(392, 30, '2011-03-03 11:14:06'); INSERT INTO `installs` VALUES(393, 29, '2011-03-03 13:00:00'); INSERT INTO `installs` VALUES(394, 11, '2011-03-03 15:40:48'); INSERT INTO `installs` VALUES(395, 24, '2011-03-03 16:49:49'); INSERT INTO `installs` VALUES(396, 32, '2011-03-03 17:03:41'); INSERT INTO `installs` VALUES(397, 9, '2011-03-03 18:17:35'); INSERT INTO `installs` VALUES(398, 9, '2011-03-03 18:18:11'); INSERT INTO `installs` VALUES(399, 9, '2011-03-03 18:18:44'); INSERT INTO `installs` VALUES(400, 9, '2011-03-03 18:26:42'); INSERT INTO `installs` VALUES(401, 22, '2011-03-03 18:37:39'); INSERT INTO `installs` VALUES(402, 9, '2011-03-03 18:37:50'); INSERT INTO `installs` VALUES(403, 9, '2011-03-03 18:41:15'); INSERT INTO `installs` VALUES(404, 23, '2011-03-03 18:52:45'); INSERT INTO `installs` VALUES(405, 23, '2011-03-03 18:56:24'); INSERT INTO `installs` VALUES(406, 25, '2011-03-03 19:21:40'); INSERT INTO `installs` VALUES(407, 24, '2011-03-03 20:28:10'); INSERT INTO `installs` VALUES(408, 9, '2011-03-03 20:32:20'); INSERT INTO `installs` VALUES(409, 25, '2011-03-03 20:42:03'); INSERT INTO `installs` VALUES(410, 17, '2011-03-03 20:45:20'); INSERT INTO `installs` VALUES(411, 6, '2011-03-03 22:24:28'); INSERT INTO `installs` VALUES(412, 32, '2011-03-03 22:41:16'); INSERT INTO `installs` VALUES(413, 23, '2011-03-03 23:00:42'); INSERT INTO `installs` VALUES(414, 6, '2011-03-03 23:03:00'); INSERT INTO `installs` VALUES(415, 9, '2011-03-03 23:10:42'); INSERT INTO `installs` VALUES(416, 25, '2011-03-03 23:11:41'); INSERT INTO `installs` VALUES(417, 25, '2011-03-03 23:12:05'); INSERT INTO `installs` VALUES(418, 32, '2011-03-03 23:13:24'); INSERT INTO `installs` VALUES(419, 23, '2011-03-03 23:16:16'); INSERT INTO `installs` VALUES(420, 5, '2011-03-03 23:16:37'); INSERT INTO `installs` VALUES(421, 5, '2011-03-03 23:16:41'); INSERT INTO `installs` VALUES(422, 5, '2011-03-03 23:51:56'); INSERT INTO `installs` VALUES(423, 5, '2011-03-04 00:07:45'); INSERT INTO `installs` VALUES(424, 25, '2011-03-04 00:12:40'); INSERT INTO `installs` VALUES(425, 6, '2011-03-04 00:29:14'); INSERT INTO `installs` VALUES(426, 25, '2011-03-04 01:46:47'); INSERT INTO `installs` VALUES(427, 8, '2011-03-04 02:02:10'); INSERT INTO `installs` VALUES(428, 25, '2011-03-04 02:10:23'); INSERT INTO `installs` VALUES(429, 27, '2011-03-04 02:10:54'); INSERT INTO `installs` VALUES(430, 27, '2011-03-04 02:11:37'); INSERT INTO `installs` VALUES(431, 9, '2011-03-04 02:13:41'); INSERT INTO `installs` VALUES(432, 27, '2011-03-04 02:27:35'); INSERT INTO `installs` VALUES(433, 27, '2011-03-04 02:27:54'); INSERT INTO `installs` VALUES(434, 27, '2011-03-04 02:28:12'); INSERT INTO `installs` VALUES(435, 32, '2011-03-04 02:35:57'); INSERT INTO `installs` VALUES(436, 33, '2011-03-04 02:36:25'); INSERT INTO `installs` VALUES(437, 25, '2011-03-04 02:37:55'); INSERT INTO `installs` VALUES(438, 8, '2011-03-04 02:39:11'); INSERT INTO `installs` VALUES(439, 28, '2011-03-04 02:39:31'); INSERT INTO `installs` VALUES(440, 22, '2011-03-04 02:40:02'); INSERT INTO `installs` VALUES(441, 6, '2011-03-04 02:40:24'); INSERT INTO `installs` VALUES(442, 9, '2011-03-04 02:41:02'); INSERT INTO `installs` VALUES(443, 9, '2011-03-04 02:41:23'); INSERT INTO `installs` VALUES(444, 9, '2011-03-04 02:43:29'); INSERT INTO `installs` VALUES(445, 17, '2011-03-04 02:44:37'); INSERT INTO `installs` VALUES(446, 9, '2011-03-04 02:46:44'); INSERT INTO `installs` VALUES(447, 9, '2011-03-04 02:47:05'); INSERT INTO `installs` VALUES(448, 9, '2011-03-04 02:47:48'); INSERT INTO `installs` VALUES(449, 9, '2011-03-04 02:48:09'); INSERT INTO `installs` VALUES(450, 9, '2011-03-04 02:48:57'); INSERT INTO `installs` VALUES(451, 9, '2011-03-04 02:48:58'); INSERT INTO `installs` VALUES(452, 9, '2011-03-04 02:51:15'); INSERT INTO `installs` VALUES(453, 9, '2011-03-04 02:51:16'); INSERT INTO `installs` VALUES(454, 9, '2011-03-04 02:52:03'); INSERT INTO `installs` VALUES(455, 9, '2011-03-04 02:52:04'); INSERT INTO `installs` VALUES(456, 9, '2011-03-04 02:52:05'); INSERT INTO `installs` VALUES(457, 9, '2011-03-04 02:56:53'); INSERT INTO `installs` VALUES(458, 9, '2011-03-04 02:57:20'); INSERT INTO `installs` VALUES(459, 9, '2011-03-04 02:59:41'); INSERT INTO `installs` VALUES(460, 9, '2011-03-04 02:59:41'); INSERT INTO `installs` VALUES(461, 9, '2011-03-04 02:59:43'); INSERT INTO `installs` VALUES(462, 9, '2011-03-04 02:59:44'); INSERT INTO `installs` VALUES(463, 9, '2011-03-04 02:59:44'); INSERT INTO `installs` VALUES(464, 9, '2011-03-04 03:00:45'); INSERT INTO `installs` VALUES(465, 9, '2011-03-04 03:00:46'); INSERT INTO `installs` VALUES(466, 9, '2011-03-04 03:00:47'); INSERT INTO `installs` VALUES(467, 9, '2011-03-04 03:00:48'); INSERT INTO `installs` VALUES(468, 9, '2011-03-04 03:00:49'); INSERT INTO `installs` VALUES(469, 9, '2011-03-04 03:00:49'); INSERT INTO `installs` VALUES(470, 9, '2011-03-04 03:01:23'); INSERT INTO `installs` VALUES(471, 9, '2011-03-04 03:01:25'); INSERT INTO `installs` VALUES(472, 9, '2011-03-04 03:01:26'); INSERT INTO `installs` VALUES(473, 9, '2011-03-04 03:01:27'); INSERT INTO `installs` VALUES(474, 9, '2011-03-04 03:01:28'); INSERT INTO `installs` VALUES(475, 9, '2011-03-04 03:01:28'); INSERT INTO `installs` VALUES(476, 9, '2011-03-04 03:05:12'); INSERT INTO `installs` VALUES(477, 9, '2011-03-04 03:05:13'); INSERT INTO `installs` VALUES(478, 9, '2011-03-04 03:05:15'); INSERT INTO `installs` VALUES(479, 9, '2011-03-04 03:05:15'); INSERT INTO `installs` VALUES(480, 9, '2011-03-04 03:05:16'); INSERT INTO `installs` VALUES(481, 9, '2011-03-04 03:05:17'); INSERT INTO `installs` VALUES(482, 9, '2011-03-04 03:07:23'); INSERT INTO `installs` VALUES(483, 9, '2011-03-04 03:07:24'); INSERT INTO `installs` VALUES(484, 9, '2011-03-04 03:07:25'); INSERT INTO `installs` VALUES(485, 9, '2011-03-04 03:07:26'); INSERT INTO `installs` VALUES(486, 9, '2011-03-04 03:07:27'); INSERT INTO `installs` VALUES(487, 9, '2011-03-04 03:07:28'); INSERT INTO `installs` VALUES(488, 8, '2011-03-04 03:12:05'); INSERT INTO `installs` VALUES(489, 9, '2011-03-04 03:28:54'); INSERT INTO `installs` VALUES(490, 9, '2011-03-04 03:28:55'); INSERT INTO `installs` VALUES(491, 9, '2011-03-04 03:28:57'); INSERT INTO `installs` VALUES(492, 9, '2011-03-04 03:28:58'); INSERT INTO `installs` VALUES(493, 9, '2011-03-04 03:28:59'); INSERT INTO `installs` VALUES(494, 9, '2011-03-04 03:28:59'); INSERT INTO `installs` VALUES(495, 9, '2011-03-04 03:29:00'); INSERT INTO `installs` VALUES(496, 9, '2011-03-04 03:29:01'); INSERT INTO `installs` VALUES(497, 9, '2011-03-04 03:29:02'); INSERT INTO `installs` VALUES(498, 9, '2011-03-04 03:29:03'); INSERT INTO `installs` VALUES(499, 9, '2011-03-04 03:29:05'); INSERT INTO `installs` VALUES(500, 9, '2011-03-04 03:29:06'); INSERT INTO `installs` VALUES(501, 9, '2011-03-04 03:29:07'); INSERT INTO `installs` VALUES(502, 9, '2011-03-04 03:29:08'); INSERT INTO `installs` VALUES(503, 9, '2011-03-04 03:29:09'); INSERT INTO `installs` VALUES(504, 9, '2011-03-04 03:29:10'); INSERT INTO `installs` VALUES(505, 9, '2011-03-04 03:30:20'); INSERT INTO `installs` VALUES(506, 9, '2011-03-04 03:30:21'); INSERT INTO `installs` VALUES(507, 9, '2011-03-04 03:30:22'); INSERT INTO `installs` VALUES(508, 9, '2011-03-04 03:30:23'); INSERT INTO `installs` VALUES(509, 9, '2011-03-04 03:30:24'); INSERT INTO `installs` VALUES(510, 9, '2011-03-04 03:30:25'); INSERT INTO `installs` VALUES(511, 9, '2011-03-04 03:30:26'); INSERT INTO `installs` VALUES(512, 9, '2011-03-04 03:30:27'); INSERT INTO `installs` VALUES(513, 9, '2011-03-04 03:30:28'); INSERT INTO `installs` VALUES(514, 9, '2011-03-04 03:30:29'); INSERT INTO `installs` VALUES(515, 9, '2011-03-04 03:30:30'); INSERT INTO `installs` VALUES(516, 9, '2011-03-04 03:30:32'); INSERT INTO `installs` VALUES(517, 9, '2011-03-04 03:30:33'); INSERT INTO `installs` VALUES(518, 9, '2011-03-04 03:30:34'); INSERT INTO `installs` VALUES(519, 9, '2011-03-04 03:30:36'); INSERT INTO `installs` VALUES(520, 9, '2011-03-04 03:30:36'); INSERT INTO `installs` VALUES(521, 9, '2011-03-04 03:30:41'); INSERT INTO `installs` VALUES(522, 9, '2011-03-04 03:30:43'); INSERT INTO `installs` VALUES(523, 9, '2011-03-04 03:30:44'); INSERT INTO `installs` VALUES(524, 9, '2011-03-04 03:30:45'); INSERT INTO `installs` VALUES(525, 9, '2011-03-04 03:30:46'); INSERT INTO `installs` VALUES(526, 9, '2011-03-04 03:30:46'); INSERT INTO `installs` VALUES(527, 9, '2011-03-04 03:30:47'); INSERT INTO `installs` VALUES(528, 9, '2011-03-04 03:30:48'); INSERT INTO `installs` VALUES(529, 9, '2011-03-04 03:30:49'); INSERT INTO `installs` VALUES(530, 9, '2011-03-04 03:30:51'); INSERT INTO `installs` VALUES(531, 9, '2011-03-04 03:30:52'); INSERT INTO `installs` VALUES(532, 9, '2011-03-04 03:30:53'); INSERT INTO `installs` VALUES(533, 9, '2011-03-04 03:30:54'); INSERT INTO `installs` VALUES(534, 9, '2011-03-04 03:30:55'); INSERT INTO `installs` VALUES(535, 9, '2011-03-04 03:30:56'); INSERT INTO `installs` VALUES(536, 9, '2011-03-04 03:30:56'); INSERT INTO `installs` VALUES(537, 9, '2011-03-04 03:31:52'); INSERT INTO `installs` VALUES(538, 9, '2011-03-04 03:31:52'); INSERT INTO `installs` VALUES(539, 9, '2011-03-04 03:31:53'); INSERT INTO `installs` VALUES(540, 9, '2011-03-04 03:31:54'); INSERT INTO `installs` VALUES(541, 9, '2011-03-04 03:31:55'); INSERT INTO `installs` VALUES(542, 9, '2011-03-04 03:31:55'); INSERT INTO `installs` VALUES(543, 9, '2011-03-04 03:31:56'); INSERT INTO `installs` VALUES(544, 9, '2011-03-04 03:31:57'); INSERT INTO `installs` VALUES(545, 9, '2011-03-04 03:31:58'); INSERT INTO `installs` VALUES(546, 9, '2011-03-04 03:31:59'); INSERT INTO `installs` VALUES(547, 9, '2011-03-04 03:32:00'); INSERT INTO `installs` VALUES(548, 9, '2011-03-04 03:32:01'); INSERT INTO `installs` VALUES(549, 9, '2011-03-04 03:32:02'); INSERT INTO `installs` VALUES(550, 9, '2011-03-04 03:32:03'); INSERT INTO `installs` VALUES(551, 9, '2011-03-04 03:32:04'); INSERT INTO `installs` VALUES(552, 9, '2011-03-04 03:32:04'); INSERT INTO `installs` VALUES(553, 24, '2011-03-04 03:32:12'); INSERT INTO `installs` VALUES(554, 9, '2011-03-04 03:34:44'); INSERT INTO `installs` VALUES(555, 9, '2011-03-04 03:34:45'); INSERT INTO `installs` VALUES(556, 9, '2011-03-04 03:34:47'); INSERT INTO `installs` VALUES(557, 9, '2011-03-04 03:34:48'); INSERT INTO `installs` VALUES(558, 9, '2011-03-04 03:34:49'); INSERT INTO `installs` VALUES(559, 9, '2011-03-04 03:34:49'); INSERT INTO `installs` VALUES(560, 9, '2011-03-04 03:34:50'); INSERT INTO `installs` VALUES(561, 9, '2011-03-04 03:34:51'); INSERT INTO `installs` VALUES(562, 9, '2011-03-04 03:34:52'); INSERT INTO `installs` VALUES(563, 9, '2011-03-04 03:34:53'); INSERT INTO `installs` VALUES(564, 9, '2011-03-04 03:34:54'); INSERT INTO `installs` VALUES(565, 9, '2011-03-04 03:34:55'); INSERT INTO `installs` VALUES(566, 9, '2011-03-04 03:34:57'); INSERT INTO `installs` VALUES(567, 9, '2011-03-04 03:34:57'); INSERT INTO `installs` VALUES(568, 9, '2011-03-04 03:34:58'); INSERT INTO `installs` VALUES(569, 9, '2011-03-04 03:34:59'); INSERT INTO `installs` VALUES(570, 9, '2011-03-04 03:39:46'); INSERT INTO `installs` VALUES(571, 9, '2011-03-04 03:39:47'); INSERT INTO `installs` VALUES(572, 9, '2011-03-04 03:39:48'); INSERT INTO `installs` VALUES(573, 9, '2011-03-04 03:39:49'); INSERT INTO `installs` VALUES(574, 9, '2011-03-04 03:41:20'); INSERT INTO `installs` VALUES(575, 9, '2011-03-04 03:41:59'); INSERT INTO `installs` VALUES(576, 9, '2011-03-04 03:42:16'); INSERT INTO `installs` VALUES(577, 9, '2011-03-04 03:42:17'); INSERT INTO `installs` VALUES(578, 9, '2011-03-04 03:42:18'); INSERT INTO `installs` VALUES(579, 9, '2011-03-04 03:42:19'); INSERT INTO `installs` VALUES(580, 9, '2011-03-04 03:42:20'); INSERT INTO `installs` VALUES(581, 9, '2011-03-04 03:42:21'); INSERT INTO `installs` VALUES(582, 9, '2011-03-04 03:43:11'); INSERT INTO `installs` VALUES(583, 9, '2011-03-04 03:43:12'); INSERT INTO `installs` VALUES(584, 9, '2011-03-04 03:43:13'); INSERT INTO `installs` VALUES(585, 9, '2011-03-04 03:43:14'); INSERT INTO `installs` VALUES(586, 9, '2011-03-04 03:43:16'); INSERT INTO `installs` VALUES(587, 9, '2011-03-04 03:43:17'); INSERT INTO `installs` VALUES(588, 23, '2011-03-04 03:46:06'); INSERT INTO `installs` VALUES(589, 23, '2011-03-04 03:50:45'); INSERT INTO `installs` VALUES(590, 24, '2011-03-04 03:52:31'); INSERT INTO `installs` VALUES(591, 25, '2011-03-04 03:53:49'); INSERT INTO `installs` VALUES(592, 29, '2011-03-04 03:59:20'); INSERT INTO `installs` VALUES(593, 8, '2011-03-04 04:19:17'); INSERT INTO `installs` VALUES(594, 32, '2011-03-04 04:35:09'); INSERT INTO `installs` VALUES(595, 6, '2011-03-04 04:59:04'); INSERT INTO `installs` VALUES(596, 6, '2011-03-04 05:02:56'); INSERT INTO `installs` VALUES(597, 6, '2011-03-04 06:11:48'); INSERT INTO `installs` VALUES(598, 28, '2011-03-04 06:12:28'); INSERT INTO `installs` VALUES(599, 22, '2011-03-04 08:32:38'); INSERT INTO `installs` VALUES(600, 9, '2011-03-04 08:33:44'); INSERT INTO `installs` VALUES(601, 9, '2011-03-04 09:28:20'); INSERT INTO `installs` VALUES(602, 9, '2011-03-04 09:33:38'); INSERT INTO `installs` VALUES(603, 32, '2011-03-04 09:33:56'); INSERT INTO `installs` VALUES(604, 32, '2011-03-04 09:58:06'); INSERT INTO `installs` VALUES(605, 32, '2011-03-04 10:21:47'); INSERT INTO `installs` VALUES(606, 17, '2011-03-04 10:45:20'); INSERT INTO `installs` VALUES(607, 32, '2011-03-04 11:01:41'); INSERT INTO `installs` VALUES(608, 23, '2011-03-04 11:02:51'); INSERT INTO `installs` VALUES(609, 22, '2011-03-04 11:04:04'); INSERT INTO `installs` VALUES(610, 17, '2011-03-04 14:24:37'); INSERT INTO `installs` VALUES(611, 9, '2011-03-04 14:56:23'); INSERT INTO `installs` VALUES(612, 22, '2011-03-04 14:57:14'); INSERT INTO `installs` VALUES(613, 6, '2011-03-04 15:01:13'); INSERT INTO `installs` VALUES(614, 32, '2011-03-04 16:44:53'); INSERT INTO `installs` VALUES(615, 32, '2011-03-04 16:46:47'); INSERT INTO `installs` VALUES(616, 32, '2011-03-04 16:47:11'); INSERT INTO `installs` VALUES(617, 9, '2011-03-04 17:03:08'); INSERT INTO `installs` VALUES(618, 11, '2011-03-04 17:04:27'); INSERT INTO `installs` VALUES(619, 6, '2011-03-04 17:06:38'); INSERT INTO `installs` VALUES(620, 23, '2011-03-04 17:10:19'); INSERT INTO `installs` VALUES(621, 24, '2011-03-04 17:10:31'); INSERT INTO `installs` VALUES(622, 25, '2011-03-04 17:10:37'); INSERT INTO `installs` VALUES(623, 26, '2011-03-04 17:10:43'); INSERT INTO `installs` VALUES(624, 27, '2011-03-04 17:10:50'); INSERT INTO `installs` VALUES(625, 28, '2011-03-04 17:10:56'); INSERT INTO `installs` VALUES(626, 34, '2011-03-04 17:11:34'); INSERT INTO `installs` VALUES(627, 9, '2011-03-04 17:59:42'); INSERT INTO `installs` VALUES(628, 9, '2011-03-04 18:00:37'); INSERT INTO `installs` VALUES(629, 9, '2011-03-04 18:10:03'); INSERT INTO `installs` VALUES(630, 9, '2011-03-04 18:13:02'); INSERT INTO `installs` VALUES(631, 9, '2011-03-04 18:16:21'); INSERT INTO `installs` VALUES(632, 34, '2011-03-04 18:17:29'); INSERT INTO `installs` VALUES(633, 9, '2011-03-04 18:23:14'); INSERT INTO `installs` VALUES(634, 9, '2011-03-04 18:50:30'); INSERT INTO `installs` VALUES(635, 9, '2011-03-04 18:50:54'); INSERT INTO `installs` VALUES(636, 9, '2011-03-04 18:52:04'); INSERT INTO `installs` VALUES(637, 9, '2011-03-04 18:55:07'); INSERT INTO `installs` VALUES(638, 9, '2011-03-04 19:04:49'); INSERT INTO `installs` VALUES(639, 9, '2011-03-04 19:05:43'); INSERT INTO `installs` VALUES(640, 9, '2011-03-04 19:07:12'); INSERT INTO `installs` VALUES(641, 9, '2011-03-04 19:09:38'); INSERT INTO `installs` VALUES(642, 9, '2011-03-04 19:10:09'); INSERT INTO `installs` VALUES(643, 9, '2011-03-04 19:11:36'); INSERT INTO `installs` VALUES(644, 9, '2011-03-04 19:53:16'); INSERT INTO `installs` VALUES(645, 9, '2011-03-04 19:56:53'); INSERT INTO `installs` VALUES(646, 9, '2011-03-04 20:04:40'); INSERT INTO `installs` VALUES(647, 9, '2011-03-04 20:05:29'); INSERT INTO `installs` VALUES(648, 9, '2011-03-04 20:05:35'); INSERT INTO `installs` VALUES(649, 9, '2011-03-04 20:23:42'); INSERT INTO `installs` VALUES(650, 9, '2011-03-04 20:23:58'); INSERT INTO `installs` VALUES(651, 9, '2011-03-04 20:24:54'); INSERT INTO `installs` VALUES(652, 9, '2011-03-04 20:24:59'); INSERT INTO `installs` VALUES(653, 9, '2011-03-04 20:25:55'); INSERT INTO `installs` VALUES(654, 9, '2011-03-04 20:26:16'); INSERT INTO `installs` VALUES(655, 34, '2011-03-04 20:32:35'); INSERT INTO `installs` VALUES(656, 9, '2011-03-04 20:49:02'); INSERT INTO `installs` VALUES(657, 9, '2011-03-04 20:53:05'); INSERT INTO `installs` VALUES(658, 25, '2011-03-04 20:53:17'); INSERT INTO `installs` VALUES(659, 35, '2011-03-04 21:18:21'); INSERT INTO `installs` VALUES(660, 11, '2011-03-04 21:26:06'); INSERT INTO `installs` VALUES(661, 33, '2011-03-04 21:57:12'); INSERT INTO `installs` VALUES(662, 9, '2011-03-04 22:04:00'); INSERT INTO `installs` VALUES(663, 32, '2011-03-04 22:15:12'); INSERT INTO `installs` VALUES(664, 8, '2011-03-04 22:25:43'); INSERT INTO `installs` VALUES(665, 21, '2011-03-04 22:47:12'); INSERT INTO `installs` VALUES(666, 5, '2011-03-04 22:47:55'); INSERT INTO `installs` VALUES(667, 23, '2011-03-04 23:12:47'); INSERT INTO `installs` VALUES(668, 9, '2011-03-04 23:14:38'); INSERT INTO `installs` VALUES(669, 9, '2011-03-04 23:14:48'); INSERT INTO `installs` VALUES(670, 32, '2011-03-04 23:36:53'); INSERT INTO `installs` VALUES(671, 34, '2011-03-04 23:42:27'); INSERT INTO `installs` VALUES(672, 29, '2011-03-05 00:00:54'); INSERT INTO `installs` VALUES(673, 8, '2011-03-05 00:42:08'); INSERT INTO `installs` VALUES(674, 9, '2011-03-05 03:23:29'); INSERT INTO `installs` VALUES(675, 22, '2011-03-05 03:24:08'); INSERT INTO `installs` VALUES(676, 30, '2011-03-05 03:24:21'); INSERT INTO `installs` VALUES(677, 17, '2011-03-05 03:24:33'); INSERT INTO `installs` VALUES(678, 26, '2011-03-05 03:24:44'); INSERT INTO `installs` VALUES(679, 22, '2011-03-05 04:30:42'); INSERT INTO `installs` VALUES(680, 29, '2011-03-05 05:31:13'); INSERT INTO `installs` VALUES(681, 22, '2011-03-05 05:34:13'); INSERT INTO `installs` VALUES(682, 5, '2011-03-05 05:41:48'); INSERT INTO `installs` VALUES(683, 8, '2011-03-05 05:47:23'); INSERT INTO `installs` VALUES(684, 34, '2011-03-05 05:49:14'); INSERT INTO `installs` VALUES(685, 29, '2011-03-05 06:07:56'); INSERT INTO `installs` VALUES(686, 34, '2011-03-05 10:15:34'); INSERT INTO `installs` VALUES(687, 26, '2011-03-05 10:19:09'); INSERT INTO `installs` VALUES(688, 35, '2011-03-05 10:34:06'); INSERT INTO `installs` VALUES(689, 23, '2011-03-05 14:18:45'); INSERT INTO `installs` VALUES(690, 23, '2011-03-05 14:50:28'); INSERT INTO `installs` VALUES(691, 23, '2011-03-05 16:11:56'); INSERT INTO `installs` VALUES(692, 9, '2011-03-05 17:38:59'); INSERT INTO `installs` VALUES(693, 27, '2011-03-05 17:55:42'); INSERT INTO `installs` VALUES(694, 32, '2011-03-05 17:58:43'); INSERT INTO `installs` VALUES(695, 23, '2011-03-05 18:16:55'); INSERT INTO `installs` VALUES(696, 32, '2011-03-05 19:52:52'); INSERT INTO `installs` VALUES(697, 37, '2011-03-05 20:26:39'); INSERT INTO `installs` VALUES(698, 37, '2011-03-05 20:33:10'); INSERT INTO `installs` VALUES(699, 37, '2011-03-05 20:35:21'); INSERT INTO `installs` VALUES(700, 37, '2011-03-05 20:37:56'); INSERT INTO `installs` VALUES(701, 37, '2011-03-05 20:40:30'); INSERT INTO `installs` VALUES(702, 32, '2011-03-05 21:17:14'); INSERT INTO `installs` VALUES(703, 32, '2011-03-05 21:17:26'); INSERT INTO `installs` VALUES(704, 30, '2011-03-05 21:25:05'); INSERT INTO `installs` VALUES(705, 26, '2011-03-05 21:50:04'); INSERT INTO `installs` VALUES(706, 23, '2011-03-05 21:50:05'); INSERT INTO `installs` VALUES(707, 32, '2011-03-05 22:25:10'); INSERT INTO `installs` VALUES(708, 23, '2011-03-05 22:42:19'); INSERT INTO `installs` VALUES(709, 34, '2011-03-06 01:23:27'); INSERT INTO `installs` VALUES(710, 32, '2011-03-06 01:40:03'); INSERT INTO `installs` VALUES(711, 32, '2011-03-06 01:41:57'); INSERT INTO `installs` VALUES(712, 32, '2011-03-06 01:45:32'); INSERT INTO `installs` VALUES(713, 30, '2011-03-06 01:56:34'); INSERT INTO `installs` VALUES(714, 29, '2011-03-06 04:23:48'); INSERT INTO `installs` VALUES(715, 37, '2011-03-06 05:21:58'); INSERT INTO `installs` VALUES(716, 37, '2011-03-06 05:22:03'); INSERT INTO `installs` VALUES(717, 37, '2011-03-06 05:22:03'); INSERT INTO `installs` VALUES(718, 37, '2011-03-06 05:22:04'); INSERT INTO `installs` VALUES(719, 37, '2011-03-06 05:22:05'); INSERT INTO `installs` VALUES(720, 37, '2011-03-06 05:22:06'); INSERT INTO `installs` VALUES(721, 37, '2011-03-06 05:22:07'); INSERT INTO `installs` VALUES(722, 24, '2011-03-06 06:42:52'); INSERT INTO `installs` VALUES(723, 24, '2011-03-06 07:59:57'); INSERT INTO `installs` VALUES(724, 37, '2011-03-06 09:28:32'); INSERT INTO `installs` VALUES(725, 34, '2011-03-06 12:28:54'); INSERT INTO `installs` VALUES(726, 22, '2011-03-06 12:29:05'); INSERT INTO `installs` VALUES(727, 11, '2011-03-06 12:30:11'); INSERT INTO `installs` VALUES(728, 11, '2011-03-06 12:34:46'); INSERT INTO `installs` VALUES(729, 24, '2011-03-06 12:35:38'); INSERT INTO `installs` VALUES(730, 25, '2011-03-06 12:35:47'); INSERT INTO `installs` VALUES(731, 29, '2011-03-06 12:36:43'); INSERT INTO `installs` VALUES(732, 26, '2011-03-06 12:36:56'); INSERT INTO `installs` VALUES(733, 30, '2011-03-06 12:37:44'); INSERT INTO `installs` VALUES(734, 30, '2011-03-06 12:40:14'); INSERT INTO `installs` VALUES(735, 6, '2011-03-06 13:11:28'); INSERT INTO `installs` VALUES(736, 29, '2011-03-06 14:09:51'); INSERT INTO `installs` VALUES(737, 32, '2011-03-06 14:12:32'); INSERT INTO `installs` VALUES(738, 32, '2011-03-06 21:30:40'); INSERT INTO `installs` VALUES(739, 23, '2011-03-06 21:37:00'); INSERT INTO `installs` VALUES(740, 32, '2011-03-06 21:41:46'); INSERT INTO `installs` VALUES(741, 32, '2011-03-06 21:43:38'); INSERT INTO `installs` VALUES(742, 33, '2011-03-06 21:07:33'); INSERT INTO `installs` VALUES(743, 33, '2011-03-06 21:07:34'); INSERT INTO `installs` VALUES(744, 33, '2011-03-23 22:56:23'); INSERT INTO `installs` VALUES(745, 38, '2011-03-23 22:57:11'); INSERT INTO `installs` VALUES(746, 5, '2011-03-23 23:00:22'); INSERT INTO `installs` VALUES(747, 5, '2011-03-23 23:01:23'); INSERT INTO `installs` VALUES(748, 38, '2011-04-30 13:35:53'); INSERT INTO `installs` VALUES(749, 5, '2011-04-30 13:37:40'); INSERT INTO `installs` VALUES(750, 5, '2011-04-30 13:47:51'); INSERT INTO `installs` VALUES(751, 5, '2011-04-30 13:47:52'); INSERT INTO `installs` VALUES(752, 38, '2011-04-30 13:48:03'); INSERT INTO `installs` VALUES(753, 5, '2011-04-30 13:48:38'); INSERT INTO `installs` VALUES(754, 5, '2011-04-30 14:14:40'); INSERT INTO `installs` VALUES(755, 5, '2011-04-30 14:14:44'); INSERT INTO `installs` VALUES(756, 5, '2011-04-30 14:14:45'); INSERT INTO `installs` VALUES(757, 5, '2011-04-30 14:15:08'); INSERT INTO `installs` VALUES(758, 5, '2011-04-30 15:32:39'); INSERT INTO `installs` VALUES(759, 5, '2011-04-30 16:17:35'); INSERT INTO `installs` VALUES(760, 5, '2011-04-30 17:08:22'); -- -------------------------------------------------------- -- -- Table structure for table `ratings` -- CREATE TABLE `ratings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `spark_id` int(11) NOT NULL, `contributor_id` int(11) NOT NULL, `rating` varchar(16) CHARACTER SET latin1 NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`), KEY `idx_sparks_id` (`spark_id`), KEY `ids_rating` (`rating`), KEY `contributor_id` (`contributor_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `ratings` -- INSERT INTO `ratings` VALUES(2, 38, 2, '2', '2011-05-01 14:24:22'); -- -------------------------------------------------------- -- -- Table structure for table `rating_names` -- CREATE TABLE `rating_names` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(16) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `rating_names` -- INSERT INTO `rating_names` VALUES(1, 'hate'); INSERT INTO `rating_names` VALUES(2, 'like'); INSERT INTO `rating_names` VALUES(3, 'love'); -- -------------------------------------------------------- -- -- Table structure for table `sparks` -- CREATE TABLE `sparks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `contributor_id` int(11) NOT NULL, `name` varchar(40) CHARACTER SET latin1 NOT NULL, `summary` varchar(250) CHARACTER SET latin1 NOT NULL, `description` text CHARACTER SET latin1 NOT NULL, `repository_type` enum('svn','git','hg') CHARACTER SET latin1 NOT NULL, `base_location` varchar(150) CHARACTER SET latin1 NOT NULL, `website` varchar(150) CHARACTER SET latin1 DEFAULT NULL, `is_unsupported` tinyint(1) NOT NULL, `is_approved` tinyint(1) NOT NULL, `is_featured` tinyint(1) NOT NULL, `is_official` tinyint(1) NOT NULL, `is_browse` tinyint(1) NOT NULL DEFAULT '1', `fork_id` int(9) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, PRIMARY KEY (`id`), KEY `contributor_id` (`contributor_id`), KEY `idx_spark_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=42 ; -- -- Dumping data for table `sparks` -- INSERT INTO `sparks` VALUES(5, 2, 'robot-helper', 'Robot Helper', 'For dealing w/ spam!!', 'git', 'git://github.com/katzgrau/ci-robot-helper.git', 'https://github.com/katzgrau/ci-robot-helper', 0, 0, 0, 0, 1, 0, '2011-02-05 16:53:40', '2011-02-05 16:53:40'); INSERT INTO `sparks` VALUES(6, 3, 'gravatar_helper', 'Gravatar Helper', 'Easily add gravatar to your site with a few convenient helpers', 'git', 'https://github.com/seejohnrun/gravatar_helper.git', NULL, 0, 0, 1, 0, 1, 0, '2011-02-05 17:43:28', '2011-02-05 17:43:28'); INSERT INTO `sparks` VALUES(8, 2, 'markdown', 'A markdown helper for easy parsing of markdown', '# Markdown\n\nA spark for PHP''s implementation of a markdown parser at [http://michelf.com/projects/php-markdown/](http://michelf.com/projects/php-markdown/)\n\n## Usage\n\nIt''s simple! Just:\n\n $this->load->spark(''markdown'');\n $html = parse_markdown($markdown);\n\n## Bugs\n\nSend bugs to <EMAIL>', 'hg', 'https://bitbucket.org/katzgrau/ci-spark-markdown', NULL, 0, 0, 1, 0, 1, 0, '2011-02-11 03:38:03', '2011-02-11 03:38:03'); INSERT INTO `sparks` VALUES(9, 2, 'example-spark', 'An example spark to install and use as a model for building sparks', '# example-spark\n\nI wrote this spark as an example of how to write/package a spark, and also for use in a spark installation tutorial.\n\n## Usage\n\n $this->spark->load(''example-spark/1.0''); # We specify the version for now. This might change\n $this->example_spark->printHello(); # echo''s "Hello from the example spark!"\n\n## Bug Reports\n\n[<EMAIL>.com](mailto:<EMAIL>)\n', 'hg', 'https://bitbucket.org/katzgrau/example-spark', NULL, 0, 0, 0, 1, 1, 0, '2011-02-17 05:21:24', '2011-02-17 05:21:24'); INSERT INTO `sparks` VALUES(11, 5, 'base_model', 'This is an extender class for CI Model''s.', 'BaseModel is a Ruby on Rails like class for PHP that you use to extend the base CI_Model functionality in CodeIgniter. Currently, this is being built using CodeIgniter 2, but I''m sure that it''s backwards compatible - I''ll have to verify that later though.', 'git', 'https://github.com/beaufrusetta/base_model.git', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 18:37:08', '2011-02-25 18:37:08'); INSERT INTO `sparks` VALUES(12, 5, 'base_controller', 'This is an extender class for CI Controller''s.', 'I''ll write more later.', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:15:11', '2011-02-25 23:15:11'); INSERT INTO `sparks` VALUES(13, 5, 'base_social', 'Wrapper library for connecting to all the world''s most awesome social networks.', 'Wrapper library for connecting to all the world''s most awesome social networks.', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:16:47', '2011-02-25 23:16:47'); INSERT INTO `sparks` VALUES(14, 5, 'base_sitemap', 'Library to create XML sitemaps for your site.', 'Library to create XML sitemaps for your site.', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:18:02', '2011-02-25 23:18:02'); INSERT INTO `sparks` VALUES(15, 5, 'base_rating', 'Used to easily integrate rating on ANY CI model.', 'Used to easily integrate rating on ANY CI model', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:18:45', '2011-02-25 23:18:45'); INSERT INTO `sparks` VALUES(16, 5, 'base_comment', 'Used to easily integrate commenting on ANY CI model.', 'Used to easily integrate commenting on ANY CI model.', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:19:05', '2011-02-25 23:19:05'); INSERT INTO `sparks` VALUES(17, 5, 'base_geo', 'Geolocating library for CI', 'Geolocating library for CI', 'git', 'https://github.com/beaufrusetta/base_geo', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:19:20', '2011-02-25 23:19:20'); INSERT INTO `sparks` VALUES(18, 5, 'base_attachment', 'Attachment handling class for ANY CI model', 'Attachment handling class for ANY CI model', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:19:37', '2011-02-25 23:19:37'); INSERT INTO `sparks` VALUES(19, 5, 'base_merchant', 'Payment processing libraries for CI', 'Payment processing libraries for CI', 'git', 'http://placeholder.com', NULL, 0, 0, 0, 0, 1, 0, '2011-02-25 23:20:02', '2011-02-25 23:20:02'); INSERT INTO `sparks` VALUES(20, 6, 'cj-soap', 'SOAP access to Commission Junctions API', 'Access Commission Junctions (cj.com) webservices via SOAP API.', 'git', 'git://github.com/mdpauley/commission-junction-api.git', NULL, 0, 0, 0, 0, 1, 0, '2011-02-26 03:43:07', '2011-02-26 03:43:07'); INSERT INTO `sparks` VALUES(21, 10, 'qa_spark_birdseed', 'Makin'' sure this thing works', 'Will be deleted later', 'hg', 'https://bitbucket.org/katzgrau/qa_spark_birdseed', NULL, 0, 0, 0, 0, 1, 0, '2011-02-26 18:57:28', '2011-02-26 18:57:28'); INSERT INTO `sparks` VALUES(22, 11, 'amazon-ses', 'A CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES)', 'A CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES). This library was designed with the standard CodeIgniter email class in mind. As a result, most methods look the same, ensuring a minimal learning curve.\n\nNOTE: this code is still under heavy development and currently provides only the very basics of the AWS SES API (don''t you like acronyms?), sending email.', 'git', 'git://github.com/joelcox/codeigniter-amazon-ses.git', NULL, 0, 0, 1, 0, 1, 0, '2011-02-28 19:51:01', '2011-02-28 19:51:01'); INSERT INTO `sparks` VALUES(23, 14, 'template', 'Template library for CodeIgniter which supports modules, themes, partial views, etc.', 'CodeIgniter-Template is a Template library that helps your build complex views with CodeIgniter. It has logic to work with themes & modules and helps add your title, meta-data, breadcrumbs and partial views.', 'git', 'git://github.com/philsturgeon/codeigniter-template.git', NULL, 0, 0, 1, 0, 1, 0, '2011-03-01 00:08:22', '2011-03-01 00:08:22'); INSERT INTO `sparks` VALUES(24, 16, 'autoform', 'A form generator for Codeigniter.', 'Super basic usage:\n\n$this->load->spark(''autoform'');\n$this->autoform->table(''my_table'');\necho $this->autoform->generate(''app/processform'');\n\n\nDocs will be coming soon.', 'git', 'git://github.com/tobz-nz/autoform-spark.git', NULL, 0, 0, 1, 0, 1, 0, '2011-03-01 00:15:03', '2011-03-01 00:15:03'); INSERT INTO `sparks` VALUES(25, 14, 'curl', 'Work with cURL easily from your CodeIgniter application.', 'CodeIgniter-cURL is a CodeIgniter library which makes it easy to do simple cURL requests and makes more complicated cURL requests easier too.', 'git', 'git://github.com/philsturgeon/codeigniter-curl.git', NULL, 0, 0, 0, 1, 1, 0, '2011-03-01 00:31:37', '2011-03-01 00:31:37'); INSERT INTO `sparks` VALUES(26, 14, 'unzip', 'Extract ZIP files in CodeIgniter without installing any PECL extensions for PHP.', 'Extract ZIP files in CodeIgniter without installing any PECL extensions for PHP.', 'git', 'git://github.com/philsturgeon/codeigniter-unzip.git', NULL, 0, 0, 1, 0, 1, 0, '2011-03-01 01:00:45', '2011-03-01 01:00:45'); INSERT INTO `sparks` VALUES(27, 21, 'tags', 'A simple template tag parsing library.', 'Tags is exactly what it sounds like...a simple way to use tags in your application. This allows you to have tags that look like this:\n\n {foo:something:other}\n {date format="m/d/Y"}\n \n {blog:entries count="5"}\n Stuff here\n {/blog:entries}', 'git', 'https://github.com/dhorrigan/ci-spark-tags.git', NULL, 0, 0, 0, 1, 1, 0, '2011-03-01 01:48:29', '2011-03-01 01:48:29'); INSERT INTO `sparks` VALUES(28, 14, 'tracer', 'Send iPhone notificiations from your CodeIgniter application with Prowl.', 'Send iPhone notificiations from your CodeIgniter application with Prowl.', 'svn', 'git://github.com/philsturgeon/codeigniter-prowl.git', '', 0, 0, 0, 0, 1, 0, '2011-03-01 10:43:48', '2011-03-01 10:43:48'); INSERT INTO `sparks` VALUES(29, 34, 'table_torch', 'Extensible Multi Table Scaffolding System', 'Table Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.', 'git', 'git://github.com/dperrymorrow/Table-Torch.git', NULL, 0, 0, 0, 0, 1, 0, '2011-03-02 15:46:22', '2011-03-02 15:46:22'); INSERT INTO `sparks` VALUES(30, 15, 'mongodb', 'An active record library for interacting with MongoDB', 'This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.', 'hg', 'https://bitbucket.org/alexbilbie/codeigniter-mongo-library', NULL, 0, 0, 1, 0, 1, 0, '2011-03-02 16:09:10', '2011-03-02 16:09:10'); INSERT INTO `sparks` VALUES(31, 49, 'layout-library', 'A simple template/layout library', 'Check out the Readme at the repo for more information/usage:\n\nhttp://www.zackhovatter.com/code/view/codeigniter-template-library\nhttps://github.com/hovatterz/CodeIgniter-Template-Library', 'git', '<EMAIL>:hovatterz/CodeIgniter-Template-Library.git', NULL, 0, 0, 0, 0, 1, 0, '2011-03-02 16:59:08', '2011-03-02 16:59:08'); INSERT INTO `sparks` VALUES(32, 34, 'fire_log', 'Browse and filter all your log files from a controller action', 'Fire Log is a spark that lets you browse all the log files in your application/logs directory. \n\n- You can filter what types of items you would like to view DEBUG, ERROR, INFO\n- You can delete logs files from Fire Log to clear out your logs\n- Fire log uses a view that you can easily customize in sparks/fire\\_log/[version]/views/fire\\_log_view.php\n- You can change if tags are stripped in logs or not from the config\n- Language file for all text used', 'git', 'git://github.com/dperrymorrow/Fire-Log.git', NULL, 0, 0, 1, 0, 1, 0, '2011-03-03 16:52:42', '2011-03-03 16:52:42'); INSERT INTO `sparks` VALUES(33, 6, 'tmdb', 'A The Movie Database (TMDb) library ', 'A sparked fork of http://github.com/b2tm/CodeIgniter-TMDb-Library', 'git', 'git://github.com/mdpauley/CodeIgniter-TMDb-Library', NULL, 0, 0, 0, 0, 1, 0, '2011-03-04 02:34:36', '2011-03-04 02:34:36'); INSERT INTO `sparks` VALUES(34, 33, 'assets', 'Simple Assets Library', 'A simple assets library that has the ability to combine and minify your JavaScript and CSS assets.\nAdditionally there''s a <a href="http://leafo.net/lessphp/">LessPHP</a> compiler, based on the original Ruby implementation.\n\n## Third Party Libraries\n\nThe libraries <a href="http://code.google.com/p/jsmin-php/">JSMin</a>, <a href="http://code.google.com/p/minify/">CSSMin</a> and <a href="http://leafo.net/lessphp/">LessPHP</a> are all created by third parties, but they''re included in this package for convinience.\n\n## Requirements\n\n1. PHP 5.1+\n2. CodeIgniter 2.0\n3. Directory structure for the assets files, with a writeable cache directory\n\n## Documentation\n\nSet all your preferences in the config file (assets directories, options to minify, combine and parse with LessPHP).\nNow you can use the helper methods in your views like this:\n \n <?php display_css(array(''init.css'', ''style.css'')); ?>\n <?php display_js(array(''libs/modernizr-1.6.js'', ''libs/jquery-1.4.4.js'', ''plugins.js'', ''script.js'')); ?>\n\nThere''s also a method for clearing all cached files:\n \n $this->assets->clear_cache();\n\nThe default configuration assumes your assets directory is in the root of your project. Be sure to set the permissions for the cache directory so it can be writeable.\n\n## Directory structure example\n\n /application\n /assets\n /cache\n /css\n /images\n /js\n /sparks\n /system\n\n## Additional info\n\nIf you set the minify options and combine option in your configuration to false, LessPHP won''t work. This will work in future releases.', 'hg', 'https://bitbucket.org/bstrahija/assets', NULL, 0, 0, 0, 0, 1, 0, '2011-03-04 16:40:58', '2011-03-04 16:40:58'); INSERT INTO `sparks` VALUES(35, 63, 'assets-helper', 'Helper to help with assets', 'With this helper, you can manage your assets', 'git', 'https://github.com/williamhrs/Assets-Helper', NULL, 0, 0, 0, 0, 1, 0, '2011-03-04 19:45:32', '2011-03-04 19:45:32'); INSERT INTO `sparks` VALUES(36, 65, 'user_library', 'A library to manage users on your website.', 'This library can handle the users of a website.\nYou''ll need a simple database structure to get Users and Permissions done very fast on your site.\n\nDont forget to change your database prefix on the SQL dump if you uses it! It comes with an empty prefix.\n\nYou really should create a autoload with this library to protect every page with permissions and redirect.\n\nPlease look at the class for more detailed info. Documentation is coming soon.\n\n', 'git', 'https://waldirbj@github.com/waldirbj/codeigniter-user.git', NULL, 0, 0, 0, 0, 1, 0, '2011-03-04 21:16:09', '2011-03-04 21:16:09'); INSERT INTO `sparks` VALUES(37, 55, 'ja-geocode', 'Google Maps geocoding library', 'Simple geocoding for your Codeigniter application. \n\nUse it like:\n\n$this->load->spark(''ja-geocode/1.0'');\n$this->geocode->query(''Hagebygatan 25B, Norrköping'');\n\n$latitude = $this->geocode->lat;\n$longitude = $this->geocode->lng;\n\nor:\n\n$this->load->spark(''ja-geocode/1.0'');\n$this->geocode->query(58.5808652, 16.194047);\n\n$address = $this->geocode->address;\n\n', 'hg', 'https://bitbucket.org/johanandre/ja-geocode', NULL, 0, 0, 0, 0, 1, 0, '2011-03-05 20:10:15', '2011-03-05 20:10:15'); INSERT INTO `sparks` VALUES(38, 2, 'spark-sdk', 'The Standard Development Kit for CodeIgniter Sparks', 'Useful for validating sparks before you submit them to the repository.', 'git', 'git://github.com/katzgrau/spark-sdk.git', 'http://codefury.net', 0, 0, 0, 0, 1, 0, '2011-03-21 09:48:25', '2011-03-21 09:48:25'); -- -------------------------------------------------------- -- -- Table structure for table `versions` -- CREATE TABLE `versions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `spark_id` int(11) NOT NULL, `version` varchar(10) CHARACTER SET latin1 NOT NULL, `tag` varchar(25) CHARACTER SET latin1 NOT NULL, `archive_url` varchar(300) CHARACTER SET latin1 NOT NULL, `readme` text CHARACTER SET latin1 NOT NULL, `readme_html` text CHARACTER SET latin1 NOT NULL, `is_deactivated` tinyint(1) NOT NULL, `is_verified` tinyint(1) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, PRIMARY KEY (`id`), KEY `spark_id` (`spark_id`), KEY `idx_version` (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=89 ; -- -- Dumping data for table `versions` -- INSERT INTO `versions` VALUES(7, 5, '1.0', '1.0', 'http://getsparks.org/static/archives/robot-helper/robot-helper-v1.0.zip', 'This is a CodeIgniter spark package used for dealing with robot spam.\n', '', 0, 1, '2011-02-05 16:53:43', '2011-02-05 16:53:43'); INSERT INTO `versions` VALUES(10, 6, '1.1', '1.1', 'http://getsparks.org/static/archives/gravatar_helper/gravatar_helper-v1.1.zip', '## Gravatar Helper\n\nThis is a really simple Gravatar helper class for use with CodeIgniter. It makes links which obey the Gravatar defaults rather than provide its own defaults like the current library.\n\n### Basic Usage\n\nTo load the helper, drop gravatar_helper.php into helpers, and then:\n\n $this->load->helper(''gravatar'');\n\nOr you can just checkout the entire directory into helpers/gravatar, and:\n\n $this->load->helper(''gravatar/gravatar'');\n\nTo use the helper, use these to generate image links:\n\n Gravatar_helper::from_email(''<EMAIL>'');\n Gravatar_helper::from_hash(md5(''<EMAIL>'')); // if you only have the hash\n\nAnd to add some options (you can make any of these null to default to the gravatar defaults):\n\n // email address, rating, size (square), and default image\n Gravatar_helper::from_email(''<EMAIL>'', ''X'', 80, ''http://images.com/image.jpg'');\n\n### Author\n\n<NAME>\n\n### Issues?\n\nUse the built in GitHub issue tracker.\n\n### License\n\n(The MIT License)\n\nCopyright © 2010 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\n', '', 0, 1, '2011-02-05 17:43:45', '2011-02-05 17:43:45'); INSERT INTO `versions` VALUES(11, 8, '1.0', '1.0', 'http://getsparks.org/static/archives/markdown/markdown-v1.0.zip', '', '', 0, 1, '2011-02-11 03:40:20', '2011-02-11 03:40:20'); INSERT INTO `versions` VALUES(12, 8, '1.1', '1.1', 'http://getsparks.org/static/archives/markdown/markdown-v1.1.zip', '', '', 0, 1, '2011-02-13 20:05:20', '2011-02-13 20:05:20'); INSERT INTO `versions` VALUES(13, 9, '1.0', '1.0', 'http://getsparks.org/static/archives/example-spark/example-spark-v1.0.zip', '', '', 0, 1, '2011-02-17 05:22:35', '2011-02-17 05:22:35'); INSERT INTO `versions` VALUES(14, 6, '1.0.0', '1.0.0', 'http://getsparks.org/static/archives/gravatar_helper/gravatar_helper-v1.2.zip', '## Gravatar Helper\n\nThis is a really simple Gravatar helper class for use with CodeIgniter. It makes links which obey the Gravatar defaults rather than provide its own defaults like the current library.\n\n### Basic Usage\n\nTo load the helper, drop gravatar_helper.php into helpers, and then:\n\n $this->load->helper(''gravatar'');\n\nTo use this as a [spark](http://getsparks.org/), you can just do:\n\n $ tools/spark install gravatar_helper\n\nTo use the helper, use these to generate image links:\n\n Gravatar_helper::from_email(''<EMAIL>'');\n Gravatar_helper::from_hash(md5(''<EMAIL>'')); // if you only have the hash\n\nAnd to add some options (you can make any of these null to default to the gravatar defaults):\n\n // email address, rating, size (square), and default image\n Gravatar_helper::from_email(''<EMAIL>'', ''X'', 80, ''http://images.com/image.jpg'');\n\n### Author\n\n<NAME>\n\n### Issues?\n\nUse the built in GitHub issue tracker.\n\n### License\n\n(The MIT License)\n\nCopyright © 2010 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\n', '', 0, 1, '2011-02-17 07:44:28', '2011-02-17 07:44:28'); INSERT INTO `versions` VALUES(15, 5, '1.1', '1.1', 'http://getsparks.org/static/archives/robot-helper/robot-helper-v1.1.zip', 'This is a CodeIgniter spark package used for dealing with robot spam.\n', '', 0, 1, '2011-02-20 15:44:44', '2011-02-20 15:44:44'); INSERT INTO `versions` VALUES(19, 11, '1.0.3', '1.0.3', 'http://getsparks.org/static/archives/base_model/base_model-v1.0.3.zip', '# BaseModel\n\nBaseModel is a Ruby on Rails like class for PHP that you use to extend the base CI_Model functionality in CodeIgniter. Currently, this is being built using CodeIgniter 2, but I''m sure that it''s backwards compatible - I''ll have to verify that later though.\n\n### Auto Loading\n\n $autoload[''libraries''] = array(''BaseModel/BaseModel'');\n\n### Loaded on the fly\n\n $this->load->library(''BaseModel/BaseModel)\n\n### Usage\n\nBasically, I set up this class to do a lot of the "auto-magic" stuff that Rails does.\n\n class User extends BaseModel {\n\n function __construct($id=FALSE) \n {\n parent::__construct($id, ''users'');\n }\n\n }\n \nInside the constructor above, when calling the parent constructer (REQUIRED), you pass in the $id variable (primary key value) and the database table name (''users''). By setting this up, when you call the following...\n\n $user = new User(123);\n \n...the model will automatically go in to the ''users'' table, and load up the values from that record into the attributes array. Using `print_r($user);` will return the following:\n\n User Object\n (\n [attributes] => stdClass Object\n (\n [id] => 1\n [email] => beau.frusetta@gmail.com\n [pass] => <PASSWORD>\n [username] => \n [first_name] => Beau\n [last_name] => Frusetta\n [created_at] => 2011-02-15 09:36:42\n [updated_at] => 2011-02-15 09:36:42\n )\n\n [primary_key] => id\n [before_update] => Array\n (\n )\n\n [after_update] => Array\n (\n )\n\n [before_save] => Array\n (\n )\n\n [after_save] => Array\n (\n )\n\n [_table_name:BaseModel:private] => users\n [_table_prefix:BaseModel:private] => \n [_error_message:BaseModel:private] => \n [_load_time:BaseModel:private] => 0.001439094543457\n )\n \n### has_many, belongs_to, and has_one\n\nYou can also use `$has_many`, `$belongs_to`, and `$has_one` similar to rails. Just declare them in your class that you''re creating like this\n\n class User extends BaseModel {\n \n var $has_many = array("packages");\n var $belongs_to = array("account");\n\n function __construct($id=FALSE) \n {\n parent::__construct($id, ''users'');\n }\n\n }\n \nWhen the object is created, if passing in an id value, it will automatically map those relationships. You can access them by calling `$user->account->variable` or `$user->packages` (note that packages will return ONE:MANY relationship and have an array of package objects).\n\n** Note, in order to use the relationships properly, each relationship will need it''s own class declared similar to the class calling it.\n\nThere are some other options that I still need to document, but this is good for v1.0.0 right now. :-)', '<h1>BaseModel</h1>\n\n<p>BaseModel is a Ruby on Rails like class for PHP that you use to extend the base CI_Model functionality in CodeIgniter. Currently, this is being built using CodeIgniter 2, but I''m sure that it''s backwards compatible - I''ll have to verify that later though.</p>\n\n<h3>Auto Loading</h3>\n\n<pre><code>$autoload[''libraries''] = array(''BaseModel/BaseModel'');\n</code></pre>\n\n<h3>Loaded on the fly</h3>\n\n<pre><code>$this-&gt;load-&gt;library(''BaseModel/BaseModel)\n</code></pre>\n\n<h3>Usage</h3>\n\n<p>Basically, I set up this class to do a lot of the "auto-magic" stuff that Rails does.</p>\n\n<pre><code>class User extends BaseModel {\n\n function __construct($id=FALSE) \n {\n parent::__construct($id, ''users'');\n }\n\n}\n</code></pre>\n\n<p>Inside the constructor above, when calling the parent constructer (REQUIRED), you pass in the $id variable (primary key value) and the database table name (''users''). By setting this up, when you call the following...</p>\n\n<pre><code>$user = new User(123);\n</code></pre>\n\n<p>...the model will automatically go in to the ''users'' table, and load up the values from that record into the attributes array. Using <code>print_r($user);</code> will return the following:</p>\n\n<pre><code>User Object\n(\n [attributes] =&gt; stdClass Object\n (\n [id] =&gt; 1\n [email] =&gt; beau.frusetta@gmail.com\n [pass] =&gt; <PASSWORD>\n [username] =&gt; \n [first_name] =&gt; Beau\n [last_name] =&gt; Frusetta\n [created_at] =&gt; 2011-02-15 09:36:42\n [updated_at] =&gt; 2011-02-15 09:36:42\n )\n\n [primary_key] =&gt; id\n [before_update] =&gt; Array\n (\n )\n\n [after_update] =&gt; Array\n (\n )\n\n [before_save] =&gt; Array\n (\n )\n\n [after_save] =&gt; Array\n (\n )\n\n [_table_name:BaseModel:private] =&gt; users\n [_table_prefix:BaseModel:private] =&gt; \n [_error_message:BaseModel:private] =&gt; \n [_load_time:BaseModel:private] =&gt; 0.001439094543457\n)\n</code></pre>\n\n<h3>has<em>many, belongs</em>to, and has_one</h3>\n\n<p>You can also use <code>$has_many</code>, <code>$belongs_to</code>, and <code>$has_one</code> similar to rails. Just declare them in your class that you''re creating like this</p>\n\n<pre><code>class User extends BaseModel {\n\n var $has_many = array("packages");\n var $belongs_to = array("account");\n\n function __construct($id=FALSE) \n {\n parent::__construct($id, ''users'');\n }\n\n}\n</code></pre>\n\n<p>When the object is created, if passing in an id value, it will automatically map those relationships. You can access them by calling <code>$user-&gt;account-&gt;variable</code> or <code>$user-&gt;packages</code> (note that packages will return ONE:MANY relationship and have an array of package objects).</p>\n\n<p>** Note, in order to use the relationships properly, each relationship will need it''s own class declared similar to the class calling it.</p>\n\n<p>There are some other options that I still need to document, but this is good for v1.0.0 right now. :-)</p>\n', 0, 1, '2011-02-25 23:25:12', '2011-02-25 23:25:12'); INSERT INTO `versions` VALUES(20, 20, '0.1', '0.1', 'http://getsparks.org/static/archives/cj-soap-api/cj-soap-api-v0.1.zip', '# CJ Search API #\n## How to use Product Search ##\n\nSet developerKey and websiteId in the config file. In your controller load the library set the \nsearch data array and call the products_catalog_search function\n\n<?php\n $this->load->library(''cjapi'');\n \n //Set any or all of the values\n $data = array(\n "advertiserIds" => ''276652'',\n "keywords" => ''shoes'',\n "category" => ''shoes'',\n "linkType" => ''Banner'',\n "linkSize" => ''160x180'',\n "language" => ''en'',\n "serviceableArea" => ''US'',\n "promotionType" => ''free shipping'',\n "promotionStartDate" => '''',\n "promotionEndDate" => ''ongoing'',\n "sortBy" => ''creativeHeight'',\n "sortOrder" => ''asc'',\n "startAt" => 0,\n "maxResults" => 10\n );\n \n //developerKey and websiteId are merged in the class\n $this->cjapi->products_catalog_search ($data)\n?>\n\n## How to use Link Search ##\n\n<?php\n $this->load->library(''cjapi'');\n \n //Set any or all of the values\n $data = array(\n "advertiserIds" => ''276652'',\n "keywords" => ''shoes'',\n "category" => ''shoes'',\n "linkType" => ''Banner'',\n "linkSize" => ''160x180'',\n "language" => ''en'',\n "serviceableArea" => ''US'',\n "promotionType" => ''free shipping'',\n "promotionStartDate" => '''',\n "promotionEndDate" => ''ongoing'',\n "sortBy" => ''creativeHeight'',\n "sortOrder" => ''asc'',\n "startAt" => 0,\n "maxResults" => 10\n );\n \n //developerKey and websiteId are merged in the class\n $this->cjapi->link_search_service ($data)\n?>\n\n## How to use Advertiser Search ##\n\n<?php\n $this->load->library(''cjapi'');\n \n //Set any or all of the values\n $data = array(\n "keywords" => ''shoes'',\n "category" => ''shoes'',\n "linkType" => ''Banner'',\n "linkSize" => ''160x180'',\n "language" => ''en'',\n "serviceableArea" => ''US'',\n "sortBy" => ''cid'',\n "sortOrder" => ''asc'',\n "startAt" => 0,\n "maxResults" => 10\n );\n \n //developerKey and websiteId are merged in the class\n $this->cjapi->advertiser_search ($data)\n?>', '<h1>CJ Search API</h1>\n\n<h2>How to use Product Search</h2>\n\n<p>Set developerKey and websiteId in the config file. In your controller load the library set the \nsearch data array and call the products<em>catalog</em>search function</p>\n\n<p>&lt;?php\n $this->load->library(''cjapi'');</p>\n\n<pre><code>//Set any or all of the values\n$data = array(\n "advertiserIds" =&gt; ''276652'',\n "keywords" =&gt; ''shoes'',\n "category" =&gt; ''shoes'',\n "linkType" =&gt; ''Banner'',\n "linkSize" =&gt; ''160x180'',\n "language" =&gt; ''en'',\n "serviceableArea" =&gt; ''US'',\n "promotionType" =&gt; ''free shipping'',\n "promotionStartDate" =&gt; '''',\n "promotionEndDate" =&gt; ''ongoing'',\n "sortBy" =&gt; ''creativeHeight'',\n "sortOrder" =&gt; ''asc'',\n "startAt" =&gt; 0,\n "maxResults" =&gt; 10\n);\n\n//developerKey and websiteId are merged in the class\n$this-&gt;cjapi-&gt;products_catalog_search ($data)\n</code></pre>\n\n<p>?></p>\n\n<h2>How to use Link Search</h2>\n\n<p>&lt;?php\n $this->load->library(''cjapi'');</p>\n\n<pre><code>//Set any or all of the values\n$data = array(\n "advertiserIds" =&gt; ''276652'',\n "keywords" =&gt; ''shoes'',\n "category" =&gt; ''shoes'',\n "linkType" =&gt; ''Banner'',\n "linkSize" =&gt; ''160x180'',\n "language" =&gt; ''en'',\n "serviceableArea" =&gt; ''US'',\n "promotionType" =&gt; ''free shipping'',\n "promotionStartDate" =&gt; '''',\n "promotionEndDate" =&gt; ''ongoing'',\n "sortBy" =&gt; ''creativeHeight'',\n "sortOrder" =&gt; ''asc'',\n "startAt" =&gt; 0,\n "maxResults" =&gt; 10\n);\n\n//developerKey and websiteId are merged in the class\n$this-&gt;cjapi-&gt;link_search_service ($data)\n</code></pre>\n\n<p>?></p>\n\n<h2>How to use Advertiser Search</h2>\n\n<p>&lt;?php\n $this->load->library(''cjapi'');</p>\n\n<pre><code>//Set any or all of the values\n$data = array(\n "keywords" =&gt; ''shoes'',\n "category" =&gt; ''shoes'',\n "linkType" =&gt; ''Banner'',\n "linkSize" =&gt; ''160x180'',\n "language" =&gt; ''en'',\n "serviceableArea" =&gt; ''US'',\n "sortBy" =&gt; ''cid'',\n "sortOrder" =&gt; ''asc'',\n "startAt" =&gt; 0,\n "maxResults" =&gt; 10\n);\n\n//developerKey and websiteId are merged in the class\n$this-&gt;cjapi-&gt;advertiser_search ($data)\n</code></pre>\n\n<p>?></p>\n', 0, 1, '2011-02-26 03:43:33', '2011-02-26 03:43:33'); INSERT INTO `versions` VALUES(21, 21, '1.0', '1.0', 'http://getsparks.org/static/archives/qa_spark_birdseed/qa_spark_birdseed-v1.0.zip', '# This Is a QA spark\r\n\r\nThe point of this spark is not to actually be functional\r\n\r\n## It''s just to test that the docs I wrote actually work\r\n\r\nI''m writing all this jaxx on windows\r\n\r\n * This\r\n * Spark\r\n * Thing\r\n * Could\r\n * Be\r\n * Cool\r\n\r\n## License\r\n\r\nDBAD License, found somewhere on the internet', '<h1>This Is a QA spark</h1>\n\n<p>The point of this spark is not to actually be functional</p>\n\n<h2>It''s just to test that the docs I wrote actually work</h2>\n\n<p>I''m writing all this jaxx on windows</p>\n\n<ul>\n<li>This</li>\n<li>Spark</li>\n<li>Thing</li>\n<li>Could</li>\n<li>Be</li>\n<li>Cool</li>\n</ul>\n\n<h2>License</h2>\n\n<p>DBAD License, found somewhere on the internet</p>\n', 0, 1, '2011-02-26 19:00:56', '2011-02-26 19:00:56'); INSERT INTO `versions` VALUES(22, 22, 'v0.1', 'v0.1', 'http://getsparks.org/static/archives/amazon-ses/amazon-ses-vv0.1.zip', 'CodeIgniter Amazon SES\n======================\nA CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES). This library was designed with the standard CodeIgniter email class in mind. As a result, most methods look the same, ensuring a minimal learning curve.\n\nNOTE: this code is still under heavy development and currently provides only the very basics of the AWS SES API (don''t you like acronyms?), sending email.\n\nRequirements\n------------\n1. PHP 5.1+\n2. CodeIgniter 2.0+ (http://codeigniter.com)\n3. libcurl\n4. Phil Sturgeon''s CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl)\n5. Amazon Web Services account (http://aws.amazon.com)\n\nDocumentation\n-------------\n\n### Configuration\nThis library expects a configuration file to function correctly. A template for this file is provided with the library. \n\n### Recipients\n\n####$this->amazon_ses->to()\nSet the "To" address(es) for a message.\n\n####$this->amazon_ses->cc()\nSet the "CC" address(es) (carbon copy) for a message.\n\n####$this->amazon_ses->bcc()\nSet the "BCC" address(es) (blind carbon copy) for a message.\n\nThese three methods expect valid e-mail addresses as a string, array or comma separated list.\n\n###Message\n\n####$this->amazon_ses->subject()\nSet the subject for a message.\n\n####$this->amazon_ses->message()\nSet the message to be sent.\n\n####$this->amazon_ses->message_alt()\nSet the alternative message (plain-text) to be sent. When not specified, an alternative message is generated by using PHP''s strip_tags() function.\n\n####$this->amazon_ses->send()\nSends the message. Returns true on success.\n\n###Misc\n\n####$this->amazon_ses->debug()\nSends the message in debug mode. In debug mode, the send() methods returns the actual API response instead of a boolean. Call this method before calling the send method.\n\n####$this->amazon_ses->destroy()\nPreserves recipient after the message has been successfully send. When you call this method, all recipients will be preserved during the objects life. This makes it possible to sent an additional message without re-specifying the recipients.\n\nContributing\n------------\nI am a firm believer of social coding, so <strike>if</strike> when you find a bug, please fork my code on GitHub (http://github.com/joelcox/codeigniter-amazon-ses) and squash it. I will be happy to merge it back in to the code base (and add you to the "Thanks to" section). If you''re not too comfortable using Git or messing with the inner workings of this library, please open a new issue (http://github.com/joelcox/codeigniter-amazon-ses/issues). \n\nThanks to\n---------\n* <NAME> (http://philsturgeon.co.uk), for creating the CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl) and thus taking care of all the cURL hassle.', '<h1>CodeIgniter Amazon SES</h1>\n\n<p>A CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES). This library was designed with the standard CodeIgniter email class in mind. As a result, most methods look the same, ensuring a minimal learning curve.</p>\n\n<p>NOTE: this code is still under heavy development and currently provides only the very basics of the AWS SES API (don''t you like acronyms?), sending email.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 2.0+ (http://codeigniter.com)</li>\n<li>libcurl</li>\n<li>Phil Sturgeon''s CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl)</li>\n<li>Amazon Web Services account (http://aws.amazon.com)</li>\n</ol>\n\n<h2>Documentation</h2>\n\n<h3>Configuration</h3>\n\n<p>This library expects a configuration file to function correctly. A template for this file is provided with the library. </p>\n\n<h3>Recipients</h3>\n\n<h4>$this->amazon_ses->to()</h4>\n\n<p>Set the "To" address(es) for a message.</p>\n\n<h4>$this->amazon_ses->cc()</h4>\n\n<p>Set the "CC" address(es) (carbon copy) for a message.</p>\n\n<h4>$this->amazon_ses->bcc()</h4>\n\n<p>Set the "BCC" address(es) (blind carbon copy) for a message.</p>\n\n<p>These three methods expect valid e-mail addresses as a string, array or comma separated list.</p>\n\n<h3>Message</h3>\n\n<h4>$this->amazon_ses->subject()</h4>\n\n<p>Set the subject for a message.</p>\n\n<h4>$this->amazon_ses->message()</h4>\n\n<p>Set the message to be sent.</p>\n\n<h4>$this->amazon<em>ses->message</em>alt()</h4>\n\n<p>Set the alternative message (plain-text) to be sent. When not specified, an alternative message is generated by using PHP''s strip_tags() function.</p>\n\n<h4>$this->amazon_ses->send()</h4>\n\n<p>Sends the message. Returns true on success.</p>\n\n<h3>Misc</h3>\n\n<h4>$this->amazon_ses->debug()</h4>\n\n<p>Sends the message in debug mode. In debug mode, the send() methods returns the actual API response instead of a boolean. Call this method before calling the send method.</p>\n\n<h4>$this->amazon_ses->destroy()</h4>\n\n<p>Preserves recipient after the message has been successfully send. When you call this method, all recipients will be preserved during the objects life. This makes it possible to sent an additional message without re-specifying the recipients.</p>\n\n<h2>Contributing</h2>\n\n<p>I am a firm believer of social coding, so <strike>if</strike> when you find a bug, please fork my code on GitHub (http://github.com/joelcox/codeigniter-amazon-ses) and squash it. I will be happy to merge it back in to the code base (and add you to the "Thanks to" section). If you''re not too comfortable using Git or messing with the inner workings of this library, please open a new issue (http://github.com/joelcox/codeigniter-amazon-ses/issues). </p>\n\n<h2>Thanks to</h2>\n\n<ul>\n<li><NAME> (http://philsturgeon.co.uk), for creating the CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl) and thus taking care of all the cURL hassle.</li>\n</ul>\n', 0, 1, '2011-02-28 21:28:39', '2011-02-28 21:28:39'); INSERT INTO `versions` VALUES(23, 11, '1.0.4', '1.0.4', 'http://getsparks.org/static/archives/base_model/base_model-v1.0.4.zip', '# base_model #\n\nThis class is setup specifically for use within the [Sparks Package Management System for Codeigniter](http://getsparks.org "Sparks Package Management System for Codeigniter"). The basic definition is that it''s a Codeigniter Model extender that brings in typical ORM style references. You can setup relationships (that are lazy loaded), and easily retrieve a record in the object declaration.\n\n## Install ##\n\nTo install this package, (after you''ve install the package manager), run the following command:\n\n tools/spark install -v1.0.3 base_model\n \n## Usage ##\n\nSince this is an "extender" and not a typical spark library, you''re going to have to place the following in your model declarations:\n\n <?php \n \n require("./sparks/base_model/1.0.3/libraries/base_model.php");\n \n class User extends Base_Model {\n\n function __construct($id=FALSE)\n {\n parent::__construct($id,''users'');\n }\n\n }\n \n ?>\n \nAlso, in order to use this class, you are required to be connected to a database through your application/config/database.php file and have it loaded inside application/config/autoload.php under the "libraries" array.\n \n### Object Initialization ###\n\nTo properly setup the base_model, you have to setup your constructor with the following:\n\n function __construct($id=FALSE)\n \nDoing so will allow you to pass in a primary key to load the object immediately on instantiation. This is **NOT REQUIRED**, however, it is strongly recommended to use.\n\nInside your default object constructor, you must call the parent constructor:\n\n parent::__construct($id, ''users'');\n \nThe first variable is the **primary key** value, and the second value is the **table** that you are connecting to.\n\n### Typical Use ###\n\n $user = new User(123);\n echo $user->first_name;\n \nAll values retrieved from the database are stored in an array - `$user->attributes` - however, you can access each attribute by calling them on the main object - `$user->first_name`. As if it''s not a relationship, the object defaults to look for the value inside the attributes array.\n\n### Relationships ###\n\nRelating model objects to each other is stupid simple. There are three types: **belongs_to, has_many, has_one**\n\nTo use these, simply set them up as class level array variables:\n\n var $belongs_to = array("god");\n var $has_many = array("cats","dogs");\n var $has_one = array("spouse");\n \nThe singular version of the objects declared in the arrays map to objects (that extend base_model). If it''s a `$belongs_to` or `$has_one` relationship, there will only be one object returned when calling it:\n\n $user->spouse;\n \nWhen calling a `$has_many` relationship, the object will return an array of objects.\n\n $user->cats;\n \n### Properties ###\n\n* **attributes** - this is the record data from the database. When your table schema changes, this changes with it. (Default = FALSE)\n* **has_many** - this is the property you use to declare your `has_many` relationships. (Default = FALSE)\n* **has_one** - this is the property you use to declare your `has_one` relationships. (Default = FALSE)\n* **belongs_to** - this is the property you use to declare your `belongs_to` relationships. (Default = FALSE)\n* **primary_key** - this is the field definition of your primary key - set this to the primary key field name in the linked table. (Default = "id")\n* **before_update** - array of functions to be called immediately before the model record is updated (**update only**). (Default = False)\n* **after_update** - array of functions to be called immediately after the model is updated (**update only**). (Default = False)\n* **before_save** - array of functions to be called immediately before the model is saved (**create/update**). (Default = False)\n* **after_save** - array of functions to be called immediately after the model is saved (**create/update**). (Default = False)\n\n### Methods ###\n\n* **table($val=FALSE)** - use this method to set the name of the table to connect to at run-time.\n* **error($val=FALSE)** - use this method to get/set an error message on the object.\n* **refresh($id=FALSE)** - use this method to force a refresh of the database record. (this is automatically called on create/update)\n* **create($params)** - use this method to create a record in the database. Param names (associative array) should be the same as the field names.\n* **update_attribute($field,$value)** - use this method to update a single field value.\n* **update_attributes($fields)** - pass in an associative array to update multiple attributes at once.\n* **destroy()** - use this method to destroy the currently loaded record.\n* **all($filter=FALSE,$order="")** - use this to retrieve a group of records.\n* **save()** - use this to save the modified database record.\n* **is_new()** - use this to determine if the object you are working with is a new object, and has not been initialized with a database record.\n\n### Magic Methods ###\n\n* **find_by_field_name** - you can use, for example, `$user->find_by_email_address(''<EMAIL>'')` to find a record in the linked table. You can substitute any field name in after the find_by separated by a underscore.\n\n## Examples ##\n\n### Retrieving a single value from an object ##\n\n $object->value;\n \nOR\n\n $object->attributes["value"];\n \n### Temporarily changing the linked table at run time ###\n \n $object->table(''other_table'');\n $object->all();\n \n### Creating a new record in the database ###\n\n $user = new User();\n $user->create(array("first_name" => "Beau", "last_name" => "Frusetta"));\n \n### Retrieving a record from the database ###\n\n $user = new User(123);\n \nOR\n\n $user = new User();\n $user->find_by_email_address("<EMAIL>");', '<h1>base_model</h1>\n\n<p>This class is setup specifically for use within the <a href="http://getsparks.org" title="Sparks Package Management System for Codeigniter">Sparks Package Management System for Codeigniter</a>. The basic definition is that it''s a Codeigniter Model extender that brings in typical ORM style references. You can setup relationships (that are lazy loaded), and easily retrieve a record in the object declaration.</p>\n\n<h2>Install</h2>\n\n<p>To install this package, (after you''ve install the package manager), run the following command:</p>\n\n<pre><code>tools/spark install -v1.0.3 base_model\n</code></pre>\n\n<h2>Usage</h2>\n\n<p>Since this is an "extender" and not a typical spark library, you''re going to have to place the following in your model declarations:</p>\n\n<pre><code>&lt;?php \n\nrequire("./sparks/base_model/1.0.3/libraries/base_model.php");\n\nclass User extends Base_Model {\n\n function __construct($id=FALSE)\n {\n parent::__construct($id,''users'');\n }\n\n}\n\n?&gt;\n</code></pre>\n\n<p>Also, in order to use this class, you are required to be connected to a database through your application/config/database.php file and have it loaded inside application/config/autoload.php under the "libraries" array.</p>\n\n<h3>Object Initialization</h3>\n\n<p>To properly setup the base_model, you have to setup your constructor with the following:</p>\n\n<pre><code>function __construct($id=FALSE)\n</code></pre>\n\n<p>Doing so will allow you to pass in a primary key to load the object immediately on instantiation. This is <strong>NOT REQUIRED</strong>, however, it is strongly recommended to use.</p>\n\n<p>Inside your default object constructor, you must call the parent constructor:</p>\n\n<pre><code>parent::__construct($id, ''users'');\n</code></pre>\n\n<p>The first variable is the <strong>primary key</strong> value, and the second value is the <strong>table</strong> that you are connecting to.</p>\n\n<h3>Typical Use</h3>\n\n<pre><code>$user = new User(123);\necho $user-&gt;first_name;\n</code></pre>\n\n<p>All values retrieved from the database are stored in an array - <code>$user-&gt;attributes</code> - however, you can access each attribute by calling them on the main object - <code>$user-&gt;first_name</code>. As if it''s not a relationship, the object defaults to look for the value inside the attributes array.</p>\n\n<h3>Relationships</h3>\n\n<p>Relating model objects to each other is stupid simple. There are three types: <strong>belongs<em>to, has</em>many, has_one</strong></p>\n\n<p>To use these, simply set them up as class level array variables:</p>\n\n<pre><code>var $belongs_to = array("god");\nvar $has_many = array("cats","dogs");\nvar $has_one = array("spouse");\n</code></pre>\n\n<p>The singular version of the objects declared in the arrays map to objects (that extend base_model). If it''s a <code>$belongs_to</code> or <code>$has_one</code> relationship, there will only be one object returned when calling it:</p>\n\n<pre><code>$user-&gt;spouse;\n</code></pre>\n\n<p>When calling a <code>$has_many</code> relationship, the object will return an array of objects.</p>\n\n<pre><code>$user-&gt;cats;\n</code></pre>\n\n<h3>Properties</h3>\n\n<ul>\n<li><strong>attributes</strong> - this is the record data from the database. When your table schema changes, this changes with it. (Default = FALSE)</li>\n<li><strong>has_many</strong> - this is the property you use to declare your <code>has_many</code> relationships. (Default = FALSE)</li>\n<li><strong>has_one</strong> - this is the property you use to declare your <code>has_one</code> relationships. (Default = FALSE)</li>\n<li><strong>belongs_to</strong> - this is the property you use to declare your <code>belongs_to</code> relationships. (Default = FALSE)</li>\n<li><strong>primary_key</strong> - this is the field definition of your primary key - set this to the primary key field name in the linked table. (Default = "id")</li>\n<li><strong>before_update</strong> - array of functions to be called immediately before the model record is updated (<strong>update only</strong>). (Default = False)</li>\n<li><strong>after_update</strong> - array of functions to be called immediately after the model is updated (<strong>update only</strong>). (Default = False)</li>\n<li><strong>before_save</strong> - array of functions to be called immediately before the model is saved (<strong>create/update</strong>). (Default = False)</li>\n<li><strong>after_save</strong> - array of functions to be called immediately after the model is saved (<strong>create/update</strong>). (Default = False)</li>\n</ul>\n\n<h3>Methods</h3>\n\n<ul>\n<li><strong>table($val=FALSE)</strong> - use this method to set the name of the table to connect to at run-time.</li>\n<li><strong>error($val=FALSE)</strong> - use this method to get/set an error message on the object.</li>\n<li><strong>refresh($id=FALSE)</strong> - use this method to force a refresh of the database record. (this is automatically called on create/update)</li>\n<li><strong>create($params)</strong> - use this method to create a record in the database. Param names (associative array) should be the same as the field names.</li>\n<li><strong>update_attribute($field,$value)</strong> - use this method to update a single field value.</li>\n<li><strong>update_attributes($fields)</strong> - pass in an associative array to update multiple attributes at once.</li>\n<li><strong>destroy()</strong> - use this method to destroy the currently loaded record.</li>\n<li><strong>all($filter=FALSE,$order="")</strong> - use this to retrieve a group of records.</li>\n<li><strong>save()</strong> - use this to save the modified database record.</li>\n<li><strong>is_new()</strong> - use this to determine if the object you are working with is a new object, and has not been initialized with a database record.</li>\n</ul>\n\n<h3>Magic Methods</h3>\n\n<ul>\n<li><strong>find<em>by</em>field_name</strong> - you can use, for example, <code>$user-&gt;find_by_email_address(''<EMAIL>'')</code> to find a record in the linked table. You can substitute any field name in after the find_by separated by a underscore.</li>\n</ul>\n\n<h2>Examples</h2>\n\n<h3>Retrieving a single value from an object</h3>\n\n<pre><code>$object-&gt;value;\n</code></pre>\n\n<p>OR</p>\n\n<pre><code>$object-&gt;attributes["value"];\n</code></pre>\n\n<h3>Temporarily changing the linked table at run time</h3>\n\n<pre><code>$object-&gt;table(''other_table'');\n$object-&gt;all();\n</code></pre>\n\n<h3>Creating a new record in the database</h3>\n\n<pre><code>$user = new User();\n$user-&gt;create(array("first_name" =&gt; "Beau", "last_name" =&gt; "Frusetta"));\n</code></pre>\n\n<h3>Retrieving a record from the database</h3>\n\n<pre><code>$user = new User(123);\n</code></pre>\n\n<p>OR</p>\n\n<pre><code>$user = new User();\n$user-&gt;find_by_email_address("<EMAIL>");\n</code></pre>\n', 0, 1, '2011-02-28 23:05:25', '2011-02-28 23:05:25'); INSERT INTO `versions` VALUES(24, 23, 'v1.6', 'v1.6', 'http://getsparks.org/static/archives/template/template-vv1.6.zip', 'CodeIgniter-Template\n====================\n\nCodeIgniter-Template is a Template library that helps your build complex views with CodeIgniter.\nIt has logic to work with themes & modules and helps add your title, meta-data, breadcrumbs and partial views.\n\n\nRequirements\n------------\n\n1. PHP 5.1+\n2. CodeIgniter 1.6.x - 2.0-dev\n\nDocumentation\n-------------\n\nLook in user_guide or <a href="http://philsturgeon.co.uk/demos/codeigniter-template/user_guide/">click here</a>.\nYeah, I actually wrote some documentation! :-o', '<h1>CodeIgniter-Template</h1>\n\n<p>CodeIgniter-Template is a Template library that helps your build complex views with CodeIgniter.\nIt has logic to work with themes &amp; modules and helps add your title, meta-data, breadcrumbs and partial views.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 1.6.x - 2.0-dev</li>\n</ol>\n\n<h2>Documentation</h2>\n\n<p>Look in user_guide or <a href="http://philsturgeon.co.uk/demos/codeigniter-template/user_guide/">click here</a>.\nYeah, I actually wrote some documentation! :-o</p>\n', 0, 1, '2011-03-01 00:08:42', '2011-03-01 00:08:42'); INSERT INTO `versions` VALUES(25, 23, 'v1.7', 'v1.7', 'http://getsparks.org/static/archives/template/template-vv1.7.zip', '# CodeIgniter-Template\n\nCodeIgniter-Template is a Template library that helps your build complex views with CodeIgniter.\nIt has logic to work with themes & modules and helps add your title, meta-data, breadcrumbs and partial views.\n\n\n## Requirements\n\n1. PHP 5.1+\n2. CodeIgniter 1.6.x - 2.0-dev\n\n## Documentation\n\nLook in user_guide or <a href="http://philsturgeon.co.uk/demos/codeigniter-template/user_guide/">click here</a>.\nYeah, I actually wrote some documentation! :-o', '<h1>CodeIgniter-Template</h1>\n\n<p>CodeIgniter-Template is a Template library that helps your build complex views with CodeIgniter.\nIt has logic to work with themes &amp; modules and helps add your title, meta-data, breadcrumbs and partial views.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 1.6.x - 2.0-dev</li>\n</ol>\n\n<h2>Documentation</h2>\n\n<p>Look in user_guide or <a href="http://philsturgeon.co.uk/demos/codeigniter-template/user_guide/">click here</a>.\nYeah, I actually wrote some documentation! :-o</p>\n', 0, 1, '2011-03-01 00:27:31', '2011-03-01 00:27:31'); INSERT INTO `versions` VALUES(28, 26, '1.0', '1.0', 'http://getsparks.org/static/archives/unzip/unzip-v1.0.zip', 'CodeIgniter-Unzip\n============\n\nExtract ZIP files in CodeIgniter without installing any PECL extensions for PHP.\n\n\nRequirements\n------------\n\n1. PHP 5.1+\n2. CodeIgniter 1.6.x - 2.0-dev\n3. ZLib extension enabled\n\n\nUsage\n-----\n\n $this->load->library(''unzip'');\n\n // Optional: Only take out these files, anything else is ignored\n $this->unzip->allow(array(''css'', ''js'', ''png'', ''gif'', ''jpeg'', ''jpg'', ''tpl'', ''html'', ''swf''));\n\n // Give it one parameter and it will extract to the same folder\n $this->unzip->extract(''uploads/my_archive.zip'');\n\n // or specify a destination directory\n $this->unzip->extract(''uploads/my_archive.zip'', ''/path/to/directory/);\n\nSimple as that!\n\n\nTo-do\n-----\n\n- Add extract_file() to extract a specific file from your ZIP.', '<h1>CodeIgniter-Unzip</h1>\n\n<p>Extract ZIP files in CodeIgniter without installing any PECL extensions for PHP.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 1.6.x - 2.0-dev</li>\n<li>ZLib extension enabled</li>\n</ol>\n\n<h2>Usage</h2>\n\n<pre><code>$this-&gt;load-&gt;library(''unzip'');\n\n// Optional: Only take out these files, anything else is ignored\n$this-&gt;unzip-&gt;allow(array(''css'', ''js'', ''png'', ''gif'', ''jpeg'', ''jpg'', ''tpl'', ''html'', ''swf''));\n\n// Give it one parameter and it will extract to the same folder\n$this-&gt;unzip-&gt;extract(''uploads/my_archive.zip'');\n\n// or specify a destination directory\n$this-&gt;unzip-&gt;extract(''uploads/my_archive.zip'', ''/path/to/directory/);\n</code></pre>\n\n<p>Simple as that!</p>\n\n<h2>To-do</h2>\n\n<ul>\n<li>Add extract_file() to extract a specific file from your ZIP.</li>\n</ul>\n', 0, 1, '2011-03-01 01:01:00', '2011-03-01 01:01:00'); INSERT INTO `versions` VALUES(29, 25, '1.0.0', '1.0.0', 'http://getsparks.org/static/archives/curl/curl-v1.0.zip', 'CodeIgniter-cURL\n================\n\nCodeIgniter-cURL is a CodeIgniter library which makes it easy to do simple cURL requests \nand makes more complicated cURL requests easier too.\n\n\nRequirements\n------------\n\n1. PHP 5.1+\n2. CodeIgniter 1.7.x - 2.0-dev\n3. PHP 5 (configured with cURL enabled)\n4. libcurl\n\nUsage\n-----\n\n echo $this->curl->simple_get(''http://example.com/'');\n echo $this->curl->simple_post(''curl_test/message'', array(''message''=>''Sup buddy''));\n\nFor more up to date usage and in-depth examples check the CodeIgniter wiki page:\n\nhttp://codeigniter.com/wiki/Curl_library/', '<h1>CodeIgniter-cURL</h1>\n\n<p>CodeIgniter-cURL is a CodeIgniter library which makes it easy to do simple cURL requests \nand makes more complicated cURL requests easier too.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 1.7.x - 2.0-dev</li>\n<li>PHP 5 (configured with cURL enabled)</li>\n<li>libcurl</li>\n</ol>\n\n<h2>Usage</h2>\n\n<pre><code>echo $this-&gt;curl-&gt;simple_get(''http://example.com/'');\necho $this-&gt;curl-&gt;simple_post(''curl_test/message'', array(''message''=&gt;''Sup buddy''));\n</code></pre>\n\n<p>For more up to date usage and in-depth examples check the CodeIgniter wiki page:</p>\n\n<p>http://codeigniter.com/wiki/Curl_library/</p>\n', 0, 1, '2011-03-01 01:01:18', '2011-03-01 01:01:18'); INSERT INTO `versions` VALUES(42, 27, '1.4', '1.4', 'http://getsparks.org/static/archives/tags/tags-v1.4.zip', '# Tags\n\nVersion 1.4\n\n* Author: [<NAME>](http://dhorrigan.com/)\n\n## DESCRIPTION\n\nTags is exactly what it sounds like...a simple way to use tags in your PHP application. This allows you to have tags that look like this:\n\n {foo:something:other}\n {date format="m/d/Y"}\n \n {blog:entries count="5"}\n Stuff here\n {/blog:entries}\n\n## USAGE\n\n### Loading\n\n#### Installed via Sparks\n\n $this->load->spark(''tags'');\n\n#### Installed Manually\n\n $this->load->library(''tags'');\n\n\nYou can send a config array to the constructor with the following options (these are the defaults):\n\n array(\n ''l_delim'' => ''{'',\n ''r_delim'' => ''{'',\n ''trigger'' => '''',\n );\n\nYou can also set the delimiters and triggers via the following functions:\n\n $this->tags->set_delimitiers(''{'', ''}'');\n $this->tags->set_trigger(''foo:'');\n\nTo parse a string of text you simply call the parse() function. The parse function accepts 3 parameters:\n\n1. $content - The content to parse\n2. [optional] $data - a keyed array of data to replace tag vars with (more below)\n3. [optional] $callback - A callback that will be called for each tag.\n\n### Normal Return\n\nIf no callback is specified then the function will return an array. Consider this is the content you sent:\n\n Hello there.\n \n {rest:get url="http://example.com/api" type="json"}\n Stuff here\n {/rest:get}\n \n Bye.\n\nParse would return this:\n\n Array\n (\n [content] => Hello there.\n\n marker_0k0dj3j4nJHDj22j\n\n Bye.\n [tags] => Array\n (\n [0] => Array\n (\n [full_tag] => {rest:get url="http://example.com/api" type="json"}\n Stuff here\n {/rest:get}\n [attributes] => Array\n (\n [url] => http://example.com/api\n [type] => json\n )\n\n [segments] => Array\n (\n [0] => rest\n [1] => get\n )\n\n [content] => \n Stuff here\n\n [marker] => marker_0k0dj3j4nJHDj22j\n )\n\n )\n\n )\n\n### Using the Data Array\n\nThe data array is a keyed array who''s contents will replace tags with the same name. Example:\n\n {foo:bar}\n\nWould be replaced with "Hello World" when the following data array is sent to the parse function:\n\n $data[''foo''][''bar''] = "Hello World"\n \nYou can use tag pairs to loop through data as well:\n\n#### Tag:\n\n {books}\n {title} by {author}<br />\n {/books}\n\n#### Data\n\n $data = array(\n ''books'' => array(\n array(\n ''title'' => ''PHP for Dummies'',\n ''author'' => ''<NAME>''\n ),\n array(\n ''title'' => ''CodeIgniter for Dummies'',\n ''author'' => ''<NAME>''\n )\n )\n );\n\n#### Resulting Output\n\n PHP for Dummies by <NAME>\n CodeIgniter for Dummies by Jane Doe\n\n### Callbacks\n\nThe callback must be in a form that is_callable() accepts (typically array(object, method)). The callbac function should take 1 parameter (an array).\n\nThe callback will be sent the tag information in the form of an array. Consider the following \n\n {rest:get url="http://example.com/api" type="json"}\n Stuff here\n {/rest:get}\n\nWould send the callback function the following array:\n\n Array\n (\n [full_tag] => {rest:get url="http://example.com/api" type="json"}\n Stuff here\n {/rest:get}\n [attributes] => Array\n (\n [url] => http://example.com/api\n [type] => json\n )\n\n [segments] => Array\n (\n [0] => rest\n [1] => get\n )\n\n [content] => \n Stuff here\n\n [marker] => marker_0k0dj3j4nJHDj22j\n )\n', '<h1>Tags</h1>\n\n<p>Version 1.4</p>\n\n<ul>\n<li>Author: <a href="http://dhorrigan.com/"><NAME></a></li>\n</ul>\n\n<h2>DESCRIPTION</h2>\n\n<p>Tags is exactly what it sounds like...a simple way to use tags in your PHP application. This allows you to have tags that look like this:</p>\n\n<pre><code>{foo:something:other}\n{date format="m/d/Y"}\n\n{blog:entries count="5"}\nStuff here\n{/blog:entries}\n</code></pre>\n\n<h2>USAGE</h2>\n\n<h3>Loading</h3>\n\n<h4>Installed via Sparks</h4>\n\n<pre><code>$this-&gt;load-&gt;spark(''tags'');\n</code></pre>\n\n<h4>Installed Manually</h4>\n\n<pre><code>$this-&gt;load-&gt;library(''tags'');\n</code></pre>\n\n<p>You can send a config array to the constructor with the following options (these are the defaults):</p>\n\n<pre><code>array(\n ''l_delim'' =&gt; ''{'',\n ''r_delim'' =&gt; ''{'',\n ''trigger'' =&gt; '''',\n);\n</code></pre>\n\n<p>You can also set the delimiters and triggers via the following functions:</p>\n\n<pre><code>$this-&gt;tags-&gt;set_delimitiers(''{'', ''}'');\n$this-&gt;tags-&gt;set_trigger(''foo:'');\n</code></pre>\n\n<p>To parse a string of text you simply call the parse() function. The parse function accepts 3 parameters:</p>\n\n<ol>\n<li>$content - The content to parse</li>\n<li>[optional] $data - a keyed array of data to replace tag vars with (more below)</li>\n<li>[optional] $callback - A callback that will be called for each tag.</li>\n</ol>\n\n<h3>Normal Return</h3>\n\n<p>If no callback is specified then the function will return an array. Consider this is the content you sent:</p>\n\n<pre><code>Hello there.\n\n{rest:get url="http://example.com/api" type="json"}\nStuff here\n{/rest:get}\n\nBye.\n</code></pre>\n\n<p>Parse would return this:</p>\n\n<pre><code>Array\n(\n [content] =&gt; Hello there.\n\nmarker_0k0dj3j4nJHDj22j\n\nBye.\n [tags] =&gt; Array\n (\n [0] =&gt; Array\n (\n [full_tag] =&gt; {rest:get url="http://example.com/api" type="json"}\nStuff here\n{/rest:get}\n [attributes] =&gt; Array\n (\n [url] =&gt; http://example.com/api\n [type] =&gt; json\n )\n\n [segments] =&gt; Array\n (\n [0] =&gt; rest\n [1] =&gt; get\n )\n\n [content] =&gt; \nStuff here\n\n [marker] =&gt; marker_0k0dj3j4nJHDj22j\n )\n\n )\n\n)\n</code></pre>\n\n<h3>Using the Data Array</h3>\n\n<p>The data array is a keyed array who''s contents will replace tags with the same name. Example:</p>\n\n<pre><code>{foo:bar}\n</code></pre>\n\n<p>Would be replaced with "Hello World" when the following data array is sent to the parse function:</p>\n\n<pre><code>$data[''foo''][''bar''] = "Hello World"\n</code></pre>\n\n<p>You can use tag pairs to loop through data as well:</p>\n\n<h4>Tag:</h4>\n\n<pre><code>{books}\n{title} by {author}&lt;br /&gt;\n{/books}\n</code></pre>\n\n<h4>Data</h4>\n\n<pre><code>$data = array(\n ''books'' =&gt; array(\n array(\n ''title'' =&gt; ''PHP for Dummies'',\n ''author'' =&gt; ''<NAME>''\n ),\n array(\n ''title'' =&gt; ''CodeIgniter for Dummies'',\n ''author'' =&gt; ''<NAME>''\n )\n )\n);\n</code></pre>\n\n<h4>Resulting Output</h4>\n\n<pre><code>PHP for Dummies by <NAME>\nCodeIgniter for Dummies by J<NAME>\n</code></pre>\n\n<h3>Callbacks</h3>\n\n<p>The callback must be in a form that is_callable() accepts (typically array(object, method)). The callbac function should take 1 parameter (an array).</p>\n\n<p>The callback will be sent the tag information in the form of an array. Consider the following </p>\n\n<pre><code>{rest:get url="http://example.com/api" type="json"}\nStuff here\n{/rest:get}\n</code></pre>\n\n<p>Would send the callback function the following array:</p>\n\n<pre><code>Array\n(\n [full_tag] =&gt; {rest:get url="http://example.com/api" type="json"}\nStuff here\n{/rest:get}\n [attributes] =&gt; Array\n (\n [url] =&gt; http://example.com/api\n [type] =&gt; json\n )\n\n [segments] =&gt; Array\n (\n [0] =&gt; rest\n [1] =&gt; get\n )\n\n [content] =&gt; \nStuff here\n\n [marker] =&gt; marker_0k0dj3j4nJHDj22j\n)\n</code></pre>\n', 0, 1, '2011-03-01 01:54:16', '2011-03-01 01:54:16'); INSERT INTO `versions` VALUES(43, 24, '3.6', '3.6', 'http://getsparks.org/static/archives/autoform/autoform-v3.6.zip', '', '', 0, 1, '2011-03-01 02:49:51', '2011-03-01 02:49:51'); INSERT INTO `versions` VALUES(44, 28, '1.0.0', 'v1.1', 'http://getsparks.org/static/archives/prowl/prowl-vv1.1.zip', 'CodeIgniter-Prowl\n=================\n\nSend iPhone notifications from your CodeIgniter application with the Prowl library.\nBased on the PHP Prowl from <NAME> and cleaned up.\n\n\nRequirements\n------------\n\n1. an iPhone\n2. the Prowl app from the App Store installed on your iPhone\n3. a [Prowl account](https://prowl.weks.net/register.php)\n\n\nUsage\n-----\n\n $config[''username''] = ''KanyeWest'';\n $config[''password''] =''<PASSWORD>'';\n \n // optional. Defaults to CI Prowl\n $config[''application''] = "Kayne''s Calender";\n \n $this->load->library(''prowl'', $config);\n \n $result = $this->prowl->send(''Reminder'', ''Be an idiot in public.'');\n \n print_r($result);\n\nSimple as that! \n\n\nTo-do\n-----\n\nI''ll add a config file for it at some point.\n\n\nExtra\n-----\n\nIf you''d like to request changes, report bug fixes, or contact\nthe developer of this library, email <<EMAIL>>', '<h1>CodeIgniter-Prowl</h1>\n\n<p>Send iPhone notifications from your CodeIgniter application with the Prowl library.\nBased on the PHP Prowl from <NAME> and cleaned up.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>an iPhone</li>\n<li>the Prowl app from the App Store installed on your iPhone</li>\n<li>a <a href="https://prowl.weks.net/register.php">Prowl account</a></li>\n</ol>\n\n<h2>Usage</h2>\n\n<pre><code>$config[''username''] = ''KanyeWest'';\n$config[''password''] =''<PASSWORD>'';\n\n// optional. Defaults to CI Prowl\n$config[''application''] = "Kayne''s Calender";\n\n$this-&gt;load-&gt;library(''prowl'', $config);\n\n$result = $this-&gt;prowl-&gt;send(''Reminder'', ''Be an idiot in public.'');\n\nprint_r($result);\n</code></pre>\n\n<p>Simple as that! </p>\n\n<h2>To-do</h2>\n\n<p>I''ll add a config file for it at some point.</p>\n\n<h2>Extra</h2>\n\n<p>If you''d like to request changes, report bug fixes, or contact\nthe developer of this library, email <a href="&#x6d;&#x61;&#x69;&#x6c;&#116;&#111;&#58;&#101;m&#x61;&#x69;&#x6c;&#x40;&#112;&#104;&#105;&#108;s&#x74;&#x75;&#x72;&#x67;&#101;&#111;&#110;&#46;c&#x6f;&#x2e;&#x75;&#x6b;">&#101;m&#x61;&#x69;&#x6c;&#x40;&#112;&#104;&#105;&#108;s&#x74;&#x75;&#x72;&#x67;&#101;&#111;&#110;&#46;c&#x6f;&#x2e;&#x75;&#x6b;</a></p>\n', 0, 1, '2011-03-01 10:44:00', '2011-03-01 10:44:00'); INSERT INTO `versions` VALUES(45, 17, '1.0.0', '1.0.0', 'http://getsparks.org/static/archives/base_geo/base_geo-v1.0.0.zip', '**Base_Geo** is a library to make geo-location lookup''s stupid easy. Right now, you can look up an IP address or an address. \n\n## Installation ##\n\nTo install via Sparks, run the following:\n\n tools/spark install -vX.X.X base_geo\n \nReplace the "X.X.X" with the specific version you are wanting to install, like this:\n\n tools/spark install -v1.0.0 base_geo\n \nOpen the config file - config/base_geo.php. Replace the "api_key" and "api_secret" values with your own from [http://simplegeo.com](http://simplegeo.com) - it''s totally free!\n \n## Usage ##\n\n $this->sparks->load("base_geo/X.X.X");\n $locate_data = $this->base_geo->locate_ip(''1.1.1.1'');\n \n## Functions ##\n\n* **locate_ip()** - retrieve geo-location data based on IP address.\n* **locate_address()** - retrieve geo-location data based on street address.', '<p><strong>Base_Geo</strong> is a library to make geo-location lookup''s stupid easy. Right now, you can look up an IP address or an address. </p>\n\n<h2>Installation</h2>\n\n<p>To install via Sparks, run the following:</p>\n\n<pre><code>tools/spark install -vX.X.X base_geo\n</code></pre>\n\n<p>Replace the "X.X.X" with the specific version you are wanting to install, like this:</p>\n\n<pre><code>tools/spark install -v1.0.0 base_geo\n</code></pre>\n\n<p>Open the config file - config/base<em>geo.php. Replace the "api</em>key" and "api_secret" values with your own from <a href="http://simplegeo.com">http://simplegeo.com</a> - it''s totally free!</p>\n\n<h2>Usage</h2>\n\n<pre><code>$this-&gt;sparks-&gt;load("base_geo/X.X.X");\n$locate_data = $this-&gt;base_geo-&gt;locate_ip(''1.1.1.1'');\n</code></pre>\n\n<h2>Functions</h2>\n\n<ul>\n<li><strong>locate_ip()</strong> - retrieve geo-location data based on IP address.</li>\n<li><strong>locate_address()</strong> - retrieve geo-location data based on street address.</li>\n</ul>\n', 0, 1, '2011-03-01 21:18:20', '2011-03-01 21:18:20'); INSERT INTO `versions` VALUES(47, 30, '0.3.7', '0.3.7', 'http://getsparks.org/static/archives/mongodb/mongodb-v0.3.7.zip', 'This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.\n\nAdd the file Mongo_db.php to your /application/libraries folder.\nAdd the file mongodb.php to your /application/config folder.\n\nUpdate the config file.\n\nYou can now autoload the library or include it in one of your controllers at run time.\n\nYou can interact with the database using many of the active record functions that CodeIgniter provides.\n\n e.g. $this->mongo_db->where_gte(''age'', 18)->where(array(''country'' => ''UK'', ''can_drink'' => TRUE))->get(''people'');\n \nThe result will be an array of documents.\n\nLast update - 13th September 2010\n\n\n= Select Functions =\n\nSelect Get select fields from returned documents\nWhere Where section of the query\nWhere_in Where something is in an array of something\nWhere_in_all Where something is in all of an array of something\nWhere_not_in Where something is not in array of something\nWhere_gt Where something is greater than something\nWhere_gte Where something is greater than or equal to something\nWhere_lt Where something is less than something\nWhere_lte Where something is less than or equal to something\nWhere_not_equal Where something is not equal to something\nWhere_near Where something is near to something (2d geospatial search)\nOrder_by Order the results\nLimit Limit the number of returned results\n\n= Insert Function =\n\nInsert Insert a new document into a collection\n\n= Update Functions =\n\nUpdate Update a single document in a collection\nUpdate_all Update all documents in a collection\n\n= Delete Functions =\n\nDelete Delete a single document in a collection\nDelete_all Delete all documents in a collection\n\n= Index Functions =\nset_index Creates a new index\ndelete_index Deletes an index\n\n= Database Functions =\ndrop_db Drops a database\nswitch_db Switch to a different database\n\n= Collection Functions =\ndrop_collection Drops a collection\n\n= TODO =\n\nMap/reduce\n\n= Maybes =\n\nAdd user\nSwitch to user\nRemove user\n', '<p>This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.</p>\n\n<p>Add the file Mongo_db.php to your /application/libraries folder.\nAdd the file mongodb.php to your /application/config folder.</p>\n\n<p>Update the config file.</p>\n\n<p>You can now autoload the library or include it in one of your controllers at run time.</p>\n\n<p>You can interact with the database using many of the active record functions that CodeIgniter provides.</p>\n\n<pre><code>e.g. $this-&gt;mongo_db-&gt;where_gte(''age'', 18)-&gt;where(array(''country'' =&gt; ''UK'', ''can_drink'' =&gt; TRUE))-&gt;get(''people'');\n</code></pre>\n\n<p>The result will be an array of documents.</p>\n\n<p>Last update - 13th September 2010</p>\n\n<p>= Select Functions =</p>\n\n<p>Select Get select fields from returned documents\nWhere Where section of the query\nWhere<em>in Where something is in an array of something\nWhere</em>in<em>all Where something is in all of an array of something\nWhere</em>not<em>in Where something is not in array of something\nWhere</em>gt Where something is greater than something\nWhere<em>gte Where something is greater than or equal to something\nWhere</em>lt Where something is less than something\nWhere<em>lte Where something is less than or equal to something\nWhere</em>not<em>equal Where something is not equal to something\nWhere</em>near Where something is near to something (2d geospatial search)\nOrder_by Order the results\nLimit Limit the number of returned results</p>\n\n<p>= Insert Function =</p>\n\n<p>Insert Insert a new document into a collection</p>\n\n<p>= Update Functions =</p>\n\n<p>Update Update a single document in a collection\nUpdate_all Update all documents in a collection</p>\n\n<p>= Delete Functions =</p>\n\n<p>Delete Delete a single document in a collection\nDelete_all Delete all documents in a collection</p>\n\n<p>= Index Functions =\nset<em>index Creates a new index\ndelete</em>index Deletes an index</p>\n\n<p>= Database Functions =\ndrop<em>db Drops a database\nswitch</em>db Switch to a different database</p>\n\n<p>= Collection Functions =\ndrop_collection Drops a collection</p>\n\n<p>= TODO =</p>\n\n<p>Map/reduce</p>\n\n<p>= Maybes =</p>\n\n<p>Add user\nSwitch to user\nRemove user</p>\n', 1, 1, '2011-03-02 16:09:32', '2011-03-02 16:09:32'); INSERT INTO `versions` VALUES(56, 30, '0.3.7.2', '0.3.7.2', 'http://getsparks.org/static/archives/mongodb/mongodb-v0.3.7.2.zip', 'This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.\n\nAdd the file Mongo_db.php to your /application/libraries folder.\nAdd the file mongodb.php to your /application/config folder.\n\nUpdate the config file.\n\nYou can now autoload the library or include it in one of your controllers at run time.\n\nYou can interact with the database using many of the active record functions that CodeIgniter provides.\n\n e.g. $this->mongo_db->where_gte(''age'', 18)->where(array(''country'' => ''UK'', ''can_drink'' => TRUE))->get(''people'');\n \nThe result will be an array of documents.\n\nLast update - 13th September 2010\n\n\n= Select Functions =\n\nSelect Get select fields from returned documents\nWhere Where section of the query\nWhere_in Where something is in an array of something\nWhere_in_all Where something is in all of an array of something\nWhere_not_in Where something is not in array of something\nWhere_gt Where something is greater than something\nWhere_gte Where something is greater than or equal to something\nWhere_lt Where something is less than something\nWhere_lte Where something is less than or equal to something\nWhere_not_equal Where something is not equal to something\nWhere_near Where something is near to something (2d geospatial search)\nOrder_by Order the results\nLimit Limit the number of returned results\n\n= Insert Function =\n\nInsert Insert a new document into a collection\n\n= Update Functions =\n\nUpdate Update a single document in a collection\nUpdate_all Update all documents in a collection\n\n= Delete Functions =\n\nDelete Delete a single document in a collection\nDelete_all Delete all documents in a collection\n\n= Index Functions =\nset_index Creates a new index\ndelete_index Deletes an index\n\n= Database Functions =\ndrop_db Drops a database\nswitch_db Switch to a different database\n\n= Collection Functions =\ndrop_collection Drops a collection\n\n= TODO =\n\nMap/reduce\n\n= Maybes =\n\nAdd user\nSwitch to user\nRemove user\n', '<p>This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.</p>\n\n<p>Add the file Mongo_db.php to your /application/libraries folder.\nAdd the file mongodb.php to your /application/config folder.</p>\n\n<p>Update the config file.</p>\n\n<p>You can now autoload the library or include it in one of your controllers at run time.</p>\n\n<p>You can interact with the database using many of the active record functions that CodeIgniter provides.</p>\n\n<pre><code>e.g. $this-&gt;mongo_db-&gt;where_gte(''age'', 18)-&gt;where(array(''country'' =&gt; ''UK'', ''can_drink'' =&gt; TRUE))-&gt;get(''people'');\n</code></pre>\n\n<p>The result will be an array of documents.</p>\n\n<p>Last update - 13th September 2010</p>\n\n<p>= Select Functions =</p>\n\n<p>Select Get select fields from returned documents\nWhere Where section of the query\nWhere<em>in Where something is in an array of something\nWhere</em>in<em>all Where something is in all of an array of something\nWhere</em>not<em>in Where something is not in array of something\nWhere</em>gt Where something is greater than something\nWhere<em>gte Where something is greater than or equal to something\nWhere</em>lt Where something is less than something\nWhere<em>lte Where something is less than or equal to something\nWhere</em>not<em>equal Where something is not equal to something\nWhere</em>near Where something is near to something (2d geospatial search)\nOrder_by Order the results\nLimit Limit the number of returned results</p>\n\n<p>= Insert Function =</p>\n\n<p>Insert Insert a new document into a collection</p>\n\n<p>= Update Functions =</p>\n\n<p>Update Update a single document in a collection\nUpdate_all Update all documents in a collection</p>\n\n<p>= Delete Functions =</p>\n\n<p>Delete Delete a single document in a collection\nDelete_all Delete all documents in a collection</p>\n\n<p>= Index Functions =\nset<em>index Creates a new index\ndelete</em>index Deletes an index</p>\n\n<p>= Database Functions =\ndrop<em>db Drops a database\nswitch</em>db Switch to a different database</p>\n\n<p>= Collection Functions =\ndrop_collection Drops a collection</p>\n\n<p>= TODO =</p>\n\n<p>Map/reduce</p>\n\n<p>= Maybes =</p>\n\n<p>Add user\nSwitch to user\nRemove user</p>\n', 0, 1, '2011-03-02 16:32:10', '2011-03-02 16:32:10'); INSERT INTO `versions` VALUES(62, 29, '1.0.1', '1.0.1', 'http://getsparks.org/static/archives/table_torch/table_torch-v1.0.1.zip', '# Table Torch Scaffolding Spark version 1.0\n\nTable Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.\n\n## Core Features\n\n- Set what tables and what fields of those tables you would like editable by Table Torch in your config file\n- Set what actions can be performed on each table, add, edit, delete\n- Searchable, sortable Listing pages\n- After editing or adding, you will return to the listing page in the previous state, pagination, sorting, search criteria in tact.\n- Views can be overridden from your controller\n- CRUD callbacks available to your controller\n\n## Setup Your Config Preferences\n\nIn sparks/table-torch/config/table_torch.php you will find the preferences for running your scaffold. The config file is well commented.\n\n## Basic Usage From Your Controller\n\n function __construct(){\n parent::__construct();\n // you would obviously need to do your authorization prior to letting the world see your Table Torch\n $this->load->spark( ''table-torch/1.0'');\n }\n\n function index(){\n // you can do this in any method you like does not have to be the index\n $this->table_torch->route();\n }\n\n## Overriding the Table Torch Views\nYou have the ability to override any action of Table Torch. To do so just add the action to the controller from which you used Table Torch and it will use your method instead, while still passing you all the data that Table Torch fetched for the page. The example below overrides edit page of the "users" table.\n\n### Actions That Can Be Overridden\n\n- [tableName]_add ( creating a new row )\n- [tableName]_edit ( the editing of an existing row )\n- [tableName]_listing ( the listing of all rows )\n\n### Loading Your Own View after an override\n\nIf you wish to load your own view for the page, specify FALSE in the third param. Or you can use the Table torch view. Either way, you will be using the template file specified in the *sparks/table-torch/1.0/config/table_torch.php* file\n\n // your custom view loaded\n function users_edit( $data ){\n // print_r( $data );\n $this->table_torch->load_view( ''user/edit'', $data, FALSE );\n }\n \n // the normal Table Torch view loaded\n function users_edit( $data ){\n // print_r( $data );\n $this->table_torch->load_view( ''form'', $data, TRUE );\n }\n\n## Callback Hooks\nYou can preform additional functions before or after the Table Torch form submissions. Available callbacks are \n\n- before_insert\n- after_insert\n- before_update\n- after_update\n- before_delete\n- after_delete\n\n## Example of Callbacks\n\n function before_delete( $table, $primary_key ){\n // do what you need to before deleting the row here, you are given the table and primary key being deleted...\n }\n\n function before_insert( $table, $data ){\n /*\n do what you need to do before inserting\n You must return the data that will be inserted\n */\n return $data;\n }\n\n function before_update( $table, $data ){\n /*\n do what you need to before updating a row\n you must return the data from this method\n */\n return $data;\n }\n\n function after_insert( $table, $data ){\n // do what you need to do before inserting\n }\n\n function after_update( $table, $data ){\n // do what you need to before updating a row\n }\n\n', '<h1>Table Torch Scaffolding Spark version 1.0</h1>\n\n<p>Table Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.</p>\n\n<h2>Core Features</h2>\n\n<ul>\n<li>Set what tables and what fields of those tables you would like editable by Table Torch in your config file</li>\n<li>Set what actions can be performed on each table, add, edit, delete</li>\n<li>Searchable, sortable Listing pages</li>\n<li>After editing or adding, you will return to the listing page in the previous state, pagination, sorting, search criteria in tact.</li>\n<li>Views can be overridden from your controller</li>\n<li>CRUD callbacks available to your controller</li>\n</ul>\n\n<h2>Setup Your Config Preferences</h2>\n\n<p>In sparks/table-torch/config/table_torch.php you will find the preferences for running your scaffold. The config file is well commented.</p>\n\n<h2>Basic Usage From Your Controller</h2>\n\n<pre><code>function __construct(){\n parent::__construct();\n // you would obviously need to do your authorization prior to letting the world see your Table Torch\n $this-&gt;load-&gt;spark( ''table-torch/1.0'');\n}\n\nfunction index(){\n // you can do this in any method you like does not have to be the index\n $this-&gt;table_torch-&gt;route();\n}\n</code></pre>\n\n<h2>Overriding the Table Torch Views</h2>\n\n<p>You have the ability to override any action of Table Torch. To do so just add the action to the controller from which you used Table Torch and it will use your method instead, while still passing you all the data that Table Torch fetched for the page. The example below overrides edit page of the "users" table.</p>\n\n<h3>Actions That Can Be Overridden</h3>\n\n<ul>\n<li>[tableName]_add ( creating a new row )</li>\n<li>[tableName]_edit ( the editing of an existing row )</li>\n<li>[tableName]_listing ( the listing of all rows )</li>\n</ul>\n\n<h3>Loading Your Own View after an override</h3>\n\n<p>If you wish to load your own view for the page, specify FALSE in the third param. Or you can use the Table torch view. Either way, you will be using the template file specified in the <em>sparks/table-torch/1.0/config/table_torch.php</em> file</p>\n\n<pre><code>// your custom view loaded\nfunction users_edit( $data ){\n // print_r( $data );\n $this-&gt;table_torch-&gt;load_view( ''user/edit'', $data, FALSE );\n}\n\n// the normal Table Torch view loaded\nfunction users_edit( $data ){\n // print_r( $data );\n $this-&gt;table_torch-&gt;load_view( ''form'', $data, TRUE );\n}\n</code></pre>\n\n<h2>Callback Hooks</h2>\n\n<p>You can preform additional functions before or after the Table Torch form submissions. Available callbacks are </p>\n\n<ul>\n<li>before_insert</li>\n<li>after_insert</li>\n<li>before_update</li>\n<li>after_update</li>\n<li>before_delete</li>\n<li>after_delete</li>\n</ul>\n\n<h2>Example of Callbacks</h2>\n\n<pre><code>function before_delete( $table, $primary_key ){\n // do what you need to before deleting the row here, you are given the table and primary key being deleted...\n}\n\nfunction before_insert( $table, $data ){\n /*\n do what you need to do before inserting\n You must return the data that will be inserted\n */\n return $data;\n}\n\nfunction before_update( $table, $data ){\n /*\n do what you need to before updating a row\n you must return the data from this method\n */\n return $data;\n}\n\nfunction after_insert( $table, $data ){\n // do what you need to do before inserting\n}\n\nfunction after_update( $table, $data ){\n // do what you need to before updating a row\n}\n</code></pre>\n', 1, 1, '2011-03-02 16:58:49', '2011-03-02 16:58:49'); INSERT INTO `versions` VALUES(63, 29, '1.0.2', '1.0.2', 'http://getsparks.org/static/archives/table_torch/table_torch-v1.0.2.zip', '# Table Torch Scaffolding Spark\n\nTable Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.\n\n## Core Features\n\n- Set what tables and what fields of those tables you would like editable by Table Torch in your config file\n- Set what actions can be performed on each table, add, edit, delete\n- Searchable, sortable Listing pages\n- After editing or adding, you will return to the listing page in the previous state, pagination, sorting, search criteria in tact.\n- Views can be overridden from your controller\n- CRUD callbacks available to your controller\n\n## Setup Your Config Preferences\n\nIn sparks/table-torch/config/table_torch.php you will find the preferences for running your scaffold. The config file is well commented.\n\n## Basic Usage From Your Controller\n\n function __construct(){\n parent::__construct();\n // you would obviously need to do your authorization prior to letting the world see your Table Torch\n $this->load->spark( ''table-torch/[version #]'');\n }\n\n function index(){\n // you can do this in any method you like does not have to be the index\n $this->table_torch->route();\n }\n\n## Overriding the Table Torch Views\nYou have the ability to override any action of Table Torch. To do so just add the action to the controller from which you used Table Torch and it will use your method instead, while still passing you all the data that Table Torch fetched for the page. The example below overrides edit page of the "users" table.\n\n### Actions That Can Be Overridden\n\n- [tableName]_add ( creating a new row )\n- [tableName]_edit ( the editing of an existing row )\n- [tableName]_listing ( the listing of all rows )\n\n### Loading Your Own View after an override\n\nIf you wish to load your own view for the page, specify FALSE in the third param. Or you can use the Table torch view. Either way, you will be using the template file specified in the *sparks/table-torch/1.0/config/table_torch.php* file\n\n // your custom view loaded\n function users_edit( $data ){\n // print_r( $data );\n $this->table_torch->load_view( ''user/edit'', $data, FALSE );\n }\n \n // the normal Table Torch view loaded\n function users_edit( $data ){\n // print_r( $data );\n $this->table_torch->load_view( ''form'', $data, TRUE );\n }\n\n## Callback Hooks\nYou can preform additional functions before or after the Table Torch form submissions. Available callbacks are \n\n- before_insert\n- after_insert\n- before_update\n- after_update\n- before_delete\n- after_delete\n\n## Example of Callbacks\n\n function before_delete( $table, $primary_key ){\n // do what you need to before deleting the row here, you are given the table and primary key being deleted...\n }\n\n function before_insert( $table, $data ){\n /*\n do what you need to do before inserting\n You must return the data that will be inserted\n */\n return $data;\n }\n\n function before_update( $table, $data ){\n /*\n do what you need to before updating a row\n you must return the data from this method\n */\n return $data;\n }\n\n function after_insert( $table, $data ){\n // do what you need to do before inserting\n }\n\n function after_update( $table, $data ){\n // do what you need to before updating a row\n }\n\n', '<h1>Table Torch Scaffolding Spark</h1>\n\n<p>Table Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.</p>\n\n<h2>Core Features</h2>\n\n<ul>\n<li>Set what tables and what fields of those tables you would like editable by Table Torch in your config file</li>\n<li>Set what actions can be performed on each table, add, edit, delete</li>\n<li>Searchable, sortable Listing pages</li>\n<li>After editing or adding, you will return to the listing page in the previous state, pagination, sorting, search criteria in tact.</li>\n<li>Views can be overridden from your controller</li>\n<li>CRUD callbacks available to your controller</li>\n</ul>\n\n<h2>Setup Your Config Preferences</h2>\n\n<p>In sparks/table-torch/config/table_torch.php you will find the preferences for running your scaffold. The config file is well commented.</p>\n\n<h2>Basic Usage From Your Controller</h2>\n\n<pre><code>function __construct(){\n parent::__construct();\n // you would obviously need to do your authorization prior to letting the world see your Table Torch\n $this-&gt;load-&gt;spark( ''table-torch/[version #]'');\n}\n\nfunction index(){\n // you can do this in any method you like does not have to be the index\n $this-&gt;table_torch-&gt;route();\n}\n</code></pre>\n\n<h2>Overriding the Table Torch Views</h2>\n\n<p>You have the ability to override any action of Table Torch. To do so just add the action to the controller from which you used Table Torch and it will use your method instead, while still passing you all the data that Table Torch fetched for the page. The example below overrides edit page of the "users" table.</p>\n\n<h3>Actions That Can Be Overridden</h3>\n\n<ul>\n<li>[tableName]_add ( creating a new row )</li>\n<li>[tableName]_edit ( the editing of an existing row )</li>\n<li>[tableName]_listing ( the listing of all rows )</li>\n</ul>\n\n<h3>Loading Your Own View after an override</h3>\n\n<p>If you wish to load your own view for the page, specify FALSE in the third param. Or you can use the Table torch view. Either way, you will be using the template file specified in the <em>sparks/table-torch/1.0/config/table_torch.php</em> file</p>\n\n<pre><code>// your custom view loaded\nfunction users_edit( $data ){\n // print_r( $data );\n $this-&gt;table_torch-&gt;load_view( ''user/edit'', $data, FALSE );\n}\n\n// the normal Table Torch view loaded\nfunction users_edit( $data ){\n // print_r( $data );\n $this-&gt;table_torch-&gt;load_view( ''form'', $data, TRUE );\n}\n</code></pre>\n\n<h2>Callback Hooks</h2>\n\n<p>You can preform additional functions before or after the Table Torch form submissions. Available callbacks are </p>\n\n<ul>\n<li>before_insert</li>\n<li>after_insert</li>\n<li>before_update</li>\n<li>after_update</li>\n<li>before_delete</li>\n<li>after_delete</li>\n</ul>\n\n<h2>Example of Callbacks</h2>\n\n<pre><code>function before_delete( $table, $primary_key ){\n // do what you need to before deleting the row here, you are given the table and primary key being deleted...\n}\n\nfunction before_insert( $table, $data ){\n /*\n do what you need to do before inserting\n You must return the data that will be inserted\n */\n return $data;\n}\n\nfunction before_update( $table, $data ){\n /*\n do what you need to before updating a row\n you must return the data from this method\n */\n return $data;\n}\n\nfunction after_insert( $table, $data ){\n // do what you need to do before inserting\n}\n\nfunction after_update( $table, $data ){\n // do what you need to before updating a row\n}\n</code></pre>\n', 0, 1, '2011-03-02 17:46:49', '2011-03-02 17:46:49'); INSERT INTO `versions` VALUES(64, 32, '0.1', '0.1', 'http://getsparks.org/static/archives/fire_log/fire_log-v0.1.zip', '', '\n', 0, 1, '2011-03-03 16:52:57', '2011-03-03 16:52:57'); INSERT INTO `versions` VALUES(65, 32, '0.2', '0.2', 'http://getsparks.org/static/archives/fire_log/fire_log-v0.2.zip', '# Fire Log Spark\n\nFire Log is a spark that lets you browse all the log files in your application/logs directory. \n\n- You can filter what types of items you would like to view DEBUG, ERROR, INFO\n- You can delete logs files from Fire Log to clear out your logs\n- Fire log uses a view that you can easily customize in sparks/fire\\_log/[version]/views/fire\\_log_view.php\n- You can change if tags are stripped in logs or not from the config\n- Language file for all text used\n\n## Usage\n\nReally Simple...\n \n // in your controller\n function logs(){\n /*\n highly advised that you use authentification before running this controller to keep the world out of your logs!!!\n you can use whatever method you like does not have to be logs\n */\n $this->load->spark( ''fire_log/[version #]'');\n // thats it, ill take if from there\n }\n', '<h1>Fire Log Spark</h1>\n\n<p>Fire Log is a spark that lets you browse all the log files in your application/logs directory. </p>\n\n<ul>\n<li>You can filter what types of items you would like to view DEBUG, ERROR, INFO</li>\n<li>You can delete logs files from Fire Log to clear out your logs</li>\n<li>Fire log uses a view that you can easily customize in sparks/fire&#95;log/[version]/views/fire&#95;log_view.php</li>\n<li>You can change if tags are stripped in logs or not from the config</li>\n<li>Language file for all text used</li>\n</ul>\n\n<h2>Usage</h2>\n\n<p>Really Simple...</p>\n\n<pre><code>// in your controller\nfunction logs(){\n /*\n highly advised that you use authentification before running this controller to keep the world out of your logs!!!\n you can use whatever method you like does not have to be logs\n */\n $this-&gt;load-&gt;spark( ''fire_log/[version #]'');\n // thats it, ill take if from there\n}\n</code></pre>\n', 0, 1, '2011-03-03 16:55:31', '2011-03-03 16:55:31'); INSERT INTO `versions` VALUES(66, 32, '0.3', '0.3', 'http://getsparks.org/static/archives/fire_log/fire_log-v0.3.zip', '# Fire Log Spark\n\nFire Log is a spark that lets you browse all the log files in your application/logs directory. \n\n- You can filter what types of items you would like to view DEBUG, ERROR, INFO\n- You can delete logs files from Fire Log to clear out your logs\n- Fire log uses a view that you can easily customize in sparks/fire\\_log/[version]/views/fire\\_log_view.php\n- You can change if tags are stripped in logs or not from the config\n- Language file for all text used\n\n## Usage\n\nReally Simple...\n \n // in your controller\n function logs(){\n /*\n highly advised that you use authentification before running this controller to keep the world out of your logs!!!\n you can use whatever method you like does not have to be logs\n */\n $this->load->spark( ''fire_log/[version #]'');\n // thats it, ill take if from there\n }\n', '<h1>Fire Log Spark</h1>\n\n<p>Fire Log is a spark that lets you browse all the log files in your application/logs directory. </p>\n\n<ul>\n<li>You can filter what types of items you would like to view DEBUG, ERROR, INFO</li>\n<li>You can delete logs files from Fire Log to clear out your logs</li>\n<li>Fire log uses a view that you can easily customize in sparks/fire&#95;log/[version]/views/fire&#95;log_view.php</li>\n<li>You can change if tags are stripped in logs or not from the config</li>\n<li>Language file for all text used</li>\n</ul>\n\n<h2>Usage</h2>\n\n<p>Really Simple...</p>\n\n<pre><code>// in your controller\nfunction logs(){\n /*\n highly advised that you use authentification before running this controller to keep the world out of your logs!!!\n you can use whatever method you like does not have to be logs\n */\n $this-&gt;load-&gt;spark( ''fire_log/[version #]'');\n // thats it, ill take if from there\n}\n</code></pre>\n', 0, 1, '2011-03-04 02:34:41', '2011-03-04 02:34:41'); INSERT INTO `versions` VALUES(67, 33, '1.0', '1.0', 'http://getsparks.org/static/archives/tmdb/tmdb-v1.0.zip', 'This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.\n\nLoading the library is simple and works in the usual way\n\n $this->load->library(''TMDb'');\n\nSo now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getInfo/en/json/APIKEY/187 but to call this same method using this library its as simple as.\n\n $data = $this->tmdb->call(''APIKEY'', ''Movie.getInfo'', ''187'');\n\nYou can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write\n\n echo $data->name;\n\nThats a short example on how you can use this library, a more detailed documentation is coming soon.\n\nEnjoy!', '<p>This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.</p>\n\n<p>Loading the library is simple and works in the usual way</p>\n\n<pre><code>$this-&gt;load-&gt;library(''TMDb'');\n</code></pre>\n\n<p>So now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getInfo/en/json/APIKEY/187 but to call this same method using this library its as simple as.</p>\n\n<pre><code>$data = $this-&gt;tmdb-&gt;call(''APIKEY'', ''Movie.getInfo'', ''187'');\n</code></pre>\n\n<p>You can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write</p>\n\n<pre><code>echo $data-&gt;name;\n</code></pre>\n\n<p>Thats a short example on how you can use this library, a more detailed documentation is coming soon.</p>\n\n<p>Enjoy!</p>\n', 1, 1, '2011-03-04 02:34:49', '2011-03-04 02:34:49'); INSERT INTO `versions` VALUES(68, 22, 'v0.1.1', 'v0.1.1', 'http://getsparks.org/static/archives/amazon-ses/amazon-ses-vv0.1.1.zip', 'CodeIgniter Amazon SES\n======================\nA CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES). This library was designed with the standard CodeIgniter email class in mind. As a result, most methods look the same, ensuring a minimal learning curve.\n\nNOTE: this code is still under heavy development and currently provides only the very basics of the AWS SES API (don''t you like acronyms?), sending email.\n\nRequirements\n------------\n1. PHP 5.1+\n2. CodeIgniter 2.0+ (http://codeigniter.com)\n3. libcurl\n4. Phil Sturgeon''s CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl)\n5. Amazon Web Services account (http://aws.amazon.com)\n\nSpark\n-------------\nThis library is also released as a Spark (GetSparks.org). If you use this library in any other way, **don''t copy the autoload.php to your config directory**.\n\nDocumentation\n-------------\n\n### Configuration\nThis library expects a configuration file to function correctly. A template for this file is provided with the library. \n\n### Recipients\n\nSet the "To" address(es) for a message.\n\n $this->amazon_ses->to(''<EMAIL>'');\n\nSet the "CC" address(es) (carbon copy) for a message.\n\n $this->amazon_ses->cc(''<EMAIL>, <EMAIL>'');\n\nSet the "BCC" address(es) (blind carbon copy) for a message.\n\n $this->amazon_ses->bcc(array(''<EMAIL>'', ''<EMAIL>'', ''<EMAIL>''));\n \nThese three methods expect valid e-mail addresses as a string, array or comma separated list.\n\n###Message\n\nSet the subject for a message.\n\n $this->amazon_ses->subject(''Open me!'');\n \nSet the message to be sent.\n\n $this->amazon_ses->message(''<strong>Use HTML</strong>'');\n\nSet the alternative message (plain-text) to be sent. When not specified, an alternative message is generated by using PHP''s strip_tags() function.\n\n $this->amazon_ses->message_alt(''No HTML?!'');\n\nSends the message. Returns true on success.\n\n $this->amazon_ses->send();\n\n###Misc\n\nSends the message in debug mode. In debug mode, the send() methods returns the actual API response instead of a boolean. Call this method before calling the send method.\n \n $this->amazon_ses->debug();\n\nPreserves recipient after the message has been successfully send. When you call this method, all recipients will be preserved during the objects life. This makes it possible to sent an additional message without re-specifying the recipients.\n \n $this->amazon_ses->destroy();\n\nContributing\n------------\nI am a firm believer of social coding, so <strike>if</strike> when you find a bug, please fork my code on GitHub (http://github.com/joelcox/codeigniter-amazon-ses) and squash it. I will be happy to merge it back in to the code base (and add you to the "Thanks to" section). If you''re not too comfortable using Git or messing with the inner workings of this library, please open a new issue (http://github.com/joelcox/codeigniter-amazon-ses/issues). \n\nThanks to\n---------\n* <NAME> (http://philsturgeon.co.uk), for creating the CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl) and thus taking care of all the cURL hassle.', '<h1>CodeIgniter Amazon SES</h1>\n\n<p>A CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES). This library was designed with the standard CodeIgniter email class in mind. As a result, most methods look the same, ensuring a minimal learning curve.</p>\n\n<p>NOTE: this code is still under heavy development and currently provides only the very basics of the AWS SES API (don''t you like acronyms?), sending email.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 2.0+ (http://codeigniter.com)</li>\n<li>libcurl</li>\n<li>Phil Sturgeon''s CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl)</li>\n<li>Amazon Web Services account (http://aws.amazon.com)</li>\n</ol>\n\n<h2>Spark</h2>\n\n<p>This library is also released as a Spark (GetSparks.org). If you use this library in any other way, <strong>don''t copy the autoload.php to your config directory</strong>.</p>\n\n<h2>Documentation</h2>\n\n<h3>Configuration</h3>\n\n<p>This library expects a configuration file to function correctly. A template for this file is provided with the library. </p>\n\n<h3>Recipients</h3>\n\n<p>Set the "To" address(es) for a message.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;to(''<EMAIL>'');\n</code></pre>\n\n<p>Set the "CC" address(es) (carbon copy) for a message.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;cc(''<EMAIL>, <EMAIL>'');\n</code></pre>\n\n<p>Set the "BCC" address(es) (blind carbon copy) for a message.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;bcc(array(''<EMAIL>'', ''bcc<EMAIL>'', ''<EMAIL>''));\n</code></pre>\n\n<p>These three methods expect valid e-mail addresses as a string, array or comma separated list.</p>\n\n<h3>Message</h3>\n\n<p>Set the subject for a message.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;subject(''Open me!'');\n</code></pre>\n\n<p>Set the message to be sent.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;message(''&lt;strong&gt;Use HTML&lt;/strong&gt;'');\n</code></pre>\n\n<p>Set the alternative message (plain-text) to be sent. When not specified, an alternative message is generated by using PHP''s strip_tags() function.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;message_alt(''No HTML?!'');\n</code></pre>\n\n<p>Sends the message. Returns true on success.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;send();\n</code></pre>\n\n<h3>Misc</h3>\n\n<p>Sends the message in debug mode. In debug mode, the send() methods returns the actual API response instead of a boolean. Call this method before calling the send method.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;debug();\n</code></pre>\n\n<p>Preserves recipient after the message has been successfully send. When you call this method, all recipients will be preserved during the objects life. This makes it possible to sent an additional message without re-specifying the recipients.</p>\n\n<pre><code>$this-&gt;amazon_ses-&gt;destroy();\n</code></pre>\n\n<h2>Contributing</h2>\n\n<p>I am a firm believer of social coding, so <strike>if</strike> when you find a bug, please fork my code on GitHub (http://github.com/joelcox/codeigniter-amazon-ses) and squash it. I will be happy to merge it back in to the code base (and add you to the "Thanks to" section). If you''re not too comfortable using Git or messing with the inner workings of this library, please open a new issue (http://github.com/joelcox/codeigniter-amazon-ses/issues). </p>\n\n<h2>Thanks to</h2>\n\n<ul>\n<li><NAME> (http://philsturgeon.co.uk), for creating the CodeIgniter cURL library (http://github.com/philsturgeon/codeigniter-curl) and thus taking care of all the cURL hassle.</li>\n</ul>\n', 0, 1, '2011-03-04 10:57:22', '2011-03-04 10:57:22'); INSERT INTO `versions` VALUES(69, 34, 'v0.3', 'v0.3', 'http://getsparks.org/static/archives/assets/assets-vv0.3.zip', '# Simple Assets Library\n\nA simple assets library that has the ability to combine and minify your JavaScript and CSS assets.\nAdditionally there''s a <a href="http://leafo.net/lessphp/">LessPHP</a> compiler, based on the original Ruby implementation.\n\n## Third Party Libraries\n\nThe libraries <a href="http://code.google.com/p/jsmin-php/">JSMin</a>, <a href="http://code.google.com/p/minify/">CSSMin</a> and <a href="http://leafo.net/lessphp/">LessPHP</a> are all created by third parties, but they''re included in this package for convinience.\n\n## Requirements\n\n1. PHP 5.1+\n2. CodeIgniter 2.0\n3. Directory structure for the assets files, with a writeable cache directory\n\n## Documentation\n\nSet all your preferences in the config file (assets directories, options to minify, combine and parse with LessPHP).\nNow you can use the helper methods in your views like this:\n \n <?php display_css(array(''init.css'', ''style.css'')); ?>\n <?php display_js(array(''libs/modernizr-1.6.js'', ''libs/jquery-1.4.4.js'', ''plugins.js'', ''script.js'')); ?>\n\nThere''s also a method for clearing all cached files:\n \n $this->assets->clear_cache();\n\nThe default configuration assumes your assets directory is in the root of your project. Be sure to set the permissions for the cache directory so it can be writeable.\n\n## Directory structure example\n\n /application\n /assets\n /cache\n /css\n /images\n /js\n /sparks\n /system\n\n## Additional info\n\nIf you set the minify options and combine option in your configuration to false, LessPHP won''t work. This will work in future releases.', '<h1>Simple Assets Library</h1>\n\n<p>A simple assets library that has the ability to combine and minify your JavaScript and CSS assets.\nAdditionally there''s a <a href="http://leafo.net/lessphp/">LessPHP</a> compiler, based on the original Ruby implementation.</p>\n\n<h2>Third Party Libraries</h2>\n\n<p>The libraries <a href="http://code.google.com/p/jsmin-php/">JSMin</a>, <a href="http://code.google.com/p/minify/">CSSMin</a> and <a href="http://leafo.net/lessphp/">LessPHP</a> are all created by third parties, but they''re included in this package for convinience.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 2.0</li>\n<li>Directory structure for the assets files, with a writeable cache directory</li>\n</ol>\n\n<h2>Documentation</h2>\n\n<p>Set all your preferences in the config file (assets directories, options to minify, combine and parse with LessPHP).\nNow you can use the helper methods in your views like this:</p>\n\n<pre><code>&lt;?php display_css(array(''init.css'', ''style.css'')); ?&gt;\n&lt;?php display_js(array(''libs/modernizr-1.6.js'', ''libs/jquery-1.4.4.js'', ''plugins.js'', ''script.js'')); ?&gt;\n</code></pre>\n\n<p>There''s also a method for clearing all cached files:</p>\n\n<pre><code>$this-&gt;assets-&gt;clear_cache();\n</code></pre>\n\n<p>The default configuration assumes your assets directory is in the root of your project. Be sure to set the permissions for the cache directory so it can be writeable.</p>\n\n<h2>Directory structure example</h2>\n\n<pre><code>/application\n/assets\n /cache\n /css\n /images\n /js\n/sparks\n/system\n</code></pre>\n\n<h2>Additional info</h2>\n\n<p>If you set the minify options and combine option in your configuration to false, LessPHP won''t work. This will work in future releases.</p>\n', 0, 1, '2011-03-04 16:52:34', '2011-03-04 16:52:34'); INSERT INTO `versions` VALUES(71, 35, 'v0.2', 'v0.2', 'http://getsparks.org/static/archives/assets-helper/assets-helper-vv0.2.zip', 'Helper to load Assets to your project.\n\nTo use this helper you must create a assets folder into your home directory.\n\nassets/\nassets/css\nassets/js\n\n\nIn order to use it you can do like this:\n\n$data[''css''] = load_css(''global.css'');\n// -- OR --\n$data[''css''] = load_css(array(''global.css'',''page.css''));\n// -- OR --\n$data[''css''] = load_css(array(\n array(''screen.css'', ''screen, projection''),\n array(''print.css'', ''print''),\n));\n\n$data[''js''] = load_js(array(''js1.js'',''js2.js''));\n\n$this->load->view(''example'',$data);\n\n\nexample.php\n<head>\n<?php echo $js; ?>\n<?php echo $css; ?>\n</head>\n', '<p>Helper to load Assets to your project.</p>\n\n<p>To use this helper you must create a assets folder into your home directory.</p>\n\n<p>assets/\nassets/css\nassets/js</p>\n\n<p>In order to use it you can do like this:</p>\n\n<p>$data[''css''] = load<em>css(''global.css'');\n// -- OR --\n$data[''css''] = load</em>css(array(''global.css'',''page.css''));\n// -- OR --\n$data[''css''] = load_css(array(\n array(''screen.css'', ''screen, projection''),\n array(''print.css'', ''print''),\n));</p>\n\n<p>$data[''js''] = load_js(array(''js1.js'',''js2.js''));</p>\n\n<p>$this->load->view(''example'',$data);</p>\n\n<p>example.php\n<head>\n<?php echo $js; ?>\n<?php echo $css; ?>\n</head></p>\n', 0, 1, '2011-03-04 20:11:23', '2011-03-04 20:11:23'); INSERT INTO `versions` VALUES(73, 33, '1.0', '1.0', 'http://getsparks.org/static/archives/tmdb/tmdb-v1.0.zip', 'This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.\n\nLoading the library is simple and works in the usual way\n\n $this->load->library(''TMDb'');\n\nSo now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getInfo/en/json/APIKEY/187 but to call this same method using this library its as simple as.\n\n $data = $this->tmdb->call(''APIKEY'', ''Movie.getInfo'', ''187'');\n\nYou can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write\n\n echo $data->name;\n\nThats a short example on how you can use this library, a more detailed documentation is coming soon.\n\nEnjoy!', '<p>This is the first library I have released which is a TMDb (The Movie Database) Library that I wrote that allows easy access to most of the methods in the TMDb API and returns the response in an array. It still needs a lot of work, but please let me know what you think and give me some feedback and suggestions.</p>\n\n<p>Loading the library is simple and works in the usual way</p>\n\n<pre><code>$this-&gt;load-&gt;library(''TMDb'');\n</code></pre>\n\n<p>So now the library is loaded, you will want to make your first call. Usually you would call the TMDb API URL such as http://api.themoviedb.org/2.1/Movie.getInfo/en/json/APIKEY/187 but to call this same method using this library its as simple as.</p>\n\n<pre><code>$data = $this-&gt;tmdb-&gt;call(''APIKEY'', ''Movie.getInfo'', ''187'');\n</code></pre>\n\n<p>You can then use this $data array to show any of the nodes that would usually appear in the TMDb response. For example, if you wanted to show the name of the movie, you would write</p>\n\n<pre><code>echo $data-&gt;name;\n</code></pre>\n\n<p>Thats a short example on how you can use this library, a more detailed documentation is coming soon.</p>\n\n<p>Enjoy!</p>\n', 0, 1, '2011-03-04 21:56:46', '2011-03-04 21:56:46'); INSERT INTO `versions` VALUES(74, 34, 'v0.4', 'v0.4', 'http://getsparks.org/static/archives/assets/assets-vv0.4.zip', '# Simple Assets Library\n\nA simple assets library that has the ability to combine and minify your JavaScript and CSS assets.\nAdditionally there''s a <a href="http://leafo.net/lessphp/">LessPHP</a> compiler, based on the original Ruby implementation.\n\n## Third Party Libraries\n\nThe libraries <a href="http://code.google.com/p/jsmin-php/">JSMin</a>, <a href="http://code.google.com/p/minify/">CSSMin</a> and <a href="http://leafo.net/lessphp/">LessPHP</a> are all created by third parties, but they''re included in this package for convinience.\n\n## Requirements\n\n1. PHP 5.1+\n2. CodeIgniter 2.0\n3. Directory structure for the assets files, with a writeable cache directory\n\n## Documentation\n\nSet all your preferences in the config file (assets directories, options to minify, combine and parse with LessPHP).\nNow you can use the helper methods in your views like this:\n \n <?php display_css(array(''init.css'', ''style.css'')); ?>\n <?php display_js(array(''libs/modernizr-1.6.js'', ''libs/jquery-1.4.4.js'', ''plugins.js'', ''script.js'')); ?>\n\nThere''s also a method for clearing all cached files:\n \n $this->assets->clear_cache();\n\nThe default configuration assumes your assets directory is in the root of your project. Be sure to set the permissions for the cache directory so it can be writeable.\n\n## Directory structure example\n\n /application\n /assets\n /cache\n /css\n /images\n /js\n /sparks\n /system\n\n## Additional info\n\nIf you set the minify options and combine option in your configuration to false, LessPHP won''t work. This will work in future releases.', '<h1>Simple Assets Library</h1>\n\n<p>A simple assets library that has the ability to combine and minify your JavaScript and CSS assets.\nAdditionally there''s a <a href="http://leafo.net/lessphp/">LessPHP</a> compiler, based on the original Ruby implementation.</p>\n\n<h2>Third Party Libraries</h2>\n\n<p>The libraries <a href="http://code.google.com/p/jsmin-php/">JSMin</a>, <a href="http://code.google.com/p/minify/">CSSMin</a> and <a href="http://leafo.net/lessphp/">LessPHP</a> are all created by third parties, but they''re included in this package for convinience.</p>\n\n<h2>Requirements</h2>\n\n<ol>\n<li>PHP 5.1+</li>\n<li>CodeIgniter 2.0</li>\n<li>Directory structure for the assets files, with a writeable cache directory</li>\n</ol>\n\n<h2>Documentation</h2>\n\n<p>Set all your preferences in the config file (assets directories, options to minify, combine and parse with LessPHP).\nNow you can use the helper methods in your views like this:</p>\n\n<pre><code>&lt;?php display_css(array(''init.css'', ''style.css'')); ?&gt;\n&lt;?php display_js(array(''libs/modernizr-1.6.js'', ''libs/jquery-1.4.4.js'', ''plugins.js'', ''script.js'')); ?&gt;\n</code></pre>\n\n<p>There''s also a method for clearing all cached files:</p>\n\n<pre><code>$this-&gt;assets-&gt;clear_cache();\n</code></pre>\n\n<p>The default configuration assumes your assets directory is in the root of your project. Be sure to set the permissions for the cache directory so it can be writeable.</p>\n\n<h2>Directory structure example</h2>\n\n<pre><code>/application\n/assets\n /cache\n /css\n /images\n /js\n/sparks\n/system\n</code></pre>\n\n<h2>Additional info</h2>\n\n<p>If you set the minify options and combine option in your configuration to false, LessPHP won''t work. This will work in future releases.</p>\n', 0, 1, '2011-03-04 23:15:02', '2011-03-04 23:15:02'); INSERT INTO `versions` VALUES(80, 37, '1.0', '1.0', 'http://getsparks.org/static/archives/ja-geocode/ja-geocode-v1.0.zip', '', '', 1, 1, '2011-03-05 20:24:50', '2011-03-05 20:24:50'); INSERT INTO `versions` VALUES(81, 37, '1.0', '1.0', 'http://getsparks.org/static/archives/ja-geocode/ja-geocode-v1.0.zip', '', '', 1, 1, '2011-03-05 20:34:07', '2011-03-05 20:34:07'); INSERT INTO `versions` VALUES(82, 37, '1.1', '1.1', 'http://getsparks.org/static/archives/ja-geocode/ja-geocode-v1.1.zip', '', '', 0, 1, '2011-03-05 20:39:24', '2011-03-05 20:39:24'); INSERT INTO `versions` VALUES(85, 38, '1.0.0', '1.0', 'http://sparks.codeigniter.com/static/archives/spark-sdk/spark-sdk-1.0.zip', '# CodeIgniter Spark Development Kit\n\nThis is a spark that will assist in developing other sparks. Most notably, it will\nprovide spark developers with a tool the sparks they''ve written before they''re\nsubmitted to getsparks.org.\n\nIt is the exact library used on the server side to decide whether your spark\npasses or fails inspection when it''s submitted. Previously, spark developers\nwould just get an annoying email telling them what''s up.\n', '<h1>CodeIgniter Spark Development Kit</h1>\n\n<p>This is a spark that will assist in developing other sparks. Most notably, it will\nprovide spark developers with a tool the sparks they''ve written before they''re\nsubmitted to getsparks.org.</p>\n\n<p>It is the exact library used on the server side to decide whether your spark\npasses or fails inspection when it''s submitted. Previously, spark developers\nwould just get an annoying email telling them what''s up.</p>\n', 0, 1, '2011-03-21 09:48:31', '2011-03-21 09:48:31'); INSERT INTO `versions` VALUES(86, 5, '1.0.0', '', 'http://sparks.codeigniter.com/static/archives/robot-helper/robot-helper-1.0.0.zip', '# The Robot Helper\n\nCodeIgniter comes with a Captcha implementation, but sometimes you just need\nsomething quicker and easier, like a simple math question.\n\nThis spark is in use on the [GetSparks.org Registration Page](http://getsparks.org/register).\n\n## Usage\n\nThe spark doesn''t autoload anything, so you''ll need to load the spark and\nthe robot helper.\n\nThe spark''s usage involves on two methods: `get_spam_check` and `spam_check_answer`.\n\n`get_spam_check()` returns a 2-element array. The first element contains a question\nfor the user as a string. The second element contains the answer.\n\n class Users extends Controller\n {\n # .. Other stuff ..\n\n public function register()\n {\n $this->load->spark(''robot-helper/VERSION'');\n $this->load->helper(''robot'');\n\n $submitted = $this->input->post(''submit'');\n $math_answer = $this->input->post(''math_answer'');\n\n if($submitted)\n {\n if(spam_check_answer($math_answer))\n {\n # Register the user, and redirect to the account page\n }\n else\n {\n # Uh oh, the user didn''t pass\n }\n }\n\n # Call get_spam_check(), which is created by robot-helper\n list($question, $answer) = get_spam_check();\n\n $data[''spam_question''] = $question;\n $data[''spam_answer''] = $answer;\n\n $this->load->view(''users/register'', $data);\n }\n\n # .. Other stuff ..\n }\n', '<h1>The Robot Helper</h1>\n\n<p>CodeIgniter comes with a Captcha implementation, but sometimes you just need\nsomething quicker and easier, like a simple math question.</p>\n\n<p>This spark is in use on the <a href="http://getsparks.org/register">GetSparks.org Registration Page</a>.</p>\n\n<h2>Usage</h2>\n\n<p>The spark doesn''t autoload anything, so you''ll need to load the spark and\nthe robot helper.</p>\n\n<p>The spark''s usage involves on two methods: <code>get_spam_check</code> and <code>spam_check_answer</code>.</p>\n\n<p><code>get_spam_check()</code> returns a 2-element array. The first element contains a question\nfor the user as a string. The second element contains the answer.</p>\n\n<pre><code>class Users extends Controller\n{\n # .. Other stuff ..\n\n public function register()\n {\n $this-&gt;load-&gt;spark(''robot-helper/VERSION'');\n $this-&gt;load-&gt;helper(''robot'');\n\n $submitted = $this-&gt;input-&gt;post(''submit'');\n $math_answer = $this-&gt;input-&gt;post(''math_answer'');\n\n if($submitted)\n {\n if(spam_check_answer($math_answer))\n {\n # Register the user, and redirect to the account page\n }\n else\n {\n # Uh oh, the user didn''t pass\n }\n }\n\n # Call get_spam_check(), which is created by robot-helper\n list($question, $answer) = get_spam_check();\n\n $data[''spam_question''] = $question;\n $data[''spam_answer''] = $answer;\n\n $this-&gt;load-&gt;view(''users/register'', $data);\n }\n\n # .. Other stuff ..\n}\n</code></pre>\n', 0, 1, '2011-03-21 18:54:02', '2011-03-21 18:54:02'); -- -- Constraints for dumped tables -- -- -- Constraints for table `dependencies` -- ALTER TABLE `dependencies` ADD CONSTRAINT `dependencies_ibfk_1` FOREIGN KEY (`version_id`) REFERENCES `versions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `dependencies_ibfk_2` FOREIGN KEY (`needed_version_id`) REFERENCES `versions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `installs` -- ALTER TABLE `installs` ADD CONSTRAINT `installs_ibfk_1` FOREIGN KEY (`spark_id`) REFERENCES `sparks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `ratings` -- ALTER TABLE `ratings` ADD CONSTRAINT `ratings_ibfk_2` FOREIGN KEY (`contributor_id`) REFERENCES `contributors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `ratings_ibfk_1` FOREIGN KEY (`spark_id`) REFERENCES `sparks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `sparks` -- ALTER TABLE `sparks` ADD CONSTRAINT `sparks_ibfk_1` FOREIGN KEY (`contributor_id`) REFERENCES `contributors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `versions` -- ALTER TABLE `versions` ADD CONSTRAINT `versions_ibfk_1` FOREIGN KEY (`spark_id`) REFERENCES `sparks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; CREATE TABLE `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(500) NOT NULL, `url` varchar(400) NOT NULL, `posted` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
<reponame>CSCfi/antero<gh_stars>1-10 USE [ANTERO] GO /****** Object: View [dw].[v_valos_koulutuksenkustannukset] Script Date: 22.3.2019 11:44:28 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dw].[v_valos_koulutuksenkustannukset] AS SELECT --Suomi vuosi AS "Tilastovuosi" ,rekno AS "Sektori Koodi" ,d5.nimi AS "Sektori" ,ytunnus AS "Koulutuksen järjestäjä Koodi" ,d1.organisaatio_fi AS "Koulutuksen järjestäjä" ,kala AS "Rahoituksen koulutusala Koodi" ,d3.nimi AS "Rahoituksen koulutusala" ,koulumto AS "Koulutusmuoto Koodi" ,d2.nimi AS "Koulutusmuoto" ,OMISTAJA AS "Omistajatyyppi Koodi" ,d4.nimi AS "Omistajatyyppi" ,d9.kunta_koodi AS "Koulutuksen kunta Koodi" ,d9.kunta_fi AS "Koulutuksen kunta" ,d9.maakunta_koodi AS "Koulutuksen maakunta Koodi" ,d9.maakunta_fi AS "Koulutuksen maakunta" ,d8.kunta_koodi AS "Koulutuksen järjestäjän kunta Koodi" ,d8.kunta_fi AS "Koulutuksen järjestäjän kunta" ,d8.maakunta_koodi AS "Koulutuksen järjestäjän maakunta Koodi" ,d8.maakunta_fi AS "Koulutuksen järjestäjän maakunta" ,RIGHT(menolajitoiminto, 3) AS "Menolaji Koodi" ,d6.nimi AS "Menolaji" ,LEFT(menolajitoiminto, 4) AS "Toiminto Koodi" ,d7.nimi AS "Toiminto" ,cast(replace(summa,',','.') as float) AS "Summa" --English ,vuosi as 'Statistical year' ,rekno AS "Sector Code" ,d5.nimi_en AS "Sector" ,ytunnus AS "Education provider Code" ,d1.organisaatio_en AS "Education provider" ,kala AS "Source of funding field of education Code" ,d3.nimi_en AS "Source of funding field of education" ,koulumto AS "Form of education Code" ,d2.nimi_en AS "Form of education" ,OMISTAJA AS "Type of owner Code" ,d4.nimi_en AS "Type of owner" ,d9.kunta_koodi AS "Municipality of Education Code" ,d9.kunta_en AS "Municipality of Education" ,d9.maakunta_koodi AS "Region of Education Code" ,d9.maakunta_en AS "Region of Education" ,d8.kunta_koodi AS "Municipality of the education provider Code" ,d8.kunta_en AS "Municipality of the education provider " ,d8.maakunta_koodi AS "Region of the education provider Code" ,d8.maakunta_en AS "Region of the education provider" ,RIGHT(menolajitoiminto, 3) AS "Category of expenditure Code" ,d6.nimi_en AS "Category of expenditure" ,LEFT(menolajitoiminto, 4) AS "Activity Code" ,d7.nimi_en AS "Activity" ,cast(replace(summa,',','.') as float) AS "Sum" --Swedish ,vuosi as 'Statistikår' ,rekno AS "Sektor Kod" ,d5.nimi_sv AS "Sektor" ,ytunnus AS "Utbildningsanordnare Kod" ,d1.organisaatio_sv AS "Utbildningsanordnare" ,kala AS "Finansieringskälla av utbildningsområde Kod" ,d3.nimi_sv AS "Finansieringskälla av utbildningsområde" ,koulumto AS "Form av utbildning Kod" ,d2.nimi_sv AS "Form av utbildning" ,OMISTAJA AS "Typ av Ägare Kod" -- What do here? ,d4.nimi_sv AS "Typ av Ägare" -- What do here as well? ,d9.kunta_koodi AS "Utbildnings kommun Kod" ,d9.kunta_fi AS "Utbildnings kommun" ,d9.maakunta_koodi AS "Utbildningens landskap Kod" ,d9.maakunta_sv AS "Utbildningens landskap" ,d8.kunta_koodi AS "Utbildningsanordnarens kommun Kod" ,d8.kunta_sv AS "Utbildningsanordnarens kommun" ,d8.maakunta_koodi AS "Utbildningsanordnarens landskap Kod" ,d8.maakunta_sv AS "Utbildningsanordnarens landskap" ,RIGHT(menolajitoiminto, 3) AS "Utgiftsslag Kod" ,d6.nimi_sv AS "Utgiftsslag" ,LEFT(menolajitoiminto, 4) AS "Funktion Kod" ,d7.nimi_sv AS "Funktion" -- ,cast(replace(summa,',','.') as float) AS "Summa" -- Käytetään suomenkielessä määriteltyä summa-kenttää, nimi sama ruotsiksi FROM (SELECT rekno,vuosi,ytunnus,kala,koulumto,OMISTAJA,KUNTA,VIRKUNTA,suorite,k010l01,k010l02,k010l03,k020l01,k020l02,k020l03,k030l01,k030l02,k030l03,k040l01,k040l02,k040l03,k060l01,k060l02,k060l03,k070l01,k070l02,k070l03,k080l01,k080l02,k080l03,k090l02,k090l03 FROM sa.sa_valos) p UNPIVOT (summa FOR menolajitoiminto IN (k010l01,k010l02,k010l03,k020l01,k020l02,k020l03,k030l01,k030l02,k030l03,k040l01,k040l02,k040l03,k060l01,k060l02,k060l03,k070l01,k070l02,k070l03,k080l01,k080l02,k080l03,k090l02,k090l03)) AS unpvt LEFT JOIN dw.d_organisaatioluokitus d1 ON ytunnus=organisaatio_koodi LEFT JOIN sa.sa_koodistot d2 ON d2.koodisto='vipunenvaloskoulutusmuoto' and d2.koodi=koulumto LEFT JOIN sa.sa_koodistot d3 ON d3.koodisto='vipunenvaloskoulutusala' and d3.koodi=kala LEFT JOIN sa.sa_koodistot d4 ON d4.koodisto='vipunenvalosomistajatyyppi' and d4.koodi=OMISTAJA LEFT JOIN sa.sa_koodistot d5 ON d5.koodisto='vipunenvalossektori' and d5.koodi=rekno LEFT JOIN sa.sa_koodistot d6 ON d6.koodisto='vipunenvalosmenolaji' and d6.koodi=RIGHT(menolajitoiminto,3) LEFT JOIN sa.sa_koodistot d7 ON d7.koodisto='vipunenvalostoiminto' and d7.koodi=LEFT(menolajitoiminto,4) LEFT JOIN dw.d_alueluokitus d8 ON d8.kunta_koodi=VIRKUNTA LEFT JOIN dw.d_alueluokitus d9 ON d9.kunta_koodi=KUNTA -- Perusopetuksen aamu- ja iltapäivätoiminta ja vammaisopetus, ei toimintoerittelyä UNION ALL SELECT --Suomi vuosi AS 'Tilastovuosi' ,rekno AS 'Sektori Koodi' ,d5.nimi AS 'Sektori' ,ytunnus AS 'Koulutuksen järjestäjä Koodi' ,d1.organisaatio_fi AS 'Koulutuksen järjestäjä' ,kala AS 'Rahoituksen koulutusala Koodi' ,d3.nimi AS 'Rahoituksen koulutusala' ,koulumto AS 'Koulutusmuoto Koodi' ,d2.nimi AS 'Koulutusmuoto' ,OMISTAJA AS 'Omistajatyyppi Koodi' ,d4.nimi AS 'Omistajatyyppi' ,d9.kunta_koodi AS 'Koulutuksen kunta Koodi' ,d9.kunta_fi AS 'Koulutuksen kunta' ,d9.maakunta_koodi AS 'Koulutuksen maakunta Koodi' ,d9.maakunta_fi AS 'Koulutuksen maakunta' ,d8.kunta_koodi AS 'Koulutuksen järjestäjän kunta Koodi' ,d8.kunta_fi AS 'Koulutuksen järjestäjän kunta' ,d8.maakunta_koodi AS 'Koulutuksen järjestäjän maakunta Koodi' ,d8.maakunta_fi AS 'Koulutuksen järjestäjän maakunta' ,RIGHT(menolajitoiminto, 3) AS 'Menolaji Koodi' ,d6.nimi AS 'Menolaji' ,LEFT(menolajitoiminto, 4) AS 'Toiminto Koodi' ,d7.nimi AS 'Toiminto' ,cast(replace(summa,',','.') as float) AS "Summa" --English ,vuosi as 'Statistical year' ,rekno AS "Sector Code" ,d5.nimi_en AS "Sector" ,ytunnus AS "Education provider Code" ,d1.organisaatio_en AS "Education provider" ,kala AS "Source of funding field of education Code" ,d3.nimi_en AS "Source of funding field of education" ,koulumto AS "Form of education Code" ,d2.nimi_en AS "Form of education" ,OMISTAJA AS "Type of owner Code" ,d4.nimi_en AS "Type of owner" ,d9.kunta_koodi AS "Municipality of Education Code" ,d9.kunta_en AS "Municipality of Education" ,d9.maakunta_koodi AS "Region of Education Code" ,d9.maakunta_en AS "Region of Education" ,d8.kunta_koodi AS "Municipality of the education provider Code" ,d8.kunta_en AS "Municipality of the education provider " ,d8.maakunta_koodi AS "Region of the education provider Code" ,d8.maakunta_en AS "Region of the education provider" ,RIGHT(menolajitoiminto, 3) AS "Category of expenditure Code" ,d6.nimi_en AS "Category of expenditure" ,LEFT(menolajitoiminto, 4) AS "Activity Code" ,d7.nimi_en AS "Activity" ,cast(replace(summa,',','.') as float) AS "Sum" --Swedish ,vuosi as 'Statistikår' ,rekno AS "Sektor Kod" ,d5.nimi_sv AS "Sektor" ,ytunnus AS "Utbildningsanordnare Kod" ,d1.organisaatio_sv AS "Utbildningsanordnare" ,kala AS "Finansieringskälla av utbildningsområde Kod" ,d3.nimi_sv AS "Finansieringskälla av utbildningsområde" ,koulumto AS "Form av utbildning Kod" ,d2.nimi_sv AS "Form av utbildning" ,OMISTAJA AS "Typ av Ägare Kod" -- What do here? ,d4.nimi_sv AS "Typ av Ägare " -- What do here as well? ,d9.kunta_koodi AS "Utbildnings kommun Kod" ,d9.kunta_fi AS "Utbildnings kommun" ,d9.maakunta_koodi AS "Utbildningens landskap Kod" ,d9.maakunta_sv AS "Utbildningens landskap" ,d8.kunta_koodi AS "Utbildningsanordnarens kommun Kod" ,d8.kunta_sv AS "Utbildningsanordnarens kommun" ,d8.maakunta_koodi AS "Utbildningsanordnarens landskap Kod" ,d8.maakunta_sv AS "Utbildningsanordnarens landskap" ,RIGHT(menolajitoiminto, 3) AS "Utgiftsslag Kod" ,d6.nimi_sv AS "Utgiftsslag" ,LEFT(menolajitoiminto, 4) AS "Funktion Kod" ,d7.nimi_sv AS "Funktion" -- ,cast(replace(summa,',','.') as float) AS "Summa" -- Käytetään suomenkielessä määriteltyä summa-kenttää, nimi sama ruotsiksi FROM (SELECT rekno,vuosi,ytunnus,kala,koulumto,OMISTAJA,KUNTA,VIRKUNTA,suorite,k100l01,k100l02,k100l03 FROM sa.sa_valos WHERE rekno=55 OR koulumto=133 or koulumto=134 or koulumto=135) p UNPIVOT (summa FOR menolajitoiminto IN (k100l01,k100l02,k100l03)) AS unpvt LEFT JOIN dw.d_organisaatioluokitus d1 ON ytunnus=organisaatio_koodi LEFT JOIN sa.sa_koodistot d2 ON d2.koodisto='vipunenvaloskoulutusmuoto' and d2.koodi=koulumto LEFT JOIN sa.sa_koodistot d3 ON d3.koodisto='vipunenvaloskoulutusala' and d3.koodi=kala LEFT JOIN sa.sa_koodistot d4 ON d4.koodisto='vipunenvalosomistajatyyppi' and d4.koodi=OMISTAJA LEFT JOIN sa.sa_koodistot d5 ON d5.koodisto='vipunenvalossektori' and d5.koodi=rekno LEFT JOIN sa.sa_koodistot d6 ON d6.koodisto='vipunenvalosmenolaji' and d6.koodi=RIGHT(menolajitoiminto,3) LEFT JOIN sa.sa_koodistot d7 ON d7.koodisto='vipunenvalostoiminto' and d7.koodi=LEFT(menolajitoiminto,4) LEFT JOIN dw.d_alueluokitus d8 ON d8.kunta_koodi= VIRKUNTA LEFT JOIN dw.d_alueluokitus d9 ON d9.kunta_koodi= KUNTA -- Kansalaisopistot ja kesäyliopistot, ei toiminto- eikä menolajierittelyä UNION ALL SELECT --Suomi vuosi AS 'Tilastovuosi' ,rekno AS 'Sektori Koodi' ,d5.nimi AS 'Sektori' ,ytunnus AS 'Koulutuksen järjestäjä Koodi' ,d1.organisaatio_fi AS 'Koulutuksen järjestäjä' ,kala AS 'Rahoituksen koulutusala Koodi' ,d3.nimi AS 'Rahoituksen koulutusala' ,koulumto AS 'Koulutusmuoto Koodi' ,d2.nimi AS 'Koulutusmuoto' ,OMISTAJA AS 'Omistajatyyppi Koodi' ,d4.nimi AS 'Omistajatyyppi' ,d9.kunta_koodi AS 'Koulutuksen kunta Koodi' ,d9.kunta_fi AS 'Koulutuksen kunta' ,d9.maakunta_koodi AS 'Koulutuksen maakunta Koodi' ,d9.maakunta_fi AS 'Koulutuksen maakunta' ,d8.kunta_koodi AS 'Koulutuksen järjestäjän kunta Koodi' ,d8.kunta_fi AS 'Koulutuksen järjestäjän kunta' ,d8.maakunta_koodi AS 'Koulutuksen järjestäjän maakunta Koodi' ,d8.maakunta_fi AS 'Koulutuksen järjestäjän maakunta' ,RIGHT(menolajitoiminto, 3) AS 'Menolaji Koodi' ,d6.nimi AS 'Menolaji' ,LEFT(menolajitoiminto, 4) AS 'Toiminto Koodi' ,d7.nimi AS 'Toiminto' ,cast(replace(summa,',','.') as float) AS "Summa" --English ,vuosi as 'Statistical year' ,rekno AS "Sector Code" ,d5.nimi_en AS "Sector" ,ytunnus AS "Education provider Code" ,d1.organisaatio_en AS "Education provider" ,kala AS "Source of funding field of education Code" ,d3.nimi_en AS "Source of funding field of education" ,koulumto AS "Form of education Code" ,d2.nimi_en AS "Form of education" ,OMISTAJA AS "Type of owner Code" ,d4.nimi_en AS "Type of owner" ,d9.kunta_koodi AS "Municipality of Education Code" ,d9.kunta_en AS "Municipality of Education" ,d9.maakunta_koodi AS "Region of Education Code" ,d9.maakunta_en AS "Region of Education" ,d8.kunta_koodi AS "Municipality of the education provider Code" ,d8.kunta_en AS "Municipality of the education provider " ,d8.maakunta_koodi AS "Region of the education provider Code" ,d8.maakunta_en AS "Region of the education provider" ,RIGHT(menolajitoiminto, 3) AS "Category of expenditure Code" ,d6.nimi_en AS "Category of expenditure" ,LEFT(menolajitoiminto, 4) AS "Activity Code" ,d7.nimi_en AS "Activity" ,cast(replace(summa,',','.') as float) AS "Sum" --Swedish ,vuosi as 'Statistikår' ,rekno AS "Sektor Kod" ,d5.nimi_sv AS "Sektor" ,ytunnus AS "Utbildningsanordnare Kod" ,d1.organisaatio_sv AS "Utbildningsanordnare" ,kala AS "Finansieringskälla av utbildningsområde Kod" ,d3.nimi_sv AS "Finansieringskälla av utbildningsområde" ,koulumto AS "Form av utbildning Kod" ,d2.nimi_sv AS "Form av utbildning" ,OMISTAJA AS "Typ av Ägare Kod" -- What do here? ,d4.nimi_sv AS "Typ av Ägare" -- What do here as well? ,d9.kunta_koodi AS "Utbildnings kommun Kod" ,d9.kunta_fi AS "Utbildnings kommun" ,d9.maakunta_koodi AS "Utbildningens landskap Kod" ,d9.maakunta_sv AS "Utbildningens landskap" ,d8.kunta_koodi AS "Utbildningsanordnarens kommun Kod" ,d8.kunta_sv AS "Utbildningsanordnarens kommun" ,d8.maakunta_koodi AS "Utbildningsanordnarens landskap Kod" ,d8.maakunta_sv AS "Utbildningsanordnarens landskap" ,RIGHT(menolajitoiminto, 3) AS "Utgiftsslag Kod" ,d6.nimi_sv AS "Utgiftsslag" ,LEFT(menolajitoiminto, 4) AS "Funktion Kod" ,d7.nimi_sv AS "Funktion" -- ,cast(replace(summa,',','.') as float) AS "Summa" -- Käytetään suomenkielessä määriteltyä summa-kenttää, nimi sama ruotsiksi FROM (SELECT rekno,vuosi,ytunnus,kala,koulumto,OMISTAJA,KUNTA,VIRKUNTA,suorite,k100l09 FROM sa.sa_valos WHERE rekno=9 OR rekno=18) p UNPIVOT (summa FOR menolajitoiminto IN (k100l09)) AS unpvt LEFT JOIN dw.d_organisaatioluokitus d1 ON ytunnus=organisaatio_koodi LEFT JOIN sa.sa_koodistot d2 ON d2.koodisto='vipunenvaloskoulutusmuoto' and d2.koodi=koulumto LEFT JOIN sa.sa_koodistot d3 ON d3.koodisto='vipunenvaloskoulutusala' and d3.koodi=kala LEFT JOIN sa.sa_koodistot d4 ON d4.koodisto='vipunenvalosomistajatyyppi' and d4.koodi=OMISTAJA LEFT JOIN sa.sa_koodistot d5 ON d5.koodisto='vipunenvalossektori' and d5.koodi=rekno LEFT JOIN sa.sa_koodistot d6 ON d6.koodisto='vipunenvalosmenolaji' and d6.koodi=RIGHT(menolajitoiminto,3) LEFT JOIN sa.sa_koodistot d7 ON d7.koodisto='vipunenvalostoiminto' and d7.koodi=LEFT(menolajitoiminto,4) LEFT JOIN dw.d_alueluokitus d8 ON d8.kunta_koodi= VIRKUNTA LEFT JOIN dw.d_alueluokitus d9 ON d9.kunta_koodi= KUNTA
<filename>src/test/resources/sql/insert/ce4d0f23.sql -- file:numeric_big.sql ln:209 expect:true INSERT INTO num_exp_sub VALUES (4,3,'60302029489324713745939828071407972725.48158890028513260568545074171830840934891554534052635383222518357552878529888177277886748756734050012959603126757618322788700853025193884017088688974683399381224865109134889560766307825097103477790782590061456916367930139323346273315068375646692125800496305291080749834712822775973790354498408104142209966769395239768969172107040437333428573572464689550003374384624966403962290572373571842567623422963022155546431883766327294954667474300944699078658989010257103569231493090050659723450626338923049035040974032671138430612839043269997482582763267536489504794826476836323549796385028155416935072959933315468068930689064483178204550825728947252440604703474049780550458442808479096492346910001692358508618202898514895453589357')
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY. DROP TABLE IF EXISTS gcs; CREATE TABLE gcs AS -- This query extracts the Glasgow Coma Scale, a measure of neurological function. -- The query has a few special rules: -- (1) The verbal component can be set to 0 if the patient is ventilated. -- This is corrected to 5 - the overall GCS is set to 15 in these cases. -- (2) Often only one of three components is documented. The other components -- are carried forward. -- ITEMIDs used: -- METAVISION -- 223900 GCS - Verbal Response -- 223901 GCS - Motor Response -- 220739 GCS - Eye Opening -- Note: -- The GCS for sedated patients is defaulted to 15 in this code. -- This is in line with how the data is meant to be collected. -- e.g., from the SAPS II publication: -- For sedated patients, the Glasgow Coma Score before sedation was used. -- This was ascertained either from interviewing the physician who ordered the sedation, -- or by reviewing the patient's medical record. with base as ( select subject_id , ce.stay_id, ce.charttime -- pivot each value into its own column , max(case when ce.ITEMID = 223901 then ce.valuenum else null end) as GCSMotor , max(case when ce.ITEMID = 223900 and ce.VALUE = 'No Response-ETT' then 0 when ce.ITEMID = 223900 then ce.valuenum else null end) as GCSVerbal , max(case when ce.ITEMID = 220739 then ce.valuenum else null end) as GCSEyes -- convert the data into a number, reserving a value of 0 for ET/Trach , max(case -- endotrach/vent is assigned a value of 0 -- flag it here to later parse specially when ce.ITEMID = 223900 and ce.VALUE = 'No Response-ETT' then 1 -- metavision else 0 end) as endotrachflag , ROW_NUMBER () OVER (PARTITION BY ce.stay_id ORDER BY ce.charttime ASC) as rn from mimic_icu.chartevents ce -- Isolate the desired GCS variables where ce.ITEMID in ( -- GCS components, Metavision 223900, 223901, 220739 ) group by ce.subject_id, ce.stay_id, ce.charttime ) , gcs as ( select b.* , b2.GCSVerbal as GCSVerbalPrev , b2.GCSMotor as GCSMotorPrev , b2.GCSEyes as GCSEyesPrev -- Calculate GCS, factoring in special case when they are intubated and prev vals -- note that the coalesce are used to implement the following if: -- if current value exists, use it -- if previous value exists, use it -- otherwise, default to normal , case -- replace GCS during sedation with 15 when b.GCSVerbal = 0 then 15 when b.GCSVerbal is null and b2.GCSVerbal = 0 then 15 -- if previously they were intub, but they aren't now, do not use previous GCS values when b2.GCSVerbal = 0 then coalesce(b.GCSMotor,6) + coalesce(b.GCSVerbal,5) + coalesce(b.GCSEyes,4) -- otherwise, add up score normally, imputing previous value if none available at current time else coalesce(b.GCSMotor,coalesce(b2.GCSMotor,6)) + coalesce(b.GCSVerbal,coalesce(b2.GCSVerbal,5)) + coalesce(b.GCSEyes,coalesce(b2.GCSEyes,4)) end as GCS from base b -- join to itself within 6 hours to get previous value left join base b2 on b.stay_id = b2.stay_id and b.rn = b2.rn+1 and b2.charttime > DATETIME_ADD(b.charttime, INTERVAL '6' HOUR) ) -- combine components with previous within 6 hours -- filter down to cohort which is not excluded -- truncate charttime to the hour , gcs_stg as ( select subject_id , gs.stay_id, gs.charttime , GCS , coalesce(GCSMotor,GCSMotorPrev) as GCSMotor , coalesce(GCSVerbal,GCSVerbalPrev) as GCSVerbal , coalesce(GCSEyes,GCSEyesPrev) as GCSEyes , case when coalesce(GCSMotor,GCSMotorPrev) is null then 0 else 1 end + case when coalesce(GCSVerbal,GCSVerbalPrev) is null then 0 else 1 end + case when coalesce(GCSEyes,GCSEyesPrev) is null then 0 else 1 end as components_measured , EndoTrachFlag from gcs gs ) -- priority is: -- (i) complete data, (ii) non-sedated GCS, (iii) lowest GCS, (iv) charttime , gcs_priority as ( select subject_id , stay_id , charttime , gcs , gcsmotor , gcsverbal , gcseyes , EndoTrachFlag , ROW_NUMBER() over ( PARTITION BY stay_id, charttime ORDER BY components_measured DESC, endotrachflag, gcs, charttime DESC ) as rn from gcs_stg ) select gs.subject_id , gs.stay_id , gs.charttime , GCS AS gcs , GCSMotor AS gcs_motor , GCSVerbal AS gcs_verbal , GCSEyes AS gcs_eyes , EndoTrachFlag AS gcs_unable from gcs_priority gs where rn = 1 ;
<reponame>djandrewd/flights-application<filename>search-engine-impl/src/test/resources/create_script.sql CREATE TABLE AIRPORT ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, NAME VARCHAR(100), CITY VARCHAR(100), COUNTRY VARCHAR(45), IATA VARCHAR(3), ICAO VARCHAR(4), TIMEZONE VARCHAR(50), LONGITUDE DOUBLE, LATITUDE DOUBLE, PRIMARY KEY (ID) ); -- ----------------------------------------------------- CREATE TABLE AIRLINE ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, NAME VARCHAR(50), IATA VARCHAR(3), ICAO VARCHAR(4), COUNTRY VARCHAR(100), PRIMARY KEY (ID) ); -- ----------------------------------------------------- CREATE TABLE SEAT_CLASS ( TYPE VARCHAR(2), NAME VARCHAR(50), DESCRIPTION VARCHAR(200), PRIMARY KEY (TYPE) ); -- ----------------------------------------------------- CREATE TABLE PLANE ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, TYPE VARCHAR(20), MANIFACTURER VARCHAR(40), TOTAL_SEATS INT, PRIMARY KEY (ID) ); -- ----------------------------------------------------- CREATE TABLE PLANE_SEATS ( PLAINE_ID INTEGER GENERATED BY DEFAULT AS IDENTITY, SEAT_TYPE VARCHAR(2), NUMBER INT, START_ROW INT, END_ROW INT, ROW_LENGTH INT, PRIMARY KEY (PLAINE_ID, SEAT_TYPE) ); -- ----------------------------------------------------- CREATE TABLE FLIGHT_ROUTE ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, NAME VARCHAR(100), DEPARTURE_AIRPORT_ID INT, ARRIVAL_AIRPORT_ID INT, AIRLINE_ID INT, PLANE_ID INT, START_DATE DATETIME, END_DATE DATETIME, DEPARTURE_TIME TIME, ARRIVAL_TIME TIME, DAILY_SCHEDULE INT, PRIMARY KEY (ID) ); -- ----------------------------------------------------- CREATE TABLE FLIGHT ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, FLIGHT_ROUTE_ID INT, DATE DATE, SEATS_AVAILABLE INT, PRIMARY KEY (ID) ); -- ----------------------------------------------------- CREATE TABLE AIRPORT_CONNECTION ( ID INTEGER GENERATED BY DEFAULT AS IDENTITY, DEPARTURE_AIRPORT_ID INT, ARRIVAL_AIRPORT_ID INT, STOPS INT, PRIMARY KEY (ID)); -- ----------------------------------------------------- CREATE TABLE CONNECTION_ROUTES ( AIRPORT_CONNECTION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY, FLIGHT_ROUTE_ID INT, POSITION INT, PRIMARY KEY (AIRPORT_CONNECTION_ID, FLIGHT_ROUTE_ID));
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [AutoWho].[ViewLongRequests] /* Copyright 2016 <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. ------------------------------------------------------------------------ PROJECT NAME: ChiRho https://github.com/AaronMorelli/ChiRho PROJECT DESCRIPTION: A T-SQL toolkit for troubleshooting performance and stability problems on SQL Server instances FILE NAME: AutoWho.ViewLongRequests.StoredProcedure.sql PROCEDURE NAME: AutoWho.ViewLongRequests AUTHOR: <NAME> <EMAIL> @sqlcrossjoin sqlcrossjoin.wordpress.com PURPOSE: Called by the sp_XR_LongRequests user-facing procedure. The logic below pulls data from the various AutoWho tables, based on parameter values, and combines and formats the data as appropriate. METRIC NOTES: A big part of this proc's output is the collection of observed metric values for a given request. At any individual AutoWho capture, the following are observed (other less-relevant data points have been omitted): # of tasks allocated the DOP of the query (from dm_exec_query_memory_grants) Query Memory requested, granted, used TempDB usage at both the task & session level CPU usage at the request level logical and physical reads at the request level writes at the request level transaction log usage In this proc, these metrics are aggregated across the statements in a request. Since a given statement could be revisited (and there is no way for us to know whether a statement was revisited), we can't take it for granted that a metric will always increase (e.g. in the case of logical reads) or decrease (e.g. # of allocated tasks) as we continue to observe a query. Thus, in addition to min & max, we also capture "first seen" and "last seen". In some cases, this will lead to redundant data, such as when a query was only observed once or twice, or if the query was not revisited and is just a standard "query runs and accumulates CPU/reads/writes/log" pattern. Here are the rules for displaying (so that we don't have the same #'s repeatedly displayed, distracting the eyes) The order of the columns in the result set for each metric: First/Last Delta First Last Min/Max Delta Min/Max Avg If [#Seen] = 1 OR Min=Max there has been no variation of this metric for the statement print "First" but skip the rest, including both deltas Else If (First <> Last) OR (Min <> Max) --there has been some variation in this metric --for metrics that should never decrease for a request (CPU, reads, writes, CPU, tran log bytes) If First = Min and Last = Max --a predictable increase as the request/statement goes on print "first/last delta", "first", "last", and "avg". --By leaving Min/Max Delta and Min and Max blank, we show they are the same as F/L Else print all the columns --for other metrics, i.e. that don't follow the ever increasing pattern -- (# tasks, DOP, both tempdb metrics, all qmem metrics) Always print all the columns FUTURE ENHANCEMENTS: To Execute ------------------------ */ ( @init TINYINT, @start DATETIME, @end DATETIME, @mindur INT, @spids NVARCHAR(128)=N'', @xspids NVARCHAR(128)=N'', @dbs NVARCHAR(512)=N'', @xdbs NVARCHAR(512)=N'', @attr NCHAR(1), @plan NCHAR(1), @units NVARCHAR(20) ) AS BEGIN SET NOCOUNT ON; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SET XACT_ABORT ON; SET ANSI_WARNINGS ON; /**************************************************************************************************** ********** Variables and Temp Tables ********** *****************************************************************************************************/ DECLARE --stmt store @PKSQLStmtStoreID BIGINT, @sql_handle VARBINARY(64), @dbid INT, @objectid INT, @stmt_text NVARCHAR(MAX), @stmt_xml XML, @dbname NVARCHAR(128), @schname NVARCHAR(128), @objectname NVARCHAR(128), --QueryPlan Stmt/Batch store @PKQueryPlanStmtStoreID BIGINT, @PKQueryPlanBatchStoreID BIGINT, @plan_handle VARBINARY(64), @query_plan_text NVARCHAR(MAX), @query_plan_xml XML, --input buffer store @PKInputBufferStore BIGINT, @ibuf_text NVARCHAR(4000), @ibuf_xml XML, --General variables @DBInclusionsExist INT, @DBExclusionsExist INT, @SPIDInclusionsExist INT, @SPIDExclusionsExist INT, @cxpacketwaitid SMALLINT, --Enums @enum__waitorder__none TINYINT, @enum__waitorder__lck TINYINT, @enum__waitorder__latchblock TINYINT, @enum__waitorder_pglatch TINYINT, @enum__waitorder__cxp TINYINT, @enum__waitorder__other TINYINT ; DECLARE --misc control-flow helpers @lv__scratchint INT, @lv__msg NVARCHAR(MAX), @lv__errsev INT, @lv__errstate INT, @lv__errorloc NVARCHAR(100), @lv__nullstring NVARCHAR(8), @lv__nullint INT, @lv__nullsmallint SMALLINT, @lv__DynSQL NVARCHAR(MAX); BEGIN TRY SET @lv__nullstring = N'<nul5>'; --used the # 5 just to make it that much more unlikely that our "special value" would collide with a DMV value SET @lv__nullint = -929; --ditto, used a strange/random number rather than -999, so there is even less of a chance of SET @lv__nullsmallint = -929; -- overlapping with some special system value SET @enum__waitorder__none = CONVERT(TINYINT, 250); --a. we typically want a "not waiting" task to sort near the end SET @enum__waitorder__lck = CONVERT(TINYINT, 5); --b. lock waits should be at the top (so that blocking data is correct) SET @enum__waitorder__latchblock = CONVERT(TINYINT, 10); --c. sometimes latch waits can have a blocking spid, so those sort next, after lock waits. -- these can be any type of latch (pg, pgio, a memory object, etc); SET @enum__waitorder_pglatch = CONVERT(TINYINT, 15); -- Page and PageIO latches are fairly common, and in parallel plans we want them -- to sort higher than other latches, e.g. the fairly common ACCESS_METHODS_DATASET_PARENT SET @enum__waitorder__cxp = CONVERT(TINYINT, 200); --d. parallel sorts near the end, since a parallel wait doesn't mean the spid is completely halted SET @enum__waitorder__other = CONVERT(TINYINT, 20); --e. catch-all bucket SELECT @cxpacketwaitid = dwt.DimWaitTypeID FROM AutoWho.DimWaitType dwt WHERE dwt.wait_type = N'CXPACKET'; SET @lv__errorloc = N'Declare #TT'; CREATE TABLE #FilterTab ( FilterType TINYINT NOT NULL, --0 DB inclusion --1 DB exclusion --2 SPID inclusion --3 SPID exclusion FilterID INT NOT NULL, FilterName NVARCHAR(255) ); CREATE TABLE #CaptureTimes ( SPIDCaptureTime DATETIME NOT NULL, UTCCaptureTime DATETIME NOT NULL, PrevUTCCaptureTime DATETIME, diffMS INT --diff in milliseconds between cap time and PrevCaptureTime ); CREATE UNIQUE CLUSTERED INDEX CL1 ON #CaptureTimes (UTCCaptureTime); CREATE TABLE #LongBatches ( session_id INT NOT NULL, request_id INT NOT NULL, rqst__start_time DATETIME NOT NULL, BatchIdentifier INT NOT NULL, FirstSeenUTC DATETIME NOT NULL, LastSeenUTC DATETIME NOT NULL, FirstSeen DATETIME NULL, LastSeen DATETIME NULL, StartingDBID INT NULL, FKInputBufferStore BIGINT, SessAttr NVARCHAR(MAX), FilteredOut INT NOT NULL ); CREATE TABLE #sarcache ( UTCCaptureTime DATETIME NOT NULL, SPIDCaptureTime DATETIME NOT NULL, session_id INT NOT NULL, request_id INT NOT NULL, rqst__start_time DATETIME NOT NULL, BatchIdentifier INT NOT NULL, --sess/rqst/starttime uniquely identifies a batch, but in our XML grouping code, I don't want to mess -- with datetime values, so we create an int that is unique per batch. rqst__status_code TINYINT NOT NULL, rqst__cpu_time BIGINT NOT NULL, rqst__reads BIGINT NOT NULL, rqst__writes BIGINT NOT NULL, rqst__logical_reads BIGINT NOT NULL, rqst__FKDimCommand SMALLINT NULL, rqst__FKDimWaitType SMALLINT NULL, --tempdb__CurrentlyAllocatedPages BIGINT NULL, tempdb__TaskPages BIGINT NOT NULL, tempdb__SessPages BIGINT NOT NULL, tempdb__CalculatedNumberOfTasks SMALLINT NULL, mgrant__requested_memory_kb BIGINT NOT NULL, mgrant__granted_memory_kb BIGINT NOT NULL, mgrant__used_memory_kb BIGINT NOT NULL, mgrant__dop SMALLINT NOT NULL, tran_log_bytes BIGINT NOT NULL, calc__tmr_wait TINYINT NULL, FKSQLStmtStoreID BIGINT NOT NULL, FKInputBufferStoreID BIGINT NULL, FKQueryPlanStmtStoreID BIGINT NOT NULL ); CREATE TABLE #tawcache ( UTCCaptureTime DATETIME NOT NULL, SPIDCaptureTime DATETIME NOT NULL, session_id INT NOT NULL, request_id INT NOT NULL, task_address VARBINARY(8) NOT NULL, BatchIdentifier INT NOT NULL, TaskIdentifier INT NOT NULL, tstate NVARCHAR(20) NOT NULL, FKDimWaitType SMALLINT NOT NULL, wait_duration_ms BIGINT NOT NULL, wait_order_category TINYINT NOT NULL, wait_special_tag NVARCHAR(100) NOT NULL, wait_special_number INT NOT NULL ); CREATE TABLE #stmtstats ( BatchIdentifier INT NOT NULL, FKSQLStmtStoreID BIGINT NOT NULL, FKQueryPlanStmtStoreID BIGINT NOT NULL, [#Seen] INT NOT NULL, FirstSeenUTC DATETIME NOT NULL, LastSeenUTC DATETIME NOT NULL, FirstSeen DATETIME NULL, LastSeen DATETIME NULL, StatusCodeAgg NVARCHAR(100) NULL, Waits NVARCHAR(4000) NULL, CXWaits NVARCHAR(4000) NULL, tempdb_task__FirstSeenPages BIGINT NULL, tempdb_task__LastSeenPages BIGINT NULL, tempdb_task__MinPages BIGINT NULL, tempdb_task__MaxPages BIGINT NULL, tempdb_task__AvgPages DECIMAL(21,2) NULL, --calculated fields: --tempdb_task__FirstLastDeltaPages --tempdb_task__MinMaxDeltaPages tempdb_sess__FirstSeenPages BIGINT NULL, tempdb_sess__LastSeenPages BIGINT NULL, tempdb_sess__MinPages BIGINT NULL, tempdb_sess__MaxPages BIGINT NULL, tempdb_sess__AvgPages DECIMAL(21,2) NULL, --calculated fields: --tempdb_sess__FirstLastDeltaPages --tempdb_sess__MinMaxDeltaPages qmem_requested__FirstSeenKB BIGINT NULL, qmem_requested__LastSeenKB BIGINT NULL, qmem_requested__MinKB BIGINT, qmem_requested__MaxKB BIGINT, qmem_requested__AvgKB DECIMAL(21,2) NULL, --calculated fields: --qmem_requested__FirstLastDeltaKB --qmem_requested__MinMaxDeltaKB qmem_granted__FirstSeenKB BIGINT NULL, qmem_granted__LastSeenKB BIGINT NULL, qmem_granted__MinKB BIGINT, qmem_granted__MaxKB BIGINT, qmem_granted__AvgKB DECIMAL(21,2) NULL, --calculated fields: --qmem_granted__FirstLastDeltaKB --qmem_granted__MinMaxDeltaKB qmem_used__FirstSeenKB BIGINT NULL, qmem_used__LastSeenKB BIGINT NULL, qmem_used__MinKB BIGINT, qmem_used__MaxKB BIGINT, qmem_used__AvgKB DECIMAL(21,2) NULL, --calculated fields: --qmem_used__FirstLastDeltaKB --qmem_used__MinMaxDeltaKB tasks__FirstSeen SMALLINT NULL, tasks__LastSeen SMALLINT NULL, tasks__MinSeen SMALLINT NULL, tasks__MaxSeen SMALLINT NULL, tasks__AvgSeen DECIMAL(7,2) NULL, --no need for calculated fields here. The numbers are small enough -- for people to do it quickly w/their eye DOP__FirstSeen SMALLINT NULL, DOP__LastSeen SMALLINT NULL, DOP__MinSeen SMALLINT NULL, DOP__MaxSeen SMALLINT NULL, DOP__AvgSeen DECIMAL(7,2) NULL, --no need for calculated fields here. The numbers are small enough -- for people to do it quickly w/their eye TlogUsed__FirstSeenBytes BIGINT NULL, TlogUsed__LastSeenBytes BIGINT NULL, TlogUsed__minBytes BIGINT, TlogUsed__maxBytes BIGINT, --calculated fields: --TlogUsed__FirstLastDeltaKB --TlogUsed__MinMaxDeltaKB CPUused__FirstSeenMs BIGINT NULL, CPUused__LastSeenMs BIGINT NULL, CPUused__minMs BIGINT, CPUused__maxMs BIGINT, --calculated fields: --CPUused__FirstLastDeltaMs --CPUused__MinMaxDeltaMs LReads__FirstSeenPages BIGINT NULL, LReads__LastSeenPages BIGINT NULL, LReads__MinPages BIGINT NULL, LReads__MaxPages BIGINT NULL, --calculated fields: --LReads__FirstLastDeltaPages --LReads__MinMaxDeltaPages PReads__FirstSeenPages BIGINT NULL, PReads__LastSeenPages BIGINT NULL, PReads__MinPages BIGINT NULL, PReads__MaxPages BIGINT NULL, --calculated fields: --PReads__FirstLastDeltaPages --PReads__MinMaxDeltaPages Writes__FirstSeenPages BIGINT NULL, Writes__LastSeenPages BIGINT NULL, Writes__MinPages BIGINT NULL, Writes__MaxPages BIGINT NULL --calculated fields: --Writes__FirstLastDeltaPages --Writes__MinMaxDeltaPages ); --Note that this holds data in a partially-aggregated state, b/c of both the "tstate" field and the FKDimWaitType field are present in the grouping, -- but our final display will present the full aggregation over the data w/only one of them at a time. (tstate data in one field, waits in another) CREATE TABLE #stmtwaitstats ( BatchIdentifier INT NOT NULL, FKSQLStmtStoreID BIGINT NOT NULL, FKQueryPlanStmtStoreID BIGINT NOT NULL, FKDimWaitType SMALLINT NOT NULL, tstate NVARCHAR(20) NOT NULL, wait_order_category TINYINT NOT NULL, wait_special_tag NVARCHAR(100) NOT NULL, NumTasks INT, TotalWaitTime BIGINT ); -- There is also the possibility that conversion to XML will fail, so we don't want to wait until the final join. -- This temp table is our workspace for that resolution/conversion work. CREATE TABLE #SQLStmtStore ( PKSQLStmtStoreID BIGINT NOT NULL, [sql_handle] VARBINARY(64) NOT NULL, statement_start_offset INT NOT NULL, statement_end_offset INT NOT NULL, [dbid] SMALLINT NOT NULL, [objectid] INT NOT NULL, datalen_batch INT NOT NULL, stmt_text NVARCHAR(MAX) NOT NULL, stmt_xml XML, dbname NVARCHAR(128), schname NVARCHAR(128), objname NVARCHAR(128) ); --Ditto, input buffer conversions to XML can fail. CREATE TABLE #InputBufferStore ( PKInputBufferStoreID BIGINT NOT NULL, inputbuffer NVARCHAR(4000) NOT NULL, inputbuffer_xml XML ); --Ditto, QP conversions to XML can fail. CREATE TABLE #QueryPlanStmtStore ( PKQueryPlanStmtStoreID BIGINT NOT NULL, [plan_handle] VARBINARY(64) NOT NULL, --statement_start_offset INT NOT NULL, --statement_end_offset INT NOT NULL, --[dbid] SMALLINT NOT NULL, --[objectid] INT NOT NULL, query_plan_text NVARCHAR(MAX) NOT NULL, query_plan_xml XML ); /**************************************************************************************************** ********** Request identification and scope filtering ********** *****************************************************************************************************/ IF ISNULL(@dbs,N'') = N'' BEGIN SET @DBInclusionsExist = 0; --this flag (only for inclusions) is a perf optimization END ELSE BEGIN BEGIN TRY INSERT INTO #FilterTab (FilterType, FilterID, FilterName) SELECT 0, d.database_id, d.name FROM (SELECT [dbnames] = LTRIM(RTRIM(Split.a.value(N'.', 'NVARCHAR(512)'))) FROM (SELECT CAST(N'<M>' + REPLACE( @dbs, N',' , N'</M><M>') + N'</M>' AS XML) AS dblist) xmlparse CROSS APPLY dblist.nodes(N'/M') Split(a) ) SS INNER JOIN sys.databases d --we need the join to sys.databases so that we can get the correct case for the DB name. ON LOWER(SS.dbnames) = LOWER(d.name) --the user may have passed in a db name that doesn't match the case for the DB name in the catalog, WHERE SS.dbnames <> N''; -- and on a server with case-sensitive collation, we need to make sure we get the DB name exactly right SET @lv__ScratchInt = @@ROWCOUNT; IF @lv__ScratchInt = 0 BEGIN SET @DBInclusionsExist = 0; END ELSE BEGIN SET @DBInclusionsExist = 1; END END TRY BEGIN CATCH SET @lv__msg = N'Error occurred when attempting to CONVERT the @dbs parameter (comma-separated list of database names) to a table of valid DB names. Error #: ' + CONVERT(NVARCHAR(20), ERROR_NUMBER()) + N'; State: ' + CONVERT(NVARCHAR(20), ERROR_STATE()) + N'; Severity: ' + CONVERT(NVARCHAR(20), ERROR_SEVERITY()) + '; Message: ' + ERROR_MESSAGE(); RAISERROR(@lv__msg, 16, 1); RETURN -1; END CATCH END --db inclusion string parsing IF ISNULL(@xdbs, N'') = N'' BEGIN SET @DBExclusionsExist = 0; END ELSE BEGIN BEGIN TRY INSERT INTO #FilterTab (FilterType, FilterID, FilterName) SELECT 1, d.database_id, d.name FROM (SELECT [dbnames] = LTRIM(RTRIM(Split.a.value(N'.', 'NVARCHAR(512)'))) FROM (SELECT CAST(N'<M>' + REPLACE( @xdbs, N',' , N'</M><M>') + N'</M>' AS XML) AS dblist) xmlparse CROSS APPLY dblist.nodes(N'/M') Split(a) ) SS INNER JOIN sys.databases d --we need the join to sys.databases so that we can get the correct case for the DB name. ON LOWER(SS.dbnames) = LOWER(d.name) --the user may have passed in a db name that doesn't match the case for the DB name in the catalog, WHERE SS.dbnames <> N''; -- and on a server with case-sensitive collation, we need to make sure we get the DB name exactly right SET @lv__ScratchInt = @@ROWCOUNT; IF @lv__ScratchInt = 0 BEGIN SET @DBExclusionsExist = 0; END ELSE BEGIN SET @DBExclusionsExist = 1; END END TRY BEGIN CATCH SET @lv__msg = N'Error occurred when attempting to CONVERT the @xdbs parameter (comma-separated list of database names) to a table of valid DB names. Error #: ' + CONVERT(NVARCHAR(20), ERROR_NUMBER()) + N'; State: ' + CONVERT(NVARCHAR(20), ERROR_STATE()) + N'; Severity: ' + CONVERT(NVARCHAR(20), ERROR_SEVERITY()) + '; Message: ' + ERROR_MESSAGE(); RAISERROR(@lv__msg, 16, 1); RETURN -1; END CATCH END --db exclusion string parsing IF ISNULL(@spids,N'') = N'' BEGIN SET @SPIDInclusionsExist = 0; --this flag (only for inclusions) is a perf optimization END ELSE BEGIN BEGIN TRY INSERT INTO #FilterTab (FilterType, FilterID, FilterName) SELECT 2, SS.spids, NULL FROM (SELECT [spids] = LTRIM(RTRIM(Split.a.value(N'.', 'NVARCHAR(512)'))) FROM (SELECT CAST(N'<M>' + REPLACE( @spids, N',' , N'</M><M>') + N'</M>' AS XML) AS spidlist) xmlparse CROSS APPLY spidlist.nodes(N'/M') Split(a) ) SS WHERE SS.spids <> N''; SET @lv__ScratchInt = @@ROWCOUNT; IF @lv__ScratchInt = 0 BEGIN SET @SPIDInclusionsExist = 0; END ELSE BEGIN SET @SPIDInclusionsExist = 1; END END TRY BEGIN CATCH SET @lv__msg = N'Error occurred when attempting to CONVERT the @spids parameter (comma-separated list of session IDs) to a table of valid integer values. Error #: ' + CONVERT(NVARCHAR(20), ERROR_NUMBER()) + N'; State: ' + CONVERT(NVARCHAR(20), ERROR_STATE()) + N'; Severity: ' + CONVERT(NVARCHAR(20), ERROR_SEVERITY()) + '; Message: ' + ERROR_MESSAGE(); RAISERROR(@lv__msg, 16, 1); RETURN -1; END CATCH END --spid inclusion string parsing IF ISNULL(@xspids,N'') = N'' BEGIN SET @SPIDExclusionsExist = 0; END ELSE BEGIN BEGIN TRY INSERT INTO #FilterTab (FilterType, FilterID, FilterName) SELECT 3, SS.spids, NULL FROM (SELECT [spids] = LTRIM(RTRIM(Split.a.value(N'.', 'NVARCHAR(512)'))) FROM (SELECT CAST(N'<M>' + REPLACE( @xspids, N',' , N'</M><M>') + N'</M>' AS XML) AS spidlist) xmlparse CROSS APPLY spidlist.nodes(N'/M') Split(a) ) SS WHERE SS.spids <> N''; SET @lv__ScratchInt = @@ROWCOUNT; IF @lv__ScratchInt = 0 BEGIN SET @SPIDExclusionsExist = 0; END ELSE BEGIN SET @SPIDExclusionsExist = 1; END END TRY BEGIN CATCH SET @lv__msg = N'Error occurred when attempting to CONVERT the @xspids parameter (comma-separated list of session IDs) to a table of valid integer values. Error #: ' + CONVERT(NVARCHAR(20), ERROR_NUMBER()) + N'; State: ' + CONVERT(NVARCHAR(20), ERROR_STATE()) + N'; Severity: ' + CONVERT(NVARCHAR(20), ERROR_SEVERITY()) + '; Message: ' + ERROR_MESSAGE(); RAISERROR(@lv__msg, 16, 1); RETURN -1; END CATCH END --spid exclusion string parsing IF EXISTS (SELECT * FROM #FilterTab dbs INNER JOIN #FilterTab xdbs ON dbs.FilterID = xdbs.FilterID AND dbs.FilterType = 0 AND xdbs.FilterType = 1 ) BEGIN RAISERROR('A database cannot be specified in both the @dbs and @xdbs filter parameters.', 16, 1); RETURN -1; END IF EXISTS (SELECT * FROM #FilterTab dbs INNER JOIN #FilterTab xdbs ON dbs.FilterID = xdbs.FilterID AND dbs.FilterType = 2 AND xdbs.FilterType = 3 ) BEGIN RAISERROR('A session ID cannot be specified in both the @spids and @xspids filter parameters.', 16, 1); RETURN -1; END SET @lv__errorloc = N'Identify capture times'; IF @init = 255 BEGIN INSERT INTO #CaptureTimes ( UTCCaptureTime, SPIDCaptureTime, PrevUTCCaptureTime, diffMS ) SELECT ct.UTCCaptureTime, ct.SPIDCaptureTime, [PrevUTCCaptureTime] = prevCap.UTCCaptureTime, [diffMS] = CASE WHEN prevCap.UTCCaptureTime IS NULL THEN NULL ELSE DATEDIFF(MILLISECOND, prevCap.UTCCaptureTime, ct.UTCCaptureTime) END FROM AutoWho.CaptureTimes ct OUTER APPLY ( SELECT TOP 1 ct2.UTCCaptureTime FROM AutoWho.CaptureTimes ct2 WHERE ct2.UTCCaptureTime < ct.UTCCaptureTime AND ct2.RunWasSuccessful = 1 --Only pull the prev time if it was fairly close to the current row AND ct2.UTCCaptureTime > DATEADD(MINUTE, -2, ct.UTCCaptureTime) ORDER BY ct2.UTCCaptureTime DESC ) prevCap WHERE ct.SPIDCaptureTime BETWEEN @start AND @end --we search by local, but our logic heavily depends on UTC AND ct.RunWasSuccessful = 1; END ELSE BEGIN INSERT INTO #CaptureTimes ( UTCCaptureTime, SPIDCaptureTime, PrevUTCCaptureTime, diffMS ) SELECT ct.UTCCaptureTime, ct.SPIDCaptureTime, [PrevUTCCaptureTime] = prevCap.UTCCaptureTime, [diffMS] = CASE WHEN prevCap.UTCCaptureTime IS NULL THEN NULL ELSE DATEDIFF(MILLISECOND, prevCap.UTCCaptureTime, ct.UTCCaptureTime) END FROM AutoWho.UserCollectionTimes ct OUTER APPLY ( SELECT TOP 1 ct2.UTCCaptureTime FROM AutoWho.UserCollectionTimes ct2 WHERE ct2.UTCCaptureTime < ct.UTCCaptureTime AND ct2.UTCCaptureTime > DATEADD(MINUTE, -2, ct.UTCCaptureTime) ORDER BY ct2.UTCCaptureTime DESC ) prevCap WHERE ct.SPIDCaptureTime BETWEEN @start AND @end; --we search by local, but our logic heavily depends on UTC END DECLARE @EffectiveStartUTC DATETIME, @EffectiveEndUTC DATETIME; --@EffectiveStart DATETIME, --@EffectiveEnd DATETIME; SELECT @EffectiveStartUTC = MIN(ct.UTCCaptureTime), @EffectiveEndUTC = MAX(ct.UTCCaptureTime) FROM #CaptureTimes ct; SET @lv__errorloc = N'Identify long requests'; INSERT INTO #LongBatches ( session_id, request_id, rqst__start_time, BatchIdentifier, FirstSeenUTC, LastSeenUTC, FilteredOut ) SELECT session_id, request_id, rqst__start_time, BatchIdentifier = RANK() OVER (ORDER BY rqst__start_time, session_id, request_id), FirstSeenUTC, LastSeenUTC, 0 FROM ( SELECT sar.session_id, sar.request_id, sar.rqst__start_time, FirstSeenUTC = MIN(sar.UTCCaptureTime), --"Min" only within the start/end range LastSeenUTC = MAX(sar.UTCCaptureTime) --"Max" only within the start/end range FROM AutoWho.SessionsAndRequests sar INNER JOIN #CaptureTimes ct --limit to just successful runs ON ct.UTCCaptureTime = sar.UTCCaptureTime WHERE sar.CollectionInitiatorID = @init AND sar.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC AND sar.request_id >= 0 AND sar.rqst__start_time IS NOT NULL AND sar.sess__is_user_process = 1 AND sar.calc__threshold_ignore = 0 AND sar.calc__duration_ms > @mindur*1000 GROUP BY session_id, request_id, rqst__start_time ) ss OPTION(RECOMPILE) ; IF @SPIDInclusionsExist = 1 --we only want spids that match what's in the #FilterTab table BEGIN --with type=2 DELETE FROM #LongBatches WHERE NOT EXISTS ( SELECT * FROM #FilterTab f WHERE f.FilterType=2 AND f.FilterID = session_id ); END ELSE BEGIN --no inclusions exist. Are we excluding anything? IF @SPIDExclusionsExist = 1 BEGIN DELETE FROM #LongBatches WHERE EXISTS ( SELECT * FROM #FilterTab f WHERE f.FilterType = 3 AND f.FilterID = session_id ); END END CREATE STATISTICS custstat1 ON #LongBatches (session_id, request_id, rqst__start_time, FirstSeen); --Can't filter by database until we have the DB info obtained (see previous statement). --The DB of a request is the first-observed DB IF @attr = N'n' BEGIN UPDATE lb SET lb.StartingDBID = sar.sess__database_id FROM #LongBatches lb INNER JOIN AutoWho.SessionsAndRequests sar ON sar.UTCCaptureTime = lb.FirstSeenUTC AND sar.session_id = lb.session_id AND sar.request_id = lb.request_id AND sar.rqst__start_time = lb.rqst__start_time WHERE sar.CollectionInitiatorID = @init AND sar.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC; END ELSE BEGIN UPDATE lb SET lb.StartingDBID = sar.sess__database_id, SessAttr = N'<?spid' + CONVERT(NVARCHAR(20),sar.session_id) + N' -- ' + NCHAR(10) + NCHAR(13) + N'Connect Time: ' + ISNULL(CONVERT(NVARCHAR(30),sar.conn__connect_time,113),N'<null>') + NCHAR(10) + N'Login Time: ' + ISNULL(CONVERT(NVARCHAR(30),sar.sess__login_time,113),N'<null>') + NCHAR(10) + N'Last Request Start Time: ' + ISNULL(CONVERT(NVARCHAR(30),sar.sess__last_request_start_time,113),N'<null>') + NCHAR(10) + N'Last Request End Time: ' + ISNULL(CONVERT(NVARCHAR(30),sar.sess__last_request_end_time,113),N'<null>') + NCHAR(10) + NCHAR(13) + N'Client PID: ' + ISNULL(CONVERT(NVARCHAR(20),sar.sess__host_process_id),N'<null>') + NCHAR(10) + N'Client Interface/Version: ' + ISNULL(dsa.client_interface_name,N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),dsa.client_version),N'<null>') + NCHAR(10) + N'Net Transport: ' + ISNULL(dca.net_transport,N'<null>') + NCHAR(10) + N'Client Address/Port: ' + ISNULL(dna.client_net_address,N'<null>') + + N' / ' + ISNULL(CONVERT(NVARCHAR(20),NULLIF(sar.conn__client_tcp_port,@lv__nullint)),N'<null>') + NCHAR(10) + N'Local Address/Port: ' + ISNULL(NULLIF(dna.local_net_address,@lv__nullstring),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),NULLIF(dna.local_tcp_port,@lv__nullint)),N'<null>') + NCHAR(10) + N'Endpoint (Sess/Conn): ' + ISNULL(CONVERT(NVARCHAR(20),dsa.endpoint_id),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),dca.endpoint_id),N'<null>') + NCHAR(10) + N'Protocol Type/Version: ' + ISNULL(dca.protocol_type,N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),dca.protocol_version),N'<null>') + NCHAR(10) + N'Net Transport: ' + ISNULL(dca.net_transport,N'<null>') + NCHAR(10) + N'Net Packet Size: ' + ISNULL(CONVERT(NVARCHAR(20),dca.net_packet_size),N'<null>') + NCHAR(10) + N'Encrypt Option: ' + ISNULL(dca.encrypt_option,N'<null>') + NCHAR(10) + N'Auth Scheme: ' + ISNULL(dca.auth_scheme,N'<null>') + NCHAR(10) + NCHAR(13) + N'Node Affinity: ' + ISNULL(CONVERT(NVARCHAR(20),dca.node_affinity),N'<null>') + NCHAR(10) + N'Group ID (Sess/Rqst): ' + ISNULL(CONVERT(NVARCHAR(20),dsa.group_id),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),ISNULL(sar.rqst__group_id,-1)),N'<null>') + NCHAR(10) + N'Scheduler ID: ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__scheduler_id),N'<null>') + NCHAR(10) + N'Managed Code: ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__executing_managed_code),N'<null>') + NCHAR(10) + NCHAR(13) + N'Open Tran Count (Sess/Rqst): ' + ISNULL(CONVERT(NVARCHAR(20),sar.sess__open_transaction_count),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__open_transaction_count),N'<null>') + NCHAR(10) + N'Tran Iso Level (Sess/Rqst): ' + ISNULL(CONVERT(NVARCHAR(20),dsa.transaction_isolation_level),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__transaction_isolation_level),N'<null>') + NCHAR(10) + N'Lock Timeout (Sess/Rqst): ' + ISNULL(CONVERT(NVARCHAR(20),sar.sess__lock_timeout),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__lock_timeout),N'<null>') + NCHAR(10) + N'Deadlock Priority (Sess/Rqst): ' + ISNULL(CONVERT(NVARCHAR(20),dsa.deadlock_priority),N'<null>') + N' / ' + ISNULL(CONVERT(NVARCHAR(20),sar.rqst__deadlock_priority),N'<null>') + NCHAR(10) + NCHAR(13) + N' -- ?>' FROM #LongBatches lb INNER JOIN AutoWho.SessionsAndRequests sar ON sar.UTCCaptureTime = lb.FirstSeenUTC AND sar.session_id = lb.session_id AND sar.request_id = lb.request_id AND sar.rqst__start_time = lb.rqst__start_time LEFT OUTER JOIN AutoWho.DimSessionAttribute dsa ON sar.sess__FKDimSessionAttribute = dsa.DimSessionAttributeID LEFT OUTER JOIN AutoWho.DimNetAddress dna ON sar.conn__FKDimNetAddress = dna.DimNetAddressID LEFT OUTER JOIN AutoWho.DimConnectionAttribute dca ON sar.conn__FKDimConnectionAttribute = dca.DimConnectionAttributeID WHERE sar.CollectionInitiatorID = @init AND sar.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC; END IF @DBInclusionsExist = 1 BEGIN DELETE FROM #LongBatches WHERE NOT EXISTS ( SELECT * FROM #FilterTab f WHERE f.FilterType=0 AND f.FilterID = StartingDBID ); END ELSE BEGIN IF @DBExclusionsExist = 1 BEGIN DELETE FROM #LongBatches WHERE EXISTS ( SELECT * FROM #FilterTab f WHERE f.FilterType=1 AND f.FilterID = StartingDBID ); END END /**************************************************************************************************** ********** Get the data! ********** *****************************************************************************************************/ --For efficiency, let's grab the data from SAR and TAW that we will need for these batches, to save repeated -- trips to the much larger tables. SET @lv__errorloc = N'Populate SAR cache'; INSERT INTO #sarcache ( UTCCaptureTime, SPIDCaptureTime, session_id, request_id, rqst__start_time, BatchIdentifier, rqst__status_code, rqst__cpu_time, rqst__reads, rqst__writes, rqst__logical_reads, rqst__FKDimCommand, rqst__FKDimWaitType, --tempdb__CurrentlyAllocatedPages, tempdb__TaskPages, tempdb__SessPages, tempdb__CalculatedNumberOfTasks, mgrant__requested_memory_kb, mgrant__granted_memory_kb, mgrant__used_memory_kb, mgrant__dop, tran_log_bytes, calc__tmr_wait, FKSQLStmtStoreID, FKInputBufferStoreID, FKQueryPlanStmtStoreID ) SELECT sar.UTCCaptureTime, sar.SPIDCaptureTime, sar.session_id, sar.request_id, sar.rqst__start_time, lb.BatchIdentifier, sar.rqst__status_code, sar.rqst__cpu_time, sar.rqst__reads, sar.rqst__writes, sar.rqst__logical_reads, sar.rqst__FKDimCommand, sar.rqst__FKDimWaitType, [tempdb__task] = (CASE WHEN (ISNULL(sar.tempdb__task_user_objects_alloc_page_count,0) - ISNULL(sar.tempdb__task_user_objects_dealloc_page_count,0)) < 0 THEN 0 ELSE (ISNULL(sar.tempdb__task_user_objects_alloc_page_count,0) - ISNULL(sar.tempdb__task_user_objects_dealloc_page_count,0)) END + CASE WHEN (ISNULL(sar.tempdb__task_internal_objects_alloc_page_count,0) - ISNULL(sar.tempdb__task_internal_objects_dealloc_page_count,0)) < 0 THEN 0 ELSE (ISNULL(sar.tempdb__task_internal_objects_alloc_page_count,0) - ISNULL(sar.tempdb__task_internal_objects_dealloc_page_count,0)) END ), [tempdb__sess] = ( CASE WHEN (ISNULL(sar.tempdb__sess_user_objects_alloc_page_count,0) - ISNULL(sar.tempdb__sess_user_objects_dealloc_page_count,0)) < 0 THEN 0 ELSE (ISNULL(sar.tempdb__sess_user_objects_alloc_page_count,0) - ISNULL(sar.tempdb__sess_user_objects_dealloc_page_count,0)) END + CASE WHEN (ISNULL(sar.tempdb__sess_internal_objects_alloc_page_count,0) - ISNULL(sar.tempdb__sess_internal_objects_dealloc_page_count,0)) < 0 THEN 0 ELSE (ISNULL(sar.tempdb__sess_internal_objects_alloc_page_count,0) - ISNULL(sar.tempdb__sess_internal_objects_dealloc_page_count,0)) END ), sar.tempdb__CalculatedNumberOfTasks, ISNULL(sar.mgrant__requested_memory_kb,0), ISNULL(sar.mgrant__granted_memory_kb,0), ISNULL(sar.mgrant__used_memory_kb,0), ISNULL(sar.mgrant__dop,0), ISNULL(trx.tran_log_bytes,0), sar.calc__tmr_wait, ISNULL(sar.FKSQLStmtStoreID,-1), sar.FKInputBufferStoreID, CASE WHEN FKQueryPlanStmtStoreID IS NULL OR @plan=N'n' THEN -1 ELSE sar.FKQueryPlanStmtStoreID END FROM AutoWho.SessionsAndRequests sar INNER JOIN #CaptureTimes ct --limit to just successful runs ON sar.UTCCaptureTime = ct.UTCCaptureTime INNER JOIN #LongBatches lb ON lb.session_id = sar.session_id AND lb.request_id = sar.request_id AND lb.rqst__start_time = sar.rqst__start_time LEFT OUTER JOIN ( SELECT UTCCaptureTime, session_id, tran_log_bytes = SUM(tran_log_bytes) FROM ( SELECT td.UTCCaptureTime, td.session_id, [tran_log_bytes] = CASE WHEN (ISNULL(dtdt_database_transaction_log_bytes_used,0) + ISNULL(dtdt_database_transaction_log_bytes_used_system,0)) >= (ISNULL(dtdt_database_transaction_log_bytes_reserved,0) + ISNULL(dtdt_database_transaction_log_bytes_reserved_system,0)) THEN ISNULL(dtdt_database_transaction_log_bytes_used,0) + ISNULL(dtdt_database_transaction_log_bytes_used_system,0) ELSE ISNULL(dtdt_database_transaction_log_bytes_reserved,0) + ISNULL(dtdt_database_transaction_log_bytes_reserved_system,0) END FROM AutoWho.TransactionDetails td WHERE td.CollectionInitiatorID = @init AND td.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC ) ss GROUP BY UTCCaptureTime, session_id ) trx ON sar.UTCCaptureTime = trx.UTCCaptureTime AND sar.session_id = trx.session_id WHERE sar.CollectionInitiatorID = @init AND sar.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC OPTION(RECOMPILE); CREATE UNIQUE CLUSTERED INDEX CL1 ON #sarcache (BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, UTCCaptureTime); SET @lv__errorloc = N'Populate TAW cache'; INSERT INTO #tawcache ( UTCCaptureTime, SPIDCaptureTime, session_id, request_id, task_address, BatchIdentifier, TaskIdentifier, tstate, FKDimWaitType, wait_duration_ms, wait_order_category, wait_special_tag, wait_special_number ) SELECT UTCCaptureTime, SPIDCaptureTime, session_id, request_id, task_address, BatchIdentifier, TaskIdentifier = ROW_NUMBER() OVER (PARTITION BY BatchIdentifier, task_address ORDER BY UTCCaptureTime ASC), tstate, FKDimWaitType, wait_duration_ms, wait_order_category, wait_special_tag, wait_special_number FROM ( SELECT taw.UTCCaptureTime, taw.SPIDCaptureTime, taw.session_id, taw.request_id, taw.task_address, sar.BatchIdentifier, tstate, taw.FKDimWaitType, taw.wait_duration_ms, taw.wait_order_category, taw.wait_special_tag, taw.wait_special_number FROM ( SELECT UTCCaptureTime, SPIDCaptureTime, session_id, request_id, task_address, --We want to display the states that tasks were observed in over the many AutoWho collections -- for a given request, and we want to separate out waits related to parallelism (CXPACKET) from -- other waits. tstate = CASE WHEN taw.FKDimWaitType = @cxpacketwaitid AND taw.tstate = N'S' THEN CONVERT(NVARCHAR(20),N'Suspended(CX)') WHEN taw.tstate = N'S' THEN N'Suspended' WHEN taw.tstate = N'A' THEN N'Runnable' WHEN taw.tstate = N'R' THEN N'Running' ELSE CONVERT(NVARCHAR(20),tstate) END, FKDimWaitType, wait_duration_ms, wait_order_category, wait_special_tag, wait_special_number, --A task_address can be waiting on multiple blockers. We just choose the row -- that has the largest wait_duration_ms rn = ROW_NUMBER() OVER (PARTITION BY UTCCaptureTime, session_id, request_id, task_address ORDER BY wait_duration_ms DESC) FROM AutoWho.TasksAndWaits taw WHERE taw.CollectionInitiatorID = @init AND taw.UTCCaptureTime BETWEEN @EffectiveStartUTC AND @EffectiveEndUTC ) taw INNER JOIN #sarcache sar ON sar.UTCCaptureTime = taw.UTCCaptureTime AND sar.session_id = taw.session_id AND sar.request_id = taw.request_id WHERE taw.rn = 1 ) ss OPTION(RECOMPILE); --Now that we have isolated the requests that will be returned along -- with their SAR and TAW records, we start processing the "header" -- data (a request) and its first-level detail (the statements in that request). SET @lv__errorloc = N'Populate #stmtstats'; INSERT INTO #stmtstats ( BatchIdentifier, --1 [FKSQLStmtStoreID], [FKQueryPlanStmtStoreID], [#Seen], [FirstSeenUTC], --5 [LastSeenUTC], tempdb_task__MinPages, tempdb_task__MaxPages, tempdb_task__AvgPages, tempdb_sess__MinPages, --10 tempdb_sess__MaxPages, tempdb_sess__AvgPages, qmem_requested__MinKB, qmem_requested__MaxKB, qmem_requested__AvgKB, --15 qmem_granted__MinKB, qmem_granted__MaxKB, qmem_granted__AvgKB, qmem_used__MinKB, qmem_used__MaxKB, --20 qmem_used__AvgKB, tasks__MinSeen, tasks__MaxSeen, tasks__AvgSeen, DOP__MinSeen, --25 DOP__MaxSeen, DOP__AvgSeen, TlogUsed__minBytes, TlogUsed__maxBytes, CPUused__minMs, --30 CPUused__maxMs, LReads__MinPages, LReads__MaxPages, PReads__MinPages, PReads__MaxPages, --35 Writes__MinPages, Writes__MaxPages --37 ) SELECT s.BatchIdentifier, --1 s.FKSQLStmtStoreID, s.FKQueryPlanStmtStoreID, SUM(1) AS [#Seen], [FirstSeenUTC] = MIN(UTCCaptureTime), [LastSeenUTC] = MAX(UTCCaptureTime), MIN(s.tempdb__TaskPages), MAX(s.tempdb__TaskPages), CONVERT(DECIMAL(21,2),AVG(s.tempdb__TaskPages*1.)), MIN(s.tempdb__SessPages), --10 MAX(s.tempdb__SessPages), CONVERT(DECIMAL(21,2),AVG(s.tempdb__SessPages*1.)), MIN(s.mgrant__requested_memory_kb), MAX(s.mgrant__requested_memory_kb), CONVERT(DECIMAL(21,2),AVG(s.mgrant__requested_memory_kb*1.)), --15 MIN(s.mgrant__granted_memory_kb), MAX(s.mgrant__granted_memory_kb), CONVERT(DECIMAL(21,2),AVG(s.mgrant__granted_memory_kb*1.)), MIN(s.mgrant__used_memory_kb), MAX(s.mgrant__used_memory_kb), --20 CONVERT(DECIMAL(21,2),AVG(s.mgrant__used_memory_kb*1.)), MIN(s.tempdb__CalculatedNumberOfTasks), MAX(s.tempdb__CalculatedNumberOfTasks), CONVERT(DECIMAL(7,2),AVG(s.tempdb__CalculatedNumberOfTasks*1.)), MIN(s.mgrant__dop), --25 MAX(s.mgrant__dop), CONVERT(DECIMAL(7,2),AVG(s.mgrant__dop*1.)), MIN(s.tran_log_bytes), MAX(s.tran_log_bytes), MIN(s.rqst__cpu_time), --30 MAX(s.rqst__cpu_time), MIN(s.rqst__logical_reads), MAX(s.rqst__logical_reads), MIN(s.rqst__reads), MAX(s.rqst__reads), --35 MIN(s.rqst__writes), MAX(s.rqst__writes) --37 FROM #sarcache s GROUP BY s.BatchIdentifier, s.FKSQLStmtStoreID, s.FKQueryPlanStmtStoreID ; UPDATE targ SET tempdb_task__FirstSeenPages = f.tempdb__TaskPages, tempdb_task__LastSeenPages = l.tempdb__TaskPages, tempdb_sess__FirstSeenPages = f.tempdb__SessPages, tempdb_sess__LastSeenPages = l.tempdb__SessPages, qmem_requested__FirstSeenKB = f.mgrant__requested_memory_kb, qmem_requested__LastSeenKB = l.mgrant__requested_memory_kb, qmem_granted__FirstSeenKB = f.mgrant__granted_memory_kb, qmem_granted__LastSeenKB = l.mgrant__granted_memory_kb, qmem_used__FirstSeenKB = f.mgrant__used_memory_kb, qmem_used__LastSeenKB = l.mgrant__used_memory_kb, tasks__FirstSeen = f.tempdb__CalculatedNumberOfTasks, tasks__LastSeen = l.tempdb__CalculatedNumberOfTasks, DOP__FirstSeen = f.mgrant__dop, DOP__LastSeen = l.mgrant__dop, TlogUsed__FirstSeenBytes = f.tran_log_bytes, TlogUsed__LastSeenBytes = l.tran_log_bytes, CPUused__FirstSeenMs = f.rqst__cpu_time, CPUused__LastSeenMs = l.rqst__cpu_time, LReads__FirstSeenPages = f.rqst__logical_reads, LReads__LastSeenPages = l.rqst__logical_reads, PReads__FirstSeenPages = f.rqst__reads, PReads__LastSeenPages = l.rqst__reads, Writes__FirstSeenPages = f.rqst__writes, Writes__LastSeenPages = l.rqst__writes FROM #stmtstats targ CROSS APPLY ( SELECT cf.tempdb__TaskPages, cf.tempdb__SessPages, cf.mgrant__requested_memory_kb, cf.mgrant__granted_memory_kb, cf.mgrant__used_memory_kb, cf.tempdb__CalculatedNumberOfTasks, cf.mgrant__dop, cf.tran_log_bytes, cf.rqst__cpu_time, cf.rqst__logical_reads, cf.rqst__reads, cf.rqst__writes FROM #sarcache cf WHERE cf.BatchIdentifier = targ.BatchIdentifier AND cf.FKSQLStmtStoreID = targ.FKSQLStmtStoreID AND cf.FKQueryPlanStmtStoreID = targ.FKQueryPlanStmtStoreID AND cf.UTCCaptureTime = targ.FirstSeenUTC ) f CROSS APPLY ( SELECT cf.tempdb__TaskPages, cf.tempdb__SessPages, cf.mgrant__requested_memory_kb, cf.mgrant__granted_memory_kb, cf.mgrant__used_memory_kb, cf.tempdb__CalculatedNumberOfTasks, cf.mgrant__dop, cf.tran_log_bytes, cf.rqst__cpu_time, cf.rqst__logical_reads, cf.rqst__reads, cf.rqst__writes FROM #sarcache cf WHERE cf.BatchIdentifier = targ.BatchIdentifier AND cf.FKSQLStmtStoreID = targ.FKSQLStmtStoreID AND cf.FKQueryPlanStmtStoreID = targ.FKQueryPlanStmtStoreID AND cf.UTCCaptureTime = targ.LastSeenUTC ) l --We now have the first and last observed time for each Batch/Stmt/Plan combo. Go and get -- the first/last metrics --We then process the second-level detail data, task-level info. -- We aggregate task-level info in a couple of different ways, including -- wait stats. SET @lv__errorloc = N'Populate Stmt Wait Stats'; INSERT INTO #stmtwaitstats ( BatchIdentifier, [FKSQLStmtStoreID], [FKQueryPlanStmtStoreID], FKDimWaitType, tstate, wait_order_category, wait_special_tag, NumTasks, TotalWaitTime ) SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, FKDimWaitType, tstate, wait_order_category, wait_special_tag, NumTasks = SUM(1), TotalWaitTime = SUM(wait_duration_ms) FROM ( SELECT sar.BatchIdentifier, sar.FKSQLStmtStoreID, sar.FKQueryPlanStmtStoreID, taw.FKDimWaitType, tstate, taw.wait_order_category, --need this to prevent CXPACKET waits from being the top wait every time taw.wait_duration_ms, --For CXPacket waits, we're going to display the wait subtype wait_special_tag = CASE WHEN taw.wait_order_category = @enum__waitorder__cxp THEN taw.wait_special_tag + N':' + ISNULL(CONVERT(NVARCHAR(20),taw.wait_special_number),N'') ELSE N'' END FROM #sarcache sar INNER JOIN ( --We need to prevent *really* long waits from being double-counted. Join #tawcache to itself -- and find where the "current" wait time is actually > the gap between cur & prev SPIDCaptureTimes. SELECT cur.BatchIdentifier, cur.UTCCaptureTime, cur.session_id, cur.request_id, cur.tstate, cur.FKDimWaitType, cur.wait_order_category, cur.wait_special_tag, cur.wait_special_number, wait_duration_ms = CASE WHEN prev.wait_duration_ms IS NULL THEN cur.wait_duration_ms ELSE (--we have a match, and we already know the wait type is the same CASE WHEN cur.wait_duration_ms > DATEDIFF(millisecond, prev.UTCCaptureTime, cur.UTCCaptureTime) THEN cur.wait_duration_ms - prev.wait_duration_ms ELSE cur.wait_duration_ms END ) END FROM #tawcache cur LEFT OUTER JOIN #tawcache prev ON cur.BatchIdentifier = prev.BatchIdentifier AND cur.task_address = prev.task_address AND cur.FKDimWaitType = prev.FKDimWaitType AND cur.TaskIdentifier = prev.TaskIdentifier+1 ) taw ON sar.UTCCaptureTime = taw.UTCCaptureTime AND sar.session_id = taw.session_id AND sar.request_id = taw.request_id ) tbase GROUP BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, FKDimWaitType, tstate, wait_order_category, wait_special_tag ; --Resolve the statement IDs to the actual statement text SET @lv__errorloc = N'Obtain Stmt Store raw'; INSERT INTO #SQLStmtStore ( PKSQLStmtStoreID, [sql_handle], statement_start_offset, statement_end_offset, [dbid], [objectid], datalen_batch, stmt_text --stmt_xml --dbname NVARCHAR(128), --objname NVARCHAR(128) ) SELECT sss.PKSQLStmtStoreID, sss.sql_handle, sss.statement_start_offset, sss.statement_end_offset, sss.dbid, sss.objectid, sss.datalen_batch, sss.stmt_text FROM CoreXR.SQLStmtStore sss WHERE sss.PKSQLStmtStoreID IN ( SELECT DISTINCT fk.FKSQLStmtStoreID FROM #sarcache fk WHERE fk.FKSQLStmtStoreID > 0 ) ; SET @lv__errorloc = N'Declare Stmt Store Cursor'; DECLARE resolveSQLStmtStore CURSOR LOCAL FAST_FORWARD FOR SELECT PKSQLStmtStoreID, [sql_handle], [dbid], [objectid], stmt_text FROM #SQLStmtStore sss ; SET @lv__errorloc = N'Open Stmt Store Cursor'; OPEN resolveSQLStmtStore; FETCH resolveSQLStmtStore INTO @PKSQLStmtStoreID, @sql_handle, @dbid, @objectid, @stmt_text ; WHILE @@FETCH_STATUS = 0 BEGIN SET @lv__errorloc = N'In Stmt Store loop'; --Note that one major assumption of this procedure is that the DBID hasn't changed since the time the spid was -- collected. For performance reasons, we don't resolve DBID in AutoWho.Collector; thus, if a DB is detached/re-attached, -- or deleted and the DBID is re-used by a completely different database, confusion can ensue. IF @dbid > 0 BEGIN SET @dbname = DB_NAME(@dbid); END ELSE BEGIN SET @dbname = N''; END --Above note about DBID is relevant for this as well. IF @objectid > 0 BEGIN SET @objectname = OBJECT_NAME(@objectid,@dbid); END ELSE BEGIN SET @objectname = N''; END IF @objectid > 0 BEGIN --if we do have a dbid/objectid pair, get the schema for the object IF @dbid > 0 BEGIN SET @schname = OBJECT_SCHEMA_NAME(@objectid, @dbid); END ELSE BEGIN --if we don't have a valid dbid, we still do a "best effort" attempt to get schema SET @schname = OBJECT_SCHEMA_NAME(@objectid); END IF @schname IS NULL BEGIN SET @schname = N''; END END ELSE BEGIN SET @schname = N''; END IF @sql_handle = 0x0 BEGIN SET @stmt_xml = CONVERT(XML, N'<?Stmt --' + NCHAR(10)+NCHAR(13) + N'sql_handle is 0x0. The current SQL statement cannot be displayed.' + NCHAR(10) + NCHAR(13) + N'PKSQLStmtStoreID: ' + CONVERT(NVARCHAR(20),ISNULL(@PKSQLStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END ELSE BEGIN IF @stmt_text IS NULL BEGIN SET @stmt_xml = CONVERT(XML, N'<?Stmt --' + NCHAR(10)+NCHAR(13) + N'The statement text is NULL. No T-SQL command to display.' + NCHAR(10) + NCHAR(13) + N'PKSQLStmtStoreID: ' + CONVERT(NVARCHAR(20),ISNULL(@PKSQLStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END ELSE BEGIN BEGIN TRY SET @stmt_xml = CONVERT(XML, N'<?Stmt --' + NCHAR(10)+NCHAR(13) + @stmt_text + + NCHAR(10) + NCHAR(13) + N'PKSQLStmtStoreID: ' + CONVERT(NVARCHAR(20),ISNULL(@PKSQLStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END TRY BEGIN CATCH SET @stmt_xml = CONVERT(XML, N'<?Stmt --' + NCHAR(10)+NCHAR(13) + N'Error CONVERTing text to XML: ' + ERROR_MESSAGE() + NCHAR(10) + NCHAR(13) + N'PKSQLStmtStoreID: ' + CONVERT(NVARCHAR(20),ISNULL(@PKSQLStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END CATCH END END UPDATE #SQLStmtStore SET dbname = @dbname, objname = @objectname, schname = @schname, stmt_xml = @stmt_xml WHERE PKSQLStmtStoreID = @PKSQLStmtStoreID; FETCH resolveSQLStmtStore INTO @PKSQLStmtStoreID, @sql_handle, @dbid, @objectid, @stmt_text ; END --WHILE loop for SQL Stmt Store cursor CLOSE resolveSQLStmtStore; DEALLOCATE resolveSQLStmtStore; --Resolve the Input Buffer IDs to the corresponding text. SET @lv__errorloc = N'Obtain IB raw'; INSERT INTO #InputBufferStore ( PKInputBufferStoreID, inputbuffer --inputbuffer_xml ) SELECT ibs.PKInputBufferStoreID, ibs.InputBuffer FROM CoreXR.InputBufferStore ibs WHERE ibs.PKInputBufferStoreID IN ( SELECT DISTINCT fk.FKInputBufferStoreID FROM #sarcache fk WHERE fk.FKInputBufferStoreID IS NOT NULL ) ; SET @lv__errorloc = N'Declare IB cursor'; DECLARE resolveInputBufferStore CURSOR LOCAL FAST_FORWARD FOR SELECT PKInputBufferStoreID, inputbuffer FROM #InputBufferStore ; SET @lv__errorloc = N'Open IB cursor'; OPEN resolveInputBufferStore; FETCH resolveInputBufferStore INTO @PKInputBufferStore, @ibuf_text; WHILE @@FETCH_STATUS = 0 BEGIN SET @lv__errorloc = N'In IB loop'; IF @ibuf_text IS NULL BEGIN SET @ibuf_xml = CONVERT(XML, N'<?InputBuffer --' + NCHAR(10)+NCHAR(13) + N'The Input Buffer is NULL.' + NCHAR(10) + NCHAR(13) + N'PKInputBufferStore: ' + CONVERT(NVARCHAR(20),ISNULL(@PKInputBufferStore,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END ELSE BEGIN BEGIN TRY SET @ibuf_xml = CONVERT(XML, N'<?InputBuffer --' + NCHAR(10)+NCHAR(13) + @ibuf_text + + NCHAR(10) + NCHAR(13) + N'PKInputBufferStore: ' + CONVERT(NVARCHAR(20),ISNULL(@PKInputBufferStore,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END TRY BEGIN CATCH SET @ibuf_xml = CONVERT(XML, N'<?InputBuffer --' + NCHAR(10)+NCHAR(13) + N'Error CONVERTing Input Buffer to XML: ' + ERROR_MESSAGE() + NCHAR(10) + NCHAR(13) + N'PKInputBufferStore: ' + CONVERT(NVARCHAR(20),ISNULL(@PKInputBufferStore,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END CATCH END UPDATE #InputBufferStore SET inputbuffer_xml = @ibuf_xml WHERE PKInputBufferStoreID = @PKInputBufferStore; FETCH resolveInputBufferStore INTO @PKInputBufferStore, @ibuf_text; END CLOSE resolveInputBufferStore; DEALLOCATE resolveInputBufferStore; --A given request/batch should only ever have 1 unique input buffer. (The ROW_NUMBER() calc below -- handles any weird cases). Assign that IB to the parent-level record for the request SET @lv__errorloc = N'Assign IB to batch'; UPDATE targ SET targ.FKInputBufferStore = ss2.FKInputBufferStoreID FROM #LongBatches targ INNER JOIN ( SELECT session_id, request_id, rqst__start_time, FKInputBufferStoreID, rn = ROW_NUMBER() OVER (PARTITION BY session_id, request_id, rqst__start_time, FKInputBufferStoreID ORDER BY NumOccurrences DESC) FROM ( SELECT sar.session_id, sar.request_id, sar.rqst__start_time, sar.FKInputBufferStoreID, NumOccurrences = COUNT(*) FROM #sarcache sar GROUP BY sar.session_id, sar.request_id, sar.rqst__start_time, sar.FKInputBufferStoreID ) ss ) ss2 ON targ.session_id = ss2.session_id AND targ.request_id = ss2.request_id AND targ.rqst__start_time = ss2.rqst__start_time WHERE ss2.rn = 1 ; --Resolve query plan identifiers to their actual XML IF @plan = N'y' BEGIN SET @lv__errorloc = N'Obtain query plan store raw'; INSERT INTO #QueryPlanStmtStore ( PKQueryPlanStmtStoreID, [plan_handle], --statement_start_offset, --statement_end_offset, --[dbid], --[objectid], [query_plan_text] --[query_plan_xml] ) SELECT qpss.PKQueryPlanStmtStoreID, qpss.plan_handle, qpss.query_plan FROM CoreXR.QueryPlanStmtStore qpss WHERE qpss.PKQueryPlanStmtStoreID IN ( SELECT DISTINCT fk.FKQueryPlanStmtStoreID FROM #sarcache fk WHERE fk.FKQueryPlanStmtStoreID > 0 ) ; SET @lv__errorloc = N'Declare query plan cursor'; DECLARE resolveQueryPlanStmtStore CURSOR LOCAL FAST_FORWARD FOR SELECT qpss.PKQueryPlanStmtStoreID, qpss.plan_handle, qpss.query_plan_text FROM #QueryPlanStmtStore qpss; SET @lv__errorloc = N'Open query plan cursor'; OPEN resolveQueryPlanStmtStore; FETCH resolveQueryPlanStmtStore INTO @PKQueryPlanStmtStoreID, @plan_handle, @query_plan_text; WHILE @@FETCH_STATUS = 0 BEGIN SET @lv__errorloc = N'In query plan loop'; IF @plan_handle = 0x0 BEGIN SET @query_plan_xml = CONVERT(XML, N'<?StmtPlan --' + NCHAR(10)+NCHAR(13) + N'plan_handle is 0x0. The Statement Query Plan cannot be displayed.' + NCHAR(10) + NCHAR(13) + N'PKQueryPlanStmtStoreID: ' + CONVERT(NVARCHAR(20), ISNULL(@PKQueryPlanStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END ELSE BEGIN IF @query_plan_text IS NULL BEGIN SET @query_plan_xml = CONVERT(XML, N'<?StmtPlan --' + NCHAR(10)+NCHAR(13) + N'The Statement Query Plan is NULL.' + NCHAR(10) + NCHAR(13) + N'PKQueryPlanStmtStoreID: ' + CONVERT(NVARCHAR(20), ISNULL(@PKQueryPlanStmtStoreID,-1)) + NCHAR(10) + NCHAR(13) + N'-- ?>'); END ELSE BEGIN BEGIN TRY SET @query_plan_xml = CONVERT(XML, @query_plan_text); END TRY BEGIN CATCH --Most common reason for this is the 128-node limit SET @query_plan_xml = CONVERT(XML, N'<?StmtPlan --' + NCHAR(10)+NCHAR(13) + N'Error CONVERTing Statement Query Plan to XML: ' + ERROR_MESSAGE() + NCHAR(10) + NCHAR(13) + N'PKQueryPlanStmtStoreID: ' + CONVERT(NVARCHAR(20), ISNULL(@PKQueryPlanStmtStoreID,-1)) + CASE WHEN ERROR_NUMBER() = 6335 AND @PKSQLStmtStoreID IS NOT NULL THEN N'-- You can extract this query plan to a file with the below script --DROP TABLE dbo.largeQPbcpout SELECT query_plan INTO dbo.largeQPbcpout FROM CoreXR.QueryPlanStmtStore q WHERE q.PKQueryPlanStmtStoreID = ' + CONVERT(NVARCHAR(20),@PKQueryPlanStmtStoreID) + N' --then from a command line: bcp dbo.largeQPbcpout out c:\largeqpxmlout.sqlplan -c -S. -T ' ELSE N'' END + NCHAR(10) + NCHAR(13) + N'-- ?>'); END CATCH END END UPDATE #QueryPlanStmtStore SET query_plan_xml = @query_plan_xml WHERE PKQueryPlanStmtStoreID = @PKQueryPlanStmtStoreID; FETCH resolveQueryPlanStmtStore INTO @PKQueryPlanStmtStoreID, @plan_handle, @query_plan_text; END CLOSE resolveQueryPlanStmtStore; DEALLOCATE resolveQueryPlanStmtStore; END --Aggregate the task states. SET @lv__errorloc = N'Assign Status Code Agg'; UPDATE targ SET StatusCodeAgg = t0.status_info FROM #stmtstats targ INNER JOIN ( SELECT status_nodes.status_node.value('(batchidentifier/text())[1]', 'INT') AS BatchIdentifier, status_nodes.status_node.value('(fksqlstmtstoreid/text())[1]', 'BIGINT') AS FKSQLStmtStoreID, status_nodes.status_node.value('(fkqueryplanstmtstoreid/text())[1]', 'BIGINT') AS FKQueryPlanStmtStoreID, status_nodes.status_node.value('(rqststatformatted/text())[1]', 'NVARCHAR(4000)') AS status_info FROM ( SELECT CONVERT(XML, REPLACE ( CONVERT(NVARCHAR(MAX), status_raw.status_xml_raw) COLLATE Latin1_General_Bin2, N'</rqststatformatted></status><status><rqststatformatted>', N', ' + --LEFT(CRYPT_GEN_RANDOM(1), 0) LEFT(CONVERT(NVARCHAR(40),NEWID()),0) --This statement sometimes runs very slow, so we are using a "side effecting function" to avoid the default Expression Service caching behavior, -- per the Paul White blog article here: http://sqlblog.com/blogs/paul_white/archive/2012/09/05/compute-scalars-expressions-and-execution-plan-performance.aspx ) ) AS status_xml FROM ( SELECT batchidentifier = CASE WHEN ordered.OccurrenceOrder = 1 THEN ordered.BatchIdentifier ELSE NULL END, fksqlstmtstoreid = CASE WHEN ordered.OccurrenceOrder = 1 THEN ordered.FKSQLStmtStoreID ELSE NULL END, fkqueryplanstmtstoreid = CASE WHEN ordered.OccurrenceOrder = 1 THEN ordered.FKQueryPlanStmtStoreID ELSE NULL END, rqststatformatted = StatusCode + N',' + CONVERT(NVARCHAR(20),Pct) + N'% (' + CONVERT(NVARCHAR(20),NumOccurrences) + N')' FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, StatusCode, NumOccurrences, TotalPerStmt, Pct = CONVERT(DECIMAL(4,1),100.*(1.*NumOccurrences) / (1.*TotalPerStmt)), OccurrenceOrder = ROW_NUMBER() OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID ORDER BY NumOccurrences DESC) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, StatusCode, NumOccurrences, [TotalPerStmt] = SUM(NumOccurrences) OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, StatusCode = tstate, NumOccurrences = SUM(1) FROM #stmtwaitstats sar GROUP BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, tstate ) grp ) grpwithtotal ) ordered ORDER BY ordered.BatchIdentifier, ordered.FKSQLStmtStoreID, ordered.FKQueryPlanStmtStoreID FOR XML PATH(N'status') ) AS status_raw (status_xml_raw) ) as status_final CROSS APPLY status_final.status_xml.nodes(N'/status') AS status_nodes (status_node) WHERE status_nodes.status_node.exist(N'batchidentifier') = 1 --order by 1, 2, 3 ) t0 ON targ.BatchIdentifier = t0.BatchIdentifier AND targ.FKSQLStmtStoreID = t0.FKSQLStmtStoreID AND targ.FKQueryPlanStmtStoreID = t0.FKQueryPlanStmtStoreID ; --Now do non-CX waits SET @lv__errorloc = N'Construct nonCX waits'; UPDATE targ SET Waits = t0.waity_info FROM #stmtstats targ INNER JOIN ( SELECT waity_nodes.waity_node.value('(batchidentifier/text())[1]', 'INT') AS BatchIdentifier, waity_nodes.waity_node.value('(fksqlstmtstoreid/text())[1]', 'BIGINT') AS FKSQLStmtStoreID, waity_nodes.waity_node.value('(fkqueryplanstmtstoreid/text())[1]', 'BIGINT') AS FKQueryPlanStmtStoreID, waity_nodes.waity_node.value('(waitformatted/text())[1]', 'NVARCHAR(4000)') AS waity_info FROM ( SELECT CONVERT(XML, REPLACE ( CONVERT(NVARCHAR(MAX), waity_raw.waity_xml_raw) COLLATE Latin1_General_Bin2, N'</waitformatted></waity><waity><waitformatted>', N', ' + --LEFT(CRYPT_GEN_RANDOM(1), 0) LEFT(CONVERT(NVARCHAR(40),NEWID()),0) --This statement sometimes runs very slow, so we are using a "side effecting function" to avoid the default Expression Service caching behavior, -- per the Paul White blog article here: http://sqlblog.com/blogs/paul_white/archive/2012/09/05/compute-scalars-expressions-and-execution-plan-performance.aspx ) ) AS waity_xml FROM ( SELECT batchidentifier = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.BatchIdentifier ELSE NULL END, fksqlstmtstoreid = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.FKSQLStmtStoreID ELSE NULL END, fkqueryplanstmtstoreid = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.FKQueryPlanStmtStoreID ELSE NULL END, waitformatted = waittype + N'{' + CONVERT(NVARCHAR(20),NumTasks) + N'x' + CONVERT(NVARCHAR(20),AvgWaitTime) + N'ms=' + CASE WHEN TotalWaitTime = N'''' THEN N'''' ELSE SUBSTRING(TotalWaitTime, 1, CHARINDEX('.',TotalWaitTime)-1) END + N' (' + CONVERT(NVARCHAR(20),WaitPct) + N'%)' + N' }' FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, waittype, NumTasks, TotalWaitTime=ISNULL(CONVERT(NVARCHAR(20),CONVERT(MONEY,TotalWaitTime),1),N''), AvgWaitTime, WaitPct = CASE WHEN AllWaitTime <= 0 THEN -1 ELSE CONVERT(DECIMAL(4,1),100*(1.*TotalWaitTime) / (1.*AllWaitTime)) END, PriorityOrder = ROW_NUMBER() OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID ORDER BY TotalWaitTime DESC) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, waittype = CASE WHEN dwt.latch_subtype <> N'' THEN dwt.wait_type + N'(' + dwt.latch_subtype + N')' ELSE dwt.wait_type END, NumTasks, TotalWaitTime, AvgWaitTime = CONVERT(DECIMAL(21,1), (1.*TotalWaitTime) / (1.*NumTasks)), AllWaitTime = SUM(TotalWaitTime) OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, FKDimWaitType, --wait_order_category, --note that we do NOT include this here, because unlike SessionViewer, we DO want to show -- the waits by how many/long they are, regardless of category. --We need to re-sum (final aggregation) b/c the data in the table has tstate as an additional grouping field, -- but we are not including tstate in this data. NumTasks = SUM(NumTasks), TotalWaitTime = SUM(TotalWaitTime) FROM #stmtwaitstats w WHERE w.wait_order_category <> @enum__waitorder__cxp AND w.FKDimWaitType <> 1 --we ignore running tasks for this field GROUP BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, FKDimWaitType ) grp INNER JOIN AutoWho.DimWaitType dwt ON grp.FKDimWaitType = dwt.DimWaitTypeID ) grpwithtotal --debug --order by BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID ) ordered ORDER BY ordered.BatchIdentifier, ordered.FKSQLStmtStoreID, ordered.FKQueryPlanStmtStoreID FOR XML PATH(N'waity') ) AS waity_raw (waity_xml_raw) ) as waity_final CROSS APPLY waity_final.waity_xml.nodes(N'/waity') AS waity_nodes (waity_node) WHERE waity_nodes.waity_node.exist(N'batchidentifier') = 1 ) t0 ON targ.BatchIdentifier = t0.BatchIdentifier AND targ.FKSQLStmtStoreID = t0.FKSQLStmtStoreID AND targ.FKQueryPlanStmtStoreID = t0.FKQueryPlanStmtStoreID ; --And now CXP waits SET @lv__errorloc = N'Construct CX waits'; UPDATE targ SET CXWaits = t0.mcwaiter_info FROM #stmtstats targ INNER JOIN ( SELECT mcwaiter_nodes.mcwaiter_node.value('(batchidentifier/text())[1]', 'INT') AS BatchIdentifier, mcwaiter_nodes.mcwaiter_node.value('(fksqlstmtstoreid/text())[1]', 'BIGINT') AS FKSQLStmtStoreID, mcwaiter_nodes.mcwaiter_node.value('(fkqueryplanstmtstoreid/text())[1]', 'BIGINT') AS FKQueryPlanStmtStoreID, mcwaiter_nodes.mcwaiter_node.value('(waitformatted/text())[1]', 'NVARCHAR(4000)') AS mcwaiter_info FROM ( SELECT CONVERT(XML, REPLACE ( CONVERT(NVARCHAR(MAX), mcwaiter_raw.mcwaiter_xml_raw) COLLATE Latin1_General_Bin2, N'</waitformatted></mcwaiter><mcwaiter><waitformatted>', N', ' + --LEFT(CRYPT_GEN_RANDOM(1), 0) LEFT(CONVERT(NVARCHAR(40),NEWID()),0) --This statement sometimes runs very slow, so we are using a "side effecting function" to avoid the default Expression Service caching behavior, -- per the Paul White blog article here: http://sqlblog.com/blogs/paul_white/archive/2012/09/05/compute-scalars-expressions-and-execution-plan-performance.aspx ) ) AS mcwaiter_xml FROM ( SELECT batchidentifier = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.BatchIdentifier ELSE NULL END, fksqlstmtstoreid = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.FKSQLStmtStoreID ELSE NULL END, fkqueryplanstmtstoreid = CASE WHEN ordered.PriorityOrder = 1 THEN ordered.FKQueryPlanStmtStoreID ELSE NULL END, waitformatted = waittype + N'{' + CONVERT(NVARCHAR(20),NumTasks) + N'x' + CONVERT(NVARCHAR(20),AvgWaitTime) + N'ms=' + CASE WHEN TotalWaitTime = N'''' THEN N'''' ELSE SUBSTRING(TotalWaitTime, 1, CHARINDEX('.',TotalWaitTime)-1) END + N' (' + CONVERT(NVARCHAR(20),WaitPct) + N'%)' + N' }' FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, waittype, NumTasks, TotalWaitTime=ISNULL(CONVERT(NVARCHAR(20),CONVERT(MONEY,TotalWaitTime),1),N''), AvgWaitTime, WaitPct = CASE WHEN AllWaitTime <= 0 THEN -1 ELSE CONVERT(DECIMAL(4,1),100*(1.*TotalWaitTime) / (1.*AllWaitTime)) END, PriorityOrder = ROW_NUMBER() OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID ORDER BY TotalWaitTime DESC) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, waittype = wait_special_tag, NumTasks, TotalWaitTime, AvgWaitTime = CONVERT(DECIMAL(21,1), (1.*TotalWaitTime) / (1.*NumTasks)), AllWaitTime = SUM(TotalWaitTime) OVER (PARTITION BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID) FROM ( SELECT BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, wait_special_tag, --We need to re-sum (final aggregation) b/c the data in the table has tstate as an additional grouping field, -- but we are not including tstate in this data. NumTasks = SUM(NumTasks), TotalWaitTime = SUM(TotalWaitTime) FROM #stmtwaitstats w WHERE w.wait_order_category = @enum__waitorder__cxp AND w.FKDimWaitType <> 1 --we ignore running tasks for this field AND w.wait_special_tag <> N'?:-929' -- no node ID, unknown wait sub-type... the resource_description field is prob fragmented GROUP BY BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID, wait_special_tag ) grp --For CX waits, we already know the wait type (CXPACKET!) so we can avoid -- the join to DimWaitType completely --INNER JOIN AutoWho.DimWaitType dwt -- ON grp.FKDimWaitType = dwt.DimWaitTypeID ) grpwithtotal --debug --order by BatchIdentifier, FKSQLStmtStoreID, FKQueryPlanStmtStoreID ) ordered ORDER BY ordered.BatchIdentifier, ordered.FKSQLStmtStoreID, ordered.FKQueryPlanStmtStoreID FOR XML PATH(N'mcwaiter') ) AS mcwaiter_raw (mcwaiter_xml_raw) ) as mcwaiter_final CROSS APPLY mcwaiter_final.mcwaiter_xml.nodes(N'/mcwaiter') AS mcwaiter_nodes (mcwaiter_node) WHERE mcwaiter_nodes.mcwaiter_node.exist(N'batchidentifier') = 1 ) t0 ON targ.BatchIdentifier = t0.BatchIdentifier AND targ.FKSQLStmtStoreID = t0.FKSQLStmtStoreID AND targ.FKQueryPlanStmtStoreID = t0.FKQueryPlanStmtStoreID ; /**************************************************************************************************** ********** UTC-local translation ********** *****************************************************************************************************/ UPDATE targ SET FirstSeen = ct1.SPIDCaptureTime, LastSeen = ct2.SPIDCaptureTime FROM #LongBatches targ INNER JOIN #CaptureTimes ct1 ON targ.FirstSeenUTC = ct1.UTCCaptureTime INNER JOIN #CaptureTimes ct2 ON targ.LastSeenUTC = ct2.UTCCaptureTime; UPDATE targ SET FirstSeen = ct1.SPIDCaptureTime, LastSeen = ct2.SPIDCaptureTime FROM #stmtstats targ INNER JOIN #CaptureTimes ct1 ON targ.FirstSeenUTC = ct1.UTCCaptureTime INNER JOIN #CaptureTimes ct2 ON targ.LastSeenUTC = ct2.UTCCaptureTime; /**************************************************************************************************** ********** Final Result Set ********** *****************************************************************************************************/ SET @lv__errorloc = N'Construct calc subquery'; DECLARE @lv__CalcSubQuery NVARCHAR(MAX), @lv__FormatSubQuery NVARCHAR(MAX), @lv__UnionSubQuery NVARCHAR(MAX), @lv__OuterSelect NVARCHAR(MAX); /* Remember the display rules: The order of the columns in the result set for each metric: First/Last Delta First Last Min/Max Delta Min/Max Avg If [#Seen] = 1 OR Min=Max there has been no variation of this metric for the statement print "First" but skip the rest, including both deltas THIS IS CASE=0 Else --there has been some variation in this metric --for metrics that should never decrease for a request (CPU, reads, writes, CPU, tran log bytes) If First = Min and Last = Max --a predictable increase as the request/statement goes on print "first/last delta", "first", "last", and "avg". --By leaving Min/Max Delta and Min and Max blank, we show they are the same as F/L THIS IS CASE=1 Else print all the columns THIS IS CASE=2 --for other metrics, i.e. that don't follow the ever increasing pattern -- (# tasks, DOP, both tempdb metrics, all qmem metrics) Always print all the columns THIS IS CASE=3 */ SET @lv__CalcSubQuery = N' SELECT --ordering fields [BatchOrderBy] = s.BatchIdentifier, [StmtStartOrderBy] = FirstSeen, [TieBreaker] = 2, --Visible fields [SPID] = N'''', [#Seen] = CONVERT(NVARCHAR(20), [#Seen]), [FirstSeen] = CONVERT(NVARCHAR(20),CONVERT(TIME(0),FirstSeen)), [LastSeen] = CONVERT(NVARCHAR(20),CONVERT(TIME(0),LastSeen)), [Extent(sec)] = CONVERT(NVARCHAR(20),DATEDIFF(second, FirstSeen, LastSeen)), [DBObject] = CASE WHEN sss.objectid=-929 THEN N'''' ELSE (CASE WHEN sss.dbid = 32767 OR sss.dbid = -929 THEN N'''' ELSE ISNULL(sss.dbname,N''<null>'') + N''.'' END + ISNULL(sss.schname,N''<null>'') + N''.'' + ISNULL(sss.objname,N''<null>'') ) END, [Cmd] = sss.stmt_xml, [StatusCodes] = ISNULL(s.StatusCodeAgg,N''<null>''), [NonCXWaits] = ISNULL(s.Waits,N''''), [CXWaits] = ISNULL(s.CXWaits,N''''),' + CASE WHEN @attr=N'n' AND @plan = N'n' THEN N'' ELSE (CASE WHEN @plan=N'n' THEN N'PNI = N'''',' ELSE N'PNI = qp.query_plan_xml,' END) END + N' --metrics that are not sensitive to @units param [tasks__First] = s.tasks__FirstSeen, [tasks__Last] = s.tasks__LastSeen, [tasks__Min] = s.tasks__MinSeen, [tasks__Max] = s.tasks__MaxSeen, [tasks__Avg] = s.tasks__AvgSeen, [tasks__CASE] = CASE WHEN [#Seen] = 1 OR s.tasks__MinSeen = s.tasks__MaxSeen THEN 0 ELSE 3 END, [DOP__First] = s.DOP__FirstSeen, [DOP__Last] = s.DOP__LastSeen, [DOP__Min] = s.DOP__MinSeen, [DOP__Max] = s.DOP__MaxSeen, [DOP__Avg] = s.DOP__AvgSeen, [DOP__CASE] = CASE WHEN [#Seen] = 1 OR s.DOP__MinSeen = s.DOP__MaxSeen THEN 0 ELSE 3 END, [CPUused__First] = CONVERT(MONEY, s.CPUused__FirstSeenMs ), [CPUused__Last] = CONVERT(MONEY, s.CPUused__LastSeenMs ), [CPUused__FLDelta] = CONVERT(MONEY, (s.CPUused__LastSeenMs - s.CPUused__FirstSeenMs) ), [CPUused__Min] = CONVERT(MONEY, s.CPUused__minMs ), [CPUused__Max] = CONVERT(MONEY, s.CPUused__maxMs ), [CPUused__MMDelta] = CONVERT(MONEY, (s.CPUused__maxMs - s.CPUused__minMs) ), [CPUused__CASE] = CASE WHEN [#Seen] = 1 OR s.CPUused__minMs = s.CPUused__maxMs THEN 0 WHEN s.CPUused__FirstSeenMs = s.CPUused__minMs AND s.CPUused__LastSeenMs = s.CPUused__maxMs THEN 1 ELSE 2 END,'; IF @units = N'mb' BEGIN SET @lv__CalcSubQuery = @lv__CalcSubQuery + N' --these metrics can vary up or down as queries progress [tempdb_task__First] = CONVERT(MONEY, s.tempdb_task__FirstSeenPages*8./1024. ), [tempdb_task__Last] = CONVERT(MONEY, s.tempdb_task__LastSeenPages*8./1024. ), [tempdb_task__FLDelta] = CONVERT(MONEY, (s.tempdb_task__LastSeenPages - s.tempdb_task__FirstSeenPages)*8./1024. ), [tempdb_task__Min] = CONVERT(MONEY, s.tempdb_task__MinPages*8./1024. ), [tempdb_task__Max] = CONVERT(MONEY, s.tempdb_task__MaxPages*8./1024. ), [tempdb_task__MMDelta] = CONVERT(MONEY, (s.tempdb_task__MaxPages - s.tempdb_task__MinPages)*8./1024. ), [tempdb_task__Avg] = CONVERT(MONEY, s.tempdb_task__AvgPages*8./1024. ), [tempdb_task__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_task__MinPages = s.tempdb_task__MaxPages THEN 0 ELSE 3 END, [tempdb_sess__First] = CONVERT(MONEY, s.tempdb_sess__FirstSeenPages*8./1024. ), [tempdb_sess__Last] = CONVERT(MONEY, s.tempdb_sess__LastSeenPages*8./1024. ), [tempdb_sess__FLDelta] = CONVERT(MONEY, (s.tempdb_sess__LastSeenPages - s.tempdb_sess__FirstSeenPages)*8./1024. ), [tempdb_sess__Min] = CONVERT(MONEY, s.tempdb_sess__MinPages*8./1024. ), [tempdb_sess__Max] = CONVERT(MONEY, s.tempdb_sess__MaxPages*8./1024. ), [tempdb_sess__MMDelta] = CONVERT(MONEY, (s.tempdb_sess__MaxPages - s.tempdb_sess__MinPages)*8./1024. ), [tempdb_sess__Avg] = CONVERT(MONEY, s.tempdb_sess__AvgPages*8./1024. ), [tempdb_sess__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_sess__MinPages = s.tempdb_sess__MaxPages THEN 0 ELSE 3 END, [qmem_requested__First] = CONVERT(MONEY, s.qmem_requested__FirstSeenKB/1024. ), [qmem_requested__Last] = CONVERT(MONEY, s.qmem_requested__LastSeenKB/1024. ), [qmem_requested__Min] = CONVERT(MONEY, s.qmem_requested__MinKB/1024. ), [qmem_requested__Max] = CONVERT(MONEY, s.qmem_requested__MaxKB/1024. ), [qmem_requested__MMDelta] = CONVERT(MONEY, (s.qmem_requested__MaxKB - s.qmem_requested__MinKB)/1024. ), [qmem_requested__Avg] = CONVERT(MONEY, s.qmem_requested__AvgKB/1024. ), [qmem_requested__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_requested__MinKB = s.qmem_requested__MaxKB THEN 0 ELSE 3 END, [qmem_granted__First] = CONVERT(MONEY, s.qmem_granted__FirstSeenKB/1024. ), [qmem_granted__Last] = CONVERT(MONEY, s.qmem_granted__LastSeenKB/1024. ), [qmem_granted__Min] = CONVERT(MONEY, s.qmem_granted__MinKB/1024. ), [qmem_granted__Max] = CONVERT(MONEY, s.qmem_granted__MaxKB/1024. ), [qmem_granted__MMDelta] = CONVERT(MONEY, (s.qmem_granted__MaxKB - s.qmem_granted__MinKB)/1024. ), [qmem_granted__Avg] = CONVERT(MONEY, s.qmem_granted__AvgKB/1024. ), [qmem_granted__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_granted__MinKB = s.qmem_granted__MaxKB THEN 0 ELSE 3 END, [qmem_used__First] = CONVERT(MONEY, s.qmem_used__FirstSeenKB/1024. ), [qmem_used__Last] = CONVERT(MONEY, s.qmem_used__LastSeenKB/1024. ), [qmem_used__Min] = CONVERT(MONEY, s.qmem_used__MinKB/1024. ), [qmem_used__Max] = CONVERT(MONEY, s.qmem_used__MaxKB/1024. ), [qmem_used__MMDelta] = CONVERT(MONEY, (s.qmem_used__MaxKB - s.qmem_used__MinKB)/1024. ), [qmem_used__Avg] = CONVERT(MONEY, s.qmem_used__AvgKB/1024. ), [qmem_used__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_used__MinKB = s.qmem_used__MaxKB THEN 0 ELSE 3 END, --these metrics should be ever-increasing for a given request [TlogUsed__First] = CONVERT(MONEY, s.TlogUsed__FirstSeenBytes/1024./1024. ), [TlogUsed__Last] = CONVERT(MONEY, s.TlogUsed__LastSeenBytes/1024./1024. ), [TlogUsed__FLDelta] = CONVERT(MONEY, (s.TlogUsed__LastSeenBytes - s.TlogUsed__FirstSeenBytes)/1024./1024. ), [TlogUsed__Min] = CONVERT(MONEY, s.TlogUsed__minBytes/1024./1024. ), [TlogUsed__Max] = CONVERT(MONEY, s.TlogUsed__maxBytes/1024./1024. ), [TlogUsed__MMDelta] = CONVERT(MONEY, (s.TlogUsed__maxBytes - s.TlogUsed__minBytes)/1024./1024. ), [TlogUsed__CASE] = CASE WHEN [#Seen] = 1 OR s.TlogUsed__minBytes = s.TlogUsed__maxBytes THEN 0 WHEN s.TlogUsed__FirstSeenBytes = s.TlogUsed__minBytes AND s.TlogUsed__LastSeenBytes = s.TlogUsed__maxBytes THEN 1 ELSE 2 END, [LReads__First] = CONVERT(MONEY, s.LReads__FirstSeenPages*8./1024. ), [LReads__Last] = CONVERT(MONEY, s.LReads__LastSeenPages*8./1024. ), [LReads__FLDelta] = CONVERT(MONEY, (s.LReads__LastSeenPages - s.LReads__FirstSeenPages)/8./1024. ), [LReads__Min] = CONVERT(MONEY, s.LReads__MinPages*8./1024. ), [LReads__Max] = CONVERT(MONEY, s.LReads__MaxPages*8./1024. ), [LReads__MMDelta] = CONVERT(MONEY, (s.LReads__MaxPages - s.LReads__MinPages)/8./1024. ), [LReads__CASE] = CASE WHEN [#Seen] = 1 OR s.LReads__MinPages = s.LReads__MaxPages THEN 0 WHEN s.LReads__FirstSeenPages = s.LReads__MinPages AND s.LReads__LastSeenPages = s.LReads__MaxPages THEN 1 ELSE 2 END, [PReads__First] = CONVERT(MONEY, s.PReads__FirstSeenPages*8./1024. ), [PReads__Last] = CONVERT(MONEY, s.PReads__LastSeenPages*8./1024. ), [PReads__FLDelta] = CONVERT(MONEY, (s.PReads__LastSeenPages - s.PReads__FirstSeenPages)*8./1024. ), [PReads__Min] = CONVERT(MONEY, s.PReads__MinPages*8./1024. ), [PReads__Max] = CONVERT(MONEY, s.PReads__MaxPages*8./1024. ), [PReads__MMDelta] = CONVERT(MONEY, (s.PReads__MaxPages - s.PReads__MinPages)*8./1024. ), [PReads__CASE] = CASE WHEN [#Seen] = 1 OR s.PReads__MinPages = s.PReads__MaxPages THEN 0 WHEN s.PReads__FirstSeenPages = s.PReads__MinPages AND s.PReads__LastSeenPages = s.PReads__MaxPages THEN 1 ELSE 2 END, [Writes__First] = CONVERT(MONEY, s.Writes__FirstSeenPages*8./1024. ), [Writes__Last] = CONVERT(MONEY, s.Writes__LastSeenPages*8./1024. ), [Writes__FLDelta] = CONVERT(MONEY, (s.Writes__LastSeenPages - s.Writes__FirstSeenPages)*8./1024. ), [Writes__Min] = CONVERT(MONEY, s.Writes__MinPages*8./1024. ), [Writes__Max] = CONVERT(MONEY, s.Writes__MaxPages*8./1024. ), [Writes__MMDelta] = CONVERT(MONEY, (s.Writes__MaxPages - s.Writes__MinPages)*8./1024. ), [Writes__CASE] = CASE WHEN [#Seen] = 1 OR s.Writes__MinPages = s.Writes__MaxPages THEN 0 WHEN s.Writes__FirstSeenPages = s.Writes__MinPages AND s.Writes__LastSeenPages = s.Writes__MaxPages THEN 1 ELSE 2 END'; END ELSE IF @units = N'native' BEGIN SET @lv__CalcSubQuery = @lv__CalcSubQuery + N' --these metrics can vary up or down as queries progress [tempdb_task__First] = CONVERT(MONEY, s.tempdb_task__FirstSeenPages ), [tempdb_task__Last] = CONVERT(MONEY, s.tempdb_task__LastSeenPages ), [tempdb_task__FLDelta] = CONVERT(MONEY, s.tempdb_task__LastSeenPages - s.tempdb_task__FirstSeenPages ), [tempdb_task__Min] = CONVERT(MONEY, s.tempdb_task__MinPages ), [tempdb_task__Max] = CONVERT(MONEY, s.tempdb_task__MaxPages ), [tempdb_task__MMDelta] = CONVERT(MONEY, s.tempdb_task__MaxPages - s.tempdb_task__MinPages ), [tempdb_task__Avg] = CONVERT(MONEY, s.tempdb_task__AvgPages ), [tempdb_task__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_task__MinPages = s.tempdb_task__MaxPages THEN 0 ELSE 3 END, [tempdb_sess__First] = CONVERT(MONEY, s.tempdb_sess__FirstSeenPages ), [tempdb_sess__Last] = CONVERT(MONEY, s.tempdb_sess__LastSeenPages ), [tempdb_sess__FLDelta] = CONVERT(MONEY, s.tempdb_sess__LastSeenPages - s.tempdb_sess__FirstSeenPages ), [tempdb_sess__Min] = CONVERT(MONEY, s.tempdb_sess__MinPages ), [tempdb_sess__Max] = CONVERT(MONEY, s.tempdb_sess__MaxPages ), [tempdb_sess__MMDelta] = CONVERT(MONEY, s.tempdb_sess__MaxPages - s.tempdb_sess__MinPages ), [tempdb_sess__Avg] = CONVERT(MONEY, s.tempdb_sess__AvgPages ), [tempdb_sess__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_sess__MinPages = s.tempdb_sess__MaxPages THEN 0 ELSE 3 END, [qmem_requested__First] = CONVERT(MONEY, s.qmem_requested__FirstSeenKB ), [qmem_requested__Last] = CONVERT(MONEY, s.qmem_requested__LastSeenKB ), [qmem_requested__Min] = CONVERT(MONEY, s.qmem_requested__MinKB ), [qmem_requested__Max] = CONVERT(MONEY, s.qmem_requested__MaxKB ), [qmem_requested__MMDelta] = CONVERT(MONEY, (s.qmem_requested__MaxKB - s.qmem_requested__MinKB) ), [qmem_requested__Avg] = CONVERT(MONEY, s.qmem_requested__AvgKB ), [qmem_requested__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_requested__MinKB = s.qmem_requested__MaxKB THEN 0 ELSE 3 END, [qmem_granted__First] = CONVERT(MONEY, s.qmem_granted__FirstSeenKB ), [qmem_granted__Last] = CONVERT(MONEY, s.qmem_granted__LastSeenKB ), [qmem_granted__Min] = CONVERT(MONEY, s.qmem_granted__MinKB ), [qmem_granted__Max] = CONVERT(MONEY, s.qmem_granted__MaxKB ), [qmem_granted__MMDelta] = CONVERT(MONEY, (s.qmem_granted__MaxKB - s.qmem_granted__MinKB) ), [qmem_granted__Avg] = CONVERT(MONEY, s.qmem_granted__AvgKB ), [qmem_granted__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_granted__MinKB = s.qmem_granted__MaxKB THEN 0 ELSE 3 END, [qmem_used__First] = CONVERT(MONEY, s.qmem_used__FirstSeenKB ), [qmem_used__Last] = CONVERT(MONEY, s.qmem_used__LastSeenKB ), [qmem_used__Min] = CONVERT(MONEY, s.qmem_used__MinKB ), [qmem_used__Max] = CONVERT(MONEY, s.qmem_used__MaxKB ), [qmem_used__MMDelta] = CONVERT(MONEY, (s.qmem_used__MaxKB - s.qmem_used__MinKB) ), [qmem_used__Avg] = CONVERT(MONEY, s.qmem_used__AvgKB ), [qmem_used__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_used__MinKB = s.qmem_used__MaxKB THEN 0 ELSE 3 END, --these metrics should be ever-increasing for a given request [TlogUsed__First] = CONVERT(MONEY, s.TlogUsed__FirstSeenBytes ), [TlogUsed__Last] = CONVERT(MONEY, s.TlogUsed__LastSeenBytes ), [TlogUsed__FLDelta] = CONVERT(MONEY, (s.TlogUsed__LastSeenBytes - s.TlogUsed__FirstSeenBytes) ), [TlogUsed__Min] = CONVERT(MONEY, s.TlogUsed__minBytes ), [TlogUsed__Max] = CONVERT(MONEY, s.TlogUsed__maxBytes ), [TlogUsed__MMDelta] = CONVERT(MONEY, (s.TlogUsed__maxBytes - s.TlogUsed__minBytes) ), [TlogUsed__CASE] = CASE WHEN [#Seen] = 1 OR s.TlogUsed__minBytes = s.TlogUsed__maxBytes THEN 0 WHEN s.TlogUsed__FirstSeenBytes = s.TlogUsed__minBytes AND s.TlogUsed__LastSeenBytes = s.TlogUsed__maxBytes THEN 1 ELSE 2 END, [LReads__First] = CONVERT(MONEY, s.LReads__FirstSeenPages ), [LReads__Last] = CONVERT(MONEY, s.LReads__LastSeenPages ), [LReads__FLDelta] = CONVERT(MONEY, (s.LReads__LastSeenPages - s.LReads__FirstSeenPages) ), [LReads__Min] = CONVERT(MONEY, s.LReads__MinPages ), [LReads__Max] = CONVERT(MONEY, s.LReads__MaxPages ), [LReads__MMDelta] = CONVERT(MONEY, (s.LReads__MaxPages - s.LReads__MinPages) ), [LReads__CASE] = CASE WHEN [#Seen] = 1 OR s.LReads__MinPages = s.LReads__MaxPages THEN 0 WHEN s.LReads__FirstSeenPages = s.LReads__MinPages AND s.LReads__LastSeenPages = s.LReads__MaxPages THEN 1 ELSE 2 END, [PReads__First] = CONVERT(MONEY, s.PReads__FirstSeenPages ), [PReads__Last] = CONVERT(MONEY, s.PReads__LastSeenPages ), [PReads__FLDelta] = CONVERT(MONEY, (s.PReads__LastSeenPages - s.PReads__FirstSeenPages) ), [PReads__Min] = CONVERT(MONEY, s.PReads__MinPages ), [PReads__Max] = CONVERT(MONEY, s.PReads__MaxPages ), [PReads__MMDelta] = CONVERT(MONEY, (s.PReads__MaxPages - s.PReads__MinPages) ), [PReads__CASE] = CASE WHEN [#Seen] = 1 OR s.PReads__MinPages = s.PReads__MaxPages THEN 0 WHEN s.PReads__FirstSeenPages = s.PReads__MinPages AND s.PReads__LastSeenPages = s.PReads__MaxPages THEN 1 ELSE 2 END, [Writes__First] = CONVERT(MONEY, s.Writes__FirstSeenPages ), [Writes__Last] = CONVERT(MONEY, s.Writes__LastSeenPages ), [Writes__FLDelta] = CONVERT(MONEY, (s.Writes__LastSeenPages - s.Writes__FirstSeenPages) ), [Writes__Min] = CONVERT(MONEY, s.Writes__MinPages ), [Writes__Max] = CONVERT(MONEY, s.Writes__MaxPages ), [Writes__MMDelta] = CONVERT(MONEY, (s.Writes__MaxPages - s.Writes__MinPages) ), [Writes__CASE] = CASE WHEN [#Seen] = 1 OR s.Writes__MinPages = s.Writes__MaxPages THEN 0 WHEN s.Writes__FirstSeenPages = s.Writes__MinPages AND s.Writes__LastSeenPages = s.Writes__MaxPages THEN 1 ELSE 2 END'; END ELSE IF @units = N'pages' BEGIN SET @lv__CalcSubQuery = @lv__CalcSubQuery + N' --these metrics can vary up or down as queries progress [tempdb_task__First] = CONVERT(MONEY, s.tempdb_task__FirstSeenPages ), [tempdb_task__Last] = CONVERT(MONEY, s.tempdb_task__LastSeenPages ), [tempdb_task__FLDelta] = CONVERT(MONEY, s.tempdb_task__LastSeenPages - s.tempdb_task__FirstSeenPages ), [tempdb_task__Min] = CONVERT(MONEY, s.tempdb_task__MinPages ), [tempdb_task__Max] = CONVERT(MONEY, s.tempdb_task__MaxPages ), [tempdb_task__MMDelta] = CONVERT(MONEY, s.tempdb_task__MaxPages - s.tempdb_task__MinPages ), [tempdb_task__Avg] = CONVERT(MONEY, s.tempdb_task__AvgPages ), [tempdb_task__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_task__MinPages = s.tempdb_task__MaxPages THEN 0 ELSE 3 END, [tempdb_sess__First] = CONVERT(MONEY, s.tempdb_sess__FirstSeenPages ), [tempdb_sess__Last] = CONVERT(MONEY, s.tempdb_sess__LastSeenPages ), [tempdb_sess__FLDelta] = CONVERT(MONEY, s.tempdb_sess__LastSeenPages - s.tempdb_sess__FirstSeenPages ), [tempdb_sess__Min] = CONVERT(MONEY, s.tempdb_sess__MinPages ), [tempdb_sess__Max] = CONVERT(MONEY, s.tempdb_sess__MaxPages ), [tempdb_sess__MMDelta] = CONVERT(MONEY, s.tempdb_sess__MaxPages - s.tempdb_sess__MinPages ), [tempdb_sess__Avg] = CONVERT(MONEY, s.tempdb_sess__AvgPages ), [tempdb_sess__CASE] = CASE WHEN [#Seen] = 1 OR s.tempdb_sess__MinPages = s.tempdb_sess__MaxPages THEN 0 ELSE 3 END, [qmem_requested__First] = CONVERT(MONEY, s.qmem_requested__FirstSeenKB/8. ), [qmem_requested__Last] = CONVERT(MONEY, s.qmem_requested__LastSeenKB/8. ), [qmem_requested__Min] = CONVERT(MONEY, s.qmem_requested__MinKB/8. ), [qmem_requested__Max] = CONVERT(MONEY, s.qmem_requested__MaxKB/8. ), [qmem_requested__MMDelta] = CONVERT(MONEY, (s.qmem_requested__MaxKB - s.qmem_requested__MinKB)/8. ), [qmem_requested__Avg] = CONVERT(MONEY, s.qmem_requested__AvgKB/8. ), [qmem_requested__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_requested__MinKB = s.qmem_requested__MaxKB THEN 0 ELSE 3 END, [qmem_granted__First] = CONVERT(MONEY, s.qmem_granted__FirstSeenKB/8. ), [qmem_granted__Last] = CONVERT(MONEY, s.qmem_granted__LastSeenKB/8. ), [qmem_granted__Min] = CONVERT(MONEY, s.qmem_granted__MinKB/8. ), [qmem_granted__Max] = CONVERT(MONEY, s.qmem_granted__MaxKB/8. ), [qmem_granted__MMDelta] = CONVERT(MONEY, (s.qmem_granted__MaxKB - s.qmem_granted__MinKB)/8. ), [qmem_granted__Avg] = CONVERT(MONEY, s.qmem_granted__AvgKB/8. ), [qmem_granted__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_granted__MinKB = s.qmem_granted__MaxKB THEN 0 ELSE 3 END, [qmem_used__First] = CONVERT(MONEY, s.qmem_used__FirstSeenKB/8. ), [qmem_used__Last] = CONVERT(MONEY, s.qmem_used__LastSeenKB/8. ), [qmem_used__Min] = CONVERT(MONEY, s.qmem_used__MinKB/8. ), [qmem_used__Max] = CONVERT(MONEY, s.qmem_used__MaxKB/8. ), [qmem_used__MMDelta] = CONVERT(MONEY, (s.qmem_used__MaxKB - s.qmem_used__MinKB)/8. ), [qmem_used__Avg] = CONVERT(MONEY, s.qmem_used__AvgKB/8. ), [qmem_used__CASE] = CASE WHEN [#Seen] = 1 OR s.qmem_used__MinKB = s.qmem_used__MaxKB THEN 0 ELSE 3 END, --these metrics should be ever-increasing for a given request [TlogUsed__First] = CONVERT(MONEY, s.TlogUsed__FirstSeenBytes/8192. ), [TlogUsed__Last] = CONVERT(MONEY, s.TlogUsed__LastSeenBytes/8192. ), [TlogUsed__FLDelta] = CONVERT(MONEY, (s.TlogUsed__LastSeenBytes - s.TlogUsed__FirstSeenBytes)/8192. ), [TlogUsed__Min] = CONVERT(MONEY, s.TlogUsed__minBytes/8192. ), [TlogUsed__Max] = CONVERT(MONEY, s.TlogUsed__maxBytes/8192. ), [TlogUsed__MMDelta] = CONVERT(MONEY, (s.TlogUsed__maxBytes - s.TlogUsed__minBytes)/8192. ), [TlogUsed__CASE] = CASE WHEN [#Seen] = 1 OR s.TlogUsed__minBytes = s.TlogUsed__maxBytes THEN 0 WHEN s.TlogUsed__FirstSeenBytes = s.TlogUsed__minBytes AND s.TlogUsed__LastSeenBytes = s.TlogUsed__maxBytes THEN 1 ELSE 2 END, [LReads__First] = CONVERT(MONEY, s.LReads__FirstSeenPages ), [LReads__Last] = CONVERT(MONEY, s.LReads__LastSeenPages ), [LReads__FLDelta] = CONVERT(MONEY, (s.LReads__LastSeenPages - s.LReads__FirstSeenPages) ), [LReads__Min] = CONVERT(MONEY, s.LReads__MinPages ), [LReads__Max] = CONVERT(MONEY, s.LReads__MaxPages ), [LReads__MMDelta] = CONVERT(MONEY, (s.LReads__MaxPages - s.LReads__MinPages) ), [LReads__CASE] = CASE WHEN [#Seen] = 1 OR s.LReads__MinPages = s.LReads__MaxPages THEN 0 WHEN s.LReads__FirstSeenPages = s.LReads__MinPages AND s.LReads__LastSeenPages = s.LReads__MaxPages THEN 1 ELSE 2 END, [PReads__First] = CONVERT(MONEY, s.PReads__FirstSeenPages ), [PReads__Last] = CONVERT(MONEY, s.PReads__LastSeenPages ), [PReads__FLDelta] = CONVERT(MONEY, (s.PReads__LastSeenPages - s.PReads__FirstSeenPages) ), [PReads__Min] = CONVERT(MONEY, s.PReads__MinPages ), [PReads__Max] = CONVERT(MONEY, s.PReads__MaxPages ), [PReads__MMDelta] = CONVERT(MONEY, (s.PReads__MaxPages - s.PReads__MinPages) ), [PReads__CASE] = CASE WHEN [#Seen] = 1 OR s.PReads__MinPages = s.PReads__MaxPages THEN 0 WHEN s.PReads__FirstSeenPages = s.PReads__MinPages AND s.PReads__LastSeenPages = s.PReads__MaxPages THEN 1 ELSE 2 END, [Writes__First] = CONVERT(MONEY, s.Writes__FirstSeenPages ), [Writes__Last] = CONVERT(MONEY, s.Writes__LastSeenPages ), [Writes__FLDelta] = CONVERT(MONEY, (s.Writes__LastSeenPages - s.Writes__FirstSeenPages) ), [Writes__Min] = CONVERT(MONEY, s.Writes__MinPages ), [Writes__Max] = CONVERT(MONEY, s.Writes__MaxPages ), [Writes__MMDelta] = CONVERT(MONEY, (s.Writes__MaxPages - s.Writes__MinPages) ), [Writes__CASE] = CASE WHEN [#Seen] = 1 OR s.Writes__MinPages = s.Writes__MaxPages THEN 0 WHEN s.Writes__FirstSeenPages = s.Writes__MinPages AND s.Writes__LastSeenPages = s.Writes__MaxPages THEN 1 ELSE 2 END'; END --end of @units conditional calculation block SET @lv__CalcSubQuery = @lv__CalcSubQuery + N' FROM #stmtstats s INNER JOIN #SQLStmtStore sss ON s.FKSQLStmtStoreID = sss.PKSQLStmtStoreID ' + CASE WHEN @plan=N'n' THEN N'' ELSE N'LEFT OUTER JOIN #QueryPlanStmtStore qp ON qp.PKQueryPlanStmtStoreID = s.FKQueryPlanStmtStoreID' END + N' '; /* For debugging: SELECT dyntxt, TxtLink from (SELECT @lv__CalcSubQuery AS dyntxt) t0 cross apply (select TxtLink=(select [processing-instruction(q)]=dyntxt for xml path(''),type)) F2; --RETURN 0; EXEC sp_executesql @lv__CalcSubQuery; RETURN 0; */ SET @lv__errorloc = N'Construct format subquery'; SET @lv__FormatSubQuery = N' SELECT BatchOrderBy, StmtStartOrderBy, TieBreaker, SPID, [#Seen], FirstSeen, LastSeen, [Extent(sec)], [DBObject], [Cmd], [StatusCodes], [NonCXWaits], [CXWaits],' + CASE WHEN @attr=N'n' AND @plan = N'n' THEN N'' ELSE N'PNI,' END + N' [tasks__First] = CONVERT(NVARCHAR(20), tasks__First), [tasks__Last] = CASE WHEN tasks__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), tasks__Last) END, [tasks__Min] = CASE WHEN tasks__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), tasks__Min) END, [tasks__Max] = CASE WHEN tasks__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), tasks__Max) END, [tasks__Avg] = CASE WHEN tasks__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), tasks__Avg) END, [DOP__First] = CONVERT(NVARCHAR(20), DOP__First), [DOP__Last] = CASE WHEN DOP__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), DOP__Last) END, [DOP__Min] = CASE WHEN DOP__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), DOP__Min) END, [DOP__Max] = CASE WHEN DOP__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), DOP__Max) END, [DOP__Avg] = CASE WHEN DOP__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20), DOP__Avg) END, [CPUused__First] = REPLACE(CONVERT(NVARCHAR(20),CPUused__First,1),N''.00'',N''''), [CPUused__Last] = CASE WHEN CPUused__CASE = 0 THEN N'''' ELSE REPLACE(CONVERT(NVARCHAR(20),CPUused__Last,1),N''.00'',N'''') END, [CPUused__FLDelta] = CASE WHEN CPUused__CASE = 0 THEN N'''' ELSE REPLACE(CONVERT(NVARCHAR(20),CPUused__FLDelta,1),N''.00'',N'''') END, [CPUused__Min] = CASE WHEN CPUused__CASE IN (0,1) THEN N'''' ELSE REPLACE(CONVERT(NVARCHAR(20),CPUused__Min,1),N''.00'',N'''') END, [CPUused__Max] = CASE WHEN CPUused__CASE IN (0,1) THEN N'''' ELSE REPLACE(CONVERT(NVARCHAR(20),CPUused__Max,1),N''.00'',N'''') END, [CPUused__MMDelta] = CASE WHEN CPUused__CASE IN (0,1) THEN N'''' ELSE REPLACE(CONVERT(NVARCHAR(20),CPUused__MMDelta,1),N''.00'',N'''') END, [tempdb_task__First] = ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__First,1)' END + N', [tempdb_task__Last] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__Last,1)' END + N' END, [tempdb_task__FLDelta] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__FLDelta,1)' END + N' END, [tempdb_task__Min] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__Min,1)' END + N' END, [tempdb_task__Max] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__Max,1)' END + N' END, [tempdb_task__MMDelta] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_task__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_task__MMDelta,1)' END + N' END, [tempdb_task__Avg] = CASE WHEN tempdb_task__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20),tempdb_task__Avg,1) END, [tempdb_sess__First] = ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__First,1)' END + N', [tempdb_sess__Last] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__Last,1)' END + N' END, [tempdb_sess__FLDelta] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__FLDelta,1)' END + N' END, [tempdb_sess__Min] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__Min,1)' END + N' END, [tempdb_sess__Max] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__Max,1)' END + N' END, [tempdb_sess__MMDelta] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'pages', N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),tempdb_sess__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),tempdb_sess__MMDelta,1)' END + N' END, [tempdb_sess__Avg] = CASE WHEN tempdb_sess__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20),tempdb_sess__Avg,1) END, '; SET @lv__FormatSubQuery = @lv__FormatSubQuery + N' [qmem_requested__First] = ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_requested__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_requested__First,1)' END + N', [qmem_requested__Last] = CASE WHEN qmem_requested__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_requested__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_requested__Last,1)' END + N' END, [qmem_requested__Min] = CASE WHEN qmem_requested__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_requested__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_requested__Min,1)' END + N' END, [qmem_requested__Max] = CASE WHEN qmem_requested__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_requested__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_requested__Max,1)' END + N' END, [qmem_requested__MMDelta] = CASE WHEN qmem_requested__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_requested__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_requested__MMDelta,1)' END + N' END, [qmem_requested__Avg] = CASE WHEN qmem_requested__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20),qmem_requested__Avg,1) END, [qmem_granted__First] = ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_granted__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_granted__First,1)' END + N', [qmem_granted__Last] = CASE WHEN qmem_granted__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_granted__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_granted__Last,1)' END + N' END, [qmem_granted__Min] = CASE WHEN qmem_granted__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_granted__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_granted__Min,1)' END + N' END, [qmem_granted__Max] = CASE WHEN qmem_granted__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_granted__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_granted__Max,1)' END + N' END, [qmem_granted__MMDelta] = CASE WHEN qmem_granted__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_granted__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_granted__MMDelta,1)' END + N' END, [qmem_granted__Avg] = CASE WHEN qmem_granted__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20),qmem_granted__Avg,1) END, [qmem_used__First] = ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_used__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_used__First,1)' END + N', [qmem_used__Last] = CASE WHEN qmem_used__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_used__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_used__Last,1)' END + N' END, [qmem_used__Min] = CASE WHEN qmem_used__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_used__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_used__Min,1)' END + N' END, [qmem_used__Max] = CASE WHEN qmem_used__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_used__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_used__Max,1)' END + N' END, [qmem_used__MMDelta] = CASE WHEN qmem_used__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),qmem_used__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),qmem_used__MMDelta,1)' END + N' END, [qmem_used__Avg] = CASE WHEN qmem_used__CASE = 0 THEN N'''' ELSE CONVERT(NVARCHAR(20),qmem_used__Avg,1) END, [TlogUsed__First] = ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__First,1)' END + N', [TlogUsed__Last] = CASE WHEN TlogUsed__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__Last,1)' END + N' END, [TlogUsed__FLDelta] = CASE WHEN TlogUsed__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__FLDelta,1)' END + N' END, [TlogUsed__Min] = CASE WHEN TlogUsed__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__Min,1)' END + N' END, [TlogUsed__Max] = CASE WHEN TlogUsed__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__Max,1)' END + N' END, [TlogUsed__MMDelta] = CASE WHEN TlogUsed__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native') THEN N'REPLACE(CONVERT(NVARCHAR(20),TlogUsed__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),TlogUsed__MMDelta,1)' END + N' END, [LReads__First] = ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__First,1)' END + N', [LReads__Last] = CASE WHEN LReads__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__Last,1)' END + N' END, [LReads__FLDelta] = CASE WHEN LReads__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__FLDelta,1)' END + N' END, [LReads__Min] = CASE WHEN LReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__Min,1)' END + N' END, [LReads__Max] = CASE WHEN LReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__Max,1)' END + N' END, [LReads__MMDelta] = CASE WHEN LReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),LReads__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),LReads__MMDelta,1)' END + N' END,'; SET @lv__FormatSubQuery = @lv__FormatSubQuery + N' [PReads__First] = ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__First,1)' END + N', [PReads__Last] = CASE WHEN PReads__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__Last,1)' END + N' END, [PReads__FLDelta] = CASE WHEN PReads__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__FLDelta,1)' END + N' END, [PReads__Min] = CASE WHEN PReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__Min,1)' END + N' END, [PReads__Max] = CASE WHEN PReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__Max,1)' END + N' END, [PReads__MMDelta] = CASE WHEN PReads__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),PReads__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),PReads__MMDelta,1)' END + N' END, [Writes__First] = ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__First,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__First,1)' END + N', [Writes__Last] = CASE WHEN Writes__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__Last,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__Last,1)' END + N' END, [Writes__FLDelta] = CASE WHEN Writes__CASE = 0 THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__FLDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__FLDelta,1)' END + N' END, [Writes__Min] = CASE WHEN Writes__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__Min,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__Min,1)' END + N' END, [Writes__Max] = CASE WHEN Writes__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__Max,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__Max,1)' END + N' END, [Writes__MMDelta] = CASE WHEN Writes__CASE IN (0,1) THEN N'''' ELSE ' + CASE WHEN @units IN (N'native',N'pages') THEN N'REPLACE(CONVERT(NVARCHAR(20),Writes__MMDelta,1),N''.00'',N'''')' ELSE N'CONVERT(NVARCHAR(20),Writes__MMDelta,1)' END + N' END FROM (' + @lv__CalcSubQuery + N' ) calc '; /* For debugging: SELECT dyntxt, TxtLink from (SELECT @lv__FormatSubQuery AS dyntxt) t0 cross apply (select TxtLink=(select [processing-instruction(q)]=dyntxt for xml path(''),type)) F2; EXEC sp_executesql @lv__FormatSubQuery; RETURN 0; */ SET @lv__errorloc = N'Construct union subquery'; SET @lv__UnionSubQuery = N' SELECT --ordering fields [BatchOrderBy] = BatchIdentifier, [StmtStartOrderBy] = rqst__start_time, [TieBreaker] = 1, --visible fields [SPID] = CASE WHEN request_id = 0 THEN CONVERT(NVARCHAR(20), session_id) ELSE CONVERT(NVARCHAR(20), session_id) + N'':'' + CONVERT(NVARCHAR(20), request_id) END, [#Seen] = N'''', [FirstSeen] = CONVERT(NVARCHAR(20),lb.rqst__start_time), [LastSeen] = CONVERT(NVARCHAR(20),lb.LastSeen), [Extent(sec)] = CONVERT(NVARCHAR(20),DATEDIFF(SECOND, rqst__start_time, LastSeen)), [DBObject] = ISNULL(DB_NAME(StartingDBID),N''''), [Cmd] = xapp1.inputbuffer_xml, [StatusCodes] = N'''', [NonCXWaits] = N'''', [CXWaits] = N'''', ' + CASE WHEN @attr=N'n' AND @plan = N'n' THEN N'' ELSE (CASE WHEN @attr=N'n' THEN N'PNI = N'''',' ELSE N'PNI = CONVERT(XML,lb.SessAttr),' END) END + N' [Tasks__First]=N'''', [Tasks__Last]=N'''', [Tasks__Min]=N'''', [Tasks__Max]=N'''', [Tasks__Avg]=N'''', [DOP__First]=N'''', [DOP__Last]=N'''', [DOP__Min]=N'''', [DOP__Max]=N'''', [DOP__Avg]=N'''', [CPUused__First]=N'''', [CPUused__Last]=N'''', [CPUused__FLDelta]=N'''', [CPUused__Min]=N'''', [CPUused__Max]=N'''', [CPUused__MMDelta]=N'''', [tempdb_task__First]=N'''', [tempdb_task__Last]=N'''', [tempdb_task__FLDelta]=N'''', [tempdb_task__Min]=N'''', [tempdb_task__Max]=N'''', [tempdb_task__MMDelta]=N'''', [tempdb_task__Avg]=N'''', [tempdb_sess__First]=N'''', [tempdb_sess__Last]=N'''', [tempdb_sess__FLDelta]=N'''', [tempdb_sess__Min]=N'''', [tempdb_sess__Max]=N'''', [tempdb_sess__MMDelta]=N'''', [tempdb_sess__Avg]=N'''', [qmem_requested__First]=N'''', [qmem_requested__Last]=N'''', [qmem_requested__Min]=N'''', [qmem_requested__Max]=N'''', [qmem_requested__MMDelta]=N'''', [qmem_requested__Avg]=N'''', [qmem_granted__First]=N'''', [qmem_granted__Last]=N'''', [qmem_granted__Min]=N'''', [qmem_granted__Max]=N'''', [qmem_granted__MMDelta]=N'''', [qmem_granted__Avg]=N'''', [qmem_used__First]=N'''', [qmem_used__Last]=N'''', [qmem_used__Min]=N'''', [qmem_used__Max]=N'''', [qmem_used__MMDelta]=N'''', [qmem_used__Avg]=N'''', [TlogUsed__First]=N'''', [TlogUsed__Last]=N'''', [TlogUsed__FLDelta]=N'''', [TlogUsed__Min]=N'''', [TlogUsed__Max]=N'''', [TlogUsed__MMDelta]=N'''', [LReads__First]=N'''', [LReads__Last]=N'''', [LReads__FLDelta]=N'''', [LReads__Min]=N'''', [LReads__Max]=N'''', [LReads__MMDelta]=N'''', [PReads__First]=N'''', [PReads__Last]=N'''', [PReads__FLDelta]=N'''', [PReads__Min]=N'''', [PReads__Max]=N'''', [PReads__MMDelta]=N'''', [Writes__First]=N'''', [Writes__Last]=N'''', [Writes__FLDelta]=N'''', [Writes__Min]=N'''', [Writes__Max]=N'''', [Writes__MMDelta]=N'''' FROM #LongBatches lb OUTER APPLY ( SELECT TOP 1 ib.inputbuffer_xml FROM #InputBufferStore ib WHERE ib.PKInputBufferStoreID = lb.FKInputBufferStore ) xapp1 UNION ALL '; SET @lv__UnionSubQuery = @lv__UnionSubQuery + @lv__FormatSubQuery; /* For debugging: SELECT dyntxt, TxtLink from (SELECT @lv__UnionSubQuery AS dyntxt) t0 cross apply (select TxtLink=(select [processing-instruction(q)]=dyntxt for xml path(''),type)) F2; --RETURN 0; EXEC sp_executesql @lv__UnionSubQuery; RETURN 0; */ SET @lv__errorloc = N'Construct final query'; SET @lv__OuterSelect = N' SELECT --ordering fields --BatchOrderBy, --StmtStartOrderBy, --TieBreaker, --Visible fields SPID, FirstSeen, LastSeen, [Extent(sec)], [#Seen], [DBObject], [Cmd], [StatusCodes], [NonCXWaits], [CXWaits],' + CASE WHEN @attr=N'n' AND @plan = N'n' THEN N'' ELSE N'[Plan&Info]=PNI,' END + N' [#Tasks_First] = [Tasks__First], [Last] = [Tasks__Last], [Min] = [Tasks__Min], [Max] = [Tasks__Max], [Avg] = [Tasks__Avg], [DOP_First] = [DOP__First], [Last] = [DOP__Last], [Min] = [DOP__Min], [Max] = [DOP__Max], [Avg] = [DOP__Avg], [CPU_First] = [CPUused__First], [Last] = [CPUused__Last], [FLDelta] = [CPUused__FLDelta], [Min] = [CPUused__Min], [Max] = [CPUused__Max], [MMDelta] = [CPUused__MMDelta], [TaskTDB_First] = [tempdb_task__First], [Last] = [tempdb_task__Last], [FLDelta] = [tempdb_task__FLDelta], [Min] = [tempdb_task__Min], [Max] = [tempdb_task__Max], [MMDelta] = [tempdb_task__MMDelta], [Avg] = [tempdb_task__Avg], [SessTDB_First] = [tempdb_sess__First], [Last] = [tempdb_sess__Last], [FLDelta] = [tempdb_sess__FLDelta], [Min] = [tempdb_sess__Min], [Max] = [tempdb_sess__Max], [MMDelta] = [tempdb_sess__MMDelta], [Avg] = [tempdb_sess__Avg], --[Extent(sec)], --[DBObject], --[Cmd], [QMemReq_First] = [qmem_requested__First], [Last] = [qmem_requested__Last], [Min] = [qmem_requested__Min], [Max] = [qmem_requested__Max], [MMDelta] = [qmem_requested__MMDelta], [Avg] = [qmem_requested__Avg], [QMemGr_First] = [qmem_granted__First], [Last] = [qmem_granted__Last], [Min] = [qmem_granted__Min], [Max] = [qmem_granted__Max], [MMDelta] = [qmem_granted__MMDelta], [Avg] = [qmem_granted__Avg], [QMemUse_First] = [qmem_used__First], [Last] = [qmem_used__Last], [Min] = [qmem_used__Min], [Max] = [qmem_used__Max], [MMDelta] = [qmem_used__MMDelta], [Avg] = [qmem_used__Avg], [TlogUse_First] = [TlogUsed__First], [Last] = [TlogUsed__Last], [FLDelta] = [TlogUsed__FLDelta], [Min] = [TlogUsed__Min], [Max] = [TlogUsed__Max], [MMDelta] = [TlogUsed__MMDelta], --[Extent(sec)], --[DBObject], --[Cmd], [LReads_First] = [LReads__First], [Last] = [LReads__Last], [FLDelta] = [LReads__FLDelta], [Min] = [LReads__Min], [Max] = [LReads__Max], [MMDelta] = [LReads__MMDelta], [PReads_First] = [PReads__First], [Last] = [PReads__Last], [FLDelta] = [PReads__FLDelta], [Min] = [PReads__Min], [Max] = [PReads__Max], [MMDelta] = [PReads__MMDelta], [Writes_First] = [Writes__First], [Last] = [Writes__Last], [FLDelta] = [Writes__FLDelta], [Min] = [Writes__Min], [Max] = [Writes__Max], [MMDelta] = [Writes__MMDelta] FROM (' + @lv__UnionSubQuery + N' ) un1 ORDER BY BatchOrderBy, -- orders the statements StmtStartOrderBy, TieBreaker ;'; /* For debugging: SELECT dyntxt, TxtLink FROM (SELECT @lv__OuterSelect AS dyntxt) t0 CROSS APPLY (SELECT TxtLink=(SELECT [processing-instruction(q)]=dyntxt FOR XML PATH(''),TYPE)) F2 */ SET @lv__errorloc = N'Exec final dyn sql'; EXEC sp_executesql @lv__OuterSelect; RETURN 0; END TRY BEGIN CATCH IF @@TRANCOUNT > 0 ROLLBACK; SET @lv__errsev = ERROR_SEVERITY(); SET @lv__errstate = ERROR_STATE(); IF @lv__errorloc IN (N'Exec first dyn sql') BEGIN PRINT @lv__DynSQL; END SET @lv__msg = N'Exception occurred at location ("' + @lv__errorloc + N'"). Error #: ' + CONVERT(NVARCHAR(20),ERROR_NUMBER()) + N'; Severity: ' + CONVERT(NVARCHAR(20),ERROR_SEVERITY()) + N'; State: ' + CONVERT(NVARCHAR(20),ERROR_STATE()) + N'; Msg: ' + ERROR_MESSAGE(); RAISERROR(@lv__msg, @lv__errsev, @lv__errstate); RETURN -1 END CATCH END GO
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574949728257', 'positionManagement', 'system', '[0],[system],', '职位管理', '', '/positionManagement', '99', '2', '1', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574958116866', 'positionManagement_list', 'positionManagement', '[0],[system],[positionManagement],', '职位管理列表', '', '/positionManagement/list', '99', '3', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574958116867', 'positionManagement_add', 'positionManagement', '[0],[system],[positionManagement],', '职位管理添加', '', '/positionManagement/add', '99', '3', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574958116868', 'positionManagement_update', 'positionManagement', '[0],[system],[positionManagement],', '职位管理更新', '', '/positionManagement/update', '99', '3', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574958116869', 'positionManagement_delete', 'positionManagement', '[0],[system],[positionManagement],', '职位管理删除', '', '/positionManagement/delete', '99', '3', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574958116870', 'positionManagement_detail', 'positionManagement', '[0],[system],[positionManagement],', '职位管理详情', '', '/positionManagement/detail', '99', '3', '0', NULL, '1', '0');
<gh_stars>10-100 INSERT INTO "Storage"."RecordSets"("code", "name", "exposure", "shared", "hidden") VALUES('SMLC', 'SensorML Data catalog', 'EXTERNAL', false, false); INSERT INTO "Storage"."Records" ("accessionNumber","recordSet", "identifier", "title", "maintainerID", "validatorID", "profile", "updateDate", "isValidated", "isPublished", "type") VALUES (12, 'SMLC', 'urn:ogc:object:sensor:GEOM:1','urn:ogc:object:sensor:GEOM:1', 'admin', NULL, NULL, '2008-05-14', 1, 1, 'NORMALRECORD'); INSERT INTO "Storage"."Records" ("accessionNumber","recordSet", "identifier", "title", "maintainerID", "validatorID", "profile", "updateDate", "isValidated", "isPublished", "type") VALUES (13, 'SMLC', 'urn:ogc:object:sensor:GEOM:2','urn:ogc:object:sensor:GEOM:2', 'admin', NULL, NULL, '2008-05-14', 1, 1, 'NORMALRECORD'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML', 1, 'SensorML', 'SensorML', 'SensorML:SensorML.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member', 1, 'Member', 'SensorML', 'SensorML:SensorML.1:member.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process', 1, 'System', 'SensorML', 'SensorML:SensorML.1:member.1:process.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:keywords', 1, 'Keywords', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:keywords:keywordList', 1, 'KeywordList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification', 1, 'Identification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList', 1, 'IdentifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 1, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 2, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 3, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.3:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification', 1, 'Classification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList', 1, 'ClassifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 1, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 2, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 3, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 4, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 5, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 6, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 7, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 8, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 9, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 10, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint', 1, 'LegalConstraint', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights', 1, 'Rights', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation', 1, 'Document', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation:description', 1, 'StringOrRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1:description.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics', 1, 'Characteristics', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:characteristics.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities', 1, 'Capabilities', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:capabilities.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field', 2, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value', 1, 'QuantityRange', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact', 1, 'Contact', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty', 1, 'ResponsibleParty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo', 1, 'ContactInfo', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address', 1, 'Address', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact', 2, 'Contact', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty', 1, 'ResponsibleParty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo', 1, 'ContactInfo', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1:contactInfo.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address', 1, 'Address', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1:contactInfo.1:address.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:documentation', 1, 'Documentation', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document', 1, 'Document', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document:description', 1, 'StringOrRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:description.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document:onlineResource', 1, 'OnlineResource', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:onlineResource.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame', 1, 'SpatialReferenceFrame', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS', 1, 'EngineeringCRS', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesCS', 1, 'CoordinateSystemRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesCS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum', 1, 'EngineeringDatumRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum', 1, 'EngineeringDatum', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:anchorPoint', 1, 'CodeType', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:anchorPoint.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame', 1, 'TemporalReferenceFrame', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS', 1, 'TemporalCRS', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalCS', 1, 'TemporalCSRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalCS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalDatum', 1, 'TemporalDatumRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation', 1, 'Location', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point', 1, 'Point', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:pos', 1, 'DirectPosition', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces', 1, 'Interfaces', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList', 1, 'InterfaceList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface', 1, 'Interface', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition', 1, 'InterfaceDefinition', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer', 1, 'Category', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer', 1, 'Category', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:inputs', 1, 'Inputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:inputs:inputList', 1, 'InputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:inputs:inputList:input', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:inputs:inputList:input:value', 1, 'ObservableProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs', 1, 'Outputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList', 1, 'OutputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Time', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 2, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 3, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Boolean', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:components', 1, 'Components', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:components:componentList', 1, 'ComponentList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:components:componentList:component', 1, 'ComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions', 1, 'Positions', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList', 1, 'PositionList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position', 1, 'Position', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position', 1, 'Position', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location', 1, 'VectorProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector', 1, 'Vector', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 1, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 2, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 3, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections', 1, 'Connections', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList', 1, 'ConnectionList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection', 1, 'Connection', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link', 1, 'Link', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:source.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:destination.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection', 2, 'Connection', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link', 1, 'Link', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:source.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:destination.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML', 1, 'SensorML', 'SensorML', 'SensorML:SensorML.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member', 1, 'Member', 'SensorML', 'SensorML:SensorML.1:member.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process', 1, 'Component', 'SensorML', 'SensorML:SensorML.1:member.1:process.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:keywords', 1, 'Keywords', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:keywords:keywordList', 1, 'KeywordList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification', 1, 'Identification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList', 1, 'IdentifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 1, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 2, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification', 1, 'Classification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList', 1, 'ClassifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 1, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 2, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:validTime', 1, 'ValidTime', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:validTime.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:validTime:timePeriod', 1, 'TimePeriod', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:validTime.1:timePeriod.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:capabilities', 1, 'Capabilities', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:capabilities.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value', 1, 'TimeRange', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:contact', 1, 'Contact', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:contact:responsibleParty', 1, 'ResponsibleParty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:position', 1, 'Position', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:position.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:inputs', 1, 'Inputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:inputs:inputList', 1, 'InputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:inputs:inputList:input', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:inputs:inputList:input:value', 1, 'ObservableProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:outputs', 1, 'Outputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:outputs:outputList', 1, 'OutputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:outputs:outputList:output', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:outputs:outputList:output:value', 1, 'ObservableProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters', 1, 'Parameters', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:parameters.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList', 1, 'ParameterList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter', 2, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter', 3, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value', 1, 'QuantityRange', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (13, 'SensorML:SensorML:member:process:method', 1, 'MethodProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:method.1'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:version', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:version.1', '1.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:role.1', 'urn:x-ogx:def:sensor:OGC:detector'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:description', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:description.1', 'information about the piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:id.1', 'sensor-system'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:name.1', 'Piezometer Test'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:keywords:keywordList:codeSpace', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:codeSpace.1', 'urn:x-brgm:def:gcmd:keywords'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.1', 'piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 2, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.2', 'geosciences'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 3, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.3', 'point d''eau'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:name.1', 'bssCode'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:modelNumber'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:samplingStation:bss'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:value.1', '10972X0137/PONT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:name.1', 'supervisorCode'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:modelNumber'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:sensorSystem:hydras'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:value.1', '00ARGLELES'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.3:name.1', 'longName'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.3:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:longname'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.3:term.1:value.1', 'ARGELES'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:name.1', 'intendedApplication'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:definition.1', 'urn:x-ogc:def:classifier:OGC:application'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:value.1', 'eaux souterraines'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:name.1', 'sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:definition.1', 'urn:sensor:classifier:sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:GeoPoint:bss'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:value.1', 'piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:name.1', 'waterBody'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:mdo:identifier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.3:term.1:value.1', 'FR6221'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:name.1', 'waterBody'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:mdo:name'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.4:term.1:value.1', 'Multicouche pliocene et alluvions quaternaires du Roussillon'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:name.1', 'hydrologicalEntity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:bdhrf:identifier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.5:term.1:value.1', '225'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:name.1', 'hydrologicalEntity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:bdhrf:name'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.6:term.1:value.1', '<NAME>'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:name.1', 'commune'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:term.1:codeSpace.1:href.1', 'urn:x-insee:def:commune:identifier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.7:term.1:value.1', '66008'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:name.1', 'commune'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:term.1:codeSpace.1:href.1', 'urn:x-insee:def:commune:name'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.8:term.1:value.1', 'ARGELES SUR MER'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:name.1', 'network'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:network:identifier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.9:term.1:value.1', '600000221'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:name.1', 'network'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:term.1:definition.1', 'urn:sensor:classifier:references'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:term.1:codeSpace.1:href.1', 'urn:x-sandre:def:network:identifier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.10:term.1:value.1', '600000025'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights:copyRights', 1, 'Boolean', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:copyRights.1', 'true'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights:privacyAct', 1, 'Boolean', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:privacyAct.1', 'true'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation:description:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1:description.1:value.1', 'Donnees sous copyright du BRGM'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:definition.1', 'urn:x-ogc:def:property:physicalProperties'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:name.1', 'physicalProperties'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:name.1', 'MaxDepth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:definition.1', 'urn:x-ogc:def:property:depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:uom.1:href.1', 'urn:ogc:unit:m'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:value.1', '166.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:definition.1', 'urn:x-ogc:def:property:measurementProperties'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:description', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:description.1', 'Toutes les informations sur les contraintes sur les donnees'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:name.1', 'resolution'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:role.1', 'urn:x-ogc:def:property:resolution'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1:definition.1', 'urn:x-ogc:def:property:temperature'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1:uom.1:href.1', 'urn:ogc:unit:degree:celsius'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1:value.1', '0.1'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:name.1', 'accuracy'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:role.1', 'urn:x-ogc:def:property:accuracy'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1:definition.1', 'urn:x-ogc:def:property:absoluteAccuracy'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1:uom.1:href.1', 'urn:ogc:unit:percent'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1:value.1', '-0.5'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:value', 2, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.2:value.1:value.2', '0.5'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:role.1', 'urn:x-ogc:def:role:producer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:individualName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:individualName.1', 'BLAISE Marion (BRGM)'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:organizationName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:organizationName.1', 'BRGM'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:deliveryPoint', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:deliveryPoint.1', 'SGR LRO-1039 Rue de Pinville-34000 Montpellier'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:city', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:city.1', 'MONTPELLIER'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:electronicMailAddress', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:electronicMailAddress.1', '<EMAIL>'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.2:role.1', 'urn:x-ogc:def:role:owner'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:individualName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1:individualName.1', 'ASSENS Martine (CG66)'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:organizationName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1:organizationName.1', 'CONSEIL GENERAL DES PYRENEES ORIENTALES'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:deliveryPoint', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.2:responsibleParty.1:contactInfo.1:address.1:deliveryPoint.1', 'Hotel du Departement, B.P. 906, 66 906 Perpignan Cedex'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:documentation:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:role.1', 'urn:ogc:role:description'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document:description:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:description.1:value.1', 'Fiche descriptive de la station'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document:format', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:format.1', 'text/html'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:documentation:document:onlineResource:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:onlineResource.1:href.1', 'Well Test'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:id.1', 'STATION_FRAME'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:srsName.1', 'Position absolue du capteur'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesCS:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesCS.1:href.1', 'urn:ogc:def:crs:ogc:1.0:xyzFrame'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:id.1', 'datum'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:datumName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:datumName.1', 'Sensor Datum'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:anchorPoint:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:anchorPoint.1:value.1', 'X, Y et Z sont orthogonal au regard d''un point de reference. Toutes les mesures s''effectuent depuis ce point.'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:id.1', 'temporalReference'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:srsName.1', 'calendrier gregorien en heure d''ete'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalCS:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalCS.1:href.1', 'urn:x-brgm:temporalCS:gregorian'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalDatum:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalDatum.1:href.1', 'urn:x-brgm:temporalDatum:UniversalTime'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:id.1', 'STATION_LOCALISATION'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:pos:srsDimension', 1, 'Integer', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:srsDimension.1', '2'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:pos:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:srsName.1', 'urn:ogc:crs:EPSG:27582'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:pos:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:value.1', '65400.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:SMLLocation:point:pos:value', 2, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:value.2', '1731368.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:name.1', 'RS-232'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1:definition.1', 'urn:ogc:def:protocol:applicationLink'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1:value.1', 'urn:x-brgm:def:protocol:hydrasIRIS'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1:definition.1', 'urn:ogc:def:protocol:dataLink'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1:value.1', 'urn:x-brgm:def:dataLink:RTC'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:inputs:inputList:input:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:name.1', 'level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:inputs:inputList:input:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:name.1', 'piezoMeasurements'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:id.1', 'outputGroup'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:name.1', 'time'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:observationTime'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:uom.1:href.1', 'urn:x-ogc:def:unit:ISO8601'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:name.1', 'depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:name.1', 'validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:value.1:definition.1', 'urn:x-ogc:def:phenomenon:BRGM:validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:components:componentList:component:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:href.1', 'capteur_'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:components:componentList:component:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:role.1', 'urn:x-ogc:def:sensor:detector'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:name.1', 'piezoPosition'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:localFrame', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:localFrame.1', '#PIEZOMETER_FRAME'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:referenceFrame', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:referenceFrame.1', '#REFERENCE_POINT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:definition.1', 'urn:ogc:def:phenomenon:location'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:name.1', 'x'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:axisID.1', 'X'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:value.1', '0.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:name.1', 'y'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:axisID.1', 'Y'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:value.1', '0.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:name.1', 'z'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:axisID.1', 'Z'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:value.1', '0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:name.1', 'inputTolevel'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:source.1:ref.1', 'this/inputs/level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:destination.1:ref.1', 'piezometer/inputs/level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:name.1', 'depthToOutput'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:source.1:ref.1', 'piezometer/outputs/depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (12, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:destination.1:ref.1', 'this/outputs/piezoMeasurements/depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:version', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:version.1', '1.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:role.1', 'urn:x-ogx:def:sensor:OGC:detector'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:name.1', 'Capteur Profondeur de ARGELES'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:keywords:keywordList:codeSpace', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:codeSpace.1', 'urn:x-brgm:def:gcmd:keywords'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.1', 'piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 2, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.2', 'geosciences'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 3, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.3', 'point d''eau'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:name.1', 'supervisorCode'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:modelNumber'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:sensorSystem:hydras'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:value.1', '00ARGLELES_2000'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:name.1', 'longName'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:longname'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:value.1', 'Madofil II'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:name.1', 'intendedApplication'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:definition.1', 'urn:x-ogc:def:classifier:OGC:application'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:value.1', 'eaux souterraines'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:name.1', 'sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:definition.1', 'urn:sensor:classifier:sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:GeoPoint:bss'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:value.1', 'Profondeur'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:validTime:timePeriod:beginPosition', 1, 'Date', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:validTime.1:timePeriod.1:beginPosition.1', '2004-06-01T00:00:00+02:00'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:validTime:timePeriod:endPosition', 1, 'TimeIndeterminateValue', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:validTime.1:timePeriod.1:endPosition.1', '3'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:definition.1', 'urn:x-brgm:def:property:periodOfData'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:name.1', 'periodOfData'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:role.1', 'urn:x-brgm:def:property:periodOfData'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:capabilities:abstractDataRecord:field:value:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:capabilities.1:abstractDataRecord.1:field.1:value.1:value.1', '1987-04-23 now'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:contact:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:role.1', 'urn:x-ogc:def:role:manufacturer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:contact:responsibleParty:organizationName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:organizationName.1', 'IRIS'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:position:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:position.1:name.1', 'conductivitePosition'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:position:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:position.1:href.1', 'piezometer#piezoPosition'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:inputs:inputList:input:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:name.1', 'level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:inputs:inputList:input:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:outputs:outputList:output:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:name.1', 'depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:outputs:outputList:output:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:name.1', 'frequency'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:role.1', 'urn:x-ogc:def:property:frequency'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:value.1:definition.1', 'urn:x-ogc:def:property:frequency'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:value.1:uom.1:href.1', 'urn:ogc:unit:minuts'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.1:value.1:value.1', '60'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:name.1', 'precision'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:role.1', 'urn:x-ogc:def:property:precision'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:value.1:definition.1', 'urn:x-ogc:def:property:precision'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:value.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.2:value.1:value.1', '0.05'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:name.1', 'validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:role.1', 'urn:x-ogc:def:property:validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:value.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:value.1:value.1', '0.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:parameters:parameterList:parameter:value:value', 2, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:parameters.1:parameterList.1:parameter.3:value.1:value.2', '10.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (13, 'SensorML:SensorML:member:process:method:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:method.1:href.1', 'some_method'); INSERT INTO "Storage"."Records" ("accessionNumber","recordSet", "identifier", "title", "maintainerID", "validatorID", "profile", "updateDate", "isValidated", "isPublished", "type") VALUES (14, 'SMLC', 'urn:ogc:object:sensor:GEOM:3','urn:ogc:object:sensor:GEOM:3', 'admin', NULL, NULL, '2008-05-14', 1, 1, 'NORMALRECORD'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML', 1, 'SensorML', 'SensorML', 'SensorML:SensorML.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member', 1, 'Member', 'SensorML', 'SensorML:SensorML.1:member.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process', 1, 'System', 'SensorML', 'SensorML:SensorML.1:member.1:process.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:keywords', 1, 'Keywords', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:keywords:keywordList', 1, 'KeywordList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification', 1, 'Identification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList', 1, 'IdentifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 1, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier', 2, 'Identifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification', 1, 'Classification', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList', 1, 'ClassifierList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 1, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier', 2, 'Classifier', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term', 1, 'Term', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace', 1, 'CodeSpaceProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint', 1, 'LegalConstraint', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights', 1, 'Rights', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation', 1, 'Document', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation:description', 1, 'StringOrRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1:description.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics', 1, 'Characteristics', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:characteristics.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact', 1, 'Contact', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty', 1, 'ResponsibleParty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo', 1, 'ContactInfo', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address', 1, 'Address', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:onlineResource', 1, 'OnlineResource', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:onlineResource.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:onlineResource', 2, 'OnlineResource', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:onlineResource.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:documentation', 1, 'Documentation', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document', 1, 'Document', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document:description', 1, 'StringOrRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:description.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document:onlineResource', 1, 'OnlineResource', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:onlineResource.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:history', 1, 'History', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:history.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:history:eventList', 1, 'EventList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:history.1:eventList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:history:eventList:member', 1, 'EventListMember', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:history.1:eventList.1:member.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:history:eventList:member:event', 1, 'Event', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:history.1:eventList.1:member.1:event.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame', 1, 'SpatialReferenceFrame', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS', 1, 'EngineeringCRS', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesCS', 1, 'CoordinateSystemRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesCS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum', 1, 'EngineeringDatumRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum', 1, 'EngineeringDatum', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:anchorPoint', 1, 'CodeType', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:anchorPoint.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame', 1, 'TemporalReferenceFrame', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS', 1, 'TemporalCRS', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalCS', 1, 'TemporalCSRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalCS.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalDatum', 1, 'TemporalDatumRef', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalDatum.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation', 1, 'Location', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point', 1, 'Point', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:pos', 1, 'DirectPosition', 'ISO 19108', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces', 1, 'Interfaces', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList', 1, 'InterfaceList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface', 1, 'Interface', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition', 1, 'InterfaceDefinition', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer', 1, 'Category', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer', 1, 'Category', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:inputs', 1, 'Inputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:inputs:inputList', 1, 'InputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:inputs:inputList:input', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:inputs:inputList:input:value', 1, 'ObservableProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs', 1, 'Outputs', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList', 1, 'OutputList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output', 1, 'IoComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value', 1, 'DataRecord', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 1, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Time', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 2, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field', 3, 'DataComponentProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value', 1, 'Boolean', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:value.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:components', 1, 'Components', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList', 1, 'ComponentList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component', 1, 'ComponentProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:process', 1, 'Component', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:process.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:process:method', 1, 'MethodProperty', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:process.1:method.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions', 1, 'Positions', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList', 1, 'PositionList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position', 1, 'Position', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position', 1, 'Position', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location', 1, 'VectorProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector', 1, 'Vector', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 1, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 2, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate', 3, 'Coordinate', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity', 1, 'Quantity', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom', 1, 'UomProperty', 'Sensor Web Enablement', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:uom.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections', 1, 'Connections', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList', 1, 'ConnectionList', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection', 1, 'Connection', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link', 1, 'Link', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:source.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:destination.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection', 2, 'Connection', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link', 1, 'Link', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:source.1'); INSERT INTO "Storage"."Values" ("form", "path", "ordinal", "type", "typeStandard", "id_value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination', 1, 'LinkRef', 'SensorML', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:destination.1'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:version', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:version.1', '1.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:role.1', 'urn:x-ogx:def:sensor:OGC:detector'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:arcrole', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:arcrole.1', 'arcrole1'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:description', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:description.1', 'information about the piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:id.1', 'sensor-system2'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:name.1', 'Piezometer Test'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:keywords:keywordList:codeSpace', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:codeSpace.1', 'urn:x-brgm:def:gcmd:keywords'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:keywords:keywordList:keyword', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:keywords.1:keywordList.1:keyword.1', 'piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:name.1', 'bssCode'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:modelNumber'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:samplingStation:bss'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.1:term.1:value.1', '10972X0137/FONT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:name.1', 'supervisorCode'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:definition.1', 'urn:x-ogc:def:identifier:OGC:modelNumber'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:sensorSystem:hydras'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:identification:identifierList:identifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:identification.1:identifierList.1:identifier.2:term.1:value.1', '00FONT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:name.1', 'intendedApplication'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:definition.1', 'urn:x-ogc:def:classifier:OGC:application'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.1:term.1:value.1', 'eaux souterraines'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:name.1', 'sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:definition', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:definition.1', 'urn:sensor:classifier:sensorType'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:codeSpace:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:codeSpace.1:href.1', 'urn:x-brgm:def:GeoPoint:bss'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:classification:classifierList:classifier:term:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:classification.1:classifierList.1:classifier.2:term.1:value.1', 'piezometer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights:copyRights', 1, 'Boolean', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:copyRights.1', 'false'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights:privacyAct', 1, 'Boolean', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:privacyAct.1', 'false'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:legalConstraint:rights:documentation:description:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:legalConstraint.1:rights.1:documentation.1:description.1:value.1', 'Donnees sous aucun copyright'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:definition.1', 'urn:x-ogc:def:property:physicalProperties'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:name.1', 'physicalProperties'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:name.1', 'MaxDepth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:definition.1', 'urn:x-ogc:def:property:depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:uom.1:href.1', 'urn:ogc:unit:m'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:characteristics:abstractDataRecord:field:value:field:value:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:characteristics.1:abstractDataRecord.1:field.1:value.1:field.1:value.1:value.1', '166.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:role.1', 'urn:x-ogc:def:role:producer'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:arcrole', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:arcrole.1', 'contact-arcrole'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:type', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:type.1', 'complex'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:id.1', 'resp-1'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:individualName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:individualName.1', '<NAME>'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:organizationName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:organizationName.1', 'SUNA-corp'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:deliveryPoint', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:deliveryPoint.1', '35 rue fly'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:city', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:city.1', 'MONTPELLIER'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:address:electronicMailAddress', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:address.1:electronicMailAddress.1', '<EMAIL>'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:onlineResource:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:onlineResource.1:href.1', 'http://www.suna-corp.com'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:contact:responsibleParty:contactInfo:onlineResource:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:contact.1:responsibleParty.1:contactInfo.1:onlineResource.2:href.1', 'http://www.suna2-corp.com'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:documentation:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:role.1', 'urn:ogc:role:description'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document:description:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:description.1:value.1', 'Fiche descriptive de la station'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document:format', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:format.1', 'text/html'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:documentation:document:onlineResource:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:documentation.1:document.1:onlineResource.1:href.1', 'http://ades.eaufrance.fr/FichePtEau.aspx?code=10972X0137/PONT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:history:eventList:member:event:date', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:history.1:eventList.1:member.1:event.1:date.1', '2003-09-01'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:id.1', 'STATION_FRAME'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:srsName.1', 'Position absolue du capteur'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesCS:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesCS.1:href.1', 'urn:ogc:def:crs:ogc:1.0:xyzFrame'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:id.1', 'datum'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:datumName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:datumName.1', 'Sensor Datum'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:spatialReferenceFrame:engineeringCRS:usesEngineeringDatum:engineeringDatum:anchorPoint:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:spatialReferenceFrame.1:engineeringCRS.1:usesEngineeringDatum.1:engineeringDatum.1:anchorPoint.1:value.1', 'X, Y et Z sont orthogonal au regard d''un point de reference. Toutes les mesures s''effectuent depuis ce point.'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:id.1', 'temporalReference'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:srsName.1', 'calendrier gregorien en heure d''ete'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalCS:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalCS.1:href.1', 'urn:x-brgm:temporalCS:gregorian'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:temporalReferenceFrame:temporalCRS:usesTemporalDatum:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:temporalReferenceFrame.1:temporalCRS.1:usesTemporalDatum.1:href.1', 'urn:x-brgm:temporalDatum:UniversalTime'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:id.1', 'STATION_LOCALISATION'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:pos:srsDimension', 1, 'Integer', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:srsDimension.1', '2'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:pos:srsName', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:srsName.1', 'urn:ogc:crs:EPSG:27582'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:pos:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:value.1', '65400.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:SMLLocation:point:pos:value', 2, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:SMLLocation.1:point.1:pos.1:value.2', '1731368.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:name.1', 'RS-232'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1:definition.1', 'urn:ogc:def:protocol:applicationLink'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:applicationLayer:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:applicationLayer.1:value.1', 'urn:x-brgm:def:protocol:hydrasIRIS'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1:definition.1', 'urn:ogc:def:protocol:dataLink'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:interfaces:interfaceList:interface:interfaceDefinition:dataLinkLayer:value', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:interfaces.1:interfaceList.1:interface.1:interfaceDefinition.1:dataLinkLayer.1:value.1', 'urn:x-brgm:def:dataLink:RTC'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:inputs:inputList:input:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:name.1', 'level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:inputs:inputList:input:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:inputs.1:inputList.1:input.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:name.1', 'piezoMeasurements'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:id', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:id.1', 'outputGroup'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:name.1', 'time'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:definition.1', 'urn:x-ogc:def:phenomenon:observationTime'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.1:value.1:uom.1:href.1', 'urn:x-ogc:def:unit:ISO8601'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:name.1', 'depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:definition.1', 'urn:x-ogc:def:phenomenon:OGC:depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:referenceFrame', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:referenceFrame.1', 'framez'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.2:value.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:name.1', 'validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:outputs:outputList:output:value:field:value:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:outputs.1:outputList.1:output.1:value.1:field.3:value.1:definition.1', 'urn:x-ogc:def:phenomenon:BRGM:validity'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:href.1', 'capteur_'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:role', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:role.1', 'urn:x-ogc:def:sensor:detector'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:name.1', 'something'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:components:componentList:component:process:method:href', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:components.1:componentList.1:component.1:process.1:method.1:href.1', 'capteur_'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:name.1', 'piezoPosition'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:localFrame', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:localFrame.1', '#PIEZOMETER_FRAME'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:referenceFrame', 1, 'URI', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:referenceFrame.1', '#REFERENCE_POINT'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:definition.1', 'urn:ogc:def:phenomenon:location'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:name.1', 'x'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:axisID.1', 'X'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:referenceFrame', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:referenceFrame.1', 'framez'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.1:quantity.1:value.1', '0.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:name.1', 'y'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:axisID.1', 'Y'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:referenceFrame', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:referenceFrame.1', 'framez'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.2:quantity.1:value.1', '0.0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:name.1', 'z'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:axisID', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:axisID.1', 'Z'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:referenceFrame', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:referenceFrame.1', 'framez'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:definition', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:definition.1', 'urn:ogc:def:phenomenon:distance'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:uom:code', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:uom.1:code.1', 'm'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:positions:positionList:position:position:location:vector:coordinate:quantity:value', 1, 'Double', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:positions.1:positionList.1:position.1:position.1:location.1:vector.1:coordinate.3:quantity.1:value.1', '0'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:name.1', 'inputTolevel'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:source.1:ref.1', 'this/inputs/level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.1:link.1:destination.1:ref.1', 'piezometer/inputs/level'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:name', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:name.1', 'depthToOutput'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:source:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:source.1:ref.1', 'piezometer/outputs/depth'); INSERT INTO "Storage"."TextValues" ("form", "path", "ordinal", "type", "typeStandard", "id_value", "value") VALUES (14, 'SensorML:SensorML:member:process:connections:connectionList:connection:link:destination:ref', 1, 'CharacterString', 'ISO 19103', 'SensorML:SensorML.1:member.1:process.1:connections.1:connectionList.1:connection.2:link.1:destination.1:ref.1', 'this/outputs/piezoMeasurements/depth');
<reponame>Sandeepchau/MixErp22 IF OBJECT_ID('finance.salary_payable_selector_view') IS NOT NULL DROP VIEW finance.salary_payable_selector_view; GO CREATE VIEW finance.salary_payable_selector_view AS SELECT finance.account_scrud_view.account_id AS salary_payable_id, finance.account_scrud_view.account_name AS salary_payable_name FROM finance.account_scrud_view WHERE account_master_id IN(SELECT * FROM finance.get_account_master_ids(15011)); GO
/* * Copyright 2017 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ CREATE TABLE emp ( empno NUMBER(4) CONSTRAINT pk_emp PRIMARY KEY, ename VARCHAR2(10) NOT NULL, job VARCHAR2(9) NOT NULL, mgr NUMBER(4), hiredate DATE NOT NULL, sal NUMBER(7,2) NOT NULL, comm NUMBER(7,2), deptno NUMBER(2) CONSTRAINT fk_deptno REFERENCES dept ); INSERT INTO emp VALUES (7369, 'SMITH', 'CLERK', 7902, DATE '1980-12-17', 800, NULL, 20); INSERT INTO emp VALUES (7499, 'ALLEN', 'SALESMAN', 7698, DATE '1981-02-20', 1600, 300, 30); INSERT INTO emp VALUES (7521, 'WARD', 'SALESMAN', 7698, DATE '1981-02-22', 1250, 500, 30); INSERT INTO emp VALUES (7566, 'JONES', 'MANAGER', 7839, DATE '1981-04-02', 2975, NULL, 20); INSERT INTO emp VALUES (7654, 'MARTIN', 'SALESMAN', 7698, DATE '1981-09-28', 1250, 1400, 30); INSERT INTO emp VALUES (7698, 'BLAKE', 'MANAGER', 7839, DATE '1981-05-01', 2850, NULL, 30); INSERT INTO emp VALUES (7782, 'CLARK', 'MANAGER', 7839, DATE '1981-06-09', 2450, NULL, 10); INSERT INTO emp VALUES (7788, 'SCOTT', 'ANALYST', 7566, DATE '1987-04-19', 3000, NULL, 20); INSERT INTO emp VALUES (7839, 'KING', 'PRESIDENT', NULL, DATE '1981-11-17', 5000, NULL, 10); INSERT INTO emp VALUES (7844, 'TURNER', 'SALESMAN', 7698, DATE '1981-09-08', 1500, 0, 30); INSERT INTO emp VALUES (7876, 'ADAMS', 'CLERK', 7788, DATE '1987-05-23', 1100, NULL, 20); INSERT INTO emp VALUES (7900, 'JAMES', 'CLERK', 7698, DATE '1981-12-03', 950, NULL, 30); INSERT INTO emp VALUES (7902, 'FORD', 'ANALYST', 7566, DATE '1981-12-03', 3000, NULL, 20); INSERT INTO emp VALUES (7934, 'MILLER', 'CLERK', 7782, DATE '1982-01-23', 1300, NULL, 10); COMMIT; ALTER TABLE emp MODIFY ( deptno NOT NULL ); ALTER TABLE emp ADD ( constraint fk_mgr FOREIGN KEY (mgr) references emp );
--liquibase formatted sql --changeset quarkus:1:create-table-quarkus --labels 1 CREATE TABLE quarkus ( id INT, name VARCHAR(20) );
<filename>spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryEmbeddedIntegrationTests-mysql.sql CREATE TABLE dummy_entity (id BIGINT AUTO_INCREMENT PRIMARY KEY, TEST VARCHAR(100), PREFIX2_ATTR BIGINT, PREFIX_TEST VARCHAR(100), PREFIX_PREFIX2_ATTR BIGINT);
SELECT toDecimal128(toString(-1.111), 5) AS val, toTypeName(val) AS ty
-- -- WORKAROUND: Sqitch issue https://github.com/sqitchers/sqitch/issues/358 -- seems to resurface for some people on Windows + WSL + Docker setup. -- As a workaround we create the sqitch schema manually before running sqitch. -- -- -- PostgreSQL database dump -- -- Dumped from database version 12.7 (Debian 12.7-1.pgdg100+1) -- Dumped by pg_dump version 12.7 (Debian 12.7-1.pgdg100+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: sqitch; Type: SCHEMA; Schema: -; Owner: - -- CREATE SCHEMA sqitch; -- -- Name: SCHEMA sqitch; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON SCHEMA sqitch IS 'Sqitch database deployment metadata v1.1.'; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: changes; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.changes ( change_id text NOT NULL, script_hash text, change text NOT NULL, project text NOT NULL, note text DEFAULT ''::text NOT NULL, committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL, committer_name text NOT NULL, committer_email text NOT NULL, planned_at timestamp with time zone NOT NULL, planner_name text NOT NULL, planner_email text NOT NULL ); -- -- Name: TABLE changes; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.changes IS 'Tracks the changes currently deployed to the database.'; -- -- Name: COLUMN changes.change_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.change_id IS 'Change primary key.'; -- -- Name: COLUMN changes.script_hash; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.script_hash IS 'Deploy script SHA-1 hash.'; -- -- Name: COLUMN changes.change; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.change IS 'Name of a deployed change.'; -- -- Name: COLUMN changes.project; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.project IS 'Name of the Sqitch project to which the change belongs.'; -- -- Name: COLUMN changes.note; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.note IS 'Description of the change.'; -- -- Name: COLUMN changes.committed_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.committed_at IS 'Date the change was deployed.'; -- -- Name: COLUMN changes.committer_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.committer_name IS 'Name of the user who deployed the change.'; -- -- Name: COLUMN changes.committer_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.committer_email IS 'Email address of the user who deployed the change.'; -- -- Name: COLUMN changes.planned_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.planned_at IS 'Date the change was added to the plan.'; -- -- Name: COLUMN changes.planner_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.planner_name IS 'Name of the user who planed the change.'; -- -- Name: COLUMN changes.planner_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.changes.planner_email IS 'Email address of the user who planned the change.'; -- -- Name: dependencies; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.dependencies ( change_id text NOT NULL, type text NOT NULL, dependency text NOT NULL, dependency_id text, CONSTRAINT dependencies_check CHECK ((((type = 'require'::text) AND (dependency_id IS NOT NULL)) OR ((type = 'conflict'::text) AND (dependency_id IS NULL)))) ); -- -- Name: TABLE dependencies; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.dependencies IS 'Tracks the currently satisfied dependencies.'; -- -- Name: COLUMN dependencies.change_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.dependencies.change_id IS 'ID of the depending change.'; -- -- Name: COLUMN dependencies.type; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.dependencies.type IS 'Type of dependency.'; -- -- Name: COLUMN dependencies.dependency; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.dependencies.dependency IS 'Dependency name.'; -- -- Name: COLUMN dependencies.dependency_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.dependencies.dependency_id IS 'Change ID the dependency resolves to.'; -- -- Name: events; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.events ( event text NOT NULL, change_id text NOT NULL, change text NOT NULL, project text NOT NULL, note text DEFAULT ''::text NOT NULL, requires text[] DEFAULT '{}'::text[] NOT NULL, conflicts text[] DEFAULT '{}'::text[] NOT NULL, tags text[] DEFAULT '{}'::text[] NOT NULL, committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL, committer_name text NOT NULL, committer_email text NOT NULL, planned_at timestamp with time zone NOT NULL, planner_name text NOT NULL, planner_email text NOT NULL, CONSTRAINT events_event_check CHECK ((event = ANY (ARRAY['deploy'::text, 'revert'::text, 'fail'::text, 'merge'::text]))) ); -- -- Name: TABLE events; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.events IS 'Contains full history of all deployment events.'; -- -- Name: COLUMN events.event; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.event IS 'Type of event.'; -- -- Name: COLUMN events.change_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.change_id IS 'Change ID.'; -- -- Name: COLUMN events.change; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.change IS 'Change name.'; -- -- Name: COLUMN events.project; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.project IS 'Name of the Sqitch project to which the change belongs.'; -- -- Name: COLUMN events.note; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.note IS 'Description of the change.'; -- -- Name: COLUMN events.requires; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.requires IS 'Array of the names of required changes.'; -- -- Name: COLUMN events.conflicts; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.conflicts IS 'Array of the names of conflicting changes.'; -- -- Name: COLUMN events.tags; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.tags IS 'Tags associated with the change.'; -- -- Name: COLUMN events.committed_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.committed_at IS 'Date the event was committed.'; -- -- Name: COLUMN events.committer_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.committer_name IS 'Name of the user who committed the event.'; -- -- Name: COLUMN events.committer_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.committer_email IS 'Email address of the user who committed the event.'; -- -- Name: COLUMN events.planned_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.planned_at IS 'Date the event was added to the plan.'; -- -- Name: COLUMN events.planner_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.planner_name IS 'Name of the user who planed the change.'; -- -- Name: COLUMN events.planner_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.events.planner_email IS 'Email address of the user who plan planned the change.'; -- -- Name: projects; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.projects ( project text NOT NULL, uri text, created_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL, creator_name text NOT NULL, creator_email text NOT NULL ); -- -- Name: TABLE projects; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.projects IS 'Sqitch projects deployed to this database.'; -- -- Name: COLUMN projects.project; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.projects.project IS 'Unique Name of a project.'; -- -- Name: COLUMN projects.uri; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.projects.uri IS 'Optional project URI'; -- -- Name: COLUMN projects.created_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.projects.created_at IS 'Date the project was added to the database.'; -- -- Name: COLUMN projects.creator_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.projects.creator_name IS 'Name of the user who added the project.'; -- -- Name: COLUMN projects.creator_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.projects.creator_email IS 'Email address of the user who added the project.'; -- -- Name: releases; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.releases ( version real NOT NULL, installed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL, installer_name text NOT NULL, installer_email text NOT NULL ); -- -- Name: TABLE releases; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.releases IS 'Sqitch registry releases.'; -- -- Name: COLUMN releases.version; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.releases.version IS 'Version of the Sqitch registry.'; -- -- Name: COLUMN releases.installed_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.releases.installed_at IS 'Date the registry release was installed.'; -- -- Name: COLUMN releases.installer_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.releases.installer_name IS 'Name of the user who installed the registry release.'; -- -- Name: COLUMN releases.installer_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.releases.installer_email IS 'Email address of the user who installed the registry release.'; -- -- Name: tags; Type: TABLE; Schema: sqitch; Owner: - -- CREATE TABLE sqitch.tags ( tag_id text NOT NULL, tag text NOT NULL, project text NOT NULL, change_id text NOT NULL, note text DEFAULT ''::text NOT NULL, committed_at timestamp with time zone DEFAULT clock_timestamp() NOT NULL, committer_name text NOT NULL, committer_email text NOT NULL, planned_at timestamp with time zone NOT NULL, planner_name text NOT NULL, planner_email text NOT NULL ); -- -- Name: TABLE tags; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON TABLE sqitch.tags IS 'Tracks the tags currently applied to the database.'; -- -- Name: COLUMN tags.tag_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.tag_id IS 'Tag primary key.'; -- -- Name: COLUMN tags.tag; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.tag IS 'Project-unique tag name.'; -- -- Name: COLUMN tags.project; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.project IS 'Name of the Sqitch project to which the tag belongs.'; -- -- Name: COLUMN tags.change_id; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.change_id IS 'ID of last change deployed before the tag was applied.'; -- -- Name: COLUMN tags.note; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.note IS 'Description of the tag.'; -- -- Name: COLUMN tags.committed_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.committed_at IS 'Date the tag was applied to the database.'; -- -- Name: COLUMN tags.committer_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.committer_name IS 'Name of the user who applied the tag.'; -- -- Name: COLUMN tags.committer_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.committer_email IS 'Email address of the user who applied the tag.'; -- -- Name: COLUMN tags.planned_at; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.planned_at IS 'Date the tag was added to the plan.'; -- -- Name: COLUMN tags.planner_name; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.planner_name IS 'Name of the user who planed the tag.'; -- -- Name: COLUMN tags.planner_email; Type: COMMENT; Schema: sqitch; Owner: - -- COMMENT ON COLUMN sqitch.tags.planner_email IS 'Email address of the user who planned the tag.'; -- -- Data for Name: changes; Type: TABLE DATA; Schema: sqitch; Owner: - -- -- INSERT INTO sqitch.changes VALUES ('7db0c918b64959cb7dc337facd041453f7cb05b0', '7d0e6ef75bf47087260fbd7461db83849db7b15c', 'empty', 'data-pipeline-template', 'empty example', '2021-06-16 12:15:16.495834+00', 'taito', 'taito@1<PASSWORD>', '2021-05-25 18:17:03+00', 'taito', 'taito@30d7f8b5eeff'); -- -- Data for Name: dependencies; Type: TABLE DATA; Schema: sqitch; Owner: - -- -- -- Data for Name: events; Type: TABLE DATA; Schema: sqitch; Owner: - -- -- INSERT INTO sqitch.events VALUES ('deploy', '7db0c918b64959cb7dc337facd041453f7cb05b0', 'empty', 'data-pipeline-template', 'empty example', '{}', '{}', '{}', '2021-06-16 12:15:16.497648+00', 'taito', 'taito@<PASSWORD>', '2021-05-25 18:17:03+00', 'taito', 'taito@<PASSWORD>'); -- -- Data for Name: projects; Type: TABLE DATA; Schema: sqitch; Owner: - -- INSERT INTO sqitch.projects VALUES ('data-pipeline-template', 'https://github.com/TaitoUnited/data-pipeline-template/', '2021-06-16 12:15:16.311151+00', 'taito', 'taito@<PASSWORD>'); -- -- Data for Name: releases; Type: TABLE DATA; Schema: sqitch; Owner: - -- INSERT INTO sqitch.releases VALUES (1.1, '2021-06-16 12:15:16.30769+00', 'taito', 'taito@<PASSWORD>'); -- -- Data for Name: tags; Type: TABLE DATA; Schema: sqitch; Owner: - -- -- -- Name: changes changes_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.changes ADD CONSTRAINT changes_pkey PRIMARY KEY (change_id); -- -- Name: changes changes_project_script_hash_key; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.changes ADD CONSTRAINT changes_project_script_hash_key UNIQUE (project, script_hash); -- -- Name: dependencies dependencies_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.dependencies ADD CONSTRAINT dependencies_pkey PRIMARY KEY (change_id, dependency); -- -- Name: events events_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.events ADD CONSTRAINT events_pkey PRIMARY KEY (change_id, committed_at); -- -- Name: projects projects_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.projects ADD CONSTRAINT projects_pkey PRIMARY KEY (project); -- -- Name: projects projects_uri_key; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.projects ADD CONSTRAINT projects_uri_key UNIQUE (uri); -- -- Name: releases releases_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.releases ADD CONSTRAINT releases_pkey PRIMARY KEY (version); -- -- Name: tags tags_pkey; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.tags ADD CONSTRAINT tags_pkey PRIMARY KEY (tag_id); -- -- Name: tags tags_project_tag_key; Type: CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.tags ADD CONSTRAINT tags_project_tag_key UNIQUE (project, tag); -- -- Name: changes changes_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.changes ADD CONSTRAINT changes_project_fkey FOREIGN KEY (project) REFERENCES sqitch.projects(project) ON UPDATE CASCADE; -- -- Name: dependencies dependencies_change_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.dependencies ADD CONSTRAINT dependencies_change_id_fkey FOREIGN KEY (change_id) REFERENCES sqitch.changes(change_id) ON UPDATE CASCADE ON DELETE CASCADE; -- -- Name: dependencies dependencies_dependency_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.dependencies ADD CONSTRAINT dependencies_dependency_id_fkey FOREIGN KEY (dependency_id) REFERENCES sqitch.changes(change_id) ON UPDATE CASCADE; -- -- Name: events events_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.events ADD CONSTRAINT events_project_fkey FOREIGN KEY (project) REFERENCES sqitch.projects(project) ON UPDATE CASCADE; -- -- Name: tags tags_change_id_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.tags ADD CONSTRAINT tags_change_id_fkey FOREIGN KEY (change_id) REFERENCES sqitch.changes(change_id) ON UPDATE CASCADE; -- -- Name: tags tags_project_fkey; Type: FK CONSTRAINT; Schema: sqitch; Owner: - -- ALTER TABLE ONLY sqitch.tags ADD CONSTRAINT tags_project_fkey FOREIGN KEY (project) REFERENCES sqitch.projects(project) ON UPDATE CASCADE; -- -- PostgreSQL database dump complete --
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 10, 2021 at 08:42 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 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: `shiba_vacation` -- -- -------------------------------------------------------- -- -- Table structure for table `bookings` -- CREATE TABLE `bookings` ( `id_booking` bigint(20) UNSIGNED NOT NULL, `id_user` int(11) NOT NULL, `name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `id_hotel` int(11) NOT NULL, `check_in` date NOT NULL, `check_out` date NOT NULL, `total_harga` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bookings` -- INSERT INTO `bookings` (`id_booking`, `id_user`, `name`, `email`, `phone`, `id_hotel`, `check_in`, `check_out`, `total_harga`, `created_at`, `updated_at`) VALUES (2, 1, '<NAME>', '<EMAIL>', '085794933113', 1, '2021-06-12', '2021-06-15', 2400000, '2021-06-10 06:21:34', '2021-06-10 06:21:34'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `hotels` -- CREATE TABLE `hotels` ( `id_hotel` int(11) NOT NULL, `id_location` int(11) NOT NULL, `hotel_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `address` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `price` int(11) NOT NULL, `images` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, `hotel_star` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `room_available` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `hotels` -- INSERT INTO `hotels` (`id_hotel`, `id_location`, `hotel_name`, `address`, `price`, `images`, `hotel_star`, `created_at`, `updated_at`, `room_available`) VALUES (1, 1, 'Hilton Bali Resort', 'Jalan Nusa Dua Kuta Selatan Kabupaten Badung', 800000, 'hilton.jpeg', 5, '2021-06-02 19:01:23', '2021-06-02 19:01:23', 10), (2, 1, 'The Apurva Kempinski Bali', 'Jalan Raya Nusa Dua Selatan Sawangan Nusa Dua', 3500000, 'kempinski.jpeg', 5, '2021-06-02 19:02:36', '2021-06-02 19:02:36', 10), (3, 1, 'The Trans Resort Bali', 'Jalan Sunset Road Kerobokan Seminyak Kuta', 850000, 'trans.jpeg', 5, '2021-06-03 00:44:47', '2021-06-03 00:44:47', 10), (4, 1, 'Lv8 Resort Bali', 'Jln. Pantai Berawa No. 100xx, Tibubeneng, Canggu, North Kuta – Badung, Canggu, Kuta', 813000, 'lv8.jpeg', 5, '2021-06-03 00:47:13', '2021-06-03 00:47:13', 10), (7, 1, 'Aksari Resort Ubud', 'Desa Kelabangmoding Tegallalang Ubud, Gianyar,', 1205000, 'aksari.jpeg', 5, '2021-06-05 01:00:18', '2021-06-05 01:00:18', 10), (9, 2, 'Hotel Indonesia Kempinski Jakarta', 'Jalan MH Thamrin No. 1, Thamrin, Jakarta Pusat', 2400000, 'HI.jpg', 5, '2021-06-09 00:15:43', '2021-06-09 00:15:43', 10), (11, 2, 'Sari Pasific Jakarta', 'Jl. MH Thamrin No. 6, Thamrin, Jakarta Pusat', 2300000, 'sari_pasific.jpeg', 5, '2021-06-10 01:07:31', '2021-06-10 01:25:10', 10), (12, 2, 'Merlynn Park Hotel', 'Jl. K.<NAME> 29-31, Gambir, Petojo Utara', 635000, 'Merlynn_park.jpeg', 5, '2021-06-10 01:08:48', '2021-06-10 01:08:48', 10), (13, 2, 'Aston Priority Simatupang Hotel & Conference Center HOTELS', 'Jl. Let. Jend. T.B. Simatupang Kav. 9 Kebagusan, Cilandak, Kebagusan', 635000, 'aston_priority.jpeg', 4, '2021-06-10 01:11:49', '2021-06-10 01:11:49', 10), (14, 2, 'Grand Hyatt Jakarta', 'Jalan <NAME>. 28-30, Thamrin, Jakarta Pusat', 1720000, 'grand_hyatt.jpeg', 5, '2021-06-10 01:14:12', '2021-06-10 01:14:12', 10), (15, 2, 'H<NAME> FX Sudirman', 'Jl. J<NAME>, Pintu Satu Senayan, Kebayoran Baru, Senayan', 750000, 'harris_suites.jpeg', 5, '2021-06-10 01:24:21', '2021-06-10 01:31:21', 10), (16, 3, 'Hotel Tentrem Yogyakarta', 'JL. <NAME> No. 72 A, Jetis', 1500000, 'tentrem.jpeg', 5, '2021-06-10 01:27:20', '2021-06-10 01:27:20', 10), (17, 3, 'Hyatt Regency Yogyakarta', 'Jl Palagan Tentara Pelajar, Ngaglik, Yogyakarta', 850000, 'hyatt_regency.jpeg', 5, '2021-06-10 01:33:05', '2021-06-10 01:33:05', 10), (18, 3, 'Grand Inna Malioboro', 'Jl. Malioboro 60 Yogyakarta', 500000, 'grand_inna.jpeg', 4, '2021-06-10 01:34:31', '2021-06-10 01:34:31', 10), (19, 3, 'The Westlake Hotel & Resort Yogyakarta', 'Jalan Ringroad Barat, Bedog, Trihanggo, Sleman, Mlati', 650, 'westlake.jpeg', 4, '2021-06-10 01:35:43', '2021-06-10 01:35:43', 10), (20, 3, 'Hotel Neo Malioboro by ASTON', 'Jalan Pasar Kembang No 21, Malioboro Street', 430000, 'neo_yogyakarta.jpeg', 3, '2021-06-10 01:37:01', '2021-06-10 01:37:01', 10), (21, 4, 'Golden Tulip Pontianak', 'Jl. Teuku Umar No. 39, Pontianak Kota', 484000, 'golden_tulip_pontianak.jpeg', 4, '2021-06-10 01:40:47', '2021-06-10 01:40:47', 10), (22, 4, 'Ibis Pontianak City Center', 'Jl Jendral Ahmad Yani #81, Pontianak Selatan', 263000, 'ibis_pontianak.jpg', 3, '2021-06-10 01:42:03', '2021-06-10 01:42:03', 10), (23, 4, 'HARRIS Hotel Pontianak', 'alan Gajahmada No. 150, Pontianak Selatan', 450000, 'harris_pontianak.jpeg', 4, '2021-06-10 01:43:32', '2021-06-10 01:43:32', 10), (25, 4, 'Star Hotel', 'Jl. Gajahmada No. 107-109, Pontianak Selatan', 300000, 'star_hotel.jpeg', 3, '2021-06-10 01:47:33', '2021-06-10 01:47:33', 10), (26, 7, 'eL Hotel Royale', 'Jl. Merdeka No.2, Merdeka', 578000, 'eL_royale.jpeg', 4, '2021-06-10 01:49:55', '2021-06-10 01:49:55', 10), (27, 7, 'The Trans Luxury Hotel', 'Jl. <NAME> No. 289, Buahbatu', 1345000, 'the_trans.jpeg', 5, '2021-06-10 01:52:16', '2021-06-10 01:52:16', 10), (28, 7, 'Grand Tjokro Premiere Bandung', 'Jalan Cihampelas No 211-217 Bandung 40131, Cihampelas', 450000, 'grand_tjokro.jpeg', 4, '2021-06-10 01:54:42', '2021-06-10 01:54:42', 10), (29, 7, 'InterContinental Bandung Dago Pakar', 'Lapangan Golf Dago Atas No. 78, Dago Atas', 1790000, 'intercontinental_bandung.jpeg', 5, '2021-06-10 01:57:34', '2021-06-10 01:57:34', 10), (30, 7, 'Grand Tebu Hotel', 'Jalan L.L.R.E Martadinata (Riau) No. 207, Riau Street', 450000, 'grand_tebu.jpeg', 4, '2021-06-10 01:58:49', '2021-06-10 01:58:49', 10); -- -------------------------------------------------------- -- -- Table structure for table `hotel_images` -- CREATE TABLE `hotel_images` ( `id_image` int(11) NOT NULL, `id_hotel` int(11) NOT NULL, `carousel_images` varchar(120) NOT NULL, `created_at` date DEFAULT NULL, `updated_at` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `hotel_images` -- INSERT INTO `hotel_images` (`id_image`, `id_hotel`, `carousel_images`, `created_at`, `updated_at`) VALUES (1, 1, 'hilton_carousel_1.jpg\r\n', NULL, NULL), (2, 1, 'hilton_carousel_2.jpg', NULL, NULL), (3, 1, 'hilton_carousel_3.jpg', NULL, NULL), (5, 2, 'the_apurva_carousel_1.jpg', '2021-06-10', '2021-06-10'), (6, 2, 'the_apurva_carousel_2.jpg', '2021-06-10', '2021-06-10'), (7, 2, 'the_apurva_carousel_3.jpg', '2021-06-10', '2021-06-10'), (8, 3, 'the_trans_resort_1.jpg', '2021-06-10', '2021-06-10'), (9, 3, 'the_trans_resort_2.jpg', '2021-06-10', '2021-06-10'), (10, 3, 'the_trans_resort_3.jpg', '2021-06-10', '2021-06-10'), (11, 4, 'lv8_resort_bali_1.jpg', '2021-06-10', '2021-06-10'), (12, 4, 'lv8_resort_bali_2.jpg', '2021-06-10', '2021-06-10'), (13, 4, 'lv8_resort_bali_3.jpg', '2021-06-10', '2021-06-10'), (14, 7, 'aksari_resort_ubud_carousel_1.jpg', '2021-06-10', '2021-06-10'), (15, 7, 'aksari_resort_ubud_carousel_2.jpg', '2021-06-10', '2021-06-10'), (16, 7, 'aksari_resort_ubud_carousel_3.jpg', '2021-06-10', '2021-06-10'), (17, 9, 'hotel_indonesia_carousel_1.jpg', '2021-06-10', '2021-06-10'), (18, 9, 'hotel_indonesia_carousel_2.jpg', '2021-06-10', '2021-06-10'), (19, 9, 'hotel_indonesia_carousel_3.jpg', '2021-06-10', '2021-06-10'), (20, 13, 'aston_priority_carousel_1.jpg', '2021-06-10', '2021-06-10'), (21, 13, 'aston_priority_carousel_2.jpg', '2021-06-10', '2021-06-10'), (22, 14, 'grand_hyatt_jakarta_carousel_1.jpg', '2021-06-10', '2021-06-10'), (23, 14, 'grand_hyatt_jakarta_carousel_2.jpg', '2021-06-10', '2021-06-10'), (24, 14, 'grand_hyatt_jakarta_carousel_3.jpg', '2021-06-10', '2021-06-10'), (25, 15, 'harris_fx_carousel_1.jpg', '2021-06-10', '2021-06-10'), (26, 15, 'harris_fx_carousel_2.jpg', '2021-06-10', '2021-06-10'), (27, 16, 'tentrem_yogya_carousel_1.jpg', '2021-06-10', '2021-06-10'), (28, 16, 'tentrem_yogya_carousel_2.jpg', '2021-06-10', '2021-06-10'), (29, 16, 'tentrem_yogya_carousel_3.jpg', '2021-06-10', '2021-06-10'), (30, 17, 'hyatt_yogyakarta_carousel_1.jpg', '2021-06-10', '2021-06-10'), (31, 14, 'hyatt_yogyakarta_carousel_2.jpg', '2021-06-10', '2021-06-10'), (32, 18, 'grand_inna_carousel_1.jpg', '2021-06-10', '2021-06-10'), (33, 18, 'grand_inna_carousel_2.jpg', '2021-06-10', '2021-06-10'), (34, 19, 'westlake_carousel_1.jpg', '2021-06-10', '2021-06-10'), (35, 19, 'westlake_carousel_2.jpg', '2021-06-10', '2021-06-10'), (36, 20, 'neo_yogya_carousel_1.jpg', '2021-06-10', '2021-06-10'), (37, 20, 'neo_yogya_carousel_2.jpg', '2021-06-10', '2021-06-10'), (38, 21, 'golden_tulip_pontianak_carousel_1.jpg', '2021-06-10', '2021-06-10'), (39, 21, 'golden_tulip_pontianak_carousel_2.jpg', '2021-06-10', '2021-06-10'), (40, 22, 'ibis_pontianak_carousel_1.jpg', '2021-06-10', '2021-06-10'), (41, 22, 'ibis_pontianak_carousel_2.jpg', '2021-06-10', '2021-06-10'), (43, 23, 'harris_pontianak_carousel_1.jpg', '2021-06-10', '2021-06-10'), (44, 23, 'harris_pontianak_carousel_2.jpg', '2021-06-10', '2021-06-10'), (45, 25, 'star_pontianak_carousel_1.jpg', '2021-06-10', '2021-06-10'), (46, 25, 'star_pontianak_carousel_2.jpg', '2021-06-10', '2021-06-10'), (47, 26, 'el_royale_carousel_1.jpg', '2021-06-10', '2021-06-10'), (48, 26, 'el_royale_carousel_2.jpg', '2021-06-10', '2021-06-10'), (49, 27, 'trans_bandung_carousel_1.jpg', '2021-06-10', '2021-06-10'), (50, 27, 'trans_bandung_carousel_2.jpg', '2021-06-10', '2021-06-10'), (51, 28, 'tjokro_carousel_1.jpg', '2021-06-10', '2021-06-10'), (52, 28, 'tjokro_carousel_2.jpg', '2021-06-10', '2021-06-10'), (53, 29, 'intercontinental_carousel-1.jpg', '2021-06-10', '2021-06-10'), (54, 29, 'intercontinental_carousel-2.jpg', '2021-06-10', '2021-06-10'), (55, 30, 'tebu_carousel_1.jpg', '2021-06-10', '2021-06-10'), (56, 30, 'tebu_carousel_2.jpg', '2021-06-10', '2021-06-10'), (57, 11, 'sari_pasific_carousel_1.jpg', NULL, NULL), (58, 11, 'sari_pasific_carousel_2.jpg', NULL, NULL), (59, 12, 'merylnn_park_carousel_1.jpg', NULL, NULL), (60, 12, 'merylnn_park_carousel_2.jpg', NULL, NULL), (61, 17, 'hyatt_yogyakarta_carousel_2.jpg', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `location` -- CREATE TABLE `location` ( `id_location` int(11) NOT NULL, `location` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `location` -- INSERT INTO `location` (`id_location`, `location`, `created_at`, `updated_at`) VALUES (1, 'Bali', '2021-06-02 04:58:32', '2021-06-02 04:58:32'), (2, 'Jakarta', '2021-06-02 04:58:32', '2021-06-02 04:58:32'), (3, 'Yogyakarta', '2021-06-02 04:58:32', '2021-06-02 04:58:32'), (4, 'Pontianak', '2021-06-03 01:22:03', '2021-06-03 01:22:03'), (7, 'Bandung', '2021-06-03 01:28:16', '2021-06-03 01:28:16'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_06_02_115323_create_location_table', 1), (5, '2021_06_03_085728_create_hotels_table', 1), (6, '2021_06_08_105425_create_bookings_table', 2), (8, '2014_10_12_000000_create_users_table', 3); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id_user` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phoneNumber` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `birthDate` date NOT NULL, `images` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id_user`, `name`, `email`, `password`, `phoneNumber`, `birthDate`, `images`, `role`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', <PASSWORD>', '085794933113', '2021-06-08', 'hilton_room.jpg', 'user', '2021-06-10 03:59:49', '2021-06-10 03:59:49'), (2, 'admin', '<EMAIL>', <PASSWORD>', '085794933113', '2001-07-11', 'shiba_vacation.jpg', 'admin', '2021-06-10 09:13:07', '2021-06-10 09:13:07'); -- -- Indexes for dumped tables -- -- -- Indexes for table `bookings` -- ALTER TABLE `bookings` ADD PRIMARY KEY (`id_booking`), ADD KEY `id_hotel` (`id_hotel`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `hotels` -- ALTER TABLE `hotels` ADD PRIMARY KEY (`id_hotel`), ADD KEY `hotels_id_location_foreign` (`id_location`); -- -- Indexes for table `hotel_images` -- ALTER TABLE `hotel_images` ADD PRIMARY KEY (`id_image`), ADD KEY `id_hotel` (`id_hotel`); -- -- Indexes for table `location` -- ALTER TABLE `location` ADD PRIMARY KEY (`id_location`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id_user`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `bookings` -- ALTER TABLE `bookings` MODIFY `id_booking` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `hotels` -- ALTER TABLE `hotels` MODIFY `id_hotel` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT for table `hotel_images` -- ALTER TABLE `hotel_images` MODIFY `id_image` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62; -- -- AUTO_INCREMENT for table `location` -- ALTER TABLE `location` MODIFY `id_location` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Constraints for dumped tables -- -- -- Constraints for table `bookings` -- ALTER TABLE `bookings` ADD CONSTRAINT `id_hotel` FOREIGN KEY (`id_hotel`) REFERENCES `hotels` (`id_hotel`); -- -- Constraints for table `hotels` -- ALTER TABLE `hotels` ADD CONSTRAINT `hotels_id_location_foreign` FOREIGN KEY (`id_location`) REFERENCES `location` (`id_location`); -- -- Constraints for table `hotel_images` -- ALTER TABLE `hotel_images` ADD CONSTRAINT `hotel_images_ibfk_1` FOREIGN KEY (`id_hotel`) REFERENCES `hotels` (`id_hotel`); 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>juanhebert/coffeechain-pilot<gh_stars>0 select p.* from product p join transformation_output t_out on t_out.product = p.id join transformation t on t.id = t_out.transformation left join sale_input si on si.product = p.id left join transformation_input ti on ti.product = p.id where si.sale is null and ti.transformation is null and t.emitter = $1 and p.type != 'WEIGHT_LOSS' union select p.* from product p join sale_input si on si.product = p.id join sale s on s.id = si.sale and s.buyer = $1 join sale_confirmation sc on sc.sale = s.id left join (select si_sub.product, s_sub.timestamp from sale s_sub join sale_input si_sub on s_sub.id = si_sub.sale) s_out on s_out.product = p.id and s_out.timestamp > s.timestamp left join transformation_input ti on ti.product = p.id where s_out.timestamp is null and ti.transformation is null and p.type != 'WEIGHT_LOSS';
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 28, 2019 at 07:12 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.31 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: `IOT` -- DELIMITER $$ -- -- Procedures -- CREATE DEFINER=`root`@`localhost` PROCEDURE `LOGOUT` (IN `UNAME` VARCHAR(30)) UPDATE LOGS SET LOGOUT=NOW() WHERE EMAIL=UNAME AND LOGOUT IS NULL$$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `ADMIN` -- CREATE TABLE `ADMIN` ( `EMAIL` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `IDNUM` char(7) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `ADMIN` -- INSERT INTO `ADMIN` (`EMAIL`, `IDNUM`) VALUES ('<EMAIL>', 'ID00001'); -- -- Triggers `ADMIN` -- DELIMITER $$ CREATE TRIGGER `ONLOGIN` BEFORE INSERT ON `ADMIN` FOR EACH ROW UPDATE LOGS SET LOGOUT=NOW() WHERE NEW.EMAIL=EMAIL AND LOGOUT IS NULL $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `CUSTOMER` -- CREATE TABLE `CUSTOMER` ( `EMAIL` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `UNAME` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `PHONE` char(10) COLLATE utf8_unicode_ci DEFAULT NULL, `PASSWORD` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `channelid` varchar(8) COLLATE utf8_unicode_ci NOT NULL, `write_api` char(16) COLLATE utf8_unicode_ci NOT NULL, `read_api` char(16) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `CUSTOMER` -- INSERT INTO `CUSTOMER` (`EMAIL`, `UNAME`, `PHONE`, `PASSWORD`, `channelid`, `write_api`, `read_api`) VALUES ('<EMAIL>', 'DJ', '8667661936', '<PASSWORD>', '896220', 'HFHS9AA29REU397U', 'EB2X2P6FIRYSOAPS'); -- -- Triggers `CUSTOMER` -- DELIMITER $$ CREATE TRIGGER `ONUPDATE` BEFORE UPDATE ON `CUSTOMER` FOR EACH ROW INSERT INTO UPDATELOGS(EMAIL,UNAME,PHONE) select EMAIL,UNAME,PHONE from CUSTOMER WHERE EMAIL=NEW.EMAIL $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `FIELDS` -- CREATE TABLE `FIELDS` ( `Email` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `Field1` varchar(30) NOT NULL, `Field2` varchar(30) NOT NULL, `Field3` varchar(30) NOT NULL, `Field4` varchar(30) NOT NULL, `Field5` varchar(30) NOT NULL, `Field6` varchar(30) NOT NULL, `Field7` varchar(30) NOT NULL, `Field8` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `FIELDS` -- INSERT INTO `FIELDS` (`Email`, `Field1`, `Field2`, `Field3`, `Field4`, `Field5`, `Field6`, `Field7`, `Field8`) VALUES ('<EMAIL>', 'Temperature', 'Humidity', 'Light', '', '', '', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `ID` -- CREATE TABLE `ID` ( `IDNUM` char(7) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `ID` -- INSERT INTO `ID` (`IDNUM`) VALUES ('ID00001'); -- -------------------------------------------------------- -- -- Table structure for table `LOGS` -- CREATE TABLE `LOGS` ( `EMAIL` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `LOGIN` datetime DEFAULT current_timestamp(), `LOGOUT` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `LOGS` -- INSERT INTO `LOGS` (`EMAIL`, `LOGIN`, `LOGOUT`) VALUES ('<EMAIL>', '2019-10-28 11:19:03', '2019-10-28 11:19:22'), ('<EMAIL>', '2019-10-28 11:20:27', '2019-10-28 11:28:51'), ('<EMAIL>', '2019-10-28 11:30:56', '2019-10-28 11:33:06'); -- -------------------------------------------------------- -- -- Table structure for table `OUTCHECK` -- CREATE TABLE `OUTCHECK` ( `Email` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `F1` tinyint(1) NOT NULL DEFAULT 0, `F2` tinyint(1) NOT NULL DEFAULT 0, `F3` tinyint(1) NOT NULL DEFAULT 0, `F4` tinyint(1) NOT NULL DEFAULT 0, `F5` tinyint(1) NOT NULL DEFAULT 0, `F6` tinyint(1) NOT NULL DEFAULT 0, `F7` tinyint(1) NOT NULL DEFAULT 0, `F8` tinyint(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `OUTCHECK` -- INSERT INTO `OUTCHECK` (`Email`, `F1`, `F2`, `F3`, `F4`, `F5`, `F6`, `F7`, `F8`) VALUES ('<EMAIL>', 0, 0, 1, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `UPDATELOGS` -- CREATE TABLE `UPDATELOGS` ( `EMAIL` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `UNAME` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `PHONE` char(10) COLLATE utf8_unicode_ci NOT NULL, `UPDATETIME` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `UPDATELOGS` -- INSERT INTO `UPDATELOGS` (`EMAIL`, `UNAME`, `PHONE`, `UPDATETIME`) VALUES ('<EMAIL>', 'DJ', '8667661936', '2019-10-28 11:18:38'); -- -- Indexes for dumped tables -- -- -- Indexes for table `ADMIN` -- ALTER TABLE `ADMIN` ADD PRIMARY KEY (`IDNUM`,`EMAIL`), ADD KEY `ADMIN_ibfk_1` (`EMAIL`); -- -- Indexes for table `CUSTOMER` -- ALTER TABLE `CUSTOMER` ADD PRIMARY KEY (`EMAIL`); -- -- Indexes for table `FIELDS` -- ALTER TABLE `FIELDS` ADD PRIMARY KEY (`Email`); -- -- Indexes for table `ID` -- ALTER TABLE `ID` ADD PRIMARY KEY (`IDNUM`); -- -- Indexes for table `LOGS` -- ALTER TABLE `LOGS` ADD KEY `LOGS_ibfk_1` (`EMAIL`); -- -- Indexes for table `OUTCHECK` -- ALTER TABLE `OUTCHECK` ADD PRIMARY KEY (`Email`); -- -- Indexes for table `UPDATELOGS` -- ALTER TABLE `UPDATELOGS` ADD KEY `EMAIL` (`EMAIL`); -- -- Constraints for dumped tables -- -- -- Constraints for table `ADMIN` -- ALTER TABLE `ADMIN` ADD CONSTRAINT `ADMIN_ibfk_1` FOREIGN KEY (`EMAIL`) REFERENCES `CUSTOMER` (`EMAIL`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `ADMIN_ibfk_2` FOREIGN KEY (`IDNUM`) REFERENCES `ID` (`IDNUM`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `FIELDS` -- ALTER TABLE `FIELDS` ADD CONSTRAINT `FIELDS_ibfk_1` FOREIGN KEY (`Email`) REFERENCES `CUSTOMER` (`EMAIL`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `LOGS` -- ALTER TABLE `LOGS` ADD CONSTRAINT `LOGS_ibfk_1` FOREIGN KEY (`EMAIL`) REFERENCES `CUSTOMER` (`EMAIL`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `OUTCHECK` -- ALTER TABLE `OUTCHECK` ADD CONSTRAINT `OUTCHECK_ibfk_1` FOREIGN KEY (`Email`) REFERENCES `CUSTOMER` (`EMAIL`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `UPDATELOGS` -- ALTER TABLE `UPDATELOGS` ADD CONSTRAINT `UPDATELOGS_ibfk_1` FOREIGN KEY (`EMAIL`) REFERENCES `CUSTOMER` (`EMAIL`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>nqduy1805/suncorp<filename>.phpmydamin/suncorp.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 06, 2021 lúc 09:41 AM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 7.3.28 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 */; -- -- Cơ sở dữ liệu: `suncorp` -- -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_about` -- CREATE TABLE `tbl_about` ( `id_about` int(11) NOT NULL, `ten_about` varchar(255) NOT NULL, `noidung_about` text NOT NULL, `hinhanh_about` varchar(255) NOT NULL, `thoigian_about` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Đang đổ dữ liệu cho bảng `tbl_about` -- INSERT INTO `tbl_about` (`id_about`, `ten_about`, `noidung_about`, `hinhanh_about`, `thoigian_about`) VALUES (1, 'Our Humble Beginning', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!', 'assets/img/about/1.jpg', '2009-2011'), (2, 'An Agency is Born', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!v', 'assets/img/about/2.jpg', 'March 2011'), (3, 'Transition to Full Service', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!', 'assets/img/about/3.jpg', 'December 2015'), (4, 'Phase Two Expansion', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt ut voluptatum eius sapiente, totam reiciendis temporibus qui quibusdam, recusandae sit vero unde, sed, incidunt et ea quo dolore laudantium consectetur!', 'assets/img/about/4.jpg', 'July 2020'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_contact` -- CREATE TABLE `tbl_contact` ( `id_contact` int(11) NOT NULL, `yourname_contact` varchar(255) NOT NULL, `youremail_contact` varchar(255) NOT NULL, `yourphone_contact` int(11) NOT NULL, `yourmessage_contact` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Đang đổ dữ liệu cho bảng `tbl_contact` -- INSERT INTO `tbl_contact` (`id_contact`, `yourname_contact`, `youremail_contact`, `yourphone_contact`, `yourmessage_contact`) VALUES (1, '1', '<EMAIL>', 1, '1'), (2, '1', '<EMAIL>', 1, '1'), (3, '1', '<EMAIL>', 1, '1'), (4, '1', '<EMAIL>', 1, '1'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_portfolio` -- CREATE TABLE `tbl_portfolio` ( `id_portfolio` int(11) NOT NULL, `ten_portfolio` varchar(255) NOT NULL, `tenphu_portfolio` varchar(255) NOT NULL, `hinhanh_portfolio` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Đang đổ dữ liệu cho bảng `tbl_portfolio` -- INSERT INTO `tbl_portfolio` (`id_portfolio`, `ten_portfolio`, `tenphu_portfolio`, `hinhanh_portfolio`) VALUES (1, 'Threads', 'Illustration', 'assets/img/portfolio/1.jpg'), (2, 'Explore', 'Graphic Design', 'assets/img/portfolio/2.jpg'), (3, 'Finish ', 'Identity ', 'assets/img/portfolio/3.jpg'), (4, 'Lines', 'Branding', 'assets/img/portfolio/4.jpg'), (5, 'Southwest ', 'Website Design ', 'assets/img/portfolio/5.jpg'), (6, 'Window', 'Photography', 'assets/img/portfolio/6.jpg'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_services` -- CREATE TABLE `tbl_services` ( `id_services` int(11) NOT NULL, `hinhanh_services` varchar(255) NOT NULL, `ten_services` varchar(255) NOT NULL, `noidung_services` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Đang đổ dữ liệu cho bảng `tbl_services` -- INSERT INTO `tbl_services` (`id_services`, `hinhanh_services`, `ten_services`, `noidung_services`) VALUES (1, 'fa-shopping-cart', 'E-Commerce', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima maxime quam architecto quo inventore harum ex magni, dicta impedit.'), (2, 'fa-laptop', 'Responsive Design', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima maxime quam architecto quo inventore harum ex magni, dicta impedit.'), (3, 'fa-lock', 'Web Security', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima maxime quam architecto quo inventore harum ex magni, dicta impedit.'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_team` -- CREATE TABLE `tbl_team` ( `id_team` int(11) NOT NULL, `ten_team` varchar(255) NOT NULL, `vitri_team` varchar(255) NOT NULL, `hinhanh_team` varchar(255) NOT NULL, `tw_team` varchar(255) NOT NULL, `fb_team` varchar(255) NOT NULL, `in_team` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Đang đổ dữ liệu cho bảng `tbl_team` -- INSERT INTO `tbl_team` (`id_team`, `ten_team`, `vitri_team`, `hinhanh_team`, `tw_team`, `fb_team`, `in_team`) VALUES (1, '<NAME>', 'Lead Designer', 'assets/img/team/1.jpg', '#!', '#!', '#!'), (2, '<NAME>', 'Lead Marketer', 'assets/img/team/2.jpg', '#!', '#!', '#!'), (3, '<NAME>', 'Lead Developer', 'assets/img/team/3.jpg', '#!', '#!', '#!'); -- -- Chỉ mục cho các bảng đã đổ -- -- -- Chỉ mục cho bảng `tbl_about` -- ALTER TABLE `tbl_about` ADD PRIMARY KEY (`id_about`); -- -- Chỉ mục cho bảng `tbl_contact` -- ALTER TABLE `tbl_contact` ADD PRIMARY KEY (`id_contact`); -- -- Chỉ mục cho bảng `tbl_portfolio` -- ALTER TABLE `tbl_portfolio` ADD PRIMARY KEY (`id_portfolio`); -- -- Chỉ mục cho bảng `tbl_services` -- ALTER TABLE `tbl_services` ADD PRIMARY KEY (`id_services`); -- -- Chỉ mục cho bảng `tbl_team` -- ALTER TABLE `tbl_team` ADD PRIMARY KEY (`id_team`); -- -- AUTO_INCREMENT cho các bảng đã đổ -- -- -- AUTO_INCREMENT cho bảng `tbl_about` -- ALTER TABLE `tbl_about` MODIFY `id_about` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT cho bảng `tbl_contact` -- ALTER TABLE `tbl_contact` MODIFY `id_contact` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT cho bảng `tbl_portfolio` -- ALTER TABLE `tbl_portfolio` MODIFY `id_portfolio` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT cho bảng `tbl_services` -- ALTER TABLE `tbl_services` MODIFY `id_services` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT cho bảng `tbl_team` -- ALTER TABLE `tbl_team` MODIFY `id_team` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE IF NOT EXISTS `country_subdivisions` ( `country` CHAR(3) NOT NULL, `alpha2` char(2) NOT NULL, `name` varchar(25) NOT NULL, `type` enum('State','District','Outlying Territory') NOT NULL, `can_receive_mail` tinyint(1) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `country_subdivisions` (`country`, `alpha2`, `name`, `type`, `can_receive_mail`) VALUES ('USA','AL', 'Alabama', 'State', 1), ('USA','AK', 'Alaska', 'State', 1), ('USA','AZ', 'Arizona', 'State', 1), ('USA','AR', 'Arkansas', 'State', 1), ('USA','CA', 'California', 'State', 1), ('USA','CO', 'Colorado', 'State', 1), ('USA','CT', 'Connecticut', 'State', 1), ('USA','DE', 'Delaware', 'State', 1), ('USA','DC', 'District of Columbia', 'District', 1), ('USA','FL', 'Florida', 'State', 1), ('USA','GA', 'Georgia', 'State', 1), ('USA','HI', 'Hawaii', 'State', 1), ('USA','ID', 'Idaho', 'State', 1), ('USA','IL', 'Illinois', 'State', 1), ('USA','IN', 'Indiana', 'State', 1), ('USA','IA', 'Iowa', 'State', 1), ('USA','KS', 'Kansas', 'State', 1), ('USA','KY', 'Kentucky', 'State', 1), ('USA','LA', 'Louisiana', 'State', 1), ('USA','ME', 'Maine', 'State', 1), ('USA','MD', 'Maryland', 'State', 1), ('USA','MA', 'Massachusetts', 'State', 1), ('USA','MI', 'Michigan', 'State', 1), ('USA','MN', 'Minnesota', 'State', 1), ('USA','MS', 'Mississippi', 'State', 1), ('USA','MO', 'Missouri', 'State', 1), ('USA','MT', 'Montana', 'State', 1), ('USA','NE', 'Nebraska', 'State', 1), ('USA','NV', 'Nevada', 'State', 1), ('USA','NH', 'New Hampshire', 'State', 1), ('USA','NJ', 'New Jersey', 'State', 1), ('USA','NM', 'New Mexico', 'State', 1), ('USA','NY', 'New York', 'State', 1), ('USA','NC', 'North Carolina', 'State', 1), ('USA','ND', 'North Dakota', 'State', 1), ('USA','OH', 'Ohio', 'State', 1), ('USA','OK', 'Oklahoma', 'State', 1), ('USA','OR', 'Oregon', 'State', 1), ('USA','PA', 'Pennsylvania', 'State', 1), ('USA','PR', 'Puerto Rico', 'Outlying Territory', 1), ('USA','RI', 'Rhode Island', 'State', 1), ('USA','SC', 'South Carolina', 'State', 1), ('USA','SD', 'South Dakota', 'State', 1), ('USA','TN', 'Tennessee', 'State', 1), ('USA','TX', 'Texas', 'State', 1), ('USA','UT', 'Utah', 'State', 1), ('USA','VT', 'Vermont', 'State', 1), ('USA','VA', 'Virginia', 'State', 1), ('USA','WA', 'Washington', 'State', 1), ('USA','WV', 'West Virginia', 'State', 1), ('USA','WI', 'Wisconsin', 'State', 1), ('USA','WY', 'Wyoming', 'State', 1); ALTER TABLE `country_subdivisions` ADD UNIQUE KEY `country_state` (`country`,`alpha2`);
<gh_stars>0 INSERT INTO `country`(`id`, `name`, `position`) VALUES (1, 'Việt Nam', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (1, 1, 'Hà Nội', 'Thành Phố', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (2, 1, 'Hà Giang', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (3, 1, 'Cao Bằng', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (4, 1, 'Bắc Kạn', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (5, 1, 'Tuyên Quang', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (6, 1, 'Lào Cai', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (7, 1, 'Điện Biên', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (8, 1, 'Lai Châu', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (9, 1, 'Sơn La', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (10, 1, 'Yên Bái', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (11, 1, 'Hòa Bình', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (12, 1, 'Thái Nguyên', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (13, 1, 'Lạng Sơn', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (14, 1, 'Quảng Ninh', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (15, 1, 'Bắc Giang', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (16, 1, 'Phú Thọ', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (17, 1, 'Vĩnh Phúc', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (18, 1, 'Bắc Ninh', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (19, 1, 'Hải Dương', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (20, 1, 'Hải Phòng', 'Thành Phố', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (21, 1, 'Hưng Yên', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (22, 1, 'Thái Bình', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (23, 1, 'Hà Nam', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (24, 1, 'Nam Định', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (25, 1, 'Ninh Bình', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (26, 1, 'Thanh Hóa', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (27, 1, 'Nghệ An', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (28, 1, 'Hà Tĩnh', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (29, 1, 'Quảng Bình', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (30, 1, 'Quảng Trị', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (31, 1, 'Thừa Thiên Huế', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (32, 1, 'Đà Nẵng', 'Thành Phố', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (33, 1, 'Quảng Nam', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (34, 1, 'Quảng Ngãi', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (35, 1, 'Bình Định', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (36, 1, 'Phú Yên', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (37, 1, 'Khánh Hòa', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (38, 1, 'Ninh Thuận', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (39, 1, 'Bình Thuận', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (40, 1, 'Kon Tum', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (41, 1, 'Gia Lai', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (42, 1, 'Đắk Lắk', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (43, 1, 'Đắk Nông', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (44, 1, 'Lâm Đồng', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (45, 1, 'Bình Phước', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (46, 1, 'Tây Ninh', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (47, 1, 'Bình Dương', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (48, 1, 'Đồng Nai', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (49, 1, 'Bà Rịa - Vũng Tàu', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (50, 1, 'Hồ Chí Minh', 'Thành Phố', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (51, 1, 'Long An', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (52, 1, 'Tiền Giang', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (53, 1, 'Bến Tre', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (54, 1, 'Trà Vinh', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (55, 1, 'Vĩnh Long', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (56, 1, '<NAME>', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (57, 1, '<NAME>', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (58, 1, '<NAME>', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (59, 1, 'Cần Thơ', 'Thành Phố', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (60, 1, '<NAME>', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (61, 1, 'Sóc Trăng', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (62, 1, 'Bạc Liêu', 'Tỉnh', 0); INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (63, 1, 'Cà Mau', 'Tỉnh', 0);
<filename>init/02-database-user-itm.sql CREATE DATABASE IF NOT EXISTS `itm`; GRANT ALL PRIVILEGES ON itm.* TO 'itm'@'%' IDENTIFIED BY '<PASSWORD>';
SELECT DISTINCT CITY FROM STATION WHERE CITY RLIKE '.*[aeiouAEIOU]$'
USE burgers_db; INSERT INTO burgers (burger_name, devoured ) VALUES ('Cheeseburger', 0), ('Bacon Bacon Burger',0), ('Bill Gates no meat Burger',0), ('Biggest Baddest Burger', 0);
<filename>DBScripts/independientes211.sql -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: independientes -- ------------------------------------------------------ -- Server version 5.5.5-10.1.25-MariaDB /*!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 `colonia` -- DROP TABLE IF EXISTS `colonia`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `colonia` ( `id_colonia` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(45) DEFAULT NULL, `id_seccion` int(11) NOT NULL, PRIMARY KEY (`id_colonia`) ) ENGINE=InnoDB AUTO_INCREMENT=753 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `lote` -- DROP TABLE IF EXISTS `lote`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lote` ( `id_lote` int(11) NOT NULL AUTO_INCREMENT, `fecha` datetime DEFAULT NULL, `num_registros` int(11) DEFAULT NULL, `num_registros_insertados` int(11) DEFAULT NULL, `num_registros_errores` int(11) DEFAULT NULL, `responsable` varchar(45) NOT NULL, `path` varchar(100) DEFAULT NULL, `filename` varchar(100) DEFAULT NULL, PRIMARY KEY (`id_lote`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `registro` -- DROP TABLE IF EXISTS `registro`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `registro` ( `id_registro` int(11) NOT NULL AUTO_INCREMENT, `clave_elector` varchar(18) DEFAULT NULL, `ocr` varchar(13) DEFAULT NULL, `ap_paterno` varchar(60) DEFAULT NULL, `ap_materno` varchar(60) DEFAULT NULL, `nombre` varchar(100) DEFAULT NULL, `cel` varchar(45) DEFAULT NULL, `id_seccion` varchar(6) DEFAULT NULL, `folio` varchar(6) DEFAULT NULL, `errores` varchar(150) DEFAULT NULL, `id_lote` int(11) DEFAULT NULL, PRIMARY KEY (`id_registro`) ) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `registro_error` -- DROP TABLE IF EXISTS `registro_error`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `registro_error` ( `id_registro` int(11) NOT NULL AUTO_INCREMENT, `clave_elector` varchar(18) DEFAULT NULL, `ocr` varchar(13) DEFAULT NULL, `ap_paterno` varchar(60) DEFAULT NULL, `ap_materno` varchar(60) DEFAULT NULL, `nombre` varchar(100) DEFAULT NULL, `cel` varchar(45) DEFAULT NULL, `id_seccion` varchar(6) DEFAULT NULL, `folio` varchar(6) DEFAULT NULL, `errores` varchar(150) DEFAULT NULL, `id_lote` int(11) DEFAULT NULL, PRIMARY KEY (`id_registro`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `seccion` -- DROP TABLE IF EXISTS `seccion`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `seccion` ( `id_seccion` int(11) NOT NULL AUTO_INCREMENT, `clave` int(11) NOT NULL, `num_electores` int(11) DEFAULT NULL, PRIMARY KEY (`id_seccion`) ) ENGINE=InnoDB AUTO_INCREMENT=2047 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2017-11-02 11:55:14
SELECT colString, colInt FROM main.testTable LIMIT 4 OFFSET 3
<gh_stars>1-10 select p from Product p where p.deleted = false select uid, name from events select u from User u where u.username = :username and u.password = :password select u from User u where u.username=:username and u.password=:password").setParameter("username", credentials.getUsername()).setParameter("password create table EVENTS ( uid int, name VARCHAR, start_Date date, duration int) SELECT c FROM CodeFragment c WHERE c.hash=null ORDER BY datetime DESC SELECT c FROM CodeFragment c WHERE hash = :hash select u from User u SELECT c FROM code c WHERE hash=null ORDER BY datetime DESC
<reponame>neelnijhum/Bibaho.com<filename>Database/db_bibaho_com.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 27, 2020 at 07:41 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 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: `db_bibaho_com` -- -- -------------------------------------------------------- -- -- Table structure for table `table_request` -- CREATE TABLE `table_request` ( `Request_id` int(10) NOT NULL, `Sender_id` int(10) NOT NULL, `Receiver_id` int(10) NOT NULL, `Accept` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `table_request` -- INSERT INTO `table_request` (`Request_id`, `Sender_id`, `Receiver_id`, `Accept`) VALUES (3, 7, 3, 1), (5, 7, 8, 1), (9, 7, 3, 0), (10, 7, 7, 1), (12, 9, 3, 0), (13, 9, 4, 0), (14, 9, 5, 1), (15, 11, 9, 1), (16, 9, 3, 0), (18, 11, 8, 1), (19, 12, 8, 1), (20, 8, 13, 1), (21, 8, 14, 1), (22, 13, 5, 0), (25, 13, 10, 0), (26, 8, 12, 1); -- -------------------------------------------------------- -- -- Table structure for table `tbl_gallery` -- CREATE TABLE `tbl_gallery` ( `g_id` int(10) NOT NULL, `Picture` varchar(20) NOT NULL, `user_id` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_gallery` -- INSERT INTO `tbl_gallery` (`g_id`, `Picture`, `user_id`) VALUES (1, 'Pictures51.jpg', 454), (2, 'Pictures53.jpg', 3), (3, 'Pictures31.jpg', 3), (4, 'Pictures42.jpg', 12), (7, 'p1.jpg', 9), (8, 'p51.jpg', 9), (9, 'p6.jpg', 9), (10, 'p7.jpg', 9), (11, 'p19.jpg', 9), (12, 'p81.jpg', 10), (13, 'p10.jpg', 10), (14, 'p12.jpg', 10), (15, 'p121.jpg', 10), (16, 'p11.jpg', 8), (17, 'p9.jpg', 8), (18, 'p21.jpg', 8), (20, 'p4.jpg', 11); -- -------------------------------------------------------- -- -- Table structure for table `tbl_place` -- CREATE TABLE `tbl_place` ( `Place_id` int(10) NOT NULL, `Place_name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_place` -- INSERT INTO `tbl_place` (`Place_id`, `Place_name`) VALUES (4, 'Dhaka'), (5, 'Mymensing'), (6, 'Rajshahi'), (7, 'Moulvibazar'), (8, 'Tangail'), (9, 'Khulna'), (10, 'Chittagong'), (11, 'Barisal'), (12, 'Faridpur'), (13, 'Dinajpur'), (14, 'Sunamgonj'), (15, 'Sreemongol'), (16, 'Coxsbazar'), (17, 'Sylhet'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_user` -- CREATE TABLE `tbl_user` ( `ID` int(10) NOT NULL, `Name` text NOT NULL, `Email` varchar(255) NOT NULL, `Password` varchar(10) NOT NULL, `Address` varchar(20) NOT NULL, `Date_of_Birth` int(10) NOT NULL, `Picture` varchar(20) NOT NULL, `Height` int(10) NOT NULL, `NID` int(10) NOT NULL, `Gender` text NOT NULL, `Status` varchar(10) NOT NULL, `Type` text NOT NULL, `Religion` text NOT NULL, `Place_id` varchar(20) NOT NULL, `Contact_Number` int(10) NOT NULL, `Earning_Status` text NOT NULL, `Educational_Qualification` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_user` -- INSERT INTO `tbl_user` (`ID`, `Name`, `Email`, `Password`, `Address`, `Date_of_Birth`, `Picture`, `Height`, `NID`, `Gender`, `Status`, `Type`, `Religion`, `Place_id`, `Contact_Number`, `Earning_Status`, `Educational_Qualification`) VALUES (4, 'Neel', '<EMAIL>', '123', 'Kulaura', 12, 'Pictures1.jpg', 5, 78965412, 'Male', '0', 'Admin', 'Hindu', '1', 1304111626, 'Engineer', 'MSC in Software'), (5, '<NAME>', '<EMAIL>', '121', 'Sylhet', 1997, 'Pictures4.jpg', 6, 145795466, 'Male', 'Devorced', 'User', 'Hindu', '2', 18457148, 'Doctor', 'BA'), (8, '<NAME>', '<EMAIL>', '123456', 'Sylhet', 12, 'p2.jpg', 5, 2147483647, 'Female', 'Devorced', 'User', 'Muslim', '1', 1712589647, 'House Wife', 'HSC'), (9, '<NAME>', '<EMAIL>', '123', 'Mymensing,Bangladesh', 12, 'p5.jpg', 6, 2147483647, 'Female', 'Unmarried', 'User', 'Hindu', '2', 1658945724, 'Private Service', 'MBA in Accounting'), (10, '<NAME>', '<EMAIL>', '123', 'Dinajpur', 1997, 'p8.jpg', 5, 2147483647, 'Female', 'Unmarried', 'User', 'Muslim', '9', 1956874521, 'Job', 'BA'), (11, '<NAME>', '<EMAIL>', '123', '', 0, '', 0, 0, '', '', 'User', '', '', 0, '', ''), (12, '<NAME>', '<EMAIL>', '123', 'Dhaka', 12, 'p17.jpg', 6, 2147483647, 'Male', 'Unmarried', 'User', 'Muslim', '2', 1712581423, 'Business', 'B com'), (13, '<NAME>', '<EMAIL>', '123', '', 0, '', 0, 0, '', '', 'User', '', '', 0, '', ''), (14, '<NAME>', '<EMAIL>', '123', '', 0, '', 0, 0, '', '', 'User', '', '', 0, '', ''); -- -- Indexes for dumped tables -- -- -- Indexes for table `table_request` -- ALTER TABLE `table_request` ADD PRIMARY KEY (`Request_id`); -- -- Indexes for table `tbl_gallery` -- ALTER TABLE `tbl_gallery` ADD PRIMARY KEY (`g_id`); -- -- Indexes for table `tbl_place` -- ALTER TABLE `tbl_place` ADD PRIMARY KEY (`Place_id`); -- -- Indexes for table `tbl_user` -- ALTER TABLE `tbl_user` ADD PRIMARY KEY (`ID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `table_request` -- ALTER TABLE `table_request` MODIFY `Request_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `tbl_gallery` -- ALTER TABLE `tbl_gallery` MODIFY `g_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `tbl_place` -- ALTER TABLE `tbl_place` MODIFY `Place_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `tbl_user` -- ALTER TABLE `tbl_user` MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; 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>ruslantalpa/myproject<gh_stars>1-10 -- This file is a central place to define all the permissions for roles used by the application -- You should write the sql in such a way that executing this file (even multiple times) will reset -- all the roles to the correct permissions -- the auto inclusion of this file when generating migrations is configured in .env file -- with MIGRATION_INCLUDE_END variable -- Resetting all privileges for application roles (start from a clean slate) -- we use a convenience inline function here since PostgreSQL does not have a specific statement -- you only need to list the roles and schemas that need to be reset do $$ declare r text; s text; -- list roles which need resetting here role_list text[] = '{webuser, anonymous, api, proxy}'; -- list schemas for which to reset privileges schema_list text[] = '{api, data, request, response, settings}'; begin foreach r in array role_list loop foreach s in array schema_list loop execute format('revoke all privileges on all tables in schema %I from %I', s, r); execute format('revoke all privileges on all sequences in schema %I from %I', s, r); execute format('revoke all privileges on all functions in schema %I from %I', s, r); execute format('revoke all privileges on schema %I from %I', s, r); end loop; end loop; end$$; -- set the correct owner for all the api views alter view api.todos -- list all views here -- , api.another_view owner to api; -- Loading roles privilege -- specify which application roles can access this api (you'll probably list them all) grant usage on schema request, response to public; grant usage on schema api to anonymous, webuser, proxy; -- set privileges to all the auth flow functions grant execute on function api.login(text,text) to anonymous; grant execute on function api.logout() to anonymous; grant execute on function api.signup(text,text,text) to anonymous; grant execute on function api.me() to webuser; grant execute on function api.login(text,text) to webuser; grant execute on function api.logout() to webuser; grant execute on function api.refresh_token() to webuser; grant execute on function api.on_oauth_login(text,json) to proxy; -- define the who can access todo model data -- define the RLS policy controlling what rows are visible to a particular application user drop policy if exists todo_access_policy on data.todo; create policy todo_access_policy on data.todo to api using ( -- the authenticated users can see all his todo items -- notice how the rule changes based on the current user_id -- which is specific to each individual request (request.user_role() = 'webuser' and request.user_id() = owner_id) or -- everyone can see public todo (private = false) ) with check ( -- authenticated users can only update/delete their todos (request.user_role() = 'webuser' and request.user_id() = owner_id) ); -- give access to the view owner to this table grant select, insert, update, delete on data.todo to api; grant usage on data.todo_id_seq to webuser; -- While grants to the view owner and the RLS policy on the underlying table -- takes care of what rows the view can see, we still need to define what -- are the rights of our application user in regard to this api view. -- authenticated users can request/change all the columns for this view grant select, insert, update, delete on api.todos to webuser; -- anonymous users can only request specific columns from this view grant select (id, todo) on api.todos to anonymous; ------------------------------------------------------------------------------- -- allow the api to access underlying table, -- this is not the same as giving users access though -- notice how for insert/update we only allow the api to supply the body,todo_id -- but not id,user_id columns grant select, insert (body, todo_id), update (body, todo_id), delete on data.comment to api; -- set the policy that defines what rows from the table are accessible to the api -- this policy can also take into account the specific application user -- that is trying to access the data ( notice the use of request.user_id() ) drop policy if exists comment_access_policy on data.comment; create policy comment_access_policy on data.comment to api using ( -- allow only authenticated users to see the comments in the system request.user_role() = 'webuser' ) with check ( -- authenticated users can only update/delete their comment request.user_role() = 'webuser' and request.user_id() = user_id ); -- set the owner of the comments view (the endpoint) to the correct user -- this is needed so that the above policy is applied alter view api.comments owner to api; -- authenticated users can see (select) everything -- but they can insert/update only specific columns grant select, insert (body, todo_id), update (body, todo_id), delete on api.comments to webuser; -- this line is needed so that authenticated users can "request" new ids -- from the sequence used by the id column grant usage on data.comment_id_seq to webuser; -- anonymous users do not have access to the comments at all, but if we wanted to enable that -- we could have a line similar to this one -- grant select (id, body, todo_id) on api.comments to anonymous;
-- file:identity.sql ln:115 expect:true SELECT * FROM itest4
<filename>DATABASE/all_sht_ddl_mysql.sql CREATE TABLE IDS ( TABLE_NAME varchar(20) NOT NULL, NEXT_ID decimal(30,0) NOT NULL DEFAULT '0', PRIMARY KEY (TABLE_NAME) ) ; CREATE TABLE LETTCCMMNCLCODE ( CL_CODE char(3) NOT NULL, CL_CODE_NM varchar(60) DEFAULT NULL, CL_CODE_DC varchar(200) DEFAULT NULL, USE_AT char(1) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (CL_CODE) ) ; CREATE TABLE LETTCCMMNCODE ( CODE_ID varchar(6) NOT NULL, CODE_ID_NM varchar(60) DEFAULT NULL, CODE_ID_DC varchar(200) DEFAULT NULL, USE_AT char(1) DEFAULT NULL, CL_CODE char(3) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (CODE_ID), KEY R_179 (CL_CODE), CONSTRAINT LETTCCMMNCODE_ibfk_1 FOREIGN KEY (CL_CODE) REFERENCES LETTCCMMNCLCODE (CL_CODE) ) ; CREATE TABLE LETTCCMMNDETAILCODE ( CODE_ID varchar(6) NOT NULL, CODE varchar(15) NOT NULL, CODE_NM varchar(60) DEFAULT NULL, CODE_DC varchar(200) DEFAULT NULL, USE_AT char(1) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (CODE_ID,CODE), CONSTRAINT LETTCCMMNDETAILCODE_ibfk_1 FOREIGN KEY (CODE_ID) REFERENCES LETTCCMMNCODE (CODE_ID) ) ; CREATE TABLE LETTNORGNZTINFO ( ORGNZT_ID char(20) NOT NULL DEFAULT '', ORGNZT_NM varchar(20) NOT NULL, ORGNZT_DC varchar(100) DEFAULT NULL, PRIMARY KEY (ORGNZT_ID) ) ; CREATE TABLE LETTNAUTHORGROUPINFO ( GROUP_ID char(20) NOT NULL DEFAULT '', GROUP_NM varchar(60) NOT NULL, GROUP_CREAT_DE char(20) NOT NULL, GROUP_DC varchar(100) DEFAULT NULL, PRIMARY KEY (GROUP_ID) ) ; CREATE TABLE LETTNEMPLYRINFO ( EMPLYR_ID varchar(20) NOT NULL, ORGNZT_ID char(20) DEFAULT NULL, USER_NM varchar(60) NOT NULL, PASSWORD varchar(200) NOT NULL, EMPL_NO varchar(20) DEFAULT NULL, IHIDNUM varchar(200) DEFAULT NULL, SEXDSTN_CODE char(1) DEFAULT NULL, BRTHDY char(20) DEFAULT NULL, FXNUM varchar(20) DEFAULT NULL, HOUSE_ADRES varchar(100) DEFAULT NULL, PASSWORD_HINT varchar(100) NOT NULL, PASSWORD_CNSR varchar(100) NOT NULL, HOUSE_END_TELNO varchar(4) DEFAULT NULL, AREA_NO varchar(4) DEFAULT NULL, DETAIL_ADRES varchar(100) DEFAULT NULL, ZIP varchar(6) DEFAULT NULL, OFFM_TELNO varchar(20) DEFAULT NULL, MBTLNUM varchar(20) DEFAULT NULL, EMAIL_ADRES varchar(50) DEFAULT NULL, OFCPS_NM varchar(60) DEFAULT NULL, HOUSE_MIDDLE_TELNO varchar(4) DEFAULT NULL, GROUP_ID char(20) DEFAULT NULL, PSTINST_CODE char(8) DEFAULT NULL, EMPLYR_STTUS_CODE varchar(15) NOT NULL, ESNTL_ID char(20) NOT NULL, CRTFC_DN_VALUE varchar(20) DEFAULT NULL, SBSCRB_DE datetime DEFAULT NULL, PRIMARY KEY (EMPLYR_ID), KEY LETTNEMPLYRINFO_ibfk_2 (GROUP_ID), KEY LETTNEMPLYRINFO_ibfk_1 (ORGNZT_ID), CONSTRAINT LETTNEMPLYRINFO_ibfk_2 FOREIGN KEY (GROUP_ID) REFERENCES LETTNAUTHORGROUPINFO (GROUP_ID) ON DELETE CASCADE, CONSTRAINT LETTNEMPLYRINFO_ibfk_1 FOREIGN KEY (ORGNZT_ID) REFERENCES LETTNORGNZTINFO (ORGNZT_ID) ON DELETE CASCADE ) ; CREATE TABLE LETTNTMPLATINFO ( TMPLAT_ID char(20) NOT NULL DEFAULT '', TMPLAT_NM varchar(255) DEFAULT NULL, TMPLAT_COURS varchar(2000) DEFAULT NULL, USE_AT char(1) DEFAULT NULL, TMPLAT_SE_CODE char(6) DEFAULT NULL, FRST_REGISTER_ID varchar(20) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, PRIMARY KEY (TMPLAT_ID) ) ; CREATE TABLE LETTNBBSMASTER ( BBS_ID char(20) NOT NULL, BBS_NM varchar(255) NOT NULL, BBS_INTRCN varchar(2400) DEFAULT NULL, BBS_TY_CODE char(6) NOT NULL, BBS_ATTRB_CODE char(6) NOT NULL, REPLY_POSBL_AT char(1) DEFAULT NULL, FILE_ATCH_POSBL_AT char(1) NOT NULL, ATCH_POSBL_FILE_NUMBER decimal(2,0) NOT NULL, ATCH_POSBL_FILE_SIZE decimal(8,0) DEFAULT NULL, USE_AT char(1) NOT NULL, TMPLAT_ID char(20) DEFAULT NULL, FRST_REGISTER_ID varchar(20) NOT NULL, FRST_REGIST_PNTTM datetime NOT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, PRIMARY KEY (BBS_ID) ) ; CREATE TABLE LETTNBBSUSE ( BBS_ID char(20) NOT NULL, TRGET_ID char(20) NOT NULL DEFAULT '', USE_AT char(1) NOT NULL, REGIST_SE_CODE char(6) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) NOT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (BBS_ID,TRGET_ID), CONSTRAINT LETTNBBSUSE_ibfk_1 FOREIGN KEY (BBS_ID) REFERENCES LETTNBBSMASTER (BBS_ID) ) ; CREATE TABLE LETTNBBS ( NTT_ID decimal(20,0) NOT NULL, BBS_ID char(20) NOT NULL, NTT_NO decimal(20,0) DEFAULT NULL, NTT_SJ varchar(2000) DEFAULT NULL, NTT_CN mediumtext, ANSWER_AT char(1) DEFAULT NULL, PARNTSCTT_NO decimal(10,0) DEFAULT NULL, ANSWER_LC int(11) DEFAULT NULL, SORT_ORDR decimal(8,0) DEFAULT NULL, RDCNT decimal(10,0) DEFAULT NULL, USE_AT char(1) NOT NULL, NTCE_BGNDE char(20) DEFAULT NULL, NTCE_ENDDE char(20) DEFAULT NULL, NTCR_ID varchar(20) DEFAULT NULL, NTCR_NM varchar(20) DEFAULT NULL, PASSWORD varchar(200) DEFAULT NULL, ATCH_FILE_ID char(20) DEFAULT NULL, FRST_REGIST_PNTTM datetime NOT NULL, FRST_REGISTER_ID varchar(20) NOT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (NTT_ID,BBS_ID), KEY LETTNBBS_ibfk_1 (BBS_ID), CONSTRAINT LETTNBBS_ibfk_1 FOREIGN KEY (BBS_ID) REFERENCES LETTNBBSMASTER (BBS_ID) ) ; CREATE TABLE LETTNBBSMASTEROPTN ( BBS_ID char(20) NOT NULL DEFAULT '', ANSWER_AT char(1) NOT NULL DEFAULT '', STSFDG_AT char(1) NOT NULL DEFAULT '', FRST_REGIST_PNTTM datetime NOT NULL DEFAULT now(), LAST_UPDT_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) NOT NULL DEFAULT '', LAST_UPDUSR_ID varchar(20) DEFAULT NULL, PRIMARY KEY (BBS_ID) ) ; CREATE TABLE LETTNENTRPRSMBER ( ENTRPRS_MBER_ID varchar(20) NOT NULL DEFAULT '', ENTRPRS_SE_CODE char(15) DEFAULT NULL, BIZRNO varchar(10) DEFAULT NULL, JURIRNO varchar(13) DEFAULT NULL, CMPNY_NM varchar(60) NOT NULL, CXFC varchar(50) DEFAULT NULL, ZIP varchar(6) DEFAULT NULL, ADRES varchar(100) DEFAULT NULL, ENTRPRS_MIDDLE_TELNO varchar(4) DEFAULT NULL, FXNUM varchar(20) DEFAULT NULL, INDUTY_CODE char(15) DEFAULT NULL, APPLCNT_NM varchar(50) NOT NULL, APPLCNT_IHIDNUM varchar(200) DEFAULT NULL, SBSCRB_DE datetime DEFAULT NULL, ENTRPRS_MBER_STTUS varchar(15) DEFAULT NULL, ENTRPRS_MBER_PASSWORD varchar(200) NOT NULL, ENTRPRS_MBER_PASSWORD_HINT varchar(100) NOT NULL, ENTRPRS_MBER_PASSWORD_CNSR varchar(100) NOT NULL, GROUP_ID char(20) DEFAULT NULL, DETAIL_ADRES varchar(100) DEFAULT NULL, ENTRPRS_END_TELNO varchar(4) DEFAULT NULL, AREA_NO varchar(4) DEFAULT NULL, APPLCNT_EMAIL_ADRES varchar(50) DEFAULT NULL, ESNTL_ID char(20) NOT NULL, PRIMARY KEY (ENTRPRS_MBER_ID), KEY LETTNENTRPRSMBER_ibfk_1 (GROUP_ID), CONSTRAINT LETTNENTRPRSMBER_ibfk_1 FOREIGN KEY (GROUP_ID) REFERENCES LETTNAUTHORGROUPINFO (GROUP_ID) ON DELETE CASCADE ) ; CREATE TABLE LETTNFILE ( ATCH_FILE_ID char(20) NOT NULL, CREAT_DT datetime NOT NULL, USE_AT char(1) DEFAULT NULL, PRIMARY KEY (ATCH_FILE_ID) ) ; CREATE TABLE LETTNFILEDETAIL ( ATCH_FILE_ID char(20) NOT NULL, FILE_SN decimal(10,0) NOT NULL, FILE_STRE_COURS varchar(2000) NOT NULL, STRE_FILE_NM varchar(255) NOT NULL, ORIGNL_FILE_NM varchar(255) DEFAULT NULL, FILE_EXTSN varchar(20) NOT NULL, FILE_CN mediumtext, FILE_SIZE decimal(8,0) DEFAULT NULL, PRIMARY KEY (ATCH_FILE_ID,FILE_SN), CONSTRAINT LETTNFILEDETAIL_ibfk_1 FOREIGN KEY (ATCH_FILE_ID) REFERENCES LETTNFILE (ATCH_FILE_ID) ) ; CREATE TABLE LETTNGNRLMBER ( MBER_ID varchar(20) NOT NULL DEFAULT '', PASSWORD varchar(200) NOT NULL, PASSWORD_HINT varchar(100) NOT NULL, PASSWORD_CNSR varchar(100) NOT NULL, IHIDNUM varchar(200) DEFAULT NULL, MBER_NM varchar(50) NOT NULL, ZIP varchar(6) DEFAULT NULL, ADRES varchar(100) DEFAULT NULL, AREA_NO varchar(4) DEFAULT NULL, MBER_STTUS varchar(15) DEFAULT NULL, DETAIL_ADRES varchar(100) DEFAULT NULL, END_TELNO varchar(4) DEFAULT NULL, MBTLNUM varchar(20) DEFAULT NULL, GROUP_ID char(20) DEFAULT NULL, MBER_FXNUM varchar(20) DEFAULT NULL, MBER_EMAIL_ADRES varchar(50) DEFAULT NULL, MIDDLE_TELNO varchar(4) DEFAULT NULL, SBSCRB_DE datetime DEFAULT NULL, SEXDSTN_CODE char(1) DEFAULT NULL, ESNTL_ID char(20) NOT NULL, PRIMARY KEY (MBER_ID), KEY LETTNGNRLMBER_ibfk_1 (GROUP_ID), CONSTRAINT LETTNGNRLMBER_ibfk_1 FOREIGN KEY (GROUP_ID) REFERENCES LETTNAUTHORGROUPINFO (GROUP_ID) ON DELETE CASCADE ) ; CREATE TABLE LETTNSCHDULINFO ( SCHDUL_ID char(20) NOT NULL, SCHDUL_SE char(1) DEFAULT NULL, SCHDUL_DEPT_ID varchar(20) DEFAULT NULL, SCHDUL_KND_CODE varchar(20) DEFAULT NULL, SCHDUL_BEGINDE datetime DEFAULT NULL, SCHDUL_ENDDE datetime DEFAULT NULL, SCHDUL_NM varchar(255) DEFAULT NULL, SCHDUL_CN varchar(2500) DEFAULT NULL, SCHDUL_PLACE varchar(255) DEFAULT NULL, SCHDUL_IPCR_CODE char(1) DEFAULT NULL, SCHDUL_CHARGER_ID varchar(20) DEFAULT NULL, ATCH_FILE_ID char(20) DEFAULT NULL, FRST_REGIST_PNTTM datetime DEFAULT NULL, FRST_REGISTER_ID varchar(20) DEFAULT NULL, LAST_UPDT_PNTTM datetime DEFAULT NULL, LAST_UPDUSR_ID varchar(20) DEFAULT NULL, REPTIT_SE_CODE char(3) DEFAULT NULL, PRIMARY KEY (SCHDUL_ID) ) ; CREATE OR REPLACE VIEW COMVNUSERMASTER ( ESNTL_ID,USER_ID,PASSWORD,USER_NM,USER_ZIP,USER_ADRES,USER_EMAIL,GROUP_ID, USER_SE, ORGNZT_ID ) AS SELECT ESNTL_ID, MBER_ID,PASSWORD,MBER_NM,ZIP,ADRES,MBER_EMAIL_ADRES,' ','GNR' AS USER_SE, ' ' ORGNZT_ID FROM LETTNGNRLMBER UNION ALL SELECT ESNTL_ID,EMPLYR_ID,PASSWORD,USER_NM,ZIP,HOUSE_ADRES,EMAIL_ADRES,GROUP_ID ,'USR' AS USER_SE, ORGNZT_ID FROM LETTNEMPLYRINFO UNION ALL SELECT ESNTL_ID,ENTRPRS_MBER_ID,ENTRPRS_MBER_PASSWORD,CMPNY_NM,ZIP,ADRES,APPLCNT_EMAIL_ADRES,' ' ,'ENT' AS USER_SE, ' ' ORGNZT_ID FROM LETTNENTRPRSMBER ;
<reponame>dram/metasfresh -- 2020-07-03T11:35:58.034Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM,IsEnableRemoteCacheInvalidation,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,PersonalDataCategory,ReplicationType,TableName,TooltipType,Updated,UpdatedBy) VALUES ('3',0,0,0,541503,'N',TO_TIMESTAMP('2020-07-03 14:35:57','YYYY-MM-DD HH24:MI:SS'),100,'D','N','Y','N','N','Y','N','N','N','N','N',0,'PostgREST Configs','NP','L','PostgREST_Config','DTI',TO_TIMESTAMP('2020-07-03 14:35:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:35:58.045Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Table_ID=541503 AND NOT EXISTS (SELECT 1 FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) ; -- 2020-07-03T11:35:58.165Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,555140,TO_TIMESTAMP('2020-07-03 14:35:58','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table PostgREST_Config',1,'Y','N','Y','Y','PostgREST_Config','N',1000000,TO_TIMESTAMP('2020-07-03 14:35:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:35:58.174Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE SEQUENCE POSTGREST_CONFIG_SEQ INCREMENT 1 MINVALUE 1 MAXVALUE 2147483647 START 1000000 ; -- 2020-07-03T11:36:09.819Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570897,102,0,19,541503,'AD_Client_ID',TO_TIMESTAMP('2020-07-03 14:36:09','YYYY-MM-DD HH24:MI:SS'),100,'N','Mandant für diese Installation.','D',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','N','N','Y','N','N','Y','N','N','Mandant',0,TO_TIMESTAMP('2020-07-03 14:36:09','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:09.821Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570897 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:09.860Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(102) ; -- 2020-07-03T11:36:10.668Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570898,113,0,19,541503,'AD_Org_ID',TO_TIMESTAMP('2020-07-03 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,'N','Organisatorische Einheit des Mandanten','D',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','N','N','N','N','N','N','Y','N','N','Y','N','N','Sektion',0,TO_TIMESTAMP('2020-07-03 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:10.669Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570898 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:10.670Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(113) ; -- 2020-07-03T11:36:11.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570899,577686,0,10,541503,'Config',TO_TIMESTAMP('2020-07-03 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,'N','D',255,'Y','Y','N','N','N','N','N','N','Y','N','N','N','N','Y','Config',0,TO_TIMESTAMP('2020-07-03 14:36:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:11.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570899 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:11.081Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577686) ; -- 2020-07-03T11:36:11.178Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570900,245,0,16,541503,'Created',TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,'N','Datum, an dem dieser Eintrag erstellt wurde','D',29,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','N','Erstellt',0,TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:11.179Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570900 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:11.181Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(245) ; -- 2020-07-03T11:36:11.506Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570901,246,0,18,110,541503,'CreatedBy',TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,'N','Nutzer, der diesen Eintrag erstellt hat','D',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','N','Erstellt durch',0,TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:11.508Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570901 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:11.508Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(246) ; -- 2020-07-03T11:36:11.837Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570902,348,0,20,541503,'IsActive',TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,'N','Der Eintrag ist im System aktiv','D',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','N','N','Y','N','N','Y','N','Y','Aktiv',0,TO_TIMESTAMP('2020-07-03 14:36:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:11.839Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570902 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:11.841Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(348) ; -- 2020-07-03T11:36:12.125Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570903,469,0,10,541503,'Name',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',40,'','Y','Y','N','N','N','N','Y','N','Y','N','N','N','N','Y','Name',1,TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:12.126Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570903 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:12.127Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(469) ; -- 2020-07-03T11:36:12.275Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577781,0,'PostgREST_Config_ID',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','PostgREST Configs','PostgREST Configs',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:36:12.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577781 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2020-07-03T11:36:12.407Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570904,577781,0,13,541503,'PostgREST_Config_ID',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,'N','D',10,'Y','N','N','N','N','N','Y','N','N','N','N','N','N','PostgREST Configs',0,TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:12.408Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570904 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:12.409Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577781) ; -- 2020-07-03T11:36:12.557Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570905,607,0,16,541503,'Updated',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,'N','Datum, an dem dieser Eintrag aktualisiert wurde','D',29,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert',0,TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:12.559Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570905 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:12.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(607) ; -- 2020-07-03T11:36:12.769Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570906,608,0,18,110,541503,'UpdatedBy',TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,'N','Nutzer, der diesen Eintrag aktualisiert hat','D',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert durch',0,TO_TIMESTAMP('2020-07-03 14:36:12','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:36:12.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570906 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:36:12.771Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(608) ; -- 2020-07-03T11:37:51.498Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577782,0,'base_url',TO_TIMESTAMP('2020-07-03 14:37:51','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','URL','URL',TO_TIMESTAMP('2020-07-03 14:37:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:37:51.500Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577782 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2020-07-03T11:38:16.765Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=577782, ColumnName='base_url', Description=NULL, Help=NULL, IsIdentifier='Y', Name='URL',Updated=TO_TIMESTAMP('2020-07-03 14:38:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570899 ; -- 2020-07-03T11:38:16.768Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='URL', Description=NULL, Help=NULL WHERE AD_Column_ID=570899 ; -- 2020-07-03T11:38:16.768Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577782) ; -- 2020-07-03T11:38:57.920Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577783,0,'connection_timeout',TO_TIMESTAMP('2020-07-03 14:38:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Connection timeout','Connection timeout',TO_TIMESTAMP('2020-07-03 14:38:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:38:57.922Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577783 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2020-07-03T11:39:14.625Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577784,0,'read_timeout',TO_TIMESTAMP('2020-07-03 14:39:14','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Read timeout','Read timeout',TO_TIMESTAMP('2020-07-03 14:39:14','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:39:14.626Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577784 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2020-07-03T11:39:55.692Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=577783, AD_Reference_ID=11, ColumnName='connection_timeout', DefaultValue='0', Description=NULL, Help=NULL, IsIdentifier='N', Name='Connection timeout',Updated=TO_TIMESTAMP('2020-07-03 14:39:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570903 ; -- 2020-07-03T11:39:55.693Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Connection timeout', Description=NULL, Help=NULL WHERE AD_Column_ID=570903 ; -- 2020-07-03T11:39:55.694Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577783) ; -- 2020-07-03T11:40:23.212Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,570907,577784,0,11,541503,'read_timeout',TO_TIMESTAMP('2020-07-03 14:40:23','YYYY-MM-DD HH24:MI:SS'),100,'N','0','D',0,14,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N',0,'Read timeout',0,0,TO_TIMESTAMP('2020-07-03 14:40:23','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2020-07-03T11:40:23.215Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=570907 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2020-07-03T11:40:23.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577784) ; -- 2020-07-03T11:40:33.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='6000',Updated=TO_TIMESTAMP('2020-07-03 14:40:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570903 ; -- 2020-07-03T11:40:42.035Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='6000',Updated=TO_TIMESTAMP('2020-07-03 14:40:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570907 ; -- 2020-07-03T11:40:52.155Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET TechnicalNote='Read timeout in ms',Updated=TO_TIMESTAMP('2020-07-03 14:40:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570907 ; -- 2020-07-03T11:41:05.300Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET TechnicalNote='Connection timeout in ms.',Updated=TO_TIMESTAMP('2020-07-03 14:41:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570903 ; -- 2020-07-03T11:41:49.104Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='Y', IsMandatory='Y', IsUpdateable='N', SeqNo=10,Updated=TO_TIMESTAMP('2020-07-03 14:41:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570904 ; -- 2020-07-03T11:43:42.776Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET TableName='S_PostgREST_Config',Updated=TO_TIMESTAMP('2020-07-03 14:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=541503 ; -- 2020-07-03T11:43:42.780Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Sequence SET Name='S_PostgREST_Config',Updated=TO_TIMESTAMP('2020-07-03 14:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=555140 ; -- 2020-07-03T11:43:42.791Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER SEQUENCE PostgREST_Config_SEQ RENAME TO S_PostgREST_Config_SEQ ; -- 2020-07-03T11:44:13.798Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ CREATE TABLE public.S_PostgREST_Config (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, base_url VARCHAR(255) NOT NULL, connection_timeout NUMERIC(10) DEFAULT 6000 NOT NULL, Created TIMESTAMP WITH TIME ZONE NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, PostgREST_Config_ID NUMERIC(10) NOT NULL, read_timeout NUMERIC(10) DEFAULT 6000 NOT NULL, Updated TIMESTAMP WITH TIME ZONE NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT S_PostgREST_Config_Key PRIMARY KEY (PostgREST_Config_ID)) ; -- 2020-07-03T11:46:13.347Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540544,0,541503,TO_TIMESTAMP('2020-07-03 14:46:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Y','IDX_UNIQUE_ORG_ID','N',TO_TIMESTAMP('2020-07-03 14:46:13','YYYY-MM-DD HH24:MI:SS'),100,'S_PostgREST_Config.isActive=''Y''') ; -- 2020-07-03T11:46:13.355Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Index_Table_ID=540544 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2020-07-03T11:46:34.210Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,570898,541031,540544,0,TO_TIMESTAMP('2020-07-03 14:46:34','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2020-07-03 14:46:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-07-03T11:46:36.536Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE UNIQUE INDEX IDX_UNIQUE_ORG_ID ON S_PostgREST_Config (AD_Org_ID) WHERE S_PostgREST_Config.isActive='Y' ; -- 2020-07-03T11:52:02.951Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='Base_url',Updated=TO_TIMESTAMP('2020-07-03 14:52:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577782 ; -- 2020-07-03T11:52:02.957Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Base_url', Name='URL', Description=NULL, Help=NULL WHERE AD_Element_ID=577782 ; -- 2020-07-03T11:52:02.958Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Base_url', Name='URL', Description=NULL, Help=NULL, AD_Element_ID=577782 WHERE UPPER(ColumnName)='BASE_URL' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2020-07-03T11:52:02.962Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Base_url', Name='URL', Description=NULL, Help=NULL WHERE AD_Element_ID=577782 AND IsCentrallyMaintained='Y' ; -- 2020-07-03T11:52:22.113Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='Connection_timeout',Updated=TO_TIMESTAMP('2020-07-03 14:52:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577783 ; -- 2020-07-03T11:52:22.117Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Connection_timeout', Name='Connection timeout', Description=NULL, Help=NULL WHERE AD_Element_ID=577783 ; -- 2020-07-03T11:52:22.117Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Connection_timeout', Name='Connection timeout', Description=NULL, Help=NULL, AD_Element_ID=577783 WHERE UPPER(ColumnName)='CONNECTION_TIMEOUT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2020-07-03T11:52:22.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Connection_timeout', Name='Connection timeout', Description=NULL, Help=NULL WHERE AD_Element_ID=577783 AND IsCentrallyMaintained='Y' ; -- 2020-07-03T11:52:32.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='Read_timeout',Updated=TO_TIMESTAMP('2020-07-03 14:52:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577784 ; -- 2020-07-03T11:52:32.772Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Read_timeout', Name='Read timeout', Description=NULL, Help=NULL WHERE AD_Element_ID=577784 ; -- 2020-07-03T11:52:32.773Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Read_timeout', Name='Read timeout', Description=NULL, Help=NULL, AD_Element_ID=577784 WHERE UPPER(ColumnName)='READ_TIMEOUT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2020-07-03T11:52:32.774Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Read_timeout', Name='Read timeout', Description=NULL, Help=NULL WHERE AD_Element_ID=577784 AND IsCentrallyMaintained='Y' ; -- 2020-07-03T11:52:46.481Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('s_postgrest_config','Read_timeout','NUMERIC(10)',null,'6000') ; -- 2020-07-03T11:52:46.495Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE S_PostgREST_Config SET Read_timeout=6000 WHERE Read_timeout IS NULL ; -- 2020-07-03T11:53:17.160Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('s_postgrest_config','Base_url','VARCHAR(255)',null,null) ; -- 2020-07-03T11:53:22.549Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('s_postgrest_config','Connection_timeout','NUMERIC(10)',null,'6000') ; -- 2020-07-03T11:53:22.554Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE S_PostgREST_Config SET Connection_timeout=6000 WHERE Connection_timeout IS NULL ;
<reponame>iooicc/Admin<gh_stars>1-10 -- ---------------------------- -- Table structure for sms -- ---------------------------- CREATE TABLE `sms` ( `sms_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `bo_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `bo_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '0,运营录入;1,联系人导入,2,报名信息导入', `create_date` date DEFAULT NULL, `create_time` datetime(0) DEFAULT NULL, `mobile` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `send_st_time` datetime(0) DEFAULT NULL, `send_ed_time` datetime(0) DEFAULT NULL, `send_time` datetime(0) DEFAULT NULL, `is_send_end` tinyint(4) DEFAULT -1, `send_cnt` tinyint(4) DEFAULT 0, `send_memo` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, PRIMARY KEY (`sms_id`) USING BTREE, INDEX `bo_id`(`bo_id`) USING BTREE ); -- ---------------------------- -- Table structure for sys_area -- ---------------------------- CREATE TABLE `sys_area` ( `area_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域编码', `parent_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父级编号', `parent_codes` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所有父级编号', `tree_sort` decimal(10, 0) NOT NULL COMMENT '本级排序号(升序)', `tree_sorts` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所有级别排序号', `tree_leaf` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否最末级', `tree_level` decimal(4, 0) NOT NULL COMMENT '层次级别', `tree_names` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '全节点名', `area_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '区域名称', `area_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '区域类型', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建者', `create_date` datetime(0) NOT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '更新者', `update_date` datetime(0) NOT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`area_code`) USING BTREE, INDEX `idx_sys_area_pc`(`parent_code`) USING BTREE, INDEX `idx_sys_area_ts`(`tree_sort`) USING BTREE, INDEX `idx_sys_area_status`(`status`) USING BTREE ); -- ---------------------------- -- Table structure for sys_config -- ---------------------------- CREATE TABLE `sys_config` ( `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', `config_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '名称', `config_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '参数键', `config_value` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '参数值', `is_sys` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '系统内置(1是 0否)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_sys_config_key`(`config_key`) USING BTREE ); -- ---------------------------- -- Table structure for sys_dict_data -- ---------------------------- CREATE TABLE `sys_dict_data` ( `dict_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字典编码', `parent_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父级编号', `parent_codes` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有父级编号', `tree_sort` decimal(10, 0) DEFAULT NULL COMMENT '本级排序号(升序)', `tree_sorts` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有级别排序号', `tree_leaf` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '是否最末级', `tree_level` decimal(4, 0) DEFAULT NULL COMMENT '层次级别', `tree_names` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '全节点名', `dict_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '字典标签', `dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '字典键值', `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '字典类型', `is_sys` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '系统内置(1是 0否)', `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '字典描述', `css_style` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'css样式(如:color:red)', `css_class` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'css类名(如:red)', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '租户代码', `corp_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT 'JeeSite' COMMENT '租户名称', PRIMARY KEY (`dict_code`) USING BTREE, INDEX `idx_sys_dict_data_cc`(`corp_code`) USING BTREE, INDEX `idx_sys_dict_data_dt`(`dict_type`) USING BTREE, INDEX `idx_sys_dict_data_pc`(`parent_code`) USING BTREE, INDEX `idx_sys_dict_data_status`(`status`) USING BTREE, INDEX `idx_sys_dict_data_ts`(`tree_sort`) USING BTREE, INDEX `idx_sys_dict_data_dv`(`dict_value`) USING BTREE ); -- ---------------------------- -- Table structure for sys_dict_type -- ---------------------------- CREATE TABLE `sys_dict_type` ( `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', `dict_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字典名称', `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字典类型', `is_sys` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '是否系统字典', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建者', `create_date` datetime(0) NOT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '更新者', `update_date` datetime(0) NOT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_sys_dict_type_is`(`is_sys`) USING BTREE, INDEX `idx_sys_dict_type_status`(`status`) USING BTREE ); -- ---------------------------- -- Table structure for sys_file -- ---------------------------- CREATE TABLE `sys_file` ( `file_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', `bo_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '外键,通用编号', `bo_type` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '附件的业务类型。默认0,0,无;1 主办方,2,用户头像;', `file_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文件名', `file_ext` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '扩展名', `file_path` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文件URL', `file_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文件类型', `file_size` int(10) UNSIGNED DEFAULT 0, `is_step` tinyint(4) DEFAULT 0 COMMENT '是否是step:0,否;1,是', `is_thumb` tinyint(4) DEFAULT 0, `is_step_support` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '0:初始,1:支持,2:不支持', `result_msg` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `create_date` datetime(0) DEFAULT NULL, `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '租户代码', `corp_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '租户名称', PRIMARY KEY (`file_id`) USING BTREE ); -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- CREATE TABLE `sys_menu` ( `menu_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单编码', `parent_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父级编号', `parent_codes` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有父级编号', `tree_sort` decimal(10, 0) DEFAULT NULL COMMENT '本级排序号(升序)', `tree_sorts` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有级别排序号', `tree_leaf` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '是否最末级', `tree_level` decimal(4, 0) DEFAULT NULL COMMENT '层次级别', `tree_names` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '全节点名', `menu_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '菜单名称', `menu_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '菜单类型(1菜单 2权限 3开发)', `menu_href` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '链接', `menu_target` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '目标', `menu_icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '图标', `menu_color` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '颜色', `permission` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '权限标识', `weight` decimal(4, 0) DEFAULT NULL COMMENT '菜单权重', `is_show` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '是否显示(1显示 0隐藏)', `sys_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '归属系统(default:主导航菜单、mobileApp:APP菜单)', `module_codes` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '归属模块(多个用逗号隔开)', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `is_built` tinyint(4) DEFAULT 0 COMMENT '是否系统内置', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`menu_code`) USING BTREE, INDEX `idx_sys_menu_pc`(`parent_code`) USING BTREE ); -- ---------------------------- -- Table structure for sys_module -- ---------------------------- CREATE TABLE `sys_module` ( `module_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模块编码', `module_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模块名称', `description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '模块描述', `main_class_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '主类全名', `current_version` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '当前版本', `upgrade_info` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '升级信息', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建者', `create_date` datetime(0) NOT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '更新者', `update_date` datetime(0) NOT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`module_code`) USING BTREE, INDEX `idx_sys_module_status`(`status`) USING BTREE ); -- ---------------------------- -- Table structure for sys_msg_inner -- ---------------------------- CREATE TABLE `sys_msg_inner` ( `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', `msg_title` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息标题', `content_level` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '内容级别(1普通 2一般 3紧急)', `content_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '1' COMMENT '内容类型(1公告 2新闻 3会议 4系统 5其它)', `msg_content` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息内容', `receive_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '接受者类型(1用户 2部门 3角色 4岗位)', `receive_codes` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '接受者字符串', `receive_names` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '接受者名称字符串', `send_user_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '发送者用户编码', `send_user_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '发送者用户姓名', `send_date` datetime(0) DEFAULT NULL COMMENT '发送时间', `is_attac` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '是否有附件', `notify_types` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '通知类型(PC APP 短信 邮件 微信)多选', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '状态(0正常 1删除 4审核 5驳回 9草稿)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_sys_msg_inner_cb`(`create_by`) USING BTREE, INDEX `idx_sys_msg_inner_status`(`status`) USING BTREE, INDEX `idx_sys_msg_inner_cl`(`content_level`) USING BTREE, INDEX `idx_sys_msg_inner_sc`(`send_user_code`) USING BTREE, INDEX `idx_sys_msg_inner_sd`(`send_date`) USING BTREE ); -- ---------------------------- -- Table structure for sys_msg_inner_record -- ---------------------------- CREATE TABLE `sys_msg_inner_record` ( `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', `msg_inner_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所属消息', `receive_user_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接受者用户编码', `receive_user_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '接受者用户姓名', `read_status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1' COMMENT '读取状态(0未送达 1未读 2已读)', `read_date` datetime(0) DEFAULT NULL COMMENT '阅读时间', `create_date` datetime(0) DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `is_star` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '是否标星', `is_push` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '是否推送', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_sys_msg_inner_r_mi`(`msg_inner_id`) USING BTREE, INDEX `idx_sys_msg_inner_r_rc`(`receive_user_code`) USING BTREE ); -- ---------------------------- -- Table structure for sys_org -- ---------------------------- CREATE TABLE `sys_org` ( `org_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '机构编码', `parent_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '父级编号', `parent_codes` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有父级编号', `tree_sort` decimal(10, 0) DEFAULT NULL COMMENT '本级排序号(升序)', `tree_sorts` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所有级别排序号', `tree_leaf` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '是否最末级', `tree_level` decimal(4, 0) DEFAULT NULL COMMENT '层次级别', `tree_names` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '全节点名', `view_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '机构代码', `org_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '机构名称', `full_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '机构全称', `org_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '机构类型', `leader` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '负责人', `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '办公电话', `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '联系地址', `zip_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '邮政编码', `email` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '电子邮箱', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '租户代码', PRIMARY KEY (`org_code`) USING BTREE, INDEX `idx_sys_office_pc`(`parent_code`) USING BTREE, INDEX `idx_sys_office_status`(`status`) USING BTREE, INDEX `idx_sys_office_ot`(`org_type`) USING BTREE, INDEX `idx_sys_office_ts`(`tree_sort`) USING BTREE ); -- ---------------------------- -- Table structure for sys_role -- ---------------------------- CREATE TABLE `sys_role` ( `role_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色编码', `role_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '角色名称', `role_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '角色分类(高管、中层、基层、其它)', `role_sort` decimal(10, 0) DEFAULT NULL COMMENT '角色排序(升序)', `is_sys` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '系统内置(1是 0否)', `user_type` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户类型(employee员工 member会员)', `data_scope` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '数据范围设置(0未设置 1全部数据 2自定义数据)', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态(0正常 1删除 2停用)', `is_built` tinyint(4) DEFAULT 0, `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '租户代码', `corp_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT 'JeeSite' COMMENT '租户名称', PRIMARY KEY (`role_code`) USING BTREE, INDEX `idx_sys_role_cc`(`corp_code`) USING BTREE, INDEX `idx_sys_role_is`(`is_sys`) USING BTREE, INDEX `idx_sys_role_status`(`status`) USING BTREE, INDEX `idx_sys_role_rs`(`role_sort`) USING BTREE ); -- ---------------------------- -- Table structure for sys_role_data_scope -- ---------------------------- CREATE TABLE `sys_role_data_scope` ( `role_code` varchar(64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '控制角色编码', `ctrl_type` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '控制类型', `ctrl_data` varchar(64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '控制数据', `ctrl_permi` varchar(64) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT '控制权限', PRIMARY KEY (`role_code`, `ctrl_type`, `ctrl_data`, `ctrl_permi`) USING BTREE ); -- ---------------------------- -- Table structure for sys_role_menu -- ---------------------------- CREATE TABLE `sys_role_menu` ( `role_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色编码', `menu_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单编码', `is_built` tinyint(4) DEFAULT 0, PRIMARY KEY (`role_code`, `menu_code`) USING BTREE ); -- ---------------------------- -- Table structure for sys_user -- ---------------------------- CREATE TABLE `sys_user` ( `user_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户编码', `login_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '登录账号', `user_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户昵称', `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '登录密码', `salt` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `org_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `email` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '电子邮箱', `mobile` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '手机号码', `phone` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '办公电话', `sex` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '1' COMMENT '用户性别', `avatar` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '头像路径', `sign` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '个性签名', `wx_openid` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '绑定的微信号', `mobile_imei` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '绑定的手机串号', `user_type` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户类型', `ref_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户类型引用编号', `ref_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户类型引用姓名', `mgr_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '1' COMMENT '管理员类型(0内置管理员 1系统管理员 2二级管理员3非管理员)', `pwd_security_level` decimal(1, 0) DEFAULT NULL COMMENT '密码安全级别(0初始 1很弱 2弱 3安全 4很安全)', `pwd_update_date` datetime(0) DEFAULT NULL COMMENT '密码最后更新时间', `pwd_update_record` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密码修改记录', `pwd_question` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题', `pwd_question_answer` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题答案', `pwd_question_2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题2', `pwd_question_answer_2` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题答案2', `pwd_question_3` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题3', `pwd_question_answer_3` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密保问题答案3', `pwd_quest_update_date` datetime(0) DEFAULT NULL COMMENT '密码问题修改时间', `last_login_ip` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '最后登陆IP', `last_login_date` datetime(0) DEFAULT NULL COMMENT '最后登陆时间', `freeze_date` datetime(0) DEFAULT NULL COMMENT '冻结时间', `freeze_cause` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '冻结原因', `user_weight` decimal(8, 0) DEFAULT 0 COMMENT '用户权重(降序)', `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '状态(0正常 1删除 2停用 3冻结 9未初始)', `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者', `create_date` datetime(0) DEFAULT NULL COMMENT '创建时间', `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '更新者', `update_date` datetime(0) DEFAULT NULL COMMENT '更新时间', `remarks` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息', `corp_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '租户代码', `corp_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '租户名称', PRIMARY KEY (`user_code`) USING BTREE, INDEX `idx_sys_user_lc`(`login_code`) USING BTREE, INDEX `idx_sys_user_mobile`(`mobile`) USING BTREE, INDEX `idx_sys_user_wo`(`wx_openid`) USING BTREE, INDEX `idx_sys_user_imei`(`mobile_imei`) USING BTREE, INDEX `idx_sys_user_rt`(`user_type`) USING BTREE, INDEX `idx_sys_user_rc`(`ref_code`) USING BTREE, INDEX `idx_sys_user_mt`(`mgr_type`) USING BTREE, INDEX `idx_sys_user_us`(`user_weight`) USING BTREE, INDEX `idx_sys_user_ud`(`update_date`) USING BTREE, INDEX `idx_sys_user_status`(`status`) USING BTREE, INDEX `idx_sys_user_cc`(`corp_code`) USING BTREE ); -- ---------------------------- -- Table structure for sys_user_data -- ---------------------------- CREATE TABLE `sys_user_data` ( `user_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`user_code`) USING BTREE ); -- ---------------------------- -- Table structure for sys_user_role -- ---------------------------- CREATE TABLE `sys_user_role` ( `user_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户编码', `role_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色编码', PRIMARY KEY (`user_code`, `role_code`) USING BTREE );
CREATE TABLE widget_param ( id bigserial NOT NULL, description varchar(255), name varchar(255) NOT NULL, required char NOT NULL, type varchar(255) NOT NULL, usage_example varchar(255), widget_id bigint, default_value varchar(255), accept_file_regex varchar(255), CONSTRAINT PK_WIDGET_PARAM_ID PRIMARY KEY (id), CONSTRAINT FK_WIDGET_PARAM_WIDGET_ID FOREIGN KEY (widget_id) REFERENCES widget(id) ); CREATE TABLE widget_param_value ( id bigserial NOT NULL, js_key varchar(255) NOT NULL, value varchar(255) NOT NULL, widget_param_id bigint, CONSTRAINT PK_WIDGET_PARAM_VALUE_ID PRIMARY KEY (id), CONSTRAINT FK_WIDGET_PARAM_VALUE_WIDGET_PARAM_ID FOREIGN KEY (widget_param_id) REFERENCES Widget_param (id) );
<reponame>MCZbase/DDL<filename>INDEX/U_TAX_SCI_NAME.sql CREATE INDEX "U_TAX_SCI_NAME" ON "TAXONOMY" (UPPER("SCIENTIFIC_NAME"))
/* Navicat Premium Data Transfer Source Server : BLOG Source Server Type : MySQL Source Server Version : 80017 Source Host : localhost:3306 Source Schema : blog Target Server Type : MySQL Target Server Version : 80017 File Encoding : 65001 Date: 08/02/2021 11:56:58 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for passages -- ---------------------------- DROP TABLE IF EXISTS `passages`; CREATE TABLE `passages` ( `pid` int(5) NOT NULL AUTO_INCREMENT, `title` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `tags` json NOT NULL, `follow` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `date` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`pid`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of passages -- ---------------------------- INSERT INTO `passages` VALUES (1, '测试1', '[1, 2]', '本书记录了张三传奇的一生阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴', '# ES6拓展\r\n\r\n## 对象的拓展\r\n\r\n1.Object.create——指定对象为原型(OriginObject),创建新的对象。第二个参数可以放新增的属性\r\n\r\n```javascript\r\nObject.create(OriginObject,{newOption1,newOption2,newOption3,.....})\r\n\r\n//newOption格式\r\n//name属性名\r\nname:{\r\n value: value,//属性值\r\n writable: false,//当前属性值是否可写(修改),默认为F\r\n configurable: false,//当前属性是否可被删除,默认为F\r\n enumerable: false,//当前属性是否可被枚举(for ... in ...),默认为F\r\n}\r\n```\r\n\r\n2.Object.defineProperty(优先级比前者高)\r\n\r\n```javascript\r\nObject.defineProperty(OriginObject,newOption,{\r\n value: value,//属性值\r\n writable: false,//当前属性值是否可写(修改),默认为F\r\n configurable: false,//当前属性是否可被删除,默认为F\r\n enumerable: false,//当前属性是否可被枚举(for ... in ...),默认为F\r\n })\r\n```\r\n\r\n3.Object.defineProperties——定义或修改内部属性\r\n\r\n```js\r\nObject.defineProperties(OriginObject,{\r\n name:{\r\n get: fuction(){},//获取属性值的函数\r\n set: fuction(){}//设置属性值的函数 \r\n }\r\n })\r\n```\r\n\r\n例子\r\n\r\n```javascript\r\nvar user = {\r\n firstname: \"张\",//姓\r\n lastname: \"三\",//名\r\n}\r\n\r\nObject.defineProperties(user,{\r\n fullname:{\r\n get: fuction(){\r\n return this.firstname + \"-\" + this.lastname //拼接原型user对象的firstname,lastname然后把值返回给user对象的fullname\r\n },\r\n set: fuction(option){ \r\n var arr = option.split(\"-\")//从\"-\"分割传入参数(此处为某-某某的名字)\r\n if(arr.length == 2){//判断一下名字是否合规\r\n //合规赋值\r\n this.firstname = arr[0];\r\n this.lastname = arr[1];\r\n }else{\r\n //不符合报错\r\n console.log(\"输入名字有误\")\r\n }\r\n }\r\n })\r\n```\r\n\r\n4.Other——Obj自带方法获取当前值和监听变化设置\r\n\r\n```javascript\r\n//获取当前值\r\nget name(){\r\n .....\r\n}\r\n//监听变化设置\r\nset name(){\r\n .....\r\n}\r\n```\r\n\r\n例子\r\n\r\n```javascript\r\nvar user = {\r\n firstname: \"张\",//姓\r\n lastname: \"三\",//名\r\n get fullname(){\r\n return this.firstname + \"-\" +this.lastname//拼接当前user对象的firstname,lastname然后把值返回给fullname\r\n }\r\n set fulltime(option){\r\n var arr = option.split(\"-\")//从\"-\"分割传入参数(此处为某-某某的名字)\r\n if(arr.length == 2){//判断一下名字是否合规\r\n //合规赋值\r\n this.firstname = arr[0];\r\n this.lastname = arr[1];\r\n }else{\r\n //不符合报错\r\n console.log(\"输入名字有误\")\r\n }\r\n } \r\n\r\n}\r\n```\r\n\r\n## 数组的拓展\r\n\r\n1.获取value在数组中的第一个下标\r\n\r\n```javascript\r\nArray.prototype.indexOf(value)\r\n```\r\n\r\n2.获取value在数组中的最后一个下标\r\n\r\n```javascript\r\nArray.prototype.lastIndexOf(value)\r\n```\r\n\r\n3.遍历数组\r\n\r\n```javascript\r\nArray.prototype.forEach(fuction(item,index){})\r\n```\r\n\r\n4.遍历原始数组,返回加工过后的新数组\r\n\r\n```javascript\r\nArray.prototype.map(fuction(item,index){})\r\n```\r\n\r\n5.遍历过滤一个新的子数组,返回条件为True的值\r\n\r\n```javascript\r\nArray.prototype.filter(fuction(item,index){})\r\n```\r\n\r\n## 函数拓展\r\n\r\n将函数内的this指向obj,并将函数返回\r\n\r\n```javascript\r\nFuction.prototype.bind(obj)\r\n```\r\n\r\n## JSON对象与JS对象的转换\r\n\r\n1.JS对象(数组)--->JSON对象(数组)\r\n\r\n```javascript\r\nJSON.stringify(Obj/Arr)\r\n```\r\n\r\n2.JSON对象(数组)--->JS对象(数组)json\r\n\r\n```javascript\r\nJSON.parse(Json)\r\n```\r\n\r\n', '/images/cover.jpg', '2020-06-25'); INSERT INTO `passages` VALUES (2, '测试2', '[1, 3, 8]', '书上记录了李四反杀张三的故事', '按时打卡四年冬季拉萨你的NSA老大', '/images/cover.jpg', '2021-01-02'); INSERT INTO `passages` VALUES (3, '测试3', '[2, 3, 4]', '书上记录了李四反杀张三的故事', '李四反杀张三', '/images/cover.jpg', '2019-06-21'); INSERT INTO `passages` VALUES (4, '测试4', '[1, 6]', '6', '7', '/images/cover.jpg', '5'); INSERT INTO `passages` VALUES (5, '测试5', '[2]', 'aa', 'ada', '/images/cover.jpg', 'dsasda'); SET FOREIGN_KEY_CHECKS = 1;