sql
stringlengths 6
1.05M
|
---|
BEGIN;
DROP INDEX IF EXISTS lsif_data_documents_schema_versions_dump_id_schema_version_bounds;
DROP INDEX IF EXISTS lsif_data_definitions_schema_versions_dump_id_schema_version_bounds;
DROP INDEX IF EXISTS lsif_data_references_schema_versions_dump_id_schema_version_bounds;
COMMIT;
|
-- Name: SeriesConsistencyExtended
-- Schema: posda_files
-- Columns: ['series_instance_uid', 'count', 'dicom_file_type', 'modality', 'laterality', 'series_number', 'series_date', 'image_type', 'series_time', 'performing_phys', 'protocol_name', 'series_description', 'operators_name', 'body_part_examined', 'patient_position', 'smallest_pixel_value', 'largest_pixel_value', 'performed_procedure_step_id', 'performed_procedure_step_start_date', 'performed_procedure_step_start_time', 'performed_procedure_step_desc', 'performed_procedure_step_comments', 'iop', 'pixel_rows', 'pixel_columns']
-- Args: ['series_instance_uid']
-- Tags: ['by_series', 'consistency']
-- Description: Check a Series for Consistency (including Image Type)
--
select distinct
series_instance_uid, modality, series_number, laterality, series_date, dicom_file_type,
series_time, performing_phys, protocol_name, series_description,
operators_name, body_part_examined, patient_position,
smallest_pixel_value, largest_pixel_value, performed_procedure_step_id,
performed_procedure_step_start_date, performed_procedure_step_start_time,
performed_procedure_step_desc, performed_procedure_step_comments, image_type,
iop, pixel_rows, pixel_columns,
count(*)
from
file_series natural join ctp_file natural join dicom_file
left join file_image using(file_id)
left join image using (image_id)
left join image_geometry using (image_id)
where series_instance_uid = ? and visibility is null
group by
series_instance_uid, dicom_file_type, modality, series_number, laterality,
series_date, image_type, iop, pixel_rows, pixel_columns,
series_time, performing_phys, protocol_name, series_description,
operators_name, body_part_examined, patient_position,
smallest_pixel_value, largest_pixel_value, performed_procedure_step_id,
performed_procedure_step_start_date, performed_procedure_step_start_time,
performed_procedure_step_desc, performed_procedure_step_comments
|
<reponame>vdfernandez123/asgard
--
-- Base de datos: `db_asgard`
--
USE `db_asgard`;
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `ACCION`
--
INSERT INTO `accion` (`acc_id`, `acc_nombre`, `acc_url_accion`, `acc_tipo`, `acc_descripcion`, `acc_lang_file`, `acc_dir_imagen`, `acc_estado`, `acc_fecha_creacion`, `acc_fecha_modificacion`, `acc_estado_logico`) VALUES
(1,'Create','Create','General','Create','accion','glyphicon glyphicon-file','1','2017-02-01 20:05:26',NULL,'1'),
(2,'Update','Update','General','Update','accion','glyphicon glyphicon-floppy-disk','1','2017-02-01 20:05:26',NULL,'1'),
(3,'Delete','Delete','General','Delete','accion','glyphicon glyphicon-trash','1','2017-02-01 20:05:26',NULL,'1'),
(4,'Save','Save','General','Save','accion','glyphicon glyphicon-floppy-disk','1','2017-02-01 20:05:26',NULL,'1'),
(5,'Search','Search','General','Search','accion','glyphicon glyphicon-search','1','2017-02-01 20:05:26',NULL,'1'),
(6,'Print','Print','General','Print','accion','glyphicon glyphicon-print','1','2017-02-01 20:05:26',NULL,'1'),
(7,'Import','Import','General','Import','accion','glyphicon glyphicon-import','1','2017-02-01 20:05:26',NULL,'1'),
(8,'Export','Export','General','Export','accion','glyphicon glyphicon-export','1','2017-02-01 20:05:26',NULL,'1'),
(9,'Back','Back','General','Back','accion','glyphicon glyphicon-triangle-right','1','2017-02-01 20:05:26',NULL,'1'),
(10,'Next','Next','General','Next','accion','glyphicon glyphicon-triangle-left','1','2017-02-01 20:05:26',NULL,'1'),
(11,'Clear','Clear','General','Clear','accion','glyphicon glyphicon-leaf','1','2017-02-01 20:05:26',NULL,'1'),
(12,'Edit','Edit','General','Edit','accion','glyphicon glyphicon-pencil','1','2017-02-01 20:05:26',NULL,'1'),
(13,'Approve','Approve','General','Approve','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(14,'LoadFile','LoadFile','General','LoadFile','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(15,'loadCall','loadCall','General','loadCall','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(16,'loadLeads','loadLeads','General','loadLeads','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(17,'exportStatContact','exportStatContact','General','exportStatContact','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(18,'exportLostContact','exportLostContact','General','exportLostContact','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(19,'pendingApplicants','pendingApplicants','General','pendingApplicants','accion','glyphicon glyphicon-ok','1','2017-02-01 20:05:26',NULL,'1'),
(20,'Register','Register','General','Register','accion','glyphicon glyphicon-check','1','2018-11-07 17:53:22',NULL,'1'),
(21,'Inscribed pending','Inscribed pending','General','Inscribed pending','accion','glyphicon glyphicon-info-sign','1','2018-11-07 19:04:25',NULL,'1'),
(22,'Schedule shipping','Schedule shipping','General','Schedule shipping','accion','glyphicon glyphicon-calendar','1','2018-11-07 19:04:25',NULL,'1'),
(23,'Suscribe all','Suscribe all','General','Suscribe all','accion','glyphicon glyphicon-list-alt','1','2018-11-07 19:04:25',NULL,'1'),
(24,'Upload Mailchimp','Upload Mailchimp','General','Upload Mailchimp','accion','glyphicon glyphicon-list-alt','1','2018-11-07 19:04:25',NULL,'1'),
(25,'Editar Correo','Editar Correo','General','Editar Correo','accion','glyphicon glyphicon-envelope','1','2019-03-08 10:00:00',NULL,'1'),
(26,'Reenviar Correo','Reenviar Correo','General','Reenviar Correo','accion','glyphicon glyphicon-envelope','1','2019-03-08 10:00:00',NULL,'1'),
(27,'Anular','Anular','General','Anular','accion','glyphicon glyphicon-trash','1','2019-03-08 10:00:00',NULL,'1'),
(28,'Corregir','Corregir','General','Corregir','accion','glyphicon glyphicon-edit','1','2019-03-08 10:00:00',NULL,'1'),
(29,'Cancelar','Cancelar','General','Cancelar','accion','glyphicon glyphicon-trash','1','2019-03-08 10:00:00',NULL,'1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `tipo_empresa`
--
INSERT INTO `tipo_empresa` (`temp_id`, `temp_nombre`, `temp_descripcion`, `temp_estado`, `temp_fecha_creacion`, `temp_fecha_modificacion`, `temp_estado_logico`) VALUES
(1, 'Empresa Pública', 'Empresa Pública', '1', '2017-02-01 15:05:26', NULL, '1'),
(2, 'Empresa Privada', 'Empresa Privada', '1', '2017-02-01 15:05:26', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `EMPRESA`
--
INSERT INTO `empresa` (`emp_id`, `temp_id`, `emp_razon_social`, `emp_nombre_comercial`, `emp_alias`, `emp_ruc`, `emp_dominio`, `emp_imap_domain`, `emp_imap_port`, `emp_imap_user`, `emp_imap_pass`, `pai_id`, `pro_id`, `can_id`, `emp_direccion`, `emp_direccion1`, `emp_telefono`, `emp_codigo_postal`, `emp_estado`, `emp_fecha_creacion`, `emp_fecha_modificacion`, `emp_estado_logico`) VALUES
(1, 2, 'UTEG', 'UTEG', 'UTEG', '0992164913001', 'www.uteg.edu.ec', 'www.uteg.edu.ec', '587', '', '', 1, 10, 87, 'Guayacanes 520 y la Quinta', NULL, '2884833', '090512', '1', '2017-02-01 15:05:26', NULL, '1'),
(2, 2, 'ULINK', 'ULINK', 'ULINK', '', 'www.ulink.us', 'www.ulink.us', '587', '', '', 17, 324, 4560, '7791 NW 46 Street Suite 407', NULL, '305-984-2003', '33166', '1', '2017-02-01 15:05:26', NULL, '1'),
(3, 2, 'SMART', 'SMART', 'SMART', '', 'www.sbc.com.ec', 'www.sbc.com.ec', '587', '', '', 1, 10, 87, 'Lomas de Urdesa Mz. 44 edificio 4', NULL, '0959719016', '090512', '1', '2017-02-01 15:05:26', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `ETNIA`
--
INSERT INTO `etnia` (`etn_id`, `etn_nombre`, `etn_descripcion`, `etn_observacion`, `etn_estado`, `etn_fecha_creacion`, `etn_fecha_actualizacion`, `etn_estado_logico`) VALUES
(1, 'Afroecuatoriano/a', 'Afroecuatoriano/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(2, 'Blanco/a', 'Blanco/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(3, 'Indígena', 'Indígena', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(4, 'Mestizo/a', 'Mestizo/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(5, 'Montubio/a', 'Montubio/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(6, 'Negro/a', 'Negro/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(7, 'Mulato/a', 'Mulato/a', NULL, '1', '2017-02-01 15:05:26', NULL, '1'),
(8, 'Otro', 'Otro', NULL, '1', '2017-02-01 15:05:26', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `ESTADO_CIVIL`
--
INSERT INTO `estado_civil` (`eciv_id`, `eciv_nombre`, `eciv_descripcion`, `eciv_observacion`, `eciv_estado`, `eciv_fecha_creacion`, `eciv_fecha_actualizacion`, `eciv_estado_logico`) VALUES
(1, 'Soltero', 'Soltero', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'Casado', 'Casado', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(3, 'Viudo', 'Viudo', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(4, 'Divorciado', 'Divorciado', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(5, 'Unión de hecho', 'Unión de hecho', NULL, '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `TIPO_PARENTESCO`
--
INSERT INTO `tipo_parentesco` (`tpar_id`, `tpar_nombre`, `tpar_descripcion`, `tpar_grado`, `tpar_observacion`, `tpar_estado`, `tpar_fecha_creacion`, `tpar_fecha_actualizacion`, `tpar_estado_logico`) VALUES
(1, 'Esposo', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'Esposa', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(3, 'Hijo', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(4, 'Hija', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(5, 'Padre', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(6, 'Madre', 'descripción de parentesco', '1', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(7, 'Abuelo', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(8, 'Abuela', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(9, 'Hermano', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(10, 'Hermana', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(11, 'Tío', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(12, 'Tía', 'descripción de parentesco', '0', NULL, '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Tabla `tipo_identificacion`
--
INSERT INTO `tipo_identificacion` (`tide_id`, `tide_nombre`, `tide_descripcion`, `tide_numero_caracteres`, `tide_estado`, `tide_fecha_creacion`, `tide_fecha_modificacion`, `tide_estado_logico`) VALUES
(1, 'Cedula', 'Cedula', '10', '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'RUC', 'RUC', '13', '1', '2017-02-01 15:05:27', NULL, '1'),
(3, 'Pasaporte', 'Pasaporte', NULL, '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `TIPO_PASSWORD`
--
INSERT INTO `tipo_password` (`tpas_id`, `tpas_descripcion`, `tpas_validacion`, `tpas_observacion`, `tpas_estado`, `tpas_fecha_creacion`, `tpas_fecha_actualizacion`, `tpas_estado_logico`) VALUES
(1, 'Simples', '/^(?=.*[a-z])(?=.*[A-Z]).{VAR,}$/', 'Las claves simples deben cumplir con lo mínimo: Caracteres alfabéticos (Mayúsculas y minúsculas).', '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'Semicomplejas', '/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{VAR,}$/', 'Las claves semicomplejas deben cumplir con lo mínimo: Caracteres alfabéticos (Mayúsculas y minúsculas). ', '1', '2017-02-01 15:05:27', NULL, '1'),
(3, 'Complejas', '/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@\\,\\;#¿\\?\\}\\{\\]\\[\\-_¡!\\=&\\^:<>\\.\\+\\*\\/\\$\\(\\)]).{VAR,}$/', 'Las claves complejas deben cumplir con lo mínimo: Caracteres alfabéticos (Mayúsculas y minúsculas).\nSímbolos: @ , ; # ¿ ? } { ] [ - _ ¡ ! = & ^ : < > . + * / ( )', '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `TIPO_PERSONA`
--
INSERT INTO `tipo_persona` (`tper_id`, `tper_nombre`, `tper_estado`, `tper_fecha_creacion`, `tper_fecha_modificacion`, `tper_estado_logico`) VALUES
(1, 'Natural', '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'Jurídica', '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `TIPO_SANGRE`
--
INSERT INTO `tipo_sangre` (`tsan_id`, `tsan_nombre`, `tsan_descripcion`, `tsan_observacion`, `tsan_estado`, `tsan_fecha_creacion`, `tsan_fecha_actualizacion`, `tsan_estado_logico`) VALUES
(1, 'AB +', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(2, 'AB -', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(3, 'A +', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(4, 'A -', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(5, 'B +', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(6, 'B -', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(7, 'O+', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1'),
(8, 'O -', 'descripción de tipo de sangre', NULL, '1', '2017-02-01 15:05:27', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `TIPO_DISCAPACIDAD`
--
INSERT INTO `tipo_discapacidad` (`tdis_id`,`tdis_nombre`, `tdis_descripcion`,`tdis_estado`,`tdis_estado_logico`) VALUES
(1,'Auditiva','Auditiva','1','1'),
(2,'Física Motora','Física Motora','1','1'),
(3,'Intelectual','Intelectual','1','1'),
(4,'Lenguaje','Lenguaje','1','1'),
(5,'Mental Psicosocial','Mental Psicosocial','1','1'),
(6,'Visual','Visual','1','1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `APLICACION`
--
INSERT INTO `aplicacion` (`apl_id`, `apl_nombre`, `apl_tipo`,`apl_estado`, `apl_estado_logico`) VALUES
(1, 'Framework', 'General', '1', '1');
--
-- Volcado de datos para la tabla `IDIOMA`
--
INSERT INTO `idioma` (`idi_id`, `idi_nombre`, `idi_tipo`,`idi_estado`, `idi_estado_logico`) VALUES
(1, 'Español', 'General', '1','1'),
(2, 'Ingles', 'General', '1','1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `PLANTILLA`
--
INSERT INTO `plantilla` (`pla_id`, `pla_nombre`, `pla_tipo`, `pla_estado`, `pla_estado_logico`) VALUES
(1, 'Asgard', 'General', '1', '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `CONFIGURACION_SEGURIDAD`
--
INSERT INTO `configuracion_seguridad` (`cseg_id`, `tpas_id`, `cseg_long_pass`, `cseg_expiracion`, `cseg_descripcion`, `cseg_observacion`, `cseg_estado`, `cseg_estado_logico`) VALUES
(1, 1, '5', 0, 'Claves Simples min 5 caracteres. No tiene caducidad.', 'observación seguridad', '1','1'),
(2, 2, '6', 30, 'Claves SemiComplejas min 6 caracteres. Caducidad 30 dias.', 'observación seguridad','1', '1'),
(3, 3, '7', 60, 'Claves Complejas min 7 caracteres. Caducidad 60 dias.', 'observación seguirdad','1', '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `GRUPO`
--
INSERT INTO `grupo` (`gru_id`, `cseg_id`, `gru_nombre`, `gru_descripcion`, `gru_observacion`, `gru_estado`, `gru_fecha_creacion`, `gru_fecha_actualizacion`, `gru_estado_logico`) VALUES
(1, 3, 'Super Admin', 'Super Admin', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(2, 3, 'Sistemas', 'Sistemas', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(3, 2, 'Admisiones', 'Admisiones', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(4, 2, 'Financiero', 'Financiero', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(5, 2, 'Colecturia', 'Colecturia', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(6, 2, 'Online', 'Online', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(7, 2, 'Grado', 'Grado', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(8, 2, 'Posgrado', 'Grado', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(9, 2, 'Comunicaciones', 'Comunicaciones', NULL, '1', '2018-10-01 19:32:51', NULL, '1'),
(10, 1, 'Interesado', 'Interesado', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(11, 1, 'Admitido', 'Aspirante', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(12, 1, 'Estudiante', 'Estudiante', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(13, 2, 'Docente', 'Docente', NULL, '1', '2017-02-01 15:05:28', NULL, '1'),
(14, 2, 'Marketing', 'Marketing', NULL, '1', '2019-02-09 11:30:00', NULL, '1'),
(15, 2, 'Talento Humano', 'Talento Humano', NULL, '1', '2019-02-09 11:30:00', NULL, '1'),
(16, 2, 'Proveedor', 'Proveedor', NULL, '1', '2019-03-09 11:30:00', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `ROL`
--
INSERT INTO `rol` (`rol_id`, `rol_nombre`, `rol_descripcion`, `rol_estado`, `rol_fecha_creacion`, `rol_fecha_actualizacion`, `rol_estado_logico`) VALUES
(1, 'Super Administrador', 'Super Administrador', '1', '2017-02-01 15:05:28', NULL, '1'),
(2, 'Admin Sistemas', 'Admin Sistemas', '1', '2017-02-01 15:05:28', NULL, '1'),
(3, 'Admin Administrativo', 'Admin Administrativo', '1', '2017-02-01 15:05:28', NULL, '1'),
(4, 'Gerente', 'Docente', '1', '2017-02-01 15:05:28', NULL, '1'),
(5, 'Director', 'Director', '1', '2017-02-01 15:05:28', NULL, '1'),
(6, 'Jefe', 'Jefe', '1', '2017-02-01 15:05:28', NULL, '1'),
(7, 'Coordinador', 'Coordinador Senior', '1', '2017-02-01 15:05:28', NULL, '1'),
(8, 'Supervisor', 'Supervisor Senior', '1', '2017-02-01 15:05:28', NULL, '1'),
(9, 'Analista', 'Analista Senior', '1', '2017-02-01 15:05:28', NULL, '1'),
(10, 'Asistente', 'Asistente Senior', '1', '2017-02-01 15:05:28', NULL, '1'),
(11, 'Lider', 'Lider', '1', '2017-02-01 15:05:28', NULL, '1'),
(12, 'Agente', 'Ejecutivo Comercial', '1', '2017-02-01 15:05:28', NULL, '1'),
(13, 'Secretaria', 'Secretaria', '1', '2017-02-01 15:05:28', NULL, '1'),
(14, 'Interesado', 'Interesado', '1', '2017-02-01 15:05:28', NULL, '1'),
(15, 'Admitido', 'Aspirante', '1', '2017-02-01 15:05:28', NULL, '1'),
(16, 'Estudiante', 'Estudiante', '1', '2017-02-01 15:05:28', NULL, '1'),
(17, 'Docente', 'Docente', '1', '2017-02-01 15:05:28', NULL, '1'),
(18, 'Webmaster', 'Webmaster', '1', '2019-02-09 11:30:00', NULL, '1'),
(19, 'Proveedor', 'Proveedor', '1', '2019-03-09 11:30:00', NULL, '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `GRUP_ROL`
--
INSERT INTO `grup_rol` (`grol_id`, `gru_id`, `rol_id`, `grol_estado`, `grol_estado_logico`) VALUES
(1, 1, 1, '1', '1'),
(2, 2, 2, '1', '1'),
(3, 3, 6, '1', '1'),
(4, 3, 11, '1', '1'),
(5, 3, 12, '1', '1'),
(6, 4, 6, '1', '1'),
(7, 4, 8, '1', '1'),
(8, 4, 9, '1', '1'),
(9, 4, 10, '1', '1'),
(10, 5, 6, '1', '1'),
(11, 5, 8, '1', '1'),
(12, 5, 9, '1', '1'),
(13, 5, 10, '1', '1'),
(14, 6, 2, '1', '1'),
(15, 6, 6, '1', '1'),
(16, 6, 7, '1', '1'),
(17, 6, 9, '1', '1'),
(18, 6, 10, '1', '1'),
(19, 7, 6, '1', '1'),
(20, 7, 7, '1', '1'),
(21, 7, 9, '1', '1'),
(22, 7, 10, '1', '1'),
(23, 8, 6, '1', '1'),
(24, 8, 7, '1', '1'),
(25, 8, 9, '1', '1'),
(26, 8, 10, '1', '1'),
(27, 9, 6, '1', '1'),
(28, 9, 9, '1', '1'),
(29, 9, 10, '1', '1'),
(30, 10, 14, '1', '1'),
(31, 11, 15, '1', '1'),
(32, 12, 16, '1', '1'),
(33, 13, 17, '1', '1'),
(34, 14, 18, '1', '1'),
(35, 15, 9, '1', '1'),
(36, 16, 19, '1', '1'),
(37, 15, 5, '1', '1');
-- --------------------------------------------------------
--
-- Volcado de datos para la tabla `empresa_correo`
--
INSERT INTO `empresa_correo` (`ecor_id`, `emp_id`, `ecor_correo`, `ecor_estado`, `ecor_estado_logico`) VALUES
/*(1, 1, '<EMAIL>', '1', '1'),
(2, 2, '<EMAIL>', '1', '1'),
(3, 3, '<EMAIL>', '1', '1');*/
(1, 1, '<EMAIL>', '1', '1'),
(2, 2, '<EMAIL>', '1', '1'),
(3, 3, '<EMAIL>', '1', '1');
|
<gh_stars>0
-- @testpoint:opengauss关键字preferred(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists preferred;
create group preferred with password '<PASSWORD>';
drop group preferred;
--关键字带双引号-成功
drop group if exists "preferred";
create group "preferred" with password '<PASSWORD>';
drop group "preferred";
--关键字带单引号-合理报错
drop group if exists 'preferred';
create group 'preferred' with password '<PASSWORD>';
--关键字带反引号-合理报错
drop group if exists `preferred`;
create group `preferred` with password '<PASSWORD>';
|
<filename>openGaussBase/testcase/SQL/DML/update/Opengauss_Function_DML_Update_Case0024.sql<gh_stars>0
-- @testpoint: 更新列存表数据后,使用vacuum full清理
--建表
drop table if exists all_datatype_tbl;
create table all_datatype_tbl(c_integer integer, c_varchar varchar(50)) with(orientation = column);
--插入数据
insert into all_datatype_tbl values(1,'aaaaa');
insert into all_datatype_tbl values(2,'bbbbb');
--查看表大小
select pg_size_pretty(pg_relation_size('all_datatype_tbl'));
--修改数据
update all_datatype_tbl set c_varchar = 'new_a' where c_integer = 1;
--使用vacuum
vacuum full all_datatype_tbl;
--删表
drop table all_datatype_tbl; |
<filename>DB/StoredProcedures/sp_ServicesRegistration.sql<gh_stars>0
drop procedure if exists sp_ServicesRegistration;
create procedure sp_ServicesRegistration(IN par_serviceName varchar(100),
IN par_serviceType varchar(100), IN par_userId int)
begin
select 1 into @serviceName from tbl_ServiceMaster where service_name = par_serviceName;
SET @serviceID = 0;
select AUTO_INCREMENT
INTO @serviceID
from information_schema.TABLES
WHERE TABLE_SCHEMA = (select database())
AND table_name = 'tbl_ServiceMaster';
if (@serviceName = 1)
THEN
select 1
into @serviceType
from tbl_ServiceMaster
where service_type = par_serviceType
and service_name = par_serviceName;
IF (@serviceType = 1)
THEN
select -1 as id;
ELSE
UPDATE tbl_ServiceMaster
SET service_type = par_serviceType
WHERE service_name = par_serviceName;
select @serviceID as id;
end if;
ELSE
insert into tbl_ServiceMaster
(service_name, service_type, created_by)
values (par_serviceName, par_serviceType, par_userId);
select last_insert_id() as id;
end if;
end; |
-- get the highest price of all the values in the price column
SELECT MAX(price)
FROM purchases; |
---- constraints for table products --------
ALTER TABLE products
ADD CONSTRAINT CHK_category CHECK (category = 'Φρέσκα Προϊόντα' OR category = 'Είδη Ψυγείου', category = 'Είδη Κάβας' OR category = 'Είδη Προσωπικής Περιποίησης' OR category = 'Είδη Σπιτιού' OR category = 'Προϊόντα για Κατοικίδια')
;
---- constraints for table products --------
ALTER TABLE store
ADD CONSTRAINT CHK_city CHECK (city = 'Αθήνα' OR city = 'Βέροια' OR city = 'Θεσσαλονίκη')
---- customer age trigger -----
---IF (YEAR(new.birth_date) > (YEAR(CURRENT_DATE) - 18))
---THEN SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'The customer should be older than 18 years old.';
---END IF |
<filename>queries/stackoverflow/q11/d7798acda6a401cc8ed78c5e5d26084f5d48ce71.sql
SELECT COUNT(*)
FROM
tag as t,
site as s,
question as q,
tag_question as tq
WHERE
t.site_id = s.site_id
AND q.site_id = s.site_id
AND tq.site_id = s.site_id
AND tq.question_id = q.id
AND tq.tag_id = t.id
AND (s.site_name in ('stackoverflow'))
AND (t.name in ('class','dataframe','node.js','redux','sql-server-2008'))
AND (q.view_count >= 0)
AND (q.view_count <= 100)
|
create table sessions(
session_id varchar(32) primary key,
session_data varchar(100)
)
|
<reponame>201019-UiPath/training-code
-- drop table enemies;
-- drop table powers;
-- drop table superpeople;
-- drop table charactertype;
-- creating the type of super person --
create table charactertype
(
id serial primary key,
chartype varchar(15)
);
-- creating the superpeople table --
create table superpeople
(
id serial primary key,
realname varchar(50) not null,
workname varchar(50) unique not null,
hideout varchar(50) not null,
chartype int references charactertype (id)
);
-- creating the powers table --
create table powers
(
id serial primary key,
name varchar(20) not null,
description varchar(100) not null,
ownerid int references superpeople (id)
);
-- creating an enemies table to map enemies --
create table enemies
(
id serial primary key,
heroid int references superpeople(id),
villainid int references superpeople (id)
);
-- inserting seed data --
insert into charactertype (chartype) values
('Superhero'),
('Supervillain');
insert into superpeople (realname, workname, hideout, chartype) values
('<NAME>', 'Spiderman', 'His home', 1),
('Thor', 'Thor', 'Asgard', 1),
('Thanos', 'Thanos', 'Somewhere in the galaxy', 2),
('<NAME>', '<NAME>', 'His lab', 2);
insert into enemies (heroid, villainid) values
(1, 3),
(2, 3),
(1, 4);
insert into powers (name, description, ownerid) values
('Lightning Bearer', 'As a thunder god, he has the ability to weild lightning', 2),
('Spider senses', 'Alerts him that something is wrong', 1),
('Spider abilities', 'Spider man can do anything a spider can', 1),
('Snap', 'Using the infinity stone glove, in a snap he does population control', 3),
('Mechanical tentacles', 'Mechanical tentacles that shield and attack for him', 4);
|
<reponame>LucasCascao/realmofcards-api<filename>src/main/resources/db/migration/V12__inserindo_cupom_desconto.sql<gh_stars>0
insert into cupom (cup_codigo, cup_valor, cup_data_criacao, cup_pessoa_id, cup_status_id, cup_tipo_cupom_id)
VALUES ('965848-89', 100.00, '2020-06-02 20:00:00', 1, 1, 3),
('365258-74', 35.00, '2020-06-02 20:00:00', 2, 1, 3),
('785889-12', 40.00, '2020-06-02 20:00:00', 3, 1, 3),
('237516-36', 20.00, '2020-06-02 20:00:00', 4, 1, 3),
('196458-24', 30.00, '2020-06-02 20:00:00', 5, 1, 3),
('459636-02', 37.00, '2020-06-02 20:00:00', 1, 1, 3),
('870982-88', 25.00, '2020-06-02 20:00:00', 2, 1, 3); |
<reponame>theykay/employee-database
USE employees_db;
INSERT INTO departments (department_name)
VALUES ("security"),
("payroll"),
("human resources"),
("research and development"),
("grunts");
INSERT INTO roles (title, salary, department_id)
VALUES ("security guard", 60000, 1),
("payroll clerk", 50000, 2),
("hr rep", 50000, 3),
("researcher", 60000, 4),
("intern", 40000, 5);
INSERT INTO employees (first_name, last_name, role_id)
VALUES ("Frances", "McDormund", 1),
("Daniel", "Radcliffe", 1),
("John", "Smith", 2),
("Debbie", "Reynolds", 2),
("Judy", "Garland", 3),
("Carol", "Burnett", 3),
("Bernadette", "Peters", 4),
("David", "Tennant", 4),
("Peter", "Capaldi", 5),
("Bill", "Nighy", 5);
UPDATE employees
SET manager_id = 8
WHERE first_name = "Peter" OR first_name = "Bill"; |
CREATE TABLE IF NOT EXISTS guilds(
id INTEGER PRIMARY KEY UNIQUE,
bot_alias TEXT,
auto_role INTEGER,
greet_channel INTEGER,
greet_message TEXT,
bye_channel INTEGER,
bye_message TEXT,
perm_role INTEGER
);
CREATE TABLE IF NOT EXISTS members(
id INTEGER PRIMARY KEY,
guild_id INTEGER,
member_id INTEGER,
created_at INTEGER,
joined_at INTEGER UNIQUE,
level INTEGER,
xp INTEGER,
cash INTEGER,
name TEXT,
nickname TEXT,
birthday INTEGER,
gender TEXT,
location TEXT,
description TEXT,
likes TEXT,
dislikes TEXT,
FOREIGN KEY (guild_id) REFERENCES guilds (id)
);
CREATE TABLE IF NOT EXISTS reaction_roles(
uuid TEXT PRIMARY KEY UNIQUE,
guild_id INTEGER,
hook_id TEXT,
emoji TEXT,
role_id INTEGER,
FOREIGN KEY (guild_id) REFERENCES guilds (id)
);
CREATE TABLE IF NOT EXISTS voice_roles(
uuid TEXT PRIMARY KEY UNIQUE,
guild_id INTEGER,
hook_id INTEGER,
role_id INTEGER,
FOREIGN KEY (guild_id) REFERENCES guilds (id)
);
CREATE TABLE IF NOT EXISTS blurbs(
uuid TEXT PRIMARY KEY UNIQUE,
guild_id INTEGER,
command TEXT UNIQUE,
message TEXT,
FOREIGN KEY (guild_id) REFERENCES guilds (id)
);
CREATE TABLE IF NOT EXISTS temp(
id INTEGER PRIMARY KEY,
guild_id INTEGER,
member_id INTEGER UNIQUE,
menu TEXT,
selected TEXT,
FOREIGN KEY (guild_id) REFERENCES guilds (id)
);
|
<filename>init.sql
CREATE EXTENSION postgis;
-- WATER AREA
-- WATER AREA --< STATION ++
CREATE TABLE IF NOT EXISTS Water_area(
id_water_area SERIAL PRIMARY KEY,
NAME VARCHAR(128)
);
-- STATION
-- WATER AREA --< STATION ++
CREATE TABLE IF NOT EXISTS Station(
id_Station SERIAL PRIMARY KEY,
id_water_area INTEGER NOT NULL,
FOREIGN KEY (id_water_area) REFERENCES water_area(id_water_area),
name VARCHAR(84),
serial_number INTEGER
);
-- STATION COORDINATES
-- STATION COORDINATES >-- STATION ++
CREATE TABLE IF NOT EXISTS Station_coordinates(
id_station_coord SERIAL PRIMARY KEY,
id_station INTEGER NOT NULL,
FOREIGN KEY (id_station) REFERENCES Station(id_station),
date DATE,
longitude_and_latitude geography
);
-- SAMPLES
-- STATION --< SAMPLES ++
-- MICROFLORA SEDIMENT SAMPLES >-- SAMPLES ++
-- PHYSICAL PROPERTIES >--SAMPLES ++
-- HYDROCHEMICAL SAMPLES >-- SAMPLES ++
-- ZOOBENTHOS SAMPLES >-- SAMPLES ++
-- METEO SAMPLES >-- SAMPLES
-- ZOOPLANKTON SAMPLES >-- SAMPLES
-- PHYTOPLANKTON SAMPLES >-- SaMPLES
-- PHYTOSYNTHETIC PIGMENTS SAMPLES >-- SAMPLES
-- HORIZON LEVELS >-< SAMPLES ++
CREATE TABLE IF NOT EXISTS Samples(
id_sample SERIAL PRIMARY KEY,
id_station INTEGER NOT NULL,
FOREIGN KEY (id_station) REFERENCES Station(id_station),
date TIMESTAMP,
comment VARCHAR(128),
serial_number VARCHAR(32)
);
-- MICROFLORA SEDIMENT SAMPLES
-- SAMPLES --< MICROFLORA SEDIMENT SAMPLES ++
-- MICROFLORA SEDIMENT SAMPLES >-< GROUND TYPE ++
CREATE TABLE IF NOT EXISTS Microflora_sediment_samples(
id_sediment_sample SERIAL PRIMARY KEY,
id_sample INTEGER NOT NULL,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
total INTEGER,
biomass_wet_weight FLOAT,
heterotrophs_RPA FLOAT,
ration_of_total_to_biomass FLOAT
);
-- GROUND TYPE
-- MICROFLORA SEDIMENT SAMPLES >-< GROUND TYPE ++
-- GROUND TYPE >-< PHYSICAL PROPERTIES ++
CREATE TABLE IF NOT EXISTS Ground_type(
id_ground_type SERIAL PRIMARY KEY,
name VARCHAR(128) NOT NULL
);
-- PHYSICAL PROPERTIES
-- GROUND TYPE >-< PHYSICAL PROPERTIES ++
-- PHYSICAL PROPERTIES >-< HORIZON LEVELS ++
-- PHYSICAL PROPERTIES >-- SaMPLES ++
CREATE TABLE IF NOT EXISTS Physical_properties(
id_physical_prop SERIAL PRIMARY KEY,
id_sample INTEGER NOT NULL,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
max_depth FLOAT,
bansperency FLOAT,
comment VARCHAR(128)
);
-- GROUND TYPE IN HYDROLOGY SAMPLE
-- GROUND TYPE >-< PHYSICAL PROPERTIES ++
CREATE TABLE IF NOT EXISTS Ground_type_in_hydrology_sample(
id_ground_type INTEGER NOT NULL,
FOREIGN KEY (id_ground_type) REFERENCES Ground_type(id_ground_type),
id_physical_prop INTEGER NOT NULL,
FOREIGN KEY (id_physical_prop) REFERENCES Physical_properties(id_physical_prop)
);
-- HORIZON LEVEL
-- PHYSICAL PROPERTIES >-< HORIZON LEVEL ++
-- PHOTOSYNTHETIC PIGMENTS SAMPLES >-< HORIZON LEVEL
-- PHYTOPLANKTON SAMPLES >-- HORIZON LEVEL
-- ZOOPLANKTON SAMPLES >-- HORIZON LEVEL
-- SAMPLES >-< HORIZON LEVEL ++
CREATE TABLE IF NOT EXISTS Horizon_levels(
id_horizon SERIAL PRIMARY KEY,
name VARCHAR(16),
upper_horizon_level FLOAT,
lower_horizon_level FLOAT
);
-- HORIZONS IN SAMPLES
-- HORIZON LEVELS >-< SAMPLES ++
CREATE TABLE IF NOT EXISTS Horizons_in_sample(
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_horizon INTEGER,
FOREIGN KEY (id_horizon) REFERENCES Horizon_levels(id_horizon)
);
-- PHYSICAL PROPS AT HRIZON
-- PHYSICAL PROPERTIES >-< HORIZON LEVEL ++
CREATE TABLE IF NOT EXISTS Physical_props_at_horizon(
id_physical_prop INTEGER,
FOREIGN KEY (id_physical_prop) REFERENCES Physical_properties(id_physical_prop),
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
upper_temperature FLOAT,
upper_salinity FLOAT,
lower_temperature FLOAT,
lower_selinity FLOAT
);
-- GROUND IN MICROFLORA SEDIMENT
-- MICROFLORA SEDIMENT SAMPLES >-< GROUND TYPE
CREATE TABLE IF NOT EXISTS Ground_in_microflora_sediment(
id_sediment_sample INTEGER NOT NULL,
FOREIGN KEY (id_sediment_sample)
REFERENCES Microflora_sediment_samples(id_sediment_sample),
id_ground_type INTEGER NOT NULL,
FOREIGN KEY (id_ground_type)
REFERENCES Ground_type(id_ground_type)
);
-- HYDROCHEMICAL SAMPLES
-- ONE(SAMPLES) to many(HYDROCHEMICAL SAMPLES)
CREATE TABLE IF NOT EXISTS Hydrochemical_samples(
id_hydrochemical_samples SERIAL PRIMARY KEY,
id_sample INTEGER NOT NULL,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
chlorinity FLOAT,
density FLOAT,
volume FLOAT,
o2_ml_l FLOAT,
o2_mg_l FLOAT,
bod5 FLOAT,
ph FLOAT,
alk FLOAT,
no2 FLOAT,
no3 FLOAT,
total_n FLOAT,
po4 FLOAT,
total_p FLOAT,
si FLOAT,
oil FLOAT,
oil_film FLOAT,
phenols FLOAT,
synthetic_surfactancts FLOAT,
pd FLOAT,
cu FLOAT,
hg FLOAT,
cd FLOAT,
mn FLOAT,
ddt FLOAT,
dde FLOAT,
ddd FLOAT,
gamma_hch FLOAT,
alpha_hch FLOAT,
o2_percentage FLOAT,
nh4 FLOAT,
chromaticity FLOAT,
detergents FLOAT,
comments FLOAT
);
-- CLASS OF WATER PURITY
-- BACTRIOPLANKTON SAMPLES >-- CLASS OF WATER PURITY ++
-- ZOOBENTHOS SaMPLES >-- CLASS OF WATER PURITY ++
-- ZOOPLANKTTON SAMPLES >-- CLASS OF WATER PURITY
-- PHYTOPLANKTON SAMPLES >-- CLASS OF WATER PURITY
CREATE TABLE IF NOT EXISTS Class_of_water_purity(
id_class_of_purity SERIAL PRIMARY KEY,
name VARCHAR(64)
);
-- BACTERIOPLANKTON SAMPLES
-- BACTERIOPLANKTON SAMPLES >-- CLASS OF WATER PURITY ++
-- BACTERIOPLANKTON SAMPLES >-- SAMPLES ++
CREATE TABLE IF NOT EXISTS Bacterioplankton_samples(
id_bacterioplankton_sample SERIAL PRIMARY KEY,
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_class_of_purity INTEGER,
FOREIGN KEY (id_class_of_purity)
REFERENCES Class_of_water_purity(id_class_of_purity),
amount_of_filtered_water FLOAT,
total FLOAT,
biomass_wet_weight FLOAT,
heterotrophs_RPA FLOAT,
ration_of_total_to_biomass FLOAT,
population_doubling_time INTEGER
);
-- SAPROBITY
-- ZOOBENTHOS SAMPLES >-- SAPROBITY
-- ZOOPLANKTON SAMPLES >-- SAPROBITY
-- SPECIES IN ZOOBENTHOS SAMPLES >-- SAPROBITY
-- PHYTOPLANKTON SAMPLES >-- SAPROBITY
-- SPECIES IN PHYTOPLANKTON SAMPLE >--SAPROBITY
CREATE TABLE IF NOT EXISTS Saprobity(
id_saprobity SERIAL PRIMARY KEY,
name VARCHAR(8)
);
-- ZOOBENTHOS SAMPLES
-- ZOOBENTHOS SAMPLES >-- SAMPLES
-- CLASS OF WATER PURITY --< ZOOBENTHOS SAMPLES
-- ZOOBENTHOS SAMPLES >-- SAPROBITY
CREATE TABLE IF NOT EXISTS Zoobenthos_samples(
id_zoobenthos_sample SERIAL PRIMARY KEY,
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_class_of_purity INTEGER,
FOREIGN KEY (id_class_of_purity)
REFERENCES Class_of_water_purity(id_class_of_purity),
id_saprobity INTEGER,
FOREIGN KEY (id_saprobity)
REFERENCES Saprobity(id_saprobity),
number_of_samples INTEGER,
total FLOAT,
total_biomass FLOAT,
number_of_species_in_sample INTEGER,
biomass_in_sample FLOAT,
fishing_gear VARCHAR(256),
number_fishing_gear INTEGER,
total_without_unionidae FLOAT,
total_biomass_without_unionidae FLOAT
);
-- GROUPS OF ZOOBENTHOS
-- GROUPS OF ZOOBENTHOS >-< ZOOBENTHOS SAMPLES
-- SPECIES OF ZOOBENTHOS >-- GROUP OF ZOOBENTHOS
CREATE TABLE IF NOT EXISTS Group_of_zoobenthos(
id_group SERIAL PRIMARY KEY,
name VARCHAR(128)
);
-- GROUPS IN ZOOBENTHOS SAMPLE
-- GROUPS OF ZOOBENTHOS >-< ZOOBENTHOS SAMPLES
CREATE TABLE IF NOT EXISTS Group_in_zoobenthos_sample(
id_zoobenthos_sample INTEGER,
FOREIGN KEY (id_zoobenthos_sample)
REFERENCES Zoobenthos_samples(id_zoobenthos_sample),
id_group INTEGER,
FOREIGN KEY (id_group) REFERENCES Group_of_zoobenthos(id_group),
number_of_species INTEGER,
number FLOAT,
biomass FLOAT,
biomassm2 FLOAT,
percentage_of_total FLOAT,
percentage_of_the_total_biomass FLOAT
);
-- SPECIES OF ZOOBENTHOS
-- SPECIES OF ZOOBENTHOS >-- GROUPS OF ZOOBENTHOS
-- SPECIES IN ZOOBENTHOS SAMPLE >-- SPECIES OF ZOOBENTHOS
CREATE TABLE IF NOT EXISTS Species_of_zoobenthos(
id_species SERIAL PRIMARY KEY,
id_group INTEGER,
FOREIGN KEY (id_group) REFERENCES Group_of_zoobenthos(id_group),
name VARCHAR(128)
);
-- SPECIES IN ZOOBENTHOS SAMPLE
--
CREATE TABLE IF NOT EXISTS Species_in_zoobenthos_sample(
id_species INTEGER,
FOREIGN KEY (id_species)
REFERENCES Species_of_zoobenthos(id_species),
id_zoobenthos_sample INTEGER,
FOREIGN KEY (id_zoobenthos_sample)
REFERENCES Zoobenthos_samples(id_zoobenthos_sample),
id_saprobity INTEGER,
FOREIGN KEY (id_saprobity)
REFERENCES Saprobity(id_saprobity),
number_of_species INTEGER,
number FLOAT,
biomass FLOAT,
biomassm2 FLOAT,
percentage_of_total FLOAT,
percentage_of_the_total_biomass FLOAT
);
-- TROPHIC CHARACTERIZATION OF WATER
--
CREATE TABLE IF NOT EXISTS Trophic_characterization_of_water(
id_trophic_characterization SERIAL PRIMARY KEY,
name VARCHAR(32)
);
-- PHOTOSYNTHETIC PIGMENTS SAMPLES
--
CREATE TABLE IF NOT EXISTS Photosynthetic_pigments_samples(
id_photosynthetic_pigments_sample SERIAL PRIMARY KEY,
id_trophic_characterization INTEGER,
FOREIGN KEY (id_trophic_characterization)
REFERENCES Trophic_characterization_of_water(id_trophic_characterization),
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_horizon INTEGER,
FOREIGN KEY (id_horizon)
REFERENCES Horizon_levels(id_horizon),
volume_of_filtered_water FLOAT,
chlorophyll_a_concentration FLOAT,
chlorophyll_b_concentration FLOAT,
chlorophyll_c_concentration FLOAT,
"A(665K)" FLOAT,
pigment_index FLOAT,
pheopigments FLOAT,
ratio_of_chi_a_to_chi_c FLOAT,
comment FLOAT,
serial_nimber INTEGER
);
-- PHYTOPLANKTON SAMPLES
--
CREATE TABLE IF NOT EXISTS Phytoplankton_samples(
id_photo_sample SERIAL PRIMARY KEY,
id_class_of_purity INTEGER,
FOREIGN KEY (id_class_of_purity)
REFERENCES Class_of_water_purity(id_class_of_purity),
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_horizon INTEGER,
FOREIGN KEY (id_horizon) REFERENCES Horizon_levels(id_horizon),
id_saprobity INTEGER,
FOREIGN KEY (id_saprobity) REFERENCES Saprobity(id_saprobity),
upholding_sample_time INTEGER,
concentrated_sample_volume INTEGER,
cameras_viewed_number INTEGER,
total FLOAT,
total_species INTEGER,
total_biomass FLOAT,
total_percent FLOAT,
biomass_percent FLOAT
);
-- GROUP OF PHYTOPLANKTON
--
CREATE TABLE IF NOT EXISTS Group_of_phytoplankton(
id_group SERIAL PRIMARY KEY,
name VARCHAR(128),
name_alt VARCHAR(128),
name_rus VARCHAR(128)
);
-- SPECIES OF PHYTOPLANKTON
--
CREATE TABLE IF NOT EXISTS Species_of_phytoplankton(
id_species SERIAL PRIMARY KEY,
id_group INTEGER,
FOREIGN KEY (id_group) REFERENCES Group_of_phytoplankton(id_group),
name VARCHAR(128)
);
-- GROUPS IN PHYTOPLANKTON SAMPLE
--
CREATE TABLE IF NOT EXISTS Group_in_phytoplankton_sample(
id_group INTEGER,
FOREIGN KEY (id_group) REFERENCES Group_of_phytoplankton(id_group),
id_photo_sample INTEGER,
FOREIGN KEY (id_photo_sample) REFERENCES Phytoplankton_samples(id_photo_sample),
number FLOAT,
biomass FLOAT,
total_species_in_group INTEGER,
total_percent FLOAT,
biomass_percent FLOAT
);
-- SPECIES IN PHYTOPLANKTON SAMPLE
--
CREATE TABLE IF NOT EXISTS Species_in_phytoplankton_sample(
id_photo_sample INTEGER,
FOREIGN KEY (id_photo_sample) REFERENCES Phytoplankton_samples(id_photo_sample),
id_species INTEGER,
FOREIGN KEY (id_species) REFERENCES Species_of_phytoplankton(id_species),
id_saprobity INTEGER,
FOREIGN KEY (id_saprobity) REFERENCES Saprobity(id_saprobity),
percentage_of_total FLOAT,
percentage_of_the_total_biomass FLOAT,
number FLOAT,
biomass FLOAT
);
-- Zooplankton samples
--
CREATE TABLE IF NOT EXISTS Zooplankton_samples(
id_zoo_sample SERIAL PRIMARY KEY,
id_class_of_purity INTEGER,
FOREIGN KEY (id_class_of_purity) REFERENCES Class_of_water_purity(id_class_of_purity),
id_sample INTEGER,
FOREIGN KEY (id_sample) REFERENCES Samples(id_sample),
id_horizon INTEGER,
FOREIGN KEY (id_horizon) REFERENCES Horizon_levels(id_horizon),
id_saprobity INTEGER,
FOREIGN KEY (id_saprobity) REFERENCES Saprobity(id_saprobity),
total FLOAT,
total_species FLOAT,
total_biomass FLOAT,
fishing_gear VARCHAR(256),
assessment_of_zooplankton FLOAT
);
CREATE TABLE IF NOT EXISTS Group_of_zooplankton(
id_group SERIAL PRIMARY KEY,
name VARCHAR(128)
);
CREATE TABLE IF NOT EXISTS Groups_in_zoobenthos_sample(
id_group SERIAL PRIMARY KEY,
FOREIGN KEY (id_group) REFERENCES Group_of_zooplankton(id_group),
id_zoo_sample INTEGER,
FOREIGN KEY (id_zoo_sample) REFERENCES Zooplankton_samples(id_zoo_sample),
number FLOAT,
biomass FLOAT,
total_species_in_group INTEGER
);
CREATE TABLE IF NOT EXISTS Species_of_zooplankton(
id_species SERIAL PRIMARY KEY,
id_group INTEGER,
FOREIGN KEY (id_group)
REFERENCES Groups_in_zoobenthos_sample(id_group),
name VARCHAR(128)
);
--
CREATE TABLE IF NOT EXISTS Species_in_zooplankton_sample(
id_zoo_sample INTEGER,
FOREIGN KEY (id_zoo_sample) REFERENCES Zooplankton_samples(id_zoo_sample),
id_species INTEGER,
FOREIGN KEY (id_species) REFERENCES Species_of_zooplankton(id_species),
percentage_of_total FLOAT,
percentage_of_the_total_biomass FLOAT,
subsamples_number INTEGER,
number_of_copies FLOAT
);
CREATE TABLE IF NOT EXISTS Visibility(
id_visibility SERIAL PRIMARY KEY,
code INTEGER,
distance_min FLOAT,
distance_max FLOAT,
comment VARCHAR(256)
);
CREATE TABLE IF NOT EXISTS Water_color(
id_water_color SERIAL PRIMARY KEY,
water_color INTEGER,
description VARCHAR(64)
);
CREATE TABLE IF NOT EXISTS Cloud_cover(
id_cloud_cover SERIAL PRIMARY KEY,
amount INTEGER,
description VARCHAR(512)
);
-- PostGis
CREATE TABLE IF NOT EXISTS Direction(
id_direction SERIAL PRIMARY KEY,
thumbs VARCHAR(8),
degrees FLOAT
);
CREATE TABLE IF NOT EXISTS Wave_height(
id_wave_height SERIAL PRIMARY KEY,
wave_height FLOAT
);
CREATE TABLE IF NOT EXISTS Wave_type(
id_wave_type SERIAL PRIMARY KEY,
code INTEGER,
description VARCHAR(84)
);
CREATE TABLE IF NOT EXISTS Waves(
id_waves SERIAL PRIMARY KEY,
id_wave_type INTEGER NOT NULL,
FOREIGN KEY (id_wave_type) REFERENCES Wave_type(id_wave_type),
id_predominant_direction INTEGER,
FOREIGN KEY (id_predominant_direction)
REFERENCES Direction(id_direction),
id_secondary_direction INTEGER,
FOREIGN KEY (id_secondary_direction)
REFERENCES Direction(id_direction),
id_wave_height INTEGER,
FOREIGN KEY (id_wave_height)
REFERENCES Wave_height(id_wave_height),
sea_state INTEGER,
wave_code INTEGER
);
CREATE TABLE IF NOT EXISTS Wind(
id_wind SERIAL PRIMARY KEY,
id_direction INTEGER,
FOREIGN KEY (id_direction)
REFERENCES Direction(id_direction),
wind_direction_degress FLOAT,
wind_speed FLOAT
);
CREATE TABLE IF NOT EXISTS Cloud_shape(
id_cloud_shape SERIAL PRIMARY KEY,
name VARCHAR(10),
description VARCHAR(512)
);
-- PostGIS
CREATE TABLE IF NOT EXISTS Meteo_samples(
id_meteo SERIAL PRIMARY KEY,
id_sample INTEGER,
FOREIGN KEY (id_sample)
REFERENCES Samples(id_sample),
id_wind INTEGER,
FOREIGN KEY (id_wind)
REFERENCES Wind(id_wind),
id_waves INTEGER,
FOREIGN KEY (id_waves)
REFERENCES Waves(id_waves),
id_visibility INTEGER,
FOREIGN KEY (id_visibility)
REFERENCES Visibility(id_visibility),
id_water_color INTEGER,
FOREIGN KEY (id_water_color)
REFERENCES Water_color(id_water_color),
id_cloud_cover_total INTEGER,
FOREIGN KEY (id_cloud_cover_total)
REFERENCES Cloud_cover(id_cloud_cover),
id_cloud_cover_lower INTEGER,
FOREIGN KEY (id_cloud_cover_lower)
REFERENCES Cloud_cover(id_cloud_cover),
air_temperature FLOAT,
atmospheric_pressure FLOAT,
humidity_absolute FLOAT,
humidity_relative FLOAT,
water_vapour_presure FLOAT,
transparency FLOAT,
sea_level FLOAT,
oil_film FLOAT,
surface_stream_volocity FLOAT,
surface_stream_direction FLOAT,
bottom_stream_volocity FLOAT,
bottom_stream_direction FLOAT
);
CREATE TABLE IF NOT EXISTS Clouds_in_meteo_sample(
id_meteo_sample INTEGER,
FOREIGN KEY(id_meteo_sample)
REFERENCES Meteo_samples(id_meteo),
id_cloud_shape INTEGER,
FOREIGN KEY (id_cloud_shape)
REFERENCES Cloud_shape(id_cloud_shape)
);
|
DROP TABLE IF EXISTS telldus.humidity;
DROP SEQUENCE IF EXISTS telldus.humidity_id_seq;
CREATE SEQUENCE telldus.humidity_id_seq;
ALTER SEQUENCE telldus.humidity_id_seq OWNER TO pi;
CREATE TABLE telldus.humidity
(
humidity_time timestamp without time zone NOT NULL,
humidity_id integer NOT NULL DEFAULT nextval('telldus.humidity_id_seq'::regclass),
humidity_location character varying(32) NOT NULL,
humidity_value numeric NOT NULL,
CONSTRAINT humidity_pkey PRIMARY KEY (humidity_id)
);
ALTER TABLE telldus.humidity OWNER to pi; |
SELECT
EXPORT_SET(5, 'y', 'n') AS `__aliased--value` |
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1ubuntu0.1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 05-05-2019 a las 03:13:27
-- Versión del servidor: 5.5.62-0ubuntu0.14.04.1
-- Versión de PHP: 5.5.9-1ubuntu4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de datos: `bdmesas`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `importacion_mensual_mesas`
--
CREATE TABLE IF NOT EXISTS `importacion_mensual_mesas` (
`id_importacion_mensual_mesas` int(11) NOT NULL AUTO_INCREMENT,
`nombre_csv` varchar(100) DEFAULT NULL,
`fecha_mes` date DEFAULT NULL,
`id_casino` int(11) DEFAULT NULL,
`id_moneda` int(11) DEFAULT NULL,
`total_utilidad_mensual` double(15,2) DEFAULT NULL,
`saldo_fichas_mes` double(15,2) DEFAULT NULL,
`cotizacion_dolar` double(2,2) DEFAULT NULL,
`cotizacion_euro` double(4,4) DEFAULT NULL,
`diferencias` double(15,2) NOT NULL DEFAULT '0.00',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`validado` tinyint(4) NOT NULL DEFAULT '0',
`observacion` varchar(200) DEFAULT NULL,
`utilidad_calculada` double(15,2) DEFAULT NULL,
`retiros_mes` double(15,2) DEFAULT NULL,
`reposiciones_mes` double(15,2) DEFAULT NULL,
`total_drop_mensual` double(15,2) DEFAULT NULL,
PRIMARY KEY (`id_importacion_mensual_mesas`),
KEY `fk_imp_mens_mesas_casino_idx` (`id_casino`),
KEY `fk_imp_mens_mesas_moneda_idx` (`id_moneda`),
KEY `id_importacion_mensual_mesas` (`id_importacion_mensual_mesas`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=845 ;
--
-- Volcado de datos para la tabla `importacion_mensual_mesas`
--
INSERT INTO `importacion_mensual_mesas` (`id_importacion_mensual_mesas`, `nombre_csv`, `fecha_mes`, `id_casino`, `id_moneda`, `total_utilidad_mensual`, `saldo_fichas_mes`, `cotizacion_dolar`, `cotizacion_euro`, `diferencias`, `created_at`, `updated_at`, `deleted_at`, `validado`, `observacion`, `utilidad_calculada`, `retiros_mes`, `reposiciones_mes`, `total_drop_mensual`) VALUES
(389, 'no matter.-', '2012-08-01', 2, 1, 5805640.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 5805640.75, 0.00, 0.00, 0.00),
(390, 'no matter.-', '2012-09-01', 2, 1, 4758565.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 4758565.25, 0.00, 0.00, 0.00),
(391, 'no matter.-', '2012-10-01', 2, 1, 5383125.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 5383125.00, 0.00, 0.00, 0.00),
(392, 'no matter.-', '2012-11-01', 2, 1, 4993671.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 4993671.50, 0.00, 0.00, 0.00),
(393, 'no matter.-', '2012-12-01', 2, 1, 4387493.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 4387493.75, 0.00, 0.00, 0.00),
(394, 'no matter.-', '2012-01-01', 2, 1, 6075652.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 6075652.25, 0.00, 0.00, 0.00),
(395, 'no matter.-', '2012-02-01', 2, 1, 5856852.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 5856852.00, 0.00, 0.00, 0.00),
(396, 'no matter.-', '2012-03-01', 2, 1, 5144217.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 5144217.25, 0.00, 0.00, 0.00),
(397, 'no matter.-', '2012-04-01', 2, 1, 4554957.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 4554957.75, 0.00, 0.00, 0.00),
(398, 'no matter.-', '2012-05-01', 2, 1, 6582380.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:29', '2019-04-19 03:28:29', NULL, 1, 'Autogenerado a partir de informes finales', 6582380.75, 0.00, 0.00, 0.00),
(399, 'no matter.-', '2012-06-01', 2, 1, 6470463.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6470463.00, 0.00, 0.00, 0.00),
(400, 'no matter.-', '2012-07-01', 2, 1, 5601730.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5601730.75, 0.00, 0.00, 0.00),
(401, 'no matter.-', '2013-08-01', 2, 1, 7066913.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7066913.50, 0.00, 0.00, 0.00),
(402, 'no matter.-', '2013-09-01', 2, 1, 5612749.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5612749.75, 0.00, 0.00, 0.00),
(403, 'no matter.-', '2013-10-01', 2, 1, 4761647.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 4761647.25, 0.00, 0.00, 0.00),
(404, 'no matter.-', '2013-11-01', 2, 1, 5107180.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5107180.00, 0.00, 0.00, 0.00),
(405, 'no matter.-', '2013-12-01', 2, 1, 5587433.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5587433.75, 0.00, 0.00, 0.00),
(406, 'no matter.-', '2013-01-01', 2, 1, 5825067.90, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5825067.90, 0.00, 0.00, 0.00),
(407, 'no matter.-', '2013-02-01', 2, 1, 4610696.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 4610696.25, 0.00, 0.00, 0.00),
(408, 'no matter.-', '2013-03-01', 2, 1, 5810558.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5810558.75, 0.00, 0.00, 0.00),
(409, 'no matter.-', '2013-04-01', 2, 1, 5808825.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 5808825.25, 0.00, 0.00, 0.00),
(410, 'no matter.-', '2013-05-01', 2, 1, 6327413.81, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6327413.81, 0.00, 0.00, 0.00),
(411, 'no matter.-', '2013-06-01', 2, 1, 7067528.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7067528.00, 0.00, 0.00, 0.00),
(412, 'no matter.-', '2013-07-01', 2, 1, 6997450.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6997450.25, 0.00, 0.00, 0.00),
(413, 'no matter.-', '2014-08-01', 2, 1, 7835650.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7835650.50, 0.00, 0.00, 0.00),
(414, 'no matter.-', '2014-09-01', 2, 1, 7145189.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7145189.25, 0.00, 0.00, 0.00),
(415, 'no matter.-', '2014-10-01', 2, 1, 6826875.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6826875.50, 0.00, 0.00, 0.00),
(416, 'no matter.-', '2014-11-01', 2, 1, 7283144.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7283144.00, 0.00, 0.00, 0.00),
(417, 'no matter.-', '2014-12-01', 2, 1, 6953916.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6953916.25, 0.00, 0.00, 0.00),
(418, 'no matter.-', '2014-01-01', 2, 1, 7204523.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7204523.25, 0.00, 0.00, 0.00),
(419, 'no matter.-', '2014-02-01', 2, 1, 7369400.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7369400.25, 0.00, 0.00, 0.00),
(420, 'no matter.-', '2014-03-01', 2, 1, 7792662.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7792662.25, 0.00, 0.00, 0.00),
(421, 'no matter.-', '2014-04-01', 2, 1, 8755725.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8755725.00, 0.00, 0.00, 0.00),
(422, 'no matter.-', '2014-05-01', 2, 1, 8275323.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8275323.00, 0.00, 0.00, 0.00),
(423, 'no matter.-', '2014-06-01', 2, 1, 7158682.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 7158682.00, 0.00, 0.00, 0.00),
(424, 'no matter.-', '2014-07-01', 2, 1, 8396952.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8396952.25, 0.00, 0.00, 0.00),
(425, 'no matter.-', '2015-08-01', 2, 1, 9373903.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9373903.75, 0.00, 0.00, 0.00),
(426, 'no matter.-', '2015-09-01', 2, 1, 6552939.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 6552939.25, 0.00, 0.00, 0.00),
(427, 'no matter.-', '2015-10-01', 2, 1, 8699292.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8699292.25, 0.00, 0.00, 0.00),
(428, 'no matter.-', '2015-11-01', 2, 1, 8902319.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8902319.25, 0.00, 0.00, 0.00),
(429, 'no matter.-', '2015-12-01', 2, 1, 8035102.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8035102.50, 0.00, 0.00, 0.00),
(430, 'no matter.-', '2015-01-01', 2, 1, 8325888.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8325888.75, 0.00, 0.00, 0.00),
(431, 'no matter.-', '2015-02-01', 2, 1, 9898711.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9898711.50, 0.00, 0.00, 0.00),
(432, 'no matter.-', '2015-03-01', 2, 1, 9096210.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9096210.25, 0.00, 0.00, 0.00),
(433, 'no matter.-', '2015-04-01', 2, 1, 8300559.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 8300559.75, 0.00, 0.00, 0.00),
(434, 'no matter.-', '2015-05-01', 2, 1, 12328023.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 12328023.00, 0.00, 0.00, 0.00),
(435, 'no matter.-', '2015-06-01', 2, 1, 11194957.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11194957.75, 0.00, 0.00, 0.00),
(436, 'no matter.-', '2015-07-01', 2, 1, 9996671.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9996671.25, 0.00, 0.00, 0.00),
(437, 'no matter.-', '2016-08-01', 2, 1, 10767762.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 10767762.50, 0.00, 0.00, 0.00),
(438, 'no matter.-', '2016-09-01', 2, 1, 10629856.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 10629856.25, 0.00, 0.00, 0.00),
(439, 'no matter.-', '2016-10-01', 2, 1, 11993921.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11993921.25, 0.00, 0.00, 0.00),
(440, 'no matter.-', '2016-11-01', 2, 1, 11165637.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11165637.50, 0.00, 0.00, 0.00),
(441, 'no matter.-', '2016-12-01', 2, 1, 9474584.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9474584.25, 0.00, 0.00, 0.00),
(442, 'no matter.-', '2016-01-01', 2, 1, 11709973.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11709973.75, 0.00, 0.00, 0.00),
(443, 'no matter.-', '2016-02-01', 2, 1, 11140332.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11140332.50, 0.00, 0.00, 0.00),
(444, 'no matter.-', '2016-03-01', 2, 1, 11922678.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11922678.25, 0.00, 0.00, 0.00),
(445, 'no matter.-', '2016-04-01', 2, 1, 11795153.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11795153.00, 0.00, 0.00, 0.00),
(446, 'no matter.-', '2016-05-01', 2, 1, 11309443.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11309443.75, 0.00, 0.00, 0.00),
(447, 'no matter.-', '2016-06-01', 2, 1, 12095599.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 12095599.50, 0.00, 0.00, 0.00),
(448, 'no matter.-', '2016-07-01', 2, 1, 14328233.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14328233.75, 0.00, 0.00, 0.00),
(449, 'no matter.-', '2017-08-01', 2, 1, 13543257.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 13543257.50, 0.00, 0.00, 0.00),
(450, 'no matter.-', '2017-09-01', 2, 1, 13558649.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 13558649.75, 0.00, 0.00, 0.00),
(451, 'no matter.-', '2017-10-01', 2, 1, 14154715.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14154715.00, 0.00, 0.00, 0.00),
(452, 'no matter.-', '2017-11-01', 2, 1, 10238219.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 10238219.75, 0.00, 0.00, 0.00),
(453, 'no matter.-', '2017-12-01', 2, 1, 9363726.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 9363726.25, 0.00, 0.00, 0.00),
(454, 'no matter.-', '2017-01-01', 2, 1, 15845331.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 15845331.25, 0.00, 0.00, 0.00),
(455, 'no matter.-', '2017-02-01', 2, 1, 11631762.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11631762.50, 0.00, 0.00, 0.00),
(456, 'no matter.-', '2017-03-01', 2, 1, 16709750.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 16709750.00, 0.00, 0.00, 0.00),
(457, 'no matter.-', '2017-04-01', 2, 1, 11813897.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 11813897.50, 0.00, 0.00, 0.00),
(458, 'no matter.-', '2017-05-01', 2, 1, 15000337.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 15000337.00, 0.00, 0.00, 0.00),
(459, 'no matter.-', '2017-06-01', 2, 1, 14092262.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14092262.25, 0.00, 0.00, 0.00),
(460, 'no matter.-', '2017-07-01', 2, 1, 16578027.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 16578027.50, 0.00, 0.00, 0.00),
(461, 'no matter.-', '2018-08-01', 2, 1, 17956437.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 17956437.50, 0.00, 0.00, 0.00),
(462, 'no matter.-', '2018-09-01', 2, 1, 15944749.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 15944749.50, 0.00, 0.00, 0.00),
(463, 'no matter.-', '2018-10-01', 2, 1, 18814031.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 18814031.25, 0.00, 0.00, 0.00),
(464, 'no matter.-', '2018-11-01', 2, 1, 14455944.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14455944.75, 0.00, 0.00, 0.00),
(465, 'no matter.-', '2018-12-01', 2, 1, 14157907.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14157907.00, 0.00, 0.00, 0.00),
(466, 'no matter.-', '2018-01-01', 2, 1, 18067841.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 18067841.25, 0.00, 0.00, 0.00),
(467, 'no matter.-', '2018-02-01', 2, 1, 13206608.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 13206608.50, 0.00, 0.00, 0.00),
(468, 'no matter.-', '2018-03-01', 2, 1, 16286184.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 16286184.25, 0.00, 0.00, 0.00),
(469, 'no matter.-', '2018-04-01', 2, 1, 19458076.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 19458076.50, 0.00, 0.00, 0.00),
(470, 'no matter.-', '2018-05-01', 2, 1, 14664492.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:30', '2019-04-19 03:28:30', NULL, 1, 'Autogenerado a partir de informes finales', 14664492.50, 0.00, 0.00, 0.00),
(471, 'no matter.-', '2018-06-01', 2, 1, 16263380.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 16263380.00, 0.00, 0.00, 0.00),
(472, 'no matter.-', '2018-07-01', 2, 1, 17454470.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 17454470.00, 0.00, 0.00, 0.00),
(473, 'no matter.-', '2011-10-01', 3, 1, 3255928.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3255928.75, 0.00, 0.00, 0.00),
(474, 'no matter.-', '2011-11-01', 3, 1, 2317809.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2317809.00, 0.00, 0.00, 0.00),
(475, 'no matter.-', '2011-12-01', 3, 1, 2133637.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2133637.00, 0.00, 0.00, 0.00),
(476, 'no matter.-', '2011-01-01', 3, 1, 1900497.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1900497.50, 0.00, 0.00, 0.00),
(477, 'no matter.-', '2011-02-01', 3, 1, 2347176.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2347176.75, 0.00, 0.00, 0.00),
(478, 'no matter.-', '2011-03-01', 3, 1, 1953501.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1953501.00, 0.00, 0.00, 0.00),
(479, 'no matter.-', '2011-04-01', 3, 1, 2306781.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2306781.75, 0.00, 0.00, 0.00),
(480, 'no matter.-', '2011-05-01', 3, 1, 2209538.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2209538.75, 0.00, 0.00, 0.00),
(481, 'no matter.-', '2011-06-01', 3, 1, 2022249.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2022249.75, 0.00, 0.00, 0.00),
(482, 'no matter.-', '2011-07-01', 3, 1, 2752043.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2752043.25, 0.00, 0.00, 0.00),
(483, 'no matter.-', '2011-08-01', 3, 1, 2706305.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2706305.25, 0.00, 0.00, 0.00),
(484, 'no matter.-', '2011-09-01', 3, 1, 3183769.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3183769.50, 0.00, 0.00, 0.00),
(485, 'no matter.-', '2012-10-01', 3, 1, 3446178.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3446178.50, 0.00, 0.00, 0.00),
(486, 'no matter.-', '2012-11-01', 3, 1, 2350589.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2350589.50, 0.00, 0.00, 0.00),
(487, 'no matter.-', '2012-12-01', 3, 1, 1778136.75, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1778136.75, 0.00, 0.00, 0.00),
(488, 'no matter.-', '2012-01-01', 3, 1, 2766163.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2766163.00, 0.00, 0.00, 0.00),
(489, 'no matter.-', '2012-02-01', 3, 1, 2035461.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2035461.25, 0.00, 0.00, 0.00),
(490, 'no matter.-', '2012-03-01', 3, 1, 1891065.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1891065.00, 0.00, 0.00, 0.00),
(491, 'no matter.-', '2012-04-01', 3, 1, 2489389.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2489389.50, 0.00, 0.00, 0.00),
(492, 'no matter.-', '2012-05-01', 3, 1, 2847142.25, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2847142.25, 0.00, 0.00, 0.00),
(493, 'no matter.-', '2012-06-01', 3, 1, 3429129.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3429129.50, 0.00, 0.00, 0.00),
(494, 'no matter.-', '2012-07-01', 3, 1, 3441191.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3441191.50, 0.00, 0.00, 0.00),
(495, 'no matter.-', '2012-08-01', 3, 1, 3108619.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3108619.00, 0.00, 0.00, 0.00),
(496, 'no matter.-', '2012-09-01', 3, 1, 2944476.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2944476.50, 0.00, 0.00, 0.00),
(497, 'no matter.-', '2013-10-01', 3, 1, 3668951.50, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3668951.50, 0.00, 0.00, 0.00),
(498, 'no matter.-', '2013-11-01', 3, 1, 2541144.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2541144.00, 0.00, 0.00, 0.00),
(499, 'no matter.-', '2013-12-01', 3, 1, 1425700.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1425700.00, 0.00, 0.00, 0.00),
(500, 'no matter.-', '2013-01-01', 3, 1, 2342394.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2342394.00, 0.00, 0.00, 0.00),
(501, 'no matter.-', '2013-02-01', 3, 1, 1621765.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1621765.00, 0.00, 0.00, 0.00),
(502, 'no matter.-', '2013-03-01', 3, 1, 2953965.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2953965.00, 0.00, 0.00, 0.00),
(503, 'no matter.-', '2013-04-01', 3, 1, 2462592.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2462592.00, 0.00, 0.00, 0.00),
(504, 'no matter.-', '2013-05-01', 3, 1, 2746660.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2746660.00, 0.00, 0.00, 0.00),
(505, 'no matter.-', '2013-06-01', 3, 1, 1960317.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 1960317.00, 0.00, 0.00, 0.00),
(506, 'no matter.-', '2013-07-01', 3, 1, 2964400.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2964400.00, 0.00, 0.00, 0.00),
(507, 'no matter.-', '2013-08-01', 3, 1, 3948604.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3948604.00, 0.00, 0.00, 0.00),
(508, 'no matter.-', '2013-09-01', 3, 1, 3414396.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3414396.00, 0.00, 0.00, 0.00),
(509, 'no matter.-', '2014-10-01', 3, 1, 3662944.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3662944.00, 0.00, 0.00, 0.00),
(510, 'no matter.-', '2014-11-01', 3, 1, 3250614.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3250614.00, 0.00, 0.00, 0.00),
(511, 'no matter.-', '2014-12-01', 3, 1, 3485122.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3485122.00, 0.00, 0.00, 0.00),
(512, 'no matter.-', '2014-01-01', 3, 1, 2561151.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2561151.00, 0.00, 0.00, 0.00),
(513, 'no matter.-', '2014-02-01', 3, 1, 4602935.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4602935.00, 0.00, 0.00, 0.00),
(514, 'no matter.-', '2014-03-01', 3, 1, 2862488.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2862488.00, 0.00, 0.00, 0.00),
(515, 'no matter.-', '2014-04-01', 3, 1, 2648641.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2648641.00, 0.00, 0.00, 0.00),
(516, 'no matter.-', '2014-05-01', 3, 1, 3143545.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3143545.00, 0.00, 0.00, 0.00),
(517, 'no matter.-', '2014-06-01', 3, 1, 3557633.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3557633.00, 0.00, 0.00, 0.00),
(518, 'no matter.-', '2014-07-01', 3, 1, 2819758.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 2819758.00, 0.00, 0.00, 0.00),
(519, 'no matter.-', '2014-08-01', 3, 1, 4106309.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4106309.00, 0.00, 0.00, 0.00),
(520, 'no matter.-', '2014-09-01', 3, 1, 5002263.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 5002263.00, 0.00, 0.00, 0.00),
(521, 'no matter.-', '2015-10-01', 3, 1, 3327623.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3327623.00, 0.00, 0.00, 0.00),
(522, 'no matter.-', '2015-11-01', 3, 1, 3537344.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3537344.00, 0.00, 0.00, 0.00),
(523, 'no matter.-', '2015-12-01', 3, 1, 4753832.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4753832.00, 0.00, 0.00, 0.00),
(524, 'no matter.-', '2015-01-01', 3, 1, 3756511.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 3756511.00, 0.00, 0.00, 0.00),
(525, 'no matter.-', '2015-02-01', 3, 1, 4136778.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4136778.00, 0.00, 0.00, 0.00),
(526, 'no matter.-', '2015-03-01', 3, 1, 4139829.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4139829.00, 0.00, 0.00, 0.00),
(527, 'no matter.-', '2015-04-01', 3, 1, 4552005.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4552005.00, 0.00, 0.00, 0.00),
(528, 'no matter.-', '2015-05-01', 3, 1, 4069711.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4069711.00, 0.00, 0.00, 0.00),
(529, 'no matter.-', '2015-06-01', 3, 1, 4525111.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4525111.00, 0.00, 0.00, 0.00),
(530, 'no matter.-', '2015-07-01', 3, 1, 4693045.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4693045.00, 0.00, 0.00, 0.00),
(531, 'no matter.-', '2015-08-01', 3, 1, 6381922.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 6381922.00, 0.00, 0.00, 0.00),
(532, 'no matter.-', '2015-09-01', 3, 1, 5966823.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 5966823.00, 0.00, 0.00, 0.00),
(533, 'no matter.-', '2016-10-01', 3, 1, 6727593.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 6727593.00, 0.00, 0.00, 0.00),
(534, 'no matter.-', '2016-11-01', 3, 1, 6100117.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 6100117.00, 0.00, 0.00, 0.00),
(535, 'no matter.-', '2016-12-01', 3, 1, 4215590.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4215590.00, 0.00, 0.00, 0.00),
(536, 'no matter.-', '2016-01-01', 3, 1, 4758407.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4758407.00, 0.00, 0.00, 0.00),
(537, 'no matter.-', '2016-02-01', 3, 1, 4581628.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4581628.00, 0.00, 0.00, 0.00),
(538, 'no matter.-', '2016-03-01', 3, 1, 5222440.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 5222440.00, 0.00, 0.00, 0.00),
(539, 'no matter.-', '2016-04-01', 3, 1, 4179030.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 4179030.00, 0.00, 0.00, 0.00),
(540, 'no matter.-', '2016-05-01', 3, 1, 6510285.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:31', '2019-04-19 03:28:31', NULL, 1, 'Autogenerado a partir de informes finales', 6510285.00, 0.00, 0.00, 0.00),
(541, 'no matter.-', '2016-06-01', 3, 1, 6850150.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 6850150.00, 0.00, 0.00, 0.00),
(542, 'no matter.-', '2016-07-01', 3, 1, 5768416.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 5768416.00, 0.00, 0.00, 0.00),
(543, 'no matter.-', '2016-08-01', 3, 1, 5649075.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 5649075.00, 0.00, 0.00, 0.00),
(544, 'no matter.-', '2016-09-01', 3, 1, 6900075.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 6900075.00, 0.00, 0.00, 0.00),
(545, 'no matter.-', '2017-10-01', 3, 1, 8993940.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8993940.00, 0.00, 0.00, 0.00),
(546, 'no matter.-', '2017-11-01', 3, 1, 6290275.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 6290275.00, 0.00, 0.00, 0.00),
(547, 'no matter.-', '2017-12-01', 3, 1, 6231450.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 6231450.00, 0.00, 0.00, 0.00),
(548, 'no matter.-', '2017-01-01', 3, 1, 4814960.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 4814960.00, 0.00, 0.00, 0.00),
(549, 'no matter.-', '2017-02-01', 3, 1, 7538950.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 7538950.00, 0.00, 0.00, 0.00),
(550, 'no matter.-', '2017-03-01', 3, 1, 5428420.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 5428420.00, 0.00, 0.00, 0.00),
(551, 'no matter.-', '2017-04-01', 3, 1, 5176795.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 5176795.00, 0.00, 0.00, 0.00),
(552, 'no matter.-', '2017-05-01', 3, 1, 5480340.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 5480340.00, 0.00, 0.00, 0.00),
(553, 'no matter.-', '2017-06-01', 3, 1, 4466595.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 4466595.00, 0.00, 0.00, 0.00),
(554, 'no matter.-', '2017-07-01', 3, 1, 6730690.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 6730690.00, 0.00, 0.00, 0.00),
(555, 'no matter.-', '2017-08-01', 3, 1, 7728050.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 7728050.00, 0.00, 0.00, 0.00),
(556, 'no matter.-', '2017-09-01', 3, 1, 7737655.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 7737655.00, 0.00, 0.00, 0.00),
(557, 'no matter.-', '2018-10-01', 3, 1, 21809715.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 21809715.00, 0.00, 0.00, 0.00),
(558, 'no matter.-', '2018-11-01', 3, 1, 8476570.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8476570.00, 0.00, 0.00, 0.00),
(559, 'no matter.-', '2018-12-01', 3, 1, 75772945.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 75772945.00, 0.00, 0.00, 0.00),
(560, 'no matter.-', '2018-01-01', 3, 1, 9577125.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 9577125.00, 0.00, 0.00, 0.00),
(561, 'no matter.-', '2018-02-01', 3, 1, 8769690.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8769690.00, 0.00, 0.00, 0.00),
(562, 'no matter.-', '2018-03-01', 3, 1, 8207405.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8207405.00, 0.00, 0.00, 0.00),
(563, 'no matter.-', '2018-04-01', 3, 1, 8733525.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8733525.00, 0.00, 0.00, 0.00),
(564, 'no matter.-', '2018-05-01', 3, 1, 8961695.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8961695.00, 0.00, 0.00, 0.00),
(565, 'no matter.-', '2018-06-01', 3, 1, 10467180.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 10467180.00, 0.00, 0.00, 0.00),
(566, 'no matter.-', '2018-07-01', 3, 1, 8088390.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 8088390.00, 0.00, 0.00, 0.00),
(567, 'no matter.-', '2018-08-01', 3, 1, 11108785.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 11108785.00, 0.00, 0.00, 0.00),
(568, 'no matter.-', '2018-09-01', 3, 1, 11115030.00, 0.00, NULL, NULL, 0.00, '2019-04-19 03:28:32', '2019-04-19 03:28:32', NULL, 1, 'Autogenerado a partir de informes finales', 11115030.00, 0.00, 0.00, 0.00);
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `importacion_mensual_mesas`
--
ALTER TABLE `importacion_mensual_mesas`
ADD CONSTRAINT `fk_imp_mens_mesas_casino` FOREIGN KEY (`id_casino`) REFERENCES `casino` (`id_casino`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_imp_mens_mesas_moneda` FOREIGN KEY (`id_moneda`) REFERENCES `moneda` (`id_moneda`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- ----------------------------
-- Table structure for account
-- ----------------------------
CREATE TABLE `account` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',
`balance` int(11) DEFAULT NULL COMMENT '总余额',
`frozen` int(11) DEFAULT NULL COMMENT '冻结余额',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=INNODB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
INSERT INTO `seata_account`.`account` (`id`, `balance`, `frozen`) VALUES ('1', '100', '0');
-- ----------------------------
-- Table structure for undo_log
-- ----------------------------
DROP TABLE IF EXISTS `undo_log`;
CREATE TABLE `undo_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`branch_id` bigint(20) NOT NULL,
`xid` varchar(100) NOT NULL,
`context` varchar(128) NOT NULL,
`rollback_info` longblob NOT NULL,
`log_status` int(11) NOT NULL,
`log_created` datetime NOT NULL,
`log_modified` datetime NOT NULL,
`ext` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
DELETE FROM `[#DB_PREFIX#]system_setting` WHERE `varname` = 'online_interval';
INSERT INTO `[#DB_PREFIX#]system_setting` (`varname`, `value`) VALUES ('weixin_subscribe_message', 's:85:"请问需要什么帮助吗? 您可以通过输入 "help, 帮助" 获得更多支持!";');
ALTER TABLE `[#DB_PREFIX#]feature` DROP `is_scope`; |
SELECT
messages.*,
users.*,
channels.*,
messages.created_timestamp AS message_timestamp,
users.nick AS message_user
FROM $$database_app$$.messenger_messages AS messages
INNER JOIN $$database_app$$.messenger_users AS users
ON messages.user_id=users.user_id
INNER JOIN $$database_app$$.messenger_channels AS channels
ON messages.channel_id=channels.channel_id
ORDER BY
messages.created_timestamp DESC
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 14, 2022 at 08:34 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
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: `pw2_film`
--
-- --------------------------------------------------------
--
-- Table structure for table `film`
--
CREATE TABLE `film` (
`id_film` int(11) NOT NULL,
`id_homeproduction` int(11) NOT NULL,
`judul` varchar(200) NOT NULL,
`producer` varchar(200) NOT NULL,
`penulis_naskah` varchar(200) NOT NULL,
`musik` varchar(200) NOT NULL,
`cimatografi` varchar(200) NOT NULL,
`editor` varchar(200) NOT NULL,
`durasi` varchar(10) NOT NULL,
`poster` varchar(200) NOT NULL,
`bahasa` varchar(100) NOT NULL,
`negara` varchar(200) NOT NULL,
`rating` varchar(10) NOT NULL,
`tahun_rilis` year(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `film`
--
INSERT INTO `film` (`id_film`, `id_homeproduction`, `judul`, `producer`, `penulis_naskah`, `musik`, `cimatografi`, `editor`, `durasi`, `poster`, `bahasa`, `negara`, `rating`, `tahun_rilis`) VALUES
(6, 2, '<NAME> (2022 Film)', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '112 Minute', 'Marry_Me_2022_Poster.jpg', 'English', 'United States', 'PG-13', 2022),
(7, 4, 'Moonfall', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '130 Minute', 'Moonfall_2022_poster.jpg', 'English', 'United States', 'PG-13', 2022),
(8, 5, 'Death on the Nile', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '127 Minute', 'Death_On_The_Nile_Theatrical_Poster.jpg', 'English', 'United States', 'PG-13', 2022),
(9, 6, 'The Batman', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '175 Minute', 'The_Batman_Official_Poster.jpg', 'English', 'United States', 'PG-13', 2022),
(10, 6, 'Nope', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '130 Minute', 'Nope_2022_Poster.jpg', 'English', 'United States', 'PG-13', 2022),
(11, 7, 'The Desperate Hour', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '85 Minutes', 'The_Desperate_Hour_Poster.jpg', 'English', 'United States', 'PG-13', 2022),
(12, 8, 'Dog', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '90 Minutes', 'Dog_Movie_Poster.jpg', 'English', 'United States', 'PG-13', 2022);
-- --------------------------------------------------------
--
-- Table structure for table `homeproduction`
--
CREATE TABLE `homeproduction` (
`id_homeproduction` int(11) NOT NULL,
`nama` varchar(200) NOT NULL,
`pemilik` varchar(200) NOT NULL,
`tahun_berdiri` year(4) NOT NULL,
`email` varchar(50) NOT NULL,
`alamat` text NOT NULL,
`no_tlp` varchar(20) NOT NULL,
`logo` varchar(100) NOT NULL,
`website` varchar(50) NOT NULL,
`instagram` varchar(50) NOT NULL,
`facebook` varchar(50) NOT NULL,
`twitter` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `homeproduction`
--
INSERT INTO `homeproduction` (`id_homeproduction`, `nama`, `pemilik`, `tahun_berdiri`, `email`, `alamat`, `no_tlp`, `logo`, `website`, `instagram`, `facebook`, `twitter`) VALUES
(2, 'Akbar Movie', 'akbar muhammad', 2022, '<EMAIL>', 'Jl. Poltekpos', '08123456789', 'images-removebg-preview.png', 'www.akbrmovie.com', 'akbr', 'akbrfb', 'akbrtw'),
(4, 'Miles Films', '<NAME>', 2000, '<EMAIL>', 'Jl. Poltekpos No 890', '08123456789', 'milesfilms-768x451.jpg', '<EMAIL>', 'milesfilmsig', 'milesfilmsfb', 'milesfilmstw'),
(5, 'Rapi Films', '<NAME>', 1971, '<EMAIL>', 'Jl. Sarimanah No.567 Bandung', '08123456789', 'ofNVK5Rf_400x400.jpg', 'www.rapifilms.com', 'rapifilmsig', 'rapifilmsfb', 'rapifilmstw'),
(6, 'Starvision Plus', '<NAME>', 1988, '<EMAIL>', 'JL. <NAME>o Nom 789 Bandung', '08123456789', '20140715035726!Starvisionplus.jpg', 'www.starvisionplus.com', 'starvisionplusig', 'starvisionplusfb', 'starvisionplustw'),
(7, 'Visinema Pictures', 'Angga Dwimas Sasongko', 2008, '<EMAIL>', 'Jl. Djunjungan No. 890 Bandung', '08123456789', 'maxresdefault(1).jpg', 'www.visinemapictures.com', 'visinemapicturesig', 'visinemapicturesfb', 'visinemapicturestw'),
(8, 'LifeLike Pictures', '<NAME> dan <NAME>', 2008, '<EMAIL>', 'Jl. Senopati No. 654 Jakarta Selatan', '08123456789', 'unnamed.jpg', 'www.lifelikepictures.com', 'lifelikepicturesig', 'lifelikepicturesfb', 'lifelikepicturestw');
-- --------------------------------------------------------
--
-- Table structure for table `keys`
--
CREATE TABLE `keys` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`key` varchar(40) NOT NULL,
`level` int(2) NOT NULL DEFAULT 1,
`ignore_limits` tinyint(1) NOT NULL DEFAULT 0,
`is_private_key` tinyint(1) NOT NULL DEFAULT 0,
`ip_addresses` text DEFAULT NULL,
`date_created` int(11) NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `keys`
--
INSERT INTO `keys` (`id`, `user_id`, `key`, `level`, `ignore_limits`, `is_private_key`, `ip_addresses`, `date_created`) VALUES
(10, 30, '<KEY>', 1, 0, 0, NULL, 2147483647),
(11, 31, '<KEY>', 1, 0, 0, NULL, 2147483647),
(12, 32, '<KEY>', 1, 0, 0, NULL, 2147483647);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id_user` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`hak_akses` enum('admin','member') NOT NULL DEFAULT 'member'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id_user`, `nama`, `email`, `password`, `hak_akses`) VALUES
(30, 'Akbar', '<EMAIL>', <PASSWORD>', 'admin'),
(31, 'Nazzilla', '<EMAIL>', <PASSWORD>', 'admin'),
(32, 'member', '<EMAIL>', <PASSWORD>', 'member');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `film`
--
ALTER TABLE `film`
ADD PRIMARY KEY (`id_film`);
--
-- Indexes for table `homeproduction`
--
ALTER TABLE `homeproduction`
ADD PRIMARY KEY (`id_homeproduction`);
--
-- Indexes for table `keys`
--
ALTER TABLE `keys`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id_user`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `film`
--
ALTER TABLE `film`
MODIFY `id_film` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `homeproduction`
--
ALTER TABLE `homeproduction`
MODIFY `id_homeproduction` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `keys`
--
ALTER TABLE `keys`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
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>prisma/migrations/20220202002857_delete_duplicate/migration.sql
/*
Warnings:
- You are about to drop the `guestbook` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropTable
DROP TABLE "guestbook";
|
<filename>sql/load.sql
use streaker
;
load data local infile 'pbp.csv' into table pbp fields terminated by ',' optionally enclosed by '"' (game_id,away_team_id,inn_ct,bat_home_id,outs_ct,balls_ct,strikes_ct,pitch_seq_tx,away_score_ct,home_score_ct,bat_id,bat_hand_cd,resp_bat_id,resp_bat_hand_cd,pit_id,pit_hand_cd,resp_pit_id,resp_pit_hand_cd,pos2_fld_id,pos3_fld_id,pos4_fld_id,pos5_fld_id,pos6_fld_id,pos7_fld_id,pos8_fld_id,pos9_fld_id,base1_run_id,base2_run_id,base3_run_id,event_tx,leadoff_fl,ph_fl,bat_fld_cd,bat_lineup_id,event_cd,bat_event_fl,ab_fl,h_cd,sh_fl,sf_fl,event_outs_ct,dp_fl,tp_fl,rbi_ct,wp_fl,pb_fl,fld_cd,battedball_cd,bunt_fl,foul_fl,battedball_loc_tx,err_ct,err1_fld_cd,err1_cd,err2_fld_cd,err2_cd,err3_fld_cd,err3_cd,bat_dest_id,run1_dest_id,run2_dest_id,run3_dest_id,bat_play_tx,run1_play_tx,run2_play_tx,run3_play_tx,run1_sb_fl,run2_sb_fl,run3_sb_fl,run1_cs_fl,run2_cs_fl,run3_cs_fl,run1_pk_fl,run2_pk_fl,run3_pk_fl,run1_resp_pit_id,run2_resp_pit_id,run3_resp_pit_id,game_new_fl,game_end_fl,pr_run1_fl,pr_run2_fl,pr_run3_fl,removed_for_pr_run1_id,removed_for_pr_run2_id,removed_for_pr_run3_id,removed_for_ph_bat_id,removed_for_ph_bat_fld_cd,po1_fld_cd,po2_fld_cd,po3_fld_cd,ass1_fld_cd,ass2_fld_cd,ass3_fld_cd,ass4_fld_cd,ass5_fld_cd,event_id,home_team_id,bat_team_id,fld_team_id,bat_last_id,inn_new_fl,inn_end_fl,start_bat_score_ct,start_fld_score_ct,inn_runs_ct,game_pa_ct,inn_pa_ct,pa_new_fl,pa_trunc_fl,start_bases_cd,end_bases_cd,bat_start_fl,resp_bat_start_fl,bat_on_deck_id,bat_in_hold_id,pit_start_fl,resp_pit_start_fl,run1_fld_cd,run1_lineup_cd,run1_origin_event_id,run2_fld_cd,run2_lineup_cd,run2_origin_event_id,run3_fld_cd,run3_lineup_cd,run3_origin_event_id,run1_resp_cat_id,run2_resp_cat_id,run3_resp_cat_id,pa_ball_ct,pa_called_ball_ct,pa_intent_ball_ct,pa_pitchout_ball_ct,pa_hitbatter_ball_ct,pa_other_ball_ct,pa_strike_ct,pa_called_strike_ct,pa_swingmiss_strike_ct,pa_foul_strike_ct,pa_inplay_strike_ct,pa_other_strike_ct,event_runs_ct,fld_id,base2_force_fl,base3_force_fl,base4_force_fl,bat_safe_err_fl,bat_fate_id,run1_fate_id,run2_fate_id,run3_fate_id,fate_runs_ct,ass6_fld_cd,ass7_fld_cd,ass8_fld_cd,ass9_fld_cd,ass10_fld_cd)
;
load data local infile 'roster.csv' into table roster fields terminated by ',' optionally enclosed by '"'
;
load data local infile 'team.csv' into table team fields terminated by ',' optionally enclosed by '"'
;
load data local infile 'game.csv' into table game fields terminated by ',' optionally enclosed by '"'
;
-- let's create a real datetime column
alter table game add column game_start datetime
;
-- 2423 games (2000-2018) have no start time
update game set start_game_tm = 705 where start_game_tm = 0
;
-- parse the date and time for the game's starting date
update game set game_start = str_to_date(concat(game_dt,'T',(case when length(start_game_tm) = 3 then concat(substr(start_game_tm,1,1),':',substr(start_game_tm,2,2)) else concat(substr(start_game_tm,1,2),':',substr(start_game_tm,3,2)) end),'pm'), '%Y%m%dT%l:%i%p')
;
alter table game add column year int unsigned
;
update game set year = year(game_start)
;
create index game_game_id on game (game_id)
;
create index game_year on game (year)
;
insert into ab (game_id, bat_team_id, bat_lineup_id, bat_id, bat_hand_cd, pit_team_id, pit_id, pit_hand_cd, hit_fl, slg_cd, ob_fl)
select g.game_id,
bat_team_id,
bat_lineup_id,
resp_bat_id,
case when resp_bat_hand_cd = 'L' then 'L' else 'R' end,
fld_team_id as pit_team_id,
resp_pit_id,
case when resp_pit_hand_cd = 'L' then 'L' else 'R' end,
case when event_cd in (20,21,22,23) then 1 else 0 end hit_fl,
case when event_cd = 20 then 1
when event_cd = 21 then 2
when event_cd = 22 then 3
when event_cd = 23 then 4
else 0 end slg_cd,
case when event_cd in (14,15,16,20,21,22,23) then 1 else 0 end ob_fl
from pbp p
join game g using (game_id)
where event_cd in (2,3,14,15,16,18,19,20,21,22,23)
order by g.game_start, g.game_id, p.event_id
;
|
<reponame>cristiano-Hahn/payments-api
CREATE TABLE product (
id bigserial NOT NULL,
file varchar(255) NULL,
name varchar(255) NULL,
price numeric(19,2) NOT NULL,
payment_id int8 NULL,
CONSTRAINT pk_product PRIMARY KEY (id),
CONSTRAINT fk_payment FOREIGN KEY (payment_id) REFERENCES payment(id) ON UPDATE CASCADE ON DELETE CASCADE
); |
CREATE TABLE beacon_region (
uuid TEXT NOT NULL,
major INTEGER,
minor INTEGER,
CONSTRAINT beacon_region_primary PRIMARY KEY(uuid,major,minor)
); |
INSERT INTO profile(profileId, profileDisplayName, profileEmail, profileHash, profileRealName, profileWebAddress) values (unhex("95ad0914b2a343608d88414bf9d08091"),"mjbovee","<EMAIL>", "40124e125", "<NAME>", "mjbovee.com");
INSERT INTO profile(profileId, profileDisplayName, profileEmail, profileHash, profileRealName) VALUES(unhex("6e677e4bd46a4c3dbc9a5a51b6178bdd"), "bmalley", "<EMAIL>", "40124e126", "<NAME>");
INSERT INTO photo(photoId, photoProfileId, photoPath, photoSize, photoTitle) VALUES(unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("95ad0914b2a343608d88414bf9d08091"), "http://www.mjboveephoto.com", "21.2mb", "Photo I Took");
INSERT INTO comment(commentId, commentPhotoId, commentProfileId, commentDate) VALUES(unhex("86988389e4a142c18b282e4045a38e81"), unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("95ad0914b2a343608d88414bf9d08091"), "10-12-12");
INSERT INTO comment(commentId, commentPhotoId, commentProfileId, commentDate, commentContent) VALUES (unhex("e24c52f44d134e8f825b73e0d7a2fb6e"), unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("6e677e4bd46a4c3dbc9a5a51b6178bdd"), "10-10-10 10:10:10", "I'm writing a comment");
INSERT INTO `like`(likePhotoId, likeProfileId, likeDate) VALUES(unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("95ad0914b2a343608d88414bf9d08091"), "12-12-12");
INSERT INTO `like`(likePhotoId, likeProfileId, likeDate) VALUES(unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("6e677e4bd46a4c3dbc9a5a51b6178bdd"), "10-10-10");
INSERT INTO photoComment(photoCommentPhotoId, photoCommentCommentId) VALUES(unhex("a000656ef8e24517b5d9a7af552805ef"), unhex("86988389e4a142c18b282e4045a38e81"));
UPDATE profile SET profileDisplayName = "michaeljbovee91", profileRealName = "<NAME>" WHERE profileId = unhex("95ad0914b2a343608d88414bf9d08091");
DELETE FROM comment WHERE commentId = unhex("86988389e4a142c18b282e4045a38e81");
SELECT photoId, photoProfileId, photoPath, photoSize, photoTitle FROM photo WHERE photoId = unhex("a000656ef8e24517b5d9a7af552805ef");
-- simple
SELECT profile.profileId, profile.profileDisplayName, photo.photoId, photo.photoTitle FROM profile INNER JOIN photo ON photo.photoProfileId = profile.profileId WHERE photoId = unhex("a000656ef8e24517b5d9a7af552805ef");
-- complicated
SELECT photo.photoId, photo.photoProfileId, photo.photoSize, photo.photoTitle, comment.commentProfileId FROM comment INNER JOIN photoComment on comment.commentId = photoComment.photoCommentCommentId INNER JOIN photo ON photoComment.photoCommentPhotoId = photo.photoId WHERE comment.commentId = unhex("86988389e4a142c18b282e4045a38e81");
SELECT COUNT(*) FROM `like` WHERE likePhotoId = unhex("a000656ef8e24517b5d9a7af552805ef");
-- SELECT COUNT(*) FROM `like` WHERE likeTweetId = uuid; |
/****** Object: Table [dbo].[T_User_Operations] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_User_Operations](
[ID] [int] IDENTITY(10,1) NOT NULL,
[Operation] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Operation_Description] [varchar](256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_T_User_Operations] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
GRANT VIEW DEFINITION ON [dbo].[T_User_Operations] TO [DDL_Viewer] AS [dbo]
GO
|
\connect posda_files
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.0
-- Dumped by pg_dump version 13.1 (Ubuntu 13.1-1.pgdg18.04+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;
--
-- Data for Name: background_buttons; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.background_buttons (background_button_id, operation_name, object_class, button_text, tags) FROM stdin;
25 QuickCheckPublicPosdaConsistLike Posda::ProcessPopup Quick Public Posda Like Collection {public_posda_consistency}
29 UpdateActivityTimepoint Posda::ProcessPopup Update Activity Timepoint {activity_timepoints}
27 CreateActivityTimepointFromCollectionSite Posda::ProcessPopup Create Activity Timepoint {activity_timepoints}
28 FixBadSopInstanceLungFusedCtPathology Posda::ProcessPopup Fix Bad SOP Instances in Lung-Fused-CT-Pathology {"Curation of Lung-Fused-CT-Pathology"}
30 VisualReviewFromTimepoint Posda::ProcessPopup Schedule Visual Review {activity_timepoints}
31 PhiReviewFromTimepoint Posda::ProcessPopup Schedule PHI Scan {activity_timepoints}
32 ConsistencyFromTimePoint Posda::ProcessPopup Check Consistency {activity_timepoints}
33 LinkRtFromTimepoint Posda::ProcessPopup Link RT Data for ItcTools {activity_timepoints}
34 CheckStructLinkagesTp Posda::ProcessPopup Check Structure Set Linkages {activity_timepoints}
35 DispositionNeededWorksheet Posda::ProcessPopup Make Worksheet for Diapositions Needed {phi_maint}
36 PhiPublicScanTp Posda::ProcessPopup Public Phi Scan Based on Current TP by Activity {activity_timepoints}
37 SummarizeStructLinkage Posda::ProcessPopup Summarize Structure Set Linkages for a File {activity_timepoint_support}
38 BackgroundDciodvfyTp Posda::ProcessPopup Run Dciodvfy for Time Point {activity_timepoints}
39 CondensedActivityTimepointReport Posda::ProcessPopup Produce Condensed Activity Timepoint Report {activity_timepoints}
26 AnalyzeSeriesDuplicates Posda::ProcessPopup Analyze Series With Duplicates {"ACRIN-FMISO-Brain Duplicate Elimination",dup_sops,activity_timepoint_support}
40 FilesInTpNotInPublic Posda::ProcessPopup Find Files in Tp, not in Public {activity_timepoints}
41 CompareSopsInTpToPublic Posda::ProcessPopup Compare Corresponding SOPs in Time Point to Public {activity_timepoints}
42 AnalyzeSeriesDuplicatesForTimepoint Posda::ProcessPopup Analyze Series In Time Point with Duplicates {activity_timepoint_support}
43 CompareSopsTpPosdaPublic Posda::ProcessPopup Compare Sops in Timepoint, Posda, and Public {activity_timepoint_support}
44 FixFilesWithNullNumberOfFrames Posda::ProcessPopup Fix Files With Null Number of Frames {Exceptional-Responders_NCI_Oct2018_curation}
45 FixCtInExceptionalRespondersWithNullNumberOfFrames Posda::ProcessPopup Fix CT Files in Exceptional-Responders with Null Number of Frames {Exceptional-Responders_NCI_Oct2018_curation}
46 PrivateTagReports Posda::ProcessPopup Create Private Tag Vr and Disposition Reports {phi_maint}
47 BackgroundPrivateDispositionsTp Posda::ProcessPopup Apply Background Dispositions To Timepoint (non baseline date) {activity_timepoints}
48 BackgroundPrivateDispositionsTpBaseline Posda::ProcessPopup Apply Background Dispositions To Timepoint (baseline date) {activity_timepoints}
49 MakeWeeklyFilesReport Posda::ProcessPopup Generate Report of File Uploads By Type By Week {downloads_by_date}
50 CompareSopsTpPosdaPublicLike Posda::ProcessPopup Compare Sops in Timepoint, Posda, and Public like Collection {activity_timepoint_support}
1 ImportFromDicomFileEdit Posda::ProcessPopup Import Edits {edit_files}
2 CheckPublicMissingFilesInSeriesByCollection Posda::ProcessPopup Check Missing Files Public {bills_test}
3 CopyCollectionToStaging Posda::ProcessPopup Copy Files To Dir {bills_test}
4 CheckStructLinkagesByCollectionSite Posda::ProcessPopup Check Struct Links {struct_linkages}
5 CheckPosdaPublicConsistency Posda::ProcessPopup Check Public Posda {public_posda_consistency}
6 BackOutEdit Posda::ProcessPopup Backout Import Edits {edit_files}
7 QuickCheckPosdaPublicConsistency Posda::ProcessPopup Quick Check Posda PUblic {public_posda_consistency}
8 SetUpPublicToPosdaCopy Posda::ProcessPopup Set Up Copy of Collection From Public To Posda {public_posda_consistency}
9 StartPublicToPosdaCopy Posda::ProcessPopup Start a waiting Public to Posda Copy {public_posda_consistency}
10 DciodvfyReport Posda::ProcessPopup Dciodvfy Report {dciodvfy}
11 StartFixPublicToPosdaCopy Posda::ProcessPopup Retry failed Public Copy {public_posda_consistency}
12 LookForDupSopsInPublicByCollectionSite Posda::ProcessPopup Look for Conflicting Sops already in Public By Collection, Site {comparing_posda_to_public}
13 DeletePvtExceptCtp Posda::ProcessPopup Copy Collection to Scratch Deleting All Private tags exept CTP tags {bills_test}
14 CheckRtReferenceChain Posda::ProcessPopup Check Rt Linkage Chain {struct_linkages}
56 InitialAnonymizerCommandsTp Posda::ProcessPopup Produce Initial Anonymization File for Timepoint {initial_anonymization,patient_mapping,activity_timepoints}
20 RejectEdits Posda::ProcessPopup Reject Edits {find_patients,check_edits}
21 ImportEdits Posda::ProcessPopup Import Edits {find_patients,check_edits}
22 CheckEditCurrent Posda::ProcessPopup Check If Edits Current {find_patients,check_edits}
24 NonDicomPhiScan Posda::ProcessPopup Phi Scan of Non-Dicom Files {non_dicom_phi}
18 ProcessVisualReview Posda::ProcessPopup Process Visual Review Results {visual_review_new_workflow,visual_review_reports}
51 CompareSopsTpPosdaPublicCollectionLikeSiteEqual Posda::ProcessPopup Compare Sops in Timpoint, Posda, and Public like Collection for Site {activity_timepoint_support}
52 AdHocReportForTracy Posda::ProcessPopup Make CPTAC Report {clin_qual}
53 HideFilesVisbleInBadEquivalenceClassesByVisualReviewId Posda::ProcessPopup Hide Files in Equivalence Classes Marked Bad {visual_review_status}
54 BackgroundLinkActivityToTemp Posda::ProcessPopup Link Files in Activity to Temp Directory {send_series}
19 RepealEdits Posda::ProcessPopup Repeal Edits {find_patients,check_edits,edit_status}
16 FirstPassPhiByCollection Posda::ProcessPopup First Pass Phi By Collection {phi_status,simple_phi}
15 FirstPassPhiScanAndReport Posda::ProcessPopup First Pass Phi by collection, site and (optional) batch {phi_status,simple_phi}
17 FullPhiById Posda::ProcessPopup Full Phi Report by Scan Id {phi_status,simple_phi}
23 PhiPublicScan Posda::ProcessPopup Public Scan By Collection, Site {phi_status,simple_phi}
55 CreateActivityTimepointFromImportName Posda::ProcessPopup Create Activity Timepoint From Import Description {activity_timepoints}
\.
--
-- Data for Name: chained_query; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.chained_query (chained_query_id, from_query, to_query, caption) FROM stdin;
1 PixelTypes FileIdByPixelType files
2 HideEvents HideEventInfo Info
3 WhatHasComeInRecentlyWithSubject ToExamineRecentFiles files
4 CtSeriesWithCtImageInfoByCollection CtImageDataConsistencyAcrossSeries Image Data Consistent?
5 CtSeriesWithCtImageInfoByCollection SeriesReport rpt
6 QueriesRunning GetQuery drill
7 VisibleColSiteWithCtpLikeSite DistinctSeriesByCollectionSite Get Series
8 VisualReviewScanInstances VisualReviewStatusById Details
9 ListActivities InboxContentByActivityId Details
10 VisualReviewStatusById VisualReviewStatusDetails Details
11 ListOpenActivities InboxContentByActivityId Details
12 ListOpenActivities CloseActivity close
13 ListOpenActivitiesWithItems InboxContentByActivityId Details
14 ListOpenActivitiesWithItems CloseActivity close
15 ListClosedActivities InboxContentByActivityId Details
16 ListClosedActivitiesWithItems ReOpenActivity re-open
17 ListClosedActivitiesWithItems InboxContentByActivityId Details
18 ListClosedActivities ReOpenActivity re-open
19 ActivityStuffMoreWithEmailByUser LinkEmailToActivity file
20 ActivityStuffMoreWithEmailByUser UnlinkEmailFromActivity unfile
21 ActivityStuffMoreWithEmailByUserDateRange LinkEmailToActivity file
22 ActivityStuffMoreWithEmailByUserDateRange UnlinkEmailFromActivity unfile
\.
--
-- Data for Name: chained_query_cols_to_params; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.chained_query_cols_to_params (chained_query_id, from_column_name, to_parameter_name) FROM stdin;
1 samples_per_pixel samples_per_pixel
1 bits_allocated bits_allocated
1 bits_stored bits_stored
1 high_bit high_bit
1 pixel_representation pixel_representation
1 planar_configuration planar_configuration
1 photometric_interpretation photometric_interpretation
2 when_done day_of_change
2 reason_for reason_for
2 user_name user_name
3 subj patient_id
3 time import_time_1
3 time import_time_2
4 series_instance_uid series_instance_uid
5 series_instance_uid series_instance_uid
6 pid pid
7 collection project_name
7 site site_name
8 id id
9 activity_id activity_id
12 activity_id activity_id
12 activity_id activity_id
13 activity_id activity_id
14 activity_id activity_id
15 activity_id activity_id
16 activity_id activity_id
17 activity_id activity_id
10 review_status review_status
10 processing_status processing_status
10 id visual_review_instance_id
10 dicom_file_type dicom_file_type
11 activity_id activity_id
18 activity_id activity_id
19 user_inbox_content_id user_inbox_content_id
20 activity_id activity_id
20 user_inbox_content_id user_inbox_content_id
21 activity_id activity_id
21 user_inbox_content_id user_inbox_content_id
22 activity_id activity_id
22 user_inbox_content_id user_inbox_content_id
\.
--
-- Data for Name: popup_buttons; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.popup_buttons (popup_button_id, name, object_class, btn_col, is_full_table, btn_name) FROM stdin;
2 SopsDupsInDifferentSeriesByCollectionSite Posda::PopupImageViewer file_id f View
3 SopsDupsInDifferentSeriesByCollectionSite Posda::PopupCompare sop_instance_uid f Compare
1 %EditResults% Posda::PopupCompareFilesPath \N f Compare Files
4 DupSopsByCollectionSiteDateRange Posda::PopupCompare sop_instance_uid f Compare
5 DuplicateFilesBySop Posda::PopupCompare sop_instance_uid f Compare
6 DuplicateFilesBySop Posda::PopupCompare sop_instance_uid f Compare
7 DuplicateFilesBySop Posda::PopupCompare sop_instance_uid f Compare
9 GetSimilarDupContourCounts Posda::PopupCompare \N t Compare
10 DistinctSeriesByCollection Posda::ProcessPopup \N t BackgroundPhiScan
11 DistinctSeriesByCollection Posda::ProcessPopup \N t BackgroundDciodvfySeries
12 DistinctSeriesByCollection Posda::ProcessPopup \N t DciodvfySeriesReport
13 DistinctStudySeriesByCollection Posda::ProcessPopup \N t BackgroundApplyPrivateDispositions
14 GetDoses Posda::ProcessPopup \N t BackgroundDoseLinkageCheck
15 GetPlans Posda::ProcessPopup \N t BackgroundPlanLinkageCheck
16 GetSsByCollection Posda::ProcessPopup \N t BackgroundStructLinkageCheck
17 DistinctStudySeriesByCollectionSite Posda::ProcessPopup \N t BackgroundApplyPrivateDispositions
18 DistinctSeriesByCollectionSite Posda::ProcessPopup \N t BackgroundPhiScan
19 DistinctSeriesByCollectionSite Posda::ProcessPopup \N t BackgroundDciodvfySeries
20 DistinctSeriesByCollectionSite Posda::ProcessPopup \N t DciodvfySeriesReport
21 DistinctSeriesByCollectionSitePublic Posda::ProcessPopup \N t BackgroundPhiScan
22 % Quince series_instance_uid f view
8 % choose file_id f view
73 foo Posda::TestPopup id \N test
74 VisualReviewStatusById Posda::TestRedirectPopup id \N review
67 VisualReviewScanInstances Posda::ProcessPopup fubar f CreateActivityTimepoint
36 ColSiteDetails Posda::ProcessPopup \N t PhiScan
37 DistinctSeriesByPatient Posda::ProcessPopup \N t LinkSeries
38 DistinctSeriesByPatient Posda::ProcessPopup \N t PhiScan
39 DistinctSeriesByPatientAdvanced Posda::ProcessPopup \N t CheckConsistency
40 DistinctSeriesByPatientAdvanced Posda::ProcessPopup \N t DicomValidation
41 DistinctSeriesByPatientAdvanced Posda::ProcessPopup \N t LinkForDownload
42 DistinctSeriesByPatientAdvanced Posda::ProcessPopup \N t PrivateDispositions
43 PatientDetailsWithBlankCtp Posda::ProcessPopup \N t InitialAnonymizerCommands
44 PatientDetailsWithNoCtp Posda::ProcessPopup \N t InitialAnonymizerCommands
45 SummaryOfToFiles Posda::ProcessPopup \N t LinkSeries
46 SummaryOfToFilesForPatient Posda::ProcessPopup \N t LinkSeries
63 InboxContentByActivityId DbIf::ShowSubprocessLines sub_id \N view
47 GetZipUploadEventsByDateRangeNonDicomOnly Posda::ProcessPopup \N t ProcessRADCOMPUpload
49 GetXlsToConvert Posda::ProcessPopup \N t XlsConverter
50 GetXlsxToConvert Posda::ProcessPopup \N t XlsxConverter
48 GetDocxToConvert Posda::ProcessPopup \N t RadcompSubmissionConverter
51 GeFromToFilesFromNonDicomEditCompare choose_to to_file_id f view
52 GeFromToFilesFromNonDicomEditCompare choose_from from_file_id f view
53 AllPatientDetailsWithNoCtpLike Posda::ProcessPopup \N t InitialAnonymizerCommands
55 DistinctSeriesByCollectionSite Posda::ProcessPopup \N t VisualReview
56 SeriesWithDupSopsByCollectionSiteNew Posda::ProcessPopup \N t AnalyzeSeriesDuplicates
57 GetFilesWithNoSeriesInfoByCollection Posda::ProcessPopup \N t BackgroundProcessModules
58 InboxContentAll Posda::ProcessPopup \N t FileAndDismissNotifications
59 VisualReviewStatusById Posda::ProcessPopup \N t MakePassThru
61 VisualReviewStatusById Posda::ProcessPopup \N t ProcessVisualReview
62 VisualReviewStatusById Posda::ProcessPopup \N t SendBlankToDest
64 VisualReviewStatusDetails Posda::ProcessPopup \N t RetryFailedProjections
54 InboxContentByActivityId choose_spreadsheet spreadsheet_file_id \N view
60 VisualReviewStatusDetails Posda::ProcessPopup \N t HideEquivalenceClasses
65 VisualReviewStatusDetails Posda::ProcessPopup \N t ChangeReviewStatus
66 VisualReviewStatusById Posda::ProcessPopup \N t ApplyDispositions
68 DistinctVisibleSeriesByCollectionSite Posda::ProcessPopup \N t CreateActivityTimepointFromSeriesList
69 DistinctSeriesByPatientId Posda::ProcessPopup \N t CreateActivityTimepointFromSeriesList
70 ListSrPublic DbIf::ShowSr dicom_file_uri \N view
71 ListSrPosda DbIf::ShowSr file_path \N view
72 ListSrPosdaHidden DbIf::ShowSr file_path \N view
75 GetEditStatusByDisposition DbIf::EditStatus id f info
35 AllPatientDetailsWithNoCtp% Posda::ProcessPopup \N t InitialAnonymizerCommands
\.
--
-- Data for Name: query_tabs; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.query_tabs (query_tab_name, query_tab_description, defines_dropdown, sort_order, defines_search_engine) FROM stdin;
count_check for checking counts t 10 f
curation queries used in curation t 20 f
scripting queries used in scripts t 50 f
db_admin queries used for db_maintenance t 30 f
legacy compatable with old interface t 90 f
bills_test_queries Bills testing ground t 100 f
Consistency Consistency Checks t 50 f
DicomValidation DICOM validation (dciodvfy) t 40 f
Finalize Finalize, download, etc t 60 f
PHI used for PHI scans etc t 30 f
Phi Phi scanning and review operations t 30 f
UploadedData Operations on uploaded data t 10 f
VisualReview Visual review related operations t 20 f
initial_upload used in initial uploads of tar files t 10 f
Activities Operartions related to reviewing Acivities t 60 f
View Structured Reports View Structured Reports t 1 f
Status Collects Status Related Filters t 60 f
\.
--
-- Data for Name: query_tabs_query_tag_filter; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.query_tabs_query_tag_filter (query_tab_name, filter_name, sort_order) FROM stdin;
count_check view_posda_backlog 1
count_check downloads_by_date 2
count_check counts_patient_status 3
curation duplicate_sop_evaluation 1
curation duplicate_sop_resolution 2
curation linkage_check 3
curation consistency_check 4
scripting used_in 1
curation phi_review 5
curation dicom_batch_file_editing 6
curation send_data_via_dicom 6
db_admin db_stats 10
curation visual_review_scheduling 7
scripting for_popups 2
db_admin db_config 20
curation dciodvfy 8
bills_test_queries under_development 1
legacy .Unlimited 1
legacy .Show No Tags 1
legacy universal 3
bills_test_queries old_queries 10
bills_test_queries linkage 3
scripting for_public_posda_compare 3
bills_test_queries posda_db_populate 4
bills_test_queries copy_from_public 5
bills_test_queries comparing_public_to_posda 6
db_admin postgres_stats 30
bills_test_queries for_ct_evaluation 50
bills_test_queries subprocess 60
bills_test_queries non_dicom_editing 70
bills_test_queries database_fixup 80
UploadedData with_ctp_anonymization 10
UploadedData without_ctp_anonymization 20
bills_test_queries bills_ad_hoc_scripts 90
VisualReview select_for_visual_review 20
VisualReview visual_review_status 30
VisualReview visual_review_reports 40
bills_test_queries activities 100
bills_test_queries activity_based 200
Activities activities 1
bills_test_queries trace_edits 300
Phi PhiStatus 1
Activities activity_timepoints 2
View Structured Reports View Structured Reports 1
scripting dicom_file_table 4
Activities activity_based 3
Status edit_status 10
Status visual_review_status 5
Status phi_status 7
\.
--
-- Data for Name: query_tag_filter; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.query_tag_filter (filter_name, tags_enabled) FROM stdin;
.Show No Tags {}
.Unlimited {}
for_popups {universal,used_in_process_popup}
view_posda_backlog {backlog_analysis_reporting_tools,backlog_round_history,backlog_status,universal}
review_roles {universal,roles}
visual_review_tracking_processing {visual_review_results,universal}
send_data_via_dicom {universal,search_series,send_series,send_directory}
manage_posda_backlog {universal,backlog_status,backlog}
db_config {query_tags,query_tabs,popups}
counts_patient_status {universal,count_queries,patient_status,adding_ctp}
dciodvfy {dciodvfy,universal}
duplicate_sop_evaluation {universal,dup_sops,sops_different_series,series_report}
dicom_batch_file_editing {hash_unhashed,hide_files,apply_disposition,universal,edit_files,show_hidden}
monthly_report_queries {universal,end_of_month}
for_ct_evaluation {ct_image_consistency}
database_fixup {dicom_file_type,reimport_queries}
linkage_check {universal,plan_linkages,dose_linkages,struct_linkages,dose_linkages}
used_in {universal,used_in_simple_phi,used_in_file_import_into_posda,used_in_import_edited_files,used_in_reconcile_tag_names,used_processing_structure_set_linkages,used_in_phi_maint,used_in_background_processing,used_in_dciodvfy,used_in_file_migration,used_in_linkage_check}
visual_review_scheduling {universal,visual_review,visual_review_new_workflow}
for_public_posda_compare {public_posda_counts}
linkage {used_in_dose_linkage_check,used_in_plan_linkage_check,used_in_structure_linkage_check,old_linkage_checks,used_in_struct_linkage_check}
subprocess {subprocess}
consistency_check {series_consistency,study_consistency,universal,public_posda_consistency}
old_queries {for_bill,for_bill_counts,for_bill_study_consistency,for_bill_series_consistency,old_visibility}
posda_db_populate {posda_db_populate}
copy_from_public {copy_from_public}
comparing_public_to_posda {comparing_posda_to_public}
db_stats {q_stats,q_stats_by_date,q_list,queries,query_tags,universal,schema}
phi_review {universal,phi_schedule,simple_phi,phi_maint,meta_q_queries,scan_status}
duplicate_sop_resolution {universal,dup_sops,hide_dup_sops,distinguished_digest}
phi_status {phi_status}
select_for_phi {select_for_phi}
series_for_phi {series_selection}
phi_reports {phi_reports}
find_patients {find_patients,mapping_tables,for_scripting}
download_results {patient_queries}
visual_review_status {visual_review_status,visual_review_new_workflow}
trace_edits {trace_edits}
non_dicom_editing {non_dicom_edit,non_dicom_phi,non_dicom_phi_status,non_dicom_import,non_dicom_reject,radcomp}
bills_ad_hoc_scripts {bills_ad_hoc_scripts}
select_for_visual_review {visual_review_selection}
visual_review_reports {visual_review_reports}
with_ctp_anonymization {ctp_patients,ctp_col_site,ctp_details,check_edits,hide,check_dups}
PhiStatus {scan_status}
activities {activities,activity_support}
without_ctp_anonymization {no_ctp_patients,no_ctp_details,patient_mapping,insert_pat_mapping,import_event}
View Structured Reports {view_structured_reports}
under_development {universal,hide_events,bills_test,for_tracy,radcomp,non_dicom_phi,non_dicom_phi_status,non_dicom_edit,testing_edit_objects}
dicom_file_table {adding_pixels_to_dicom_file}
downloads_by_date {downloads_by_date,import_events,universal}
edit_status {edit_status}
activity_timepoints {activity_timepoints,activity_timepoint_support,compare_series,clin_qual,manifests}
activity_based {"ACRIN-FMISO-Brain Duplicate Elimination","Curation of Lung-Fused-CT-Pathology","CPTAC Bolus September 2018","ACRIN-NSCLC-FDG-PET Curation",Exceptional-Responders_NCI_Oct2018_curation,"Test Case based on Soft-tissue-Sarcoma",QIN-GBM-DSC-MRI-DRO/Barrow,"Reconcile Public and Posda for CPTAC"}
postgres_stats {database_size,table_size,postgres_query_stats,invoking_user}
\.
--
-- Data for Name: role; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.role (role_name) FROM stdin;
legacy_bbennett
legacy_ksmith01
legacy_priorf
legacy_rddobbins
legacy_smberryman
legacy_tracyn
workflow_1
curator
developer
SrViewer
\.
--
-- Data for Name: role_tabs; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.role_tabs (role_name, query_tab_name, sort_order) FROM stdin;
legacy_bbennett UploadedData 10
legacy_bbennett bills_test_queries 20
legacy_bbennett count_check 30
legacy_bbennett curation 40
legacy_bbennett db_admin 50
legacy_bbennett legacy 60
legacy_bbennett scripting 70
legacy_ksmith01 bills_test_queries 10
legacy_ksmith01 count_check 20
legacy_ksmith01 curation 30
legacy_ksmith01 db_admin 40
legacy_ksmith01 legacy 50
legacy_ksmith01 scripting 60
legacy_priorf count_check 10
legacy_priorf curation 20
legacy_priorf legacy 30
legacy_priorf scripting 40
legacy_rddobbins count_check 10
legacy_rddobbins curation 20
legacy_rddobbins db_admin 30
legacy_rddobbins legacy 40
legacy_rddobbins scripting 50
legacy_smberryman curation 10
legacy_smberryman legacy 20
legacy_tracyn bills_test_queries 10
legacy_tracyn count_check 20
legacy_tracyn curation 30
legacy_tracyn legacy 40
legacy_tracyn scripting 50
curator UploadedData 10
curator VisualReview 20
curator Phi 30
developer bills_test_queries 20
developer count_check 30
developer curation 40
developer db_admin 50
developer legacy 60
developer scripting 70
curator Activities 40
SrViewer View Structured Reports 1
curator Status 30
\.
--
-- Data for Name: spreadsheet_operation; Type: TABLE DATA; Schema: dbif_config; Owner: -
--
COPY dbif_config.spreadsheet_operation (operation_name, command_line, operation_type, input_line_format, tags, can_chain, outdated, worker_priority) FROM stdin;
CompareDuplicateSops CompareDupSopList.pl legacy <sop_instance_uid> {dup_sops} \N f 0
ScanPhi PhiScan.pl <type> "<description>" legacy <series_instance_uid>, <signature> {phi_review} \N f 0
LinkDirectory MakeLinkedDirectory.pl <target_dir> legacy <path>, <sop_instance_uid> {send_series} \N f 0
AddInitialStatus PopulatePatStat.pl legacy <patient_id>, <status> {patient_status} \N f 0
ChangePatientStatus UpdatePatStat.pl <who> "<why>" legacy <patient_id>, <old_status>, <new_status> {patient_status} \N f 0
SendSeriesToDestination SendSetOfSeriesToDestination.pl <host> <port> <called> <calling> <user> "<reason>" legacy <series_instance_uid> {send_series} \N f 0
UpdateCollectionPrio UpdateBacklogPriorities.pl legacy <collection>&<priority> {backlog_status} \N f 0
RepairBadVrs RepairBadVrs.pl <?bkgrnd_id?> <activity_id> <notify> background_process <file_id> {update_timepoint,activities} \N f 0
CompareIntakeFilesToPublicFiles CompareIntakeFilesToPublicFiles.pl <report_file> <notify> legacy <sop_instance_uid> <file_in_intake> <file_in_public> {compare_collection_site} \N f 0
CompareDuplicateSopFirstInSeries CompareDupSopSeriesList.pl legacy <series_instance_uid> {dup_sops} \N f 0
BackgroundCompareDupSops BackgroundCompareDupSopList.pl <file_name> "<notify>" legacy <sop_instance_uid>&<file_id>&<path>&<first_loaded> {dup_sops} \N f 0
BackgroundCompareDuplicateSopFirstInSeries BackgroundCompareDupSopSeriesList.pl <file_name> "<notify>" legacy <series_instance_uid> {dup_sops} \N f 0
TdrAndPhiReports PrepareTdrAndPhiReport.pl legacy <id>&<TdrReportFile>&<PhiReportFile>&<notify> {phi_review} \N f 0
EquivalenceClasses BatchCreateSeriesEquivalenceClasses.pl <notify> legacy <series_instance_uid> {visual_review} \N f 0
BackgroundCompareSopsInMultipleSeries BackgroundCompareSopsInMultipleSeries.pl <file_name> "<notify>" legacy <series_instance_uid>&<sop_instance_uid>&<file_id>&<file_path> {sops_different_series} \N f 0
BulkHashStructUids BulkHashStructUids.pl <dir> <uid_root> <notify> legacy <sop_instance_uid> {hash_unhashed} \N f 0
BulkHashDoseLinks BulkHashDoseLinks.pl <dir> <uid_root> <notify> legacy <sop_instance_uid> {hash_unhashed} \N f 0
ScanDirPhi PhiDirScan.pl <dir> "<description>" legacy {phi_review} \N f 0
UpdatePrivateDispositions UpdatePrivateDisposition.pl <who> "<why>" legacy <element_signature>&<vr>&<disposition> {phi_maint} \N f 0
SimplePhiScan PhiSimpleScan.pl "<description>" <file_query_name> <notify> legacy <series_instance_uid> {simple_phi} \N f 0
MakeWeeklyFilesReport MakeWeeklyLoadReport.pl <?bkgrnd_id?> <notify> <from> <to> background_process \N {downloads_by_date} \N f 0
BackgroundDciodvfySeries BackgroundDciodvfySeries.pl <?bkgrnd_id?> "<description>" <type> <notify> background_process <series_instance_uid> {dciodvfy} \N f 0
UpdateSimplePrivateDisposition UpdateSimplePrivateDisposition.pl <who> "<why>" legacy <id>&<disp> {phi_maint} \N f 0
HideSeriesWithStatus HideBatchSeriesWithStatus.pl <who> "<why>" legacy <series_instance_uid> {hide_files,hide_dup_sops} \N f 0
HideEarlyDupSopsInSeries HideBatchEarlySopDupsInSeries.pl <who> "<why>" legacy <series_instance_uid> {hide_files,hide_dup_sops} \N f 0
BackgroundPhiScan PhiBackgroundScan.pl <?bkgrnd_id?> "<description>" <file_query_name> <notify> background_process <series_instance_uid> {background,simple_phi} \N f 0
BackgroundCompareFromTo BackgroundCompareFromToFiles.pl <?bkgrnd_id?> <notify> background_process <sop_instance_uid>&<from_file>&<to_file> {dup_sops,edit_files} \N f 0
FindSeriesInScanWithPhi FindSeriesInScanWithPhi.pl <?bkgrnd_id?> <scan_id> <notify> background_process <element>&<vr>&<value>&<description> {simple_phi} \N f 0
ApplyPrivateDisposition CsvApplyPrivateDisposition.pl <dest_dir> <uid_root> <offset> <low_date> <high_date> legacy <patient_id>&<study_instance_uid>&<series_instance_uid> {send_series,apply_disposition} \N f 0
MakeSelectedTagValueReport MakeSelectedTagValueReport.pl /cache/UserData/DbIf/PreparedReports/<report_file_name> <notify> legacy <element_signature>&<vr>&<disposition>&<name_chain>&<num_phi_values>&<num_simple_phi_values> {phi_maint} \N f 0
MakeEditProposal MakeEditProposal.pl <?bkgrnd_id?> <scan_id> <notify> background_process <element>&<vr>&<value>&<description> {simple_phi} \N f 0
BatchEditBySop BatchEditDicomFile.pl <?bkgrnd_id?> /nas/public/posda/edited/<rel_dest_root> <who> "<edit_description>" <notify> background_process <command>&<arg1>&<arg2>&<arg3>&<arg4> {edit_files} \N f 0
HideFilesWithStatus HideFilesWithStatus.pl <who> "<why>" legacy <file_id>&<old_visibility> {hide_files,hide_dup_sops} \N f 0
ApplyHnsccEdits ApplyHnsccEdits.pl legacy <new_file>&<element>&<new_value> {} \N f 0
ApplyPublicPrivateDisposition CsvApplyPublicAndPrivateDisposition.pl <dest_dir> <uid_root> <offset> <low_date> <high_date> <sop_class_uid> "<name>" legacy <patient_id>&<study_instance_uid>&<series_instance_uid> {} \N f 0
CreatePublicDispositionTable CreatePublicDispositionTable.pl <sop_class_uid> "<Description>" <who> legacy <Tag>^<VR>^<Disposition>^<NameChain> {} \N f 0
ExtractZ ExtractZ.pl legacy <file_id>&<unique_pixel_data_id>&<ipp> {} \N f 0
LinkFileHierarchy LinkFileHierarchy.pl <Destination> legacy <patient_id> <study_instance_uid> <series_instance_uid> {} \N f 0
OnlyIn OnlyIn.pl Posda Intake legacy <SeriesInPosda>, <SeriesInIntake> {} \N f 0
PatConsistency CheckPatConsistency.pl "<collection>" <patient_id> legacy {} \N f 0
PipeCommand1 PipeCommand1.pl <var1> <var2> 1 2 3 legacy <vals1>,<vals2>,<vals3> {} \N f 0
SeriesConsistency CheckSeriesConsistency.pl <series_instance_uid> legacy {} \N f 0
StudyConsistency CheckStudyConsistency.pl <study_instance_uid> legacy {} \N f 0
SymLinkToIntake SymLinkToIntake.pl /cache/bbennett/Symlinks legacy <PID>, <Modality>, <SopInstance>, <FilePath> {} \N f 0
TestCommand TestCommand.pl <host> <port> <called> <calling> <series_instance_uid> legacy {} \N f 0
UpdateKnowlegeBase UpdateKnowledgeBase.pl <who> "<why>" legacy <Tag>^<VR>^<Disposition>^<NameChain> {} \N f 0
UnHideFilesWithStatus UnHideFilesWithStatus.pl <who> "<why>" legacy <file_id>&<old_visibility> {hide_files,hide_dup_sops} \N f 0
SplitPdxPilot GeneratePdxEdits.pl <?bkgrnd_id?> <rel_dest_root> <notify> background_process <patient_id>&<new_patient_id>&<new_study_desc>&<new_series_desc> {bills_test} \N f 0
CheckCounts1 CompareCounts1.pl <?bkgrnd_id?> "<collection>" <uid_root> "<site>" "<notify>" background_process <id>&<study_instance_uid>&<series_instance_uid>&<num_files> {bills_test} \N f 0
BackgroundDoseLinkageCheck BackgroundDoseLinkageCheck.pl <?bkgrnd_id?> <notify_email> background_process <file_id>&<collection>&<site>&<patient_id>&<series_instance_uid> {background} \N f 0
DciodvfySeriesReport BackgroundDciodvfySeriesReport.pl <?bkgrnd_id?> "<description>" <scan_id> /cache/UserData/DbIf/PreparedReports/<report_file_name> <notify> background_process <series_instance_uid> {dciodvfy} \N f 0
CopyBySeriesToScratch CopyBySeriesToScratch.pl <to_dir> <notify> legacy <patient_id>&<study_instance_uid>&<series_instance_uid> {send_series,apply_disposition} \N f 0
BackgroundPlanLinkageCheck BackgroundPlanLinkageCheck.pl <?bkgrnd_id?> <notify_email> background_process <file_id>&<collection>&<site>&<patient_id>&<series_instance_uid> {background} \N f 0
CompareSpreadsheetToPosda compare_spreadsheet_to_posda.py <?bkgrnd_id?> "<collection>" "<site>" "<notify>" background_process <filename>,<collection>,<site>,<patient>,<series>,<sop>,<md5sum>,<size> {background} \N f 0
SendPublicSeriesToDestination SendPublicSetOfSeriesToDestination.pl <host> <port> <called> <calling> legacy <series_instance_uid> {send_series} \N f 0
CompareSpreadsheetToIntake compare_spreadsheet_to_intake.py <?bkgrnd_id?> "<collection>" "<site>" "<notify>" background_process <filename>,<collection>,<site>,<patient>,<series>,<sop>,<md5sum>,<size> {background} \N f 0
BatchEditBySop2 BatchEditDicomFile2.pl <?bkgrnd_id?> /cache/UserData/DbIf/PreparedReports/<report_file> /nas/public/posda/edited/<rel_dest_root> <who> "<edit_description>" <notify> background_process <command>&<arg1>&<arg2>&<arg3>&<arg4> {edit_files} \N f 0
BackgroundStructLinkageCheck BackgroundStructLinkageCheck.pl <?bkgrnd_id?> <notify_email> background_process <file_id>&<collection>&<site>&<patient_id>&<series_instance_uid> {background} \N f 0
BackgroundApplyPrivateDispositions BackgroundApplyPrivateDispositions.pl <?bkgrnd_id?> <to_dir> <uid_root> <offset> <notify> background_process <patient_id>&<study_uid>&<series_uid> {edit,send_series} \N f 0
SumPatients SumPatients.pl <?bkgrnd_id?> "/cache/UserData/DbIf/PreparedReports/<report_file>" <notify> background_process <id>&<study>&<series>&<num_files> {bills_test} \N f 0
BackgroundUpdatePrivatedDispositonVr BackgroundUpdatePrivateDispositionsVr.pl <?bkgrnd_id?> "<why>" <notify> background_process <element_sig_pattern>&<vr>&<disp> {phi_maint} \N f 0
TestNewDicomCompare TestNewDicomCompare.pl <?bkgrnd_id?> <edit_file_id> <notify> background_process <sop_instance_uid>&<from_file>&<to_file> {bills_test} \N f 0
CheckCounts CompareCounts.pl <?bkgrnd_id?> "<collection>" "<site>" <notify> background_process <id>&<study>&<series>&<num_files> {bills_test} \N f 0
ImportEditedFiles ImportEditedFiles.pl <?bkgrnd_id?> <report_file_id> "/cache/UserData/DbIf/PreparedReports/<import_report>" "<edit_comment>" <notify> background_process <sop_instance_uid>&<from_digest>&<to_file>&<to_digest>&<status> {edit_files} \N f 0
CheckCounts2 CompareCounts2.pl <?bkgrnd_id?> "<collection>" <uid_root> "<site>" "<notify>" background_process <id>&<study_instance_uid>&<series_instance_uid>&<num_files> {bills_test} \N f 0
FixAcrinFiles CsvFixAcrin.pl <?bkgrnd_id?> <to_dir> <uid_root> <low_date> <high_date> <notify> background_process <patient_id>&<study_uid>&<series_uid>&<offset_pat_id>&<offset> {bills_test} \N f 0
CheckPublicMissingFilesInSeriesByCollection CheckPublicMissingFilesInSeriesByCollection.pl <?bkgrnd_id?> "<collection>" <notify> background_process \N {bills_test} \N f 0
AnnotateCountsSpreadsheet AnnotateCountsSpreadsheet.pl <?bkgrnd_id?> "<notify>" background_process <PID>|<ImageType>|<Modality>|<Images>|<StudyDate>|<StudyDescription>|<SeriesDescription>|<SeriesNumber>|<StudyInstanceUID>|<SeriesInstanceUID>|<Mfr>|<Model>|<software_versions> {bills_test} \N f 0
ImportFromDicomFileEdit ImportEditedFilesFromDicomEditCompare.pl <?bkgrnd_id?> <sub_invoc_id> <files_per_round> <max_queue_size> <notify> background_process \N {edit_files} \N f 0
MakePatHierachy GetHierarchyFromSeries.pl <?bkgrnd_id?> <notify> background_process <series_instance_uid> {bills_test} \N f 0
CopyCollectionToStaging CopyCollectionToStaging.pl <?bkgrnd_id?> <collection> "/nas/public/posda/scratch/staging/<rel_dir>" <notify> background_process \N {bills_test} \N f 0
CheckStructLinkagesByCollectionSite CheckStructLinkages.pl <?bkgrnd_id?> <collection> <site> <notify> background_process \N {struct_linkages} \N f 0
CheckPosdaPublicConsistency PublicPosdaCompare.pl <?bkgrnd_id?> <collection> <notify> background_process \N {public_posda_consistency} \N f 0
NewFixAcrinFiles CsvNewFixAcrin.pl <?bkgrnd_id?> <to_dir> <uid_root> <low_date> <high_date> <notify> background_process <patient_id>&<study_uid>&<series_uid>&<sop_instance_uid>&<file_id>&<offset_pat_id>&<offset> {bills_test} \N f 0
BackOutEdit BackOutFromDicomEditCompare.pl <?bkgrnd_id?> <sub_invoc_id> <user> <notify> background_process \N {edit_files} \N f 0
PrepareAcrinEdits PrepareAcrinEdits.pl <?bkgrnd_id?> <notify> background_process <ele_pattern>&<value>&<series_instance_uid> {bills_test} \N f 0
QuickCheckPosdaPublicConsistency QuickPublicPosdaCompare.pl <?bkgrnd_id?> "<collection>" <notify> background_process \N {public_posda_consistency} \N f 0
ImportAndEnsureVisible ImportAndEnsureVisible.py <?bkgrnd_id?> <activity_id> <notify> background_process <path> {import} \N f 0
NewerFixAcrinFiles CsvNewerFixAcrin.pl <?bkgrnd_id?> <to_dir> <uid_root> <low_date> <high_date> <notify> background_process <patient_id>&<study_uid>&<series_uid>&<offset_pat_id>&<offset> {bills_test} \N f 0
CountFilesInSeries TotalFilesForSelectedSeries.pl <?bkgrnd_id?> <notify> background_process <series_instance_uid> {bills_test} \N f 0
FixCtpFileRow FixCtpFileRow.pl <?bkgrnd_id?> <notify> background_process <file_id>&<file_path> {bills_test} \N f 0
BackgroundDoProposedEdits BackgroundDoProposedEdits.pl <?bkgrnd_id?> /nas/public/posda/edited/<rel_dest_root> "<description>" <notify> background_process <unmapped_id>&<mapped_id>&<series_instance_uid>&<num_files>&<operations>&<tag>&<val1>&<val2> {edit_files} \N f 0
SetUpPublicToPosdaCopy SetUpPublicToPosdaCopy.pl <?bkgrnd_id?> <collection> <notify> "<why_done>" background_process \N {pubic_posda_consistency} \N f 0
StartPublicToPosdaCopy BackgroundPublicToPosdaCopy.pl <?bkgrnd_id?> <copy_id> "<why>" <notify> background_process \N {pubic_posda_consistency} \N f 0
MakeHierarcyBySeries GetSeriesHierarchyBySeries.pl <?bkgrnd_id?> <notify> background_process <series_instance_uid> {bills_test} \N f 0
UnHideSeriesWithStatus UnhideBatchSeriesWithStatus.pl <who> "<why>" legacy <series_instance_uid> {hide_files} \N f 0
DciodvfyReport BackgroundDciodvfyReport.pl <?bkgrnd_id?> <scan_id> <notify> background_process \N {dciodvfy} \N f 0
StartFixPublicToPosdaCopy BackgroundFixPublicToPosdaCopy.pl <?bkgrnd_id?> <copy_id> "<why>", <notify> background_process \N {public_posda_consistency} \N f 0
LookForDupSopsInPublicByCollectionSite LookForPublicDupSops.pl <?bkgrnd_id?> "<collection>" "<site>" <notify> background_process \N {comparing_posda_to_public} \N f 0
BuildUidMap BuildUidMap.pl <?bkgrnd_id?> <notify> background_process <unmapped_uid> {bills_test} \N f 0
BackgroundLinkSeriesToStaging BackgroundLinkSeriesToStaging.pl <?bkgrnd_id?> /nas/public/posda/scratch/staging/<to_rel_dir> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {send_series} \N f 0
AnonymizerToEditor AnonymizerToEditor.pl <?bkgrnd_id?> <notify> background_process <operation_scope>&<operation>&<tag>&<value1>&<value2>&<patient_id>&<study_instance_uid>&<series_instance_uid>&<unmapped_uid>&<mapped_uid> {bills_test} \N f 0
DeletePvtExceptCtp DeletePrivateFromCollection.pl <?bkgrnd_id?> <collection> /nas/public/posda/scratch/converted/<rel_to_dir> <notify> background_process \N {bills_test} \N f 0
HidePatientWithStatus HideBatchPatientWithStatus.pl <who> "<why>" legacy <patient_id> {hide_files,hide_dup_sops} \N f 0
MakeRtReport MakeRtReport.pl <?bkgrnd_id?> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid>&<modality>&<num_files> {bills_test} \N f 0
BackgroundOnlyEditDicomSeries BackgroundOnlyEditDicomSeries.pl <?bkgrnd_id?> "/nas/public/posda/scratch/staging/<rel_dest_root>" "<desciption>" <notify> background_process <unmapped_uid>&<mapped_uid>&<series_instance_uid>&<operation>&<tag>&<val1>&<val2> {bills_test} \N f 0
BackgroundCopySeriesToStaging BackgroundCopySeriesToStaging.pl <?bkgrnd_id?> /nas/public/posda/scratch/staging/<to_rel_dir> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {send_series} \N f 0
CheckCollectionAgainstPatientId CheckCollectionAgainstPatientId.pl <?bkgrnd_id?> <notify> background_process <collection>&<patient_id> {bills_test} \N f 0
BackgroundLinkPublicSeries BackgroundLinkPublicSeries.pl <?bkgrnd_id?> /nas/public/posda/scratch/staging/<to_rel_dir> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {send_series} \N f 0
BackgroundDciodvfyTp BackgroundDciodvfyTp.pl <?bkgrnd_id?> <activity_id> <type> <notify> background_process {activity_timepoint} \N f 0
CheckRtReferenceChain CheckRtReferenceChain.pl <?bkgrnd_id?> <collection> <site> <notify> background_process \N {struct_linkages} \N f 0
MakeRtReport1 MakeRtReport1.pl <?bkgrnd_id?> <notify> background_process <collection>&<site>&<patient_id>&<study_uid>&<series_uid>&<file_type>&<modality>&<num_files> {bills_test} \N f 0
FirstPassPhiScanAndReport FirstPassPhiScanAndReport.pl <?bkgrnd_id?> <collection> <site> "<batch_no>" <notify> background_process \N {bills_test} \N f 0
FirstPassPhiByCollection FirstPassPhiByCollection.pl <?bkgrnd_id?> <collection> <notify> background_process \N {bills_test} \N f 0
BackgroundCreateEquivalenceClasses BackgroundCreateSeriesEquivalenceClasses.pl <?bkgrnd_id?> "<why>" <notify> background_process <series_instance_uid> {visual_review} \N f 0
UncompressFilesTp UncompressFilesTp.py <?bkgrnd_id?> <activity_id> <notify> background_process \N {uncompress,activity_timepoint} \N f 0
AdHocReportForTracy MakeCptacReport.pl <?bkgrnd_id?> <notify> background_process \N {clin_qual} \N f 0
RepealEdits RepealEdits.pl <?bkgrnd_id?> <subprocess_invoc_id> <notify> background_process \N {find_patients} \N f 0
RejectEdits RejectEdits.pl <?bkgrnd_id?> <subprocess_invoc_id> <notify> background_process \N {find_patients} \N f 0
ImportEdits ImportEdits.pl <?bkgrnd_id?> <subprocess_invoc_id> <notify> background_process \N {find_patients} \N f 0
LinkSeries BackgroundLinkSeries.pl <?bkgrnd_id?> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {patient_queries} \N f 0
VisualReview ScheduleVisualReview.pl <?bkgrnd_id?> "<why>" <notify> background_process <series_instance_uid> {visual_review} \N f 0
MakeHierarchyBySeries GetSeriesHierarchyBySeriesWithFileTypeAndModality.pl <?bkgrnd_id?> <notify> background_process <series_jnstance_uid> {bills_test,activity_timepoints} \N f 0
PhiScan NewPhiScan.pl <?bkgrnd_id?> "<description>" <notify> background_process <series_instance_uid> {scan_status,phi_status,new_phi} \N f 0
InsertPatientMapping ProcessCollectionSiteWorksheet.pl <?bkgrnd_id?> background_process <site_code>&<collection_code>&<site_id>&<site_name>&<collection_name> {bills_test,mapping_tables,patient_mapping} \N f 0
ProcessRADCOMPUpload CategorizeRadcompFiles.pl <?bkgrnd_id?> <collection> <site> <notify> background_process <import_event_id> {radcomp} \N f 0
RadcompSubmissionConverter RadcompSubmissionConverter.pl <?bkgrnd_id?> <notify> background_process <file_id> {radcomp} \N f 0
XlsConverter XlsConverter.pl <?bkgrnd_id?> <notify> background_process <file_id> {radcomp} \N f 0
FullPhiById FullPhiById.pl <?bkgrnd_id?> <scan_id> <notify> <max_rows> background_process {bills_test} \N f 0
NewFirstPassPhi NewFirstPassPhiScan.pl <?bkgrnd_id?> "<description>" <notify> background_process <series_instance_uid> {bills_test,new_workflow} \N f 0
XlsxConverter XlsxConverter.pl <?bkgrnd_id?> <notify> background_process <file_id> {radcomp} \N f 0
NonDicomPhiScan NonDicomPhiScan.pl <?bkgrnd_id?> <collection> <site> <notify> background_process \N {non_dicom_phi} \N f 0
ProposeCsvEdits ProposeCsvEdits.pl <?bkgrnd_id?> <scan_id> "<description>" <notify> background_process <type>&<path>&<q_value>&<num_files>&<p_op>&<q_arg1>&<q_arg2>&<q_arg3> {non_dicom_edit} \N f 0
ProposeJsonEdits ProposeJsonEdits.pl <?bkgrnd_id?> <scan_id> "<description>" <notify> background_process <type>&<path>&<q_value>&<num_files>&<p_op>&<q_arg1>&<q_arg2>&<q_arg3> {non_dicom_edit} \N f 0
BackgroundCsvEdit BackgroundCsvEditor.pl <?bkgrnd_id?> "<description>" <notify> background_process <file_id>&<op>&<path>&<val1>&<val2>&<val3> {edit,non_dicom_edit} \N f 0
BackgroundJsonEdit BackgroundJsonEditor.pl <?bkgrnd_id?> "<description>" <notify> background_process <file_id>&<op>&<path>&<val1>&<val2>&<val3> {edit,non_dicom_edit} \N f 0
NewPhiScanAll NewPhiScanAll.pl <?bkgrnd_id?> "<description>" <db> <max_lines> <notify> background_process <series_uid> {bills_test,new_workflow} \N f 0
FileAndDismissNotifications FileAndDismissNotification.pl <?bkgrnd_id?> <activity_id> "<description>" <notify> background_process <id> {activity_support} \N f 0
ImportNonDicomEdits ImportNonDicomEditedFiles.pl <?bkgrnd_id?> <subprocess_invoc_id> <notify> background_process \N {non_dicom_edit} \N f 0
GenerateYearOfDiagnosisEdits GenerateEditsForYearsOfDiagnosis.pl <?bkgrnd_id?> <notify> background_process <patient_id>&<year> {bills_ad_hoc_scripts} \N f 0
RadcompPrivateDisp BackgroundPrivateDispositionsByPatShift.pl <?bkgrnd_id?> <to_dir> <uid_root> <notify> background_process <patient_id>&<study_uid>&<series_uid>&<offset> {bills_test} \N f 0
MakeHierarchyByPat GetHierarchyFromPatientId.pl <?bkgrnd_id?> <notify> background_process <patient_id> {bills_test} \N f 0
QuickCheckPublicPosdaConsistLike QuickPublicPosdaCompareLikeCollection.pl <?bkgrnd_id?> "<collection_pat>" <notify> background_process \N {public_posda_consistency} \N f 0
ProposeAdHocMelanomaEdits ProposeAdHocMelanomaEdits.pl <?bkgrnd_id?> <shift> <old_uid_root> <new_uid_root> <notify> background_process <patient_id>&<series_uid>&<study_date>&<num_files>&<pat_id_for_diag_date>&<diag_date> {bills_test,bills_ad_hoc_scripts} \N f 0
FixReallyBadDicomFilesInTimepoint FixReallyBadDicomFilesInTimepoint.pl <?bkgrnd_id?> <activity_id> <activity_timepoint_id> <notify> background_process {ad_hoc_process} \N f 0
HideLateDupSopsInSeries HideBatchLateSopDupsInSeries.pl <who> "<why>" legacy <series_instance_uid> {hide_files,hide_dup_sops} \N f 0
BackgroundProcessModules BackgroundProcessModules.pl <?bkgrnd_id?> "<description>" <notify> background_process <file_id> {dicom_file_type} \N f 0
HideEquivalenceClasses HideEquivalenceClasses.pl <?bkgrnd_id?> <notify> background_process <image_equivalence_class_id>&<processing_status>&<review_status> {visual_review_status} \N f 0
MakePassThru MakePassThru.pl <?bkgrnd_id?> <visual_review_id> <notify> background_process <processing_status>&<review_status>&<dicom_file_type> {visual_review_status} \N f 0
RetryFailedProjections RetryFailedProjections.pl <?bkgrnd_id?> <notify> background_process <image_equivalence_class_id>&<processing_status>&<review_status> {visual_review_status} \N f 0
ChangeReviewStatus ChangeReviewStatus.pl <?bkgrnd_id?> <review_status> <processing_status> <notify> background_process <image_equivalence_class_id>&<processing_status>&<review_status> {visual_review_status} \N f 0
ApplyDispositions BackgroundApplyDispositionsFromVisualScan.pl <?bkgrnd_id?> <dest_dir> <uid_root> <date_offset> <notify> background_process <id>&<processing_status>&<review_status>&<dicom_file_type> {visual_review_status} \N f 0
CreateActivityTimepoint CreateActivityTimepoint.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process \N {visual_review_status} \N f 0
ProcessVisualReview ProcessVisualReview.pl <?bkgrnd_id?> <scan_id> <notify> background_process \N {visual_review_new_workflow} \N f 0
BackgroundHideFiles BackgroundHideFilesWithStatus.pl <?bkgrnd_id?> <notify> "<reason>" background_process <file_id> {compare_series} \N f 0
CreateActivityTimepointFromSeriesList CreateActivityTimepointFromSeriesList.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <series_instance_uid> {activity_timepoints} \N f 0
CreateActivityTimepointFromCollectionSite CreateActivityTimepointFromCollectionSite.pl <?bkgrnd_id?> <activity_id> <collection> <site> "<comment>" <notify> background_process \N {timepoint_buttons} \N f 0
LinkPublicCollection LinkPublicCollection.pl <?bkgrnd_id?> <directory> <notify> background_process <collection>&<patient_id>&<series_instance_uid>&<dicom_file_uri> {activity_timepoints,send_series,bills_test} \N f 0
ListOfAnnotatedFiles InsertListOfAnnotatedFiles.pl <?bkgrnd_id?> "<comment>" <notify> background_process <file_id>&<file_name>&<mime_type>&<description> {activity_timepoints,send_series_via_dicom,bills_test} \N f 0
FixBadSopInstanceLungFusedCtPathology FixBadSopInstancesLungFusedCtPathology.pl <?bkgrnd_id?> <notify> background_process \N {"Curation of Lung-Fused-CT-Pathology"} \N f 0
BackgroundPrivateDispositions BackgroundPrivateDispositions.pl <?bkgrnd_id?> <to_dir> <uid_root> <offset> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {edit,send_series} \N f 0
BackgroundPrivateDispositionsBaseline BackgroundPrivateDispositionsBaseline.pl <?bkgrnd_id?> <to_dir> <notify> background_process <patient_id>&<study_instance_uid>&<series_instance_uid> {edit,send_series} \N f 0
MakeDownloadableDirectory MakeDownloadableDirectory.pl <?bkgrnd_id?> <sub_dir> <notify> background_process <collection>&<patient_id>&<study_instance_uid>&<series_instance_uid> {send_series} \N f 0
BackgroundHideSeries BackgroundHideSeriesWithIndividualStatus.pl <?bkgrnd_id?> <notify> background_process <series_uid>&<reason_to_hide> {bills_test,new_workflow,activity_support} \N f 0
UpdateTimepointAfterEdit UpdateTimepointAfterEdit.pl <?bkgrnd_id?> <activity_id> <activity_timepoint_id> <subprocess_invocation_id> <notify> background_process \N {update_timepoint,activities} \N f 0
AnalyzeSeriesDuplicatesForTimepoint AnalyzeTpSeriesDuplicates.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {activity_timepoint_support} \N f 0
VisualReviewFromTimepoint ScheduleVisualReviewFromActivityTimepoint.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {visual_review} \N f 0
PhiReviewFromTimepoint SchedulePhiReviewFromActivityTimepoint.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {visual_review} \N f 0
CompareSopsTpPosdaPublic CompareSopsTpPosdaPublic.pl <?bkgrnd_id?> "<collection>" <activity_id> <notify> background_process \N {activity_timepoint_support} \N f 0
BackgroundHideEarlyDupSops BackgroundHideEarlyDupSopsInSeries.pl <?bkgrnd_id?> <notify> "<reason>" background_process <series_instance_uid> {activity_timepoint_support} \N f 0
AdHocTestSetConversion AdHocSecondaryCaptureConverter.pl <?bkgrnd_id?> <notify> <source_dir> <dest_dir> background_process <pat_code>&<anon_pat_id>&<uid_root>&<pat_sex> {"Bills Test"} \N f 0
BackgroundUpdatePrivateDispositionEle BackgroundUpdatePrivateDispositionsEle.pl <?bkgrnd_id?> "<why>" <notify> background_process <element_sig_pattern>&<disp> {phi_maint} \N f 0
DispositionNeededWorksheet DispositionsNeededWorksheet.pl <?bkgrnd_id?> <notify> background_process \N {phi_maint} \N f 0
AnalyzeSeriesDuplicates AnalyzeSeriesDuplicates.pl <?bkgrnd_id?> "<collection>" <site> <notify> background_process \N {"ACRIN-FMISO-Brain Duplicate Elimination",dup_sops,activity_timepoint_support} \N f 0
BackgroundHideSeriesByCollection BackgroundHideSeriesByCollection.pl <?bkgrnd_id?> "<reason>" <collection> <notify> background_process <series_instance_uid> {activity_timepoint_support} \N f 0
BackgroundUpdatePrivateDisposition BackgroundUpdatePrivateDispositions.pl <?bkgrnd_id?> "<why>" <notify> background_process <id>&<disp> {phi_maint} \N f 0
RejectEditsTp RejectEditsTp.pl <?bkgrnd_id?> <activity_id> <subprocess_invoc_id> <notify> background_process \N {find_patients} \N f 0
SummarizeStructLinkage SummarizeStructLinkagesByFileId.pl <?bkgrnd_id?> <file_id> <notify> background_process \N {activity_timepoint_support} \N f 0
DeleteSeriesFromActivityTimepoint DeleteSeriesFromActivityTimepoint.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <series_instance_uid> {activity_timepoints} \N f 0
FilesInTpNotInPublic FilesInLatestActivityNotInPublic.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {activity_timepoints_support} \N f 0
BackgroundUnhideFiles BackgroundUnhideFilesWithStatus.pl <?bkgrnd_id?> <notify> "<reason>" background_process <file_id>&<old_visibility> {activity_timepoint_support} \N f 0
FixFilesWithNullNumberOfFrames FixFilesWithNullNumberOfFrames.pl <?bkgrnd_id?> "<comment>" <notify> background_process \N {Exceptional-Responders_NCI_Oct2018_curation} \N f 0
FixCtInExceptionalRespondersWithNullNumberOfFrames FixCtErwWithNullNumberOfFrames.pl <?bkgrnd_id?> "<comment>" <notify> background_process \N {Exceptional-Responders_NCI_Oct2018_curation} \N f 0
AddSeriesToActivityTimepoint AddSeriesToActivityTimepoint.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <series_instance_uid> {activity_timepoint_support} \N f 0
BackgroundEditByStudy BackgroundEditStudy.pl <?bkgrnd_id?> "<description>" <notify> background_process <study_instance_uid>&<op>&<tag>&<val1>&<val2> {activity_timepoints} \N f 0
CompareSopsInTpToPublic CompareSopsInTpToPublic.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {activity_timepoints_support} \N f 0
TestProcessEditByFile TestProcessBackgroundEditFileInstructions.pl <?bkgrnd_id?> <notify> background_process <file_id>&<op>&<tag>&<val1>&<val2> {testing_edit_objects} \N f 0
ModifySeriesInActivityTp ModifySeriesInActivityTimepoint.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <series_instance_uid>&<function> {activity_timepoints} \N f 0
UpdateActivityTimepoint UpdateActivityTimepointForChange.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process \N {timepoint_buttons} \N f 0
ConsistencyFromTimePoint AnalyzeStudySeriesConsistencyByActivity.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {timepoint_buttons} \N f 0
LinkRtFromTimepoint LinkRtByActivityTimepoint.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {timepoint_buttons} \N f 0
CheckStructLinkagesTp CheckStructLinkagesTpId.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {timepoint_buttons} \N f 0
CondensedActivityTimepointReport CondensedActivityTimepointReport.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {timepoint_buttons} \N f 0
ImportPatientMapping ImportPatientMapping.pl <?bkgrnd_id?> <notify> background_process <from_patient_id>&<to_patient_id>&<to_patient_name>&<collection_name>&<site_name>&<batch_number>&<date_shift>&<diagnosis_date>&<baseline_date>&<uid_root> {bills_test,mapping_tables,patient_mapping} \N f 0
PrivateTagReports PrivateElementReports.pl <?bkgrnd_id?> <notify> background_process \N {phi_maint} \N f 0
CompareSopsTpPosdaPublicLike CompareSopsTpPosdaPublicLike.pl <?bkgrnd_id?> "<collection_like>" <activity_id> <notify> background_process \N {activity_timepoint_support} \N f 0
CreateActivityTimepointFromPatientList CreateActivityTimepointFromPatientList.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <collection>&<site>&<patient_id> {activity_timepoints} \N f 0
CompareSopsTpPosdaPublicCollectionLikeSiteEqual CompareSopsTpPosdaPublicLikeEq.pl <?bkgrnd_id?> "<collection_like>" "<site>" <activity_id> <notify> background_process \N {activity_timepoint_support} \N f 0
InitialAnonymizerCommands ProduceInitialAnonymizerCommands.pl <?bkgrnd_id?> <collection> <site> <notify> background_process <series_instance_uid>&<patient_id>&<patient_name> {initial_anonymization,patient_mapping} \N f 0
UpdateQualifiedPatients UpdateQualifiedPatients.pl <?bkgrnd_id?> <notify> background_process <collection>&<site>&<patient_id>&<qualified> {activity_timepoint_support} \N f 0
HideFilesVisbleInBadEquivalenceClassesByVisualReviewId HideVisibleFilesInBadIecs.pl <?bkgrnd_id?> <visual_review_instance_id> <notify> background_process \N {visual_review_status} \N f 0
TestProcessEditByStudy TestProcessBackgroundEditStudyInstructions.pl <?bkgrnd_id?> <notify> background_process <study_instance_uid>&<op>&<tag>&<val1><val2> {testing_edit_objects} \N f 0
BackgroundLinkActivityToTemp BackgroundLinkActivityToTemp.pl <?bkgrnd_id?> <activity_id> <notify> background_process \N {send_series} \N f 0
PhiPublicScanTp PhiPublicScanTp.pl <?bkgrnd_id?> <activity_id> <max_rows> <notify> background_process \N {simple_phi} \N f 0
BackgroundFixRtstruct BackgroundFixStructLinkages.pl <?bkgrnd_id?> "<comment>" <notify> background_process <img_series>&<struct_file_id> {activity_timepoints} \N f 0
ProposeEdits NewProposeEdits.pl <?bkgrnd_id?> <scan_id> <notify> background_process <element>%<vr>%<q_value>%<num_series>%<p_op>%<q_arg1>%<q_arg2> {simple_phi,activity_timepoints} \N f 0
PopulateFileImport PopulateFileImportForImportEvent.pl <?bkgrnd_id?> <import_event_id> <notify> background_process <file_name>&<digest> {QIN-GBM-DSC-MRI-DRO/Barrow} \N f 0
BackgroundUnhideSeries BackgroundUnhideSeriesWithIndividualStatus.pl <?bkgrnd_id?> <notify> background_process <series_uid>&<reason_to_unhide> {bills_test,new_workflow,activity_support} \N f 0
SimpleBackgroundTestProcess SimpleBackgroundTestSubprocess.pl <?bkgrnd_id?> "<message>" <notify> background_process <column1>&<column2>&<column3> {bills_test} \N f 0
InitialAnonymizerCommandsTp ProduceInitialAnonymizerCommandsTp.pl <?bkgrnd_id?> <collection> <site> <activity_id> <notify> background_process \N {initial_anonymization,patient_mapping} \N f 0
CreateActivityTimepointFromImportName CreateActivityTimepointFromImportName.pl <?bkgrnd_id?> <activity_id> "<import_name>" "<comment>" <notify> background_process \N {activity_timepoints} \N f 0
BackgroundEdit BackgroundEditor.pl <?bkgrnd_id?> "<description>" <notify> background_process <series_instance_uid><op><tag><val1><val2> {activity_timepoints,uses_field_separator} \N f 0
HelloWorldPython BackgroundHelloWorldWithInput.py <?bkgrnd_id?> <activity_id> <notify> background_process <series_instance_uid> {foo} \N f 0
CompareTimepoints CompareTimepoints.pl <?bkgrnd_id?> <activity_id> <from_timepoint_id> <to_timepoint_id> <notify> background_process {} \N f 0
HideFilesByCollectionSiteAndSeries HideFilesByCollectionSiteAndSeries.pl <?bkgrnd_id?> <activity_id> <notify> background_process <collection>&<site>&<series_instance_uid> {update_timepoint,activities} \N f 0
SeriesWithDupSopsDifferentSopClassTp SeriesWithDupSopsDifferentSopClassTp.pl <?bkgrnd_id?> <activity_id> <notify> background_process <foo> {background} \N f 0
CreateActivityTimepointFromImportId CreateActivityTimepointFromImportEventId.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <import_event_id> {activity_timepoints} \N f 0
KeepOnlyFilesDupFilesInTimepointAndSeriesWithMatchingDescriminator KeepOnlyFilesDupFilesInTimepointAndSeriesWithMatchingDescriminator.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <series_instance_uid>:<descriminator>:<value> {dup_sops,background} \N f 0
BackgroundHideFilesWithStatusTp BackgroundHideFilesWithStatusTp.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <file_id>&<visibility> {update_timepoint,activities} \N f 0
InsertPrivateTagKb InsertPrivateTagKb.pl <?bkgrnd_id?> <activity_id> <notify> background_process <pt_signature>&<pt_consensus_vr>&<pt_consensus_name>&<pt_consensus_vm>&<pt_consensus_description>&<pt_consensus_disposition> {} \N f 0
HideFilesBySeriesAndPatient BackgroundHideFilesBySeriesAndPatient.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <patient_id>&<series_instance_uid> {hide_files} \N f 0
MakeDownloadableDirectoryFromSpreadsheet MakeDownloadableDirectoryFromSpreadsheet.pl <?bkgrnd_id?> <activity_id> <sub_dir> <notify> background_process <uploaded_file_name>&<stored_file_name> {update_timepoint,activities} \N f 0
HelloWorldPerl BackgroundHelloWorldWithInput.pl <?bkgrnd_id?> <activity_id> <notify> background_process <series_instance_uid> {foo} \N f 0
MakeDownloadableDirectoryTp MakeDownloadableDirectoryTp.pl <?bkgrnd_id?> <activity_id> <sub_dir> <notify> background_process {send_series} \N f 0
ProposeEditsTp ProposeEditsTp.pl <?bkgrnd_id?> <activity_id> <scan_id> <notify> "<sep_char>" background_process <element><sep_char><vr><sep_char><q_value><sep_char><num_series><sep_char><p_op><sep_char><q_arg1><sep_char><q_arg2> {simple_phi,activity_timepoints} \N f 0
UpdateOrCreatePatientMapping UpdateOrCreatePatientMapping.pl <?bkgrnd_id?> <activity_id> "<comment>" "<overwrite>" <notify> background_process <in_patient_mapping>&<from_patient_id>&<collection>&<site>&<to_patient_id>&<to_patient_name>&<diagnosis_date>&<min_study_date>&<uid_root>&<batch_number>&<site_code>&<baseline_date>&<date_shift> {patient_mapping} \N f 0
FindCorrespondingPosdaPublicPath CorrespondingFilesPosdaPublic.pl <?bkgrnd_id?> <notify> background_process <file_id> {public_posda_compare} \N f 0
HideEquivalenceClassesTp HideEquivalenceClassesTp.pl <?bkgrnd_id?> <activity_id> <notify> background_process <image_equivalence_class_id>&<processing_status>&<review_status> {visual_review_status} \N f 0
CreateActivityTimepointFromImportEventId CreateActivityTimepointFromImportEventIdAll.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <import_event_id> {activity_timepoints} \N f 0
BackgroundPrivateDispositionsTpBaseline BackgroundPrivateDispositionsTp.pl <?bkgrnd_id?> <activity_id> "<notify>" "<skip_dispositions>" "<upd_nbia>" "<dir>" background_process {activity_timepoints} \N f 0
SuggestPatientMappings SuggestPatientMapping.pl <?bkgrnd_id?> <activity_id> "<col_name>" "<crc>" "<site_name>" "<src>" "<date_spec>" "<pat_map_pat>" "<num_dig>" <notify> background_process {} \N f 0
AddPublicHierarchy AddHierarchyToSpreadsheetByPublicSop.pl <new_root> legacy <file>&<Element>&<OldValue>&<NewValue> {} \N f 0
Path_SVS_VisualReview PathologyScheduleSVSReview.py <activity_id> <notify> background_process {visual_review} \N f 0
ApplyPrivateDispositionIntake CsvApplyPrivateDispositionIntake.pl <dest_dir> <uid_root> <offset> <low_date> <high_date> legacy <patient_id>&<study_instance_uid>&<series_instance_uid> {} \N f 0
BackgroundEditBySop BackgroundEditDicomFile.pl <?bkgrnd_id?> /nas/public/posda/edited/<rel_dest_root> <who> "<edit_description>" <notify> background_process <command>&<arg1>&<arg2>&<arg3>&<arg4> {obsolete} \N f 0
BackgroundEditTp BackgroundEditorTp.pl <?bkgrnd_id?> <activity_id> "<edit_description>" <notify> background_process <series_instance_uid>&<op>&<tag>&<val1>&<val2> {activity_timepoints} \N f 0
ImportEditsTp ImportEditsTp.pl <?bkgrnd_id?> <activity_id> <subprocess_invoc_id> <notify> background_process \N {edit_files} \N f 0
CreateActivityTimepointFromSopList CreateActivityTimepointFromSopList.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <sop_instance_uid> {activity_timepoints} \N f 0
CreateActivityTimepointFromFileList CreateActivityTimepointFromFileList.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <file_id> {activity_timepoints} \N f 0
StartExportEvent StartAnExport.pl <?bkgrnd_id?> <activity_id> <export_event_id> "<import_comment>" <notify> background_process {export} \N f 0
ConsolidateTimepoints ConsolidateActivityTimepoints.pl <?bkgrnd_id?> <activity_id> <notify> background_process <activity_timepoint_id> {activity_timepoints} \N f 0
ExportTimepoint ExportTimepoint.pl <?bkgrnd_id?> <activity_id> "<destination_name>" "<only_group_13>" "<only_dicom>" "<apply_dispositions>" "<base_line>" "<days_to_shift>" "<uid_root>" <notify> background_process {export} \N f 0
CloseExportEvent CloseAnExport.pl <?bkgrnd_id?> <activity_id> "<export_event_id>" <notify> background_process {export} \N f 0
ComparePosdaPrivateDataDictToPrivateTagKb CompareNewPrivateTagDbToOld.pl <?bkgrnd_id?> <activity_id> <notify> background_process {private_tag_kb} \N f 0
CopyPriorTimepoint CreateNewTimepointByCopyingOldTp.pl <?bkgrnd_id?> <activity_id> <old_tp_id> <notify> background_process {backup} \N f 0
AnnotateTimeline InsertListOfAnnotatedFiles.pl <?bkgrnd_id?> "<comment>" <notify> background_process <file_id>&<file_name>&<mime_type>&<description> {activity_timepoints,send_series_via_dicom,bills_test} \N f 0
PseudoNominizerEditsConstructor PseudoNominizerEditsConstructor.pl <?bkgrnd_id?> <activity_id> <notify> background_process <operation_scope>&<operation>&<tag>&<value1>&<value2>&<patient_id>&<study_instance_uid>&<series_instance_uid>&<sop_instance_uid>&<unmapped_uid>&<mapped_uid> {pseudonominizer} \N f 0
BackgroundPopulateSegStructFile BackgroundPopulateSegStructFiles.pl <?bkgrnd_id?> <activity_id> <notify> background_process <file_id> {SegBitmaps} \N f 0
CopyPriorTimepointInSeriesOnly CopyPriorTimepointInSeriesOnly.pl <?bkgrnd_id?> <activity_id> <old_tp_id> <notify> background_subprocess <series_instance_uid> {activity_timepoints} \N f 0
ConsolidateActivities ConsolidateActivities.pl <?bkgrnd_id?> <activity_id> <notify> background_process <activity_id> {activity_timepoints} \N f 0
RemoveFilesMarkedBadFromActivity RemoveFilesMarkedBadFromActivity.pl <?bkgrnd_id?> <activity_id> <visual_review_id> <notify> background_process {visual_review} \N f 0
CreateActivityTimepointFromFileIds CreateActivityTimepointFromFileIds.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <file_id> {activity_timepoints} \N f 0
PhiVaPublicScanTp PhiVaPublicScanTp.pl <?bkgrnd_id?> <activity_id> <import_event_id> <max_rows> <notify> background_process {simple_phi,va} \N f 0
CreateCompleteActivityTimepointFromImportEvent_id CreateCompleteActivityTimepointFromImportEventId.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <import_event_id> {activity_timepoints} \N f 0
CopyPriorTimepointExcludingFiles CopyPriorTimepointExcludingFiles.pl <?bkgrnd_id?> <activity_id> <old_tp_id> <notify> background_process <file_id> {activity_timepoints} \N f 0
ListOfFilesBySeriesAndTimepoint ListOfFilesBySeriesAndTimepoint.pl <?bkgrnd_id?> <activity_id> <activity_timepoint_id> <notify> background_process <series_instance_uid> {Duke,DBT} \N f 0
BackgroundEditBySopInstanceTp BackgroundEditBySopInstanceTp.pl <?bkgrnd_id?> <activity_id> <desciption> <notify> background_process <unmapped_uid><mapped_uid><sop_instance_uid><operation><tag><val1><val2> {editor} \N f 0
PhiPublicScan PhiPublicScan.pl <?bkgrnd_id?> <activity_id> <max_rows> "<collection>" "<site>" <notify> background_process {simple_phi} \N f 0
BackgroundPrivateDispositionsTp BackgroundPrivateDispositionsTp.pl <?bkgrnd_id?> <activity_id> "<uid_root>" "<offset>" "<notify>" "<skip_dispositions>" "<upd_nbia>" "<dir>" background_process {activity_timepoints} \N f 0
CompareDupSopsInTimepoint CompareDupSopsInTp.pl <?bkgrnd_id?> <activity_id> <activity_timepoint_id> <notify> background_subprocess {dup_sops} \N f 0
AddFilesToTimepoint AddFilesToTimepoint.pl <?bkgrnd_id?> <activity_id> "<comment>" <notify> background_process <file_id> {activity} \N f 0
CompareFileList CompareFileList.pl <?bkgrnd_id?> <activity_id> <notify> background_process <from_file_id>&<to_file_path> {file_compare} \N f 0
SelectGoodAndBadFilesFromDupSopsWorksheet SelectGoodAndBadFilesFromDupSopsWorksheet.pl <?bkgrnd_id?> <activity_id> <comparison_id> <notify> background_process <equiv_class>&<select> {dup_sops} \N f 0
ImportDownloadableDirectory ImportDownloadableDirectory.pl <?bkgrnd_id?> <activity_id> "<comment>" "<sub_dir>" <notify> background_process {VA,dispositions} \N f 0
PhiVaPublicScanDD PhiVaPublicScanDD.pl <?bkgrnd_id?> <activity_id> <rel_dir> <max_rows> <notify> background_process {simple_phi,va} \N f 0
MakeUIDMap create-hashed-uid-mapping.py <?bkgrnd_id?> <notify> <timepoint_id> background_process {} \N f 0
SlowRoll0 SlowRoll.pl <?bkgrnd_id?> <activity_id> <notify> background_process {demo_background} \N f 0
SlowRoll1 SlowRoll.pl <?bkgrnd_id?> <activity_id> <notify> background_process {demo_background} \N f 0
\.
--
-- Name: background_buttons_background_button_id_seq; Type: SEQUENCE SET; Schema: dbif_config; Owner: -
--
SELECT pg_catalog.setval('dbif_config.background_buttons_background_button_id_seq', 56, true);
--
-- Name: chained_query_chained_query_id_seq; Type: SEQUENCE SET; Schema: dbif_config; Owner: -
--
SELECT pg_catalog.setval('dbif_config.chained_query_chained_query_id_seq', 22, true);
--
-- Name: popup_buttons_popup_button_id_seq1; Type: SEQUENCE SET; Schema: dbif_config; Owner: -
--
SELECT pg_catalog.setval('dbif_config.popup_buttons_popup_button_id_seq1', 75, true);
--
-- PostgreSQL database dump complete
--
|
with postgresql_server as (
select
*
from
terraform_resource
where
type = 'azurerm_postgresql_server'
), connection_throttling_configuration as (
select
*
from
terraform_resource
where
type = 'azurerm_postgresql_configuration'
and (arguments ->> 'name') = 'connection_throttling'
and (arguments ->> 'value') = 'on'
)
select
a.type || ' ' || a.name as resource,
case
when (s.arguments ->> 'server_name') is not null then 'ok'
else 'alarm'
end as status,
a.name || case
when (s.arguments ->> 'server_name') is not null then ' server parameter connection_throttling on'
else ' server parameter connection_throttling off'
end || '.' reason,
a.path || ':' || a.start_line
from
postgresql_server as a
left join connection_throttling_configuration as s on a.name = ( split_part((s.arguments ->> 'server_name'), '.', 2));
|
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2016 年 06 月 13 日 01:27
-- 服务器版本: 5.5.24-log
-- PHP 版本: 5.3.13
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 */;
--
-- 数据库: `kindergarden`
--
-- --------------------------------------------------------
--
-- 表的结构 `child_1_base`
--
CREATE TABLE IF NOT EXISTS `child_1_base` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Child_Id` varchar(20) NOT NULL,
`InputDate` varchar(20) NOT NULL,
`EnterDate` varchar(20) NOT NULL,
`LeaveDate` varchar(20) DEFAULT NULL,
`FamilyName` varchar(20) NOT NULL,
`GivenName` varchar(20) NOT NULL,
`FamilyName_Spell` varchar(32) NOT NULL,
`GivenName_Spell` varchar(32) NOT NULL,
`NickName` varchar(40) NOT NULL,
`Birthday` varchar(20) NOT NULL,
`Sex` int(11) NOT NULL,
`PostCode` varchar(16) NOT NULL,
`Address` varchar(200) NOT NULL,
`Tel` varchar(45) NOT NULL,
`Class` varchar(32) DEFAULT NULL,
`Activities` varchar(20) DEFAULT NULL,
`Music_Date` varchar(30) DEFAULT NULL,
`English_Date` varchar(30) DEFAULT NULL,
`Gym_Date` varchar(30) DEFAULT NULL,
`Dance_Date` varchar(30) DEFAULT NULL,
`Child_Eat` varchar(20) DEFAULT NULL,
`Child_EatDate` varchar(30) DEFAULT NULL,
`Temper` varchar(12) DEFAULT NULL,
`BloodType` varchar(8) DEFAULT NULL,
`Traffic_Way` varchar(12) DEFAULT NULL,
`Traffic_TakeTime` varchar(8) DEFAULT NULL,
`Traffic_Distance` varchar(12) DEFAULT NULL,
`Traffic_OtherWay` varchar(80) DEFAULT NULL,
`Arrive_Time` time DEFAULT NULL,
`Arrive_ByWho` varchar(8) DEFAULT NULL,
`Arrive_ByOther` varchar(32) DEFAULT NULL,
`Arrive_Time_Rest` time DEFAULT NULL,
`Arrive_ByWho_Rest` varchar(8) DEFAULT NULL,
`Arrive_ByOther_Rest` varchar(32) DEFAULT NULL,
`Leave_Time` time DEFAULT NULL,
`Leave_ByWho` varchar(8) DEFAULT NULL,
`Leave_ByOther` varchar(32) DEFAULT NULL,
`Leave_Time_Rest` time DEFAULT NULL,
`Leave_ByWho_Rest` varchar(8) DEFAULT NULL,
`Leave_ByOther_Rest` varchar(32) DEFAULT NULL,
`Hospital_Physical` varchar(80) DEFAULT NULL,
`Hospital_Physical_Tel` varchar(40) DEFAULT NULL,
`Hospital_Tooth` varchar(80) DEFAULT NULL,
`Hospital_Tooth_Tel` varchar(40) DEFAULT NULL,
`Hospital_Eye` varchar(80) DEFAULT NULL,
`Hospital_Eye_Tel` varchar(40) DEFAULT NULL,
`Hospital_EarNose` varchar(80) DEFAULT NULL,
`Hospital_EarNose_Tel` varchar(40) DEFAULT NULL,
`Hospital_Skin` varchar(80) DEFAULT NULL,
`Hospital_Skin_Tel` varchar(40) DEFAULT NULL,
`Hospital_Child` varchar(80) DEFAULT NULL,
`Hospital_Child_Tel` varchar(40) DEFAULT NULL,
`Insurance_Record` varchar(20) DEFAULT NULL,
`Insurance_Number` varchar(20) DEFAULT NULL,
`Insurance_Assistance` varchar(10) DEFAULT NULL,
`Nearby1_Class` varchar(32) DEFAULT NULL,
`Nearby1_ChildName` varchar(40) DEFAULT NULL,
`Nearby2_Class` varchar(32) DEFAULT NULL,
`Nearby2_ChildName` varchar(40) DEFAULT NULL,
`setbacksNum` int(4) NOT NULL DEFAULT '1' COMMENT '目前做到step几了',
PRIMARY KEY (`ID`),
UNIQUE KEY `Child_Id_UNIQUE` (`Child_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- 转存表中的数据 `child_1_base`
--
INSERT INTO `child_1_base` (`ID`, `Child_Id`, `InputDate`, `EnterDate`, `LeaveDate`, `FamilyName`, `GivenName`, `FamilyName_Spell`, `GivenName_Spell`, `NickName`, `Birthday`, `Sex`, `PostCode`, `Address`, `Tel`, `Class`, `Activities`, `Music_Date`, `English_Date`, `Gym_Date`, `Dance_Date`, `Child_Eat`, `Child_EatDate`, `Temper`, `BloodType`, `Traffic_Way`, `Traffic_TakeTime`, `Traffic_Distance`, `Traffic_OtherWay`, `Arrive_Time`, `Arrive_ByWho`, `Arrive_ByOther`, `Arrive_Time_Rest`, `Arrive_ByWho_Rest`, `Arrive_ByOther_Rest`, `Leave_Time`, `Leave_ByWho`, `Leave_ByOther`, `Leave_Time_Rest`, `Leave_ByWho_Rest`, `Leave_ByOther_Rest`, `Hospital_Physical`, `Hospital_Physical_Tel`, `Hospital_Tooth`, `Hospital_Tooth_Tel`, `Hospital_Eye`, `Hospital_Eye_Tel`, `Hospital_EarNose`, `Hospital_EarNose_Tel`, `Hospital_Skin`, `Hospital_Skin_Tel`, `Hospital_Child`, `Hospital_Child_Tel`, `Insurance_Record`, `Insurance_Number`, `Insurance_Assistance`, `Nearby1_Class`, `Nearby1_ChildName`, `Nearby2_Class`, `Nearby2_ChildName`, `setbacksNum`) VALUES
(1, '20160001', '2016-06-07', '2016-06-07', '0000-00-00', '春燕', '顾', 'chunyan', 'gu', 'chunyan', '2010-04-11', 1, '0510', '长江大厦6号门2407', '0510-81017307', '', NULL, NULL, NULL, NULL, NULL, NULL, '0000-00-00', '', '', '', '', '', '', '00:00:00', '', '', '00:00:00', '', '', '00:00:00', '', '', '00:00:00', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', NULL, '', '', '', '', 2);
-- --------------------------------------------------------
--
-- 表的结构 `child_2_family`
--
CREATE TABLE IF NOT EXISTS `child_2_family` (
`Guardian1_FamilyName` varchar(20) DEFAULT NULL,
`Guardian1_GivenName` varchar(20) DEFAULT NULL,
`Guardian1_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Guardian1_GivenName_Spell` varchar(32) DEFAULT NULL,
`Guardian1_Birthday` varchar(20) DEFAULT NULL,
`Guardian1_Sex` int(11) DEFAULT NULL,
`Guardian1_Relation` varchar(8) DEFAULT NULL,
`Guardian1_WorkPlace` varchar(80) DEFAULT NULL,
`Guardian1_WorkAddress` varchar(200) DEFAULT NULL,
`Guardian1_WorkTel` varchar(40) DEFAULT NULL,
`Guardian1_Mobile` varchar(60) DEFAULT NULL,
`Guardian1_WorkTime_Begin` time DEFAULT NULL,
`Guardian1_WorkTime_End` time DEFAULT NULL,
`Guardian1_WorkTime_Begin_Rest` time DEFAULT NULL,
`Guardian1_WorkTime_End_Rest` time DEFAULT NULL,
`Guardian1_RestDay` varchar(16) DEFAULT NULL,
`Guardian1_RestOther` varchar(40) DEFAULT NULL,
`Guardian2_FamilyName` varchar(20) DEFAULT NULL,
`Guardian2_GivenName` varchar(20) DEFAULT NULL,
`Guardian2_GivenName_Spell` varchar(32) DEFAULT NULL,
`Guardian2_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Guardian2_Birthday` varchar(20) DEFAULT NULL,
`Guardian2_Sex` int(11) DEFAULT NULL,
`Guardian2_Relation` varchar(8) DEFAULT NULL,
`Guardian2_WorkPlace` varchar(80) DEFAULT NULL,
`Guardian2_WorkAddress` varchar(200) DEFAULT NULL,
`Guardian2_WorkTel` varchar(40) DEFAULT NULL,
`Guardian2_Mobile` varchar(60) DEFAULT NULL,
`Guardian2_WorkTime_Begin` time DEFAULT NULL,
`Guardian2_WorkTime_End` time DEFAULT NULL,
`Guardian2_WorkTime_Begin_Rest` time DEFAULT NULL,
`Guardian2_WorkTime_End_Rest` time DEFAULT NULL,
`Guardian2_RestDay` varchar(16) DEFAULT NULL,
`Guardian2_RestOther` varchar(40) DEFAULT NULL,
`Assist_FamilyName` varchar(20) DEFAULT NULL,
`Assist_GivenName` varchar(20) DEFAULT NULL,
`Assist_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Assist_GivenName_Spell` varchar(32) DEFAULT NULL,
`Assist_Address` varchar(200) DEFAULT NULL,
`Assist_Tel` varchar(40) DEFAULT NULL,
`Assist_Sex` int(11) DEFAULT NULL,
`Assist_Relation` varchar(20) DEFAULT NULL,
`Member1_FamilyName` varchar(20) DEFAULT NULL,
`Member1_GivenName` varchar(20) DEFAULT NULL,
`Member1_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member1_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member1_Birthday` varchar(20) DEFAULT NULL,
`Member1_Sex` int(11) DEFAULT NULL,
`Member1_Relation` varchar(20) DEFAULT NULL,
`Member1_WorkPlace` varchar(80) DEFAULT NULL,
`Member2_FamilyName` varchar(20) DEFAULT NULL,
`Member2_GivenName` varchar(20) DEFAULT NULL,
`Member2_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member2_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member2_Birthday` varchar(20) DEFAULT NULL,
`Member2_Sex` int(11) DEFAULT NULL,
`Member2_Relation` varchar(20) DEFAULT NULL,
`Member2_WorkPlace` varchar(80) DEFAULT NULL,
`Member3_FamilyName` varchar(20) DEFAULT NULL,
`Member3_GivenName` varchar(20) DEFAULT NULL,
`Member3_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member3_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member3_Birthday` varchar(20) DEFAULT NULL,
`Member3_Sex` int(11) DEFAULT NULL,
`Member3_Relation` varchar(20) DEFAULT NULL,
`Member3_WorkPlace` varchar(80) DEFAULT NULL,
`Member4_FamilyName` varchar(20) DEFAULT NULL,
`Member4_GivenName` varchar(20) DEFAULT NULL,
`Member4_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member4_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member4_Birthday` varchar(20) DEFAULT NULL,
`Member4_Sex` int(11) DEFAULT NULL,
`Member4_Relation` varchar(20) DEFAULT NULL,
`Member4_WorkPlace` varchar(80) DEFAULT NULL,
`Member5_FamilyName` varchar(20) DEFAULT NULL,
`Member5_GivenName` varchar(20) DEFAULT NULL,
`Member5_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member5_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member5_Birthday` varchar(20) DEFAULT NULL,
`Member5_Sex` int(11) DEFAULT NULL,
`Member5_Relation` varchar(20) DEFAULT NULL,
`Member5_WorkPlace` varchar(80) DEFAULT NULL,
`Member6_FamilyName` varchar(20) DEFAULT NULL,
`Member6_GivenName` varchar(20) DEFAULT NULL,
`Member6_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member6_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member6_Birthday` varchar(20) DEFAULT NULL,
`Member6_Sex` int(11) DEFAULT NULL,
`Member6_Relation` varchar(20) DEFAULT NULL,
`Member6_WorkPlace` varchar(80) DEFAULT NULL,
`Member7_FamilyName` varchar(20) DEFAULT NULL,
`Member7_GivenName` varchar(20) DEFAULT NULL,
`Member7_FamilyName_Spell` varchar(32) DEFAULT NULL,
`Member7_GivenName_Spell` varchar(32) DEFAULT NULL,
`Member7_Birthday` varchar(20) DEFAULT NULL,
`Member7_Sex` int(11) DEFAULT NULL,
`Member7_Relation` varchar(20) DEFAULT NULL,
`Member7_WorkPlace` varchar(80) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_2_Family_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_3_status`
--
CREATE TABLE IF NOT EXISTS `child_3_status` (
`Birth_Period` varchar(16) DEFAULT NULL,
`Birth_Weight` varchar(24) DEFAULT NULL,
`Birth_Status` varchar(16) DEFAULT NULL,
`Birth_Remark` varchar(100) DEFAULT NULL,
`Suckle_Status` varchar(20) DEFAULT NULL,
`Suckle_Way` varchar(20) DEFAULT NULL,
`Suckle_StopAgeY` int(11) DEFAULT NULL,
`Suckle_StopAgeM` int(11) DEFAULT NULL,
`Walk_Status` varchar(32) DEFAULT NULL,
`Walk_BeginAgeY` int(11) DEFAULT NULL,
`Walk_BeginAgeM` int(11) DEFAULT NULL,
`Language_Status` varchar(32) DEFAULT NULL,
`Language_Remark` varchar(45) DEFAULT NULL,
`Language_BeginAgeY` int(11) DEFAULT NULL,
`Language_BeginAgeM` int(11) DEFAULT NULL,
`RaiseMen_Relation` varchar(80) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_3_Status_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_3_vaccine`
--
CREATE TABLE IF NOT EXISTS `child_3_vaccine` (
`4Mix_Date1` varchar(20) DEFAULT NULL,
`4Mix_Date2` varchar(20) DEFAULT NULL,
`4Mix_Date3` varchar(20) DEFAULT NULL,
`4Mix_DateAdd` varchar(20) DEFAULT NULL,
`FluB_Date1` varchar(20) DEFAULT NULL,
`FluB_Date2` varchar(20) DEFAULT NULL,
`FluB_Date3` varchar(20) DEFAULT NULL,
`FluB_DateAdd` varchar(20) DEFAULT NULL,
`Pneumonia_Date1` varchar(20) DEFAULT NULL,
`Pneumonia_Date2` varchar(20) DEFAULT NULL,
`Pneumonia_Date3` varchar(20) DEFAULT NULL,
`Pneumonia_DateAdd` varchar(20) DEFAULT NULL,
`Encephalitis_Date1` varchar(20) DEFAULT NULL,
`Encephalitis_Date2` varchar(20) DEFAULT NULL,
`Encephalitis_DateAdd` varchar(20) DEFAULT NULL,
`Polio_Date1` varchar(20) DEFAULT NULL,
`Polio_Date2` varchar(20) DEFAULT NULL,
`Polio_Date3` varchar(20) DEFAULT NULL,
`Polio_Date4` varchar(20) DEFAULT NULL,
`BCG_Date` varchar(20) DEFAULT NULL,
`Measles_Date1` varchar(20) DEFAULT NULL,
`Measles_Date2` varchar(20) DEFAULT NULL,
`Mumps_Date` varchar(20) DEFAULT NULL,
`Chickenpox_Date` varchar(20) DEFAULT NULL,
`Vaccine_Remark` varchar(400) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_3_Vaccine_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_4_health`
--
CREATE TABLE IF NOT EXISTS `child_4_health` (
`His_Measles` varchar(4) DEFAULT NULL,
`His_Measles_Age` int(11) DEFAULT NULL,
`His_Chickenpox` varchar(4) DEFAULT NULL,
`His_Chickenpox_Age` int(11) DEFAULT NULL,
`His_Mumps` varchar(4) DEFAULT NULL,
`His_Mumps_Age` int(11) DEFAULT NULL,
`His_Rubella` varchar(4) DEFAULT NULL,
`His_Rubella_Age` int(11) DEFAULT NULL,
`His_Cough` varchar(4) DEFAULT NULL,
`His_Cough_Age` int(11) DEFAULT NULL,
`His_RedSpot` varchar(4) DEFAULT NULL,
`His_RedSpot_Age` int(11) DEFAULT NULL,
`His_HFMD` varchar(4) DEFAULT NULL,
`His_HFMD_Age` int(11) DEFAULT NULL,
`His_BacteriaInfect` varchar(4) DEFAULT NULL,
`His_BacteriaInfect_Age` int(11) DEFAULT NULL,
`His_Otitis` varchar(4) DEFAULT NULL,
`His_Otitis_Age` int(11) DEFAULT NULL,
`His_Pneumonia` varchar(4) DEFAULT NULL,
`His_Pneumonia_Age` int(11) DEFAULT NULL,
`His_Asthma` varchar(4) DEFAULT NULL,
`His_Asthma_Age` int(11) DEFAULT NULL,
`His_Poisoned` varchar(4) DEFAULT NULL,
`His_Poisoned_Age` int(11) DEFAULT NULL,
`His_Remark_Health` varchar(400) DEFAULT NULL,
`His_Remark_Injury` varchar(400) DEFAULT NULL,
`Body_HaveTic` varchar(4) DEFAULT NULL,
`Body_CatchCold` varchar(4) DEFAULT NULL,
`Body_Tonsil` varchar(4) DEFAULT NULL,
`Body_Diarrhea` varchar(4) DEFAULT NULL,
`Body_SkinWeak` varchar(4) DEFAULT NULL,
`Body_NoseBleed` varchar(4) DEFAULT NULL,
`Body_Fever` varchar(4) DEFAULT NULL,
`Body_Asthma` varchar(4) DEFAULT NULL,
`Body_Disjoint` varchar(4) DEFAULT NULL,
`Body_Disjoint_Place` varchar(100) DEFAULT NULL,
`Body_Atopy` varchar(4) DEFAULT NULL,
`Body_Atopy_Skin` varchar(4) DEFAULT NULL,
`Body_Atopy_Asthma` varchar(4) DEFAULT NULL,
`Body_Atopy_Remark` varchar(100) DEFAULT NULL,
`Body_Urticaria` varchar(4) DEFAULT NULL,
`Body_Urticaria_Reason` varchar(100) DEFAULT NULL,
`Body_Allergy` varchar(4) DEFAULT NULL,
`Body_Allergy_Reason` varchar(100) DEFAULT NULL,
`Body_Allergy_FoodDrug` varchar(100) DEFAULT NULL,
`Body_Other` varchar(4) DEFAULT NULL,
`Body_Other_Remark` varchar(100) DEFAULT NULL,
`Eye_Status` varchar(16) DEFAULT NULL,
`Eye_Status_Remark` varchar(100) DEFAULT NULL,
`Ear_Status` varchar(40) DEFAULT NULL,
`Ear_Status_History` varchar(400) DEFAULT NULL,
`Health_Remark` varchar(400) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_4_Health_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_5_edu`
--
CREATE TABLE IF NOT EXISTS `child_5_edu` (
`Edu_Place` varchar(4) DEFAULT NULL,
`Edu_PlaceName` varchar(105) DEFAULT NULL,
`Edu_Remark` varchar(200) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_5_Edu_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_5_live1`
--
CREATE TABLE IF NOT EXISTS `child_5_live1` (
`Eat_Appetite` varchar(20) DEFAULT NULL,
`Eat_Speed` varchar(20) DEFAULT NULL,
`Eat_Like` varchar(100) DEFAULT NULL,
`Eat_Unlike` varchar(100) DEFAULT NULL,
`Eat_Snacks` varchar(20) DEFAULT NULL,
`Eat_Snacks_Time` varchar(20) DEFAULT NULL,
`Toilet_Big` varchar(25) DEFAULT NULL,
`Toilet_Big_Leak` varchar(25) DEFAULT NULL,
`Toilet_Small` varchar(25) DEFAULT NULL,
`Toilet_Small_Period` varchar(45) DEFAULT NULL,
`Toilet_Night` varchar(20) DEFAULT NULL,
`Sleep_WakeTime` varchar(20) DEFAULT NULL,
`Sleep_Wake` varchar(20) DEFAULT NULL,
`Sleep_SleepTime` varchar(20) DEFAULT NULL,
`Sleep_Sleep` varchar(25) DEFAULT NULL,
`Sleep_Who` varchar(40) DEFAULT NULL,
`Sleep_Who_Other` varchar(100) DEFAULT NULL,
`Sleep_Daytime` varchar(25) DEFAULT NULL,
`Sleep_Daytime_Spend` varchar(12) DEFAULT NULL,
`Live1_Remark` varchar(400) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_5_Live1_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_5_live2`
--
CREATE TABLE IF NOT EXISTS `child_5_live2` (
`Language` varchar(20) DEFAULT NULL,
`StrongHand` varchar(20) DEFAULT NULL,
`Hobby` varchar(100) DEFAULT NULL,
`DistingMen` varchar(40) DEFAULT NULL,
`Friend1_Age` int(11) DEFAULT NULL,
`Friend1_Name` varchar(45) DEFAULT NULL,
`Friend2_Age` int(11) DEFAULT NULL,
`Friend2_Name` varchar(45) DEFAULT NULL,
`PlayPlace` varchar(12) DEFAULT NULL,
`PlayPlace_Remark` varchar(150) DEFAULT NULL,
`LikePlay` varchar(100) DEFAULT NULL,
`TVTime` int(11) DEFAULT NULL,
`GameTime` int(11) DEFAULT NULL,
`Housework` varchar(25) DEFAULT NULL,
`Housework_Remark` varchar(100) DEFAULT NULL,
`Dress` varchar(25) DEFAULT NULL,
`Dress_Remark` varchar(100) DEFAULT NULL,
`Money` varchar(12) DEFAULT NULL,
`Money_Count` varchar(12) DEFAULT NULL,
`Money_Use` varchar(100) DEFAULT NULL,
`Feature_Good` varchar(400) DEFAULT NULL,
`Feature_Low` varchar(400) DEFAULT NULL,
`Live2_Remark` varchar(400) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_5_Live2_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_6_agree`
--
CREATE TABLE IF NOT EXISTS `child_6_agree` (
`Agree` varchar(8) NOT NULL DEFAULT '',
`Agree_Hope` varchar(1600) DEFAULT NULL,
`Agree_Remark` varchar(1600) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_Child_6_Agree_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `child_recog`
--
CREATE TABLE IF NOT EXISTS `child_recog` (
`Recog_Type` varchar(20) DEFAULT NULL,
`Recog_Date` varchar(45) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_child_recog_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `communication`
--
CREATE TABLE IF NOT EXISTS `communication` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Child_Id` varchar(30) NOT NULL,
`LeaveDate` varchar(25) DEFAULT NULL,
`LeaveDate_End` varchar(30) DEFAULT NULL,
`Late` varchar(4) DEFAULT NULL,
`Arrive_Time` varchar(25) DEFAULT NULL,
`Eat` varchar(4) DEFAULT NULL,
`Rest` varchar(4) DEFAULT NULL,
`Edit` varchar(4) DEFAULT NULL,
`Other` varchar(4) DEFAULT NULL,
`Reason` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `healthcard`
--
CREATE TABLE IF NOT EXISTS `healthcard` (
`Weight` varchar(16) DEFAULT NULL,
`ScanDate` varchar(20) DEFAULT NULL,
`Guardian1` varchar(10) DEFAULT NULL,
`Guardian2` varchar(15) DEFAULT NULL,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_HealthCard_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `schoolin`
--
CREATE TABLE IF NOT EXISTS `schoolin` (
`Guardian1` varchar(8) DEFAULT NULL,
`Guardian2` varchar(8) DEFAULT NULL,
`InDate` varchar(20) DEFAULT NULL,
`ChangeInDate` varchar(20) DEFAULT NULL,
`InterruptDate` varchar(20) DEFAULT NULL,
`FinishDate` varchar(20) DEFAULT NULL,
`Period1_Year` varchar(20) DEFAULT NULL,
`Period1_AgeY` varchar(8) DEFAULT NULL,
`Period1_AgeM` varchar(8) DEFAULT NULL,
`Period2_Year` varchar(20) DEFAULT NULL,
`Period2_AgeY` varchar(8) DEFAULT NULL,
`Period2_AgeM` varchar(8) DEFAULT NULL,
`Period3_Year` varchar(20) DEFAULT NULL,
`Period3_AgeY` varchar(8) DEFAULT NULL,
`Period3_AgeM` varchar(8) DEFAULT NULL,
`Period4_Year` varchar(20) DEFAULT NULL,
`Period4_AgeY` varchar(8) DEFAULT NULL,
`Period4_AgeM` varchar(8) DEFAULT NULL,
`Teach1_Year` varchar(25) DEFAULT NULL,
`Teach1_Days` int(11) DEFAULT NULL,
`Teach1_inDays` int(11) DEFAULT NULL,
`Teach1_YearPoint` text,
`Teach1_SinglePoint` text,
`Teach1_Reference` text,
`Teach1_Remark` text,
`Teach2_Year` varchar(25) DEFAULT NULL,
`Teach2_Days` int(11) DEFAULT NULL,
`Teach2_inDays` int(11) DEFAULT NULL,
`Teach2_YearPoint` text,
`Teach2_SinglePoint` text,
`Teach2_Reference` text,
`Teach2_Remark` text,
`Teach3_Year` varchar(25) DEFAULT NULL,
`Teach3_Days` int(11) DEFAULT NULL,
`Teach3_inDays` int(11) DEFAULT NULL,
`Teach3_YearPoint` text,
`Teach3_SinglePoint` text,
`Teach3_Reference` text,
`Teach3_Remark` text,
`Teach4_Year` varchar(25) DEFAULT NULL,
`Teach4_Days` int(11) DEFAULT NULL,
`Teach4_inDays` int(11) DEFAULT NULL,
`Teach4_YearPoint` text,
`Teach4_SinglePoint` text,
`Teach4_Reference` text,
`Teach4_Remark` text,
`Child_1_Base_ID` int(11) NOT NULL,
KEY `fk_SchoolIn_Child_1_Base1_idx` (`Child_1_Base_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`USERID` varchar(50) NOT NULL,
`PWD` varchar(50) NOT NULL,
`NAME` varchar(40) NOT NULL,
`SELLEVEL` varchar(20) NOT NULL,
`Available` int(5) NOT NULL,
`LASTLOGINTIME` int(11) NOT NULL,
`Remark` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- 转存表中的数据 `user`
--
INSERT INTO `user` (`ID`, `USERID`, `PWD`, `NAME`, `SELLEVEL`, `Available`, `LASTLOGINTIME`, `Remark`) VALUES
(1, 'maxauth', 'maxauth', 'MaxAuth', 'Admin', 1, 1465692869, '管理者');
-- --------------------------------------------------------
--
-- 表的结构 `user_guardian`
--
CREATE TABLE IF NOT EXISTS `user_guardian` (
`ID` int(5) NOT NULL AUTO_INCREMENT,
`Guardian_ID` varchar(30) NOT NULL,
`PWD` varchar(30) NOT NULL,
`Available` varchar(30) NOT NULL,
`LASTLOGINTIME` varchar(30) DEFAULT NULL,
`Remark` varchar(30) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 限制导出的表
--
--
-- 限制表 `child_2_family`
--
ALTER TABLE `child_2_family`
ADD CONSTRAINT `fk_Child_2_Family_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_3_status`
--
ALTER TABLE `child_3_status`
ADD CONSTRAINT `fk_Child_3_Status_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_3_vaccine`
--
ALTER TABLE `child_3_vaccine`
ADD CONSTRAINT `fk_Child_3_Vaccine_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_4_health`
--
ALTER TABLE `child_4_health`
ADD CONSTRAINT `fk_Child_4_Health_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_5_edu`
--
ALTER TABLE `child_5_edu`
ADD CONSTRAINT `fk_Child_5_Edu_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_5_live1`
--
ALTER TABLE `child_5_live1`
ADD CONSTRAINT `fk_Child_5_Live1_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_5_live2`
--
ALTER TABLE `child_5_live2`
ADD CONSTRAINT `fk_Child_5_Live2_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_6_agree`
--
ALTER TABLE `child_6_agree`
ADD CONSTRAINT `child_6_agree_ibfk_1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `child_recog`
--
ALTER TABLE `child_recog`
ADD CONSTRAINT `fk_child_Recog_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `healthcard`
--
ALTER TABLE `healthcard`
ADD CONSTRAINT `fk_HealthCard_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- 限制表 `schoolin`
--
ALTER TABLE `schoolin`
ADD CONSTRAINT `fk_SchoolIn_Child_1_Base1` FOREIGN KEY (`Child_1_Base_ID`) REFERENCES `child_1_base` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
--+ holdcas on;
set names utf8;
create table t( a char(1) collate binary, b varchar(1) collate binary, c nchar(1) collate binary, d NCHAR VARYING(1) collate binary, e string collate utf8_ko_cs_uca);
insert into t values ( 'a', 'a', N'a', N'a', 'a' );
insert into t values ( upper('a'), upper('a'), upper(N'a'), upper(N'a'), upper('a'));
insert into t values ( '규', '규', N'규', N'규', '규' );
insert into t values ( upper('규'), upper('규'), upper(N'규'), upper(N'규'), upper('규'));
insert into t values ( '규r', '규r', N'규r', N'규r', '규r' );
insert into t values ( upper('규r'), upper('규r'), upper(N'규r'), upper(N'규r'), upper('규r'));
insert into t values ( 'ar', 'ar', N'ar', N'ar', 'ar' );
insert into t values ( upper('ar'), upper('ar'), upper(N'ar'), upper(N'ar'), upper('ar'));
insert into t values ( '你好', '你好', N'你好', N'你好', '你好' );
insert into t values ( upper('你好'), upper('你好'), upper(N'你好'), upper(N'你好'), upper('你好'));
select * from t order by 1;
drop table t;
set names iso88591;
commit;
--+ holdcas off;
|
<reponame>SKalt/pg_sql_parser_tests
PG_FUNCTION_INFO_V1(my_same);
Datum
my_same(PG_FUNCTION_ARGS)
{
prefix_range *v1 = PG_GETARG_PREFIX_RANGE_P(0);
prefix_range *v2 = PG_GETARG_PREFIX_RANGE_P(1);
bool *result = (bool *) PG_GETARG_POINTER(2);
*result = my_eq(v1, v2);
PG_RETURN_POINTER(result);
}
|
<filename>test/stubs/diagnostics_get_urls.sql
DROP TABLE IF EXISTS testbig;
WITH tsel AS (
SELECT array_agg(format('https://hacker-news.firebaseio.com/v0/item/%s.json',id)) qarray
FROM (
SELECT generate_series(20001,30000)::bigint id
)foo
)
SELECT * INTO testbig
FROM wget_urls((SELECT qarray FROM tsel), b_parallel_jobs :=100 , b_min_latency :=60, b_timeout:=10, batch_size := 800, batch_delay := 5)
ORDER BY retries desc, batch asc;
SELECT
batch,
min(ts_end) ts_start,
EXTRACT(EPOCH FROM (max(ts_end)-min(ts_end))) total_duration,
avg(duration) avg_duration,
max(duration) max_duration,
min(duration) min_duration,
batch_failrate,
max (retries) retries,
count(*),
count(*) FILTER (WHERE payload IS NOT NULL) count_ok,
count(*) FILTER (WHERE retries <> 0 ) count_retried
FROM testbig
GROUP BY batch, batch_failrate
ORDER BY batch asc
--SELECT * FROM testbig WHERE retries =1 ORDER BY batch, ts_end |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Nov 10, 2020 at 05:01 AM
-- Server version: 5.7.26
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `amazing_toy`
--
-- --------------------------------------------------------
--
-- Table structure for table `abouts`
--
CREATE TABLE `abouts` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `addresses`
--
CREATE TABLE `addresses` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`postal_code` varchar(255) DEFAULT NULL,
`state_region` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `addresses`
--
INSERT INTO `addresses` (`id`, `create_at`, `status`, `update_at`, `address`, `city`, `country`, `postal_code`, `state_region`) VALUES
(1, '2020-11-09 20:32:41.750000', b'1', '2020-11-09 20:32:41.750000', 'Block A EHomse S Nam Sai Gon, Binh Hung', 'Ho Chi Minh', 'Vietnam', '80000', 'Binh Chanh'),
(2, '2020-11-09 20:32:41.896000', b'1', '2020-11-09 20:32:41.896000', '343 Pham Ngu Lao', 'Ho Chi Minh', 'Vietnam', '80000', 'Quan 1'),
(3, '2020-11-09 20:32:41.995000', b'1', '2020-11-09 20:32:41.995000', '343 Pham Ngu Lao', 'Ho Chi Minh', 'Vietnam', '80000', 'Quan 1');
-- --------------------------------------------------------
--
-- Table structure for table `bid_details`
--
CREATE TABLE `bid_details` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`auction_end` date DEFAULT NULL,
`auction_start` date DEFAULT NULL,
`bid_increment` int(11) DEFAULT NULL,
`current_price` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `bid_details`
--
INSERT INTO `bid_details` (`id`, `create_at`, `status`, `update_at`, `auction_end`, `auction_start`, `bid_increment`, `current_price`) VALUES
(1, '2020-11-09 21:51:38.397000', b'1', '2020-11-09 21:51:38.397000', '2020-11-28', '2020-11-01', 5, 0),
(2, '2020-11-09 21:55:10.712000', b'1', '2020-11-09 21:55:10.712000', '2020-12-01', '2020-11-01', 5, 0),
(3, '2020-11-09 21:55:26.741000', b'1', '2020-11-09 21:55:26.741000', '2020-12-01', '2020-11-01', 5, 0),
(4, '2020-11-09 21:55:35.349000', b'1', '2020-11-09 21:55:35.349000', '2020-12-01', '2020-11-01', 5, 0),
(5, '2020-11-09 21:55:59.035000', b'1', '2020-11-09 21:55:59.035000', '2020-12-01', '2020-11-01', 5, 0),
(6, '2020-11-09 21:56:14.136000', b'1', '2020-11-09 21:56:14.136000', '2020-12-01', '2020-11-01', 5, 0),
(7, '2020-11-09 21:56:38.126000', b'1', '2020-11-09 21:56:38.126000', '2020-12-01', '2020-11-01', 5, 85);
-- --------------------------------------------------------
--
-- Table structure for table `bid_history`
--
CREATE TABLE `bid_history` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`unit_price` int(11) DEFAULT NULL,
`bid_detail_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `bid_history`
--
INSERT INTO `bid_history` (`id`, `create_at`, `status`, `update_at`, `unit_price`, `bid_detail_id`, `user_id`) VALUES
(1, '2020-11-09 22:45:59.478000', b'1', '2020-11-09 22:45:59.478000', 55, 7, 1),
(2, '2020-11-10 02:12:48.154000', b'1', '2020-11-10 02:12:48.154000', 65, 7, 1),
(3, '2020-11-10 10:44:11.159000', b'1', '2020-11-10 10:44:11.159000', 75, 7, 1),
(4, '2020-11-10 11:07:42.572000', b'1', '2020-11-10 11:07:42.572000', 85, 7, 3);
-- --------------------------------------------------------
--
-- Table structure for table `blogs`
--
CREATE TABLE `blogs` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`description` text,
`image` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `blogs`
--
INSERT INTO `blogs` (`id`, `create_at`, `status`, `update_at`, `description`, `image`, `title`, `user_id`) VALUES
(1, '2020-11-10 01:10:56.694000', b'1', '2020-11-10 01:10:56.694000', '<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;\"><span style=\"font-size: 10.5pt; font-family: "Times New Roman", serif; color: rgb(47, 47, 43);\">While Black Friday is still 3 weeks away, we wanted to give you a little taste of the turkey! (No, I will not apologize for how corny that was!)<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;\"><span style=\"font-size: 10.5pt; font-family: "Times New Roman", serif; color: rgb(47, 47, 43);\">Anyway, right now you can get 30% off selected models. The sale features a wide range of models, so I\'m sure you\'ll be able to find something you love. (Or something for a friend!)<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;\"><span style=\"font-size: 10.5pt; font-family: "Times New Roman", serif; color: rgb(47, 47, 43);\">So take a look at the \"Specials\" section on our website and click the link that says Turkey Day Sale. I will also provide the link below.<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;\"><span style=\"font-size: 10.5pt; font-family: "Times New Roman", serif; color: rgb(47, 47, 43);\">Also I want to let you all know that our Holiday Gift guides will be added soon. So stayed tuned for that!<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;\"><span style=\"font-size: 10.5pt; font-family: "Times New Roman", serif; color: rgb(47, 47, 43);\">Enjoy the sale, and enjoy your weekend everyone. I\'ll be back in 3 weeks to announce the Black Friday sale!<o:p></o:p></span></p>', '85712626-6bdf-4222-ab18-d051a484495f_Picture1.png', 'Black Friday Warmup!', NULL),
(2, '2020-11-10 01:12:57.403000', b'1', '2020-11-10 01:12:57.403000', '<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">Happy Oktoberfest everyone!<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">While we may not be able to travel to Germany this year to experience all the joys of Oktberfest, we can still find a way to celebrate. Take a look at your favorite German models and take 10% off. <o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">Who wouldn\'t love to bring a home a sleek BMW? or a classic <NAME>? Some of these models do not go on sale often so it is a good time to catch them while you can.<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">So have a beer, order a soft pretzel from your favorite delivery app and browse our collection of German models! Hopefully next year we\'ll be able get our party on!<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">Hoping everyone is safe out there and wishing you all a happy October!<o:p></o:p></span></p>', '3ac72dd4-4a16-4526-bbcb-8d3729b93c08_Picture2.png', 'Happy Oktoberfest! ', NULL),
(3, '2020-11-10 01:13:58.370000', b'1', '2020-11-10 01:13:58.370000', '<p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">Hey you guys!<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">We have created a new survey to find out some of your favorite models!<o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">It is a very quick 5 question survey that takes no more than 2 mins. If you have time, please fill it out so we can get a better idea of what you want! <o:p></o:p></span></p><p class=\"MsoNormal\" style=\"margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;\"><span style=\"font-size: 10.5pt; font-family: Arial, sans-serif; color: rgb(47, 47, 43);\">I have provided the link below! Thanks a bunch!<o:p></o:p></span></p>', '992500c0-874d-4a8c-a61f-ffb189816f1f_Picture3.png', 'What\'s Your Favorite?', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`category_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`category_id`, `name`, `slug`) VALUES
(1, 'Airplane', 'airplane'),
(2, 'Car', 'car'),
(3, 'MotorBike', 'motorbike'),
(4, 'Truck', 'truck');
-- --------------------------------------------------------
--
-- Table structure for table `contact_us`
--
CREATE TABLE `contact_us` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`phone` int(11) DEFAULT NULL,
`subject` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `images`
--
CREATE TABLE `images` (
`image_id` int(11) NOT NULL,
`about_id` int(11) DEFAULT NULL,
`blog_id` int(11) DEFAULT NULL,
`description` varchar(255) NOT NULL,
`main_image` bit(1) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`product_id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `images`
--
INSERT INTO `images` (`image_id`, `about_id`, `blog_id`, `description`, `main_image`, `name`, `product_id`, `user_id`) VALUES
(1, 1, 1, 'Bmw535i', b'0', '1bb96208-83e9-4c73-a08a-fb0c64998f43_3.jpg', 1, 1),
(2, 1, 1, 'Bugati chiron sport', b'1', '36cf8333-f207-4a95-8815-63876ef7ed5d_5.jpg', 2, 1),
(3, 1, 1, 'suzuki VStrom', b'0', '1174aabb-2a48-43f6-8eea-b44a26b74566_2.jpg', 3, 1),
(4, 1, 1, 'Suzuki XSR- R-1000', b'0', 'b4813c84-5299-4859-9179-d13503a3286d_4.jpg', 4, 1),
(5, 1, 1, 'bmw 535i', b'0', '78bff4fd-0975-488e-a1ad-c6e17220be5e_3.jpg', 1, 1),
(6, 1, 1, 'bmw 535i', b'0', '0352052e-502e-4777-bb20-6d02751c3ded_4.jpg', 1, 1),
(7, 1, 1, 'bmw 535i', b'1', 'b21e6e01-e12c-461f-a0c5-f3970b85c98f_2.jpg', 1, 1),
(8, 1, 1, 'bugati chiron', b'0', 'b041ded1-0fc7-4f11-8090-fc9432bbcfe8_4.jpg', 2, 1),
(9, 1, 1, 'bugati chiron', b'0', '88fcdb1b-d523-491a-b8db-69913c57fade_2.jpg', 2, 1),
(10, 1, 1, 'bugati chiron', b'0', '9510826b-f99f-4383-a7ad-ff511dcd3b33_6.jpg', 2, 1),
(11, 1, 1, 'Suzuki VStrom', b'1', '1b9bb504-933a-4b10-ae35-8fb5aabd40b5_1.jpg', 3, 1),
(12, 1, 1, 'Suzuki VStrom', b'0', '0f4e9224-2881-40c4-9bdc-b043293df627_2.jpg', 3, 1),
(13, 1, 1, 'Suzuki VStrom', b'0', '79486abb-5a6e-4db9-a93d-02a08a02e5b9_4.jpg', 3, 1),
(14, 1, 1, 'Suzuki VStrom', b'0', 'a4d21b90-1d7f-48f7-b7e8-c884e7374dfe_3.jpg', 3, 1),
(15, 1, 1, 'suzuki GSXR R-1000', b'0', 'a1114f52-c69b-4001-a156-892f6d2505a5_2.jpg', 4, 1),
(16, 1, 1, 'suzuki GSXR R-1000', b'1', '999fef9c-800e-4ce1-ab3d-81b7a3f17752_1.jpg', 4, 1),
(17, 1, 1, 'suzuki GSXR R-1000', b'0', 'c62d18e8-7237-4984-b4a8-c31441f6b90b_3.jpg', 4, 1),
(18, 1, 1, 'suzuki GSXR R-1000', b'0', '0b1db80e-97bc-442e-b47d-74d960f4f3ad_4.jpg', 4, 1),
(19, 1, 1, 'rolls royce Phantom', b'1', '60544c9d-6b05-4f7e-92a1-072ffb9a763e_2.jpg', 5, 1),
(20, 1, 1, 'rolls royce Phantom', b'0', 'c0e1bb5b-b1bd-479a-989a-7615e8b18a15_1.jpg', 5, 1),
(21, 1, 1, 'Ferrari Leferrari', b'1', '92c39cca-b215-4126-900e-b216c7915306_1.jpg', 6, 1),
(22, 1, 1, 'Ferrari Leferrari', b'0', '96d9d630-e23f-4a4b-915f-c8bec5433d25_2.jpg', 6, 1),
(23, 1, 1, 'Ferrari Leferrari', b'0', '6d212aa6-0d14-44cb-ac4d-912f16b4ee6e_3.jpg', 6, 1),
(24, 1, 1, 'Ferrari Leferrari', b'0', '307101f7-1e30-46c6-a86d-567829b325e8_4.jpg', 6, 1),
(25, 1, 1, 'Hurracan Lp610', b'1', '1d1d6474-8643-490c-9ad1-8672c4069187_2.jpg', 7, 1),
(26, 1, 1, 'Hurracan Lp610', b'0', '383b0c66-e319-4a4f-9ca2-3fc5b2328311_3.jpg', 7, 1),
(27, 1, 1, 'Hurracan Lp610', b'0', '4f4f1370-0ff6-4ef3-a1a2-f1956562e125_4.jpg', 7, 1),
(28, 1, 1, 'Hurracan Lp610', b'0', '0e61c0f5-98b7-417d-8f27-3023739717ac_5.jpg', 7, 1),
(29, 1, 1, 'Lamborghini Centenario', b'1', 'f1324a01-38a9-4c90-a132-d3ad79de8c50_1.jpg', 13, 1),
(30, 1, 1, 'Lamborghini Centenario', b'0', '53022bac-f942-45db-aad0-1608af68b264_2.jpg', 13, 1),
(31, 1, 1, 'Lamborghini Centenario', b'0', '69ad5f8a-2e7d-47d9-bc7e-73443e4767b5_3.jpg', 13, 1),
(32, 1, 1, 'Lamborghini Centenario', b'0', '72af7d49-f2bf-492f-9462-87f2004d184f_4.jpg', 13, 1),
(33, 1, 1, 'Z1000-R', b'1', 'a25b8ca5-b830-4879-9992-408c51a7f2f1_3.jpg', 14, 1),
(34, 1, 1, 'Z1000-R', b'0', '549b18a4-8602-4a6c-b19d-1311fd4b1ff5_4.jpg', 14, 1),
(39, 1, 1, 'Test them hinh anh', b'1', 'ded0161a-d7ae-41d9-bab1-d1e0e232bdc0_1.jpg', 17, 1),
(40, 1, 1, 'Test them hinh anh', b'0', 'e6666184-757a-4abf-b562-925f3c63b521_2.jpg', 17, 1);
-- --------------------------------------------------------
--
-- Table structure for table `inventory`
--
CREATE TABLE `inventory` (
`inventory_id` int(11) NOT NULL,
`inventory_on_hand` int(11) DEFAULT NULL,
`purchase_date` datetime(6) NOT NULL,
`quantity_received` int(11) DEFAULT NULL,
`starting_inventory` int(11) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
`supplier_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`first_name` varchar(255) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`payment_method` int(11) DEFAULT NULL,
`phone_number` varchar(255) DEFAULT NULL,
`postal_code` varchar(255) DEFAULT NULL,
`state_region` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `create_at`, `status`, `update_at`, `address`, `amount`, `city`, `country`, `first_name`, `last_name`, `payment_method`, `phone_number`, `postal_code`, `state_region`) VALUES
(1, '2020-11-10 02:11:13.829000', b'1', '2020-11-10 02:11:13.829000', 'Block A EHomse S Nam Sai Gon, Binh Hung', 80, 'Ho Chi Minh', 'Vietnam', 'Trinh Hao', 'Hiep', 0, '0123456789', '80000', 'Binh Chanh'),
(2, '2020-11-10 09:36:20.249000', b'1', '2020-11-10 09:36:20.249000', '343 Pham Ngu Lao', 85, 'Ho Chi Minh', 'Vietnam', 'To Dao', 'Viet Hoang', 0, '0123456789', '80000', 'Quan 1'),
(3, '2020-11-10 10:43:01.422000', b'1', '2020-11-10 10:43:01.422000', 'Block A EHomse S Nam Sai Gon, Binh Hung', 85, 'Ho Chi Minh', 'Vietnam', 'Trinh Hao', 'Hiep', 0, '0123456789', '80000', '<NAME>'),
(4, '2020-11-10 11:06:39.378000', b'1', '2020-11-10 11:06:39.378000', '343 Pham Ngu Lao', 85, 'Ho Chi Minh', 'Vietnam', 'To Dao', 'Viet Hoang', 0, '0123456789', '80000', 'Quan 1');
-- --------------------------------------------------------
--
-- Table structure for table `order_detail`
--
CREATE TABLE `order_detail` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`quantity` int(11) DEFAULT NULL,
`order_id` bigint(20) DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `order_detail`
--
INSERT INTO `order_detail` (`id`, `create_at`, `status`, `update_at`, `price`, `quantity`, `order_id`, `product_id`) VALUES
(1, '2020-11-10 02:11:13.856000', b'1', '2020-11-10 02:11:13.856000', 80, 1, 1, 1),
(2, '2020-11-10 09:36:20.269000', b'1', '2020-11-10 09:36:20.269000', 50, 1, 2, 1),
(3, '2020-11-10 09:36:20.287000', b'1', '2020-11-10 09:36:20.287000', 35, 1, 2, 3),
(4, '2020-11-10 10:43:01.434000', b'1', '2020-11-10 10:43:01.434000', 50, 1, 3, 1),
(5, '2020-11-10 10:43:01.455000', b'1', '2020-11-10 10:43:01.455000', 35, 1, 3, 3),
(6, '2020-11-10 11:06:39.391000', b'1', '2020-11-10 11:06:39.391000', 50, 1, 4, 1),
(7, '2020-11-10 11:06:39.428000', b'1', '2020-11-10 11:06:39.428000', 35, 1, 4, 3);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`hot` int(11) DEFAULT NULL,
`inventory_shipped` int(11) DEFAULT NULL,
`product_content` text,
`product_description` varchar(255) DEFAULT NULL,
`product_name` varchar(255) NOT NULL,
`product_type` int(11) DEFAULT NULL,
`save_price` int(11) NOT NULL,
`sku` varchar(255) DEFAULT NULL,
`slug` varchar(255) DEFAULT NULL,
`stock` int(11) NOT NULL,
`unit_price` int(11) NOT NULL,
`weight` double DEFAULT NULL,
`bid_detail_id` bigint(20) DEFAULT NULL,
`subcategory_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `create_at`, `status`, `update_at`, `hot`, `inventory_shipped`, `product_content`, `product_description`, `product_name`, `product_type`, `save_price`, `sku`, `slug`, `stock`, `unit_price`, `weight`, `bid_detail_id`, `subcategory_id`) VALUES
(1, '2020-11-09 21:14:16.630000', b'1', '2020-11-09 21:14:16.630000', 10, NULL, '', 'Bmw 535i - 1:24', 'bmw535i-Welly', 0, 50, 'b001', 'bmw535i-welly-1', -4, 65, 6, NULL, 4),
(2, '2020-11-09 21:37:20.329000', b'1', '2020-11-09 21:37:20.329000', 0, NULL, '', 'Bugati Sport 16 118', 'Bugati Chiron', 0, 40, 'R001', 'bugati-chiron-2', 0, 45, 0, NULL, 14),
(3, '2020-11-09 21:40:20.970000', b'1', '2020-11-09 21:40:20.970000', 0, NULL, '', 'Suzuki VStrom', 'Suzuki VStrom 112', 0, 35, 'Su001', 'suzuki-vstrom-112-3', -3, 40, 0, NULL, 15),
(4, '2020-11-09 21:42:22.379000', b'1', '2020-11-09 21:42:22.379000', 0, NULL, '', 'Suzuki GSX-R 1000R', 'suzuki GSX', 0, 38, 'Su002', 'suzuki-gsx-4', 0, 44, 0, NULL, 15),
(5, '2020-11-09 21:48:34.202000', b'1', '2020-11-09 21:48:34.202000', 0, NULL, '', 'Rolls Royce Phantom', 'Rolls Royce Phantom', 0, 49, 'Ro001', 'rolls-royce-phantom-5', 0, 54, 0, NULL, 14),
(6, '2020-11-09 21:51:38.376000', b'1', '2020-11-09 21:51:38.376000', 2, NULL, '', 'Ferrari Leferrari 164', 'Ferrari', 1, 61, 'fe001', 'ferrari-6', 0, 65, 0, 1, 17),
(7, '2020-11-09 21:53:18.981000', b'1', '2020-11-09 21:53:18.981000', 1, NULL, '', 'Hurracan Lp610', 'Lamborghini', 0, 55, 'La001', 'lamborghini-7', 0, 65, 0, NULL, 16),
(13, '2020-11-09 21:56:38.109000', b'1', '2020-11-09 21:56:38.109000', 19, NULL, '<p><br></p>gfdfdgdfggffghghf', 'Centenario Lp770', 'Lamborghini centenario', 1, 71, 'La002', 'lamborghini-centenario-13', 0, 77, 0, 7, 16),
(14, '2020-11-09 21:58:17.226000', b'1', '2020-11-09 21:58:17.226000', 0, NULL, '', 'Z1000-R', 'Kawasaki Z1000-R', 0, 20, 'Ka001', 'kawasaki-z1000-r-14', 0, 30, 0, NULL, 9),
(17, '2020-11-10 11:09:53.890000', b'1', '2020-11-10 11:09:53.890000', 0, NULL, '<p>Test test them xoa sua</p>', 'Test them san pham', 'Test 1', 0, 15, '', 'test-1-17', 0, 20, 0, NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `review`
--
CREATE TABLE `review` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`rating` float DEFAULT NULL,
`product_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `create_at`, `status`, `update_at`, `name`) VALUES
(1, '2020-11-09 20:32:41.616000', b'1', '2020-11-09 20:32:41.616000', 'ADMIN'),
(2, '2020-11-09 20:32:41.645000', b'1', '2020-11-09 20:32:41.645000', 'STAFF'),
(3, '2020-11-09 20:32:41.649000', b'1', '2020-11-09 20:32:41.649000', 'CUSTOMER');
-- --------------------------------------------------------
--
-- Table structure for table `sub_categories`
--
CREATE TABLE `sub_categories` (
`subcat_id` int(11) NOT NULL,
`slug` varchar(255) NOT NULL,
`sub_name` varchar(255) NOT NULL,
`category_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sub_categories`
--
INSERT INTO `sub_categories` (`subcat_id`, `slug`, `sub_name`, `category_id`) VALUES
(1, 'boeing-747', 'Boeing 747', 1),
(2, 'mic-17', 'Mic 17', 1),
(3, 'airbus-a320', 'Airbus A320', 1),
(4, 'bmw', 'BMW', 2),
(5, 'mercedes-benz', '<NAME>', 2),
(6, 'toyota', 'Toyota', 2),
(7, 'harley-davidson', '<NAME>', 3),
(8, 'ducati', 'Ducati', 3),
(9, 'kawasaki', 'Kawasaki', 3),
(10, 'iveco', 'Iveco', 4),
(11, 'scania', 'Scania', 4),
(12, 'hyundai', 'Hyundai', 4),
(13, 'bugati', 'Bugati', 2),
(14, 'rolls-royce', '<NAME>', 2),
(15, 'suzuki', 'Suzuki', 3),
(16, 'lamborghini', 'Lamborghini', 2),
(17, 'ferrari', 'Ferrari', 2);
-- --------------------------------------------------------
--
-- Table structure for table `suppliers`
--
CREATE TABLE `suppliers` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`telephone` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) NOT NULL,
`create_at` datetime(6) DEFAULT NULL,
`status` bit(1) DEFAULT NULL,
`update_at` datetime(6) DEFAULT NULL,
`date_of_birth` date DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`email_confirmed` bit(1) DEFAULT NULL,
`first_name` varchar(255) DEFAULT NULL,
`gender` int(11) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`phone_confirmed` bit(1) DEFAULT NULL,
`phone_number` varchar(255) DEFAULT NULL,
`profile_picture` varchar(255) DEFAULT NULL,
`address_id` bigint(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `create_at`, `status`, `update_at`, `date_of_birth`, `email`, `email_confirmed`, `first_name`, `gender`, `last_name`, `password`, `phone_confirmed`, `phone_number`, `profile_picture`, `address_id`) VALUES
(1, '2020-11-09 20:32:41.656000', b'1', '2020-11-09 20:32:41.656000', '1999-07-26', '<EMAIL>', b'1', '<NAME>', 0, 'Hiep', '$2a$10$oIseFM/zxPc9JIfniH.pBO8qD8eMmZQrckufZKMQTkzQ9NfOPlPa6', b'1', '0123456789', 'avatar.png', 1),
(2, '2020-11-09 20:32:41.793000', b'1', '2020-11-09 20:32:41.793000', '1999-07-26', '<EMAIL>', b'1', '<NAME>', 0, 'Ho<NAME>', '$2a$10$TTSIUApzujmw/JMfJuImyu2P2h5pfQYzD3b45GY92uVU347eVJ.Ey', b'1', '0123456789', 'avatar2.png', 2),
(3, '2020-11-09 20:32:41.906000', b'1', '2020-11-09 20:32:41.906000', '1999-07-26', '<EMAIL>', b'1', 'To Dao', 0, 'Viet Hoang', '$2a$10$Op0pIxb7cNpvJkvWvVscw.KQOeLSwuQjzOOTU2xo3K80YIJTThnBK', b'1', '0123456789', 'avatar3.png', 3);
-- --------------------------------------------------------
--
-- Table structure for table `user_roles`
--
CREATE TABLE `user_roles` (
`user_id` bigint(20) NOT NULL,
`role_id` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_roles`
--
INSERT INTO `user_roles` (`user_id`, `role_id`) VALUES
(1, 1),
(1, 2),
(2, 2),
(3, 3);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `abouts`
--
ALTER TABLE `abouts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `addresses`
--
ALTER TABLE `addresses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bid_details`
--
ALTER TABLE `bid_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bid_history`
--
ALTER TABLE `bid_history`
ADD PRIMARY KEY (`id`),
ADD KEY `FKevc6pn0ms8fj8fs0ft86a519u` (`bid_detail_id`),
ADD KEY `FKe8i01psee6t1fuvcbiuy70mxm` (`user_id`);
--
-- Indexes for table `blogs`
--
ALTER TABLE `blogs`
ADD PRIMARY KEY (`id`),
ADD KEY `FKpg4damav6db6a6fh5peylcni5` (`user_id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`category_id`),
ADD UNIQUE KEY `UK_oul14ho7bctbefv8jywp5v3i2` (`slug`);
--
-- Indexes for table `contact_us`
--
ALTER TABLE `contact_us`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `images`
--
ALTER TABLE `images`
ADD PRIMARY KEY (`image_id`),
ADD KEY `FKghwsjbjo7mg3iufxruvq6iu3q` (`product_id`),
ADD KEY `FK13ljqfrfwbyvnsdhihwta8cpr` (`user_id`);
--
-- Indexes for table `inventory`
--
ALTER TABLE `inventory`
ADD PRIMARY KEY (`inventory_id`),
ADD KEY `FKq2yge7ebtfuvwufr6lwfwqy9l` (`product_id`),
ADD KEY `FK1ticfk66udu8mbj1otebp2rgw` (`supplier_id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_detail`
--
ALTER TABLE `order_detail`
ADD PRIMARY KEY (`id`),
ADD KEY `FKrws2q0si6oyd6il8gqe2aennc` (`order_id`),
ADD KEY `FKc7q42e9tu0hslx6w4wxgomhvn` (`product_id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UK_f55t6sm19p5lrihq24a6knota` (`product_name`),
ADD KEY `FKqquqbnud323r37k17bmpw2wdk` (`bid_detail_id`),
ADD KEY `FKh7nopotm4ii6cr5np9nhxs4aa` (`subcategory_id`);
--
-- Indexes for table `review`
--
ALTER TABLE `review`
ADD PRIMARY KEY (`id`),
ADD KEY `FKa5cmgpp2plp5oai84fkmbi63e` (`product_id`),
ADD KEY `FK6cpw2nlklblpvc7hyt7ko6v3e` (`user_id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sub_categories`
--
ALTER TABLE `sub_categories`
ADD PRIMARY KEY (`subcat_id`),
ADD UNIQUE KEY `UK_n683x888bxcnnnxlgvqp2geav` (`slug`),
ADD KEY `FKjwy7imy3rf6r99x48ydq45otw` (`category_id`);
--
-- Indexes for table `suppliers`
--
ALTER TABLE `suppliers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UK_6dotkott2kjsp8vw4d0m25fb7` (`email`),
ADD KEY `FKe8vydtk7hf0y16bfm558sywbb` (`address_id`);
--
-- Indexes for table `user_roles`
--
ALTER TABLE `user_roles`
ADD PRIMARY KEY (`user_id`,`role_id`),
ADD KEY `FKh8ciramu9cc9q3qcqiv4ue8a6` (`role_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `abouts`
--
ALTER TABLE `abouts`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `addresses`
--
ALTER TABLE `addresses`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `bid_details`
--
ALTER TABLE `bid_details`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `bid_history`
--
ALTER TABLE `bid_history`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `blogs`
--
ALTER TABLE `blogs`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `contact_us`
--
ALTER TABLE `contact_us`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `images`
--
ALTER TABLE `images`
MODIFY `image_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `inventory`
--
ALTER TABLE `inventory`
MODIFY `inventory_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `order_detail`
--
ALTER TABLE `order_detail`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `review`
--
ALTER TABLE `review`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sub_categories`
--
ALTER TABLE `sub_categories`
MODIFY `subcat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `suppliers`
--
ALTER TABLE `suppliers`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `bid_history`
--
ALTER TABLE `bid_history`
ADD CONSTRAINT `FKe8i01psee6t1fuvcbiuy70mxm` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
ADD CONSTRAINT `FKevc6pn0ms8fj8fs0ft86a519u` FOREIGN KEY (`bid_detail_id`) REFERENCES `bid_details` (`id`);
--
-- Constraints for table `blogs`
--
ALTER TABLE `blogs`
ADD CONSTRAINT `FKpg4damav6db6a6fh5peylcni5` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `images`
--
ALTER TABLE `images`
ADD CONSTRAINT `FK13ljqfrfwbyvnsdhihwta8cpr` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
ADD CONSTRAINT `FKghwsjbjo7mg3iufxruvq6iu3q` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`);
--
-- Constraints for table `inventory`
--
ALTER TABLE `inventory`
ADD CONSTRAINT `FK1ticfk66udu8mbj1otebp2rgw` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`),
ADD CONSTRAINT `FKq2yge7ebtfuvwufr6lwfwqy9l` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`);
--
-- Constraints for table `order_detail`
--
ALTER TABLE `order_detail`
ADD CONSTRAINT `FKc7q42e9tu0hslx6w4wxgomhvn` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`),
ADD CONSTRAINT `FKrws2q0si6oyd6il8gqe2aennc` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`);
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `FKh7nopotm4ii6cr5np9nhxs4aa` FOREIGN KEY (`subcategory_id`) REFERENCES `sub_categories` (`subcat_id`),
ADD CONSTRAINT `FKqquqbnud323r37k17bmpw2wdk` FOREIGN KEY (`bid_detail_id`) REFERENCES `bid_details` (`id`);
--
-- Constraints for table `review`
--
ALTER TABLE `review`
ADD CONSTRAINT `FK6cpw2nlklblpvc7hyt7ko6v3e` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
ADD CONSTRAINT `FKa5cmgpp2plp5oai84fkmbi63e` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`);
--
-- Constraints for table `sub_categories`
--
ALTER TABLE `sub_categories`
ADD CONSTRAINT `FKjwy7imy3rf6r99x48ydq45otw` FOREIGN KEY (`category_id`) REFERENCES `categories` (`category_id`);
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `FKe8vydtk7hf0y16bfm558sywbb` FOREIGN KEY (`address_id`) REFERENCES `addresses` (`id`);
--
-- Constraints for table `user_roles`
--
ALTER TABLE `user_roles`
ADD CONSTRAINT `FKh8ciramu9cc9q3qcqiv4ue8a6` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
ADD CONSTRAINT `FKhfh9dx7w3ubf1co1vdev94g3f` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
|
select count(a.movieId) as numvers_of_movie, a.genres as genres
from (select movies.movieId, movies.genres
from movies , meanrating
where movies.movieId=meanrating.movieId and meanrating.mean_rating>4
group by movies.movieId, movies.genres) as a
group by a.genres
order by count(a.movieId) desc;
|
<gh_stars>0
USE PeopleTracker
GO
/****** Object: Table dbo.Race Script Date: 6/1/2018 8:38:01 AM ******/
IF OBJECT_ID('dbo.Race', 'U') IS NOT NULL
DROP TABLE dbo.Race
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE dbo.Race
(
RaceId int IDENTITY(1,1) NOT NULL,
Description nvarchar(50) NOT NULL,
CONSTRAINT PK_Race PRIMARY KEY CLUSTERED
(
RaceId ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
|
CREATE SCHEMA videos;
CREATE TABLE movies (
ID INTEGER PRIMARY KEY,
TITLE VARCHAR(120),
DIRECTOR VARCHAR(100),
GENRE VARCHAR(50),
REALEASE_YEAR SMALLINT,
DURATION SMALLINT
); |
/*
Rest without having to drop the database
*/
DELETE FROM User;
DELETE FROM Location;
DELETE FROM TempUser;
DELETE FROM HobbyTag;
ALTER TABLE User AUTO_INCREMENT = 1;
ALTER TABLE Location AUTO_INCREMENT = 1;
ALTER TABLE HobbyTag AUTO_INCREMENT = 1; |
-- Valentina Studio --
-- MySQL dump --
-- ---------------------------------------------------------
/*!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 */;
/*!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' */;
-- ---------------------------------------------------------
-- CREATE TABLE "failed_jobs" ----------------------------------
CREATE TABLE `failed_jobs`(
`id` BigInt( 0 ) UNSIGNED AUTO_INCREMENT NOT NULL,
`uuid` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` Text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` Text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` LongText CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` LongText CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` Timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ( `id` ),
CONSTRAINT `failed_jobs_uuid_unique` UNIQUE( `uuid` ) )
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB
AUTO_INCREMENT = 1;
-- -------------------------------------------------------------
-- CREATE TABLE "migrations" -----------------------------------
CREATE TABLE `migrations`(
`id` Int( 0 ) UNSIGNED AUTO_INCREMENT NOT NULL,
`migration` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` Int( 0 ) NOT NULL,
PRIMARY KEY ( `id` ) )
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB;
-- -------------------------------------------------------------
-- CREATE TABLE "password_resets" ------------------------------
CREATE TABLE `password_resets`(
`email` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` Timestamp NULL DEFAULT NULL )
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB;
-- -------------------------------------------------------------
-- CREATE TABLE "posts" ----------------------------------------
CREATE TABLE `posts`(
`id` BigInt( 0 ) UNSIGNED AUTO_INCREMENT NOT NULL,
`slug` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`title` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`excerpt` Text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`body` Text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` Timestamp NULL DEFAULT NULL,
`updated_at` Timestamp NULL DEFAULT NULL,
`published_at` Timestamp NULL DEFAULT NULL,
PRIMARY KEY ( `id` ),
CONSTRAINT `posts_slug_unique` UNIQUE( `slug` ) )
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB
AUTO_INCREMENT = 1;
-- -------------------------------------------------------------
-- CREATE TABLE "users" ----------------------------------------
CREATE TABLE `users`(
`id` BigInt( 0 ) UNSIGNED AUTO_INCREMENT NOT NULL,
`name` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` Timestamp NULL DEFAULT NULL,
`password` VarChar( 255 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` VarChar( 100 ) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`created_at` Timestamp NULL DEFAULT NULL,
`updated_at` Timestamp NULL DEFAULT NULL,
PRIMARY KEY ( `id` ),
CONSTRAINT `users_email_unique` UNIQUE( `email` ) )
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_unicode_ci
ENGINE = InnoDB
AUTO_INCREMENT = 1;
-- -------------------------------------------------------------
-- Dump data of "failed_jobs" ------------------------------
-- ---------------------------------------------------------
-- Dump data of "migrations" -------------------------------
BEGIN;
INSERT INTO `migrations`(`id`,`migration`,`batch`) VALUES
( '1', '2014_10_12_000000_create_users_table', '1' ),
( '2', '2014_10_12_100000_create_password_resets_table', '1' ),
( '3', '2019_08_19_000000_create_failed_jobs_table', '1' ),
( '4', '2021_07_02_103329_create_posts_table', '1' );
COMMIT;
-- ---------------------------------------------------------
-- Dump data of "password_resets" --------------------------
-- ---------------------------------------------------------
-- Dump data of "posts" ------------------------------------
BEGIN;
INSERT INTO `posts`(`id`,`slug`,`title`,`excerpt`,`body`,`created_at`,`updated_at`,`published_at`) VALUES
( '1', 'my-first-post', 'My Firts Post', '<NAME> Jes1', '<p>lorem ipsum dolor and 1 kurwa</p>', '2021-07-06 09:33:11', '2021-07-06 09:35:28', NULL ),
( '2', 'my-second-post', 'My Second Post', 'Lorem ipsum Jes2', '<p>lorem ipsum dolor and 2 kurwas</p>', '2021-07-06 09:33:11', '2021-07-06 09:35:28', NULL ),
( '3', 'my-third-post', 'My Third Post', 'Lorem ipsum Jes3', '<p>lorem ipsum dolor and 3 kurwas, kurwa jes jes?</p>', '2021-07-06 09:33:11', '2021-07-06 09:35:28', NULL ),
( '4', 'my-fourth-post', 'My Fourth Post', 'Lorem ipsum Jes4', '<p>lorem ipsum dolor and 4 kurwas jes kurwa x4 jes jes?</p>', '2021-07-06 09:33:11', '2021-07-06 09:35:28', NULL );
COMMIT;
-- ---------------------------------------------------------
-- Dump data of "users" ------------------------------------
-- ---------------------------------------------------------
-- CREATE INDEX "password_resets_email_index" ------------------
CREATE INDEX `password_resets_email_index` USING BTREE ON `password_resets`( `email` );
-- -------------------------------------------------------------
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- ---------------------------------------------------------
|
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 28 Okt 2021 pada 05.59
-- 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: `datacenter`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_kabel`
--
CREATE TABLE `tb_kabel` (
`id_kabel` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`nama_kabel` varchar(255) NOT NULL,
`jns_kabel` varchar(255) NOT NULL,
`kec_kabel` varchar(255) NOT NULL,
`ket_kabel` varchar(255) NOT NULL,
`status_kabel` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_kabel`
--
INSERT INTO `tb_kabel` (`id_kabel`, `id_server`, `nama_kabel`, `jns_kabel`, `kec_kabel`, `ket_kabel`, `status_kabel`) VALUES
(1, 1, 'RASO 45', 'RJ45', '1000', '', 'RUSAK'),
(2, 2, 'XIAOMI', 'LAN', '1000', '', 'GANTI');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_komponen`
--
CREATE TABLE `tb_komponen` (
`id_komponen` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`id_hardware` int(55) NOT NULL,
`nama_komponen` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_lemari`
--
CREATE TABLE `tb_lemari` (
`id_lemari` int(55) NOT NULL,
`id_ruangan` int(55) NOT NULL,
`nama_lemari` varchar(255) NOT NULL,
`slotrack` int(55) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_lemari`
--
INSERT INTO `tb_lemari` (`id_lemari`, `id_ruangan`, `nama_lemari`, `slotrack`) VALUES
(1, 1, 'Lemari A15', 5),
(2, 2, 'Lemari B01', 7),
(3, 1, 'Lemari A10', 4);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_log`
--
CREATE TABLE `tb_log` (
`id_log` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`halaman` varchar(255) NOT NULL,
`aktivitas` varchar(255) NOT NULL,
`waktu` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_log`
--
INSERT INTO `tb_log` (`id_log`, `id_user`, `halaman`, `aktivitas`, `waktu`) VALUES
(5, 5, 'Prosesor', 'AMD 555 di Server NAGA di ubah status menjadi PERBAIKI', '2020-07-09 12:08:16'),
(11, 5, 'RAM', 'ASROCK SODIMM DDR3 di Server NAGA di ubah status menjadi PERBAIKI', '2020-07-09 13:07:31'),
(12, 5, 'RAM', 'ASROCK SODIMM DDR3 di Server NAGA di ubah status menjadi RUSAK', '2020-07-09 13:08:11'),
(16, 5, 'Storage', 'SSD ADATA di Server HIU di ubah status menjadi GANTI', '2020-07-09 14:09:57'),
(17, 5, 'Kabel', 'XIAOMI di Server NAGA di ubah status menjadi RUSAK', '2020-07-09 14:42:21'),
(18, 5, 'Kabel', 'RASO 45 di Server HIU di ubah status menjadi GANTI', '2020-07-09 14:43:17'),
(19, 5, 'Storage', 'SSD ADATA di Server HIU di ubah status menjadi RUSAK', '2020-07-09 14:43:36'),
(20, 5, 'RAM', 'ASROCK SODIMM DDR3 di Server NAGA di ubah status menjadi GANTI', '2020-07-09 14:43:46'),
(21, 5, 'Prosesor', 'AMD Ryzen 9 di Server NAGA di ubah status menjadi GANTI', '2020-07-09 14:44:14'),
(22, 5, 'Kabel', 'RASO 45 di Server HIU di ubah status menjadi GANTI', '2020-07-16 15:54:47'),
(23, 5, 'Prosesor', 'AMD Ryzen 3 di Server HIU di ubah status menjadi PERBAIKI', '2021-02-01 08:56:01'),
(24, 5, 'Prosesor', 'Intel i9 di Server HIU di ubah status menjadi GANTI', '2021-02-01 12:07:53'),
(25, 5, 'Kabel', 'XIAOMI di Server NAGA di ubah status menjadi GANTI', '2021-02-01 12:09:04'),
(34, 2, 'Prosesor', 'AMD Ryzen 3 di pindah dari Server NAGA ke Server HIU', '2021-02-15 02:54:46'),
(35, 2, 'Prosesor', 'AMD Ryzen 3 di pindah dari Server HIU ke Server NAGA', '2021-02-15 02:57:37'),
(36, 2, 'RAM', 'CORSAIR SODIMM DDR3 di pindah dari Server HIU ke Server NAGA', '2021-02-15 03:14:06'),
(37, 2, 'RAM', 'VGEN SODIMM DDR3 di pindah dari Server NAGA ke Server HIU', '2021-02-15 03:16:45'),
(38, 2, 'Storage', 'SSD ADATA di pindah dari Server NAGA ke Server HIU', '2021-02-15 03:23:09'),
(39, 2, 'Kabel', 'RASO 45 di pindah dari Server HIU ke Server NAGA', '2021-02-15 03:29:49'),
(40, 2, 'Kabel', 'RASO 45 di pindah dari Server NAGA ke Server HIU', '2021-02-15 03:30:07'),
(41, 2, 'Prosesor', 'Intel i9 di Server HIU di ubah status menjadi RUSAK', '2021-02-15 05:17:41'),
(42, 2, 'Prosesor', 'AMD 555 di Server NAGA di ubah status menjadi GANTI', '2021-02-15 05:17:57'),
(43, 2, 'RAM', 'CORSAIR SODIMM DDR3 di Server NAGA di ubah status menjadi RUSAK', '2021-02-15 05:18:31'),
(44, 2, 'RAM', 'VGEN SODIMM DDR3 di Server HIU di ubah status menjadi PERBAIKI', '2021-02-15 05:18:51'),
(45, 2, 'Storage', 'SSD ADATA di Server NAGA di ubah status menjadi PERBAIKI', '2021-02-15 05:19:26'),
(46, 2, 'Storage', 'SSD ADATA di Server NAGA di ubah status menjadi RUSAK', '2021-02-15 05:19:42'),
(47, 2, 'Kabel', 'RASO 45 di Server HIU di ubah status menjadi RUSAK', '2021-02-15 05:20:08'),
(48, 2, 'Kabel', 'RASO 45 di Server HIU di ubah status menjadi RUSAK', '2021-02-15 05:20:08'),
(49, 2, 'Storage', 'SSD ADATA di Server NAGA di ubah status menjadi RUSAK', '2021-02-15 05:19:42'),
(50, 2, 'Storage', 'SSD ADATA di Server NAGA di ubah status menjadi PERBAIKI', '2021-02-15 05:19:26'),
(51, 2, 'RAM', 'VGEN SODIMM DDR3 di Server HIU di ubah status menjadi PERBAIKI', '2021-02-15 05:18:51'),
(52, 2, 'RAM', 'CORSAIR SODIMM DDR3 di Server NAGA di ubah status menjadi RUSAK', '2021-02-15 05:18:31'),
(53, 2, 'Prosesor', 'AMD 555 di Server NAGA di ubah status menjadi GANTI', '2021-02-15 05:17:57'),
(54, 2, 'Prosesor', 'Intel i9 di Server HIU di ubah status menjadi RUSAK', '2021-02-15 05:17:41'),
(55, 2, 'Kabel', 'RASO 45 di pindah dari Server NAGA ke Server HIU', '2021-02-15 03:30:07'),
(56, 2, 'Kabel', 'RASO 45 di pindah dari Server HIU ke Server NAGA', '2021-02-15 03:29:49');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_pc`
--
CREATE TABLE `tb_pc` (
`id_pc` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`id_ram` int(55) NOT NULL,
`id_storage` int(55) NOT NULL,
`id_prosesor` int(55) NOT NULL,
`id_kabel` int(55) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_penghubung`
--
CREATE TABLE `tb_penghubung` (
`id_penghubung` int(55) NOT NULL,
`id_vps` int(55) NOT NULL,
`id_sistem` int(55) NOT NULL,
`ket_penghubung` varchar(255) NOT NULL,
`status_penghubung` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_prosesor`
--
CREATE TABLE `tb_prosesor` (
`id_prosesor` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`nama_prosesor` varchar(255) NOT NULL,
`jml_core` int(55) NOT NULL,
`ket_prosesor` varchar(255) NOT NULL,
`status_prosesor` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_prosesor`
--
INSERT INTO `tb_prosesor` (`id_prosesor`, `id_server`, `nama_prosesor`, `jml_core`, `ket_prosesor`, `status_prosesor`) VALUES
(3, 1, 'Intel i9', 8, '', 'RUSAK'),
(4, 2, 'AMD Ryzen 9', 10, '', 'RUSAK'),
(5, 2, 'AMD 555', 10, '', 'GANTI'),
(6, 0, 'AMD 123', 10, 'Test 123', 'RUSAK'),
(7, 2, 'AMD Ryzen 3', 4, '', 'PERBAIKI'),
(11, 1, 'Ryzen 5', 10, 'Kosong', 'GANTI');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_rack`
--
CREATE TABLE `tb_rack` (
`id_rack` int(55) NOT NULL,
`id_lemari` int(55) NOT NULL,
`nama_rack` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_rack`
--
INSERT INTO `tb_rack` (`id_rack`, `id_lemari`, `nama_rack`) VALUES
(1, 1, 'Rak A1'),
(2, 1, 'Rak B2'),
(3, 2, 'Rak B2C'),
(4, 3, 'Rak C1');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_ram`
--
CREATE TABLE `tb_ram` (
`id_ram` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`nama_ram` varchar(255) NOT NULL,
`ukuran_ram` int(55) NOT NULL,
`ket_ram` varchar(255) NOT NULL,
`status_ram` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_ram`
--
INSERT INTO `tb_ram` (`id_ram`, `id_server`, `nama_ram`, `ukuran_ram`, `ket_ram`, `status_ram`) VALUES
(1, 2, 'ASROCK SODIMM DDR3', 7, 'Cuma 1', 'GANTI'),
(2, 1, 'VGEN SODIMM DDR3', 8, 'Cuma 1', 'PERBAIKI'),
(5, 2, 'CORSAIR SODIMM DDR3', 4, 'Hiyahiya', 'RUSAK');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_ruangan`
--
CREATE TABLE `tb_ruangan` (
`id_ruangan` int(55) NOT NULL,
`nama_ruangan` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_ruangan`
--
INSERT INTO `tb_ruangan` (`id_ruangan`, `nama_ruangan`) VALUES
(1, 'Lantai 1'),
(2, 'Lantai 2');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_server`
--
CREATE TABLE `tb_server` (
`id_server` int(55) NOT NULL,
`id_rack` int(55) NOT NULL,
`nama_server` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_server`
--
INSERT INTO `tb_server` (`id_server`, `id_rack`, `nama_server`) VALUES
(1, 1, 'HIU'),
(2, 3, 'NAGA');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_sistem`
--
CREATE TABLE `tb_sistem` (
`id_sistem` int(55) NOT NULL,
`id_vps` varchar(55) NOT NULL,
`nama_sistem` varchar(255) NOT NULL,
`alamat_sistem` varchar(255) NOT NULL,
`deskripsi` varchar(255) NOT NULL,
`tahun` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_sistem`
--
INSERT INTO `tb_sistem` (`id_sistem`, `id_vps`, `nama_sistem`, `alamat_sistem`, `deskripsi`, `tahun`) VALUES
(1, '2', 'Sistem Informasi Akademik', 'akademik.unsoed.ac.id', 'Ini adalah sistem akademik unsoed V 2.0', 2020),
(2, '1', 'Sistem Tagihan', 'sista.unsoed.ac.id', 'Ini adalah sistem tagihan unsoed V 1.0', 2018);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_storage`
--
CREATE TABLE `tb_storage` (
`id_storage` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`nama_storage` varchar(255) NOT NULL,
`ukuran_storage` int(55) NOT NULL,
`tipe_storage` varchar(255) NOT NULL,
`ket_storage` varchar(255) NOT NULL,
`status_storage` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_storage`
--
INSERT INTO `tb_storage` (`id_storage`, `id_server`, `nama_storage`, `ukuran_storage`, `tipe_storage`, `ket_storage`, `status_storage`) VALUES
(1, 2, 'SSD ADATA', 5000, 'SSD', 'Tahun 2019', 'RUSAK'),
(2, 1, 'SSD ADATA', 5000, 'SSD', 'Tahun 2019', 'PERBAIKI'),
(3, 2, 'SSD ADATA', 5000, 'SSD', 'Tahun 2019', 'PERBAIKI'),
(5, 1, 'SANDISK', 2500, 'SSD', 'Keren', 'GANTI');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_user`
--
CREATE TABLE `tb_user` (
`id_user` int(55) NOT NULL,
`username` varchar(55) NOT NULL,
`password` varchar(55) NOT NULL,
`nama_user` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`photo` varchar(100) NOT NULL,
`level_user` int(10) NOT NULL,
`last_login` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_user`
--
INSERT INTO `tb_user` (`id_user`, `username`, `password`, `nama_user`, `email`, `photo`, `level_user`, `last_login`) VALUES
(1, 'lptsi', '21232f297a57a5a743894a0e4a801fc3', 'Limaa', '<EMAIL>', 'logounsoedlp3m.png', 1, '2021-02-14 23:03:12'),
(2, 'unsoed', 'e21394aaeee10f917f581054d24b031f', 'Tuan Lorem Ipsum', '<EMAIL>', 'logounsoedlp3m.png', 2, '2021-02-15 05:22:59'),
(4, 'cpz', 'eedae20fc3c7a6e9c5b1102098771c70', 'Hiyak', '<EMAIL>', 'logounsoedlp3m.png', 1, '2021-02-02 00:50:19'),
(5, 'hayuk', 'eedae20fc3c7a6e9c5b1102098771c70', 'Bapak Iqbal AE', '<EMAIL>', 'logounsoedlp3m.png', 2, '2021-02-02 00:44:49');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_vps`
--
CREATE TABLE `tb_vps` (
`id_vps` int(55) NOT NULL,
`id_server` int(55) NOT NULL,
`nama_vps` varchar(255) NOT NULL,
`prosesor_vps` int(55) NOT NULL,
`ukuran_harddiskvps` varchar(55) NOT NULL,
`ukuran_ramvps` varchar(55) NOT NULL,
`id_user` int(55) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_vps`
--
INSERT INTO `tb_vps` (`id_vps`, `id_server`, `nama_vps`, `prosesor_vps`, `ukuran_harddiskvps`, `ukuran_ramvps`, `id_user`) VALUES
(1, 2, 'AB12', 1, '128', '1', 2),
(2, 2, 'AX12', 1, '250', '2', 4);
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `tb_kabel`
--
ALTER TABLE `tb_kabel`
ADD PRIMARY KEY (`id_kabel`);
--
-- Indeks untuk tabel `tb_komponen`
--
ALTER TABLE `tb_komponen`
ADD PRIMARY KEY (`id_komponen`);
--
-- Indeks untuk tabel `tb_lemari`
--
ALTER TABLE `tb_lemari`
ADD PRIMARY KEY (`id_lemari`);
--
-- Indeks untuk tabel `tb_log`
--
ALTER TABLE `tb_log`
ADD PRIMARY KEY (`id_log`);
--
-- Indeks untuk tabel `tb_pc`
--
ALTER TABLE `tb_pc`
ADD PRIMARY KEY (`id_pc`);
--
-- Indeks untuk tabel `tb_penghubung`
--
ALTER TABLE `tb_penghubung`
ADD PRIMARY KEY (`id_penghubung`);
--
-- Indeks untuk tabel `tb_prosesor`
--
ALTER TABLE `tb_prosesor`
ADD PRIMARY KEY (`id_prosesor`);
--
-- Indeks untuk tabel `tb_rack`
--
ALTER TABLE `tb_rack`
ADD PRIMARY KEY (`id_rack`);
--
-- Indeks untuk tabel `tb_ram`
--
ALTER TABLE `tb_ram`
ADD PRIMARY KEY (`id_ram`);
--
-- Indeks untuk tabel `tb_ruangan`
--
ALTER TABLE `tb_ruangan`
ADD PRIMARY KEY (`id_ruangan`);
--
-- Indeks untuk tabel `tb_server`
--
ALTER TABLE `tb_server`
ADD PRIMARY KEY (`id_server`);
--
-- Indeks untuk tabel `tb_sistem`
--
ALTER TABLE `tb_sistem`
ADD PRIMARY KEY (`id_sistem`);
--
-- Indeks untuk tabel `tb_storage`
--
ALTER TABLE `tb_storage`
ADD PRIMARY KEY (`id_storage`);
--
-- Indeks untuk tabel `tb_user`
--
ALTER TABLE `tb_user`
ADD PRIMARY KEY (`id_user`);
--
-- Indeks untuk tabel `tb_vps`
--
ALTER TABLE `tb_vps`
ADD PRIMARY KEY (`id_vps`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `tb_kabel`
--
ALTER TABLE `tb_kabel`
MODIFY `id_kabel` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_komponen`
--
ALTER TABLE `tb_komponen`
MODIFY `id_komponen` int(55) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `tb_lemari`
--
ALTER TABLE `tb_lemari`
MODIFY `id_lemari` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `tb_log`
--
ALTER TABLE `tb_log`
MODIFY `id_log` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;
--
-- AUTO_INCREMENT untuk tabel `tb_pc`
--
ALTER TABLE `tb_pc`
MODIFY `id_pc` int(55) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `tb_penghubung`
--
ALTER TABLE `tb_penghubung`
MODIFY `id_penghubung` int(55) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `tb_prosesor`
--
ALTER TABLE `tb_prosesor`
MODIFY `id_prosesor` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT untuk tabel `tb_rack`
--
ALTER TABLE `tb_rack`
MODIFY `id_rack` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `tb_ram`
--
ALTER TABLE `tb_ram`
MODIFY `id_ram` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT untuk tabel `tb_ruangan`
--
ALTER TABLE `tb_ruangan`
MODIFY `id_ruangan` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_server`
--
ALTER TABLE `tb_server`
MODIFY `id_server` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_sistem`
--
ALTER TABLE `tb_sistem`
MODIFY `id_sistem` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_storage`
--
ALTER TABLE `tb_storage`
MODIFY `id_storage` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT untuk tabel `tb_user`
--
ALTER TABLE `tb_user`
MODIFY `id_user` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT untuk tabel `tb_vps`
--
ALTER TABLE `tb_vps`
MODIFY `id_vps` int(55) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>ArisPutraBuana/CI_Pagination
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 29 Mar 2020 pada 09.43
-- Versi server: 10.1.31-MariaDB
-- Versi PHP: 5.6.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_akademik2`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`nim` varchar(15) NOT NULL,
`nama` varchar(50) DEFAULT NULL,
`prodi` varchar(40) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `mahasiswa`
--
INSERT INTO `mahasiswa` (`nim`, `nama`, `prodi`) VALUES
('1139744', 'Muller', 'Sistem Komputer'),
('1210158', '<NAME>', 'Sistem Informasi'),
('1210381', '<NAME>', 'Akuntansi'),
('1210382', 'Joko', 'Teknik Sipil'),
('1219482', 'Mario', 'Psikologi'),
('1324387', '<NAME>', 'Multimedia');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`nim`);
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>mmtourguide_laravel.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 09, 2019 at 01:28 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `mmtourguide_laravel`
--
-- --------------------------------------------------------
--
-- Table structure for table `bookingdetails`
--
CREATE TABLE `bookingdetails` (
`id` bigint(20) UNSIGNED NOT NULL,
`tour_date` date NOT NULL,
`tour_day` int(11) NOT NULL,
`tour_time` time NOT NULL,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guide_id` bigint(20) UNSIGNED NOT NULL,
`booking_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `bookings`
--
CREATE TABLE `bookings` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenno` text COLLATE utf8mb4_unicode_ci NOT NULL,
`nop` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci NOT NULL,
`tourist_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`passportcover` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `countries`
--
INSERT INTO `countries` (`id`, `name`, `passportcover`, `created_at`, `updated_at`) VALUES
(1, 'United Arab emirates', '/storage/photo/passportcover/ae.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'Germany', '/storage/photo/passportcover/de.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'Finland', '/storage/photo/passportcover/fi.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(4, 'Luxembourg', '/storage/photo/passportcover/lu.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(5, 'Spain', '/storage/photo/passportcover/es.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(6, 'Denmark', '/storage/photo/passportcover/dk.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(7, 'Italy', '/storage/photo/passportcover/it.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(8, 'Netherlands', '/storage/photo/passportcover/nl.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(9, 'Austria', '/storage/photo/passportcover/at.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(10, 'Portugal', '/storage/photo/passportcover/pt.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(11, 'Switzerland', '/storage/photo/passportcover/ch.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(12, 'Japan', '/storage/photo/passportcover/jp.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(13, 'South Korea', '/storage/photo/passportcover/kr.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(14, 'Ireland', '/storage/photo/passportcover/ie.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(15, 'United States of America', '/storage/photo/passportcover/us.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(16, 'Myanmar', '/storage/photo/passportcover/mm.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `divisions`
--
CREATE TABLE `divisions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`flag` text COLLATE utf8mb4_unicode_ci NOT NULL,
`capital` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`region` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `divisions`
--
INSERT INTO `divisions` (`id`, `name`, `flag`, `capital`, `region`, `type`, `description`, `created_at`, `updated_at`) VALUES
(1, 'Kachin State', '/storage/photo/localflag/kachin.png', 'Myitkyina', 'North', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'Kayah State', '/storage/photo/localflag/kayah.png', 'Loikaw', 'East', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'Kayin State', '/storage/photo/localflag/kayin.png', 'Pa-an', 'South', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(4, 'Chin State', '/storage/photo/localflag/chin.png', 'Hakha', 'West', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(5, 'Mon State', '/storage/photo/localflag/mon.png', 'Mawlamyine', 'South', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(6, 'Rakhine State', '/storage/photo/localflag/rakhine.png', 'Sittwe', 'West', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(7, 'Shan State', '/storage/photo/localflag/shan.png', 'Taunggyi', 'East', 'State', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(8, 'Ayeyarwady Region', '/storage/photo/localflag/ayeyarwady.png', 'Pathein', 'Lower', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(9, 'Bago Region', '/storage/photo/localflag/bago.png', 'Bago', 'Lower', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(10, 'Magway Region', '/storage/photo/localflag/magway.png', 'Magwe', 'Central', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(11, 'Mandalay Region', '/storage/photo/localflag/mandalay.png', 'Mandalay', 'Central', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(12, 'Sagaing Region', '/storage/photo/localflag/sagaing.png', 'Sagaing', 'North', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(13, 'Tanintharyi Region', '/storage/photo/localflag/tanintharyi.png', 'Dawei', 'South', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(14, 'Yangon Region', '/storage/photo/localflag/yangon.png', 'Yangon', 'Lower', 'Region', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(15, 'Naypyidaw Union Territory', '/storage/photo/localflag/NayPyiTaw_Council.jpg', 'Naypyidaw', 'Central', 'Union Territory', '', '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED 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 `guides`
--
CREATE TABLE `guides` (
`id` bigint(20) UNSIGNED NOT NULL,
`license` text COLLATE utf8mb4_unicode_ci NOT NULL,
`licensecertificate` text COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`profile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cv` text COLLATE utf8mb4_unicode_ci NOT NULL,
`approveddate` date NOT NULL DEFAULT '2019-12-06',
`bio` text COLLATE utf8mb4_unicode_ci NOT NULL,
`hourrate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dailyrate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guidenumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`user_id` bigint(20) UNSIGNED NOT NULL,
`division_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `guides`
--
INSERT INTO `guides` (`id`, `license`, `licensecertificate`, `phone`, `address`, `gender`, `profile`, `cv`, `approveddate`, `bio`, `hourrate`, `dailyrate`, `guidenumber`, `status`, `user_id`, `division_id`, `created_at`, `updated_at`) VALUES
(1, 'RG - 635', '[\"\\/storage\\/photo\\/guidelicense\\/32745.jpeg\",\"\\/storage\\/photo\\/guidelicense\\/22747.jpeg\"]', '987654321', 'Yangon', 'Female', '/storage/photo/guide/68179.jpeg', '/storage/pdf/guide_cv/64181.pdf', '2019-12-06', '', '5 USD', '25 USD', 'MM55570', 1, 4, 14, '2019-12-06 08:32:53', '2019-12-06 08:45:53'),
(2, 'G - 9574', '[\"\\/storage\\/photo\\/guidelicense\\/53766.jpeg\"]', '987654321', 'Yangon', 'Male', '/storage/photo/guide/99046.jpeg', '/storage/pdf/guide_cv/12295.pdf', '2019-12-06', '', '3 USD', '20 USD', 'MM46738', 1, 5, 9, '2019-12-06 08:38:21', '2019-12-06 08:45:59'),
(3, 'G - 6965', '[\"\\/storage\\/photo\\/guidelicense\\/33157.png\"]', '987654321', 'Yangon', 'Male', '/storage/photo/guide/35922.png', '/storage/pdf/guide_cv/13042.pdf', '2019-12-06', '', '15 USD', '35 USD', 'MM13615', 1, 6, 1, '2019-12-06 08:40:13', '2019-12-06 08:46:03'),
(4, 'G - 9277', '[\"\\/storage\\/photo\\/guidelicense\\/99133.pdf\"]', '987654321', 'Yangon', 'Male', '/storage/photo/guide/31404.jpeg', '/storage/pdf/guide_cv/83989.pdf', '0000-00-00', '', '15 USD', '35 USD', 'MM13616', 1, 7, 14, '2019-12-06 09:29:59', '2019-12-06 09:29:59');
-- --------------------------------------------------------
--
-- Table structure for table `guide_language`
--
CREATE TABLE `guide_language` (
`id` bigint(20) UNSIGNED NOT NULL,
`guide_id` bigint(20) UNSIGNED NOT NULL,
`language_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `guide_language`
--
INSERT INTO `guide_language` (`id`, `guide_id`, `language_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 1, 3, NULL, NULL),
(3, 2, 1, NULL, NULL),
(4, 2, 3, NULL, NULL),
(5, 3, 6, NULL, NULL),
(6, 4, 1, NULL, NULL),
(7, 4, 8, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `guide_place`
--
CREATE TABLE `guide_place` (
`id` bigint(20) UNSIGNED NOT NULL,
`guide_id` bigint(20) UNSIGNED NOT NULL,
`place_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `guide_place`
--
INSERT INTO `guide_place` (`id`, `guide_id`, `place_id`, `created_at`, `updated_at`) VALUES
(1, 1, 65, NULL, NULL),
(2, 1, 63, NULL, NULL),
(3, 1, 66, NULL, NULL),
(4, 1, 67, NULL, NULL),
(5, 1, 62, NULL, NULL),
(6, 1, 64, NULL, NULL),
(7, 2, 40, NULL, NULL),
(8, 2, 41, NULL, NULL),
(9, 2, 42, NULL, NULL),
(10, 3, 3, NULL, NULL),
(11, 3, 2, NULL, NULL),
(12, 3, 4, NULL, NULL),
(13, 4, 63, NULL, NULL),
(14, 4, 62, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `languages`
--
CREATE TABLE `languages` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`flag` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `languages`
--
INSERT INTO `languages` (`id`, `name`, `flag`, `created_at`, `updated_at`) VALUES
(1, 'Myanmar', '/storage/photo/globalflag/myanmar.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'Chinese', '/storage/photo/globalflag/china.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'English', '/storage/photo/globalflag/us.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(4, 'British', '/storage/photo/globalflag/britain.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(5, 'Spain', '/storage/photo/globalflag/spain.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(6, 'Japan', '/storage/photo/globalflag/japan.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(7, 'Korea', '/storage/photo/globalflag/korea.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(8, 'French', '/storage/photo/globalflag/france.png', '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_11_23_144221_create_permission_tables', 1),
(5, '2019_11_23_145319_create_divisions_table', 1),
(6, '2019_11_28_094323_create_regions_table', 1),
(7, '2019_11_28_094333_create_languages_table', 1),
(8, '2019_11_28_094355_create_places_table', 1),
(9, '2019_11_28_094405_create_guides_table', 1),
(10, '2019_11_28_094526_create_tourists_table', 1),
(11, '2019_11_28_164600_create_bookings_table', 1),
(12, '2019_11_28_164629_create_bookingdetails_table', 1),
(13, '2019_11_29_093337_create_guide_language_table', 1),
(14, '2019_11_29_093347_create_guide_place_table', 1),
(15, '2019_12_04_095538_create_ratings_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `model_has_permissions`
--
CREATE TABLE `model_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `model_has_roles`
--
CREATE TABLE `model_has_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `model_has_roles`
--
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\User', 1),
(2, 'App\\User', 4),
(2, 'App\\User', 5),
(2, 'App\\User', 6),
(3, 'App\\User', 2);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `permissions`
--
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `places`
--
CREATE TABLE `places` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`photo` text COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`region_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `places`
--
INSERT INTO `places` (`id`, `name`, `photo`, `description`, `region_id`, `created_at`, `updated_at`) VALUES
(1, 'Taping River', '/storage/photo/places/trpaing.jpg', 'The Taping River, known as Ta Hkaw Hka in Kachin and Daying River is a river in Yunnan province, China and northern Myanmar (Burma). It is the first tributary of the country`s chief river, the Irrawaddy, and the watersheds between it and the N`mai Hka river to the northwest and the rivers Shweli and Salween to the southeast form part of the boundary between China and Myanmar. Its source lies in Yingjiang County of Yunnan, and it enters the Irrawaddy near Bhamo, Kachin State.', 1, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'Indawgyi Lake', '/storage/photo/places/1920px-In_Daw_Gyi_Pagoda.jpg', 'Indawgyi Lake is a secluded destination for nature lovers in remote Kachin State. The largest lake in Myanmar, Indawgyi remains pristine and undeveloped and has been designated as a UNESCO Biosphere Reserve; it’s still possible to find places where you won’t hear the drone of a motor – or even see a single boat. The area is largely untouched by tourism, with few foreigners making the journey this far north. It’s truly a place to relax and enjoy the simple rural lifestyle and the beautiful natural surroundings.', 2, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'Hkakabo Razi', '/storage/photo/places/hkakabo-razi.jpg', 'The Republic of Myanmar, also commonly referred to as Burma, is a nation in the South East Asia region bordering Bangladesh, China, Laos, Thailand, and India. The country has a total land area of 676,578 square kilometers and lies between latitudes 9 Degrees North and 29 Degrees North and longitudes of 91 Degrees East and 102 Degrees East. Much of Burma lies within the Tropic of Cancer and equator in the monsoon regions of Asia. The country’s coastal area receives an annual rainfall of 5,000 millimeters. Myanmar has several mountain ranges including Bago Yoma, Rakhine Yoma, Tenasserim Hills, and Shan Hills. The mountains within the country run north to south from the Himalayas. The chain of mountains divides the country’s three rivers, the Salween, Irrawaddy, and Sittaung Rivers. The highest mountains in Myanmar are looked at herein.\n <h1> Hkakabo Razi </h1>\n Hkakabo Razi is the highest point of elevation and the highest mountain in Myanmar with an elevation of 19,295 feet (5,881 meters). The mountain is also the highest in the South East Asia and it is found in the northern Myanmar state of Kachin in the Greater Himalayan mountain range. Mount Hkakabo Razi is surrounded by the Hkakabo Razi National Park which is entirely mountainous made up of the broad-leaved evergreen rain forest. The mountain is divided into zones depending on the level of elevation. The zones include sub-tropical temperate (8,000 to 9,000 feet), semi-deciduous forest, needle-leaves snow forest, and the alpine. Hkakabo Razi Mountain experiences an alpine climate with snow more common than rains especially during winter with a temperature range of between -60 Degrees Celsius and 23 Degrees Celsius. The first ascent of the mountain was made in 1996 by <NAME> and <NAME>. It took long for the first ascent of the mountain because none-citizens were not allowed into the area around the mountain until late 1993. Mount Hkakabo Razi and Hkakabo Razi National Park is rich in flora and fauna which have not been extensively studied or researched on.', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(4, 'Kachin State Cultural Museum', '/storage/photo/places/kachin-state-cultural-museum-myitkyina_myanmar.jpg', 'The history of Myanmar museums from the earliest such as ancient palaces and Pitaka libraries, through museums established before independence such as Bagan Archaeological Museum, to the most recent-days is described. The establishment of the Ministry of Culture in 1952, 4 years after regaining independence, led to construction of the first National Museum (Yangon) and several other museums. Currently, Myanmar museums under the Ministry of Culture can be classified as national museums, archaeological museums, regional cultural museums, and memorial museums. Other kinds of museum are now appearing under other ministries and in the private sector in Myanmar. There is an urgent need for collaboration between these different museums to form a nation-wide museum organization, in order to work together for the improvement of Myanmar museums, and to facilitate international cooperation.', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(5, 'Taung Kwe Pagoda', '/storage/photo/places/taung-kwe-pagoda.jpg', 'The Taung Kwe Pagoda (သီရိမင်္ဂလာတောင်ကွဲစေတီတော်) lies in the south of Loikaw, Kayah State, atop Thirri Mingala Hill, that has nine peaks on nine broken hills. It was called Mingala Hill, Phawmye in Kayah, Taunggwe in Myanmar, and Loi Pha Phat in Shan.\n\n It is 387 feet high. There are pagodas on the nine hillocks named Pyilone Chantha, Shwe Yattaung, Shweyin-aye, Kyauk Thamban, Aung-dawmu, Sutaungpyi, lower Kyaikhtiyo, upper Kyaikhtiyo and Shwe-Pyi-Aye. Pyilone Chantha Pagoda was built in 1295 (1933) to be 36 feet high and 27 feet in girth. Shwe Yattaung Pagoda was built in 1257 (1895) to be 20 feet high and 15 feet in girth. Shwe Yin-aye Pagoda was built in 1275 (1913) to be seven feet high and five feet and six inches in girth. Kyauk Tbamban Pagoda was built in 1276 (1914) to be four feet and six inches high and three feet in girth. Aungdawmu Pagoda was built in 1291(1929) to be eleven feet and six inches high and ten feet nine inches in girth. Sutaungpyi Pagoda was built in 1291 (1929) to be eleven feet six inches high and nine feet six inches in girth. Lower Kyaikhtiyo Pagoda was built in 1295 (1933) to be five feet and ten inches high and five feet ten inches in girth. Upper Kyaikhtiyo Pagoda was built in 1296 (1934) to be five feet and six inches high and five feet in girth. Shwe Pyi-aye Pagoda was built in 1312 (1950) to be seven feet high and six feet and ten inches in girth.', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(6, 'Kyat Cave', '/storage/photo/places/kyat_cave.jpg', 'Kyat Cave is a limestone and dolomite cave situated about ten miles east from Loi Kaw, Kayah State in Myanmar. It is a popular travel destination because of its untouched nature but also for a more curious attraction - several coffins of an ethnic group. The longest coffins are 15 feet long and the shortest ones 2 feet and are made by engraving logs. The coffins are in several positions, some are even placed in the big cavities of the cave ceiling.', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(7, 'Seven Stages lake', '/storage/photo/places/sevenstageslake.jpg', 'The lakes are about 40 minutes southeast of Loikaw and make for a fantastic, picnic-focused day out. The green-blue lakes vary in size as well as accessibility and you’ll discover that some are better for swimming and chilling than others. That said the scenery is consistently stunning so it’s worth visiting them all if possible.', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(8, 'Aung Tha Pyae Cave', '/storage/photo/places/aungthapyae.jpg', 'This little-seen cave sits amid farmland around 20 minutes` drive north of Loikaw. The cave is close to a 1km in length and houses a dozen or so buddha statues, as well as many stalactites and stalagmites. The cave floor gets very wet, especially during the rainy season (June to October), so watch your step. Bring a torch (flashlight) in case the power is off and there are no lights.', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(9, 'Htee Se Kha Waterfall', '/storage/photo/places/IMG_0051.jpg', 'This modest but pretty waterfall is really three separate falls that plunge into a pool that1s a popular swimming spot. The falls are surrounded on three sides by buddha statues and a monastery. It1s a holy place, so if you1re going to swim here do so in shorts and a T-shirt rather than trunks or a bikini.The waterfall is almost on the border between Kayah and Shan states, about 50 minutes` drive north of Loikaw. This drive takes you through some beautiful countryside and a series of Kayan, Pa-O and Lisu villages. ', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(10, 'Ngwe Taung Dam', '/storage/photo/places/1600px-Ngwe_Taung_Dam.jpg', 'Loikaw’s nearest neighbour, Demoso, holds its own when it comes to natural beauty. The dam, which helps to irrigate 4,000 acres of farmland, sits between the village of Ngwe Taung and Demoso and is something of a local magnet. Couples pose for selfies, Kayah women in traditional neck rings sell handicrafts and kids leap from the railings into the water. Even if you decide to give the swimming a miss you still have the option of circling the lake, which can be done either on foot or by bicycle.Once you’re done exploring the lake, you might consider heading over to Demoso market for some fried frogs (yes, really) and some traditional khaung yay, a mildly alcoholic millet wine.', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(11, 'Three Pagodas', '/storage/photo/places/Wikitravel_Three_Pagodas_Pass_Banner.jpg', 'Three Pagodas Pass, Thai Phra Chedi Sam Ong, mountain pass in the Tenasserim Mountain Range on the Myanmar (Burma)-Thailand border, 100 miles (160 km) southeast of Moulmein, Myanmar. The pass, at an elevation of 925 feet (282 m), links southeastern Myanmar and western Thailand. For centuries it was the chief link between Myanmar and the fertile plain of the Chao Phraya River, used both for trade and for military invasions. During World War II the Japanese built the Thanbyuzayat–Ban Pong railroad (commemorated in the book and movie The Bridge on the River Kwai) through the pass (see Kanchanaburi).', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(12, 'Mount Zwegabin', '/storage/photo/places/mountzwegabin.jpg', 'Mount Zwegabin (Kwekabaw) (Phlone: ခွဲါက္ၜင်; Burmese: ဇွဲကပင်တောင်; S`gaw Karen: ကွဲၢ်ကဘီကစၢၢ်) is a mountain in Myanmar. It is located in the region of Karen, in the southern part of the country, around 450 km south of the capital Naypyidaw.[1] The top of Zwegabin is 722 metres (2,369 ft) above sea level.', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(13, '<NAME>', '/storage/photo/places/MaharSadanCave.jpg', 'This football-stadium-sized cave is simply breathtaking, its entrance dominated by dozens of buddha statues, a couple of pagodas and some newer clay wall carvings. With the cave now illuminated, you can scramble for 15 or 20 minutes through chambers as high as a cathedral, past truck-sized stalactites and, in places, walls of crystal.', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(14, '<NAME> Cave', '/storage/photo/places/kaw_kathaung_cave.jpg', 'Though perhaps not as spectacular as other sites in the region, it’s one of the most prestigious and popular for local tourists, so it can get rather crowded on a busy day. <NAME> is another usual stop off in any Zwegabin day tour. Various religious buildings and statues lie outside the entrance to the shallow cave temple at the foot of the limestone cliff, including an unusual maze on the right just before the gate to the main compound. Follow the rough track along the base of the cliff and you’ll see several other shrines and small caves before arriving at a sacred spring spouting from the rock face. This supplies a clear pool at the foot of the rocks which is popular with bathing locals. Around the pool are numerous cafes on bamboo stilts although sadly the stilts seem to serve to raise the seating areas above the mounds of rubbish as much as anything else. The cafes serve some decent Thai and local food as well as drinks but they do have a serious refuse problem.', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(15, '<NAME>', '/storage/photo/places/kyaut_ka_latt_pagoda.jpg', 'K<NAME> Lat Pagoda is a rock formation with a golden stupa on the top of the limestone pinnacle. It was is built on a small island in the middle of a lake situated in HPA-AN Township Kayin State, Mynamar. The Pagoda is surrounded by mountains and cultivated land and have a great view of reflections from the surrounding mountain “Zwekabin Mountain”.', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(16, 'Kan Thar Yar Lake', '/storage/photo/places/Kan_Thar_Yar_Lake.jpg', 'Kan Thar Yar Lake, lying just on the south side of Hpa An, is absolutely an ideal destination for those who are eager to keep away from an urban life that makes you feel suffocated in order to look for a little change of scenery. The peaceful Kan Thar Yar Lake with crystal clear water will definitely make you feel refreshed and vigorous enough to resist any pressure. Especially, at this end of the lake is a nice wooden footbridge with a roofed seating area in the middle. All things make breathtaking scenery like the superb artwork of a master painter. One more fascinating is that tourists can feed the already well-fed resident catfish population as local residents often sell bags of bread at the end of the bridge. A pleasant stroll around town can take you from the central market past the Clock Tower to the lake. Heading south around the lakeside leads you to the pedal boat for hire. It is 500 kyat per person or 1,000 per boat for a 40-minute paddle in a fiberglass duck. A fascinating thing is that a nice lakeshore cafe with strategically placed tables, chairs, cold beers, and extremely delicious and cheap Thai cuisine is run on these hired boats. It is truly an enthralling experience as you can immerse yourself into the fresh air, and peaceful scene while sipping on a cup of coffee alive, vital, potent. Therefore, in order not to miss one of the must-have experiences in Hpa An, it is highly recommended that you book a 4-day Myanmar tour (Yangon – Golden Rock – Hpa An – Bago Tour) right now. We hope to share you distinctive experiences about the mesmerizing landscape.', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(17, '<NAME> Taung', '/storage/photo/places/Nat_Ma_Taung.jpeg', 'Nat Ma Taung (Burmese: နတ်မတောင်; also known as Mount Victoria and Khaw-nu-soum or Khonuamthung in Chin), is the highest mountain in the Chin State of western Burma.[2] Located in 3 Townships - Kanpatlet, Mindat and Matupi, Mount Victoria is part of the Chin Hills range. The park is administered by the Department of Forestry and Environment. With a height of 3,053 metres (10,016 ft) above sea level and a prominence of 2,231 metres (7,320 ft), Nat Ma Taung is one of the ultra prominent peaks of Southeast Asia.', 14, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(18, '<NAME>', '/storage/photo/places/rihdil-222.jpg', '\"Rih Dil is the largest lake in Mizoram, but is situated in Myanmar,” goes the common saying. This is an awkward claim to make, but it is a fact due to arbitrary political boundaries. Rih lake is situated at a distance of about two miles from Tiau which is the boundary river between Mizoram (India) and Myanmar, and is within the village area of Rihkhawdar in Myanmar. The village itself is an establishment of adventure that lures the visitor to explore the mysterious and supposedly demon-haunted lake. It is 14 miles from Champhai in Mizoram and 63 miles from Falam, a town of Myanmar. Although there has been no exact measurement taken so far, it is approximately one mile long and half a mile wide with a circumference of about three miles. The south-west floor is supposedly deeper than that of the north-west. The peculiar characteristic of the lake is that it becomes abruptly deep immediately after the water’s edge. The legendary lake is believed to have been the inevitable passage that spirits of the dead crossed on their way to their future abode known as <NAME>. Some even believed it was the final abode of the spirits. The many myths about this mysterious lake have been a source of inspiration for several Mizo writers and composers, and have immensely enriched their literary output. According to legend, there was a girl named Rihi who had a cruel stepmother. One day, the father took Rihi’s younger sister deep into forest and killed her. Rihi eventually found her dead sister and was inconsolable. A good spirit known as Lasi to the Mizos found Rihi weeping and revealed to her the healing powers of a particular magical tree with whose leaf Rihi revived her sister back to life. In order to quench the thirst of her younger sister, Rihi turned herself into a small pool of water with the help of a leaf of the same magical tree. Later, Rihi was compelled to change herself into a white mithun, and wandered around in search of a permanent place where she could be safe. While she was roaming around looking for a safe haven, her urine formed rih note or small lakes wherever she went. It is believed that such lakes can still be found in the Vawmlu Range, Zur forest near the village Natchhawng; a place above Bochung village; the area of Khawthlir village, all of which are in Myanmar. She eventually surveyed Sanzawl village for her permanent settlement not far from which flowed the river “Run”. But the demon spirit of the river threatened to suck her dry if she settled there permanently. It is believed that Rihi then surveyed the valley of Champhai but found that unsuitable too. She finally settled in the present location in the form that she cherished the most – that of a lake. The name Rih retains the name of Rihi.', 14, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(19, 'Kyaiktiyo Pagoda', '/storage/photo/places/kyaiktiyo.jpg', 'Perched dangerously on the edge of a cliff, pilgrims have been visiting the Kyaiktiyo Pagoda for centuries to meditate and give offerings to the Buddha. Whether this worship keeps the boulder from rolling down the precipice is unclear, but the gold-leaf covered stone certainly inspires all who visit. At 25 feet high and 50 feet around, the golden boulder in Mon State, Myanmar is hard to miss.', 14, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(20, 'Zin Kyaik Waterfall', '/storage/photo/places/zin-kyaik-waterfall.jpg', 'Zin Kyaik(ဇင်းကျိုက်) Waterfalls are located in the main road and rail line of Yangon-Dawei, near by to the Zin Kyaik village. It is panoramic and pleasant for a picnic spot. Near the waterfalls is the holy Zin Kyaik Buddha Hair Relic Pagoda.', 15, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(21, 'Ngapali Beach', '/storage/photo/places/ngaplibeach.jpg', 'First of all, if you (like us) are curious to know how the word “Ngapali” is suppose to be said, the locals told us that the “g” is actually silent so it’s pronounced ’Na-pal-li’. Located on the west coast of Myanmar, Ngapali beach is about 300km northwest of Yangon as the crow flies. Ngapali is the most famous seaside resort in Myanmar, but you certainly don’t get that impression on first sight. Meaning that Ngapali is, to the contrary, incredibly peaceful and the beaches are surprisingly quiet for such a well known place. Nightlife and discos aren’t really a big thing here, instead people meet for happy hour on the beach. And since Ngapali is oriented to the west, it makes for the perfect place to marvel at the beautiful sunsets.', 20, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(22, 'Koe-thaung Temple', '/storage/photo/places/koe-thaung-temple-l.jpg', 'Koe-Thaung translates to “shrine of the 90,000 images of the Buddha”, referring to the number of Buddha images that it contained. The temple was built in 1553 to gain religious merit by King <NAME>, the son of <NAME> who built the Shite-Thaung (“temple of the 80,000 images of the Buddha”) three decades earlier. After being abandoned centuries earlier, excavation works started in 1996 and the Koe-Thaung was partly restored. During excavation works several items were found like stone oil lamps, that were used to illuminate the dark interior of the temple. The massive Koe-Thaung temple is built of stone walls and stone terraces and has a maze like interior. Its entrance is on the East side. The temple is surrounded by five receding terraces on which a large number of small stupas stand. At the center of the Koe-Thaung is a large circular bell shaped stupa.', 21, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(23, 'Andaw-thein Temple', '/storage/photo/places/andaw-thein-temple.jpg', 'The Andaw Thein temple is located at the northwest corner of the Shittaung Temple (pronounced ‘She-thang’). The name means ‘Tooth Shrine’. It contains a tooth relic of the Buddha coming from Sri Lanka. It was first built as an ordination hall between 1515 and 1521 by King Thazata, and restored by Min Bin between 1534 and 1542.It was later expanded into a temple by King Raza II in order to house a tooth relic of the Buddha he brought back from his pilgrimage to Ceylon, either in 1596 or 1606–1607', 21, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(24, 'Lawka Man Aung Pagoda', '/storage/photo/places/Lawka_Man_Aung_Pagoda.jpg', 'Lawka Man Aung Pagoda is known to be one of the five most revered \"Man\" paya of Mrauk U. This Pagoda is known to be one of the five most revered pagodas in Mrauk U. The five revered \"Man\" payas of Mrauk U are Lawka Man Aung. Zeenat Man Aung. Sakkya Man Aung. Mingalar Man Aung and Yadanar Man Aung. In Myanmar known as \"Man Ngar Par\".\n The architecture of this pagoda is in the form of four steps. The base step is a square shape with four statues at each corner. From the second to the topmost step. there are small pagodas at each corner. Inside the pagoda. there is a 12 feet high Buddha image made of stone.\n In A.D 1676. King <NAME> became a monk in this pagoda`s compound and at such a time. was also called Lawkamu Pagoda. This pagoda was also built by Candathudhammaraza (1652-1674 A.D) in 1658 A.D. It stands on a flat ground. The shrine was constructed with stone blocks. well hewn and cemented. It is square at the base. each side measuring 74 feet; the first four tiers are also square; in the center of each side of the tiers stands a porch containing an image of the Buddha. The sides of the porch are made of stone slabs; the architectural design is similar to that of the Laungbanpyauk Pagoda. There are traces of ornamental designs on the face of the porches. A guinea pig guards each corner of the lowest tier.\n On each corner of the first four tiers stands a small circular pagoda. solid and without niches. From the garbha upward the central spire is circular; the apex is crowned with an iron hti (umbrella) once gilded and still in good order. The east facade of the pagoda has a portal 20` high. protruding 2` from the main wall. a vaulted passage 4` 8\" wide. 16` high. and 29` long leads to a chamber in the center of the pagoda. It contains a stone image of the Buddha 12 feet high. sitting cross-legged on a stone alter. The ceiling is a hemispherical dome and the apex is 16 feet above ground. The pagoda has a wall measuring 300 feet around the base and 100 feet high.The old roads to Vesali and Mahamuni begin here. These roads are still known as the gold road and the silver road.', 21, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(25, 'Ratana-Pon Pagoda', '/storage/photo/places/ratana-pon-pagoda-l.jpg', 'Ratanabon Temple (Burmese: ရတနာပုံဘုရား ra.ta.napuN bhu.ra: [jɛ̀dənàbòʊɴ pʰəjá] Yeṯănap̱ouñ hpăyà; lit. \"pile of jewels\") is a solid stupa in Mrauk U, Rakhine State, Western Myanmar. The pagoda is located at the northwest corner of the Shite-thaung Temple. According to local legends, it is said to have jewels and images enshrined in the central stupa but none have ever been found. It was built in 1612 by King <NAME> and his wife.', 21, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(26, 'Htukkanthein temple', '/storage/photo/places/htukkanthein-temple-l.jpg', 'The Htukkanthein temple is a bunker like Buddhist temple on a small hill located near the Shite-Thaung temple North of Mrauk U town. The structure has a dark interior and a long spiralling corridor leading to the inner chamber. The temple’s name translates to “cross beam ordination hall”. As the very massive structure is built on raised ground, has small windows and just a single entrance, it is believed that the Htukkanthein served as a place of refuge during times of war.', 21, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(27, 'Inle Lake', '/storage/photo/places/inle_lake_photo_fourth.jpg', 'The Inle Lake region is one of Myanmar`s most anticipated destinations, and all the hype is justified. Picture a vast, serene lake – 13.5 miles long and 7 miles wide – fringed by marshes and floating gardens, where stilt-house villages and Buddhist temples rise above the water, and Intha fisher folk propel their boats along via their unique technique of leg-rowing. Surrounding the lake are hills that are home to myriad minorities: Shan, Pa-O, Taung Yo, Danu, Kayah and Danaw, who descend from their villages for markets that hopscotch around the towns of the region on a five-day cycle.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(28, 'Gokteik Viaduct', '/storage/photo/places/Gokteik-viaduct.jpg', 'The Goteik viaduct (Burmese: ဂုတ်ထိပ်တံတား, also known as Gohteik viaduct) is a railway trestle in Nawnghkio, western Shan State, Myanmar (also known as Burma). The bridge is between the two towns of <NAME>, the summer capital of the former British colonial administrators of Burma, and Lashio, the principal town of northern Shan State. It is the highest bridge in Myanmar and when it was completed, the largest railway trestle in the world. It is located approximately 100 km northeast of Mandalay. The bridge was constructed in 1899 by the Pennsylvania and Maryland Bridge Construction Company, and opened in 1900.[2] The components were made by the Pennsylvania Steel Company and were shipped from the United States. The rail line was constructed to help expand the influence of the British Empire in the region. The construction project was overseen by Sir <NAME>, engineer for the Burma Railway Company.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(29, '<NAME>', '/storage/photo/places/kakku-pagodas.jpg', 'Perched dangerously on the edge of a cliff, pilgrims have been visiting the Kyaiktiyo Pagoda for centuries to meditate and give offerings to the Buddha. Whether this worship keeps the boulder from rolling down the precipice is unclear, but the gold-leaf covered stone certainly inspires all who visit. At 25 feet high and 50 feet around, the golden boulder in Mon State, Myanmar is hard to miss.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(30, 'Maha Ant Htoo Kan Thar Buddha', '/storage/photo/places/MahaAntHtooKanTharBuddha.jpg', 'Maha Ant Htoo Kan Thar Buddha image is not very old, but famous around Myanmar travel because of its own history. The reason was that three marble Buddha Images sculpted in Mandalay were being transported to their planned destination in China. On this journey, one of the Buddha statues fell down from the truck and could not be reloaded due to its weight. After many attempts, this Image was left behind and the other two were taken on their way. A local Buddhist monk decided he would try faith. He sat for 7 days on this image and preached to the locals and recited teachings of Buddha. After 7 days the image was apparently easily lifted and placed in its current location and the local people built a pagoda as an offering to Buddha.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(31, 'Lashio', '/storage/photo/places/Lashio.jpg', 'Lashio is the largest town in northern Shan State, about 200 kilometres (120 miles) northeast of Mandalay. The highest mountain of the Shan Hills, is located 45 km to the southeast of Lashio. Capital of the northern Shan State, major settlement is Shan and Chinese being bordering with Yunan province of China. The famous Burma Road built by the British before the War, interests with Ledo Road leading into the Yunnan province. Myanmar Railways line from Mandalay reached Lashio in 1903. In 1900, the town of Lashio consisted of the European station, with court house and quarters for the civil officers; the military police post and the headquarters of the Lashio. The highlight about this trip is to enjoy the most spectaculars scenic views of the Shan plateau traveling one way by winding road with elbow crossing hilly drive and the other way by train with twisting and turning hilly trek. Crossing over historic Gokehtaik viaduct, which is the highest bridge in Myanmar will be an unforgettable experience. There is a hot spa near Lashio which is always crowded with local pilgrimages to enjoy the nature warmed both of they believe bathing here will purify body and mind. Religious sites include the Sasana (Pyilon Chanta) Pagoda and the Mansu Pagoda. Lashio has been important for border trade between Myanmar and China. It is 190 kilometres (120 miles) from Muse, and is situated midway between Muse and Mandalay. Complete Myanmar travel itineraries always include Lashio to visit.', 28, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(32, 'Pwe Kauk Waterfall', '/storage/photo/places/pwekaukwaterfall.jpg', 'After visiting around Pyinoolwin, nice place to make fresh before back home is Pwe Kauk Waterfall. The Pwe Kauk Falls is a very pleasant and funny picnic spot in Pyin Oo Lwin where many Myanmar families come for a picnic. Pwe Kauk or B.E waterfalls is also known as Hampshire Falls in British times. It is located on the way to Lashio and not too far from Pyin Oo Lwin town. There are two waterfalls in Pwe Kauk where many people swim or play in the shallow waters. There is a market besides waterfalls where you can buy local products such as wines, strawberry jams, fruits and flowers etc. Pwe Kauk stunned by it`s natural beauty and breathtaking scenery. A one hour hike from the falls there is the natural caves of U Naung Gu where several Buddhas are enshrined.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(33, 'Pyinoolwin', '/storage/photo/places/Pyinoolwin.jpg', 'The most famous place in Pyinoolwin is National Kandawgyi Gardens (formerly National Botanical Gardens). It was first founded by <NAME>, a forest research officer, with the aid of <NAME>, the botanist in 1915. It was modeled after the Kew Gardens of England. The original area of the Botanical Garden was 170 acres of land and 70 acres of water spread totaling 240 acres. In 1917, the government granted it official recognition, and in 1924, the site was declared a Government Botanical Reserve. On 1 December 1942, the Ministry of Forestry designated the Botanical Gardens a \"protected forest area\". It has been used to promote extensive ecotourism in Myanmar. In 2000, the garden was upgraded to be a recreation garden and renamed it \"Kandawgyi National Gardens\". The Botanical Gardens has three museums. The fossils museum, the petrified wood museum and the butterfly museum. The gardens are well laid out among lakes and paths, and there are beautiful collection of pond fish and lovely black and white swans. There have an aerial walkway through aviary with hornbills and a variety of other birds as well as the swamp trail. There is a watch tower to climb up which offers a great views over Pyin Oo Lwin and the Shan Hills.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(34, 'Peik Chin Myaung Cave', '/storage/photo/places/PeikChinMyaungCave .jpg', 'Peik Chin Myaung Cave (also known as Maha Nandamu Cave) is located on the Lashio road near Wetwun village, 12 miles east of Pyin Oo Lwin town. It is a limestone cave estimated between 230 million and 310 million years old. The cave is called Peik Chin Myaung as plenty of Peik Chin plants used to grow there. The entrance of the Peik Chin Myaung cave is about 20 ft wide and 1,600 ft long. The long cave is filled with so many Buddha images and pagodas in various sizes and position at every corners and niches.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(35, 'Blue Color Lagon', '/storage/photo/places/bluecolorlagoon.jpg', 'Finally we moved on and went to the Forest star water fall , in Burmese ( Taw-kyal-waterfall). The waterfall as well as blue lake have been looked after by the monastery nearby and they try to clean the lanes and make sure tourists are safe. They also offer public toilets for the tourists and travelers. I would like to advice to donate for a few dollars for the monastery if you can. There is a donation box near by. We also saw a few Shan children playing on the way. They are very cute and kept on calling me ” sister”, in Burmese ” Mama”. When I approached them to have a chat, I found out that they don’t speak Burmese . They only know the word ” sister”.', 39, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(36, 'Chaung Tha Beach', '/storage/photo/places/chaungthameach.jpg', 'Of the three main beach resorts on Myanmar’s Bay of Bengal coast, Chaung Tha is the most down to earth, and you can find the largest number of locals on holiday here. The beach lacks the white-sand perfection of Ngapali and Ngwe Saung, but it has several offshore islands to explore and snorkel around, and offers the same delicious range of fresh seafood as its more exclusive rivals (Chaung Tha is the same distance from Yangon by road as Ngwe Saung, and you can travel between the two beaches by motorbike along a coastal track). ', 46, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(37, 'Ngwe Saung Beach', '/storage/photo/places/Lover_island.jpg', 'Ngwe Saung Beach ,is the closest beach from Yangon accessible by cruises and cars. Situated on the west coast of Myanmar in the Bay of Bengal, Ngwe Sang is lying magnificently and invitingly. One can dissolve in the 4s (the sea, the sun, the sand, the sky) to the fullest. You can see the Delta life on your way to Ngwe Saung as you have to go across the Irrawraddy Delta stretching from the coast of the Bay of Bengal. Feel free in swimming, surfing, snorkeling, and relaxing under the palm trees. One can go around the small fishing villages, and local markets, exploring the countryside by bicycle or enjoying a boat trip to the fantastic offshore islands.', 46, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(38, '<NAME>', '/storage/photo/places/gawyangyi.jpg', 'THE MYEIK Archipelago is famous for its wild, uninhabited islands and beaches. For city-dwellers, though, they can seem as distant and unreachable as a foreign land. For those seeking a beautiful, pristine beach without the long-haul travel – and on a minimal budget to boot – an alternative has emerged in Ayeyarwady Region. No doubt you already know of Chaungtha and Ngwe Saung beaches in Pathein Township. About five hours’ drive from Yangon, they have been popular for decades as weekend getaways. But just 50 kilometres south of Ngwe Saung, a largely untouched area known as Gaw Yin Gyi Island is receiving a small but growing number of visitors. Also known as Ngayokekaung – a small town nearby – the beaches here can be reached from Yangon in just six-and-a-half hours by private car. Take the road to Pathein and continue on toward Ngwe Saung, before taking the left-side turnoff to Maw Tin. After 70 kilometres, a new road branches to the right, over a low mountain range. The start of it is tarred, but it soon turns to dirt and dust. Thankfully, it’s only a 20-km trip and you’re in Ngayokekaung, from where Gaw Yin Gyi is just a hop, skip and a jump. Of course you can get to Gaw Yin Gyi by bus, too. There are two options: take the bus from Yangon to Pathein and transfer to one bound for Ngayokekaung, or take a direct service to Gaw Yin Gyi.', 46, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(39, 'Kanbawzathadi Golden Palace', '/storage/photo/places/kanbawzathadi.jpg', 'Kanbawzathadi Golden Palace in Bago is a reconstruction of the original Royal palace from the second half of the 16th century. The very ornate golden palace gives a good impression of the splendor and wealth of the second Burmese empire. It was rebuilt following the original design, based on knowledge gained from excavations and the original drawings of the building. The huge palace consisted of 76 apartments and halls. The reconstructed palace does not contain much of the original furniture and personal items used by the Royals, as most of it was lost when the palace was looted and destroyed in 1599. There are several reproductions on display, like a replica of the King’s golden coach, decorated with two peacocks and a Pyatthat style roof.', 50, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(40, 'Kanbawzathadi Golden Palace', '/storage/photo/places/kanbawzathadi.jpg', 'Kanbawzathadi Golden Palace in Bago is a reconstruction of the original Royal palace from the second half of the 16th century. The very ornate golden palace gives a good impression of the splendor and wealth of the second Burmese empire. It was rebuilt following the original design, based on knowledge gained from excavations and the original drawings of the building. The huge palace consisted of 76 apartments and halls. The reconstructed palace does not contain much of the original furniture and personal items used by the Royals, as most of it was lost when the palace was looted and destroyed in 1599. There are several reproductions on display, like a replica of the King’s golden coach, decorated with two peacocks and a Pyatthat style roof.', 50, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(41, 'Shwemawdaw Pagoda', '/storage/photo/places/Shwemawdaw-Pagoda.jpg', 'The Shwemawdaw Paya in Bago is the tallest pagoda in Burma. With its height of 114 meters it is 15 meters taller than the Shwedagon Pagoda in nearby Yangon. The impressive Shwemawdaw, which translates to “Great Golden God” was built by the Mon people over a thousand years ago. It is one of Burma’s most sacred sites, because it enshrines several relics of the Buddha. The towering pagoda glittering in the sun can be seen from miles around. The grounds are peaceful and not much visited by tourists. Over the centuries, the pagoda has been rebuilt and enlarged several times, as a result of the destruction caused by earthquakes. Two huge Chinthe, mythological animals that look like a lion stand guard at the entrance of the temple grounds. Numerous small pagodas are placed at the base of the 114 meter tall Shwemawdaw. The pagoda is topped with a diamond studded hti, a top ornament shaped as an umbrella found on most Burmese temples.', 50, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(42, 'Shwesandaw Pagoda', '/storage/photo/places/shwesandaw.jpg', 'The Shwesandaw Pagoda, or Shwesandaw Paya (Burmese: ရွှေဆံတော်ဘုရား, pronounced [ʃwè sʰàɴdɔ̀ pʰəjá]) is a Buddhist pagoda in the center of Pyay, Burma. It is one of the more important Buddhist pilgrimage locations in Burma. It is said to contain a couple of the Buddha`s hairs, as its name means Golden Hair Relic. During the full moon day of Tabodwe, Shwesandaw Pagoda holds a miphon pwe (မီးဖုန်းပွဲ), whereby worshippers light bonfires using Sesbania cannabina as tinder.', 50, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(43, 'Shwe Ku Pagoda', '/storage/photo/places/shweku.jpg', 'Shwe Ku Pagoda is located in Pakokku. Add Shwe Ku Pagoda to your Pakokku travel itinerary, and discover new vacation ideas by using our Pakokku trip itinerary maker.', 57, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(44, 'Magwe Myathalun Pagoda', '/storage/photo/places/Magwway_Myathalun_Pagoda.jpg', 'Steaming into Magwe, the riverine traveller is greeted by the sight of the Myathalun Pagoda glinting serenely from the summit of the Naguttama hillock hard by the bank of the Ayeyarwaddy River. Being one of the greatly venerated shrines, and also because Magwe lies midway between the upcountry and the lower parts, its annual festival has served as a great fair for the exchange of local goods. According to legend the original pagoda had a height of about 55.5 feet (16.9 m) and was built by U Baw Gyaw and his wife the daughter of a certain Maha Bawga, a man of great wealth with an official title. King Saw Lu (1077-1084) of Bagan encapsulated the original pagoda and raised it to a height of 87 feet (26.5 m). In 1847, it was destroyed by an earthquake and rebuilt by the mayor of the town Min Din Min Hla Kyaw Gaung. The pagoda was rebuilt to the present height of approximately 104 feet (31.7m).', 55, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(45, 'Kyaung Taw Yar Pagoda', '/storage/photo/places/KyaungTawYarPagoda.jpg', 'Kyaung Taw Yar Pagoda - ေက်ာင္းေတာ္ရာဘုရား One of the famous pagodas in Myanmar Kyaung Taw Yar, Pwinbyu Township, Minbu District, Magway Region, Myanmar. Legend tells us <NAME>yar was visited by the Lord Gautama Buddha himself. He is said to have stayed at Kyaung Dawyar for a week teaching the local people he found there about his lives and Dhamma (Buddhist teachings). The pagoda standing on the banks of the Mon River was built in the memory of His stay. On His return journey to northern India, he stopped at Shwesetdaw on the bank of the Man river in the domain of the ruthless hunter Bandaka. Bandaka is said to have listened to the lectures of the Buddha and become a monk, and requested that the Buddha leave his footprint to remind people of his passing, and as a gift for the King of Naga. Kyaung Dawyar pagoda is visited not only by the human pilgrims, but also by fish pilgrims! The giant river catfishes appear in the Mone creek during the Buddhist`s lent - July to September - for 3 months. People believe that the fishes come to pay homage to the Buddha. They appear on the full moon day of Waso (4th month of Myanmar calendar) and disappear after the full moon day of Thidinkyut (the 7th month of the Myanmar calendar). Human pilgrims feed them the pop-corn, rice cake and dried bread.', 57, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(46, 'Mahamuni Pagoda', '/storage/photo/places/Mahamuni.jpg', 'he Mahamuni Pagoda or Mahamuni Buddha temple is one of the most important Buddhist pilgrimage sites in Burma, an important pilgrimage site that houses one of the most revered Buddha images, a 13-foot tall sculpture. It’s covered in gold leaves so much so that parts of the sculpture appear distorted. The temple complex is also home to the Mahamuni Museum that educates visitors on Buddha’s life. There are also shops selling offerings in case you come without. The Mahamuni museum on the temple grounds tells about the history of Buddhism. The museum displays information about the various places in the life of the Buddha, from His birth place in Nepal, the site where He reached enlightenment and the site of His passing into final Nirvana. There are also maps that explain about the spread of Buddhism across Asia during the last 25 centuries. The Mahamuni, which means the Great Image is seated on a very ornate 1.80 meters high pedestal. The image in the Bhumisparsha Mudra posture is 3.80 meters high and weighs about 6½ tons. Every morning at around 4 am the Buddha image ritual is performed. Witnessed by a great number of Buddhist devotees, the men up front, the women behind a rope, a very senior monk of the Mahamuni temple assisted by a number of helpers washes the face of the images and brushes the teeth. The ritual is performed in great detail and takes considerable time. The Mahamuni Pagoda is located between 82nd street and 84th street. Best way to get there is by private taxi or rickshaw. The temple grounds are open daily from 6 am until 8 pm. Entrance fee is US$ 4 (price may change) per person.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(47, 'Mandalay Palace', '/storage/photo/places/dsc-1369-largejpg.jpg', 'The Mandalay Palace (Burmese: မန္တလေး နန်းတော်, pronounced [máɴdəlé náɴdɔ̀]), located in Mandalay, Myanmar, is the last royal palace of the last Burmese monarchy. The palace was constructed between 1857 and 1859 as part of King Mindon`s founding of the new royal capital city of Mandalay. The plan of Mandalay Palace largely follows the traditional Burmese palace design, inside a walled fort surrounded by a moat. The palace itself is at the centre of the citadel and faces east. All buildings of the palace are of one storey in height. The number of spires above a building indicated the importance of the area below. Mandalay Palace was the primary royal residence of King Mindon and King Thibaw, the last two kings of the country. The complex ceased to be a royal residence and seat of government on 28 November 1885 when, during the Third Anglo-Burmese War, troops of the Burma Field Force entered the palace and captured the royal family. The British turned the palace compound into Fort Dufferin, named after the then viceroy of India. Throughout the British colonial era, the palace was seen by the Burmese as the primary symbol of sovereignty and identity. Much of the palace compound was destroyed during World War II by allied bombing; only the royal mint and the watch tower survived. A replica of the palace was rebuilt in the 1990s with some modern materials.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(48, 'Bagan', '/storage/photo/places/bagan.jpg', 'Bagan, an ancient city located in the Mandalay region is one of the most visited places by tourists in the country. The city served as the capital of Myanmar from the 9th to 13th centuries. It was the capital of the Pagan kingdom, the kingdom which unified regions that constitute the Myanmar of today. The Bagan Archaeological Zone is the main attraction of the country and is one of the richest archaeological sites in Southeast Asia. Situated on the eastern bank of the Ayeyarwady River, the temples of Bagan leaves one awestruck. Bagan has approximately 2000 ancient monuments and pagodas strewn all over Bagan. The monuments are located on the land between the river bank and the Turintaung range. Although Bagan is most famous for its historic monuments, it has a lot more to offer. Tourists can visit nearby local villages and watch people weaving cotton. Bagan is famous for ancient craft, especially in lacquer. It is also famous for its mural painting, oil processing and palm sugar production.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(49, 'U Bein Bridge', '/storage/photo/places/u-leg-bridge-1370430_1920.jpg', 'Experience sunset at U Bein Bridge on a 6-hour cycling tour through Mandalay’s back roads and lively neighborhoods. Pedal along ancient canals that support the city’s agriculture, ride through rural villages and fertile farmland, and trace the atmospheric paths across the ancient imperial capital of Ava. Step onto the elegant U Bein Bridge, and watch Myanmar’s evening sun illuminate the .75-mile (1.2-kilometer), teakwood span. Enjoy a day away from the hustle and bustle of the city Led by a local guide Step back in time on a history tour Small-group tour Snacks and Beverages included', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(50, 'Kuthodaw Pagoda', '/storage/photo/places/kuthodaw3.jpg', 'Kyauktawgyi Pagoda, the pagoda of the “Great Marble Image,” is sited near the southern entry to Mandalay Hill. Although its construction was started in 1853 by King Mindon, it was not completed until 1878, in part due to a palace rebellion and domestic disturbances in the mid-1860s. The chief feature of the Kyauktawgyi Paya is huge seated Buddha figure sculpted from a single block of pale green marble from the Sagyin quarry twelve miles north of Mandalay.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(51, 'Mandalay Hill', '/storage/photo/places/mandalay-1379.jpg', 'Mandalay Hill (Burmese: မန္တလေးတောင်; MLCTS: manta. le: taung [màɴdəlé tàʊɴ]) is a 240 metres (790 ft) hill that is located to the northeast of the city centre of Mandalay in Myanmar. The city took its name from the hill. Mandalay Hill is known for its abundance of pagodas and monasteries, and has been a major pilgrimage site for Burmese Buddhists for nearly two centuries. At the top of the hill is the Sutaungpyei (literally wish-fulfilling) Pagoda. A panoramic view of Mandalay from the top of Mandalay Hill alone makes it worthwhile to attempt a climb up its stairways. There are four covered stairways called saungdan leading up the hill from the south, southeast, west and north, and convenient seats of masonry work line these stairways all the way up. A one-way motor road today saves time and also makes it accessible for those who are unable to climb up the stairs, leading to an escalator and a lift to the pagoda at the summit.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28');
INSERT INTO `places` (`id`, `name`, `photo`, `description`, `region_id`, `created_at`, `updated_at`) VALUES
(52, '<NAME>', '/storage/photo/places/shwenandaw-monastery-l.jpg', 'The Shwenandaw Monastery is one of the finest examples of traditional 19th century wooden monastery building in the country. The monastery that is also known as he <NAME> is a very finely carved teak wooden monastery building just outside the Mandalay Royal Palace, on the same grounds as the Atumashi Monastery. The monastery is also called the Golden Palace Monastery, because it used to be part of the Mandalay Royal Palace and was completely gilded. Both exterior and interior of the monastery are decorated with intricate wood carvings. The Shwenandaw Monastery was originally part of the Royal Palace in Amarapura. When the capital city was moved to Mandalay, the building was dismantled, transported to Mandalay and rebuild there as part of the new all teak Royal Palace in 1857. King Mindon used the building as his personal living quarters. After the King died, his son relocated the building to its current location outside of the Palace grounds, where it was converted into a monastery in 1880. The Golden Palace Monastery is a great place to get an impression of what the Royal Palace once must have looked like. As the Palace was destroyed by fire during the second World War, the Shwenandaw Monastery is the only major original teak wooden building left of the original Mandalay Royal Palace.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(53, 'Werawsana Jade Pagoda', '/storage/photo/places/jadepagoda.jpg', 'From atop its square base within a thicket of gardens, the Werawsana Jade Pagoda towers alongside an expressway. It’s hard to miss the kaleidoscope of gemstones that gleams from its every inch. The entire pagoda is made from jade. According to Myanmar’s government, it’s the first pagoda in the world constructed solely from the precious stone. It’s a fitting choice of gemstone, as Myanmar produces almost 70 percent of the world’s supply of jadeite, a type of jade. Work on the monumental structure began in 2012 and didn’t finish until 2015. Even before construction started, a jewelry trader named U <NAME> spent about 25 years collecting and stockpiling all the jade. He had to gather over 11,000 tons of the stones to build the pagoda. A series of chambers for praying and making merit ring the roughly 75-foot-tall structure. The exterior walls are inlaid with arrays of carved amulets, sculpted leaves, and inscriptions. There are also carved jade footprints of Buddha, where devotees and pilgrims can leave monetary donations. In combination with the Jade Market in Mandalay, this is really the best place to see excellent examples of the stone used within the context of Buddhism. This site is a must-see on the itinerary of gem enthusiasts. Friends will turn jade-green with envy when they see your gleaming snaps.', 59, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(54, '<NAME>', '/storage/photo/places/inwa.jpg', 'For a total of 360 years spread over the course of five centuries, Inwa was the capital of successive Burmese kingdoms. Then, in 1839, it was leveled by earthquakes and subsequently abandoned. The wheel of fortune turns on us all, human and city alike. Inwa — also spelled Innwa, known in classical Pali as Ratanapura (“City of Gems”), and known locally as Awa or Ava — was originally founded in 1365. Located at the confluence of the Irrawaddy and Myitnge Rivers on an artificial island formed by a canal connecting the two rivers upstream from their natural point of meeting, Inwa was built to be the capital of a newly unified kingdom that came to be known, appropriately enough, as the Kingdom of Ava. And so it remained for 190 years, serving not only as the seat of power in Upper Burma, but also as the center of a flourishing period of Burmese literature. In 1555 the Kingdom of Ava fell. However, the city of Inwa and its political prestige lived on, serving as the capital of all of Burma from 1599 to 1613, then again from 1635 to 1752, then again from 1765 to 1783. Then again from 1821 to 1842. The aforementioned series of devastating earthquakes struck on March 22, 1839; the entire region was affected, but the capital was hit particularly hard. Although Inwa had been sacked, destroyed, and rebuilt several times over its long history, this time it would not be so. The city was not rebuilt, the capital was officially moved to Amarapura on February 10, 1842, and Inwa was left to the elements. The former imperial city is now a rural area where livestock graze and farmers raise crops amidst the remains of pagodas, palace towers, monasteries, and massive city walls that once formed the outline of a seated lion. One of the monasteries — Bagaya Kyaung, a towering structure built entirely of teak — is still in use as a monastery and school today. Local guides provide tours of the site via horse-drawn carts.', 59, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(55, 'Kaunghmudaw Pagoda', '/storage/photo/places/kaunghmudaw-pagoda.jpg', 'The Kaunghmudaw Pagoda (Burmese: ကောင်းမှုတော် ဘုရား [káʊɴ m̥ṵ dɔ́ pʰəjá]; Yaza Mani Sula Kaunghmudaw (ရာဇမဏိစူဠာ ကောင်းမှုတော်); Pali: Rājamaṇicūḷā) is a large pagoda on the northwestern outskirts of Sagaing in central Myanmar (Burma). Modeled after the Ruwanwelisaya pagoda of Sri Lanka,[1] the Kaunghmudaw is known for its egg-shaped design, which stands out among more traditional-style, pyramid-shaped Burmese pagodas. The stupa`s formal name Yaza Mani Sula signifies the enshrinement of Buddhist relics inside its relic chamber. But it is commonly known by its popular name, Kaunghmudaw (lit. \"Royal Merit-Making\"). It is an important pilgrimage and tourist destination in the Sagaing area.', 72, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(56, 'Sagaing Hill', '/storage/photo/places/nur-eine-pagodenlandschaft.jpg', 'Sagaing is located just 12 miles from Mandalay and can be reached by crossing the long Sagaing Bridge over the Irrawaddy River. The city is a frequent tourist destination for day trips. Many people who visit Mandalay will also make a trip across the Irrawaddy River to the town of Sagaing. It known as the Centre of Buddhism in Myanmar and it has more than 300 religious buildings. It is a beautiful and peaceful place with lush, tree-covered hills but most tourists only make a quick visit spending 2 or 3 hours exploring two or three main sites. Sagaing was the capital of Sagaing Kingdom (1315-1364), and one of the minor kingdoms that rose up after the fall of Bagan Dynasty. Today, the city is part of Mandalay area with more than 1,022,000 inhabitants (2011 estimate). One of the most popular tourist attractions on Sagaing Hills is Soon U Ponya Shin pagoda. It is connected by a set of covered staircase that runs up the 240 meters hill and is one of the oldest temples on Sagaing Hills. It was built in 1312 by Minister Pon Nya. A Pagoda Festival is held on Full Moon Day of Warso, the fourth month of Myanmar Calendar, which falls in July of each year. Kaungmudaw Pagoda, also called Yaza Mani Sula, is a huge pagoda 10 km beyond the town of Sagaing. It was built by the King <NAME> and his son in 1636AD. The dome shaped pagoda rises up to 46 meters. At the base of the pagoda, there are 812 stone pillars, each one with a hollow and an image of a Nat (means Angel) in it. The stupa enshrined the Buddhist relics inside its relic’s chamber. It is one of the famous pilgrimage and tourist destinations in the Sagaing area. Shin Phyu Shin Hla Pagoda was built by the King Mani Sithu in AD 1095. It is named for the fact that two images of the Buddha, called Shin Phyu and Shin Hla respectively, were interned in the pagoda by King Mani Sithu. Umin Thonse` Pagoda, also known as 30 Caves Pagoda, is situated on Sagaing Hills. It was built by a venerable monk named <NAME> (though the date has been variously given as A.D. 687, 1005,1050, and 1085. 45 Buddha images sit in a crescent-shaped colonnade within the pagoda. Yadanar Zaedi Sinmyar Shin pagoda is situated on the Shwebo-Monywa road in Sagaing. It was built by King Mohnyin of Inwa in AD 792, enshrining the five relics brought by two monks who came back from Sri Lanka. Tilawkaguru Cave monastery is one of the monasteries on the Sagaing Hills. It was a series of meditation caves built around 1672. Bright reds, yellows, blues but especially turquoise, which produced richer more vivid mural paintings, still can be seen in the Tilawkaguru Meditation Caves. Sagaing Division is famous for its arts, crafts and silver products. If you are looking for a some silver souvenir, there are many silver ware workshops along the Sagaing – Monywa highway road in Ywa Htaung Village, where they make various kind of silverware such as jewelries, bowls, trays, boxes and Buddha images. You can take photos with great views of Sagaing Hills and surroundings, when you cross back over the Irrawaddy River to Mandalay. Have a fantastic day out and always remember that one of the best new hidden places in Myanmar. ', 72, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(57, 'Monywa Town', '/storage/photo/places/Monywa-Town.jpg', 'In Monywa town. there are busy markets. popular restuarants. a Degree College affiliated to Mandalay University. a Technical High School. and soon there will be an Institute of Economics. the second after the one in Yangon. Monywa Hotel. now privatised has comfortable four-room bungalows with attached amenities all air-conditioned centr, second only to Mandalay in the Upper Myanmar region. If you are travel to Monywa by car you should stop about 20 kilometres before you reach the town to visit this most unusual Buddhist temple complex on 37 acres of land which is part of the Mohnyin Forest Monastery retreat. The pagoda was started on 20th June 1939 and completed on 2nd March 1952.It was the brain-child of the famous Mohnyin Sayadaw whose life-like effigy can be seen nearby. If you can go at the beginning of the Myanmar month of Tazaungmone ( usually around November). you can see the annual pagoda festival. which goes on for several days when the villagers from all around come to enjoy the music and dancing and buy from the various stalls set up by sellers from all over the country.', 71, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(58, 'Nyaung Oo Phee Island', '/storage/photo/places/NyaungOo.jpg', 'Victoria Cliff Resort Nyaung Oo Phee Island features a restaurant, bar, a shared lounge and garden in Kawthaung. Among the facilities at this property are room service and a concierge service, along with free WiFi throughout the property. The resort has an outdoor swimming pool, fitness center, evening entertainment and a 24-hour front desk. Guest rooms at the resort come with a seating area. Victoria Cliff Resort Nyaung Oo Phee Island has some accommodations that have a patio and lake view, and the rooms include a private bathroom and a desk. All rooms at the accommodation feature air conditioning and a closet. Guests at Victoria Cliff Resort Nyaung Oo Phee Island can enjoy a continental or a buffet breakfast. The resort has a playground. The area is popular for snorkeling, and car rental is available at Victoria Cliff Resort Nyaung Oo Phee Island.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(59, 'COCKS COMB ISLAND', '/storage/photo/places/02.jpg', 'Cocks Comb Island is part of the Mergui Archipelago in the Andaman Sea. It is situated just off the coast of Kawthaung (Kawthoung), the most Southern city of Myanmar (Burma). The island is a limestone atoll without a beach, but with a stunning lagoon, shape like a heart. The inlet changes the color of the ocean and that’s why it is also called Emerald Heart Island. In the morning we leave from Kawthaung. Enjoy the fresh breeze on the ocean while cruising along scenic islands. Our first stop is Horse Shoe Island. It became the name because it is actually formed like a horse shoe. After some snorkeling we proceed to Cocks Comb Island and enter the Emeralds Heart by swimming through a natural tunnel (guided). The sea inside the inlet is calm and perfect for snorkeling. Our third stop will be Dunkin Island also called <NAME>. We enjoy buffet lunch on a paradise beach. The fine white sand is a perfect place for beach holiday photos. Feel free to take a stroll along the beach and listen to the sound of the ocean and jungle. We continue towards St. Matthews Island better known under its Burmese name <NAME>. Here we find another great place for snorkeling. We might spot, turtles, clown fish (nemo), sea anemones, giant clams and rock lobster (crayfish). We will return in the late afternoon back to Kawthaung for showers and buffet dinner.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(60, 'Macleod Island', '/storage/photo/places/064A9032.jpg', 'Macleod Island is home to Myanmar Andaman Resort, a private island retreat located in Myanmar’s Mergui Archipelago. Myanmar Andaman Resort is one of only two operating resorts among 800 mostly uninhabited islands. With twenty-two bungalows facing the island’s bay and surrounding pristine white sand beaches, Myanmar Andaman Resort offers every guest an unforgettable private island experience. Myanmar Andaman Resort provides a unique chance for guests to see native tribes, untouched tropical forests and a wealth of wildlife. Highlights include a variety of outdoor activities including CMAS certified dive center, snorkeling, island hopping tours, sea kayaking, hiking the island’s peak, swimming in the bay and traditional massage to bring an adventurous day to a close.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(61, 'Macleod Island', '/storage/photo/places/tour.tour_gallery.1094.jpg', 'The newly found heaven in Myanmar waters is waiting for everyone to explore its beauty. Our car picks you up at a hotel (in Ranong city) at around 7am to complete a border pass (identification is required). Then we travel to the Cockburn Island to snorkel along a long line of coral reefs, which is considered the most abundant among all Myanmar’s islands. It’s also a chance to experience the “divided sea” and its smooth white sandbar. Next, we snorkel at the Milky Way spot to see fascinating coral reefs and sea anemones up close. We stop by at “Pak Khlong Talad” or underwater flower garden before having lunch buffet and fresh seafood on the island. That’s not it. Keep moving to the hill’s peak and see a beautiful panoramic view. You cannot find these activities from any other programs. Then we return to Kawthaung for a border pass by 5pm, before traveling back to Ranong city. Note: This program is available every day from October 15 through May 15. The activity is suspended from May 16 through October every year due to the national park’s closure.', 60, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(62, 'Shwe Dagon Pagoda', '/storage/photo/places/shwedagon.jpg', 'The Shwedagon Pagoda (Burmese: ရွှေတိဂုံဘုရား, IPA: [ʃwèdəɡòʊɴ pʰəjá]), officially named Shwedagon Zedi Daw (Burmese: ရွှေတိဂုံစေတီတော်, [ʃwèdəɡòʊɴ zèdìdɔ̀], lit. `Golden Dagon Pagoda`) and also known as the Great Dagon Pagoda and the Golden Pagoda, is a gilded stupa located in Yangon, Myanmar. The 326-foot-tall (99 m)[1] pagoda is situated on Singuttara Hill, to the west of Kandawgyi Lake, and dominates the Yangon skyline. Shwedagon Pagoda is the most sacred Buddhist pagoda in Myanmar, as it is believed to contain relics of the four previous Buddhas of the present kalpa. These relics include the staff of Kakusandha, the water filter of Koṇāgamana, a piece of the robe of Kassapa, and eight strands of hair from the head of Gautama.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(63, 'Kandawgyi', '/storage/photo/places/kandawgyi.jpg', 'Kandawgyi Lake (Burmese: ကန်တော်ကြီး pronounced [kàndɔ̀dʑí]; literally \"great royal lake\", formerly Royal Lake), is one of two major lakes in Yangon, Burma (Myanmar). Located east of the Shwedagon Pagoda, the lake is artificial; water from Inya Lake is channelled through a series of pipes to Kandawgyi Lake. It was created to provide a clean water supply to the city during the British colonial administration.[1][2] It is approximately 5 miles (8 km) in circumference, and has a depth of 20 to 45 inches (50 to 115 cm). The 150-acre (61 ha) lake is surrounded by the 110-acre (45 ha) Kandawgyi Nature Park,[4] and the 69.25-acre (28-hectare) Yangon Zoological Gardens, which consists of a zoo, an aquarium and an amusement park.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(64, '<NAME>', '/storage/photo/places/sulepaya.jpg', 'Not many cities have a primary traffic circle occupied by a 2200-year-old golden temple. This 46m zedi (stupa), said to be older than Shwedagon Paya, is an example of modern Asian business life melding with ancient Burmese tradition. The gilded zedi is unusual in that its octagonal shape continues right up to the bell and inverted bowl. Just after the sun has gone down is the most atmospheric time to visit the temple. The central stupa’s name, <NAME>, translates in the Mon language as ‘the stupa where a Sacred Hair Relic is enshrined’. As with many other ancient Myanmar shrines, it has been rebuilt and repaired many times over the centuries. Near the north entrance look for the small golden karaweik (royal barge designed in the shape of a mythical bird), which you can load with a prayer card, then winch up a chain in order to deposit the card in a shrine higher up the stupa (K1000). The exterior base of the temple is surrounded by small shops and all the nonreligious activities that seem to be part of every zedi in Myanmar. Besides its significance as a landmark and meeting place, maybe its most mundane function is as the point from which all addresses to the north are measured.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(65, 'Botataung Pagoda', '/storage/photo/places/Botataung.jpg', 'The Botataung Pagoda on the banks of the river in downtown Yangon is one of the city’s most highly revered temples. The 40 meter high golden pagoda enshrines a sacred hair relic of the Buddha. The Botataung Pagoda, also spelled Botahtaung Pagoda was built some 2,500 years ago by the Mon people. In the second World War the pagoda was destroyed during an airforce bombing mission aimed at the nearby docks. Rebuilding started in 1948 following the original design. In the center of the tiled platform stands the main stupa surrounded by a a number of smaller stupas. The main stupa is the unique feature of the Botataung monastery; it enshrines the sacred Buddha relic and it is hollow and open to the public. Seated on a high pedestal in a very ornate pavilion is the Royal Palace Bronze Buddha image. The image that was cast in 1859 by order of King Mindon was taken to Britain during the colonial years and returned to Burma a few years after gaining independence.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(66, 'Kyauk Taw Gyi Pagoda', '/storage/photo/places/kyauk-taw-gyi-pagoda-yangon-l.jpg', 'The Kyauk Taw Gyi pagoda on top of Mindhama Hill near Yangon airport is known for its enormous Buddha image made out of a single piece of white marble. At the bottom of the stairs to the temple’s entrance are the ferocious looking heads of giant Naga, a serpent from Buddhist and Hindu mythology. The snakes bodies extend on the balustrades. At the stop of the stairway is a pair of giant white and gold Chinthe, lions often seen guarding Burmese temples. A long corridor with multi tiered Pyatthat roofs leads to the hall enshrining the marble Buddha image. Along the way devotees can buy flowers to pay homage.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(67, 'Nga Htat Gyi Pagoda', '/storage/photo/places/nga-htat-gyi-pagoda-l.jpg', 'The Nga Htat Gyi pagoda in Yangon is known for its enormous seated image of the Buddha. The pagoda is located in the Ashay Tawya Monastery, a little visited temple across the street from the Chauk Htat Gyi pagoda that houses a highly revered 65 meter long reclining Buddha image. A flight of stairs leads to the temple grounds. A gate with a very ornately decorated five tiered Burmese Pyatthat roof, topped with a hti is guarded by two large white and gold mythological lions called Chinthe.', 79, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(68, 'Uppatasanti Pagoda', '/storage/photo/places/42021597915_72ef96d8c0_h.jpg', 'Uppātasanti Pagoda (ဥပ္ပါတသန္တိစေတီတော်, officially called ဥပ္ပါတသန္တိစေတီတော်မြတ်ကြီး, also called the \"Peace Pagoda\") is a prominent landmark in Naypyidaw, the capital of Myanmar. The pagoda houses a Buddha tooth relic from China.[1] It is nearly a same-sized replica of Shwedagon Pagoda in Yangon and stands 99 metres (325 ft) tall.', 80, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(69, 'Thatta Thattaha Maha Bawdi Pagoda', '/storage/photo/places/thatta-thattaha-maha-bawdi.jpg', 'Thatta Thattaha Maha Bawdi Pagoda (Burmese: သတ္တသတ္တာဟ မဟာဗောဓိစေတီတော်; Pali: Sattasattāhamahābodhi Cetiya) is a Buddhist temple on Udayaraṃsi hillock in Pobbathiri Township, Naypyidaw Union Territory, Myanmar (Burma). The pagoda is a replica of the Mahabodhi Temple in Bodh Gaya, Bihar, India.[1] The replica is 162 feet (49 m) tall. The buddhābhiṣeka ritual of the pagoda`s main Buddha image was held on 13 May 2014.The complex also houses replicas of key locations in Gautama Buddha`s life (သံဝေဇနိယလေးဌာန), including his birth, his enlightenment, his preaching and his death, built for worshippers who have difficulties making a pilgrimage to Bodh Gaya.', 80, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(70, 'Water Fountain Garden', '/storage/photo/places/4-2.jpg', 'More or less at the heart of Nay Pyi Taw is this government-built, 165-acre grassy park boasting ponds, swinging bridges, gardens, fountains, kitschy sculptures, a playground and a massive, not always functioning water slide. The gurgling, colourfully lit fountains are usually turned on at around dusk and add to the allure alongside the twinkling fairy lights festooning the (ageing) structures scattered around the grounds. The best time to come is in the evening. Locals flock here for picnics (and quite a bit of drinking) and loud music plays through speakers hidden in the trees. As the evening (and alcohol) wears on, many people start dancing in the square in front of the main fountains. It`s a bizarre but fun spectacle.', 80, '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `ratings`
--
CREATE TABLE `ratings` (
`id` bigint(20) UNSIGNED NOT NULL,
`star` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guide_id` bigint(20) UNSIGNED NOT NULL,
`tourist_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `regions`
--
CREATE TABLE `regions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`division_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `regions`
--
INSERT INTO `regions` (`id`, `name`, `division_id`, `created_at`, `updated_at`) VALUES
(1, 'Bhamo', 1, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'Mohnyin', 1, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'Myitkyina', 1, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(4, 'Putao', 1, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(5, 'Bawlakhe', 2, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(6, 'Loikaw', 2, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(7, 'Hpa-an', 3, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(8, 'Hpapun', 3, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(9, 'Kawkareik', 3, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(10, 'Myawaddy', 3, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(11, 'Falam', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(12, 'Hakha', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(13, 'Matup', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(14, 'Mindat', 4, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(15, 'Mawlamyine', 5, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(16, 'Thaton', 5, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(17, 'Kyaukpyu', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(18, 'Maungdaw', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(19, 'Sittwe', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(20, 'Thandwe', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(21, 'Mrauk-U', 6, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(22, 'Kengtung', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(23, '<NAME>', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(24, '<NAME>', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(25, 'Tachileik', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(26, 'Kunlong', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(27, 'Kyaukme', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(28, 'Lashio', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(29, 'Laukkaing', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(30, '<NAME>', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(31, 'Hopang', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(32, 'Matman', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(33, 'Mongmit', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(34, 'Kokang Self-Administered Zone', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(35, 'Pa Laung Self-Administered Zone', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(36, 'Wa Self-Administered Division', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(37, 'Langkho', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(38, 'Loilen', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(39, 'Taunggyi', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(40, 'Danu Self-Administered Zone', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(41, 'Pa-O Self-Administered Zone', 7, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(42, 'Hinthada', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(43, 'Labutta', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(44, 'Ma-ubin', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(45, 'Myaungmya', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(46, 'Pathein', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(47, 'Pyapon', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(48, 'Kyonpyaw', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(49, 'Myanaung', 8, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(50, 'Bago', 9, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(51, 'Taungoo', 9, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(52, 'Pyay', 9, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(53, 'Tharrawaddy', 9, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(54, 'Gangaw', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(55, 'Magway', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(56, 'Minbu', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(57, 'Pakokku', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(58, 'Thayet', 10, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(59, 'Kyaukse', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(60, 'Mandalay', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(61, 'Meiktila', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(62, 'Myingyan', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(63, 'Nyaung-U', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(64, 'Pyinoolwin', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(65, 'Yamethin', 11, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(66, 'Hkamti', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(67, 'Kanbalu', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(68, 'Kale', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(69, 'Katha', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(70, 'Mawlaik', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(71, 'Monywa', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(72, 'Sagaing', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(73, 'Shwebo', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(74, 'Tamu', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(75, 'Yinmabin', 12, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(76, 'Dawei', 13, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(77, 'Kawthaung', 13, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(78, 'Myeik', 13, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(79, 'Yangon', 14, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(80, '<NAME>', 15, '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'web', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, 'guide', 'web', '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(3, 'tourist', 'web', '2019-12-06 08:06:28', '2019-12-06 08:06:28');
-- --------------------------------------------------------
--
-- Table structure for table `role_has_permissions`
--
CREATE TABLE `role_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tourists`
--
CREATE TABLE `tourists` (
`id` bigint(20) UNSIGNED NOT NULL,
`gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cardtype` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`passport` text COLLATE utf8mb4_unicode_ci NOT NULL,
`passportcard` text COLLATE utf8mb4_unicode_ci NOT NULL,
`nationality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dob` date NOT NULL,
`doi` date NOT NULL,
`doe` date NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`country_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tourists`
--
INSERT INTO `tourists` (`id`, `gender`, `image`, `cardtype`, `passport`, `passportcard`, `nationality`, `dob`, `doi`, `doe`, `status`, `country_id`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 'Female', '/storage/photo/tourist/37075.JPG', 'NRC', '12/AHLANA(N)047531', '[\"\\/storage\\/photo\\/touristcard\\/64725.jpeg\",\"\\/storage\\/photo\\/touristcard\\/73932.jpeg\"]', 'Myanmar', '1997-11-05', '0000-00-00', '0000-00-00', 0, 16, 2, '2019-12-06 08:09:02', '2019-12-06 08:09:02');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`registerdate` date NOT NULL DEFAULT '2019-12-06',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `registerdate`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Admin', '<EMAIL>', NULL, '$2y$10$Xw0fE2Eeq0kDohKhlPL99ezquj.r.YLV6ZMndwaWbtOn48VGzO5Pi', '2019-12-06', NULL, '2019-12-06 08:06:28', '2019-12-06 08:06:28'),
(2, '<NAME>', '<EMAIL>', NULL, '$2y$10$tNqWOF9EgGfBbRveHUB9Pe7NP7XXk3qvRpyGhznodQNwmTpQz87Kq', '2019-12-06', NULL, '2019-12-06 08:09:02', '2019-12-06 08:09:02'),
(4, '<NAME>', '<EMAIL>', NULL, '$2y$10$o63k.p7OLZ2iCRapKjTq6ODSHqIqb1gV87NJRHfhNvnczWUnUQvgC', '2019-12-06', NULL, '2019-12-06 08:32:53', '2019-12-06 08:32:53'),
(5, '<NAME>', '<EMAIL>', NULL, '$2y$10$OEn6UI2GIxxza7djybee8.t0Bo810L8a9ZeXZZJXaLucbzmjkMDRy', '2019-12-06', NULL, '2019-12-06 08:38:21', '2019-12-06 08:38:21'),
(6, '<NAME>', '<EMAIL>', NULL, '$2y$10$Z.uTy44.5FyICSDoYgGonu16BOKuJ5RbQjIUCyq7Sr2JgoB2apLyu', '2019-12-06', NULL, '2019-12-06 08:40:13', '2019-12-06 08:40:13'),
(7, '<NAME>', '<EMAIL>', NULL, '$2y$10$zRiz9qLv60bp0xBztVWyKes/h73lMGqIzW7oP7DApzYhoxQrCk.IO', '2019-12-06', NULL, '2019-12-06 09:29:59', '2019-12-06 09:29:59');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bookingdetails`
--
ALTER TABLE `bookingdetails`
ADD PRIMARY KEY (`id`),
ADD KEY `bookingdetails_guide_id_foreign` (`guide_id`),
ADD KEY `bookingdetails_booking_id_foreign` (`booking_id`);
--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
ADD PRIMARY KEY (`id`),
ADD KEY `bookings_tourist_id_foreign` (`tourist_id`);
--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `divisions`
--
ALTER TABLE `divisions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `guides`
--
ALTER TABLE `guides`
ADD PRIMARY KEY (`id`),
ADD KEY `guides_user_id_foreign` (`user_id`),
ADD KEY `guides_division_id_foreign` (`division_id`);
--
-- Indexes for table `guide_language`
--
ALTER TABLE `guide_language`
ADD PRIMARY KEY (`id`),
ADD KEY `guide_language_guide_id_foreign` (`guide_id`),
ADD KEY `guide_language_language_id_foreign` (`language_id`);
--
-- Indexes for table `guide_place`
--
ALTER TABLE `guide_place`
ADD PRIMARY KEY (`id`),
ADD KEY `guide_place_guide_id_foreign` (`guide_id`),
ADD KEY `guide_place_place_id_foreign` (`place_id`);
--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `places`
--
ALTER TABLE `places`
ADD PRIMARY KEY (`id`),
ADD KEY `places_region_id_foreign` (`region_id`);
--
-- Indexes for table `ratings`
--
ALTER TABLE `ratings`
ADD PRIMARY KEY (`id`),
ADD KEY `ratings_guide_id_foreign` (`guide_id`),
ADD KEY `ratings_tourist_id_foreign` (`tourist_id`);
--
-- Indexes for table `regions`
--
ALTER TABLE `regions`
ADD PRIMARY KEY (`id`),
ADD KEY `regions_division_id_foreign` (`division_id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD PRIMARY KEY (`permission_id`,`role_id`),
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
--
-- Indexes for table `tourists`
--
ALTER TABLE `tourists`
ADD PRIMARY KEY (`id`),
ADD KEY `tourists_country_id_foreign` (`country_id`),
ADD KEY `tourists_user_id_foreign` (`user_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bookingdetails`
--
ALTER TABLE `bookingdetails`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bookings`
--
ALTER TABLE `bookings`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `divisions`
--
ALTER TABLE `divisions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `guides`
--
ALTER TABLE `guides`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `guide_language`
--
ALTER TABLE `guide_language`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `guide_place`
--
ALTER TABLE `guide_place`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
MODIFY `id` bigint(20) UNSIGNED 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=16;
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `places`
--
ALTER TABLE `places`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
--
-- AUTO_INCREMENT for table `ratings`
--
ALTER TABLE `ratings`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `regions`
--
ALTER TABLE `regions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=81;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tourists`
--
ALTER TABLE `tourists`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `bookingdetails`
--
ALTER TABLE `bookingdetails`
ADD CONSTRAINT `bookingdetails_booking_id_foreign` FOREIGN KEY (`booking_id`) REFERENCES `bookings` (`id`),
ADD CONSTRAINT `bookingdetails_guide_id_foreign` FOREIGN KEY (`guide_id`) REFERENCES `guides` (`id`);
--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
ADD CONSTRAINT `bookings_tourist_id_foreign` FOREIGN KEY (`tourist_id`) REFERENCES `tourists` (`id`);
--
-- Constraints for table `guides`
--
ALTER TABLE `guides`
ADD CONSTRAINT `guides_division_id_foreign` FOREIGN KEY (`division_id`) REFERENCES `divisions` (`id`),
ADD CONSTRAINT `guides_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `guide_language`
--
ALTER TABLE `guide_language`
ADD CONSTRAINT `guide_language_guide_id_foreign` FOREIGN KEY (`guide_id`) REFERENCES `guides` (`id`),
ADD CONSTRAINT `guide_language_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`);
--
-- Constraints for table `guide_place`
--
ALTER TABLE `guide_place`
ADD CONSTRAINT `guide_place_guide_id_foreign` FOREIGN KEY (`guide_id`) REFERENCES `guides` (`id`),
ADD CONSTRAINT `guide_place_place_id_foreign` FOREIGN KEY (`place_id`) REFERENCES `places` (`id`);
--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `places`
--
ALTER TABLE `places`
ADD CONSTRAINT `places_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`);
--
-- Constraints for table `ratings`
--
ALTER TABLE `ratings`
ADD CONSTRAINT `ratings_guide_id_foreign` FOREIGN KEY (`guide_id`) REFERENCES `guides` (`id`),
ADD CONSTRAINT `ratings_tourist_id_foreign` FOREIGN KEY (`tourist_id`) REFERENCES `tourists` (`id`);
--
-- Constraints for table `regions`
--
ALTER TABLE `regions`
ADD CONSTRAINT `regions_division_id_foreign` FOREIGN KEY (`division_id`) REFERENCES `divisions` (`id`);
--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `tourists`
--
ALTER TABLE `tourists`
ADD CONSTRAINT `tourists_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
ADD CONSTRAINT `tourists_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
|
CREATE TABLE tasks (
id INT (11) PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(200) NOT NULL,
description TEXT DEFAULT '',
status TINYINT NOT NULL DEFAULT 0,
created_at DATETIME NOT NULL DEFAULT NOW()
); |
select
to_number(col001) "No",
to_number(col002) municipality_code,
col003 prefecture_name,
to_date(col005, 'YYYY-MM-DD') published_date,
col008 patient_location,
col009 patient_age,
col010 patient_sex,
to_number(col016) patient_left_hospital
from
apex_data_parser.parse(
p_content =>
(select content_blob from covid19_municipalities where name = '東京都'),
p_file_name => 'file_is.csv',
p_skip_rows => 1
) where col001 is not null;
|
<reponame>puneet222/Leetcode-1
# Source : https://leetcode.com/problems/swap-salary
# Author : <NAME>
# Date : 2017-08-15
##################################################################################
#
# Given a table salary, such as the one below, that has m=male and f=female values.
# Swap all f and m values (i.e., change all f values to m and vice versa) with a
# single update query and no intermediate temp table.
#
# For example:
#
#
# | id | name | sex | salary |
# |----|------|-----|--------|
# | 1 | A | m | 2500 |
# | 2 | B | f | 1500 |
# | 3 | C | m | 5500 |
# | 4 | D | f | 500 |
#
# After running your query, the above salary table should have the following rows:
#
# | id | name | sex | salary |
# |----|------|-----|--------|
# | 1 | A | f | 2500 |
# | 2 | B | m | 1500 |
# | 3 | C | f | 5500 |
# | 4 | D | m | 500 |
#
##################################################################################
UPDATE salary SET sex = CHAR(ASCII(sex) ^ 11)
|
CREATE DATABASE cashflow;
CREATE USER cashflowuser WITH PASSWORD '<PASSWORD>';
GRANT ALL PRIVILEGES ON DATABASE cashflow TO cashflowuser; |
with v1 as (
select i_category,
i_brand,
s_store_name,
s_company_name,
d_year,
d_moy,
sum(ss_sales_price) sum_sales,
avg(sum(ss_sales_price)) over
(partition by i_category, i_brand,
s_store_name, s_company_name, d_year)
avg_monthly_sales,
rank() over
(partition by i_category, i_brand,
s_store_name, s_company_name
order by d_year, d_moy) rn
from item,
store_sales,
date_dim,
store
where ss_item_sk = i_item_sk
and ss_sold_date_sk = d_date_sk
and ss_store_sk = s_store_sk
and (
d_year = 1999 or
(d_year = 1999 - 1 and d_moy = 12) or
(d_year = 1999 + 1 and d_moy = 1)
)
group by i_category, i_brand,
s_store_name, s_company_name,
d_year, d_moy),
v2 as (
select v1.i_category
, v1.i_brand
, v1.s_store_name
, v1.s_company_name
, v1.d_year
, v1.d_moy
, v1.avg_monthly_sales
, v1.sum_sales
, v1_lag.sum_sales psum
, v1_lead.sum_sales nsum
from v1,
v1 v1_lag,
v1 v1_lead
where v1.i_category = v1_lag.i_category
and v1.i_category = v1_lead.i_category
and v1.i_brand = v1_lag.i_brand
and v1.i_brand = v1_lead.i_brand
and v1.s_store_name = v1_lag.s_store_name
and v1.s_store_name = v1_lead.s_store_name
and v1.s_company_name = v1_lag.s_company_name
and v1.s_company_name = v1_lead.s_company_name
and v1.rn = v1_lag.rn + 1
and v1.rn = v1_lead.rn - 1)
insert overwrite table query47
select *
from v2
where d_year = 1999
and avg_monthly_sales > 0
and case when avg_monthly_sales > 0 then abs(sum_sales - avg_monthly_sales) / avg_monthly_sales else null end > 0.1
order by sum_sales - avg_monthly_sales, 3
limit 100;
|
<reponame>manikanth/sql-server-samples
CREATE SCHEMA [Dimension]
AUTHORIZATION [dbo];
GO
EXECUTE sp_addextendedproperty @name = N'Description', @value = N'Dimensional model dimension tables', @level0type = N'SCHEMA', @level0name = N'Dimension';
|
<gh_stars>1-10
CREATE TABLE `personas` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`admins` varchar(255), -- People who can add/remove persona access
`accounts` text NOT NULL, -- People who can use this persona
`username` varchar(255) NOT NULL,
`bio` text NOT NULL,
`gpgkey` text, -- Optional but highly recommended
PRIMARY KEY(`id`),
KEY(`username`)
);
|
<reponame>mrudulpolus/kc<gh_stars>0
ALTER TABLE COMM_SCHEDULE_MINUTES
DROP CONSTRAINT COMM_SCHEDULE_MINUTES_PRO_FK1
;
ALTER TABLE COMM_SCHEDULE_MINUTES
ADD CONSTRAINT COMM_SCHEDULE_MINUTES_PRO_FK1 FOREIGN KEY
(
REVIEWER_ID_FK
) REFERENCES PROTOCOL_REVIEWERS
(
PROTOCOL_REVIEWER_ID
) ENABLE
;
ALTER TABLE COMM_SCHEDULE_MINUTES
DROP CONSTRAINT "UQ_COMM_SCHEDULE_MINUTES"
;
|
<filename>migrations/20200502192103_tFortedSurebet.up.sql
create table dbo.FortedSurebet
(
CreatedAt datetimeoffset,
Starts datetimeoffset,
FortedHome varchar(1000),
FortedAway varchar(1000),
FortedProfit varchar(1000),
FortedSport varchar(1000),
FortedLeague varchar(1000),
FilterName varchar(1000),
FortedSurebetId bigint not null,
constraint PK_FortedSurebet primary key (FortedSurebetId),
)
|
<gh_stars>10-100
ALTER TABLE test.t DROP INDEX idx |
-- -----------------------------
-- 表结构 `dp_system_queue`
-- -----------------------------
DROP TABLE IF EXISTS `dp_system_queue`;
CREATE TABLE `dp_system_queue` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务编号',
`title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
`command` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '执行指令',
`exec_pid` bigint(20) NULL DEFAULT 0 COMMENT '执行进程',
`exec_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '执行参数',
`exec_time` bigint(20) NULL DEFAULT 0 COMMENT '执行时间',
`exec_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '执行描述',
`enter_time` decimal(20, 4) NULL DEFAULT 0.0000 COMMENT '开始时间',
`outer_time` decimal(20, 4) NULL DEFAULT 0.0000 COMMENT '结束时间',
`loops_time` bigint(20) NULL DEFAULT 0 COMMENT '循环时间',
`attempts` bigint(20) NULL DEFAULT 0 COMMENT '执行次数',
`rscript` tinyint(1) NULL DEFAULT 1 COMMENT '任务类型(0单例,1多例)',
`status` tinyint(1) NULL DEFAULT 1 COMMENT '任务状态(1新任务,2处理中,3成功,4失败)',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_system_queue_code`(`code`) USING BTREE,
INDEX `idx_system_queue_title`(`title`) USING BTREE,
INDEX `idx_system_queue_status`(`status`) USING BTREE,
INDEX `idx_system_queue_rscript`(`rscript`) USING BTREE,
INDEX `idx_system_queue_create_at`(`create_at`) USING BTREE,
INDEX `idx_system_queue_exec_time`(`exec_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='队列任务';
|
create table IF NOT EXISTS persons (id int PRIMARY KEY NOT NULL, first_name text, last_name text, gender text); |
ALTER TABLE `event_cases`
CHANGE `update_at` `update_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP;
|
-- FK, Index 는 별도 파일로 분리. 맨 마지막에 작업 예정
drop table if exists micro_service cascade;
drop table if exists micro_service_log cascade;
drop table if exists micro_service_log_2021 cascade;
commit;
-- 서비스 관리
create table micro_service (
micro_service_id int,
micro_service_key varchar(30),
micro_service_name varchar(60) not null,
micro_service_type varchar(30) not null,
server_ip varchar(45) not null,
api_key varchar(256),
url_scheme varchar(10) not null,
url_host varchar(256) not null,
url_port int,
url_path varchar(256),
status varchar(20) default 'use',
available boolean default true,
description varchar(256),
last_health_date timestamp with time zone,
update_date timestamp with time zone,
insert_date timestamp with time zone default now(),
constraint micro_service_pk primary key (micro_service_id)
);
comment on table micro_service is '서비스 관리';
comment on column micro_service.micro_service_id is '고유키';
comment on column micro_service.micro_service_key is '서비스 키';
comment on column micro_service.micro_service_name is '서비스명';
comment on column micro_service.micro_service_type is '서비스 유형. cache(캐시 Reload), simulation, sensor-things';
comment on column micro_service.server_ip is '서버 IP';
comment on column micro_service.api_key is 'API KEY';
comment on column micro_service.url_scheme is '사용할 프로토콜';
comment on column micro_service.url_host is '호스트';
comment on column micro_service.url_port is '포트';
comment on column micro_service.url_path is '경로, 리소스 위치';
comment on column micro_service.status is '상태. up : 실행, down : 정지, unknown : 알수 없음';
comment on column micro_service.available is 'true : 사용, false : 사용안함';
comment on column micro_service.description is '설명';
comment on column micro_service.last_health_date is '마지막 Health Check 시간';
comment on column micro_service.update_date is '수정일';
comment on column micro_service.insert_date is '등록일';
-- Micro Service 이력
create table micro_service_log(
micro_service_log_id bigint,
micro_service_id int,
micro_service_name varchar(60) not null,
micro_service_type varchar(30) not null,
url_path varchar(256),
status varchar(20) default 'use',
error_message varchar(256),
year char(4) default to_char(now(), 'YYYY'),
month varchar(2) default to_char(now(), 'MM'),
day varchar(2) default to_char(now(), 'DD'),
year_week varchar(2) default to_char(now(), 'WW'),
week varchar(2) default to_char(now(), 'W'),
hour varchar(2) default to_char(now(), 'HH24'),
minute varchar(2) default to_char(now(), 'MI'),
insert_date timestamp with time zone default now()
) partition by range(insert_date);
comment on table micro_service_log is 'Micro Service 이력';
comment on column micro_service_log.micro_service_log_id is '고유키';
comment on column micro_service_log.micro_service_id is '서비스 키';
comment on column micro_service_log.micro_service_name is '서비스명';
comment on column micro_service_log.micro_service_type is '서비스 유형. cache(캐시 Reload), simulation, sensor-things';
comment on column micro_service_log.url_path is '호출 url';
comment on column micro_service_log.status is 'http status';
comment on column micro_service_log.error_message is 'status 가 에러일때 에러 메시지(256자까지)';
comment on column micro_service_log.year is '년';
comment on column micro_service_log.month is '월';
comment on column micro_service_log.day is '일';
comment on column micro_service_log.year_week is '일년중 몇주';
comment on column micro_service_log.week is '이번달 몇주';
comment on column micro_service_log.hour is '시간';
comment on column micro_service_log.minute is '분';
comment on column micro_service_log.insert_date is '등록일';
create table micro_service_log_2021 partition of micro_service_log for values from ('2021-01-01 00:00:00.000000') to ('2022-01-01 00:00:00.000000'); |
ALTER TABLE spotguide_repos MODIFY COLUMN icon MEDIUMTEXT; |
<reponame>aridwiprayogo/marquez<gh_stars>100-1000
ALTER TABLE dataset_versions ADD CONSTRAINT dataset_versions_version UNIQUE(version);
ALTER TABLE job_versions ADD CONSTRAINT job_versions_version UNIQUE(version); |
<reponame>bclennox/pg_partman
CREATE FUNCTION create_parent(
p_parent_table text
, p_control text
, p_type text
, p_interval text
, p_constraint_cols text[] DEFAULT NULL
, p_premake int DEFAULT 4
, p_automatic_maintenance text DEFAULT 'on'
, p_start_partition text DEFAULT NULL
, p_inherit_fk boolean DEFAULT true
, p_epoch text DEFAULT 'none'
, p_upsert text DEFAULT ''
, p_trigger_return_null boolean DEFAULT true
, p_template_table text DEFAULT NULL
, p_jobmon boolean DEFAULT true
, p_debug boolean DEFAULT false)
RETURNS boolean
LANGUAGE plpgsql SECURITY DEFINER
AS $$
DECLARE
ex_context text;
ex_detail text;
ex_hint text;
ex_message text;
v_partattrs smallint[];
v_base_timestamp timestamptz;
v_count int := 1;
v_control_type text;
v_control_exact_type text;
v_datetime_string text;
v_higher_control_type text;
v_higher_parent_control text;
v_higher_parent_schema text := split_part(p_parent_table, '.', 1);
v_higher_parent_table text := split_part(p_parent_table, '.', 2);
v_id_interval bigint;
v_job_id bigint;
v_jobmon_schema text;
v_last_partition_created boolean;
v_max bigint;
v_native_sub_control text;
v_notnull boolean;
v_new_search_path text := '@extschema@,pg_temp';
v_old_search_path text;
v_parent_partition_id bigint;
v_parent_partition_timestamp timestamptz;
v_parent_schema text;
v_parent_tablename text;
v_part_col text;
v_part_type text;
v_partition_time timestamptz;
v_partition_time_array timestamptz[];
v_partition_id_array bigint[];
v_partstrat char;
v_row record;
v_sql text;
v_start_time timestamptz;
v_starting_partition_id bigint;
v_step_id bigint;
v_step_overflow_id bigint;
v_sub_parent text;
v_success boolean := false;
v_template_schema text;
v_template_tablename text;
v_time_interval interval;
v_top_datetime_string text;
v_top_parent_schema text := split_part(p_parent_table, '.', 1);
v_top_parent_table text := split_part(p_parent_table, '.', 2);
BEGIN
/*
* Function to turn a table into the parent of a partition set
*/
IF position('.' in p_parent_table) = 0 THEN
RAISE EXCEPTION 'Parent table must be schema qualified';
END IF;
IF p_upsert <> '' THEN
IF current_setting('server_version_num')::int < 90500 THEN
RAISE EXCEPTION 'INSERT ... ON CONFLICT (UPSERT) feature is only supported in PostgreSQL 9.5 and later';
END IF;
IF p_type = 'native' THEN
RAISE EXCEPTION 'Native partitioning does not currently support upsert. Use pg_partman''s partitioning methods instead if this is required';
END IF;
END IF;
SELECT n.nspname, c.relname INTO v_parent_schema, v_parent_tablename
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid
WHERE n.nspname = split_part(p_parent_table, '.', 1)::name
AND c.relname = split_part(p_parent_table, '.', 2)::name;
IF v_parent_tablename IS NULL THEN
RAISE EXCEPTION 'Unable to find given parent table in system catalogs. Please create parent table first: %', p_parent_table;
END IF;
SELECT attnotnull INTO v_notnull
FROM pg_catalog.pg_attribute a
JOIN pg_catalog.pg_class c ON a.attrelid = c.oid
JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid
WHERE c.relname = v_parent_tablename::name
AND n.nspname = v_parent_schema::name
AND a.attname = p_control::name;
IF p_type <> 'native' AND (v_notnull = false OR v_notnull IS NULL) THEN
RAISE EXCEPTION 'Control column given (%) for parent table (%) does not exist or must be set to NOT NULL', p_control, p_parent_table;
END IF;
SELECT general_type, exact_type INTO v_control_type, v_control_exact_type
FROM @[email protected]_control_type(v_parent_schema, v_parent_tablename, p_control);
IF (p_epoch <> 'none' AND v_control_type <> 'id') THEN
RAISE EXCEPTION 'p_epoch can only be used with an integer based control column and does not work for native partitioning';
END IF;
IF NOT @[email protected]_partition_type(p_type) THEN
RAISE EXCEPTION '% is not a valid partitioning type for pg_partman', p_type;
END IF;
IF p_type = 'native' THEN
IF current_setting('server_version_num')::int < 100000 THEN
RAISE EXCEPTION 'Native partitioning only available in PostgreSQL versions 10.0+';
END IF;
-- Check if given parent table has been already set up as a partitioned table and is ranged
SELECT p.partstrat, partattrs INTO v_partstrat, v_partattrs
FROM pg_catalog.pg_partitioned_table p
JOIN pg_catalog.pg_class c ON p.partrelid = c.oid
JOIN pg_namespace n ON c.relnamespace = n.oid
WHERE n.nspname = v_parent_schema::name
AND c.relname = v_parent_tablename::name;
IF v_partstrat <> 'r' OR v_partstrat IS NULL THEN
RAISE EXCEPTION 'When using native partitioning, you must have created the given parent table as ranged (not list) partitioned already. Ex: CREATE TABLE ... PARITIONED BY RANGE ...)';
END IF;
IF array_length(v_partattrs, 1) > 1 THEN
RAISE NOTICE 'pg_partman only supports single column native partitioning at this time. Found % columns in given parent definition.', array_length(v_partattrs, 1);
END IF;
SELECT a.attname, t.typname
INTO v_part_col, v_part_type
FROM pg_attribute a
JOIN pg_class c ON a.attrelid = c.oid
JOIN pg_namespace n ON c.relnamespace = n.oid
JOIN pg_type t ON a.atttypid = t.oid
WHERE n.nspname = v_parent_schema::name
AND c.relname = v_parent_tablename::name
AND attnum IN (SELECT unnest(partattrs) FROM pg_partitioned_table p WHERE a.attrelid = p.partrelid);
IF p_control <> v_part_col OR v_control_exact_type <> v_part_type THEN
RAISE EXCEPTION 'Control column and type given in arguments (%, %) does not match the control column and type of the given native partition set (%, %)', p_control, v_control_exact_type, v_part_col, v_part_type;
END IF;
-- Check that control column is a usable type for pg_partman.
IF v_control_type NOT IN ('time', 'id') THEN
RAISE EXCEPTION 'Only date/time or integer types are allowed for the control column with native partitioning.';
END IF;
-- Table to handle properties not natively inherited yet (indexes, fks, etc)
IF p_template_table IS NULL THEN
v_template_schema := '@extschema@';
v_template_tablename := @[email protected]_name_length('template_'||v_parent_schema||'_'||v_parent_tablename);
EXECUTE format('CREATE TABLE IF NOT EXISTS %I.%I (LIKE %I.%I)', '@extschema@', v_template_tablename, v_parent_schema, v_parent_tablename);
ELSE
SELECT n.nspname, c.relname INTO v_template_schema, v_template_tablename
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid
WHERE n.nspname = split_part(p_template_table, '.', 1)::name
AND c.relname = split_part(p_template_table, '.', 2)::name;
IF v_template_tablename IS NULL THEN
RAISE EXCEPTION 'Unable to find given template table in system catalogs (%). Please create template table first or leave parameter NULL to have a default one created for you.', p_parent_table;
END IF;
END IF;
ELSE
IF current_setting('server_version_num')::int >= 100000 THEN
SELECT p.partstrat INTO v_partstrat
FROM pg_catalog.pg_partitioned_table p
JOIN pg_catalog.pg_class c ON p.partrelid = c.oid
JOIN pg_namespace n ON c.relnamespace = n.oid
WHERE n.nspname = v_parent_schema::name
AND c.relname = v_parent_tablename::name;
END IF;
IF v_partstrat IS NOT NULL THEN
RAISE EXCEPTION 'Given parent table has been set up with native partitioning therefore cannot be used with pg_partman''s other partitioning types. Either recreate table non-native or set the type argument to ''native''';
END IF;
END IF;
SELECT current_setting('search_path') INTO v_old_search_path;
IF p_jobmon THEN
SELECT nspname INTO v_jobmon_schema FROM pg_catalog.pg_namespace n, pg_catalog.pg_extension e WHERE e.extname = 'pg_jobmon'::name AND e.extnamespace = n.oid;
IF v_jobmon_schema IS NOT NULL THEN
v_new_search_path := '@extschema@,'||v_jobmon_schema||',pg_temp';
END IF;
END IF;
EXECUTE format('SELECT set_config(%L, %L, %L)', 'search_path', v_new_search_path, 'false');
EXECUTE format('LOCK TABLE %I.%I IN ACCESS EXCLUSIVE MODE', v_parent_schema, v_parent_tablename);
IF v_jobmon_schema IS NOT NULL THEN
v_job_id := add_job(format('PARTMAN SETUP PARENT: %s', p_parent_table));
v_step_id := add_step(v_job_id, format('Creating initial partitions on new parent table: %s', p_parent_table));
END IF;
-- If this parent table has siblings that are also partitioned (subpartitions), ensure this parent gets added to part_config_sub table so future maintenance will subpartition it
-- Just doing in a loop to avoid having to assign a bunch of variables (should only run once, if at all; constraint should enforce only one value.)
FOR v_row IN
WITH parent_table AS (
SELECT h.inhparent AS parent_oid
FROM pg_catalog.pg_inherits h
JOIN pg_catalog.pg_class c ON h.inhrelid = c.oid
JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid
WHERE c.relname = v_parent_tablename::name
AND n.nspname = v_parent_schema::name
), sibling_children AS (
SELECT i.inhrelid::regclass::text AS tablename
FROM pg_inherits i
JOIN parent_table p ON i.inhparent = p.parent_oid
)
SELECT DISTINCT sub_partition_type
, sub_control
, sub_partition_interval
, sub_constraint_cols
, sub_premake
, sub_inherit_fk
, sub_retention
, sub_retention_schema
, sub_retention_keep_table
, sub_retention_keep_index
, sub_automatic_maintenance
, sub_epoch
, sub_optimize_trigger
, sub_optimize_constraint
, sub_infinite_time_partitions
, sub_jobmon
, sub_trigger_exception_handling
, sub_upsert
, sub_trigger_return_null
, sub_template_table
FROM @[email protected]_config_sub a
JOIN sibling_children b on a.sub_parent = b.tablename LIMIT 1
LOOP
INSERT INTO @[email protected]_config_sub (
sub_parent
, sub_partition_type
, sub_control
, sub_partition_interval
, sub_constraint_cols
, sub_premake
, sub_inherit_fk
, sub_retention
, sub_retention_schema
, sub_retention_keep_table
, sub_retention_keep_index
, sub_automatic_maintenance
, sub_epoch
, sub_optimize_trigger
, sub_optimize_constraint
, sub_infinite_time_partitions
, sub_jobmon
, sub_trigger_exception_handling
, sub_upsert
, sub_trigger_return_null
, sub_template_table)
VALUES (
p_parent_table
, v_row.sub_partition_type
, v_row.sub_control
, v_row.sub_partition_interval
, v_row.sub_constraint_cols
, v_row.sub_premake
, v_row.sub_inherit_fk
, v_row.sub_retention
, v_row.sub_retention_schema
, v_row.sub_retention_keep_table
, v_row.sub_retention_keep_index
, v_row.sub_automatic_maintenance
, v_row.sub_epoch
, v_row.sub_optimize_trigger
, v_row.sub_optimize_constraint
, v_row.sub_infinite_time_partitions
, v_row.sub_jobmon
, v_row.sub_trigger_exception_handling
, v_row.sub_upsert
, v_row.sub_trigger_return_null
, v_row.sub_template_table);
END LOOP;
IF v_control_type = 'time' OR (v_control_type = 'id' AND p_epoch <> 'none') THEN
CASE
WHEN p_interval = 'yearly' THEN
v_time_interval := '1 year';
WHEN p_interval = 'quarterly' THEN
v_time_interval := '3 months';
WHEN p_interval = 'monthly' THEN
v_time_interval := '1 month';
WHEN p_interval = 'weekly' THEN
v_time_interval := '1 week';
WHEN p_interval = 'daily' THEN
v_time_interval := '1 day';
WHEN p_interval = 'hourly' THEN
v_time_interval := '1 hour';
WHEN p_interval = 'half-hour' THEN
v_time_interval := '30 mins';
WHEN p_interval = 'quarter-hour' THEN
v_time_interval := '15 mins';
ELSE
IF p_type <> 'native' THEN
-- Reset for use as part_config type value below
p_type = 'time-custom';
END IF;
v_time_interval := p_interval::interval;
IF v_time_interval < '1 second'::interval THEN
RAISE EXCEPTION 'Partitioning interval must be 1 second or greater';
END IF;
END CASE;
-- First partition is either the min premake or p_start_partition
v_start_time := COALESCE(p_start_partition::timestamptz, CURRENT_TIMESTAMP - (v_time_interval * p_premake));
IF v_time_interval >= '1 year' THEN
v_base_timestamp := date_trunc('year', v_start_time);
IF v_time_interval >= '10 years' THEN
v_base_timestamp := date_trunc('decade', v_start_time);
IF v_time_interval >= '100 years' THEN
v_base_timestamp := date_trunc('century', v_start_time);
IF v_time_interval >= '1000 years' THEN
v_base_timestamp := date_trunc('millennium', v_start_time);
END IF; -- 1000
END IF; -- 100
END IF; -- 10
END IF; -- 1
v_datetime_string := 'YYYY';
IF v_time_interval < '1 year' THEN
IF p_interval = 'quarterly' THEN
v_base_timestamp := date_trunc('quarter', v_start_time);
v_datetime_string = 'YYYY"q"Q';
ELSE
v_base_timestamp := date_trunc('month', v_start_time);
v_datetime_string := v_datetime_string || '_MM';
END IF;
IF v_time_interval < '1 month' THEN
IF p_interval = 'weekly' THEN
v_base_timestamp := date_trunc('week', v_start_time);
v_datetime_string := 'IYYY"w"IW';
ELSE
v_base_timestamp := date_trunc('day', v_start_time);
v_datetime_string := v_datetime_string || '_DD';
END IF;
IF v_time_interval < '1 day' THEN
v_base_timestamp := date_trunc('hour', v_start_time);
v_datetime_string := v_datetime_string || '_HH24MI';
IF v_time_interval < '1 minute' THEN
v_base_timestamp := date_trunc('minute', v_start_time);
v_datetime_string := v_datetime_string || 'SS';
END IF; -- minute
END IF; -- day
END IF; -- month
END IF; -- year
v_partition_time_array := array_append(v_partition_time_array, v_base_timestamp);
LOOP
-- If current loop value is less than or equal to the value of the max premake, add time to array.
IF (v_base_timestamp + (v_time_interval * v_count)) < (CURRENT_TIMESTAMP + (v_time_interval * p_premake)) THEN
BEGIN
v_partition_time := (v_base_timestamp + (v_time_interval * v_count))::timestamptz;
v_partition_time_array := array_append(v_partition_time_array, v_partition_time);
EXCEPTION WHEN datetime_field_overflow THEN
RAISE WARNING 'Attempted partition time interval is outside PostgreSQL''s supported time range.
Child partition creation after time % skipped', v_partition_time;
v_step_overflow_id := add_step(v_job_id, 'Attempted partition time interval is outside PostgreSQL''s supported time range.');
PERFORM update_step(v_step_overflow_id, 'CRITICAL', 'Child partition creation after time '||v_partition_time||' skipped');
CONTINUE;
END;
ELSE
EXIT; -- all needed partitions added to array. Exit the loop.
END IF;
v_count := v_count + 1;
END LOOP;
INSERT INTO @[email protected]_config (
parent_table
, partition_type
, partition_interval
, epoch
, control
, premake
, constraint_cols
, datetime_string
, automatic_maintenance
, inherit_fk
, jobmon
, upsert
, trigger_return_null
, template_table)
VALUES (
p_parent_table
, p_type
, v_time_interval
, p_epoch
, p_control
, p_premake
, p_constraint_cols
, v_datetime_string
, p_automatic_maintenance
, p_inherit_fk
, p_jobmon
, p_upsert
, p_trigger_return_null
, v_template_schema||'.'||v_template_tablename);
v_last_partition_created := @[email protected]_partition_time(p_parent_table, v_partition_time_array, false);
IF v_last_partition_created = false THEN
-- This can happen with subpartitioning when future or past partitions prevent child creation because they're out of range of the parent
-- First see if this parent is a subpartition managed by pg_partman
WITH top_oid AS (
SELECT i.inhparent AS top_parent_oid
FROM pg_catalog.pg_inherits i
JOIN pg_catalog.pg_class c ON c.oid = i.inhrelid
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relname = v_parent_tablename::name
AND n.nspname = v_parent_schema::name
) SELECT n.nspname, c.relname
INTO v_top_parent_schema, v_top_parent_table
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
JOIN top_oid t ON c.oid = t.top_parent_oid
JOIN @[email protected]_config p ON p.parent_table = n.nspname||'.'||c.relname;
IF v_top_parent_table IS NOT NULL THEN
-- If so create the lowest possible partition that is within the boundary of the parent
SELECT child_start_time INTO v_parent_partition_timestamp FROM @[email protected]_partition_info(p_parent_table, p_parent_table := v_top_parent_schema||'.'||v_top_parent_table);
IF v_base_timestamp >= v_parent_partition_timestamp THEN
WHILE v_base_timestamp >= v_parent_partition_timestamp LOOP
v_base_timestamp := v_base_timestamp - v_time_interval;
END LOOP;
v_base_timestamp := v_base_timestamp + v_time_interval; -- add one back since while loop set it one lower than is needed
ELSIF v_base_timestamp < v_parent_partition_timestamp THEN
WHILE v_base_timestamp < v_parent_partition_timestamp LOOP
v_base_timestamp := v_base_timestamp + v_time_interval;
END LOOP;
-- Don't need to remove one since new starting time will fit in top parent interval
END IF;
v_partition_time_array := NULL;
v_partition_time_array := array_append(v_partition_time_array, v_base_timestamp);
v_last_partition_created := @[email protected]_partition_time(p_parent_table, v_partition_time_array, false);
ELSE
RAISE WARNING 'No child tables created. Check that all child tables did not already exist and may not have been part of partition set. Given parent has still been configured with pg_partman, but may not have expected children. Please review schema and config to confirm things are ok.';
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', 'Done');
IF v_step_overflow_id IS NOT NULL THEN
PERFORM fail_job(v_job_id);
ELSE
PERFORM close_job(v_job_id);
END IF;
END IF;
EXECUTE format('SELECT set_config(%L, %L, %L)', 'search_path', v_old_search_path, 'false');
RETURN v_success;
END IF;
END IF; -- End v_last_partition IF
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', format('Time partitions premade: %s', p_premake));
END IF;
END IF;
IF v_control_type = 'id' AND p_epoch = 'none' THEN
v_id_interval := p_interval::bigint;
IF p_type <> 'native' AND v_id_interval < 10 THEN
RAISE EXCEPTION 'Interval for serial, non-native partitioning must be greater than or equal to 10';
END IF;
-- Check if parent table is a subpartition of an already existing id partition set managed by pg_partman.
WHILE v_higher_parent_table IS NOT NULL LOOP -- initially set in DECLARE
WITH top_oid AS (
SELECT i.inhparent AS top_parent_oid
FROM pg_catalog.pg_inherits i
JOIN pg_catalog.pg_class c ON c.oid = i.inhrelid
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE n.nspname = v_higher_parent_schema::name
AND c.relname = v_higher_parent_table::name
) SELECT n.nspname, c.relname, p.control
INTO v_higher_parent_schema, v_higher_parent_table, v_higher_parent_control
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
JOIN top_oid t ON c.oid = t.top_parent_oid
JOIN @[email protected]_config p ON p.parent_table = n.nspname||'.'||c.relname;
IF v_higher_parent_table IS NOT NULL THEN
SELECT general_type INTO v_higher_control_type
FROM @[email protected]_control_type(v_higher_parent_schema, v_higher_parent_table, v_higher_parent_control);
IF v_higher_control_type <> 'id' THEN
-- The parent above the p_parent_table parameter is not partitioned by ID
-- so don't check for max values in parents that aren't partitioned by ID.
-- This avoids missing child tables in subpartition sets that have differing ID data
EXIT;
END IF;
-- v_top_parent initially set in DECLARE
v_top_parent_schema := v_higher_parent_schema;
v_top_parent_table := v_higher_parent_table;
END IF;
END LOOP;
-- If custom start partition is set, use that.
-- If custom start is not set and there is already data, start partitioning with the highest current value and ensure it's grabbed from highest top parent table
IF p_start_partition IS NOT NULL THEN
v_max := p_start_partition::bigint;
ELSE
v_sql := format('SELECT COALESCE(max(%I)::bigint, 0) FROM %I.%I LIMIT 1'
, p_control
, v_top_parent_schema
, v_top_parent_table);
EXECUTE v_sql INTO v_max;
END IF;
v_starting_partition_id := v_max - (v_max % v_id_interval);
FOR i IN 0..p_premake LOOP
-- Only make previous partitions if ID value is less than the starting value and positive (and custom start partition wasn't set)
IF p_start_partition IS NULL AND
(v_starting_partition_id - (v_id_interval*i)) > 0 AND
(v_starting_partition_id - (v_id_interval*i)) < v_starting_partition_id
THEN
v_partition_id_array = array_append(v_partition_id_array, (v_starting_partition_id - v_id_interval*i));
END IF;
v_partition_id_array = array_append(v_partition_id_array, (v_id_interval*i) + v_starting_partition_id);
END LOOP;
INSERT INTO @[email protected]_config (
parent_table
, partition_type
, partition_interval
, control
, premake
, constraint_cols
, automatic_maintenance
, inherit_fk
, jobmon
, upsert
, trigger_return_null
, template_table)
VALUES (
p_parent_table
, p_type
, v_id_interval
, p_control
, p_premake
, p_constraint_cols
, p_automatic_maintenance
, p_inherit_fk
, p_jobmon
, p_upsert
, p_trigger_return_null
, v_template_schema||'.'||v_template_tablename);
v_last_partition_created := @[email protected]_partition_id(p_parent_table, v_partition_id_array, false);
IF v_last_partition_created = false THEN
-- This can happen with subpartitioning when future or past partitions prevent child creation because they're out of range of the parent
-- See if it's actually a subpartition of a parent id partition
WITH top_oid AS (
SELECT i.inhparent AS top_parent_oid
FROM pg_catalog.pg_inherits i
JOIN pg_catalog.pg_class c ON c.oid = i.inhrelid
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relname = v_parent_tablename::name
AND n.nspname = v_parent_schema::name
) SELECT n.nspname||'.'||c.relname
INTO v_top_parent_table
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
JOIN top_oid t ON c.oid = t.top_parent_oid
JOIN @[email protected]_config p ON p.parent_table = n.nspname||'.'||c.relname;
IF v_top_parent_table IS NOT NULL THEN
-- Create the lowest possible partition that is within the boundary of the parent
SELECT child_start_id INTO v_parent_partition_id FROM @[email protected]_partition_info(p_parent_table, p_parent_table := v_top_parent_table);
IF v_starting_partition_id >= v_parent_partition_id THEN
WHILE v_starting_partition_id >= v_parent_partition_id LOOP
v_starting_partition_id := v_starting_partition_id - v_id_interval;
END LOOP;
v_starting_partition_id := v_starting_partition_id + v_id_interval; -- add one back since while loop set it one lower than is needed
ELSIF v_starting_partition_id < v_parent_partition_id THEN
WHILE v_starting_partition_id < v_parent_partition_id LOOP
v_starting_partition_id := v_starting_partition_id + v_id_interval;
END LOOP;
-- Don't need to remove one since new starting id will fit in top parent interval
END IF;
v_partition_id_array = NULL;
v_partition_id_array = array_append(v_partition_id_array, v_starting_partition_id);
v_last_partition_created := @[email protected]_partition_id(p_parent_table, v_partition_id_array, false);
ELSE
-- Currently unknown edge case if code gets here
RAISE WARNING 'No child tables created. Check that all child tables did not already exist and may not have been part of partition set. Given parent has still been configured with pg_partman, but may not have expected children. Please review schema and config to confirm things are ok.';
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', 'Done');
IF v_step_overflow_id IS NOT NULL THEN
PERFORM fail_job(v_job_id);
ELSE
PERFORM close_job(v_job_id);
END IF;
END IF;
EXECUTE format('SELECT set_config(%L, %L, %L)', 'search_path', v_old_search_path, 'false');
RETURN v_success;
END IF;
END IF; -- End v_last_partition_created IF
END IF; -- End IF id
IF p_type <> 'native' THEN
IF v_jobmon_schema IS NOT NULL THEN
v_step_id := add_step(v_job_id, 'Creating partition function');
END IF;
IF v_control_type = 'time' OR (v_control_type = 'id' AND p_epoch <> 'none') THEN
PERFORM @[email protected]_function_time(p_parent_table, v_job_id);
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', 'Time function created');
END IF;
ELSIF v_control_type = 'id' THEN
PERFORM @[email protected]_function_id(p_parent_table, v_job_id);
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', 'ID function created');
END IF;
END IF;
IF v_jobmon_schema IS NOT NULL THEN
v_step_id := add_step(v_job_id, 'Creating partition trigger');
END IF;
PERFORM @[email protected]_trigger(p_parent_table);
END IF; -- end native check
IF v_jobmon_schema IS NOT NULL THEN
PERFORM update_step(v_step_id, 'OK', 'Done');
IF v_step_overflow_id IS NOT NULL THEN
PERFORM fail_job(v_job_id);
ELSE
PERFORM close_job(v_job_id);
END IF;
END IF;
EXECUTE format('SELECT set_config(%L, %L, %L)', 'search_path', v_old_search_path, 'false');
v_success := true;
RETURN v_success;
EXCEPTION
WHEN OTHERS THEN
GET STACKED DIAGNOSTICS ex_message = MESSAGE_TEXT,
ex_context = PG_EXCEPTION_CONTEXT,
ex_detail = PG_EXCEPTION_DETAIL,
ex_hint = PG_EXCEPTION_HINT;
IF v_jobmon_schema IS NOT NULL THEN
IF v_job_id IS NULL THEN
EXECUTE format('SELECT %I.add_job(''PARTMAN CREATE PARENT: %s'')', v_jobmon_schema, p_parent_table) INTO v_job_id;
EXECUTE format('SELECT %I.add_step(%s, ''Partition creation for table '||p_parent_table||' failed'')', v_jobmon_schema, v_job_id, p_parent_table) INTO v_step_id;
ELSIF v_step_id IS NULL THEN
EXECUTE format('SELECT %I.add_step(%s, ''EXCEPTION before first step logged'')', v_jobmon_schema, v_job_id) INTO v_step_id;
END IF;
EXECUTE format('SELECT %I.update_step(%s, ''CRITICAL'', %L)', v_jobmon_schema, v_step_id, 'ERROR: '||coalesce(SQLERRM,'unknown'));
EXECUTE format('SELECT %I.fail_job(%s)', v_jobmon_schema, v_job_id);
END IF;
RAISE EXCEPTION '%
CONTEXT: %
DETAIL: %
HINT: %', ex_message, ex_context, ex_detail, ex_hint;
END
$$;
|
-- @testpoint: 插入字符串类型数值
drop table if exists integer05;
create table integer05 (name integer);
insert into integer05 values ('123456');
insert into integer05 values ('99999999');
insert into integer05 values ('-12356');
insert into integer05 values ('-99999999');
select * from integer05;
drop table integer05; |
# rmskAlign.sql was originally generated by the autoSql program, which also
# generated rmskAlign.c and rmskAlign.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#RepeatMasker .align record
CREATE TABLE rmskAlign (
swScore int unsigned not null, # Smith Waterman alignment score
milliDiv int unsigned not null, # Base mismatches in parts per thousand
milliDel int unsigned not null, # Bases deleted in parts per thousand
milliIns int unsigned not null, # Bases inserted in parts per thousand
genoName varchar(255) not null, # Genomic sequence name
genoStart int unsigned not null, # Start in genomic sequence
genoEnd int unsigned not null, # End in genomic sequence
genoLeft int not null, # -#bases after match in genomic sequence
strand char(1) not null, # Relative orientation + or -
repName varchar(255) not null, # Name of repeat
repClass varchar(255) not null, # Class of repeat
repFamily varchar(255) not null, # Family of repeat
repStart int not null, # Start in repeat sequence
repEnd int unsigned not null, # End in repeat sequence
repLeft int not null, # -#bases after match in repeat sequence
id int unsigned not null, # The ID of the hit. Used to link related fragments
alignment longblob not null, # The alignment data stored as a single string
#Indices
PRIMARY KEY(swScore)
);
|
<filename>TCC_SCRIPT.sql
DROP DATABASE IF EXISTS efriends;
CREATE DATABASE efriends;
USE efriends;
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
);
ALTER TABLE ci_sessions ADD PRIMARY KEY (id);
CREATE TABLE Administrador (
idAdministrador INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
Login_Admin VARCHAR(100) UNIQUE NOT NULL,
Senha_Admin VARCHAR(255) NOT NULL,
Nome_Admin VARCHAR(100) NOT NULL,
Telefone_Admin INTEGER NOT NULL,
Email_Admin VARCHAR(30) NOT NULL,
Status_Admin BOOL NOT NULL DEFAULT TRUE,
Data_Cadastro DATETIME NOT NULL,
Pergunta VARCHAR(100) NOT NULL,
Resposta VARCHAR(100) NOT NULL
);
CREATE TABLE Cliente (
idCliente INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
Nome_Cli VARCHAR(100) NOT NULL,
Email_Cli VARCHAR (50) NOT NULL,
Telefone_Cli VARCHAR(20) NOT NULL,
CPF_Cli VARCHAR(15) UNIQUE NOT NULL,
Newsletter BOOL NOT NULL,
Login_Cli VARCHAR(100) UNIQUE NOT NULL,
Senha_Cli VARCHAR(100) NOT NULL,
Status_Cli BOOL NOT NULL DEFAULT TRUE,
Data_Cadastro DATETIME NOT NULL,
Pergunta VARCHAR(100) NOT NULL,
Resposta VARCHAR(100) NOT NULL,
Token VARCHAR(255)
);
CREATE TABLE Ebook (
idEbook INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
Capa VARCHAR (255) NOT NULL,
Titulo_Ebook VARCHAR (100) NOT NULL,
Descricao_Ebook TINYTEXT NOT NULL,
Autor_Ebook VARCHAR(100) NOT NULL,
Preco_Ebook DECIMAL(10,2),
Categoria VARCHAR (100) NOT NULL,
Status_Ebook BOOL NOT NULL DEFAULT TRUE,
Data_Cadastro DATETIME NOT NULL,
Obra VARCHAR (255) NOT NULL
);
CREATE TABLE Log_Administrador_Cliente (
Administrador_idAdministrador INTEGER NOT NULL,
Cliente_idCliente INTEGER NOT NULL,
Acao_Admin_Cli VARCHAR (50) NOT NULL,
Data_Acao DATETIME NOT NULL,
FOREIGN KEY (Administrador_idAdministrador) REFERENCES Administrador(idAdministrador),
FOREIGN KEY (Cliente_idCliente) REFERENCES Cliente(idCliente)
ON DELETE CASCADE
ON UPDATE CASCADE
);
CREATE TABLE Log_Administrador_Ebook (
Administrador_idAdministrador INTEGER NOT NULL,
Ebook_idEbook INTEGER NOT NULL,
Acao_Admin_Ebook VARCHAR(50) NOT NULL,
Data_Acao DATETIME NOT NULL,
FOREIGN KEY (Administrador_idAdministrador) REFERENCES Administrador(idAdministrador),
FOREIGN KEY (Ebook_idEbook) REFERENCES Ebook(idEbook)
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE Log_Cliente_Ebook (
Cliente_idCliente INTEGER NOT NULL,
Ebook_idEbook INTEGER NOT NULL,
Status_Cli_Ebook VARCHAR(15) NOT NULL,
Data_Acao DATETIME NOT NULL,
FOREIGN KEY (Ebook_idEbook) REFERENCES Ebook(idEbook),
FOREIGN KEY (Cliente_idCliente) REFERENCES Cliente(idCliente)
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE Historico_Cliente (
Cliente_idCliente INTEGER NOT NULL,
Acao_Realizada VARCHAR(50) NOT NULL,
Campo_Alterado VARCHAR (100) NOT NULL,
Valor_Antigo VARCHAR (255) NOT NULL,
Valor_Novo VARCHAR (255) NOT NULL,
Data_Acao DATETIME NOT NULL,
FOREIGN KEY (Cliente_idCliente) REFERENCES Cliente(idCliente)
ON UPDATE CASCADE
ON DELETE CASCADE
);
#trigger que faz a auditoria de alterações de dados do usuário na tabela HISTORICO_CLIENTE e LOG_ADMINISTRADOR_CLIENTE
DELIMITER $$
CREATE TRIGGER tg_audita_cli AFTER UPDATE
ON Cliente
FOR EACH ROW
BEGIN
IF (New.Nome_Cli <> Old.Nome_Cli) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO DE NOME', 'Nome_Cli', OLD.Nome_Cli, NEW.Nome_Cli, NOW());
END IF;
IF (New.Email_Cli <> Old.Email_Cli) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO DE EMAIL', 'Email_Cli', OLD.Email_Cli, NEW.Email_Cli, NOW());
END IF;
IF (New.Telefone_Cli <> Old.Telefone_Cli) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO DE TELEFONE', 'Telefone_Cli', OLD.Telefone_Cli, NEW.Telefone_Cli, NOW());
END IF;
IF (New.Newsletter <> Old.Newsletter) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO NA NEWSLETTER', 'Newsletter', OLD.Newsletter, NEW.Newsletter, NOW());
END IF;
IF (New.Senha_Cli <> Old.Senha_Cli) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO NA SENHA', 'Senha_Cli', OLD.Senha_Cli, NEW.Senha_Cli, NOW());
END IF;
IF (New.Token <> Old.Token) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO NO TOKEN PAGSEGURO', 'Token', OLD.Token, NEW.Token, NOW());
END IF;
IF (New.Pergunta <> Old.Pergunta ) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO NA PERGUNTA DE SEGURANÇA', 'Pergunta de segurança', OLD.Pergunta , NEW.Pergunta , NOW());
END IF;
IF (New.Resposta <> Old.Resposta) THEN
INSERT INTO HISTORICO_CLIENTE VALUES
(NEW.idCliente, 'ALTERAÇÃO NA RESPOSTA DE SEGURANÇA', 'Resposta de segurança', OLD.Resposta, NEW.Resposta, NOW());
END IF;
END $$
DELIMITER ;
|
<reponame>viacheslave/algo<filename>leetcode-subscription/sql/P1777.sql
/*
https://leetcode.com/problems/products-price-for-each-store/
https://leetcode.com/submissions/detail/462263119/
Amazon
*/
SELECT
*
FROM
(
SELECT
product_id,
store,
price
FROM Products
) s
PIVOT
(
SUM(price)
FOR store IN (
[store1],
[store2],
[store3])
) AS PivotTable; |
<filename>db/kreto.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 06, 2021 at 04:32 AM
-- 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: `kreto`
--
-- --------------------------------------------------------
--
-- Table structure for table `pemesanan`
--
CREATE TABLE `pemesanan` (
`username` varchar(20) NOT NULL,
`origin` varchar(20) NOT NULL,
`destination` varchar(20) NOT NULL,
`seat` int(2) NOT NULL,
`datestart` varchar(10) NOT NULL DEFAULT current_timestamp(),
`dateend` varchar(10) NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pemesanan`
--
INSERT INTO `pemesanan` (`username`, `origin`, `destination`, `seat`, `datestart`, `dateend`) VALUES
('donny', 'Lombok', 'Lombok', 4, '24-12-2020', '01-01-2021'),
('takahiro', 'Jakarta', 'Jakarta', 1, '08-09-2020', '27-12-2020');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`username` varchar(12) NOT NULL,
`password` varchar(10) NOT NULL,
`nama` varchar(50) NOT NULL,
`level` varchar(5) NOT NULL DEFAULT 'user',
`status` varchar(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`username`, `password`, `nama`, `level`, `status`) VALUES
('admin', 'admin', 'Administrators ', 'admin', '0'),
('arthur', 'arthur', '<NAME>', 'user', '2'),
('donny', 'donny', '<NAME>', 'user', '1'),
('takahiro', 'taka', '<NAME>', 'user', '1');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `pemesanan`
--
ALTER TABLE `pemesanan`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`username`);
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>sql/watch.sql<gh_stars>0
CREATE TABLE IF NOT EXISTS /*_*/cs_watchlist
(
cst_wl_page_id int(10) unsigned NOT NULL,
cst_wl_user_id int(10) unsigned NOT NULL,
INDEX (cst_wl_page_id, cst_wl_user_id)
);
|
/* Create table that identifies corticosteroids with no comorbidity */
CREATE VOLATILE TABLE cortsteroid_no_comorb AS
(
SELECT ptid, rxdate, day_supply_criteria, flare_cat
FROM
(
SELECT ptid, rxdate, day_supply_criteria, flare_cat,
CAST(rxdate AS DATE FORMAT 'YYYY-MM-DD') AS format_date,
-- lag function to find last date
LAG(format_date) OVER (PARTITION BY ptid ORDER BY rxdate) AS lag_date,
-- calculate difference since last date; first inpatient observations are NULL
CASE WHEN lag_date IS NOT NULL
THEN rxdate - CAST(lag_date AS DATE FORMAT 'YYYY-MM-DD')
ELSE NULL END date_diff
FROM
(
SELECT b.ptid, b.rxdate, b.day_supply_criteria, b.flare_cat
FROM
(
-- Find comorbidity encounters in close proximity to the outpatient steroid
SELECT ptid, encid, diag_date, diagnosis_cd, diagnosis_cd_type,
CASE WHEN (
-- COPD
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '491%') OR
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '492%') OR
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '496%') OR
-- Check ICD10 definition with Diana
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J44%') OR
-- Asthma
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '493%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J45%') OR
-- RA
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '714%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'M05%') OR
-- lupus
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '710%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'L93%') OR
-- Dermatitis
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '69%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'L%') OR
-- Bronchitis
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '490%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J20%') OR
-- Sinusitis
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '461%') OR
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '473%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J01%') OR
-- Rhinitis
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '472%') OR
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '477%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J30%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'J31%') OR
-- Polymyalgia rheumatica
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '725%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'M353') OR
-- Cluster headaches
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '339%') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'G440%') OR
-- autoimmune hepatitis
(diagnosis_cd_type = 'ICD9' AND diagnosis_cd LIKE '57142') OR
(diagnosis_cd_type = 'ICD10' AND diagnosis_cd LIKE 'K754')
)
THEN 1 ELSE 0 END comorbid_flag
FROM RWD_VDM_OPTUM_EHRIBD.IBD_DIAGNOSIS
WHERE comorbid_flag = 1 AND encid IS NOT NULL
AND batch_title = 'OPTUM EHR IBD 2019 Apr'
) AS a
-- keep only outpatient steroids without a comorbidity flag
RIGHT JOIN outpatient_oral_cortsteroid AS b
ON (a.ptid = b.ptid) AND
(b.rxdate >= a.diag_date - 7 AND b.rxdate <= a.diag_date)
WHERE comorbid_flag IS NULL
) AS temp
) AS temp2
-- exclude steroid sequences within 90 days of each other
WHERE (date_diff >= 90 OR date_diff IS NULL)
)
WITH DATA
ON COMMIT PRESERVE ROWS; |
<gh_stars>0
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DROP FUNCTION [dbo].[normalizeGuid]
GO
CREATE FUNCTION [dbo].[normalizeGuid] (
@input VARCHAR(38)
)
RETURNS UNIQUEIDENTIFIER
BEGIN
SET @input = REPLACE(REPLACE(REPLACE(@input, '-', ''),'{',''), '}', '');
RETURN CAST(
SUBSTRING(@input, 1, 8) + '-' + SUBSTRING(@input, 9, 4) + '-' + SUBSTRING(@input, 13, 4) + '-' +
SUBSTRING(@input, 17, 4) + '-' + SUBSTRING(@input, 21, 12)
AS UNIQUEIDENTIFIER);
END
GO
DROP FUNCTION [dbo].[splitString]
GO
CREATE FUNCTION [dbo].[splitString](
@input VARCHAR(max),
@Splitter VARCHAR(99)
)
RETURNS TABLE
AS
RETURN
WITH tmp (DataItem, List , FIRST) AS
( SELECT @input ,@input, 1 --first item ignored, set to get the type right
UNION ALL
SELECT LEFT(List, CHARINDEX(@Splitter,List+@Splitter)-1),
STUFF(List, 1, CHARINDEX(@Splitter,List+@Splitter), ''),
0
FROM tmp
WHERE List <> ''
) SELECT DataItem
FROM tmp
WHERE FIRST=0
AND DataItem <> ''
GO
DROP FUNCTION [dbo].[sitecore_fn_GetFieldValue]
GO
CREATE FUNCTION [dbo].[sitecore_fn_GetFieldValue](
@ID UNIQUEIDENTIFIER,
@FN VARCHAR(250)
)
RETURNS VARCHAR(4000)
BEGIN
RETURN(
SELECT TOP 1 CASE WHEN f.Value IS NULL THEN '' ELSE f.Value END
FROM [dbo].[fields] f WITH(NOLOCK)
JOIN [dbo].[Items] fi WITH(NOLOCK) ON fi.Id = f.FieldId AND fi.Name = @FN
WHERE f.ItemId = @ID
)
END
GO
DROP PROCEDURE [dbo].[SitecoreGetMediaByPath]
GO
CREATE PROCEDURE [dbo].[SitecoreGetMediaByPath](
@input VARCHAR(4000),
@maxsize INT = 0
)
AS
BEGIN
DECLARE @parent UNIQUEIDENTIFIER = '3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1';
DECLARE @target UNIQUEIDENTIFIER;
DECLARE @tbl TABLE (idx int IDENTITY(0,1), name VARCHAR(4000), id UNIQUEIDENTIFIER);
DECLARE @ext VARCHAR(4000);
DECLARE @path VARCHAR(4000);
DECLARE @idx int = 0;
DECLARE @extlen INT = CHARINDEX('.', REVERSE(@input));
SET @ext = SUBSTRING(@input, ((LEN(@input) - (@extlen - 2))), (@extlen));
SET @path = SUBSTRING(@input, 0, (LEN(@input) - (@extlen - 1)));
INSERT INTO @tbl (name)
SELECT DataItem FROM dbo.splitString(@path, '/');
DECLARE @segcount int = (SELECT COUNT(*) FROM @tbl);
WHILE (@idx < @segcount )
BEGIN
IF((@idx + 1) < @segcount)
BEGIN
DECLARE @tmpparent UNIQUEIDENTIFIER = @parent;
SET @parent = (SELECT TOP 1 ID FROM Items WHERE Name = (SELECT name FROM @tbl WHERE idx = @idx) AND ParentID = @parent);
IF(@parent IS NULL)
BEGIN
SET @parent = (SELECT TOP 1 ID FROM Items WHERE Name = (SELECT REPLACE(name, '-', ' ') FROM @tbl WHERE idx = @idx) AND ParentID = @tmpparent);
END
IF(@parent IS NULL)
BEGIN
SET @parent = (SELECT TOP 1 ID FROM Items WHERE Name = (SELECT REPLACE(name, ' ', '-') FROM @tbl WHERE idx = @idx) AND ParentID = @tmpparent);
END
END
ELSE
BEGIN
SET @target = ( SELECT TOP 1 i.ID
FROM Items i
JOIN Fields f on f.ItemId = i.ID AND f.FIELDID = 'C06867FE-9A43-4C7D-B739-48780492D06F' AND f.Value = @ext
WHERE i.Name = (SELECT name FROM @tbl WHERE idx = @idx)
AND i.ParentId = @parent);
IF(@target IS NULL)
BEGIN
SET @target = ( SELECT TOP 1 i.ID
FROM Items i
JOIN Fields f on f.ItemId = i.ID AND f.FIELDID = 'C06867FE-9A43-4C7D-B739-48780492D06F' AND f.Value = @ext
WHERE i.Name = (SELECT REPLACE(name, '-', ' ') FROM @tbl WHERE idx = @idx)
AND i.ParentId = @parent);
END
IF(@target IS NULL)
BEGIN
SET @target = ( SELECT TOP 1 i.ID
FROM Items i
JOIN Fields f on f.ItemId = i.ID AND f.FIELDID = 'C06867FE-9A43-4C7D-B739-48780492D06F' AND f.Value = @ext
WHERE i.Name = (SELECT REPLACE(name, ' ', '-') FROM @tbl WHERE idx = @idx)
AND i.ParentId = @parent);
END
END
SET @idx = @idx + 1;
END
SELECT [index],
dbo.sitecore_fn_GetFieldValue(@target, 'Mime Type') as MimeType,
dbo.sitecore_fn_GetFieldValue(@target, 'Size') as Size,
dbo.sitecore_fn_GetFieldValue(@target, '__Updated') as Updated,
CASE WHEN @maxsize > 0
THEN CASE WHEN (CAST(dbo.sitecore_fn_GetFieldValue(@target, 'Size') AS INT) * 2) >= @maxsize
THEN NULL
ELSE Data
END
ELSE Data
END AS [Data]
FROM Blobs
WHERE BlobId = dbo.sitecore_fn_GetFieldValue(@target, 'blob')
ORDER BY [index] ASC;
END
GO
DROP PROCEDURE [dbo].[SitecoreGetMediaByID]
GO
CREATE PROCEDURE [dbo].[SitecoreGetMediaByID] (
@input VARCHAR(38),
@maxsize INT = 0
)
AS
BEGIN
DECLARE @target UNIQUEIDENTIFIER = [dbo].[normalizeGuid](@input);
SELECT [index],
dbo.sitecore_fn_GetFieldValue(@target, 'Mime Type') as MimeType,
dbo.sitecore_fn_GetFieldValue(@target, 'Size') as Size,
dbo.sitecore_fn_GetFieldValue(@target, '__Updated') as Updated,
CASE WHEN @maxsize > 0
THEN CASE WHEN (CAST(dbo.sitecore_fn_GetFieldValue(@target, 'Size') AS INT) * 2) >= @maxsize
THEN NULL
ELSE Data
END
ELSE Data
END AS [Data]
FROM Blobs
WHERE [BlobId] = dbo.sitecore_fn_GetFieldValue(@target, 'blob')
ORDER BY [index] ASC;
END
GO |
<filename>SQLQuery6.sql
Declare @CollID1 char(8)
Set @CollID1 = 'SPX000AA'
Declare @Modelo int = 16777281
Declare @Equipo int
DECLARE @MaxRownum INT
DECLARE @Iter INT
SELECT
RowNum = ROW_NUMBER() OVER(ORDER BY sys.ResourceID),sys.ResourceID, sys.Netbios_Name0,fcm.CollectionID
INTO #Equipos
FROM v_R_System_Valid as sys
JOIN v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID
WHERE fcm.CollectionID = @CollID1
SET @MaxRownum = (SELECT MAX(RowNum) FROM #Equipos)
SET @Iter = (SELECT MIN(RowNum) FROM #Equipos)
SET @Equipo = (select sys.ResourceID from #Equipos as sys where sys.RowNum = @Iter)
select sys.Netbios_Name0 as NombreEquipo, prg.DisplayName0 as Nombre_Programa, prg.ProdID0 as Programa_ID, prg.Version0 as Version_Modelo, versions.v as Version_Instalada
INTO #Nuevo
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
full outer join
(
select sys.ResourceID, prg.DisplayName0, prg.ProdID0, prg.Version0 as v, diferences.Version0 as vm
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
left join
(
select * from
(select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Modelo) as query2
Except
select * from
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Equipo ) as query1
UNION
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
join
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID = @Equipo
) as similar on prg.ProdID0 = similar.ProdID0
where sys.ResourceID = @Modelo and similar.Version0 = prg.Version0
) as diferences on diferences.ProdID0= prg.ProdID0
where sys.ResourceID= @Equipo
) as versions on versions.ProdID0= prg.ProdID0
where sys.ResourceID=@Modelo and (prg.Version0 != versions.v or (versions.v IS NULL and prg.Version0 IS NOT NULL))
UPDATE #Nuevo
SET NombreEquipo = (select sys.Netbios_Name0 from v_R_System_Valid as sys where sys.ResourceID=@Equipo )
WHERE NombreEquipo = (select sys.Netbios_Name0 from v_R_System_Valid as sys where sys.ResourceID=@Modelo)
select sys.Netbios_Name0 as NombreEquipo, prg.DisplayName0 as Nombre_Programa, prg.ProdID0 as Programa_ID, versions.v as Version_Modelo, prg.Version0 as Version_Instalada
INTO #Temp1
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
full outer join
(
select sys.ResourceID, prg.DisplayName0, prg.ProdID0, prg.Version0 as v, diferences.Version0 as vm
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
left join
(
select * from
(select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Equipo) as query2
Except
select * from
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Modelo ) as query1
UNION
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
join
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID = @Modelo
) as similar on prg.ProdID0 = similar.ProdID0
where sys.ResourceID = @Equipo and similar.Version0 = prg.Version0
) as diferences on diferences.ProdID0= prg.ProdID0
where sys.ResourceID= @Modelo
) as versions on versions.ProdID0= prg.ProdID0
where sys.ResourceID=@Equipo and (prg.Version0 != versions.v or (versions.v IS NULL and prg.Version0 IS NOT NULL))
INSERT INTO #Nuevo
SELECT * FROM #Temp1
drop table #temp1
SET @Iter = @Iter + 1
SET @Equipo = (select sys.ResourceID from #Equipos as sys where sys.RowNum = @Iter)
while @Iter < @MaxRownum + 1
BEGIN
select sys.Netbios_Name0 as NombreEquipo, prg.DisplayName0 as Nombre_Programa, prg.ProdID0 as Programa_ID, prg.Version0 as Version_Modelo, versions.v as Version_Instalada
INTO #Temp
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
full outer join
(
select sys.ResourceID, prg.DisplayName0, prg.ProdID0, prg.Version0 as v, diferences.Version0 as vm
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
left join
(
select * from
(select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Modelo) as query2
Except
select * from
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Equipo ) as query1
UNION
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
join
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID = @Equipo
) as similar on prg.ProdID0 = similar.ProdID0
where sys.ResourceID = @Modelo and similar.Version0 = prg.Version0
) as diferences on diferences.ProdID0= prg.ProdID0
where sys.ResourceID= @Equipo
) as versions on versions.ProdID0= prg.ProdID0
where sys.ResourceID=@Modelo and (prg.Version0 != versions.v or (versions.v IS NULL and prg.Version0 IS NOT NULL))
UPDATE #Temp
SET #Temp.NombreEquipo = (select sys.Netbios_Name0 from v_R_System_Valid as sys where sys.ResourceID=@Equipo )
WHERE #Temp.NombreEquipo = (select sys.Netbios_Name0 from v_R_System_Valid as sys where sys.ResourceID=@Modelo)
INSERT INTO #Nuevo
SELECT * FROM #Temp
drop table #temp
select sys.Netbios_Name0 as NombreEquipo, prg.DisplayName0 as Nombre_Programa, prg.ProdID0 as Programa_ID, versions.v as Version_Modelo, prg.Version0 as Version_Instalada
INTO #Temp2
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
full outer join
(
select sys.ResourceID, prg.DisplayName0, prg.ProdID0, prg.Version0 as v, diferences.Version0 as vm
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
left join
(
select * from
(select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Equipo) as query2
Except
select * from
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID= @Modelo ) as query1
UNION
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
join
(
select prg.DisplayName0, prg.ProdID0, prg.Version0
from v_R_System_Valid as sys join v_GS_ADD_REMOVE_PROGRAMS as prg on sys.ResourceID=prg.ResourceID
where sys.ResourceID = @Modelo
) as similar on prg.ProdID0 = similar.ProdID0
where sys.ResourceID = @Equipo and similar.Version0 = prg.Version0
) as diferences on diferences.ProdID0= prg.ProdID0
where sys.ResourceID= @Modelo
) as versions on versions.ProdID0= prg.ProdID0
where sys.ResourceID=@Equipo and (prg.Version0 != versions.v or (versions.v IS NULL and prg.Version0 IS NOT NULL))
INSERT INTO #Nuevo
SELECT * FROM #Temp2
drop table #temp2
SET @Iter = @Iter + 1
SET @Equipo = (select sys.ResourceID from #Equipos as sys where sys.RowNum = @Iter)
END;
select DISTINCT * from #Nuevo
order by Nombre_Programa
drop table #Nuevo
drop table #Equipos |
CREATE TABLE `{{table}}` (
`event_id` varchar(40) NOT NULL,
`member_id` int(10) UNSIGNED NOT NULL,
`rsvp` int(10) UNSIGNED NOT NULL DEFAULT '0',
`waiting` int(10) UNSIGNED NOT NULL DEFAULT '0',
`modtime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`comment` varchar(60) NOT NULL DEFAULT '',
`email_sent` timestamp NULL DEFAULT NULL
) ENGINE={{engine}} {{charset}};
ALTER TABLE `{{table}}`
ADD PRIMARY KEY (`event_id`,`member_id`);
|
SET ECHO off
REM NAME: TFSODEP.SQL
REM USAGE:"@path/tfsodep"
REM ------------------------------------------------------------------------
REM REQUIREMENTS:
REM SELECT on SYS.OBJ$, SYS.USER$
REM ------------------------------------------------------------------------
REM PURPOSE:
REM Tries to determine what objects an objects depends on and create
REM an immediate dependency chart.
REM
REM Notes:
REM
REM Object 'Dropped?' implies an object we depend on has been
REM dropped. We cannot tell what was dropped.
REM
REM Type '*Not Exist*' implies we rely on such a named object
REM NOT existing. If one comes into existance we need to
REM recompile. The TIMESTAMP for 'Not Exists' type
REM objects is set to Oracles END-OF-TIME.
REM
REM Timestamp -SAME- shows timestamp on object looks fine.
REM NOTE that for '*Not Exist*' this can't give a true
REM indication.
REM *NEWER* Named object is newer than the last recompile
REM of this object.
REM *OLDER* Usually means an item that did not exist has
REM been created thus meaning we need a recompile.
REM ------------------------------------------------------------------------
REM EXAMPLE:
REM Enter OWNER pattern: scott
REM Enter OBJECT NAME pattern: s_i%
REM
REM "Objects matching scott.s_i%"
REM "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REM
REM Obj# Object Type Status
REM ------ ---------------------------------- ----------- -------
REM 9473 SCOTT.S_IMAGE TABLE VALID
REM 2636 SCOTT.S_IMAGE_ID SEQUENCE VALID
REM 9474 SCOTT.S_IMAGE_ID_PK INDEX VALID
REM 9475 SCOTT.S_INVENTORY TABLE VALID
REM 9476 SCOTT.S_INVENTORY_PRODUCT_ID_PK INDEX VALID
REM
REM Enter Object ID required: 9475
REM
REM
REM "Object 9475 is:"
REM "~~~~~~~~~~~~~~~~~~~"
REM
REM Obj# Object Type Status
REM ------ ---------------------------------- ----------- -------
REM S-Tim
REM --------------------
REM 9475 SCOTT.S_INVENTORY TABLEVALID
REM 25-JUN-1996 09:12:09
REM
REM
REM "Depends on:"
REM "~~~~~~~~~~~"
REM
REM ------------------------------------------------------------------------
REM Main text of script follows:
set feedback off
set ver off
set pages 10000
column Owner format "A10"
column Obj# format "99999"
column Object format "A42"
rem
ACCEPT OWN CHAR PROMPT "Enter OWNER pattern: "
ACCEPT NAM CHAR PROMPT "Enter OBJECT NAME pattern: "
prompt
prompt "Objects matching &&OWN..&&NAM"
prompt "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
select o.obj# "Obj#",
decode(o.linkname, null,
u.name||'.'||o.name,
o.remoteowner||'.'||o.name||'@'||o.linkname) "Object",
decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE',
7, 'PROCEDURE', 8, 'FUNCTION', 9, 'PACKAGE',
10, '*Not Exist*',
11, 'PKG BODY', 12, 'TRIGGER', 'UNDEFINED') "Type",
decode(o.status,0,'N/A',1,'VALID', 'INVALID') "Status"
from sys.obj$ o, sys.user$ u
where owner#=user#
and u.name like upper('&&OWN') and o.name like upper('&&NAM')
;
prompt
ACCEPT OBJID CHAR PROMPT "Enter Object ID required: "
prompt
prompt
prompt "Object &&OBJID is:"
prompt "~~~~~~~~~~~~~~~~~~~"
select o.obj# "Obj#",
decode(o.linkname, null,
u.name||'.'||o.name,
o.remoteowner||'.'||o.name||'@'||o.linkname) "Object",
decode(o.type, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE',
7, 'PROCEDURE', 8, 'FUNCTION', 9, 'PACKAGE',
10, '*Not Exist*',
11, 'PKG BODY', 12, 'TRIGGER', 'UNDEFINED') "Type",
decode(o.status,0,'N/A',1,'VALID', 'INVALID') "Status",
substr(to_char(stime,'DD-MON-YYYY HH24:MI:SS'),1,20) "S-Time"
from sys.obj$ o, sys.user$ u
where owner#=user# and o.obj#='&&OBJID'
;
prompt
prompt "Depends on:"
prompt "~~~~~~~~~~~"
select o.obj# "Obj#",
decode(o.linkname, null,
nvl(u.name,'Unknown')||'.'||nvl(o.name,'Dropped?'),
o.remoteowner||'.'||nvl(o.name,'Dropped?')||'@'||o.linkname) "Object",
decode(o.type, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER',
4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE',
7, 'PROCEDURE', 8, 'FUNCTION', 9, 'PACKAGE',
10, '*Not Exist*',
11, 'PKG BODY', 12, 'TRIGGER', 'UNDEFINED') "Type",
decode(sign(stime-P_TIMESTAMP),
1,'*NEWER*',-1,'*?OLDER?*',null,'-','-SAME-')
"TimeStamp",
decode(o.status,0,'N/A',1,'VALID','INVALID') "Status"
from sys.dependency$ d, sys.obj$ o, sys.user$ u
where P_OBJ#=obj#(+) and o.owner#=u.user#(+) and D_OBJ#='&&OBJID'
;
|
<gh_stars>1-10
--
-- Table structure for table `{{TABLEKEY}}_category`
--
CREATE TABLE `{{TABLEKEY}}_category` (
`id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`slug` varchar(200) NOT NULL,
`description` text
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `{{TABLEKEY}}_{{MODELREFERENCE}}`
--
CREATE TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}` (
`id` int(11) NOT NULL,
`insertion_date` datetime NOT NULL,
`last_edit_date` datetime NOT NULL,
`date` date NOT NULL,
`name` varchar(200) NOT NULL,
`slug` varchar(200) NOT NULL,
`description` text,
`tags` varchar(255) DEFAULT NULL,
`published` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `{{TABLEKEY}}_{{MODELREFERENCE}}_category`
--
CREATE TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}_category` (
`id` int(11) NOT NULL,
`{{MODELREFERENCE}}_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `{{TABLEKEY}}_opt`
--
CREATE TABLE `{{TABLEKEY}}_opt` (
`id` int(11) NOT NULL,
`instance` int(11) NOT NULL,
`items_for_page` smallint(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `{{TABLEKEY}}_category`
--
ALTER TABLE `{{TABLEKEY}}_category`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `slug` (`slug`);
--
-- Indexes for table `{{TABLEKEY}}_{{MODELREFERENCE}}`
--
ALTER TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `{{TABLEKEY}}_{{MODELREFERENCE}}_category`
--
ALTER TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}_category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `{{TABLEKEY}}_opt`
--
ALTER TABLE `{{TABLEKEY}}_opt`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `{{TABLEKEY}}_category`
--
ALTER TABLE `{{TABLEKEY}}_category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `{{TABLEKEY}}_{{MODELREFERENCE}}`
--
ALTER TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `{{TABLEKEY}}_{{MODELREFERENCE}}_category`
--
ALTER TABLE `{{TABLEKEY}}_{{MODELREFERENCE}}_category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `{{TABLEKEY}}_opt`
--
ALTER TABLE `{{TABLEKEY}}_opt`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
-- --------------------------------------------------------
INSERT INTO `auth_permission` (`class`, `code`, `label`, `description`, `admin`) VALUES
('{{TABLEKEY}}', 'can_admin', 'Amministrazione modulo', 'Amministrazione completa del modulo', 1);
|
USE master
GO
IF EXISTS (SELECT * FROM sysdatabases WHERE name = 'NewAgeCorp')
DROP DATABASE NewAgeCorp
GO
CREATE DATABASE NewAgeCorp
GO
USE NewAgeCorp
GO
CREATE TABLE Employees
(
eid char(4) PRIMARY KEY,
ename varchar(100) NOT NULL,
designation varchar(50) NOT NULL,
street varchar(50) NOT NULL,
apartment varchar(50) NOT NULL,
city varchar(50) NOT NULL,
state varchar(50) NOT NULL,
zipcode varchar(50) NOT NULL,
dateofbirth datetime NOT NULL,
department varchar(50) NOT NULL
)
GO
CREATE PROCEDURE getEmployeesList
AS
BEGIN
SELECT 'EID'=eid, 'NAME'=ename, 'DESIGNATION'=designation,
'STREET'=street, 'APARTMENT'=apartment, 'CITY'=city,
'STATE'=state, 'ZIPCODE'=zipcode, 'DATEOFBIRTH'=convert(varchar,dateofbirth,101),
'DEPARTMENT'=department FROM Employees EMPLOYEE FOR XML AUTO, ELEMENTS
END
GO
CREATE PROCEDURE addEmployee @eid char(4), @ename varchar(100), @designation varchar(50),
@street varchar(50), @apartment varchar(50), @city varchar(50), @state varchar(50),
@zipcode varchar(50), @dateofbirth datetime, @department varchar(50)
AS
BEGIN
INSERT INTO Employees VALUES
(@eid, @ename, @designation, @street, @apartment, @city, @state, @zipcode, @dateofbirth, @department)
END
GO
exec addEmployee 'E101', '<NAME>', 'Manager', 'Penland Pkwy', '3101', 'Lake Havasu', 'California', '84652', '11/02/1981', 'Sales'
exec addEmployee 'E103', '<NAME>', 'Manager', 'W 5th Ave', '320', 'Phoenix', 'Utah', '23139', '09/03/1982', 'Sales'
exec addEmployee 'E104', '<NAME>', 'Coder', '<NAME>', '400', 'West Valley', 'Utah', '01516', '01/01/1983', 'IT'
exec addEmployee 'E111', '<NAME>', 'Designer', 'E Apache Trl Ste 108', '10633', 'West Valley', 'Arizona', '01549', '11/11/1982', 'Sales'
exec addEmployee 'E110', '<NAME>', 'Coder', 'W Apache Trl Ste 109', '183', 'San Diego', 'California', '04521', '12/06/1978', 'IT'
exec addEmployee 'E107', '<NAME>', 'Designer', 'N McQueen Rd Apt F1', '598', '<NAME>', 'Arizona', '04517', '07/03/1946', 'Marketing'
exec addEmployee 'E121', '<NAME>', 'Coder', '<NAME>', '835', 'West Valley', 'Ohio', '99845', '04/02/1990', 'Marketing'
GO |
----Create Database----
DROP DATABASE IF EXISTS employee_db;
CREATE DATABASE employee_db;
USE employee_db;
---Create Department Table----
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30)
);
----Create Role Table----
CREATE TABLE role (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(30),
salary DECIMAL,
department_id INT
);
----Create Employee Table----
CREATE TABLE employee (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30),
lastname VARCHAR(30),
role_id INT,
manager_id INT
);
----Employee Seeding----
INSERT INTO employee (firstname, lastname, role_id, manager_id)
VALUES
("Alice", "Park", 5, 5),
("Lillie", "Jira", 3, 4),
("Yimmy", "Kong", 4, 3),
("Jayda", "Muller", 2, 2),
("Jesse", "Wells", 1, 1),
----Employee Role Seeding----
INSERT INTO roles (title, salary, department_id)
VALUES
("Engineer", 150000, 1);
('Software Engineer', 120000, 1),
('Accountant', 75000, 2),
('Marketing Coordindator', 82000, 3),
('Operations Manager', 90000, 4);
---- Department Seeding----
INSERT INTO department (names)
VALUES
("Engineering & IT"),
("Finance & Accounting"),
("Sales & Marketing"),
("Operations"),
|
<gh_stars>1-10
SET VERIFY OFF;
--CREATE TABLESPACE "TESTONE_BIPLATFORM" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_biplatform.dbf' SIZE 64M REUSE AUTOEXTEND ON NEXT 16M MAXSIZE 1024M ;
--CREATE TEMPORARY TABLESPACE "TESTONE_IAS_TEMP" EXTENT MANAGEMENT LOCAL TEMPFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_iastemp.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED ;
--CREATE TABLESPACE "TESTONE_STB" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_svctbl.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED ;
--CREATE TABLESPACE "TESTONE_WLS" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_wlsservices.dbf' SIZE 60M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED ;
--CREATE TABLESPACE "TESTONE_IAS_OPSS" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_ias_opss.dbf' SIZE 60M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED ;
--CREATE TABLESPACE "TESTONE_IAU" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_iau.dbf' SIZE 60M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED ;
--CREATE TABLESPACE "TESTONE_MDS" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_mds.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE 1000M ;
--CREATE TABLESPACE "TESTONE_IAS_UMS" EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE/TESTONE_UMS.dbf' SIZE 100M REUSE AUTOEXTEND ON NEXT 30M MAXSIZE UNLIMITED ;
---------------------------------------------------------
---------- MDS(Metadata Services) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='MDS';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1)
VALUES ('MDS', 'Metadata Services', 'TESTONE', 'MDS', 'MDS', 'TESTONE_MDS', '172.16.31.10.0', 'LOADING', '', 8192);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_MDS IDENTIFIED BY "&SCHEMA_PASSWORD" DEFAULT TABLESPACE TESTONE_MDS TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT connect TO TESTONE_MDS
/
GRANT create type TO TESTONE_MDS
/
--GRANT create procedure TO TESTONE_MDS
/
--GRANT create table TO TESTONE_MDS
/
--GRANT create sequence TO TESTONE_MDS
/
--GRANT execute on dbms_lob to TESTONE_MDS
/
--ALTER USER TESTONE_MDS QUOTA unlimited ON TESTONE_MDS
/
DECLARE
cnt NUMBER;
package_not_found EXCEPTION;
PRAGMA EXCEPTION_INIT(package_not_found, -00942);
insufficient_privs EXCEPTION;
PRAGMA EXCEPTION_INIT(insufficient_privs, -01031);
BEGIN
cnt := 0;
SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
AND owner='SYS' AND table_name='DBMS_OUTPUT'
AND privilege='EXECUTE';
IF (cnt = 0) THEN
-- Grant MDS user execute on dbms_output only if PUBLIC
-- doesn't have the privilege.
EXECUTE IMMEDIATE 'GRANT execute ON dbms_output TO TESTONE_MDS';
END IF;
cnt := 0;
SELECT count(*) INTO cnt FROM dba_tab_privs WHERE grantee = 'PUBLIC'
AND owner='SYS' AND table_name='DBMS_STATS'
AND privilege='EXECUTE';
IF (cnt = 0) THEN
-- Grant MDS user execute on dbms_stats only if PUBLIC
-- doesn't have the privilege.
EXECUTE IMMEDIATE 'GRANT execute ON dbms_stats TO TESTONE_MDS';
END IF;
EXCEPTION
-- If the user doesn't have privilege to access dbms_* package,
-- database will report that the package cannot be found. RCU
-- even doesn't throw the exception to the user, since ORA-00942
-- is an ignored error defined in its global configuration xml
-- file.
WHEN package_not_found THEN
RAISE insufficient_privs;
WHEN OTHERS THEN
RAISE;
END;
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='MDS' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_MDS
/
---------------------------------------------------------
---------- MDS(Metadata Services) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- WLS(WebLogic Services) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='WLS';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('WLS', 'WebLogic Services', 'TESTONE', 'WLS', 'WLS', 'TESTONE_WLS', '12.2.1.0.0', 'LOADING', '', 0);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_WLS IDENTIFIED BY &SCHEMA_PASSWORD DEFAULT TABLESPACE TESTONE_WLS TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT connect TO TESTONE_WLS
/
GRANT create type TO TESTONE_WLS
/
GRANT create procedure TO TESTONE_WLS
/
GRANT create table TO TESTONE_WLS
/
GRANT create sequence TO TESTONE_WLS
/
GRANT create any index to TESTONE_WLS
/
GRANT create any trigger to TESTONE_WLS
/
GRANT create any table to TESTONE_WLS
/
GRANT create any view to TESTONE_WLS
/
ALTER USER TESTONE_WLS QUOTA unlimited ON TESTONE_WLS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_WLS_RUNTIME IDENTIFIED BY &ADDITIONAL_SCHEMA_PASSWORD1 DEFAULT TABLESPACE TESTONE_WLS TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT connect TO TESTONE_WLS_RUNTIME
/
GRANT create type TO TESTONE_WLS_RUNTIME
/
GRANT create procedure TO TESTONE_WLS_RUNTIME
/
GRANT create table TO TESTONE_WLS_RUNTIME
/
GRANT create sequence TO TESTONE_WLS_RUNTIME
/
GRANT create any index to TESTONE_WLS_RUNTIME
/
GRANT create any trigger to TESTONE_WLS_RUNTIME
/
ALTER USER TESTONE_WLS_RUNTIME QUOTA unlimited ON TESTONE_WLS
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='WLS' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_WLS
/
---------------------------------------------------------
---------- WLS(WebLogic Services) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- STB(Common Infrastructure Services) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='STB';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('STB', 'Service Table', 'TESTONE', 'STB', 'STB', 'TESTONE_STB', '192.168.3.11.0', 'LOADING', '', 8192);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_STB IDENTIFIED BY &SCHEMA_PASSWORD DEFAULT TABLESPACE TESTONE_STB TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT connect TO TESTONE_STB
/
GRANT create type TO TESTONE_STB
/
GRANT create procedure TO TESTONE_STB
/
GRANT create table TO TESTONE_STB
/
GRANT create sequence TO TESTONE_STB
/
GRANT create any index to TESTONE_STB
/
GRANT create any trigger to TESTONE_STB
/
GRANT select on schema_version_registry to TESTONE_STB
/
ALTER USER TESTONE_STB QUOTA unlimited ON TESTONE_STB
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE STBROLE';
EXCEPTION
WHEN OTHERS THEN NULL;
END;
/
SET ECHO ON
/
SET FEEDBACK 1
/
SET NUMWIDTH 10
/
SET LINESIZE 80
/
SET TRIMSPOOL ON
/
SET TAB OFF
/
SET PAGESIZE 100
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_STB
/
CREATE TABLE "SERVICETABLE"
(
"ID" VARCHAR2(50) PRIMARY KEY,
"STYPE" VARCHAR2(50) NOT NULL,
"ENDPOINT" CLOB NOT NULL,
"LASTUPDATED" TIMESTAMP NOT NULL,
"PROMOTED" CHAR(1) check (PROMOTED in ( 'Y', 'N' )) NOT NULL,
"VALID" CHAR(1) check (VALID in ( 'Y', 'N' )) NOT NULL
)
/
CREATE INDEX SERVICETABLE_IDX ON SERVICETABLE(STYPE)
/
CREATE TABLE "COMPONENT_SCHEMA_INFO"
(
"SCHEMA_USER" VARCHAR2(100) NOT NULL,
"SCHEMA_PASSWORD" BLOB ,
"COMP_ID" VARCHAR2(100) NOT NULL,
"PREFIX_NAME" VARCHAR2(100) ,
"DB_HOSTNAME" VARCHAR2(255) ,
"DB_SERVICE" VARCHAR2(200) ,
"DB_PORTNUMBER" VARCHAR2(10),
"DATABASE_NAME" VARCHAR2(200),
"STATUS" VARCHAR2(20)
)
/
CREATE INDEX COMPONENT_SCHEMA_INFO_IDX ON COMPONENT_SCHEMA_INFO(SCHEMA_USER)
/
GRANT SELECT, INSERT, UPDATE, DELETE ON TESTONE_STB.COMPONENT_SCHEMA_INFO TO STBROLE
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='STB' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_STB
/
---------------------------------------------------------
---------- STB(Common Infrastructure Services) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- IAU_APPEND(Audit Services Append) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='IAU_APPEND';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('IAU_APPEND', 'Audit Service Append', 'TESTONE', 'IAU_APPEND', 'IAU_APPEND', 'TESTONE_IAU_APPEND', '12.2.1.0.0', 'LOADING', '', 0);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
SET ECHO ON
/
SET FEEDBACK 1
/
SET NUMWIDTH 10
/
SET LINESIZE 80
/
SET TRIMSPOOL ON
/
SET TAB OFF
/
SET PAGESIZE 100
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_IAU_APPEND
IDENTIFIED BY &SCHEMA_PASSWORD
DEFAULT TABLESPACE TESTONE_IAU
TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT RESOURCE TO TESTONE_IAU_APPEND
/
GRANT UNLIMITED TABLESPACE to TESTONE_IAU_APPEND
/
GRANT CONNECT to TESTONE_IAU_APPEND
/
GRANT CREATE TABLE TO TESTONE_IAU_APPEND
/
GRANT CREATE MATERIALIZED VIEW TO TESTONE_IAU_APPEND
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='IAU_APPEND' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_IAU_APPEND
/
---------------------------------------------------------
---------- IAU_APPEND(Audit Services Append) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- IAU_VIEWER(Audit Services Viewer) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='IAU_VIEWER';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('IAU_VIEWER', 'Audit Service Viewer', 'TESTONE', 'IAU_VIEWER', 'IAU_VIEWER', 'TESTONE_IAU_VIEWER', '172.16.31.10.0', 'LOADING', '', 0);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_IAU_VIEWER
IDENTIFIED BY &SCHEMA_PASSWORD
DEFAULT TABLESPACE TESTONE_IAU
TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT RESOURCE TO TESTONE_IAU_VIEWER
/
GRANT UNLIMITED TABLESPACE to TESTONE_IAU_VIEWER
/
GRANT CONNECT to TESTONE_IAU_VIEWER
/
GRANT CREATE VIEW to TESTONE_IAU_VIEWER
/
GRANT CREATE SYNONYM TO TESTONE_IAU_VIEWER
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='IAU_VIEWER' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_IAU_VIEWER
/
---------------------------------------------------------
---------- IAU_VIEWER(Audit Services Viewer) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- UCSUMS(User Messaging Service) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='UCSUMS';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('UCSUMS', 'User Messaging Service', 'TESTONE', 'UCSUMS', 'UCSUMS', 'TESTONE_UMS', '12.2.1.0.0', 'LOADING', '', 8192);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
define schema_user = TESTONE_UMS
define schema_password = <PASSWORD>
define default_tablespace = TESTONE_IAS_UMS
define temp_tablespace = TESTONE_IAS_TEMP
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'create user TESTONE_UMS identified by &SCHEMA_PASSWORD';
end;
/
alter user TESTONE_UMS default tablespace TESTONE_IAS_UMS
/
alter user TESTONE_UMS temporary tablespace TESTONE_IAS_TEMP
/
alter user TESTONE_UMS quota unlimited on TESTONE_IAS_UMS
/
grant CREATE SESSION to TESTONE_UMS
/
grant CREATE TABLE to TESTONE_UMS
/
grant execute on sys.dbms_aq to TESTONE_UMS
/
grant execute on sys.dbms_aqadm to TESTONE_UMS
/
grant aq_administrator_role to TESTONE_UMS
/
grant aq_user_role to TESTONE_UMS
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_UMS
/
CREATE TABLE ACCESS_POINT
(
IDENTIFIER VARCHAR2(512) NOT NULL,
AP_TYPE VARCHAR2(32),
DELIVERY_TYPE VARCHAR2(32) NOT NULL,
ADDRESS_VALUE VARCHAR2(512) NOT NULL,
KEYWORD VARCHAR2(350),
METADATA BLOB
)
/
ALTER TABLE ACCESS_POINT
ADD CONSTRAINT ACCESS_POINT_PK PRIMARY KEY (IDENTIFIER)
/
CREATE TABLE ADDRESS
(
ADDR_ID VARCHAR2(64) NOT NULL,
DELIVERY_TYPE VARCHAR2(32),
FAILOVER_ADDRESS_ID VARCHAR2(64),
METADATA BLOB,
ORIGINAL_RECIPIENT VARCHAR2(64),
SUCCESS_STATUS VARCHAR2(128),
TIMEOUT NUMBER,
TYPE VARCHAR2(32),
VALUE VARCHAR2(512),
RECIPIENT_ID VARCHAR2(64),
ADDRESS_STRING VARCHAR2(512),
CREATION_DATE TIMESTAMP
)
/
ALTER TABLE ADDRESS
ADD CONSTRAINT ADDRESS_PK PRIMARY KEY (ADDR_ID)
/
CREATE INDEX ADDRESS_FAILOVER_ADDRESS_IDX ON ADDRESS
(FAILOVER_ADDRESS_ID )
/
CREATE TABLE CLIENT
(
APPLICATION_NAME VARCHAR2(128) NOT NULL,
TIME_STAMP TIMESTAMP,
LOCK_VERSION NUMBER(12,0),
AUTHORIZATION_ID VARCHAR2(128)
)
/
ALTER TABLE CLIENT
ADD CONSTRAINT CLIENT_PK PRIMARY KEY (APPLICATION_NAME)
/
CREATE TABLE CLIENT_ACCESS_POINT
(
ACCESS_POINT VARCHAR2(512) NOT NULL,
APPLICATION_NAME VARCHAR2(128) NOT NULL,
APPLICATION_INSTANCE_NAME VARCHAR2(128) NOT NULL,
AUTHORIZATION_ID VARCHAR2(128)
)
/
ALTER TABLE CLIENT_ACCESS_POINT
ADD CONSTRAINT CLIENT_ACCESS_POINT_PK PRIMARY KEY (ACCESS_POINT, APPLICATION_INSTANCE_NAME)
/
CREATE TABLE CLIENT_INSTANCE
(
ID VARCHAR2(256) NOT NULL,
CLIENT_ID VARCHAR2(128),
INSTANCE_NAME VARCHAR2(256)
)
/
ALTER TABLE CLIENT_INSTANCE
ADD CONSTRAINT CLIENT_INSTANCE_PK PRIMARY KEY (ID)
/
CREATE TABLE CLIENT_PARAMETER
(
CLIENT_ID VARCHAR2(128) NOT NULL,
PARAMETER_ID VARCHAR2(256) NOT NULL
)
/
ALTER TABLE CLIENT_PARAMETER ADD CONSTRAINT CLIENT_PARAMETER_PARAM_ID_UQ UNIQUE
(PARAMETER_ID )
/
CREATE TABLE CLIENT_QUEUE
(
APPLICATION_NAME VARCHAR2(128),
QUEUE_ID VARCHAR2(128)
)
/
CREATE TABLE CLIENT_SESSION
(
APPLICATION_NAME VARCHAR2(128) NOT NULL,
INSTANCE_NAME VARCHAR2(256),
ADDRESS VARCHAR2(512) NOT NULL,
EXPIRATION TIMESTAMP
)
/
ALTER TABLE CLIENT_SESSION
ADD CONSTRAINT CLIENT_SESSION_PK PRIMARY KEY (APPLICATION_NAME, ADDRESS)
/
CREATE TABLE DELIVERY_ATTEMPT
(
ADDR_CHAIN_ID VARCHAR2(128),
ADDRESS_ID VARCHAR2(128),
CURRENT_STATUS_ID VARCHAR2(128),
DELIVERY_ID VARCHAR2(1024) NOT NULL,
DELIVERY_STATE VARCHAR2(32),
FAILOVER_ORDER NUMBER,
GMID VARCHAR2(512),
HEAD_FLAG NUMBER(1),
MID VARCHAR2(512),
NEXT_DELIVERY VARCHAR2(512),
ORIGINAL_RECIPIENT VARCHAR2(64),
SENDER_ADDRESS VARCHAR2(128),
TIME_STAMP TIMESTAMP,
TOTAL_FAILOVERS NUMBER,
CURRENT_RESEND NUMBER,
MAX_RESEND NUMBER
)
/
ALTER TABLE DELIVERY_ATTEMPT
ADD CONSTRAINT DELIVERY_ATTEMPT_PK PRIMARY KEY (DELIVERY_ID)
/
CREATE INDEX DELIVERY_ATTEMPT_MID_IDX ON DELIVERY_ATTEMPT
(MID )
/
CREATE UNIQUE INDEX DELIVERY_ATTEMPT_GMID_UQ ON DELIVERY_ATTEMPT
(GMID )
/
CREATE TABLE DELIVERY_CONTEXT
(
MID VARCHAR2(512) NOT NULL,
NS_INSTANCE VARCHAR2(128),
APPLICATION VARCHAR2(128),
APPLICATION_INSTANCE VARCHAR2(256),
DRIVER VARCHAR2(512),
OPERATION VARCHAR2(64),
TIME_STAMP TIMESTAMP
)
/
ALTER TABLE DELIVERY_CONTEXT
ADD CONSTRAINT DELIVERY_CONTEXT_PK PRIMARY KEY (MID)
/
CREATE TABLE DRIVER
(
CAPABILITY VARCHAR2(64),
DRIVER_NAME VARCHAR2(512) NOT NULL,
LOCK_VERSION NUMBER(12,0),
SPEED NUMBER,
COST NUMBER,
SUPPORTS_CANCEL NUMBER(1),
SUPPORTS_REPLACE NUMBER(1),
SUPPORTS_STATUS_POLLING NUMBER(1),
SUPPORTS_TRACKING NUMBER(1),
CHECKSUM NUMBER,
DEFAULT_SENDER VARCHAR2(128),
MIME_TYPES VARCHAR2(512),
ENCODINGS VARCHAR2(512),
PROTOCOLS VARCHAR2(512),
CARRIERS VARCHAR2(512),
DELIVERY_TYPES VARCHAR2(512),
STATUS_TYPES VARCHAR2(1024),
SENDER_ADDRESSES VARCHAR2(1024)
)
/
ALTER TABLE DRIVER
ADD CONSTRAINT DRIVER_PK PRIMARY KEY (DRIVER_NAME)
/
CREATE TABLE DRIVER_QUEUE
(
DRIVER_NAME VARCHAR2(512),
QUEUE_ID VARCHAR2(128)
)
/
CREATE TABLE DRIVER_SESSION
(
DRIVER_NAME VARCHAR2(512),
ADDRESS VARCHAR2(512) NOT NULL,
EXPIRATION TIMESTAMP
)
/
ALTER TABLE DRIVER_SESSION
ADD CONSTRAINT DRIVER_SESSION_PK PRIMARY KEY (ADDRESS)
/
CREATE TABLE FILTER
(
PATTERN VARCHAR2(1024),
FIELD_TYPE VARCHAR2(64),
FIELD_NAME VARCHAR2(128),
ACTION VARCHAR2(64),
APPLICATION_NAME VARCHAR2(128) NOT NULL,
ORDINAL NUMBER NOT NULL
)
/
ALTER TABLE FILTER
ADD CONSTRAINT FILTER_PK PRIMARY KEY (APPLICATION_NAME, ORDINAL)
/
CREATE TABLE MESSAGE
(
INFO_ACCEPT_DATE TIMESTAMP,
INFO_APPLICATION_NAME VARCHAR2(128),
INFO_CARRIER_NAME VARCHAR2(128),
INFO_CHUNK_SIZE NUMBER,
INFO_CORRELATION_ID VARCHAR2(128),
INFO_COST_LEVEL NUMBER,
INFO_DELAY NUMBER,
INFO_DELIVERY_TYPE VARCHAR2(64),
INFO_DRIVER VARCHAR2(512),
INFO_EXPIRATION NUMBER,
INFO_FROM_ADDRESS VARCHAR2(512),
INFO_GATEWAY_ID VARCHAR2(512),
INFO_INSTANCE_NAME VARCHAR2(256),
INFO_MAX_CHUNKS NUMBER,
INFO_PRIORITY VARCHAR2(64),
INFO_PROTOCOL VARCHAR2(64),
INFO_RELIABILITY VARCHAR2(64),
INFO_SESSION_TYPE VARCHAR2(64),
INFO_SPEED_LEVEL NUMBER,
INFO_STATUS_LEVEL VARCHAR2(64),
INFO_TRACKING VARCHAR2(64),
INFO_MAX_RESEND NUMBER,
INFO_PROFILE_ID VARCHAR2(128),
MESSAGE_ID VARCHAR2(512) NOT NULL,
MESSAGE_OBJECT BLOB,
VALID_FLAG VARCHAR2(20),
MESSAGE_AUTH_ID VARCHAR2(128),
CREATION_DATE TIMESTAMP
)
/
ALTER TABLE MESSAGE
ADD CONSTRAINT MESSAGE_PK PRIMARY KEY (MESSAGE_ID)
/
CREATE TABLE MESSAGE_TRANSFORM
(
TRANSFORM_KEY VARCHAR2(144) NOT NULL,
TRANSFORM_MESSAGE_ID VARCHAR2(512) NOT NULL
)
/
ALTER TABLE MESSAGE_TRANSFORM
ADD CONSTRAINT MESSAGE_TRANSFORM_PK PRIMARY KEY (TRANSFORM_KEY)
/
ALTER TABLE MESSAGE_TRANSFORM ADD CONSTRAINT MESSAGE_TRANSFORM_MSG_ID_UQ UNIQUE
(TRANSFORM_MESSAGE_ID )
/
CREATE TABLE PARAMETER
(
ID VARCHAR2(256) NOT NULL,
PARAM_NAME VARCHAR2(128) NOT NULL,
PARAM_VALUE VARCHAR2(256)
)
/
ALTER TABLE PARAMETER
ADD CONSTRAINT PARAMETER_PK PRIMARY KEY (ID)
/
CREATE TABLE QUEUE
(
QCF_JNDI_NAME VARCHAR2(256),
QCF_OBJECT BLOB,
QUEUE_JNDI_NAME VARCHAR2(256),
QUEUE_OBJECT BLOB,
QUEUE_ID VARCHAR2(128) NOT NULL
)
/
ALTER TABLE QUEUE
ADD CONSTRAINT QUEUE_PK PRIMARY KEY (QUEUE_ID)
/
CREATE TABLE STATUS
(
ADDRESS_ID VARCHAR2(128),
CONTENT VARCHAR2(1024),
DRIVER VARCHAR2(512),
FAILOVER_ORDER NUMBER,
FAILOVER_STATUS_ID VARCHAR2(128),
GATEWAY_ID VARCHAR2(512),
MESSAGE_ID VARCHAR2(512),
METADATA BLOB,
RECIPIENT_ID VARCHAR2(128),
STATUS_DATE TIMESTAMP,
STATUS_ID VARCHAR2(128) NOT NULL,
TOTAL_FAILOVERS NUMBER,
MAX_RESEND NUMBER,
CURRENT_RESEND NUMBER,
TYPE VARCHAR2(128)
)
/
ALTER TABLE STATUS
ADD CONSTRAINT STATUS_PK PRIMARY KEY (STATUS_ID)
/
CREATE TABLE STATUS_ORPHAN
(
GMID VARCHAR2(512) NOT NULL,
STATUS_ID VARCHAR2(128) NOT NULL
)
/
CREATE INDEX STATUS_ORPHAN_GMID_IDX ON STATUS_ORPHAN
(GMID )
/
CREATE TABLE DEVICE_ADDRESS
(
ID VARCHAR2(128) NOT NULL,
USER_GUID VARCHAR2(128) NOT NULL,
NAME VARCHAR2(128) NOT NULL,
ADDRESS VARCHAR2(512) NOT NULL,
DEFAULT_ADDRESS VARCHAR2(1) DEFAULT 'N',
CARRIER VARCHAR2(256),
ENCODING VARCHAR2(64),
DELIVERY_INFO VARCHAR2(64),
DELIVERY_MODE VARCHAR2(64) NOT NULL,
DESCRIPTION VARCHAR2(2000),
CREATED TIMESTAMP,
LAST_MODIFIED TIMESTAMP,
VERSION NUMBER(10,0),
VALID VARCHAR2(1) DEFAULT 'N',
UDEV_ID VARCHAR2(128),
TYPE VARCHAR2(10) DEFAULT 'UCP',
REFERENCE_KEY VARCHAR2(256),
METADATA BLOB,
EXT_DATE TIMESTAMP,
EXT_CHAR1 VARCHAR2(2000),
EXT_CHAR2 VARCHAR2(2000),
EXT_CHAR3 VARCHAR2(2000)
)
/
ALTER TABLE DEVICE_ADDRESS
ADD CONSTRAINT DEVICE_ADDRESS_PK PRIMARY KEY (ID)
/
ALTER TABLE DEVICE_ADDRESS ADD CONSTRAINT DEVICE_ADDRESS_ADDRS_DELIV_UQ UNIQUE
(ADDRESS , DELIVERY_MODE )
/
ALTER TABLE DEVICE_ADDRESS ADD CONSTRAINT DEVICE_ADDRESS_USER_NAME_UQ UNIQUE
(USER_GUID , NAME )
/
CREATE INDEX DEVICE_ADDRESS_UDEV_ID_IDX ON DEVICE_ADDRESS
(UDEV_ID )
/
ALTER TABLE DEVICE_ADDRESS
ADD CONSTRAINT DEVICE_ADDRESS_VALID_CK CHECK (VALID IN ('Y', 'N'))
/
ALTER TABLE DEVICE_ADDRESS
ADD CONSTRAINT DEVICE_ADDRESS_DEFAULT_ADDR_CK CHECK (DEFAULT_ADDRESS IN ('Y', 'N'))
/
ALTER TABLE DEVICE_ADDRESS
ADD CONSTRAINT DEVICE_ADDRESS_TYPE_CK CHECK (TYPE IN ('UCP', 'IDM'))
/
CREATE TABLE RULE_SET
(
USER_GUID VARCHAR2(128) NOT NULL,
PROFILE_ID VARCHAR2(128) DEFAULT 'defaultId' NOT NULL,
MEDIA_TYPE_ID NUMBER(3) DEFAULT 1 NOT NULL,
FILTER_XML CLOB,
FILTER_XML_UCP CLOB,
RL CLOB,
RULE_SESSION BLOB,
DESCRIPTION VARCHAR2(2000),
CREATED TIMESTAMP,
LAST_MODIFIED TIMESTAMP,
VERSION NUMBER(10,0),
VALID VARCHAR2(1) DEFAULT 'N',
EXT_DATE TIMESTAMP,
EXT_CHAR1 VARCHAR2(2000),
EXT_CHAR2 VARCHAR2(2000),
EXT_CHAR3 VARCHAR2(2000)
)
/
ALTER TABLE RULE_SET
ADD CONSTRAINT RULE_SET_PK PRIMARY KEY (USER_GUID, PROFILE_ID, MEDIA_TYPE_ID)
/
ALTER TABLE RULE_SET
ADD CONSTRAINT RULE_SET_VALID_CK CHECK (VALID IN ('Y', 'N'))
/
CREATE TABLE UCP_MEDIA_TYPE
(
ID NUMBER(3) NOT NULL,
NAME VARCHAR2(32) NOT NULL
)
/
ALTER TABLE UCP_MEDIA_TYPE
ADD CONSTRAINT UCP_MEDIA_TYPE_PK PRIMARY KEY (ID)
/
CREATE TABLE UCP_USER_ATTRIBUTE
(
USER_GUID VARCHAR2(128) NOT NULL,
NAME VARCHAR2(256) NOT NULL,
VALUE VARCHAR2(2000),
CREATED TIMESTAMP,
LAST_MODIFIED TIMESTAMP,
VERSION NUMBER(10,0)
)
/
ALTER TABLE UCP_USER_ATTRIBUTE
ADD CONSTRAINT UCP_USER_ATTRIBUTE_PK PRIMARY KEY (USER_GUID, NAME)
/
CREATE TABLE USER_DEVICE
(
ID VARCHAR2(128) NOT NULL,
USER_GUID VARCHAR2(128) NOT NULL,
NAME VARCHAR2(128) NOT NULL,
DESCRIPTION VARCHAR2(2000),
CREATED TIMESTAMP,
LAST_MODIFIED TIMESTAMP,
VERSION NUMBER(10,0),
VALID VARCHAR2(1) DEFAULT 'N'
)
/
ALTER TABLE USER_DEVICE
ADD CONSTRAINT USER_DEVICE_PK PRIMARY KEY (ID)
/
ALTER TABLE USER_DEVICE ADD CONSTRAINT USER_DEVICE_USER_GUID_NAME_UQ UNIQUE
(USER_GUID , NAME )
/
ALTER TABLE USER_DEVICE
ADD CONSTRAINT USER_DEVICE_VALID_CK CHECK (VALID IN ('Y', 'N'))
/
ALTER TABLE ADDRESS
ADD CONSTRAINT ADDRESS_FAILOVER_ADDRESS FOREIGN KEY (FAILOVER_ADDRESS_ID) REFERENCES ADDRESS (ADDR_ID)
/
ALTER TABLE RULE_SET
ADD CONSTRAINT RULE_SET_FK2 FOREIGN KEY (MEDIA_TYPE_ID) REFERENCES UCP_MEDIA_TYPE (ID)
/
INSERT INTO UCP_MEDIA_TYPE (ID, NAME) VALUES(1,'MESSAGING')
/
INSERT INTO UCP_MEDIA_TYPE (ID, NAME) VALUES(2,'VOICE_CALL')
/
DEFINE schema_user = TESTONE_UMS
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_UMS
/
BEGIN
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMAppDefRcvT1',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMAppDefRcvQ1', queue_table => 'TESTONE_UMS' || '.OraSDPMAppDefRcvT1' , max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMEngineCmdT',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMEngineCmdQ', queue_table => 'TESTONE_UMS' || '.OraSDPMEngineCmdT', max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMEngineSndT1',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMEngineSndQ1', queue_table => 'TESTONE_UMS' || '.OraSDPMEngineSndT1', max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMEngineRcvT1',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMEngineRcvQ1', queue_table => 'TESTONE_UMS' || '.OraSDPMEngineRcvT1', max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMWSRcvT1',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMWSRcvQ1', queue_table => 'TESTONE_UMS' || '.OraSDPMWSRcvT1', max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMDriverDefSndT1',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMDriverDefSndQ1', queue_table => 'TESTONE_UMS' || '.OraSDPMDriverDefSndT1', max_retries => 2);
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TESTONE_UMS' || '.OraSDPMEnginePendRcvQT',
queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
sort_list => 'PRIORITY,ENQ_TIME',
multiple_consumers => false,
compatible => '10.0');
DBMS_AQADM.CREATE_QUEUE( queue_name => 'TESTONE_UMS' || '.OraSDPMEnginePendingRcvQ', queue_table => 'TESTONE_UMS' || '.OraSDPMEnginePendRcvQT', max_retries => 2);
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMAppDefRcvQ1');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.AQ$_OraSDPMAppDefRcvT1_E', dequeue => TRUE, enqueue => FALSE);
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMEngineCmdQ');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMEngineSndQ1');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMEngineRcvQ1');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMEnginePendingRcvQ');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMWSRcvQ1');
DBMS_AQADM.START_QUEUE(queue_name => 'TESTONE_UMS' || '.OraSDPMDriverDefSndQ1');
END;
/
DEFINE schema_user = TESTONE_UMS
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_UMS
/
CREATE OR REPLACE PACKAGE UMS_CLEANUP AS
-- Main purge procedure
PROCEDURE PURGE (days_of_retention IN NUMBER);
-- procedure to update MESSGAGE, DELIVERY_CONTEXT, and ADDRESS tables
procedure update_message_date(cut_off_time IN date);
-- Procedure to purge MESSAGE table
procedure purge_message(cut_off_time IN date);
-- procedures to update ADRESS table failoverchains
procedure update_failover_address(cut_off_time IN date);
procedure update_failover_address2(cut_off_time IN date);
-- procedure to decouple adresses from failover addresses in ADDRESS table
procedure decouple_failover_address(cut_off_time IN date);
-- procedure to purge ADDRESS table
procedure purge_address(cut_off_time IN date);
-- procedure to purge STATUS table
procedure purge_status(cut_off_time IN date);
-- procedure to purge DELIVERY_CONTEXT table
procedure purge_delivery_context(cut_off_time IN date);
-- procedure to purge DELIVERY_ATTEMPT table
procedure purge_delivery_attempt(cut_off_time IN date);
END UMS_CLEANUP;
/
show errors;
/
CREATE OR REPLACE PACKAGE BODY UMS_CLEANUP AS
-- Main purge procedure
PROCEDURE PURGE (days_of_retention IN NUMBER) AS
cut_off_date DATE;
nrows NUMBER;
BEGIN
DBMS_OUTPUT.put_line(CHR(10));
if(days_of_retention < 7) then
DBMS_OUTPUT.put_line('ERROR: Parameter "days_of_retention" is too short. The minimum value allowed is 7 days.');
goto endp;
end if;
DBMS_OUTPUT.put_line('------ Before Purge ---------');
DBMS_OUTPUT.put_line(CHR(10));
select count(1) into nrows from MESSAGE;
DBMS_OUTPUT.put_line('MESSAGE table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from ADDRESS;
DBMS_OUTPUT.put_line('ADDRESS table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from DELIVERY_ATTEMPT;
DBMS_OUTPUT.put_line('DELIVERY_ATTEMPT table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from STATUS;
DBMS_OUTPUT.put_line('STATUS table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from DELIVERY_CONTEXT;
DBMS_OUTPUT.put_line('DELIVERY_CONTEXT table:'|| CHR(9) || nrows || ' rows');
cut_off_date := sysdate - days_of_retention;
DBMS_OUTPUT.put_line(CHR(10));
DBMS_OUTPUT.put_line('Cut-off date/time is: ' || to_char(cut_off_date, 'YYYY-MM-DD HH24:MI:SS'));
DBMS_OUTPUT.put_line('All records created prior to that point will be DELETED permanently.');
-- -------------------- Update MESSAGE table ---------------------
DBMS_OUTPUT.put_line('**** Update MESSAGE, CONTEXT, ADDRESS table for different times. Please wait ...');
update_message_date(cut_off_date);
-- -------------------- Purge MESSAGE table ---------------------
DBMS_OUTPUT.put_line('**** Purging MESSAGE table. Please wait ...');
purge_message(cut_off_date);
-- -------------------- Purge ADDRESS table ---------------------
DBMS_OUTPUT.put_line('**** Purging ADDRESS table. Please wait ...');
update DELIVERY_ATTEMPT set time_stamp = cut_off_date - 1
where MID in (select unique MID from DELIVERY_CONTEXT where TIME_STAMP < cut_off_date)
and time_stamp is null;
-- -------------------- Delete addresses ---------------------
update_failover_address(cut_off_date);
update_failover_address2(cut_off_date);
decouple_failover_address(cut_off_date);
purge_address(cut_off_date);
-- -------------------- Purge DELIVERY_ATTEMPT table ---------------------
DBMS_OUTPUT.put_line('**** Purging DELIVERY_ATTEMPT table. Please wait ...');
purge_delivery_attempt(cut_off_date);
-- -------------------- Purge STATUS table ---------------------
DBMS_OUTPUT.put_line('**** Purging STATUS table. Please wait ...');
purge_status(cut_off_date);
-- -------------------- Purge DELIVERY_CONTEXT table ---------------------
DBMS_OUTPUT.put_line('**** Purging DELIVERY_CONTEXT table. Please wait ...');
purge_delivery_context(cut_off_date);
DBMS_OUTPUT.put_line('**** Purge completed.');
DBMS_OUTPUT.put_line(CHR(10));
DBMS_OUTPUT.put_line('------ After Purge ---------');
DBMS_OUTPUT.put_line(CHR(10));
nrows := 0;
select count(1) into nrows from MESSAGE;
DBMS_OUTPUT.put_line('MESSAGE table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from ADDRESS;
DBMS_OUTPUT.put_line('ADDRESS table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from DELIVERY_ATTEMPT;
DBMS_OUTPUT.put_line('DELIVERY_ATTEMPT table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from STATUS;
DBMS_OUTPUT.put_line('STATUS table:'|| CHR(9) || nrows || ' rows');
nrows := 0;
select count(1) into nrows from DELIVERY_CONTEXT;
DBMS_OUTPUT.put_line('DELIVERY_CONTEXT table:'|| CHR(9) || nrows || ' rows');
<<endp>>
DBMS_OUTPUT.put_line(CHR(10));
END PURGE;
-- Procedure to change date/timestamp to ATTEMPT timestamp for inconsistent dates
procedure update_message_date(cut_off_time IN date) IS
CURSOR C1 is
select da.mid, da.TIME_STAMP, da.sender_address, da.address_id from
DELIVERY_ATTEMPT da, DELIVERY_CONTEXT dc where
da.mid = dc.mid and da.TIME_STAMP >= cut_off_time and dc.TIME_STAMP < cut_off_time;
CURSOR C2 IS
Select da.mid, da.TIME_STAMP, da.sender_address, da.address_id from
DELIVERY_ATTEMPT da, MESSAGE msg where
msg.CREATION_DATE is null;
msg_id VARCHAR2(128);
msg_time TIMESTAMP(6);
sender_addr VARCHAR2(128);
recip_addr VARCHAR2(128);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
FOR record IN C1 LOOP
msg_id := record.mid;
msg_time := record.TIME_STAMP;
sender_addr := record.sender_address;
recip_addr := record.address_id;
update DELIVERY_CONTEXT set TIME_STAMP = msg_time where
mid = msg_id;
update MESSAGE set CREATION_DATE = msg_time where
message_id = msg_id;
update ADDRESS set CREATION_DATE = msg_time where
addr_id = sender_addr;
update ADDRESS set CREATION_DATE = msg_time where
addr_id = recip_addr;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
FOR record IN C2 LOOP
msg_id := record.mid;
msg_time := record.TIME_STAMP;
sender_addr := record.sender_address;
recip_addr := record.address_id;
update MESSAGE set CREATION_DATE = msg_time where
message_id = msg_id;
update ADDRESS set CREATION_DATE = msg_time where
addr_id = sender_addr;
update ADDRESS set CREATION_DATE = msg_time where
addr_id = recip_addr;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END update_message_date;
-- Procedure to purge MESSAGE table
procedure purge_message(cut_off_time IN date) IS
CURSOR C1 is
Select m.message_id from MESSAGE m, DELIVERY_CONTEXT dc where
m.message_id = dc.mid and dc.TIME_STAMP < cut_off_time;
msg_id VARCHAR2(128);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
FOR record IN C1 LOOP
msg_id := record.message_id;
delete from MESSAGE where message_id = msg_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END purge_message;
-- Procedure to change date/timestamp to preserve failoverchains
procedure update_failover_address(cut_off_time IN date) IS
CURSOR C1 IS
select unique addr_id from ADDRESS where failover_address_id in (select unique addr_id from ADDRESS where creation_date > cut_off_time) and creation_date < cut_off_time;
a_id VARCHAR2(64);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
DBMS_OUTPUT.put_line('Update addresses...');
FOR record IN C1 LOOP
a_id := record.addr_id;
update ADDRESS set CREATION_DATE = cut_off_time + 1 where addr_id = a_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END update_failover_address;
procedure update_failover_address2(cut_off_time IN date) IS
CURSOR C1 IS
select unique addr_id from ADDRESS where failover_address_id is null and addr_id in (select unique failover_address_id from ADDRESS where creation_date > cut_off_time) and creation_date < cut_off_time;
a_id VARCHAR2(64);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
DBMS_OUTPUT.put_line('Update addresses 2...');
FOR record IN C1 LOOP
a_id := record.addr_id;
update ADDRESS set CREATION_DATE = cut_off_time + 1 where addr_id = a_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END update_failover_address2;
-- procedure to decouple adresses from failover addresses in ADDRESS table
procedure decouple_failover_address(cut_off_time IN date) IS
CURSOR C1 IS
select addr_id from address where
failover_address_id is not null and CREATION_DATE < cut_off_time;
a_id VARCHAR2(64);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
DBMS_OUTPUT.put_line('Decouple adresses from failover addresses...');
FOR record IN C1 LOOP
a_id := record.addr_id;
update ADDRESS set failover_address_id = null where addr_id = a_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END decouple_failover_address;
-- procedure to purge senders from ADDRESS table
procedure purge_address(cut_off_time IN date) IS
CURSOR C1 IS
Select addr_id from address where
CREATION_DATE < cut_off_time;
a_id VARCHAR2(64);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
DBMS_OUTPUT.put_line('Deleting addresses from ADDRESS table...');
FOR record IN C1 LOOP
a_id := record.addr_id;
delete from ADDRESS where addr_id = a_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END purge_address;
-- procedure to purge STATUS table
procedure purge_status(cut_off_time IN date) IS
CURSOR C1 IS
Select STATUS_ID from status
where STATUS_DATE < cut_off_time;
s_id VARCHAR2(128);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
FOR record IN C1 LOOP
s_id := record.status_id;
delete from status where status_id = s_id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END purge_status;
-- procedure to purge DELIVERY_CONTEXT table
procedure purge_delivery_context(cut_off_time IN date) IS
CURSOR C1 IS
Select MID from DELIVERY_CONTEXT
where TIME_STAMP < cut_off_time;
id VARCHAR2(128);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
FOR record IN C1 LOOP
id := record.mid;
delete from DELIVERY_CONTEXT where mid = id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END purge_delivery_context;
-- procedure to purge DELIVERY_ATTEMPT table
procedure purge_delivery_attempt(cut_off_time IN date) IS
CURSOR C1 IS
Select DELIVERY_ID from DELIVERY_ATTEMPT
where TIME_STAMP < cut_off_time;
id VARCHAR2(256);
lv_commit_size NUMBER := 100;
lv_count NUMBER := 0;
BEGIN
FOR record IN C1 LOOP
id := record.DELIVERY_ID;
delete from DELIVERY_ATTEMPT where DELIVERY_ID = id;
lv_count := lv_count + 1;
if mod(lv_count, lv_commit_size) = 0 then
commit;
DBMS_OUTPUT.put_line(lv_count);
end if;
END LOOP;
commit;
DBMS_OUTPUT.put_line(lv_count);
END purge_delivery_attempt;
END UMS_CLEANUP;
/
show errors;
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='UCSUMS' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_UMS
/
---------------------------------------------------------
---------- UCSUMS(User Messaging Service) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- IAU(Audit Services) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='IAU';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('IAU', 'Audit Service', 'TESTONE', 'IAU', 'IAU', 'TESTONE_IAU', '12.2.1.0.0', 'LOADING', '', 0);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_IAU
IDENTIFIED BY &SCHEMA_PASSWORD
DEFAULT TABLESPACE TESTONE_IAU
TEMPORARY TABLESPACE TESTONE_IAS_TEMP';
end;
/
GRANT RESOURCE TO TESTONE_IAU
/
GRANT UNLIMITED TABLESPACE to TESTONE_IAU
/
GRANT CONNECT TO TESTONE_IAU
/
GRANT CREATE TYPE TO TESTONE_IAU
/
GRANT CREATE PROCEDURE TO TESTONE_IAU
/
GRANT CREATE TABLE TO TESTONE_IAU
/
GRANT CREATE SEQUENCE TO TESTONE_IAU
/
GRANT CREATE SESSION TO TESTONE_IAU
/
GRANT CREATE INDEXTYPE TO TESTONE_IAU
/
GRANT CREATE SYNONYM TO TESTONE_IAU
/
GRANT SELECT_CATALOG_ROLE to TESTONE_IAU
/
GRANT SELECT ANY DICTIONARY TO TESTONE_IAU
/
GRANT SELECT ON SCHEMA_VERSION_REGISTRY TO TESTONE_IAU
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_BASE FOR TESTONE_IAU.IAU_BASE
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_BASE FOR TESTONE_IAU.IAU_BASE
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.AdminServer FOR TESTONE_IAU.AdminServer
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.AdminServer FOR TESTONE_IAU.AdminServer
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.DIP FOR TESTONE_IAU.DIP
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.DIP FOR TESTONE_IAU.DIP
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.JPS FOR TESTONE_IAU.JPS
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.JPS FOR TESTONE_IAU.JPS
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OAAM FOR TESTONE_IAU.OAAM
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OAAM FOR TESTONE_IAU.OAAM
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OAM FOR TESTONE_IAU.OAM
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OAM FOR TESTONE_IAU.OAM
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OHSComponent FOR TESTONE_IAU.OHSComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OHSComponent FOR TESTONE_IAU.OHSComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OIDComponent FOR TESTONE_IAU.OIDComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OIDComponent FOR TESTONE_IAU.OIDComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OIF FOR TESTONE_IAU.OIF
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OIF FOR TESTONE_IAU.OIF
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OVDComponent FOR TESTONE_IAU.OVDComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OVDComponent FOR TESTONE_IAU.OVDComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OWSM_AGENT FOR TESTONE_IAU.OWSM_AGENT
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OWSM_AGENT FOR TESTONE_IAU.OWSM_AGENT
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.OWSM_PM_EJB FOR TESTONE_IAU.OWSM_PM_EJB
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.OWSM_PM_EJB FOR TESTONE_IAU.OWSM_PM_EJB
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.ReportsServerComponent FOR TESTONE_IAU.ReportsServerComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.ReportsServerComponent FOR TESTONE_IAU.ReportsServerComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.SOA_B2B FOR TESTONE_IAU.SOA_B2B
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.SOA_B2B FOR TESTONE_IAU.SOA_B2B
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.SOA_HCFP FOR TESTONE_IAU.SOA_HCFP
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.SOA_HCFP FOR TESTONE_IAU.SOA_HCFP
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.STS FOR TESTONE_IAU.STS
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.STS FOR TESTONE_IAU.STS
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.WS_PolicyAttachment FOR TESTONE_IAU.WS_PolicyAttachment
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.WS_PolicyAttachment FOR TESTONE_IAU.WS_PolicyAttachment
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.WebCacheComponent FOR TESTONE_IAU.WebCacheComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.WebCacheComponent FOR TESTONE_IAU.WebCacheComponent
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.WebServices FOR TESTONE_IAU.WebServices
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.WebServices FOR TESTONE_IAU.WebServices
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_VIEWER.xmlpserver FOR TESTONE_IAU.xmlpserver
/
CREATE OR REPLACE SYNONYM TESTONE_IAU_APPEND.xmlpserver FOR TESTONE_IAU.xmlpserver
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_COMMON FOR TESTONE_IAU.IAU_COMMON
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_COMMON FOR TESTONE_IAU.IAU_COMMON
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_CUSTOM FOR TESTONE_IAU.IAU_CUSTOM
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_CUSTOM FOR TESTONE_IAU.IAU_CUSTOM
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_CUSTOM_01 FOR TESTONE_IAU.IAU_CUSTOM_01
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_CUSTOM_01 FOR TESTONE_IAU.IAU_CUSTOM_01
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_SCHEMA_VERSION FOR TESTONE_IAU.IAU_SCHEMA_VERSION
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_SCHEMA_VERSION FOR TESTONE_IAU.IAU_SCHEMA_VERSION
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_USERSESSION FOR TESTONE_IAU.IAU_USERSESSION
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_USERSESSION FOR TESTONE_IAU.IAU_USERSESSION
/
CREATE or replace SYNONYM TESTONE_IAU_VIEWER.IAU_AUDITSERVICE FOR TESTONE_IAU.IAU_AUDITSERVICE
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.IAU_AUDITSERVICE FOR TESTONE_IAU.IAU_AUDITSERVICE
/
create or replace synonym TESTONE_IAU_VIEWER.list_of_components for TESTONE_IAU.list_of_components
/
create or replace synonym TESTONE_IAU_APPEND.list_of_components for TESTONE_IAU.list_of_components
/
create or replace synonym TESTONE_IAU_VIEWER.attribute_value_pairs for TESTONE_IAU.attribute_value_pairs
/
create or replace synonym TESTONE_IAU_APPEND.attribute_value_pairs for TESTONE_IAU.attribute_value_pairs
/
create or replace synonym TESTONE_IAU_VIEWER.auditreports_pkg for TESTONE_IAU.auditreports_pkg
/
create or replace synonym TESTONE_IAU_APPEND.auditreports_pkg for TESTONE_IAU.auditreports_pkg
/
create or replace synonym TESTONE_IAU_VIEWER.list_of_events for TESTONE_IAU.list_of_events
/
create or replace synonym TESTONE_IAU_APPEND.list_of_events for TESTONE_IAU.list_of_events
/
create or replace synonym TESTONE_IAU_VIEWER.auditschema_pkg for TESTONE_IAU.auditschema_pkg
/
create or replace synonym TESTONE_IAU_APPEND.auditschema_pkg for TESTONE_IAU.auditschema_pkg
/
CREATE or replace SYNONYM TESTONE_IAU_APPEND.ID_SEQ FOR TESTONE_IAU.ID_SEQ
/
CREATE or REPLACE SYNONYM TESTONE_IAU_VIEWER.IAU_DISP_NAMES_TL FOR TESTONE_IAU.IAU_DISP_NAMES_TL
/
CREATE or REPLACE SYNONYM TESTONE_IAU_APPEND.IAU_DISP_NAMES_TL FOR TESTONE_IAU.IAU_DISP_NAMES_TL
/
CREATE or REPLACE SYNONYM TESTONE_IAU_VIEWER.IAU_LOCALE_MAP_TL FOR TESTONE_IAU.IAU_LOCALE_MAP_TL
/
CREATE or REPLACE SYNONYM TESTONE_IAU_APPEND.IAU_LOCALE_MAP_TL FOR TESTONE_IAU.IAU_LOCALE_MAP_TL
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='IAU' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_IAU
/
---------------------------------------------------------
---------- IAU(Audit Services) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- OPSS(Oracle Platform Security Services) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='OPSS';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('OPSS', 'Oracle Platform Security Services', 'TESTONE', 'OPSS', 'OPSS', 'TESTONE_OPSS', '12.2.1.0.0', 'LOADING', '', 0);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_OPSS
IDENTIFIED BY "&SCHEMA_PASSWORD"
DEFAULT TABLESPACE TESTONE_IAS_OPSS
TEMPORARY TABLESPACE TESTONE_IAS_TEMP ';
end;
/
GRANT CREATE CLUSTER,
CREATE INDEXTYPE,
CREATE OPERATOR,
CREATE PROCEDURE,
CREATE SEQUENCE,
CREATE SESSION,
CREATE TABLE,
CREATE TRIGGER,
CREATE TYPE,
CREATE VIEW TO TESTONE_OPSS
/
ALTER USER TESTONE_OPSS QUOTA UNLIMITED ON TESTONE_IAS_OPSS
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='LOADED' WHERE comp_id='OPSS' AND mrc_name='TESTONE'
/
GRANT REGISTRYACCESS TO TESTONE_OPSS
/
---------------------------------------------------------
---------- OPSS(Oracle Platform Security Services) SECTION ENDS ----------
---------------------------------------------------------
---------------------------------------------------------
---------- BIPLATFORM(Business Intelligence Platform) SECTION STARTS ----------
---------------------------------------------------------
DECLARE
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE SYSTEM.SCHEMA_VERSION_REGISTRY$ ADD EDITION VARCHAR2(30)';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
DECLARE
compCnt NUMBER;
BEGIN
SELECT COUNT(*) INTO compCnt FROM SCHEMA_VERSION_REGISTRY
WHERE MRC_NAME='TESTONE' and COMP_ID='BIPLATFORM';
IF compCnt = 0 THEN
INSERT INTO SYSTEM.SCHEMA_VERSION_REGISTRY$ (comp_id, comp_name, mrc_name, mr_name, mr_type, owner, version, status, edition, custom1) VALUES ('BIPLATFORM', 'OracleBI and EPM', 'TESTONE', 'BIPLATFORM', 'BIPLATFORM', 'TESTONE_BIPLATFORM', '12.2.1.0.0', 'LOADING', '', 8192);
END IF;
END;
/
DECLARE
BEGIN
EXECUTE IMMEDIATE 'CREATE ROLE REGISTRYACCESS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY$ TO REGISTRYACCESS
/
GRANT SELECT, INSERT, UPDATE, DELETE ON SYSTEM.SCHEMA_VERSION_REGISTRY TO REGISTRYACCESS
/
accept SCHEMA_PASSWORD char prompt "Enter the schema password : " hide;
begin
execute immediate 'CREATE USER TESTONE_BIPLATFORM identified by &SCHEMA_PASSWORD default tablespace TESTONE_BIPLATFORM temporary tablespace TESTONE_IAS_TEMP';
end;
/
grant resource to TESTONE_BIPLATFORM
/
grant connect to TESTONE_BIPLATFORM
/
grant create sequence to TESTONE_BIPLATFORM
/
grant unlimited tablespace TO TESTONE_BIPLATFORM
/
grant create trigger to TESTONE_BIPLATFORM
/
grant administer database trigger to TESTONE_BIPLATFORM
/
grant create view to TESTONE_BIPLATFORM
/
SET ECHO ON
/
SET FEEDBACK 1
/
SET NUMWIDTH 10
/
SET LINESIZE 80
/
SET TRIMSPOOL ON
/
SET TAB OFF
/
SET PAGESIZE 100
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE qrtz_job_details
(
JOB_NAME VARCHAR2(200) NOT NULL,
JOB_GROUP VARCHAR2(200) NOT NULL,
DESCRIPTION VARCHAR2(250) NULL,
JOB_CLASS_NAME VARCHAR2(250) NOT NULL,
IS_DURABLE VARCHAR2(1) NOT NULL,
IS_VOLATILE VARCHAR2(1) NOT NULL,
IS_STATEFUL VARCHAR2(1) NOT NULL,
REQUESTS_RECOVERY VARCHAR2(1) NOT NULL,
JOB_DATA BLOB NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP)
)
/
CREATE TABLE qrtz_job_listeners
(
JOB_NAME VARCHAR2(200) NOT NULL,
JOB_GROUP VARCHAR2(200) NOT NULL,
JOB_LISTENER VARCHAR2(200) NOT NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP,JOB_LISTENER),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_JOB_DETAILS(JOB_NAME,JOB_GROUP)
)
/
CREATE TABLE qrtz_triggers
(
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
JOB_NAME VARCHAR2(200) NOT NULL,
JOB_GROUP VARCHAR2(200) NOT NULL,
IS_VOLATILE VARCHAR2(1) NOT NULL,
DESCRIPTION VARCHAR2(250) NULL,
NEXT_FIRE_TIME NUMBER(13) NULL,
PREV_FIRE_TIME NUMBER(13) NULL,
PRIORITY NUMBER(13) NULL,
TRIGGER_STATE VARCHAR2(16) NOT NULL,
TRIGGER_TYPE VARCHAR2(8) NOT NULL,
START_TIME NUMBER(13) NOT NULL,
END_TIME NUMBER(13) NULL,
CALENDAR_NAME VARCHAR2(200) NULL,
MISFIRE_INSTR NUMBER(2) NULL,
JOB_DATA BLOB NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_JOB_DETAILS(JOB_NAME,JOB_GROUP)
)
/
CREATE TABLE qrtz_simple_triggers
(
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
REPEAT_COUNT NUMBER(7) NOT NULL,
REPEAT_INTERVAL NUMBER(12) NOT NULL,
TIMES_TRIGGERED NUMBER(10) NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
)
/
CREATE TABLE qrtz_cron_triggers
(
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
CRON_EXPRESSION VARCHAR2(120) NOT NULL,
TIME_ZONE_ID VARCHAR2(80),
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
)
/
CREATE TABLE qrtz_blob_triggers
(
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
BLOB_DATA BLOB NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
)
/
CREATE TABLE qrtz_trigger_listeners
(
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
TRIGGER_LISTENER VARCHAR2(200) NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_LISTENER),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
)
/
CREATE TABLE qrtz_calendars
(
CALENDAR_NAME VARCHAR2(200) NOT NULL,
CALENDAR BLOB NOT NULL,
PRIMARY KEY (CALENDAR_NAME)
)
/
CREATE TABLE qrtz_paused_trigger_grps
(
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
PRIMARY KEY (TRIGGER_GROUP)
)
/
CREATE TABLE qrtz_fired_triggers
(
ENTRY_ID VARCHAR2(95) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
IS_VOLATILE VARCHAR2(1) NOT NULL,
INSTANCE_NAME VARCHAR2(200) NOT NULL,
FIRED_TIME NUMBER(13) NOT NULL,
PRIORITY NUMBER(13) NOT NULL,
STATE VARCHAR2(16) NOT NULL,
JOB_NAME VARCHAR2(200) NULL,
JOB_GROUP VARCHAR2(200) NULL,
IS_STATEFUL VARCHAR2(1) NULL,
REQUESTS_RECOVERY VARCHAR2(1) NULL,
PRIMARY KEY (ENTRY_ID)
)
/
CREATE TABLE qrtz_scheduler_state
(
INSTANCE_NAME VARCHAR2(200) NOT NULL,
LAST_CHECKIN_TIME NUMBER(13) NOT NULL,
CHECKIN_INTERVAL NUMBER(13) NOT NULL,
PRIMARY KEY (INSTANCE_NAME)
)
/
CREATE TABLE qrtz_locks
(
LOCK_NAME VARCHAR2(40) NOT NULL,
PRIMARY KEY (LOCK_NAME)
)
/
INSERT INTO qrtz_locks values('TRIGGER_ACCESS')
/
INSERT INTO qrtz_locks values('JOB_ACCESS')
/
INSERT INTO qrtz_locks values('CALENDAR_ACCESS')
/
INSERT INTO qrtz_locks values('STATE_ACCESS')
/
INSERT INTO qrtz_locks values('MISFIRE_ACCESS')
/
create index idx_qrtz_j_req_recovery on qrtz_job_details(REQUESTS_RECOVERY)
/
create index idx_qrtz_t_next_fire_time on qrtz_triggers(NEXT_FIRE_TIME)
/
create index idx_qrtz_t_state on qrtz_triggers(TRIGGER_STATE)
/
create index idx_qrtz_t_nft_st on qrtz_triggers(NEXT_FIRE_TIME,TRIGGER_STATE)
/
create index idx_qrtz_t_volatile on qrtz_triggers(IS_VOLATILE)
/
create index idx_qrtz_ft_trig_name on qrtz_fired_triggers(TRIGGER_NAME)
/
create index idx_qrtz_ft_trig_group on qrtz_fired_triggers(TRIGGER_GROUP)
/
create index idx_qrtz_ft_trig_nm_gp on qrtz_fired_triggers(TRIGGER_NAME,TRIGGER_GROUP)
/
create index idx_qrtz_ft_trig_volatile on qrtz_fired_triggers(IS_VOLATILE)
/
create index idx_qrtz_ft_trig_inst_name on qrtz_fired_triggers(INSTANCE_NAME)
/
create index idx_qrtz_ft_job_name on qrtz_fired_triggers(JOB_NAME)
/
create index idx_qrtz_ft_job_group on qrtz_fired_triggers(JOB_GROUP)
/
create index idx_qrtz_ft_job_stateful on qrtz_fired_triggers(IS_STATEFUL)
/
create index idx_qrtz_ft_job_req_recovery on qrtz_fired_triggers(REQUESTS_RECOVERY)
/
CREATE TABLE "SEQUENCE"
(
"SEQ_NAME" VARCHAR2(50) NOT NULL ENABLE,
"SEQ_COUNT" NUMBER(38,0)
)
/
ALTER TABLE "SEQUENCE" ADD PRIMARY KEY ("SEQ_NAME") ENABLE
/
Insert into SEQUENCE ("SEQ_NAME","SEQ_COUNT") values ('OUTPUT_ID_SEQ',1000)
/
Insert into SEQUENCE ("SEQ_NAME","SEQ_COUNT") values ('JOB_ID_SEQ', 1000)
/
Insert into SEQUENCE ("SEQ_NAME","SEQ_COUNT") values ('DELIVERY_ID_SEQ',1000)
/
Insert into SEQUENCE ("SEQ_NAME","SEQ_COUNT") values ('DATA_ID_SEQ', 1000)
/
CREATE TABLE "XMLP_APPINFO"
(
"COMPONENT" VARCHAR2(100) NOT NULL ENABLE,
"NAME" VARCHAR2(100) NOT NULL ENABLE,
"VALUE" VARCHAR2(1000)
)
/
Insert into XMLP_APPINFO ("COMPONENT","NAME","VALUE") values ('SCHEDULER','QUARTZ_VERSION','1.6.6')
/
Insert into XMLP_APPINFO ("COMPONENT","NAME","VALUE") values ('SCHEDULER','SCHEMA_VERSION','11.1.01')
/
CREATE TABLE "XMLP_SCHED_JOB"
(
"JOB_ID" NUMBER(12,0) NOT NULL ENABLE,
"JOB_TYPE" CHAR(1) NOT NULL ENABLE,
"DELETED" CHAR(1),
"STATUS" CHAR(1),
"STATUS_DETAIL" VARCHAR2(1000),
"INSTANCE_ID" NUMBER(12,0) DEFAULT 0 NOT NULL ENABLE,
"LAST_UPDATED" TIMESTAMP (6),
"CREATED" TIMESTAMP (6),
"BURSTING_PARAMETERS" BLOB,
"DELIVERY_PARAMETERS" BLOB,
"SCHEDULE_PARAMETERS" BLOB,
"REPORT_PARAMETERS" BLOB,
"NOTIFICATION_PARAMETERS" BLOB,
"XSCHURL" VARCHAR2(4000),
"DELIVERY_DESCRIPTION" VARCHAR2(4000),
"SCHEDULE_DESCRIPTION" VARCHAR2(100),
"END_DATE" TIMESTAMP (6),
"START_DATE" TIMESTAMP (6),
"BURSTING" CHAR(1),
"SHARED_OPTION" CHAR(1),
"RUN_TYPE" CHAR(1),
"USER_DESCRIPTION" VARCHAR2(4000),
"USER_JOB_NAME" VARCHAR2(1000),
"ISSUER" VARCHAR2(100) NOT NULL ENABLE,
"OWNER" VARCHAR2(100) NOT NULL ENABLE,
"REPORT_URL" VARCHAR2(1000) NOT NULL ENABLE,
"JOB_GROUP" VARCHAR2(1000) NOT NULL ENABLE,
"JOB_SET_ID" NUMBER(12,0),
"PARENT_JOB_ID" NUMBER(12,0),
"SCHEDULE_SOURCE" VARCHAR2(100),
"SCHEDULE_CONTEXT" VARCHAR2(1000),
"XML_DATA_AVAILABLE" CHAR(1),
"XML_DATA_COMPRESSED" CHAR(1),
"XML_DATA_CONTENT_TYPE" VARCHAR2(100),
"STORAGE_TYPE" VARCHAR2(100) DEFAULT 'db',
"DATA_LOCATOR" VARCHAR2(1000)
)
/
ALTER TABLE "XMLP_SCHED_JOB" ADD PRIMARY KEY ("JOB_ID") ENABLE
/
CREATE TABLE "XMLP_SCHED_OUTPUT"
(
"OUTPUT_ID" NUMBER(12,0) NOT NULL ENABLE,
"DELETED" CHAR(1),
"LAST_UPDATED" TIMESTAMP (6),
"CREATED" TIMESTAMP (6),
"DOCUMENT_DATA_AVAILABLE" CHAR(1),
"DOCUMENT_DATA_COMPRESSED" CHAR(1),
"DOCUMENT_DATA_CONTENT_TYPE" VARCHAR2(100),
"OUTPUT_PARAMETERS" BLOB,
"STATUS" CHAR(1),
"STATUS_DETAIL" VARCHAR2(1000),
"JOB_ID" NUMBER(12,0) NOT NULL ENABLE,
"PARENT_OUTPUT_ID" NUMBER(12,0),
"JOB_NAME" VARCHAR2(1000),
"OUTPUT_NAME" VARCHAR2(100),
"STORAGE_TYPE" VARCHAR2(100) DEFAULT 'db',
"DOCUMENT_LOCATOR" VARCHAR2(1000)
)
/
ALTER TABLE "XMLP_SCHED_OUTPUT" ADD PRIMARY KEY ("OUTPUT_ID") ENABLE
/
CREATE TABLE "XMLP_SCHED_DELIVERY"
(
"DELIVERY_ID" NUMBER(12,0) NOT NULL ENABLE,
"OUTPUT_ID" NUMBER(12,0) NOT NULL ENABLE,
"PARENT_DELIVERY_ID" NUMBER(12,0),
"LAST_UPDATED" TIMESTAMP (6),
"CREATED" TIMESTAMP (6),
"STATUS" CHAR(1),
"STATUS_DETAIL" VARCHAR2(1000),
"DELIVERY_PARAMETERS" BLOB
)
/
ALTER TABLE "XMLP_SCHED_DELIVERY" ADD PRIMARY KEY ("DELIVERY_ID") ENABLE
/
CREATE TABLE "XMLP_SCHED_DATA"
(
"DATA_ID" NUMBER(12,0) NOT NULL ENABLE,
"NEXT_DATA_ID" NUMBER(12,0),
"LAST_UPDATED" TIMESTAMP (6),
"CREATED" TIMESTAMP (6),
"DATA_SIZE" NUMBER(12,0),
"CHUNK_SIZE" NUMBER(12,0),
"DATA" BLOB
)
/
ALTER TABLE "XMLP_SCHED_DATA" ADD PRIMARY KEY ("DATA_ID") ENABLE
/
CREATE INDEX IDX_XMLP_JOB_JTYP ON XMLP_SCHED_JOB(JOB_TYPE)
/
CREATE INDEX IDX_XMLP_JOB_OWNE ON XMLP_SCHED_JOB(OWNER)
/
CREATE INDEX IDX_XMLP_JOB_PJID ON XMLP_SCHED_JOB(PARENT_JOB_ID)
/
CREATE INDEX IDX_XMLP_JOB_SOPT ON XMLP_SCHED_JOB(SHARED_OPTION)
/
CREATE INDEX IDX_XMLP_JOB_SDAT ON XMLP_SCHED_JOB(START_DATE)
/
CREATE INDEX IDX_XMLP_JOB_EDAT ON XMLP_SCHED_JOB(END_DATE)
/
CREATE INDEX IDX_XMLP_JOB_UJNA ON XMLP_SCHED_JOB(USER_JOB_NAME)
/
CREATE INDEX IDX_XMLP_JOB_RURL ON XMLP_SCHED_JOB(REPORT_URL)
/
CREATE INDEX IDX_XMLP_JOB_CREA ON XMLP_SCHED_JOB(CREATED)
/
CREATE INDEX IDX_XMLP_JOB_INID ON XMLP_SCHED_JOB(INSTANCE_ID)
/
CREATE INDEX IDX_XMLP_JOB_DELE ON XMLP_SCHED_JOB(DELETED)
/
CREATE INDEX IDX_XMLP_JOB_STAT ON XMLP_SCHED_JOB(STATUS)
/
CREATE INDEX IDX_XMLP_JOB_SSRC ON XMLP_SCHED_JOB(SCHEDULE_SOURCE)
/
CREATE INDEX IDX_XMLP_JOB_SCTX ON XMLP_SCHED_JOB(SCHEDULE_CONTEXT)
/
CREATE INDEX IDX_XMLP_OUT_JOID ON XMLP_SCHED_OUTPUT(JOB_ID)
/
CREATE INDEX IDX_XMLP_OUT_DELE ON XMLP_SCHED_OUTPUT(DELETED)
/
CREATE INDEX IDX_XMLP_OUT_JNAM ON XMLP_SCHED_OUTPUT(JOB_NAME)
/
CREATE INDEX IDX_XMLP_OUT_STAT ON XMLP_SCHED_OUTPUT(STATUS)
/
CREATE INDEX IDX_XMLP_DEL_OUID ON XMLP_SCHED_DELIVERY(OUTPUT_ID)
/
CREATE INDEX IDX_XMLP_DEL_STAT ON XMLP_SCHED_DELIVERY(STATUS)
/
CREATE INDEX IDX_XMLP_DAT_NDID ON XMLP_SCHED_DATA(NEXT_DATA_ID)
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_JOB
(
JOB_ID NUMBER(10,0) not null,
NAME NVARCHAR2(50), -- Use NVARCHAR2 for support of unicode Agent names and char length semantics (Bug 6194918)
DESC_TEXT VARCHAR2(255),
SCRIPT_TYPE VARCHAR2(20),
SCRIPT VARCHAR2(255),
MAX_RUNTIME_MS NUMBER(10,0),
USER_ID VARCHAR2(128),
NEXT_RUNTIME_TS DATE,
LAST_RUNTIME_TS DATE,
MAX_CNCURRENT_INST NUMBER(10,0),
BEGIN_YEAR NUMBER(10,0),
BEGIN_MONTH NUMBER(10,0),
BEGIN_DAY NUMBER(10,0),
END_YEAR NUMBER(10,0),
END_MONTH NUMBER(10,0),
END_DAY NUMBER(10,0),
START_HOUR NUMBER(10,0),
START_MINUTE NUMBER(10,0),
END_HOUR NUMBER(10,0),
END_MINUTE NUMBER(10,0),
INTERVAL_MINUTE NUMBER(10,0),
TRIGGER_TYPE NUMBER(10,0),
TRIGGER_DAY_INT NUMBER(10,0),
TRIGGER_WEEK_INT NUMBER(10,0),
TRIGGER_RANGE_DOW NUMBER(10,0),
TRIGGER_RANGE_DOM NUMBER(10,0),
TRIGGER_RANGE_MTH NUMBER(10,0),
TRIG_RANGE_DAY_OCC NUMBER(10,0),
DELETE_DONE_FLG NUMBER(10,0) not null,
DISABLE_FLG NUMBER(10,0) not null,
HAS_END_DT_FLG NUMBER(10,0) not null,
EXEC_WHEN_MISS_FLG NUMBER(10,0) not null,
DEL_SCPT_DONE_FLG NUMBER(10,0) not null,
PATH_IN_SCPT_FLG NUMBER(10,0) not null,
ISUSER_SCPT_FLG NUMBER(10,0) not null,
DELETE_FLG NUMBER(10,0) not null,
TZ_NAME VARCHAR2(100),
SERVICE VARCHAR2(128) not null
)
/
create unique index S_NQ_JOB_P1 on S_NQ_JOB
(JOB_ID)
/
create index S_NQ_JOB_M1 on S_NQ_JOB
(NEXT_RUNTIME_TS)
/
create index S_NQ_JOB_M2 on S_NQ_JOB
(USER_ID)
/
create index S_NQ_JOB_M3 ON S_NQ_JOB
(SERVICE)
/
CREATE TABLE S_NQ_JOB_PARAM
(
JOB_ID NUMBER(10,0) not null,
RELATIVE_ORDER NUMBER(10,0) not null,
JOB_PARAM VARCHAR2(255),
DELETE_FLG NUMBER(10,0) not null
)
/
CREATE TABLE S_NQ_SERVICE (
SERVICE VARCHAR2(128) NOT NULL,
SUSPENDED_FLG NUMBER(10,0) NOT NULL
)
/
create unique index S_NQ_SERVICE_P1 on S_NQ_SERVICE
(SERVICE)
/
CREATE TABLE S_NQ_INSTANCE
(
JOB_ID NUMBER(10,0) not null,
INSTANCE_ID NUMBER(20,0) not null,
STATUS NUMBER(10,0),
BEGIN_TS DATE,
END_TS DATE,
EXIT_CODE NUMBER(10,0),
DELETE_FLG NUMBER(10,0) not null,
ERROR_MSG_FLG NUMBER(10,0) not null
)
/
create unique index S_NQ_INSTANCE_U1 on S_NQ_INSTANCE
(JOB_ID,INSTANCE_ID)
/
CREATE INDEX S_NQ_INSTANCE_M1 ON S_NQ_INSTANCE (END_TS, STATUS, INSTANCE_ID)
/
CREATE INDEX S_NQ_INSTANCE_M2 ON S_NQ_INSTANCE (BEGIN_TS, STATUS, INSTANCE_ID)
/
CREATE INDEX S_NQ_INSTANCE_M3 ON S_NQ_INSTANCE (INSTANCE_ID, DELETE_FLG)
/
CREATE INDEX S_NQ_INSTANCE_M4 ON S_NQ_INSTANCE (JOB_ID, INSTANCE_ID, STATUS, DELETE_FLG)
/
CREATE INDEX S_NQ_INSTANCE_M5 ON S_NQ_INSTANCE (STATUS, DELETE_FLG)
/
CREATE TABLE S_NQ_ERR_MSG
(
JOB_ID NUMBER(10,0) not null,
INSTANCE_ID NUMBER(20,0) not null,
RELATIVE_ORDER NUMBER(10,0) not null,
ERROR_MSG_TEXT VARCHAR2(255),
DELETE_FLG NUMBER(10,0) not null
)
/
create unique index S_NQ_ERR_MSG_U1 on S_NQ_ERR_MSG
(JOB_ID,INSTANCE_ID,RELATIVE_ORDER)
/
CREATE INDEX S_NQ_ERR_MSG_F1 ON S_NQ_ERR_MSG (INSTANCE_ID)
/
COMMIT
/
COMMIT
/
COMMIT
/
SET ECHO ON
/
SET FEEDBACK 1
/
SET NUMWIDTH 10
/
SET LINESIZE 80
/
SET TRIMSPOOL ON
/
SET TAB OFF
/
SET PAGESIZE 100
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE TESTONE_BIPLATFORM."ANNOTATIONS"
( "OBJECT_ID" VARCHAR2(400),
"GRAIN_HASH_KEY" VARCHAR2(50),
"QDR_HASH_KEY" VARCHAR2(50),
"OBJECT_KEY" VARCHAR2(600),
"ENTRY_TIME" TIMESTAMP (6),
"SUBJECT" VARCHAR2(400),
"NOTES" VARCHAR2(1500),
"USER_INFO" VARCHAR2(400) NOT NULL ENABLE,
"ITEM" VARCHAR2(50),
"ANNOTATION_ID" VARCHAR2(50) NOT NULL ENABLE,
"PARENT_ANNOTATION_ID" VARCHAR2(50),
"TENANT" VARCHAR2(50)
)
/
ALTER TABLE TESTONE_BIPLATFORM."ANNOTATIONS" ADD PRIMARY KEY ("OBJECT_ID", "ITEM", "GRAIN_HASH_KEY", "QDR_HASH_KEY", "ENTRY_TIME") ENABLE
/
ALTER TABLE TESTONE_BIPLATFORM."ANNOTATIONS" ADD UNIQUE ("ANNOTATION_ID") ENABLE
/
CREATE INDEX TESTONE_BIPLATFORM."ANNOTATIONS_INDEX" ON TESTONE_BIPLATFORM."ANNOTATIONS" ("OBJECT_KEY")
/
CREATE TABLE TESTONE_BIPLATFORM."ASSESSMENT_OVERRIDES"
( "OBJECT_ID" VARCHAR2(400),
"GRAIN_HASH_KEY" VARCHAR2(50),
"QDR_HASH_KEY" VARCHAR2(50),
"OBJECT_KEY" VARCHAR2(600),
"ENTRY_TIME" TIMESTAMP (6),
"SUBJECT" VARCHAR2(400),
"NOTES" VARCHAR2(1500),
"USER_INFO" VARCHAR2(400) NOT NULL ENABLE,
"ITEM" VARCHAR2(50),
"OVERRIDE_ID" VARCHAR2(50) NOT NULL ENABLE,
"ORIGINAL_ASSESSMENT" NUMBER(5,2),
"OVERRIDDEN_ASSESSMENT" NUMBER(5,2),
"TENANT" VARCHAR2(50)
)
/
ALTER TABLE TESTONE_BIPLATFORM."ASSESSMENT_OVERRIDES" ADD PRIMARY KEY ("OBJECT_ID", "ITEM", "GRAIN_HASH_KEY", "QDR_HASH_KEY", "ENTRY_TIME") ENABLE
/
ALTER TABLE TESTONE_BIPLATFORM."ASSESSMENT_OVERRIDES" ADD UNIQUE ("OVERRIDE_ID") ENABLE
/
CREATE INDEX TESTONE_BIPLATFORM."ASSESSMENT_OVERRIDES_INDEX" ON TESTONE_BIPLATFORM."ASSESSMENT_OVERRIDES" ("OBJECT_KEY")
/
CREATE TABLE TESTONE_BIPLATFORM."SCORECARD_REGISTRY"
( "PLATFORM" VARCHAR2(50),
"VERSION" VARCHAR2(50)
)
/
insert into TESTONE_BIPLATFORM."SCORECARD_REGISTRY" ("PLATFORM", "VERSION") values ('ORACLE', '11.1.1.2.0')
/
COMMIT
/
COMMIT
/
COMMIT
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
create table S_NQ_ACCT
(
USER_NAME VARCHAR2(128),
REPOSITORY_NAME VARCHAR2(128),
SUBJECT_AREA_NAME VARCHAR2(128),
NODE_ID VARCHAR2(100),
START_TS DATE,
START_DT DATE,
START_HOUR_MIN CHAR(5),
END_TS DATE,
END_DT DATE,
END_HOUR_MIN CHAR(5),
QUERY_TEXT VARCHAR2(1024),
QUERY_BLOB CLOB,
QUERY_KEY VARCHAR2(128),
SUCCESS_FLG NUMBER(10,0),
ROW_COUNT NUMBER(20,0),
TOTAL_TIME_SEC NUMBER(10,0),
COMPILE_TIME_SEC NUMBER(10,0),
NUM_DB_QUERY NUMBER(10,0),
CUM_DB_TIME_SEC NUMBER(10,0),
CUM_NUM_DB_ROW NUMBER(20,0),
CACHE_IND_FLG CHAR(1) default 'N' not null,
QUERY_SRC_CD VARCHAR2(30) default '',
SAW_SRC_PATH VARCHAR2(250) default '',
SAW_DASHBOARD VARCHAR2(150) default '',
SAW_DASHBOARD_PG VARCHAR2(150) default '',
PRESENTATION_NAME VARCHAR2(128) default '',
ERROR_TEXT VARCHAR2(250) default '',
IMPERSONATOR_USER_NAME VARCHAR2(128) default '',
NUM_CACHE_INSERTED NUMBER(10,0) default null,
NUM_CACHE_HITS NUMBER(10,0) default null,
ID VARCHAR2(50),
ECID VARCHAR2(1024),
TENANT_ID VARCHAR2(128),
SERVICE_NAME VARCHAR2(128),
SESSION_ID NUMBER(10),
HASH_ID VARCHAR2(128),
TOTAL_TEMP_KB NUMBER(20,0) default null,
RESP_TIME_SEC NUMBER(10,0) default null,
CONSTRAINT S_NQ_ACCT_pk PRIMARY KEY (ID)
)
/
create index S_NQ_ACCT_M1 on S_NQ_ACCT
(START_DT, START_HOUR_MIN, USER_NAME)
/
create index S_NQ_ACCT_M2 on S_NQ_ACCT
(START_HOUR_MIN, USER_NAME)
/
create index S_NQ_ACCT_M3 on S_NQ_ACCT
(USER_NAME)
/
create table S_NQ_DB_ACCT
(
ID NUMBER(10,0),
LOGICAL_QUERY_ID VARCHAR2(50),
QUERY_TEXT VARCHAR2(1024),
QUERY_BLOB CLOB,
TIME_SEC NUMBER(10,0),
ROW_COUNT NUMBER(20,0),
START_TS DATE,
START_DT DATE,
START_HOUR_MIN CHAR(5),
END_TS DATE,
END_DT DATE,
END_HOUR_MIN CHAR(5),
HASH_ID VARCHAR2(128),
PHYSICAL_HASH_ID VARCHAR2(128),
CONSTRAINT fk_S_NQ_DB_ACCT FOREIGN KEY (LOGICAL_QUERY_ID) REFERENCES S_NQ_ACCT(ID) ON DELETE CASCADE
)
/
create index S_NQ_DB_ACCT_I1 on S_NQ_DB_ACCT (LOGICAL_QUERY_ID)
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_SUMMARY_ADVISOR
(
Version CHAR(32) default '' NOT NULL,
LogicalFactTableID CHAR(255) default '' NOT NULL,
LogicalTableSourceIDVector varchar2(4000),
ProcessingTimeInMilliSec NUMBER(10,0) default 0 NOT NULL,
QueryLevelIDvector CLOB,
SourceCellLevelIDvector CLOB,
LOGICAL_QUERY_ID VARCHAR2(50),
QueryStatus NUMBER(10,0) default 0 NOT NULL,
GROUPBYCOLUMNIDVECTOR CLOB,
MEASURECOLUMNIDVECTOR CLOB,
ROW_COUNT NUMBER(20,0) default 0 NOT NULL,
CONSTRAINT fk_S_NQ_SUMMARY_ADVISOR FOREIGN KEY (LOGICAL_QUERY_ID) REFERENCES S_NQ_ACCT(ID) ON DELETE CASCADE
)
/
create index S_NQ_SUMMARY_ADVISOR_I1 on S_NQ_SUMMARY_ADVISOR (LOGICAL_QUERY_ID)
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_EPT (
UPDATE_TYPE DECIMAL(10,0) DEFAULT 1 NOT NULL,
UPDATE_TS TIMESTAMP(3) DEFAULT SYSTIMESTAMP NOT NULL,
DATABASE_NAME VARCHAR2(120) NULL,
CATALOG_NAME VARCHAR2(120) NULL,
SCHEMA_NAME VARCHAR2(120) NULL,
TABLE_NAME VARCHAR2(120) NOT NULL,
OTHER_RESERVED VARCHAR2(120) DEFAULT NULL NULL
)
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_INITBLOCK
(
USER_NAME VARCHAR2(128),
REPOSITORY_NAME VARCHAR2(128),
TENANT_ID VARCHAR2(128),
SERVICE_NAME VARCHAR2(128),
ECID VARCHAR2(1024),
SESSION_ID NUMBER(10),
BLOCK_NAME VARCHAR2(128),
START_TS TIMESTAMP,
END_TS TIMESTAMP,
DURATION NUMBER(13,3),
NOTES VARCHAR2(1024)
)
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE CALCMGRCONFIG
( CONFIGKEY NVARCHAR2(50) NULL,
CONFIGVALUE NVARCHAR2(255) NULL
)
/
CREATE TABLE CALCMGRRULES
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
create sequence seq_CALCMGRRULES start with 1 increment by 1 order
/
alter table CALCMGRRULES add constraint pkCALCMGRRULES1 primary key(ID)
/
alter table CALCMGRRULES add constraint ukCALCMGRRULES1 unique(NAME,LOCATION)
/
CREATE TABLE CALCMGRSEQUENCES
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
create sequence seq_CALCMGRSEQUENCES start with 1 increment by 1 order
/
alter table CALCMGRSEQUENCES add constraint pkCALCMGRSEQUENCES1 primary key(ID)
/
alter table CALCMGRSEQUENCES add constraint ukCALCMGRSEQUENCES1 unique(NAME,LOCATION)
/
CREATE TABLE CALCMGRVARIABLES
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL,
PARENTID NUMBER(10,0) NULL,
PARENTTYPE NUMBER(10,0) NULL
)
/
create sequence seq_CALCMGRVARIABLES start with 1 increment by 1 order
/
alter table CALCMGRVARIABLES add constraint pkCALCMGRVARIABLES1 primary key(ID)
/
alter table CALCMGRVARIABLES add constraint ukCALCMGRVARIABLES1 unique(PRODUCTTYPE,NAME,LOCATION,LOCATIONSUBTYPE,PARENTID,PARENTTYPE)
/
CREATE TABLE CALCMGRCACHEEVENTS
(
ACTION NVARCHAR2(10) NOT NULL,
ACTIONTIME timestamp DEFAULT systimestamp NOT NULL,
CACHENAME NVARCHAR2(512) NOT NULL,
CLASSNAME NVARCHAR2(255) NOT NULL,
KEYDEF BLOB NULL,
DATA BLOB NULL,
SOURCE NVARCHAR2(512) NULL
)
/
CREATE INDEX idxCALCMGRCACHEEVENTS1 ON CALCMGRCACHEEVENTS ( ACTIONTIME )
/
CREATE TABLE CALCMGRCOMPONENTS
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
create sequence seq_CALCMGRCOMPONENTS start with 1 increment by 1 order
/
alter table CALCMGRCOMPONENTS add constraint pkCALCMGRCOMPONENTS1 primary key(ID)
/
alter table CALCMGRCOMPONENTS add constraint ukCALCMGRCOMPONENTS1 unique(NAME,LOCATION,LOCATIONSUBTYPE)
/
CREATE TABLE CALCMGROBJECTLINKS
(
PARENTID NUMBER(10,0) NOT NULL,
PARENTTYPE NUMBER(10,0) NOT NULL,
CHILDID NUMBER(10,0) NOT NULL,
CHILDTYPE NUMBER(10,0) NOT NULL,
CHILDINDEX NUMBER(10,0) NOT NULL
)
/
CREATE INDEX idxCALCMGROBJECTLINKS1 ON CALCMGROBJECTLINKS ( PARENTID , PARENTTYPE )
/
CREATE INDEX idxCALCMGROBJECTLINKS2 ON CALCMGROBJECTLINKS ( CHILDID , CHILDTYPE )
/
alter table CALCMGROBJECTLINKS add constraint ukCALCMGROBJECTLINKS1 unique(PARENTID,PARENTTYPE,CHILDID,CHILDTYPE,CHILDINDEX)
/
CREATE TABLE CALCMGRFOLDERS
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
create sequence seq_CALCMGRFOLDERS start with 1 increment by 1 order
/
alter table CALCMGRFOLDERS add constraint pkCALCMGRFOLDERS1 primary key(ID)
/
alter table CALCMGRFOLDERS add constraint ukCALCMGRFOLDERS1 unique(NAME,LOCATION,LOCATIONSUBTYPE)
/
CREATE TABLE CALCMGRUSERSETTINGS
(
USERID NVARCHAR2(256) NULL,
NAME NVARCHAR2(50) NULL,
SETTINGS BLOB NULL
)
/
alter table CALCMGRUSERSETTINGS add constraint ukCALCMGRUSERSETTINGS1 unique(USERID,NAME)
/
CREATE TABLE CALCMGRTEMPLATES
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(512) NOT NULL,
UPPERNAME NVARCHAR2(512) NOT NULL,
DESCRIPTION NVARCHAR2(255) NULL,
OWNER NVARCHAR2(255) NULL,
CREATED timestamp DEFAULT systimestamp NOT NULL,
MODIFIEDBY NVARCHAR2(255) NULL,
LASTMODIFIED timestamp NULL,
LOCKEDBY NVARCHAR2(255) NULL,
OPENFOREDITINGBY NVARCHAR2(255) NULL,
ISOPENFOREDITING NUMBER(3,0) NULL,
OBJECTTYPEID NUMBER(10,0) NOT NULL,
PRODUCTTYPE NUMBER(10,0) NOT NULL,
PROPERTY BLOB NULL,
BODY BLOB NULL,
LOCATION NVARCHAR2(255) NULL,
LOCATIONSUBTYPE NVARCHAR2(255) NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
create sequence seq_CALCMGRTEMPLATES start with 1 increment by 1 order
/
alter table CALCMGRTEMPLATES add constraint pkCALCMGRTEMPLATES1 primary key(ID)
/
alter table CALCMGRTEMPLATES add constraint ukCALCMGRTEMPLATES1 unique(NAME,LOCATION,LOCATIONSUBTYPE)
/
CREATE TABLE CALCMGRDEPLOYDETAILS
(
OBJECTID NUMBER(10,0) NOT NULL,
OBJECTTYPE NUMBER(10,0) NOT NULL,
APPLICATION NVARCHAR2(30) NULL,
APPLICATIONID NUMBER(10,0) NOT NULL,
APPLICATIONTYPE NVARCHAR2(30) NULL,
DEPLOYTIME timestamp DEFAULT systimestamp NULL
)
/
CREATE INDEX idxCALCMGRDEPLOYDETAILS1 ON CALCMGRDEPLOYDETAILS ( OBJECTID , OBJECTTYPE )
/
CREATE INDEX idxCALCMGRDEPLOYDETAILS2 ON CALCMGRDEPLOYDETAILS ( APPLICATION )
/
CREATE INDEX idxCALCMGRDEPLOYDETAILS3 ON CALCMGRDEPLOYDETAILS ( APPLICATIONID )
/
alter table CALCMGRDEPLOYDETAILS add constraint ukCALCMGRDEPLOYDETAILS1 unique(OBJECTID,OBJECTTYPE,APPLICATIONID,APPLICATION,APPLICATIONTYPE)
/
CREATE TABLE CALCMGRDEPLOYVIEW
(
PRODUCTTYPE NUMBER(10,0) NOT NULL,
APPLICATIONNAME NVARCHAR2(50) NOT NULL,
APPLICATIONID NUMBER(10,0) NULL,
PLANTYPE NVARCHAR2(50) NULL,
CALCTYPE NVARCHAR2(50) NULL,
OBJECTID NUMBER(10,0) NOT NULL,
OBJECTTYPE NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(50) NOT NULL,
DEPLOYTIME timestamp NULL,
BODY BLOB NULL
)
/
CREATE INDEX idxCALCMGRDEPLOYVIEW1 ON CALCMGRDEPLOYVIEW ( OBJECTID , OBJECTTYPE )
/
CREATE INDEX idxCALCMGRDEPLOYVIEW2 ON CALCMGRDEPLOYVIEW ( PRODUCTTYPE , APPLICATIONNAME , PLANTYPE )
/
alter table CALCMGRDEPLOYVIEW add constraint ukCALCMGRDEPLOYVIEW1 unique(PRODUCTTYPE,APPLICATIONNAME,APPLICATIONID,PLANTYPE,OBJECTID,OBJECTTYPE)
/
CREATE TABLE CALCMGRDEPLOYEDVIEW
(
PRODUCTTYPE NUMBER(10,0) NOT NULL,
APPLICATIONNAME NVARCHAR2(50) NOT NULL,
APPLICATIONID NUMBER(10,0) NULL,
PLANTYPE NVARCHAR2(50) NULL,
CALCTYPE NVARCHAR2(50) NULL,
OBJECTID NUMBER(10,0) NOT NULL,
OBJECTTYPE NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(50) NOT NULL,
DEPLOYTIME timestamp NULL,
BODY BLOB NULL
)
/
CREATE INDEX idxCALCMGRDEPLOYEDVIEW1 ON CALCMGRDEPLOYEDVIEW ( OBJECTID , OBJECTTYPE )
/
CREATE INDEX idxCALCMGRDEPLOYEDVIEW2 ON CALCMGRDEPLOYEDVIEW ( PRODUCTTYPE , APPLICATIONNAME , PLANTYPE )
/
alter table CALCMGRDEPLOYEDVIEW add constraint ukCALCMGRDEPLOYEDVIEW1 unique(PRODUCTTYPE,APPLICATIONNAME,APPLICATIONID,PLANTYPE,OBJECTID,OBJECTTYPE)
/
CREATE TABLE CALCMGROBJECTACCESS
(
PRODUCTTYPE NUMBER(10,0) NOT NULL,
APPLICATION NVARCHAR2(255) NOT NULL,
PLANTYPE NVARCHAR2(50) NULL,
OBJECTID NVARCHAR2(50) NOT NULL,
OBJECTTYPE NUMBER(10,0) NOT NULL,
ACCESSTYPE NUMBER(10,0) NOT NULL,
USERID NUMBER(10,0) NOT NULL,
USERACCESS NUMBER(10,0) NOT NULL
)
/
CREATE INDEX idxCALCMGROBJECTACCESS1 ON CALCMGROBJECTACCESS ( OBJECTID , OBJECTTYPE )
/
CREATE INDEX idxCALCMGROBJECTACCESS2 ON CALCMGROBJECTACCESS ( USERID )
/
alter table CALCMGROBJECTACCESS add constraint ukCALCMGROBJECTACCESS1 unique(APPLICATION,PLANTYPE,OBJECTID,OBJECTTYPE,ACCESSTYPE,USERID)
/
CREATE TABLE CALCMGRUSERS
(
ID NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(128) NOT NULL,
UIDENTITY NVARCHAR2(256) NOT NULL,
TYPE NUMBER(10,0) NOT NULL
)
/
CREATE INDEX idxCALCMGRUSERS1 ON CALCMGRUSERS ( UIDENTITY )
/
alter table CALCMGRUSERS add constraint pkCALCMGRUSERS1 primary key(ID)
/
CREATE TABLE CALCMGRSHORTCUTS
(
PRODUCT NUMBER(10,0) NOT NULL,
APPLICATIONNAME NVARCHAR2(50) NOT NULL,
APPLICATIONID NUMBER(10,0) NULL,
PLANTYPE NVARCHAR2(50) NULL,
OBJECTID NUMBER(10,0) NOT NULL,
OBJECTTYPE NUMBER(10,0) NOT NULL,
NAME NVARCHAR2(50) NOT NULL,
VALIDATESTATUS NUMBER(3,0) NULL,
DEPLOYSTATUS NUMBER(3,0) NULL
)
/
CREATE INDEX idxCALCMGRSHORTCUTS1 ON CALCMGRSHORTCUTS ( OBJECTID , OBJECTTYPE )
/
CREATE TABLE CALCMGRFUNCTIONS
(
APPLICATIONNAME NVARCHAR2(50) NOT NULL,
PLANTYPE NVARCHAR2(50) NULL,
BODY BLOB NULL
)
/
alter table CALCMGRFUNCTIONS add constraint ukCALCMGRFUNCTIONS1 unique(APPLICATIONNAME,PLANTYPE)
/
CREATE TABLE "ANNOT_CONTEXTS" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID_LIST" VARCHAR2(512) NOT NULL,
"ANNOTATION_ID" VARCHAR2(512) NOT NULL,
CONSTRAINT "PK_ANNOTATIONCONTEXT" PRIMARY KEY ("SET_ID", "ELEMENT_VALUE_ID_LIST", "ANNOTATION_ID")
)
/
CREATE TABLE "ANNOT_ELEMENTS" (
"ELEMENT_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_NAME" VARCHAR2(256) NOT NULL,
"SOURCE" VARCHAR2(256) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENT" PRIMARY KEY ("ELEMENT_ID", "ELEMENT_NAME", "SOURCE")
)
/
CREATE TABLE "ANNOT_ELEMENT_GROUPS" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_ID" NUMBER(11,0) NOT NULL,
"ORDINAL" NUMBER(11,0) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTGROUP" PRIMARY KEY ("SET_ID", "ELEMENT_ID", "ORDINAL")
)
/
CREATE TABLE "ANNOT_ELEMENT_GROUP1" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID1" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID_LIST" VARCHAR2(512) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTGROUP1" PRIMARY KEY ("SET_ID", "ELEMENT_VALUE_ID1", "ELEMENT_VALUE_ID_LIST")
)
/
CREATE TABLE "ANNOT_ELEMENT_GROUP2" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID1" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID2" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID_LIST" VARCHAR2(512) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTGROUP2" PRIMARY KEY ("SET_ID", "ELEMENT_VALUE_ID1", "ELEMENT_VALUE_ID2", "ELEMENT_VALUE_ID_LIST")
)
/
CREATE TABLE "ANNOT_ELEMENT_GROUP3" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID1" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID2" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID3" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID_LIST" VARCHAR2(512) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTGROUP3" PRIMARY KEY ("SET_ID", "ELEMENT_VALUE_ID1", "ELEMENT_VALUE_ID2", "ELEMENT_VALUE_ID3", "ELEMENT_VALUE_ID_LIST")
)
/
CREATE TABLE "ANNOT_ELEMENT_SETS" (
"SET_ID" NUMBER(11,0) NOT NULL,
"ORDINAL" NUMBER(11,0) NOT NULL,
"ELEMENT_ID" NUMBER(11,0) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTSET" PRIMARY KEY ("SET_ID", "ORDINAL", "ELEMENT_ID")
)
/
CREATE TABLE "ANNOT_ELEMENT_VALUES" (
"ELEMENT_ID" NUMBER(11,0) NOT NULL,
"SET_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE_ID" NUMBER(11,0) NOT NULL,
"ELEMENT_VALUE" VARCHAR2(256) NOT NULL,
CONSTRAINT "PK_CONTEXTELEMENTVALUE" PRIMARY KEY ("ELEMENT_ID", "SET_ID", "ELEMENT_VALUE_ID", "ELEMENT_VALUE")
)
/
CREATE INDEX "AC_ELEMENTVALUEIDLIST" ON "ANNOT_CONTEXTS" ("ELEMENT_VALUE_ID_LIST")
/
CREATE INDEX "AEV_ELEMENTVALUE" ON "ANNOT_ELEMENT_VALUES" ("ELEMENT_VALUE")
/
CREATE TABLE "FR_SCHEDULER_DATA" (
"JOB_ID" VARCHAR2(128) NOT NULL,
"STATE" NUMBER(11,0) NOT NULL,
"XML" BLOB NOT NULL,
"START_TIME" DATE,
"END_TIME" DATE,
"LAST_UPDATED" DATE,
CONSTRAINT "PK_FR_SCHEDULER_DATA" PRIMARY KEY ("JOB_ID")
)
/
CREATE TABLE WKS_IDENTITY (ID NUMBER(10) NOT NULL, TYPE VARCHAR2(1) NOT NULL, MODIFIED VARCHAR2(255) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_IDENTITY_XREF (SOURCE_ID NUMBER(10) NOT NULL, TARGET_ID NUMBER(10) NOT NULL, PRIMARY KEY (SOURCE_ID, TARGET_ID))
/
CREATE TABLE WKS_VERSION (ID NUMBER(10) NOT NULL, INFO VARCHAR2(255) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_SUBJECT (ID NUMBER(10) NOT NULL, NAME VARCHAR2(255) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_USER (ID NUMBER(10) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_GROUP (ID NUMBER(10) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_ROLE (ID NUMBER(10) NOT NULL, PRIMARY KEY (ID))
/
CREATE TABLE WKS_PROPERTY (ID NUMBER(10) NOT NULL, NAME VARCHAR2(255) NOT NULL, VAL CLOB NOT NULL, ORD NUMBER(10) NOT NULL, PRIMARY KEY (ID))
/
ALTER TABLE WKS_IDENTITY_XREF ADD CONSTRAINT FK_WKS_IDENTITY_XREF_SOURCE_ID FOREIGN KEY (SOURCE_ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_IDENTITY_XREF ADD CONSTRAINT FK_WKS_IDENTITY_XREF_TARGET_ID FOREIGN KEY (TARGET_ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_VERSION ADD CONSTRAINT FK_WKS_VERSION_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_SUBJECT ADD CONSTRAINT FK_WKS_SUBJECT_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_USER ADD CONSTRAINT FK_WKS_USER_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_GROUP ADD CONSTRAINT FK_WKS_GROUP_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_ROLE ADD CONSTRAINT FK_WKS_ROLE_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
ALTER TABLE WKS_PROPERTY ADD CONSTRAINT FK_WKS_PROPERTY_ID FOREIGN KEY (ID) REFERENCES WKS_IDENTITY (ID)
/
CREATE SEQUENCE WKS_IDENTITY_SEQ START WITH 1
/
COMMENT ON TABLE WKS_IDENTITY IS 'Stores an identity'
/
COMMENT ON COLUMN WKS_IDENTITY.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON COLUMN WKS_IDENTITY.TYPE IS 'The identity type is a (V)ersion, (P)roperty, (S)ubject, (U)ser, (G)roup, (R)ole'
/
COMMENT ON COLUMN WKS_IDENTITY.MODIFIED IS 'The information detailing by whom and when modified the identity last'
/
COMMENT ON TABLE WKS_IDENTITY_XREF IS 'Stores the relationship between two identities'
/
COMMENT ON COLUMN WKS_IDENTITY_XREF.SOURCE_ID IS 'The source identity identifier which is unique across all tables'
/
COMMENT ON COLUMN WKS_IDENTITY_XREF.TARGET_ID IS 'The target identity identifier which is unique across all tables'
/
COMMENT ON TABLE WKS_VERSION IS 'Stores version information for maintenance and upgrades'
/
COMMENT ON COLUMN WKS_VERSION.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON COLUMN WKS_VERSION.INFO IS 'The version information'
/
COMMENT ON TABLE WKS_SUBJECT IS 'Stores a subject in the CSS system'
/
COMMENT ON COLUMN WKS_SUBJECT.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON COLUMN WKS_SUBJECT.NAME IS 'The subject name which is a CSS identity'
/
COMMENT ON TABLE WKS_USER IS 'Stores a user in the CSS system'
/
COMMENT ON COLUMN WKS_USER.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON TABLE WKS_GROUP IS 'Stores a group in the CSS system'
/
COMMENT ON COLUMN WKS_GROUP.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON TABLE WKS_ROLE IS 'Stores a role in the CSS system'
/
COMMENT ON COLUMN WKS_ROLE.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON TABLE WKS_PROPERTY IS 'Stores a property for a subject in the CSS system'
/
COMMENT ON COLUMN WKS_PROPERTY.ID IS 'An identifier which is unique across all tables'
/
COMMENT ON COLUMN WKS_PROPERTY.NAME IS 'The property name'
/
COMMENT ON COLUMN WKS_PROPERTY.VAL IS 'The property value'
/
COMMENT ON COLUMN WKS_PROPERTY.ORD IS 'The property order is -1 for single-valued, otherwise 0-based for multi-valued'
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE SEQUENCE S_NQ_DSS_PROVIDER_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_PROVIDER_INSTANCES
(
PROVIDER_ID NUMBER PRIMARY KEY,
STRIPE_ID NUMBER, -- NULLABLE
INSTANCE_NAME VARCHAR2(20) NOT NULL UNIQUE,
RESOURCE_NAME VARCHAR2(20) NOT NULL,
PROVIDER_TYPE VARCHAR2(20) NOT NULL,
CONFIGURATION_VALUE_1 VARCHAR2(200)
)
/
INSERT INTO S_NQ_DSS_PROVIDER_INSTANCES ( PROVIDER_ID, INSTANCE_NAME, RESOURCE_NAME, PROVIDER_TYPE ) VALUES ( 1, '<noprovider>', 'managed', 'none' )
/
INSERT INTO S_NQ_DSS_PROVIDER_INSTANCES ( PROVIDER_ID, INSTANCE_NAME, RESOURCE_NAME, PROVIDER_TYPE ) VALUES ( 2, 'dbstore1', 'managed', 'db' )
/
INSERT INTO S_NQ_DSS_PROVIDER_INSTANCES ( PROVIDER_ID, INSTANCE_NAME, RESOURCE_NAME, PROVIDER_TYPE, CONFIGURATION_VALUE_1 ) VALUES ( 3, 'defaultstore', 'managed', 'file',NULL)
/
CREATE SEQUENCE S_NQ_DSS_SERVICE_STRIPE_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_SERVICE_STRIPES
(
STRIPE_ID NUMBER NOT NULL PRIMARY KEY,
STRIPE_NAME VARCHAR2(256) NOT NULL UNIQUE,
GUID_PREFIX VARCHAR2(11) NOT NULL,
PROVISIONING_VERSION VARCHAR2(50),
PROVISIONED_DATE TIMESTAMP,
MANAGED_PROVIDER_ID NUMBER REFERENCES S_NQ_DSS_PROVIDER_INSTANCES(PROVIDER_ID),
QUOTA_KILOBYTE_LIMIT NUMBER NOT NULL,
FILE_KILOBYTE_LIMIT NUMBER NOT NULL,
USER_QUOTA_KILOBYTE_LIMIT NUMBER NOT NULL,
USED_QUOTA_KILOBYTES NUMBER DEFAULT 0 NOT NULL
)
/
CREATE SEQUENCE S_NQ_DSS_IDENTITY_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_IDENTITIES
(
IDENTITY_ID NUMBER NOT NULL PRIMARY KEY,
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
TYPE CHAR CHECK (TYPE IN ('r','g','s','u')), -- 'r' == ROLE, 'g' GROUP, 's' SPECIAL 'u' USER
ROLE_OR_GUID VARCHAR2(256) NOT NULL,
LAST_KNOWN_NAME VARCHAR2(256), -- FOR LCM PURPOSES ONLY
QUOTA_KILOBYTE_LIMIT NUMBER,
FILE_KILOBYTE_LIMIT NUMBER,
CREATED_DATE TIMESTAMP,
USED_QUOTA_KILOBYTES NUMBER DEFAULT 0 NOT NULL
)
/
ALTER TABLE S_NQ_DSS_IDENTITIES ADD CONSTRAINT S_NQ_DSS_UNIQ_IDENTITIES UNIQUE (STRIPE_ID,ROLE_OR_GUID)
/
CREATE SEQUENCE S_NQ_DSS_ACL_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_ACLS
(
ACL_ID NUMBER NOT NULL PRIMARY KEY,
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
ACL_NAME VARCHAR2(50),
ACL_OWNER_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID), -- SET TO NOOWNER ID WHEN NAME IS NULL
LAST_MODIFIED TIMESTAMP
)
/
CREATE INDEX S_NQ_DSS_ACLS_IDX ON S_NQ_DSS_ACLS ( ACL_ID, STRIPE_ID, ACL_NAME )
/
CREATE TABLE S_NQ_DSS_ACL_ENTRIES
(
ACL_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_ACLS(ACL_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
IDENTITY_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID),
LIST_PERM CHAR, -- 'Y' OR NULL
READ_PERM CHAR, -- 'Y' OR NULL
WRITE_PERM CHAR,
EXECUTE_PERM CHAR,
DELETE_PERM CHAR,
CHANGEPERMISSIONS_PERM CHAR
)
/
ALTER TABLE S_NQ_DSS_ACL_ENTRIES ADD CONSTRAINT PK_S_NQ_DSS_ACL_ENTRIES PRIMARY KEY (ACL_ID, IDENTITY_ID)
/
CREATE TABLE S_NQ_DSS_FILETYPES
(
FILETYPE_ID NUMBER NOT NULL PRIMARY KEY,
FILETYPE_NAME VARCHAR2(50) NOT NULL
)
/
INSERT INTO S_NQ_DSS_FILETYPES(FILETYPE_ID,FILETYPE_NAME) VALUES (1,'excel')
/
INSERT INTO S_NQ_DSS_FILETYPES(FILETYPE_ID,FILETYPE_NAME) VALUES (2,'text')
/
CREATE TABLE S_NQ_DSS_SERVICE_INFO
(
NAME VARCHAR2(50) NOT NULL PRIMARY KEY,
VALUE VARCHAR2(100)
)
/
INSERT INTO S_NQ_DSS_SERVICE_INFO (NAME,VALUE) VALUES ('data','0.4')
/
INSERT INTO S_NQ_DSS_SERVICE_INFO (NAME,VALUE) VALUES ('metadata','0.4')
/
CREATE SEQUENCE S_NQ_DSS_DATASET_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_DATASETS
(
DATASET_ID NUMBER NOT NULL PRIMARY KEY,
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
DATASET_NAME VARCHAR2(256) NOT NULL,
FILESTORE_ID VARCHAR2(128) NOT NULL,
ACL_ID NUMBER REFERENCES S_NQ_DSS_ACLS(ACL_ID),
FILETYPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_FILETYPES(FILETYPE_ID),
MIMETYPE VARCHAR2(25),
OWNER_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID),
CREATEDBY_ID NUMBER REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID),
PROVIDER_ID NUMBER REFERENCES S_NQ_DSS_PROVIDER_INSTANCES(PROVIDER_ID) NOT NULL,
TYPE_OPTIONS_XML CLOB,
PROVIDER_OPTIONS_XML CLOB,
FILETYPE_KNOBS CLOB,
FILE_LENGTH NUMBER,
STORAGE_FILE_LENGTH NUMBER, -- FOR COMPRESSION
LAST_MODIFIED TIMESTAMP,
CREATED_DATE TIMESTAMP,
BISERVERMETADATA_LAST_MODIFIED TIMESTAMP,
RAWFILE_LAST_MODIFIED TIMESTAMP,
IS_EMBRYONIC CHAR CHECK (IS_EMBRYONIC IN ('y','n')),
IS_USER_STRIPED CHAR CHECK (IS_USER_STRIPED IN ('y','n')),
INTERNAL_ID VARCHAR2(256) NOT NULL,
NAMESPACE VARCHAR2(128) NOT NULL
)
/
ALTER TABLE S_NQ_DSS_DATASETS ADD CONSTRAINT S_NQ_DSS_UNIQ_DATASETS UNIQUE (STRIPE_ID, DATASET_NAME,NAMESPACE)
/
CREATE INDEX S_NQ_DSS_DATASETS_INDEX ON S_NQ_DSS_DATASETS ( ACL_ID )
/
CREATE INDEX S_NQ_DSS_DATASETS_INDEX2 ON S_NQ_DSS_DATASETS ( STRIPE_ID, DATASET_NAME, OWNER_ID )
/
CREATE OR REPLACE TRIGGER S_NQ_DSS_DATASETS_TRG
AFTER DELETE OR INSERT OR UPDATE ON S_NQ_DSS_DATASETS
FOR EACH ROW
BEGIN
-- UPDATE or DELETE
IF (:old.owner_id IS NOT NULL)
THEN
UPDATE s_nq_dss_identities
SET used_quota_kilobytes = used_quota_kilobytes - :old.file_length / 1024
WHERE identity_id = :old.owner_id;
UPDATE s_nq_dss_service_stripes
SET used_quota_kilobytes = used_quota_kilobytes - :old.file_length / 1024
WHERE stripe_id = :old.stripe_id;
END IF;
-- UPDATE or INSERT
IF (:new.owner_id IS NOT NULL)
THEN
UPDATE s_nq_dss_identities
SET used_quota_kilobytes = used_quota_kilobytes + :new.file_length / 1024
WHERE identity_id = :new.owner_id;
UPDATE s_nq_dss_service_stripes
SET used_quota_kilobytes = used_quota_kilobytes + :new.file_length / 1024
WHERE stripe_id = :new.stripe_id;
END IF;
END;
/
CREATE TABLE S_NQ_DSS_DATASET_DATASTRIPES
(
DATASET_ID NUMBER REFERENCES S_NQ_DSS_DATASETS(DATASET_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
USERS_ID NUMBER REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID), -- NULLABLE
FILE_ID VARCHAR2(36) NOT NULL,
FILE_LENGTH NUMBER,
LAST_MODIFIED TIMESTAMP
)
/
CREATE INDEX S_NQ_DSS_DATASET_DATASTR_INDEX ON S_NQ_DSS_DATASET_DATASTRIPES ( DATASET_ID )
/
CREATE TABLE S_NQ_DSS_DATASET_ALIASES
(
DATASET_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASETS(DATASET_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
LOCALE VARCHAR2(5) NOT NULL,
ALIAS VARCHAR2(256) NOT NULL,
NAMESPACE VARCHAR2(128) NOT NULL
)
/
ALTER TABLE S_NQ_DSS_DATASET_ALIASES ADD CONSTRAINT PK_S_NQ_DSS_DATASET_ALIASES PRIMARY KEY (STRIPE_ID, DATASET_ID, LOCALE)
/
ALTER TABLE S_NQ_DSS_DATASET_ALIASES ADD CONSTRAINT S_NQ_DSS_UNIQ_ALIASES UNIQUE (STRIPE_ID, NAMESPACE, ALIAS, LOCALE)
/
CREATE INDEX S_NQ_DSS_DATASET_ALIASES_INDEX ON S_NQ_DSS_DATASET_ALIASES (DATASET_ID)
/
CREATE TABLE S_NQ_DSS_DATASET_CUSTOM
(
DATASET_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASETS(DATASET_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
NAME VARCHAR2(20),
VALUE VARCHAR2(100)
)
/
CREATE INDEX S_NQ_DSS_DATASET_CUSTOM_INDEX ON S_NQ_DSS_DATASET_CUSTOM ( DATASET_ID )
/
CREATE TABLE S_NQ_DSS_DATASET_DESCRIPTIONS
(
DATASET_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASETS(DATASET_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
LOCALE VARCHAR2(5) NOT NULL,
DESCRIPTION VARCHAR2(500)
)
/
ALTER TABLE S_NQ_DSS_DATASET_DESCRIPTIONS ADD CONSTRAINT PK_S_NQ_DSS_DATASET_DESC PRIMARY KEY (STRIPE_ID, DATASET_ID, LOCALE)
/
CREATE INDEX S_NQ_DSS_DATASET_DESC_INDEX ON S_NQ_DSS_DATASET_DESCRIPTIONS ( DATASET_ID )
/
CREATE TABLE S_NQ_DSS_DATASET_ATTRTYPES
(
ATTRTYPE_ID NUMBER NOT NULL PRIMARY KEY,
ATTRTYPE_NAME VARCHAR2(30) NOT NULL UNIQUE
)
/
INSERT INTO S_NQ_DSS_DATASET_ATTRTYPES(ATTRTYPE_ID, ATTRTYPE_NAME) VALUES (1, 'BUSINESSMODEL')
/
CREATE TABLE S_NQ_DSS_DATASET_ATTRS
(
DATASET_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASETS(DATASET_ID),
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
ATTRTYPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASET_ATTRTYPES(ATTRTYPE_ID),
VALUE VARCHAR2(100)
)
/
ALTER TABLE S_NQ_DSS_DATASET_ATTRS ADD CONSTRAINT PK_S_NQ_DSS_DATASET_ATTRS PRIMARY KEY (STRIPE_ID, DATASET_ID, ATTRTYPE_ID)
/
CREATE INDEX S_NQ_DSS_DATASET_ATTRS_INDEX ON S_NQ_DSS_DATASET_ATTRS ( DATASET_ID )
/
CREATE SEQUENCE S_NQ_DSS_DATASET_TAGS_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_DATASET_TAGS
(
TAG_ID NUMBER NOT NULL PRIMARY KEY,
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
TAG_NAME VARCHAR2(32),
TAG_OWNER_ID NUMBER REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID) -- NULLABLE
)
/
CREATE TABLE S_NQ_DSS_DATASET_TAG_MAPPINGS
(
TAG_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASET_TAGS(TAG_ID),
DATASET_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_DATASETS(DATASET_ID)
)
/
CREATE INDEX S_NQ_DSS_DATASET_TAG_MAP_INDEX ON S_NQ_DSS_DATASET_TAG_MAPPINGS ( DATASET_ID )
/
CREATE SEQUENCE S_NQ_DSS_ENTITY_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_ENTITIES
(
ENTITY_ID NUMBER PRIMARY KEY,
STRIPE_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_SERVICE_STRIPES(STRIPE_ID),
ENTITY_NAME VARCHAR2(256) NOT NULL,
ENTITY_SUFFIX NUMBER NOT NULL,
NAMESPACE VARCHAR2(128) NOT NULL,
INTERNAL_ID VARCHAR2(256) NOT NULL,
OWNER_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID),
CREATEDBY_ID NUMBER NOT NULL REFERENCES S_NQ_DSS_IDENTITIES(IDENTITY_ID),
LAST_MODIFIED TIMESTAMP,
CREATED_DATE TIMESTAMP
)
/
ALTER TABLE S_NQ_DSS_ENTITIES ADD CONSTRAINT S_NQ_DSS_UNIQ_ENTITIES UNIQUE (STRIPE_ID, ENTITY_NAME, ENTITY_SUFFIX)
/
CREATE SEQUENCE S_NQ_DSS_AUDIT_SEQ
START WITH 100
/
CREATE TABLE S_NQ_DSS_AUDIT
(
EV_ID NUMBER NOT NULL PRIMARY KEY,
EV_DATE TIMESTAMP NOT NULL,
EV_TYPE NVARCHAR2(20) NOT NULL,
STRIPE_NAME NVARCHAR2(200),
DATASET_NAME VARCHAR2(256),
ALIAS NVARCHAR2(256),
IDENTITY_ID NUMBER,
IDENTITY_NAME NVARCHAR2(256),
EV_SIZE NUMBER,
NAMESPACE VARCHAR2(128) NOT NULL,
INTERNAL_ID VARCHAR2(256) NOT NULL
)
/
CREATE INDEX S_NQ_DSS_AUDIT_IDX_DT ON S_NQ_DSS_AUDIT (EV_DATE)
/
CREATE INDEX S_NQ_DSS_AUDIT_IDX_SID ON S_NQ_DSS_AUDIT (STRIPE_NAME)
/
CREATE INDEX S_NQ_DSS_AUDIT_IDX_DID ON S_NQ_DSS_AUDIT (DATASET_NAME)
/
CREATE INDEX S_NQ_DSS_AUDIT_IDX_UID ON S_NQ_DSS_AUDIT (IDENTITY_ID, IDENTITY_NAME)
/
CREATE SEQUENCE S_NQ_DSS_IMPORT_SESSIONS_SEQ
START WITH 100
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_IMPORT_SESSIONS
(
IMPORT_SESSION_ID NUMBER NOT NULL PRIMARY KEY,
STARTED_DATE TIMESTAMP DEFAULT SYSTIMESTAMP NOT NULL
) ON COMMIT DELETE ROWS
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_SERVICE_STRIPES_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
STRIPE_NAME VARCHAR2(256),
GUID_PREFIX VARCHAR2(11),
PROVISIONING_VERSION VARCHAR2(50),
PROVISIONED_DATE TIMESTAMP,
MANAGED_PROVIDER_ID NUMBER,
QUOTA_KILOBYTE_LIMIT NUMBER,
FILE_KILOBYTE_LIMIT NUMBER,
USER_QUOTA_KILOBYTE_LIMIT NUMBER,
USED_QUOTA_KILOBYTES NUMBER
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_SERVICE_STR_TMP_I1 ON S_NQ_DSS_SERVICE_STRIPES_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_IDENTITIES_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
IDENTITY_ID NUMBER,
TYPE CHAR,
ROLE_OR_GUID VARCHAR2(256),
LAST_KNOWN_NAME VARCHAR2(256),
QUOTA_KILOBYTE_LIMIT NUMBER,
FILE_KILOBYTE_LIMIT NUMBER,
CREATED_DATE TIMESTAMP
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_IDENTITIES_TMP_I1 ON S_NQ_DSS_IDENTITIES_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_ACLS_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
ACL_ID NUMBER,
ACL_NAME VARCHAR2(50),
ACL_OWNER_ID NUMBER,
LAST_MODIFIED TIMESTAMP
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_ACLS_TMP_I1 ON S_NQ_DSS_ACLS_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_ACL_ENTRIES_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
ACL_ID NUMBER,
IDENTITY_ID NUMBER,
LIST_PERM CHAR,
READ_PERM CHAR,
WRITE_PERM CHAR,
EXECUTE_PERM CHAR,
DELETE_PERM CHAR,
CHANGEPERMISSIONS_PERM CHAR
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_ACL_ENTRIES_TMP_I1 ON S_NQ_DSS_ACL_ENTRIES_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_DATASETS_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
DATASET_ID NUMBER,
DATASET_NAME VARCHAR2(256),
FILESTORE_ID VARCHAR2(1024),
ACL_ID NUMBER,
FILETYPE_ID NUMBER,
MIMETYPE VARCHAR2(25),
OWNER_ID NUMBER,
CREATEDBY_ID NUMBER,
PROVIDER_ID NUMBER,
TYPE_OPTIONS_XML CLOB,
PROVIDER_OPTIONS_XML CLOB,
FILETYPE_KNOBS CLOB,
FILE_LENGTH NUMBER,
STORAGE_FILE_LENGTH NUMBER,
LAST_MODIFIED TIMESTAMP,
CREATED_DATE TIMESTAMP,
BISERVERMETADATA_LAST_MODIFIED TIMESTAMP,
RAWFILE_LAST_MODIFIED TIMESTAMP,
IS_EMBRYONIC CHAR,
IS_USER_STRIPED CHAR,
INTERNAL_ID VARCHAR2(256),
NAMESPACE VARCHAR2(128)
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_DATASETS_TMP_I1 ON S_NQ_DSS_DATASETS_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_DATASET_ALIASES_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
DATASET_ID NUMBER,
LOCALE VARCHAR2(5),
ALIAS VARCHAR2(256),
NAMESPACE VARCHAR2(128)
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_DATASET_ALIAS_TMP_I1 ON S_NQ_DSS_DATASET_ALIASES_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_DATASET_DESC_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
DATASET_ID NUMBER,
LOCALE VARCHAR2(5),
DESCRIPTION VARCHAR2(500)
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_DATASET_DESC_TMP_I1 ON S_NQ_DSS_DATASET_DESC_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_DATASET_ATTRS_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
DATASET_ID NUMBER,
ATTRTYPE_ID NUMBER,
VALUE VARCHAR2(100)
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_DATASET_ATTRS_TMP_I1 ON S_NQ_DSS_DATASET_ATTRS_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_AUDIT_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
EV_ID NUMBER,
EV_DATE TIMESTAMP,
EV_TYPE NVARCHAR2(20),
DATASET_NAME VARCHAR2(256),
ALIAS NVARCHAR2(256),
IDENTITY_ID NUMBER,
IDENTITY_NAME NVARCHAR2(200),
EV_SIZE NUMBER,
NAMESPACE VARCHAR2(128),
INTERNAL_ID VARCHAR2(256)
) ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_AUDIT_TMP_I1 ON S_NQ_DSS_AUDIT_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_ENTITIES_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
ENTITY_ID NUMBER,
ENTITY_NAME VARCHAR2(256),
ENTITY_SUFFIX NUMBER,
NAMESPACE VARCHAR2(128),
INTERNAL_ID VARCHAR2(256),
OWNER_ID NUMBER,
CREATEDBY_ID NUMBER,
LAST_MODIFIED TIMESTAMP,
CREATED_DATE TIMESTAMP
)ON COMMIT DELETE ROWS
/
CREATE INDEX S_NQ_DSS_ENTITIES_TMP_I1 ON S_NQ_DSS_ENTITIES_TMP (IMPORT_SESSION_ID)
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_ID_MAP_TMP
(
IMPORT_SESSION_ID NUMBER NOT NULL,
TYPE CHAR NOT NULL,
OLD_ID NUMBER NOT NULL,
NEW_ID NUMBER NOT NULL,
PRIMARY KEY(IMPORT_SESSION_ID, TYPE, OLD_ID)
) ON COMMIT DELETE ROWS
/
CREATE GLOBAL TEMPORARY TABLE S_NQ_DSS_ERRLOG
(
ORA_ERR_NUMBER$ NUMBER,
ORA_ERR_MESG$ VARCHAR2(2000),
ORA_ERR_ROWID$ ROWID,
ORA_ERR_OPTYP$ VARCHAR2(2),
ORA_ERR_TAG$ VARCHAR2(2000),
DATASET_ID NUMBER,
DATASET_NAME VARCHAR2(256),
ACL_ID NUMBER,
ROLE_OR_GUID VARCHAR2(50)
) ON COMMIT PRESERVE ROWS
/
COMMIT
/
COMMIT
/
COMMIT
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_DSS_FS_FILES
(
STRIPE_NAME VARCHAR2(256) NOT NULL,
FILESTORE_ID VARCHAR2(128) NOT NULL PRIMARY KEY,
FILE_STORE_TYPE VARCHAR2(10) DEFAULT 'raw',
ORPHANED CHAR DEFAULT 'n' CHECK (ORPHANED IN ('y','n')),
LAST_MODIFIED TIMESTAMP,
CONTENTS BLOB
)
/
CREATE INDEX S_NQ_DSS_FS_FILES_IDX ON S_NQ_DSS_FS_FILES (STRIPE_NAME, FILESTORE_ID,FILE_STORE_TYPE)
/
COMMIT
/
COMMIT
/
COMMIT
/
ALTER SESSION SET CURRENT_SCHEMA=TESTONE_BIPLATFORM
/
CREATE TABLE S_NQ_SEARCH_CRAWL_CONFIG
(
TENANT VARCHAR2(100) NOT NULL,
ENABLED INT NOT NULL,
CRAWL_CONFIG_PATH VARCHAR2(1024),
CRAWL_CONFIG_XML CLOB,
CONSTRAINT SEARCH_CRAWL_CONFIG_PK PRIMARY KEY
(
TENANT
) ENABLE
)
/
CREATE TABLE S_NQ_SEARCH_CRAWL_JOB_INFO
(
CRAWL_JOB_ID VARCHAR2(20) NOT NULL,
TENANT VARCHAR2(100) NOT NULL,
STATUS VARCHAR2(20) NOT NULL,
JOB_SCHEDULE_TIME TIMESTAMP NOT NULL,
JOB_TYPE VARCHAR2(50) NOT NULL,
JOB_START_TIME TIMESTAMP,
JOB_END_TIME TIMESTAMP,
CRAWL_STATISTICS VARCHAR2(4000),
MANAGED_SERVER_NODE VARCHAR2(100),
CRAWL_CONFIG_ID INT NOT NULL,
CONSTRAINT SEARCH_CRAWL_JOB_INFO_PK PRIMARY KEY
(
CRAWL_JOB_ID
) ENABLE
)
/
CREATE INDEX S_NQ_SEARCH_CRAWL_JOB_INFO_IDX ON S_NQ_SEARCH_CRAWL_JOB_INFO (TENANT, STATUS, JOB_SCHEDULE_TIME DESC)
/
ALTER SESSION SET CURRENT_SCHEMA = TESTONE_BIPLATFORM ;
CREATE TABLE "ESSBASE_AGENT_RUNTIME"
("ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"AGENT_HOST" NVARCHAR2(512),
"AGENT_PORT" NUMBER(11,0),
"AGENT_SECUREPORT" NUMBER(11,0),
"LAST_MODIFIED_DATE" DATE,
"LAST_MODIFIED_TIMESTAMP" NUMBER(11,0),
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE VIEW "ESSBASE_AGENT_RUNTIME_VIEW" AS
SELECT
ID,
AGENT_HOST,
AGENT_PORT,
AGENT_SECUREPORT,
LAST_MODIFIED_DATE,
TRUNC(((SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60
- (LAST_MODIFIED_DATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60)) HEARTBEAT_ELAP_TIME_IN_SECS
FROM "ESSBASE_AGENT_RUNTIME"
/
CREATE TABLE "ESSBASE_AGENT_SESSION"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"SESSION_ID" VARCHAR2(255 CHAR),
"LAST_MODIFIED_DATE" DATE,
"LAST_ALIVE_TIME" DATE,
"VERSION_ID" NUMBER(11,0),
"AGENT_ID" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_AGENT_SESSION_STATE"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"DATA_TYPE" VARCHAR2(45 CHAR),
"STATE_VALUE" NVARCHAR2(255),
"LAST_MODIFIED_DATE" DATE,
"STATE_KEY" VARCHAR2(45 CHAR),
"VERSION_ID" NUMBER(11,0),
"SESSION_ID" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_APPLICATION"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"LOCALE_DESCRIPTION" NVARCHAR2(255),
"APPLICATION_TYPE" VARCHAR2(45 CHAR),
"VERSION_ID" NUMBER(11,0),
"CONNECTS_ALLOWED" NUMBER(3,0) DEFAULT '0',
"DESCRIPTION" NVARCHAR2(2000),
"APPLICATION_NAME" NVARCHAR2(50),
"LOCK_TIMEOUT" NUMBER(11,0),
"LRO_SIZE_LIMIT" NUMBER(11,0),
"COMMANDS_ALLOWED" NUMBER(3,0) DEFAULT '0',
"LOADABLE" NUMBER(3,0) DEFAULT '0',
"SECURITY_ENABLED" NUMBER(3,0) DEFAULT '0',
"APPLICATION_ACCESS" VARCHAR2(45 CHAR),
"APPLICATION_HSS_ID" VARCHAR2(512 CHAR),
"CREATION_DATE" TIMESTAMP,
"FRONTEND_TYPE" VARCHAR2(45 CHAR),
"STORAGE_TYPE" VARCHAR2(45 CHAR),
"HIDDEN_STATE" NUMBER(3,0) DEFAULT '0',
"AUTOLOAD" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"UPDATES_ALLOWED" NUMBER(3,0) DEFAULT '0',
"APPLICATION_CREATOR" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_CALC"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"CALC_NAME" NVARCHAR2(255),
"LAST_MODIFIED_DATE" DATE,
"CALC_STRING" CLOB,
"VERSION_ID" NUMBER(11,0),
"ESSBASE_CUBE" VARCHAR2(255 CHAR),
"ESSBASE_APPLICATION" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_CONFIG"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"DATA_TYPE" VARCHAR2(45 CHAR),
"CONFIG_NAME" NVARCHAR2(45),
"CONFIG_VALUE" NVARCHAR2(2000),
"LAST_MODIFIED_DATE" DATE,
"CONFIG_COMMENT" NVARCHAR2(255),
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_DATABASE"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"RETRIEVAL_SORT_BUFFER" NUMBER(24,0),
"COMMIT_ROW_SIZE" NUMBER(11,0),
"CURRENCY_CONVERSION_TYPE" VARCHAR2(45 CHAR),
"MAX_INDEX_MEMORY_SIZE" NUMBER(24,0),
"INDEX_TYPE" VARCHAR2(45 CHAR),
"DESCRIPTION" NVARCHAR2(2000),
"CURRENCY_TIME_DIM_MEMBER" NVARCHAR2(255),
"MAX_MEM_DATAFILE_CACHE" NUMBER(24,0),
"ISOLATION_LEVEL" NVARCHAR2(45),
"PAGE_SIZE" NUMBER(24,0),
"CALC_NO_AVG_MISSING" NUMBER(3,0) DEFAULT '0',
"DATABASE_COMPRESS" NUMBER(3,0) DEFAULT '0',
"DATABASE_STATE" VARCHAR2(45 CHAR),
"TIME_ELAPSED" DATE,
"DATA_STATUS" VARCHAR2(45 CHAR),
"CALC_CREATE_BLOCK" NUMBER(3,0) DEFAULT '0',
"CALC_NO_AGG_MISSING" NUMBER(3,0) DEFAULT '0',
"IO_ACCESS_FLAG_PENDING" VARCHAR2(45 CHAR),
"DATABASE_TYPE" VARCHAR2(45 CHAR),
"CALC_TWO_PASS" NUMBER(3,0) DEFAULT '0',
"LOCKS_COUNT" NUMBER(11,0) DEFAULT '0',
"CACHE_MEM_LOCKING" NUMBER(3,0) DEFAULT '0',
"VOLUMES_COUNT" NUMBER(11,0) DEFAULT '0',
"VERSION_ID" NUMBER(11,0),
"CURRENCY_TYPE_MEMBER" NVARCHAR2(255),
"DATABASE_NAME" NVARCHAR2(255),
"NO_WAIT_IO" NUMBER(3,0) DEFAULT '0',
"DIMENSIONS" NUMBER(11,0),
"NOTE" CLOB,
"DATA_COMPRESS_TYPE" VARCHAR2(45 CHAR),
"IO_ACCESS_FLAG_IN_USE" VARCHAR2(45 CHAR),
"COMMIT_BLOCKS" NUMBER(11,0),
"MAX_MEMORY" NUMBER(24,0),
"LOADABLE" NUMBER(3,0) DEFAULT '0',
"DATABASE_ACCESS" VARCHAR2(45 CHAR),
"CURRENCY_PARTITION_MEMBER" NVARCHAR2(255),
"CURRENCY_CATEGORY_DIM_MEMBER" NVARCHAR2(255),
"CREATION_DATE" TIMESTAMP,
"PRE_IMAGE" NUMBER(3,0) DEFAULT '0',
"AUTOLOAD" NUMBER(3,0) DEFAULT '0',
"RETRIEVAL_BUFFER" NUMBER(24,0),
"LAST_MODIFIED_DATE" DATE,
"CURRENCY_COUNTRY_DIM_MEMBER" NVARCHAR2(255),
"TIMEOUT_VALUE" NUMBER(11,0),
"DATABASE_CREATOR" VARCHAR2(255 CHAR),
"CURRENCY_DATABASE" VARCHAR2(255 CHAR),
"APPLICATION" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_DISK_VOLUME"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"FILE_TYPE" VARCHAR2(45 CHAR),
"LAST_MODIFIED_DATE" DATE,
"MAX_FILE_SIZE" NUMBER(24,0),
"DISK_PARTITION_SIZE" NUMBER(24,0),
"PARTITION_NAME" NVARCHAR2(1024),
"VERSION_ID" NUMBER(11,0),
"ESSBASE_CUBE" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_FILTER"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"FILTER_NAME" NVARCHAR2(256),
"ACTIVE" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"ESSBASE_APPLICATION" VARCHAR2(255 CHAR),
"ESSBASE_CUBE" VARCHAR2(255 CHAR),
"FILTER_TYPE" NUMBER(11,0),
"FILTER_PROVIDER" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_FUNCTION"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CALC_SPEC_STRING" CLOB,
"CREATION_DATE" TIMESTAMP,
"FUNCTION_NAME" NVARCHAR2(128),
"JAVA_CLASS_METHOD" VARCHAR2(255 CHAR),
"LAST_MODIFIED_DATE" DATE,
"RUNTIME" NUMBER(3,0) DEFAULT '0',
"FUNCTION_COMMENT" NVARCHAR2(2000),
"VERSION_ID" NUMBER(11,0),
"APPLICATION" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_GLOBAL"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"PASSWORD_STORED_COUNT" NUMBER(11,0),
"LOGINS_ENABLED" NUMBER(3,0) DEFAULT '0',
"INACTIVITY_TIME" NUMBER(11,0),
"PASSWORD_EXPIRY_WARN_COUNT" NUMBER(11,0),
"VERSION_ID" NUMBER(11,0),
"ADMINSVC_LOCATION" NVARCHAR2(512),
"CURRENCY_ENABLED" NUMBER(3,0) DEFAULT '0',
"INVALID_ATTEMPTS" NUMBER(11,0),
"DEFAULT_ACCESS_LEVEL" VARCHAR2(45 CHAR),
"SECURITY_MODE" VARCHAR2(255 CHAR),
"INACTIVITY_CHECK" NUMBER(11,0),
"ESB_LANGUAGE" VARCHAR2(255 CHAR),
"HOSTNAME" NVARCHAR2(512),
"ESB_LOCATION" NVARCHAR2(512),
"SECURITY_ENABLED" NUMBER(3,0) DEFAULT '0',
"PASSWORD_VALIDITY" NUMBER(11,0),
"CREATION_DATE" TIMESTAMP,
"PASSWORD_MIN_LENGTH" NUMBER(11,0),
"INVALID_LOCKOUT" NUMBER(11,0),
"SSS_NAME" NVARCHAR2(255),
"LAST_MODIFIED_DATE" DATE,
"PRODUCT_CODE_VERSION" VARCHAR2(50 CHAR),
"CSS_MIGRATED" NUMBER(3,0) DEFAULT '0',
"HUB_REG_SEQUENCE_NUM" NUMBER(11,0),
"LOCALE_CONFIG" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_LICENSE"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"DATAMINING_ENABLED" NUMBER(3,0) DEFAULT '0',
"LICENSE_EXPIRY_DATE" DATE,
"EDS_ENABLED" NUMBER(3,0) DEFAULT '0',
"SPREADSHEET_TOOLKIT" NUMBER(3,0) DEFAULT '0',
"BUSINESS_RULES_ENABLED" NUMBER(3,0) DEFAULT '0',
"LICENSE_EXPIRING" NUMBER(3,0) DEFAULT '0',
"NAMED_USERS_COUNT" NUMBER(11,0),
"READ_ONLY_USERS_COUNT" NUMBER(11,0),
"ALLOW64BIT" NUMBER(3,0) DEFAULT '0',
"ADMIN_USERS_COUNT" NUMBER(11,0),
"OBJECTS_ENABLED" NUMBER(3,0) DEFAULT '0',
"LIMITED_SKU_APPMAN_ENABLED" NUMBER(3,0) DEFAULT '0',
"VERSION_ID" NUMBER(11,0),
"LIMITED_SKU_SS_ENABLED" NUMBER(3,0) DEFAULT '0',
"TRIGGERS_ENABLED" NUMBER(3,0) DEFAULT '0',
"SQL_INTERFACE_ENABLED" NUMBER(3,0) DEFAULT '0',
"EIS_ENABLED" NUMBER(3,0) DEFAULT '0',
"VIEW_ONLY_USER_COUNT" NUMBER(11,0),
"READ_ONLY_SS_ENABLED" NUMBER(3,0) DEFAULT '0',
"LICENSE_TYPE" VARCHAR2(45 CHAR),
"CRYSTAL_ENABLED" NUMBER(3,0) DEFAULT '0',
"MAX_CONNECTIONS" NUMBER(11,0),
"SERVER_SOLUTIONS" NUMBER(6,0),
"READ_ONLY_SS_TOOLKIT_ENABLED" NUMBER(3,0) DEFAULT '0',
"RESTRICTED_PLNG_USERS_COUNT" NUMBER(11,0),
"MIGR_TIME" DATE,
"CPUS_COUNT" NUMBER(6,0),
"SPREADSHEET_ADDIN" NUMBER(3,0) DEFAULT '0',
"API_USAGE_ENABLED" NUMBER(3,0) DEFAULT '0',
"PORTS_COUNT" NUMBER(11,0),
"CREATION_DATE" TIMESTAMP,
"VISUAL_EXPLORER_ENABLED" NUMBER(3,0) DEFAULT '0',
"APPMAN_EAS_ENABLED" NUMBER(3,0) DEFAULT '0',
"MISSED_HEART_BEATS" NUMBER(11,0),
"BSO" NUMBER(3,0) DEFAULT '0',
"ASO" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"CURRENCY_CONVERSION_ENABLED" NUMBER(3,0) DEFAULT '0',
"PLANNING_USERS_COUNT" NUMBER(11,0),
"REPORTS_ENABLED" NUMBER(3,0) DEFAULT '0',
"PARTITION_ENABLED" NUMBER(3,0) DEFAULT '0'
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_LOCALIZED_MESSAGE"
( "ID" VARCHAR2(255 CHAR),
"CAUSE" NVARCHAR2(2000),
"SEVERITY" VARCHAR2(45 CHAR),
"VERSION_ID" NUMBER(11,0),
"MESSAGE" NVARCHAR2(2000),
"CREATION_DATE" TIMESTAMP,
"MESSAGE_ODL_ID" VARCHAR2(45 CHAR),
"COMPONENT" VARCHAR2(45 CHAR),
"DESCRIPTION" NVARCHAR2(2000),
"ACTIONABLE_MSG" NVARCHAR2(2000),
"ERROR_CODE" VARCHAR2(45 CHAR),
"LAST_MODIFIED_DATE" DATE,
"MSG_KEY" VARCHAR2(45 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_MACRO"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CALC_SPEC_STRING" NCLOB,
"CREATION_DATE" TIMESTAMP,
"MACRO_NAME" NVARCHAR2(128),
"LAST_MODIFIED_DATE" DATE,
"MACRO_COMMENT" NVARCHAR2(2000),
"MACRO_EXPANSION" NVARCHAR2(255),
"SIGNATURE" NVARCHAR2(255),
"VERSION_ID" NUMBER(11,0),
"APPLICATION" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_MAXL_AUDIT_TRAIL"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"EXECUTION_TIME_MS" NUMBER(24,0),
"MAXL_STATEMENT" CLOB,
"ISSUED_TIME" DATE,
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"ISSUED_BY" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_MESSAGE_TRANSLATION"
( "ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"TRANSLATED_ACTION" NVARCHAR2(2000),
"TRANSLATED_CAUSE" NVARCHAR2(2000),
"TRANSLATED_MESSAGE" NVARCHAR2(2000),
"LAST_MODIFIED_DATE" DATE,
"TRANSLATION_LANGUAGE" NVARCHAR2(45),
"VERSION_ID" NUMBER(11,0),
"LOCALIZED_MESSAGE_ID" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_NODE"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"STATUS" NUMBER(11,0),
"ISFILTER" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"CALC" VARCHAR2(255 CHAR),
"ESSBASE_USER" VARCHAR2(255 CHAR),
"ESSBASE_FILTER" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_OBJECT"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"TIMESTAMP_VALUE" DATE,
"CREATION_DATE" TIMESTAMP,
"FILESIZE" NUMBER(24,0),
"OBJECT_NAME" NVARCHAR2(255),
"LAST_MODIFIED_DATE" DATE,
"OBJECT_TYPE" NVARCHAR2(45),
"VERSION_ID" NUMBER(11,0),
"ESSBASE_APPLICATION" VARCHAR2(255 CHAR),
"ESSBASE_USER" VARCHAR2(255 CHAR),
"ESSBASE_CUBE" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_PING"
( "ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"PING_NAME" NVARCHAR2(45),
"PING_VALUE" NVARCHAR2(2000),
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_RELATED_USER_GROUPS"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"USER_GROUP_ID" VARCHAR2(255 CHAR),
"RELATED_USER_GROUP_ID" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_ROLES"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"NATIVE_ROLE" NVARCHAR2(255),
"CREATION_DATE" TIMESTAMP,
"ROLE_DESCRIPTION" NVARCHAR2(255),
"CSS_ROLE_NAME" NVARCHAR2(255),
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_ROW"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"ROW_VALUE" CLOB,
"LAST_MODIFIED_DATE" DATE,
"FILTER_ACCESS" VARCHAR2(45 CHAR),
"VERSION_ID" NUMBER(11,0),
"ESSBASE_FILTER" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_SECURITY_HEADER"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"LOCALE_CONFIG" NUMBER(3,0) DEFAULT '0',
"INCREMENT_VALUE" VARCHAR2(10 CHAR),
"MY_OLAP_ENABLED" NUMBER(3,0) DEFAULT '0',
"PLATFORM_TOKEN" NUMBER(11,0),
"AGENT_ID_MIGRATION_STATUS" NUMBER(3,0) DEFAULT '0',
"ESSBASE_PASSWORD" VARCHAR2(255 CHAR),
"VERSION_ID" NUMBER(11,0),
"REVISION" NUMBER(11,0),
"CREATION_DATE" TIMESTAMP,
"USERNAME" NVARCHAR2(255),
"COMPANY" NVARCHAR2(255),
"MY_OLAP_INITIALIZED" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"DATE_INSTALLED" DATE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_SERVER_RUNTIME"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"STARTID" NVARCHAR2(255),
"CLIENT_NONSECURE_PORT" NUMBER(11,0),
"CLIENT_SECURE_PORT" NUMBER(11,0),
"SERVER_PORT" NUMBER(11,0),
"LAST_MODIFIED_DATE" DATE,
"SERVER_HOST" NVARCHAR2(512),
"VERSION_ID" NUMBER(11,0),
"SERVER_STATE" VARCHAR2(50 CHAR),
"SERVER_PID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE VIEW "ESSBASE_SERVER_RUNTIME_VIEW" AS
SELECT
ID,
JAGENT_ID,
STARTID,
SERVER_HOST,
SERVER_PORT,
SERVER_STATE,
SERVER_PID,
LAST_MODIFIED_DATE,
TRUNC(((SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60
- (LAST_MODIFIED_DATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60)) HEARTBEAT_ELAP_TIME_IN_SECS
FROM "ESSBASE_SERVER_RUNTIME"
/
CREATE TABLE "ESSBASE_SUBSTITUTION_VARIABLE"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"VARIABLE_SCOPE" NVARCHAR2(255),
"VARIABLE_NAME" NVARCHAR2(1024),
"VARIABLE_VALUE" NCLOB,
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"ESSBASE_APPLICATION" VARCHAR2(255 CHAR),
"ESSBASE_CUBE" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_USER_GROUP"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"IS_MIGRATED" NUMBER(3,0) DEFAULT '0',
"FAILCOUNT" NUMBER(11,0),
"SALTED_DIGEST" VARCHAR2(1024 CHAR),
"PLATFORM_TOKEN" NUMBER(11,0),
"VERSION_ID" NUMBER(11,0),
"EMAIL_ID" NVARCHAR2(255),
"DESCRIPTION" NVARCHAR2(2000),
"NUM_WARNING" NUMBER(11,0),
"USER_GROUP_NAME" NVARCHAR2(1024),
"IS_GROUP" NUMBER(3,0) DEFAULT '0',
"PWD_CHANGE_NEEDED" NUMBER(3,0) DEFAULT '0',
"LICENSE_TYPE" NUMBER(11,0),
"LAST_PASSWORD_CHANGE" DATE,
"EXPIRATION" DATE,
"CONNPARAM" VARCHAR2(1024 CHAR),
"DELETED" NUMBER(3,0) DEFAULT '0',
"AUTHENTICATION_TYPE" VARCHAR2(45 CHAR),
"USER_GROUP_ACCESS" NUMBER(3,0) DEFAULT '0',
"CREATION_DATE" TIMESTAMP,
"LAST_LOGIN" DATE,
"LOCKED_OUT" NUMBER(3,0) DEFAULT '0',
"LAST_MODIFIED_DATE" DATE,
"PASSWORD_EXPIRED_TIME" DATE,
"PROVISIONING_STATUS" NUMBER(11,0),
"OWNER" VARCHAR2(255 CHAR),
"ACCESS_VALUE" NUMBER(24,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
COMMENT ON COLUMN "ESSBASE_USER_GROUP"."ACCESS_VALUE" IS 'ORIGINAL NAME:ACCESS'
/
CREATE TABLE "ESSBASE_USER_ROLES"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"LAST_MODIFIED_DATE" DATE,
"VERSION_ID" NUMBER(11,0),
"ESSBASE_APPLICATION" VARCHAR2(255 CHAR),
"ESSBASE_CUBE" VARCHAR2(255 CHAR),
"ROLE_ID" VARCHAR2(255 CHAR),
"USER_GROUP" VARCHAR2(255 CHAR),
"ACCESS_VALUE" NUMBER(24,0),
"IS_ALLCALC" NUMBER(3,0) DEFAULT '0'
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
COMMENT ON COLUMN "ESSBASE_USER_ROLES"."ACCESS_VALUE" IS 'ORIGINAL NAME:ACCESS'
/
CREATE TABLE "ESSBASE_VOLUME"
( "ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" TIMESTAMP,
"DRIVE" NVARCHAR2(50),
"LAST_MODIFIED_DATE" DATE,
"VOLUME_SIZE" NUMBER(24,0),
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "NAME_RESOLUTION"
( "ID" NUMBER(10,0),
"LOGICAL_NAME" NVARCHAR2(100),
"PHYSICAL_NAME" NVARCHAR2(100),
"TYPE" VARCHAR2(45 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "ESSBASE_DATABASE_PROPERTIES"
(
"ID" VARCHAR2(255 CHAR),
"DATABASE_ID" VARCHAR2(255 CHAR),
"JAGENT_ID" VARCHAR2(255 CHAR),
"CREATION_DATE" DATE,
"LAST_MODIFIED_DATE" DATE,
"PROPERTY_KEY" VARCHAR2(255 CHAR),
"PROPERTY_VALUE" VARCHAR2(255 CHAR),
"MIGRATABLE" NUMBER(3,0) DEFAULT '0',
"VERSION_ID" NUMBER(11,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE VIEW "ESSBASE_CDF_VIEW_GLOBAL" AS
SELECT ESSBASE_FUNCTION.ID ,
FUNCTION_NAME,
CALC_SPEC_STRING ,
JAVA_CLASS_METHOD ,
RUNTIME ,
FUNCTION_COMMENT ,
TRUNC((CAST(ESSBASE_FUNCTION.creation_date as DATE) - to_date('19700101','YYYYMMDD')) * 86400) AS SECS ,
mod(extract(second from essbase_function.creation_date), 1) * 1000000 AS MSECS ,
ESSBASE_FUNCTION.jagent_id AS jagent_id
FROM ESSBASE_FUNCTION
WHERE ESSBASE_FUNCTION.APPLICATION IS NULL
/
CREATE VIEW "ESSBASE_CDM_VIEW_GLOBAL" AS
SELECT ESSBASE_MACRO.ID ,
MACRO_NAME,
CALC_SPEC_STRING ,
MACRO_EXPANSION ,
SIGNATURE ,
MACRO_COMMENT ,
TRUNC((CAST(essbase_macro.creation_date as DATE) - to_date('19700101','YYYYMMDD')) * 86400) AS SECS ,
mod(extract(second from essbase_macro.creation_date), 1) * 1000000 AS MSECS ,
ESSBASE_MACRO.jagent_id AS jagent_id
FROM ESSBASE_MACRO
WHERE ESSBASE_MACRO.APPLICATION IS NULL
/
CREATE VIEW "ESSBASE_CDF_VIEW_LOCAL" AS
SELECT ESSBASE_FUNCTION.ID ,
FUNCTION_NAME,
CALC_SPEC_STRING ,
JAVA_CLASS_METHOD ,
RUNTIME ,
FUNCTION_COMMENT ,
TRUNC((CAST(ESSBASE_FUNCTION.creation_date as DATE) - to_date('19700101','YYYYMMDD')) * 86400) AS SECS ,
mod(extract(second from essbase_function.creation_date), 1) * 1000000 AS MSECS ,
ESSBASE_FUNCTION.jagent_id AS jagent_id ,
ESSBASE_APPLICATION.APPLICATION_NAME as APPLICATION_NAME
FROM ESSBASE_FUNCTION
JOIN ESSBASE_APPLICATION ON
ESSBASE_FUNCTION.jagent_id = ESSBASE_APPLICATION.jagent_id AND
ESSBASE_FUNCTION.APPLICATION = ESSBASE_APPLICATION.id
/
CREATE VIEW "ESSBASE_CDM_VIEW_LOCAL" AS
SELECT ESSBASE_MACRO.ID ,
MACRO_NAME,
CALC_SPEC_STRING ,
MACRO_EXPANSION ,
SIGNATURE ,
MACRO_COMMENT ,
TRUNC((CAST(essbase_macro.creation_date as DATE) - to_date('19700101','YYYYMMDD')) * 86400) AS SECS ,
mod(extract(second from essbase_macro.creation_date), 1) * 1000000 AS MSECS ,
ESSBASE_MACRO.jagent_id AS jagent_id ,
ESSBASE_APPLICATION.APPLICATION_NAME as APPLICATION_NAME
FROM ESSBASE_MACRO
JOIN ESSBASE_APPLICATION ON
ESSBASE_MACRO.jagent_id = ESSBASE_APPLICATION.jagent_id AND
ESSBASE_MACRO.APPLICATION = ESSBASE_APPLICATION.id
/
CREATE UNIQUE INDEX "APPLICATION_NAME" ON "ESSBASE_APPLICATION" ("JAGENT_ID", "APPLICATION_NAME")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "CSS_ROLE_NAME" ON "ESSBASE_ROLES" ("JAGENT_ID", "CSS_ROLE_NAME")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "ESSBASE_MESSAGE_TRANSLATION_LO" ON "ESSBASE_MESSAGE_TRANSLATION" ("LOCALIZED_MESSAGE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "ESSBASE_RELATED_USER_GROUPS_RE" ON "ESSBASE_RELATED_USER_GROUPS" ("JAGENT_ID", "RELATED_USER_GROUP_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "ESSBASE_SUBSTITUTION_VARIABLE_" ON "ESSBASE_SUBSTITUTION_VARIABLE" ("ESSBASE_APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_AGENT_SESSION_AGENT" ON "ESSBASE_AGENT_SESSION" ("AGENT_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_AGENT_SESSION_STATE" ON "ESSBASE_AGENT_SESSION_STATE" ("SESSION_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_APPLICATION_CREATOR" ON "ESSBASE_APPLICATION" ("JAGENT_ID", "APPLICATION_CREATOR")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_CALC_ESSBASE_APPLIC" ON "ESSBASE_CALC" ("ESSBASE_APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_CALC_ESSBASE_CUBE" ON "ESSBASE_CALC" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_DATABASE_APPLICATIO" ON "ESSBASE_DATABASE" ("APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_DATABASE_CURRENCY_D" ON "ESSBASE_DATABASE" ("CURRENCY_DATABASE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_DATABASE_DATABASE_C" ON "ESSBASE_DATABASE" ("JAGENT_ID", "DATABASE_CREATOR")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_DISK_VOLUME_ESSBASE" ON "ESSBASE_DISK_VOLUME" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESS_DB_PROP_ESSBASE_DB" ON "ESSBASE_DATABASE_PROPERTIES" ("DATABASE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_FILTER_ESSBASE_APPL" ON "ESSBASE_FILTER" ("ESSBASE_APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_FILTER_ESSBASE_CUBE" ON "ESSBASE_FILTER" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_FUNCTION_APPLICATIO" ON "ESSBASE_FUNCTION" ("APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_MACRO_APPLICATION" ON "ESSBASE_MACRO" ("APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_MAXL_AUDIT_TRAIL_IS" ON "ESSBASE_MAXL_AUDIT_TRAIL" ("JAGENT_ID", "ISSUED_BY")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_NODE_CALC" ON "ESSBASE_NODE" ("CALC")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_NODE_ESSBASE_FILTER" ON "ESSBASE_NODE" ("ESSBASE_FILTER")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_NODE_ESSBASE_USER" ON "ESSBASE_NODE" ("JAGENT_ID", "ESSBASE_USER")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_OBJECT_ESSBASE_APPL" ON "ESSBASE_OBJECT" ("ESSBASE_APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_OBJECT_ESSBASE_CUBE" ON "ESSBASE_OBJECT" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_OBJECT_ESSBASE_USER" ON "ESSBASE_OBJECT" ("JAGENT_ID", "ESSBASE_USER")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_RELATED_USER_GROUPS" ON "ESSBASE_RELATED_USER_GROUPS" ("JAGENT_ID", "USER_GROUP_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_ROW_ESSBASE_FILTER" ON "ESSBASE_ROW" ("ESSBASE_FILTER")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_SUBSTITUTION_VARIAB" ON "ESSBASE_SUBSTITUTION_VARIABLE" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_USER_GROUP_OWNER" ON "ESSBASE_USER_GROUP" ("JAGENT_ID", "OWNER")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_USER_ROLES_ESSBASE_" ON "ESSBASE_USER_ROLES" ("ESSBASE_APPLICATION")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_USER_ROLES_ESSBAS_1" ON "ESSBASE_USER_ROLES" ("ESSBASE_CUBE")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_USER_ROLES_ROLE_ID" ON "ESSBASE_USER_ROLES" ("ROLE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE INDEX "FK_ESSBASE_USER_ROLES_USER_GRO" ON "ESSBASE_USER_ROLES" ("JAGENT_ID", "USER_GROUP")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY" ON "ESSBASE_AGENT_RUNTIME" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_10" ON "ESSBASE_GLOBAL" ("JAGENT_ID", "ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_11" ON "ESSBASE_LICENSE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_12" ON "ESSBASE_LOCALIZED_MESSAGE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_13" ON "ESSBASE_MACRO" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_14" ON "ESSBASE_MAXL_AUDIT_TRAIL" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_15" ON "ESSBASE_MESSAGE_TRANSLATION" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_16" ON "ESSBASE_NODE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_17" ON "ESSBASE_OBJECT" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_18" ON "ESSBASE_PING" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_19" ON "ESSBASE_RELATED_USER_GROUPS" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_2" ON "ESSBASE_AGENT_SESSION_STATE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_20" ON "ESSBASE_ROLES" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_21" ON "ESSBASE_ROW" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_22" ON "ESSBASE_SECURITY_HEADER" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_23" ON "ESSBASE_SERVER_RUNTIME" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_24" ON "ESSBASE_SUBSTITUTION_VARIABLE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_25" ON "ESSBASE_USER_GROUP" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_26" ON "ESSBASE_USER_ROLES" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_27" ON "ESSBASE_VOLUME" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_28" ON "ESSBASE_AGENT_SESSION" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_3" ON "ESSBASE_APPLICATION" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_4" ON "ESSBASE_CALC" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_5" ON "ESSBASE_CONFIG" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_6" ON "ESSBASE_DATABASE" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_7" ON "ESSBASE_DISK_VOLUME" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_8" ON "ESSBASE_FILTER" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_9" ON "ESSBASE_FUNCTION" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_29" ON "NAME_RESOLUTION" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE UNIQUE INDEX "PRIMARY_30" ON "ESSBASE_DATABASE_PROPERTIES" ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
ALTER TABLE "ESSBASE_AGENT_RUNTIME" ADD CONSTRAINT "PRIMARY" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_AGENT_RUNTIME" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_AGENT_SESSION" ADD CONSTRAINT "PRIMARY_28" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_AGENT_SESSION" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_AGENT_SESSION_STATE" ADD CONSTRAINT "PRIMARY_2" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_AGENT_SESSION_STATE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_APPLICATION" ADD CONSTRAINT "PRIMARY_3" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_APPLICATION" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_APPLICATION" MODIFY ("APPLICATION_NAME" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_CALC" ADD CONSTRAINT "PRIMARY_4" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_CALC" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_CONFIG" ADD CONSTRAINT "PRIMARY_5" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_CONFIG" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_DATABASE" ADD CONSTRAINT "PRIMARY_6" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_DATABASE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_DATABASE" MODIFY ("DATABASE_NAME" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_DATABASE" MODIFY ("APPLICATION" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_DISK_VOLUME" ADD CONSTRAINT "PRIMARY_7" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_DISK_VOLUME" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_DATABASE_PROPERTIES" ADD CONSTRAINT "PRIMARY_30" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_DATABASE_PROPERTIES" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_FILTER" ADD CONSTRAINT "PRIMARY_8" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_FILTER" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_FUNCTION" ADD CONSTRAINT "PRIMARY_9" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_FUNCTION" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_GLOBAL" ADD CONSTRAINT "PRIMARY_10" PRIMARY KEY ("JAGENT_ID", "ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_GLOBAL" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_LICENSE" ADD CONSTRAINT "PRIMARY_11" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_LICENSE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_LOCALIZED_MESSAGE" ADD CONSTRAINT "PRIMARY_12" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_LOCALIZED_MESSAGE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_MACRO" ADD CONSTRAINT "PRIMARY_13" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_MACRO" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_MAXL_AUDIT_TRAIL" ADD CONSTRAINT "PRIMARY_14" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_MAXL_AUDIT_TRAIL" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_MESSAGE_TRANSLATION" ADD CONSTRAINT "PRIMARY_15" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_MESSAGE_TRANSLATION" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_NODE" ADD CONSTRAINT "PRIMARY_16" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_NODE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_OBJECT" ADD CONSTRAINT "PRIMARY_17" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_OBJECT" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_OBJECT" MODIFY ("OBJECT_NAME" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_OBJECT" MODIFY ("ESSBASE_APPLICATION" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_PING" ADD CONSTRAINT "PRIMARY_18" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_PING" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_RELATED_USER_GROUPS" ADD CONSTRAINT "PRIMARY_19" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_RELATED_USER_GROUPS" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_ROLES" ADD CONSTRAINT "PRIMARY_20" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_ROLES" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_ROW" ADD CONSTRAINT "PRIMARY_21" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_ROW" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_SECURITY_HEADER" ADD CONSTRAINT "PRIMARY_22" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_SECURITY_HEADER" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_SERVER_RUNTIME" ADD CONSTRAINT "PRIMARY_23" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_SERVER_RUNTIME" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_SUBSTITUTION_VARIABLE" ADD CONSTRAINT "PRIMARY_24" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_SUBSTITUTION_VARIABLE" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_SUBSTITUTION_VARIABLE" MODIFY ("VARIABLE_NAME" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_USER_GROUP" ADD CONSTRAINT "PRIMARY_25" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_USER_GROUP" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_USER_ROLES" ADD CONSTRAINT "PRIMARY_26" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_USER_ROLES" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_USER_ROLES" MODIFY ("USER_GROUP" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_VOLUME" ADD CONSTRAINT "PRIMARY_27" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "ESSBASE_VOLUME" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "NAME_RESOLUTION" ADD CONSTRAINT "PRIMARY_29" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
ENABLE
/
ALTER TABLE "NAME_RESOLUTION" MODIFY ("ID" NOT NULL ENABLE)
/
ALTER TABLE "ESSBASE_AGENT_SESSION" ADD CONSTRAINT "FK_ESSBASE_AGENT_SESSION_AGENT" FOREIGN KEY ("AGENT_ID")
REFERENCES "ESSBASE_AGENT_RUNTIME" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_AGENT_SESSION_STATE" ADD CONSTRAINT "FK_ESSBASE_AGENT_SESSION_STATE" FOREIGN KEY ("SESSION_ID")
REFERENCES "ESSBASE_AGENT_SESSION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_APPLICATION" ADD CONSTRAINT "FK_ESSBASE_APPLICATION_CREATOR" FOREIGN KEY ("APPLICATION_CREATOR")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_CALC" ADD CONSTRAINT "FK_ESSBASE_CALC_ESSBASE_APPLIC" FOREIGN KEY ("ESSBASE_APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_CALC" ADD CONSTRAINT "FK_ESSBASE_CALC_ESSBASE_CUBE" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_DATABASE" ADD CONSTRAINT "FK_ESSBASE_DATABASE_APPLICATIO" FOREIGN KEY ("APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_DATABASE" ADD CONSTRAINT "FK_ESSBASE_DATABASE_CURRENCY_D" FOREIGN KEY ("CURRENCY_DATABASE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_DATABASE" ADD CONSTRAINT "FK_ESSBASE_DATABASE_DATABASE_C" FOREIGN KEY ("DATABASE_CREATOR")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_DISK_VOLUME" ADD CONSTRAINT "FK_ESSBASE_DISK_VOLUME_ESSBASE" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_FILTER" ADD CONSTRAINT "FK_ESSBASE_FILTER_ESSBASE_APPL" FOREIGN KEY ("ESSBASE_APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_FILTER" ADD CONSTRAINT "FK_ESSBASE_FILTER_ESSBASE_CUBE" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_DATABASE_PROPERTIES" ADD CONSTRAINT "FK_ESS_DB_PROP_ESSBASE_DB" FOREIGN KEY ("DATABASE_ID")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_FUNCTION" ADD CONSTRAINT "FK_ESSBASE_FUNCTION_APPLICATIO" FOREIGN KEY ("APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_MACRO" ADD CONSTRAINT "FK_ESSBASE_MACRO_APPLICATION" FOREIGN KEY ("APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_MAXL_AUDIT_TRAIL" ADD CONSTRAINT "FK_ESSBASE_MAXL_AUDIT_TRAIL_IS" FOREIGN KEY ("ISSUED_BY")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_MESSAGE_TRANSLATION" ADD CONSTRAINT "ESSBASE_MESSAGE_TRANSLATION_LO" FOREIGN KEY ("LOCALIZED_MESSAGE_ID")
REFERENCES "ESSBASE_LOCALIZED_MESSAGE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_NODE" ADD CONSTRAINT "FK_ESSBASE_NODE_CALC" FOREIGN KEY ("CALC")
REFERENCES "ESSBASE_CALC" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_NODE" ADD CONSTRAINT "FK_ESSBASE_NODE_ESSBASE_FILTER" FOREIGN KEY ("ESSBASE_FILTER")
REFERENCES "ESSBASE_FILTER" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_NODE" ADD CONSTRAINT "FK_ESSBASE_NODE_ESSBASE_USER" FOREIGN KEY ("ESSBASE_USER")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_OBJECT" ADD CONSTRAINT "FK_ESSBASE_OBJECT_ESSBASE_APPL" FOREIGN KEY ("ESSBASE_APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_OBJECT" ADD CONSTRAINT "FK_ESSBASE_OBJECT_ESSBASE_CUBE" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_OBJECT" ADD CONSTRAINT "FK_ESSBASE_OBJECT_ESSBASE_USER" FOREIGN KEY ("ESSBASE_USER")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_RELATED_USER_GROUPS" ADD CONSTRAINT "ESSBASE_RELATED_USER_GROUPS_RE" FOREIGN KEY ("RELATED_USER_GROUP_ID")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_RELATED_USER_GROUPS" ADD CONSTRAINT "FK_ESSBASE_RELATED_USER_GROUPS" FOREIGN KEY ("USER_GROUP_ID")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_ROW" ADD CONSTRAINT "FK_ESSBASE_ROW_ESSBASE_FILTER" FOREIGN KEY ("ESSBASE_FILTER")
REFERENCES "ESSBASE_FILTER" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_SUBSTITUTION_VARIABLE" ADD CONSTRAINT "ESSBASE_SUBSTITUTION_VARIABLE_" FOREIGN KEY ("ESSBASE_APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_SUBSTITUTION_VARIABLE" ADD CONSTRAINT "FK_ESSBASE_SUBSTITUTION_VARIAB" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_USER_GROUP" ADD CONSTRAINT "FK_ESSBASE_USER_GROUP_OWNER" FOREIGN KEY ("OWNER")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_USER_ROLES" ADD CONSTRAINT "FK_ESSBASE_USER_ROLES_ESSBASE_" FOREIGN KEY ("ESSBASE_APPLICATION")
REFERENCES "ESSBASE_APPLICATION" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_USER_ROLES" ADD CONSTRAINT "FK_ESSBASE_USER_ROLES_ESSBAS_1" FOREIGN KEY ("ESSBASE_CUBE")
REFERENCES "ESSBASE_DATABASE" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_USER_ROLES" ADD CONSTRAINT "FK_ESSBASE_USER_ROLES_ROLE_ID" FOREIGN KEY ("ROLE_ID")
REFERENCES "ESSBASE_ROLES" ("ID") ENABLE
/
ALTER TABLE "ESSBASE_USER_ROLES" ADD CONSTRAINT "FK_ESSBASE_USER_ROLES_USER_GRO" FOREIGN KEY ("USER_GROUP")
REFERENCES "ESSBASE_USER_GROUP" ("ID") ENABLE
/
INSERT INTO ESSBASE_USER_GROUP (ID, JAGENT_ID,IS_MIGRATED,FAILCOUNT,SALTED_DIGEST,PLATFORM_TOKEN,VERSION_ID,EMAIL_ID,DESCRIPTION,NUM_WARNING,USER_GROUP_NAME,IS_GROUP,PWD_CHANGE_NEEDED,LICENSE_TYPE,LAST_PASSWORD_CHANGE,EXPIRATION,CONNPARAM,DELETED,AUTHENTICATION_TYPE,USER_GROUP_ACCESS,CREATION_DATE,LAST_LOGIN,LOCKED_OUT,LAST_MODIFIED_DATE,PASSWORD_EXPIRED_TIME,PROVISIONING_STATUS,OWNER,ACCESS_VALUE) VALUES ('PRIMODIAL_AGENT_ID_BOOTSTRAP_ID','PRIMODIAL_AGENT_ID',0,0,'sQnzu7wkTrgkQZF+0G1hi5AI3Qmzvv0bXgc5THBqi7mAsdd4Xll27ASbRt9fEyavWi6m0QP9B8lT\nhf+rDKy8hg==____LawwcxnvjrHG+Bj/yY7Pu1HK/J8Zz6KjhHnmC5opDlwve7GKbkJQmNgPg5F/wP1jrA7D3nNhHvFcjeJIwp4q8A==',-22,1637,'<EMAIL>','Administrator',0,'admin',0,0,32,CURRENT_TIMESTAMP,NULL,'1',0,'INTERNAL',1,CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,0,CURRENT_TIMESTAMP,NULL,1,'PRIMODIAL_AGENT_ID_BOOTSTRAP_ID',65535)
/
INSERT INTO ESSBASE_AGENT_RUNTIME (ID,CREATION_DATE,AGENT_HOST,AGENT_PORT,AGENT_SECUREPORT,LAST_MODIFIED_DATE,VERSION_ID) VALUES ('PRIMODIAL_AGENT_ID',CURRENT_TIMESTAMP,'localhost','-1','-1',CURRENT_TIMESTAMP,10812)
/
INSERT INTO ESSBASE_GLOBAL (ID,JAGENT_ID,PASSWORD_STORED_COUNT,LOGINS_ENABLED,INACTIVITY_TIME,PASSWORD_EXPIRY_WARN_COUNT,VERSION_ID,ADMINSVC_LOCATION,CURRENCY_ENABLED,INVALID_ATTEMPTS,DEFAULT_ACCESS_LEVEL,SECURITY_MODE,INACTIVITY_CHECK,ESB_LANGUAGE,HOSTNAME,ESB_LOCATION,SECURITY_ENABLED,PASSWORD_VALIDITY,CREATION_DATE,PASSWORD_MIN_LENGTH,INVALID_LOCKOUT,SSS_NAME,LAST_MODIFIED_DATE,PRODUCT_CODE_VERSION,CSS_MIGRATED,HUB_REG_SEQUENCE_NUM,LOCALE_CONFIG) VALUES
('29003b00-b388-11e0-aff2-0800200c9a66','PRIMODIAL_AGENT_ID',6,1,3600,1,20,'',0,0,'SYSTEM_LEVEL_NONE','EPM',300,'','','',1,0,CURRENT_TIMESTAMP,6,0,'',CURRENT_TIMESTAMP,'11.1.2',0,0,1)
/
COMMIT
/
COMMIT
/
COMMIT
/
ALTER SESSION SET CURRENT_SCHEMA = TESTONE_BIPLATFORM ;
CREATE TABLE "CDS_LOAD_STATUS"
(
"SERVER" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"APPLICATION" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"DATABASE" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"OBJECT" BLOB,
"DATA_LOAD" NUMBER(1,0) NOT NULL ENABLE,
CONSTRAINT "CDS_LOAD_STATUS_PK" PRIMARY KEY ("SERVER", "APPLICATION", "DATABASE", "DATA_LOAD"))
/
CREATE TABLE "CDS_OBJECT"
(
"SERVER" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"APPLICATION" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"DATABASE" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"TYPE" NUMBER NOT NULL ENABLE,
"OBJECT" BLOB,
CONSTRAINT "CDS_OBJ_PK" PRIMARY KEY ("SERVER", "APPLICATION","DATABASE","TYPE"))
/
ALTER SESSION SET CURRENT_SCHEMA = TESTONE_BIPLATFORM ;
CREATE TABLE "BIPAT_TASKS"
("ID" NUMBER(19) NOT NULL PRIMARY KEY,
"COMMAND" VARCHAR2(512) NULL,
"CREATED_TIME" TIMESTAMP NOT NULL,
"END_TIME" TIMESTAMP NULL,
"ESB_SESSION" NUMBER(19) NULL,
"NAME" VARCHAR2(255) NOT NULL,
"RETRY_COUNT" NUMBER(10) NULL,
"START_TIME" TIMESTAMP NULL,
"STATUS" VARCHAR2(255) NOT NULL,
"TYPE" VARCHAR2(255) NOT NULL,
"USER_NAME" VARCHAR2(255) NOT NULL,
"VERSION" NUMBER(10) NULL
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "BIPAT_TASK_CONN_INFO"
("CONN_INFO" VARCHAR2(255) NOT NULL,
"IS_TARGET" NUMBER(5) NOT NULL,
"TASK_ID" NUMBER(19) NOT NULL PRIMARY KEY
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "BIPAT_TASK_MESSAGES"
("MESSAGE" VARCHAR2(255) NULL,
"TASK_ID" NUMBER(19) NOT NULL PRIMARY KEY
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
CREATE TABLE "BIPAT_TASK_ID_TAB_GEN"
("PRIMARY_KEY_NAME" VARCHAR2(50) NOT NULL PRIMARY KEY,
"NEXT_ID_VALUE" NUMBER(38) NULL
)SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
/
ALTER TABLE "BIPAT_TASK_MESSAGES" ADD CONSTRAINT "FK_TASK_MESSAGES_TASK_ID"
FOREIGN KEY ("TASK_ID") REFERENCES "BIPAT_TASKS"("ID") ENABLE
/
ALTER TABLE "BIPAT_TASK_CONN_INFO" ADD CONSTRAINT "FK_TASK_CONN_INFO_TASK_ID"
FOREIGN KEY ("TASK_ID") REFERENCES "BIPAT_TASKS" ("ID") ENABLE
/
UPDATE SYSTEM.SCHEMA_VERSION_REGISTRY SET status='VALID', modified=CURRENT_TIMESTAMP WHERE comp_id='BIPLATFORM' AND mrc_name='TESTONE'
/
---------------------------------------------------------
---------- BIPLATFORM(Business Intelligence Platform) SECTION ENDS ----------
---------------------------------------------------------
EXIT; |
<filename>player_data(2).sql
insert into Player values (1, '<NAME>', 23, 1, 42, 75, 73, 71, 3, 'right', 'GK', 1);
insert into Player values (2, '<NAME>', 27, 55, 50, 70, 78, 68, 1, 'right', 'DEF', 1);
insert into Player values (3, '<NAME>', 33, 11, 59, 70, 67, 60, 2, 'right', 'DEF', 1);
insert into Player values (4, '<NAME>', 24, 19, 70, 60, 74, 53, 2, 'right', 'DEF', 1);
insert into Player values (5, 'T.FOKET', 21, 32, 65, 58, 74, 69, 2, 'right', 'MDF', 1);
insert into Player values (6, '<NAME>', 22, 17, 67, 64, 75, 68, 2, 'right', 'MDF', 1);
insert into Player values (7, '<NAME>', 27, 14, 68, 65, 76, 71, 3, 'right', 'MDF', 1);
insert into Player values (8, '<NAME>', 29, 21, 58, 71, 76, 63, 2, 'right', 'MDF', 1);
insert into Player values (9, 'DEPOITRE', 27, 9, 79, 43, 77, 70, 2, 'right', 'FWD', 1);
insert into Player values (10, '<NAME>', 29, 77, 69, 54, 75, 68, 2, 'right', 'FWD', 1);
insert into Player values (11, '<NAME>', 20, 27, 74, 56, 76, 70, 2, 'right', 'FWD', 1);
insert into Player values (12, '<NAME>', 32, 1, 47, 86, 78, 81, 2, 'right', 'GK', 2);
insert into Player values (13, '<NAME>', 23, 34, 69, 76, 78, 83, 3, 'right', 'DEF', 2);
insert into Player values (14, 'KLOSE', 27, 5, 61, 76, 78, 74, 3, 'right', 'DEF', 2);
insert into Player values (15, 'NALDO', 33, 25, 56, 83, 78, 81, 2, 'right', 'DEF', 2);
insert into Player values (16, '<NAME>', 28, 15, 61, 74, 78, 71, 1, 'right', 'DEF', 2);
insert into Player values (17, '<NAME>', 25, 23, 71, 75, 78, 78, 3, 'right', 'MDF', 2);
insert into Player values (18, '<NAME>', 28, 22, 70, 90, 88, 84, 2, 'right', 'MDF', 2);
insert into Player values (19, '<NAME>', 27, 7, 72, 56, 80, 76, 3, 'right', 'MDF', 2);
insert into Player values (20, '<NAME>', 21, 27, 71, 58, 82, 77, 3, 'right', 'MDF', 2);
insert into Player values (21, 'HUNT', 29, 10, 72, 49, 72, 71, 2, 'right', 'MDF', 2);
insert into Player values (22, '<NAME>', 26, 9, 74, 62, 79, 73, 2, 'right', 'FWD', 2);
insert into Player values (23, '<NAME>', 29, 1, 56, 71, 87, 90, 3, 'right', 'GK', 3);
insert into Player values (24, '<NAME>', 23, 27, 74, 82, 85, 89, 2, 'right', 'DEF', 3);
insert into Player values (25, '<NAME>', 28, 5, 67, 92, 80, 86, 3, 'right', 'DEF', 3);
insert into Player values (26, '<NAME>', 27, 17, 69, 88, 83, 89, 2, 'right', 'DEF', 3);
insert into Player values (27, 'RAFINHA', 30, 13, 71, 72, 79, 80, 2, 'right', 'DEF', 3);
insert into Player values (28, '<NAME>', 28, 2, 81, 86, 93, 88, 3, 'right', 'MDF', 3);
insert into Player values (29, '<NAME>', 32, 21, 70, 85, 91, 87, 3, 'right', 'MDF', 3);
insert into Player values (30, '<NAME>', 34, 14, 72, 84, 65, 80, 2, 'right', 'MDF', 3);
insert into Player values (31, '<NAME>', 25, 3, 79, 59, 77, 76, 2, 'right', 'FWD', 3);
insert into Player values (32, '<NAME>', 27, 9, 91, 53, 77, 89, 3, 'right', 'FWD', 3);
insert into Player values (33, '<NAME>', 26, 25, 95, 65, 86, 83, 3, 'right', 'FWD', 3);
insert into Player values (34, '<NAME>', 38, 26, 50, 56, 68, 82, 3, 'right', 'GK', 4);
insert into Player values (35, '<NAME>', 31, 25, 70, 73, 79, 78, 2, 'right', 'DEF', 4);
insert into Player values (36, '<NAME>', 29, 5, 63, 85, 77, 82, 1, 'right', 'DEF', 4);
insert into Player values (37, '<NAME>', 24, 44, 58, 88, 82, 83, 2, 'right', 'DEF', 4);
insert into Player values (38, 'MAICON', 34, 13, 75, 74, 76, 80, 3, 'right', 'DEF', 4);
insert into Player values (39, '<NAME>', 25, 15, 78, 63, 76, 84, 2, 'right', 'MDF', 4);
insert into Player values (40, '<NAME>', 32, 16, 70, 81, 86, 84, 3, 'right', 'MDF', 4);
insert into Player values (41, '<NAME>', 27, 4, 66, 80, 90, 83, 3, 'right', 'MDF', 4);
insert into Player values (42, 'GERVINHO', 28, 27, 81, 57, 91, 83, 3, 'right', 'FWD', 4);
insert into Player values (43, '<NAME>', 39, 10, 84, 55, 69, 84, 2, 'right', 'FWD', 4);
insert into Player values (44, '<NAME>', 22, 7, 73, 53, 72, 81, 2, 'right', 'FWD', 4);
insert into Player values (45, '<NAME>', 37, 1, 40, 56, 65, 88, 3, 'right', 'GK', 5);
insert into Player values (46, '<NAME>', 24, 10, 76, 68, 83, 80, 2, 'right', 'DEF', 5);
insert into Player values (47, '<NAME>', 31, 3, 62, 89, 81, 86, 3, 'right', 'DEF', 5);
insert into Player values (48, '<NAME>', 28, 19, 68, 84, 76, 84, 3, 'right', 'DEF', 5);
insert into Player values (49, '<NAME>', 31, 26, 75, 76, 92, 83, 3, 'right', 'DEF', 5);
insert into Player values (50, 'P.POGBA', 22, 6, 79, 73, 85, 88, 3, 'right', 'MDF', 5);
insert into Player values (51, '<NAME>', 29, 8, 78, 78, 86, 82, 2, 'right', 'MDF', 5);
insert into Player values (52, '<NAME>', 28, 12, 75, 81, 80, 81, 1, 'right', 'MDF', 5);
insert into Player values (53, 'HERNANES', 30, 21, 77, 63, 74, 85, 3, 'right', 'MDF', 5);
insert into Player values (54, '<NAME>', 23, 9, 83, 54, 83, 83, 2, 'right', 'FWD', 5);
insert into Player values (55, '<NAME>', 27, 18, 78, 57, 82, 73, 2, 'right', 'FWD', 5);
insert into Player values (56, '<NAME>', 24, 1, 41, 60, 72, 80, 3, 'right', 'GK', 6);
insert into Player values (57, '<NAME>', 21, 15, 75, 65, 78, 79, 3, 'right', 'DEF', 6);
insert into Player values (58, '<NAME>', 21, 3, 64, 79, 75, 78, 2, 'right', 'DEF', 6);
insert into Player values (59, '<NAME>', 24, 5, 62, 78, 77, 79, 3, 'right', 'DEF', 6);
insert into Player values (60, '<NAME>', 24, 2, 59, 76, 76, 71, 2, 'right', 'DEF', 6);
insert into Player values (61, '<NAME>', 25, 10, 76, 67, 79, 77, 2, 'right', 'MDF', 6);
insert into Player values (62, '<NAME>', 29, 18, 74, 64, 82, 79, 2, 'right', 'MDF', 6);
insert into Player values (63, '<NAME>', 22, 6, 78, 66, 78, 80, 2, 'right', 'MDF', 6);
insert into Player values (64, '<NAME>', 25, 9, 80, 60, 79, 71, 3, 'right', 'FWD', 6);
insert into Player values (65, '<NAME>', 22, 17, 76, 47, 71, 74, 3, 'right', 'FWD', 6);
insert into Player values (66, '<NAME>', 25, 11, 73, 48, 76, 77, 2, 'right', 'FWD', 6);
insert into Player values (67, '<NAME>', 36, 20, 42, 75, 62, 81, 3, 'right', 'GK', 7);
insert into Player values (68, 'ELISEU', 32, 19, 74, 74, 83, 79, 2, 'right', 'DEF', 7);
insert into Player values (69, 'JARDEL', 29, 33, 60, 82, 75, 78, 3, 'right', 'DEF', 7);
insert into Player values (70, 'LUISAO', 34, 4, 63, 84, 77, 83, 3, 'right', 'DEF', 7);
insert into Player values (71, '<NAME>', 31, 14, 73, 75, 90, 80, 3, 'right', 'DEF', 7);
insert into Player values (72, 'SALVIO', 25, 18, 81, 56, 80, 82, 2, 'right', 'MDF', 7);
insert into Player values (73, 'PIZZI', 26, 21, 73, 53, 74, 74, 2, 'right', 'MDF', 7);
insert into Player values (74, '<NAME>', 27, 5, 67, 72, 84, 72, 3, 'right', 'MDF', 7);
insert into Player values (75, '<NAME>', 27, 10, 85, 57, 82, 86, 3, 'right', 'MDF', 7);
insert into Player values (76, 'JONAS', 31, 17, 73, 45, 78, 75, 2, 'right', 'FWD', 7);
insert into Player values (77, 'LIMA', 32, 11, 82, 49, 83, 81, 3, 'right', 'FWD', 7);
insert into Player values (78, '<NAME>', 40, 1, 40, 86, 57, 71, 2, 'right', 'GK', 8);
insert into Player values (79, '<NAME>', 26, 24, 65, 74, 76, 73, 3, 'right', 'DEF', 8);
insert into Player values (80, '<NAME>', 24, 6, 54, 76, 76, 74, 3, 'right', 'DEF', 8);
insert into Player values (81, '<NAME>', 28, 34, 61, 74, 78, 74, 2, 'right', 'DEF', 8);
insert into Player values (82, '<NAME>', 29, 2, 56, 73, 75, 74, 2, 'right', 'DEF', 8);
insert into Player values (83, '<NAME>', 26, 10, 73, 54, 84, 78, 2, 'right', 'DEF', 8);
insert into Player values (84, '<NAME>', 25, 90, 78, 58, 80, 77, 3, 'right', 'MDF', 8);
insert into Player values (85, 'MIGUEL', 29, 4, 69, 76, 75, 83, 2, 'right', 'MDF', 8);
insert into Player values (86, '<NAME>', 24, 16, 70, 58, 69, 69, 2, 'right', 'MDF', 8);
insert into Player values (87, '<NAME>', 28, 7, 75, 48, 77, 75, 3, 'right', 'MDF', 8);
insert into Player values (88, '<NAME>', 26, 22, 68, 56, 63, 59, 2, 'right', 'FWD', 8);
insert into Player values (89, '<NAME>', 27, 13, 43, 57, 59, 79, 2, 'right', 'GK', 9);
insert into Player values (90, '<NAME>', 29, 18, 60, 79, 85, 79, 2, 'right', 'DEF', 9);
insert into Player values (91, '<NAME>', 30, 6, 56, 89, 76, 85, 2, 'right', 'DEF', 9);
insert into Player values (92, '<NAME>', 31, 4, 54, 94, 77, 85, 3, 'right', 'DEF', 9);
insert into Player values (93, '<NAME>', 20, 29, 61, 65, 73, 72, 2, 'right', 'DEF', 9);
insert into Player values (94, '<NAME>', 24, 34, 64, 78, 80, 74, 2, 'right', 'MDF', 9);
insert into Player values (95, '<NAME>', 31, 19, 84, 54, 67, 79, 2, 'right', 'MDF', 9);
insert into Player values (96, '<NAME>', 27, 17, 85, 55, 87, 84, 2, 'right', 'MDF', 9);
insert into Player values (97, '<NAME>', 27, 11, 84, 44, 75, 84, 2, 'left', 'MDF', 9);
insert into Player values (98, '<NAME>', 25, 16, 86, 67, 94, 76, 2, 'right', 'MDF', 9);
insert into Player values (99, '<NAME>', 29, 12, 91, 47, 85, 85, 2, 'left', 'FWD', 9);
insert into Player values (100, '<NAME>', 23, 13, 42, 56, 60, 87, 3, 'left', 'GK', 10);
insert into Player values (101, '<NAME>', 26, 28, 74, 83, 86, 83, 3, 'right', 'DEF', 10);
insert into Player values (102, '<NAME>', 35, 26, 62, 92, 78, 82, 2, 'right', 'DEF', 10);
insert into Player values (103, '<NAME>', 30, 24, 63, 86, 79, 84, 2, 'right', 'DEF', 10);
insert into Player values (104, '<NAME>', 31, 2, 75, 85, 84, 83, 3, 'right', 'DEF', 10);
insert into Player values (105, '<NAME>', 28, 4, 87, 69, 78, 81, 2, 'right', 'DEF', 10);
insert into Player values (106, '<NAME>', 27, 21, 66, 86, 91, 88, 3, 'left', 'MDF', 10);
insert into Player values (107, '<NAME>', 24, 10, 89, 57, 81, 89, 2, 'right', 'MDF', 10);
insert into Player values (108, 'OSCAR', 24, 8, 84, 60, 81, 86, 3, 'right', 'MDF', 10);
insert into Player values (109, 'WILLIAN', 27, 22, 80, 59, 87, 84, 2, 'right', 'MDF', 10);
insert into Player values (110, '<NAME>', 27, 19, 89, 55, 78, 87, 1, 'right', 'FWD', 10);
insert into Player values (111, '<NAME>', 28, 1, 40, 85, 62, 84, 3, 'right', 'GK', 11);
insert into Player values (112, '<NAME>', 30, 11, 74, 70, 78, 81, 2, 'left', 'DEF', 11);
insert into Player values (113, '<NAME>', 24, 20, 63, 80, 79, 82, 3, 'right', 'DEF', 11);
insert into Player values (114, '<NAME>', 35, 26, 63, 90, 89, 80, 2, 'right', 'DEF', 11);
insert into Player values (115, '<NAME>', 30, 5, 75, 78, 84, 82, 2, 'right', 'DEF', 11);
insert into Player values (116, '<NAME>', 32, 42, 85, 81, 84, 85, 1, 'right', 'MDF', 11);
insert into Player values (117, 'FERNANDINHO', 30, 25, 76, 75, 80, 78, 2, 'right', 'MDF', 11);
insert into Player values (118, '<NAME>', 37, 18, 81, 66, 80, 68, 2, 'right', 'MDF', 11);
insert into Player values (119, '<NAME>', 27, 16, 90, 48, 72, 82, 1, 'right', 'MDF', 11);
insert into Player values (120, '<NAME>', 29, 21, 85, 44, 73, 83, 2, 'right', 'MDF', 11);
insert into Player values (121, '<NAME>', 34, 13, 57, 85, 60, 48, 3, 'right', 'FWD', 11);
insert into Player values (122, '<NAME>', 36, 16, 40, 65, 68, 72, 3, 'right', 'GK', 12);
insert into Player values (123, '<NAME>', 29, 4, 52, 83, 83, 82, 3, 'right', 'DEF', 12);
insert into Player values (124, '<NAME>', 30, 6, 50, 80, 70, 77, 3, 'right', 'DEF', 12);
insert into Player values (125, '<NAME>', 27, 13, 61, 75, 73, 74, 3, 'right', 'DEF', 12);
insert into Player values (126, '<NAME>', 27, 19, 58, 75, 78, 74, 3, 'right', 'DEF', 12);
insert into Player values (127, '<NAME>', 25, 17, 78, 51, 69, 74, 3, 'right', 'MDF', 12);
insert into Player values (128, '<NAME>', 28, 21, 68, 83, 80, 82, 2, 'right', 'MDF', 12);
insert into Player values (129, '<NAME>', 26, 28, 69, 72, 83, 83, 3, 'right', 'MDF', 12);
insert into Player values (130, 'DANNY', 32, 35, 81, 50, 69, 80, 1, 'right', 'FWD', 12);
insert into Player values (131, '<NAME>', 26, 23, 77, 45, 78, 74, 2, 'right', 'FWD', 12);
insert into Player values (132, '<NAME>', 29, 5, 68, 60, 62, 69, 2, 'right', 'FWD', 12);
insert into Player values (133, '<NAME>', 22, 13, 41, 60, 64, 79, 2, 'right', 'GK', 13);
insert into Player values (134, '<NAME>', 30, 9, 69, 80, 88, 85, 2, 'right', 'DEF', 13);
insert into Player values (135, 'JUANFRAN', 30, 20, 72, 78, 87, 66, 3, 'right', 'DEF', 13);
insert into Player values (136, '<NAME>', 29, 2, 68, 92, 80, 87, 3, 'right', 'DEF', 13);
insert into Player values (137, '<NAME>', 29, 3, 72, 74, 80, 73, 2, 'right', 'DEF', 13);
insert into Player values (138, 'KOKE', 23, 6, 79, 60, 85, 84, 3, 'right', 'MDF', 13);
insert into Player values (139, 'TIAGO', 34, 5, 73, 75, 78, 79, 2, 'right', 'MDF', 13);
insert into Player values (140, '<NAME>', 29, 8, 80, 64, 81, 72, 2, 'right', 'MDF', 13);
insert into Player values (141, '<NAME>', 24, 7, 86, 55, 89, 76, 3, 'left', 'MDF', 13);
insert into Player values (142, '<NAME>', 31, 19, 81, 60, 79, 80, 2, 'right', 'FWD', 13);
insert into Player values (143, '<NAME>.', 29, 10, 80, 49, 79, 84, 3, 'right', 'FWD', 13);
insert into Player values (144, '<NAME>', 32, 13, 46, 56, 74, 81, 3, 'right', 'GK', 14);
insert into Player values (145, '<NAME>', 26, 18, 77, 76, 92, 85, 3, 'right', 'DEF', 14);
insert into Player values (146, '<NAME>', 31, 14, 61, 92, 95, 81, 3, 'right', 'DEF', 14);
insert into Player values (147, '<NAME>', 28, 3, 62, 91, 89, 88, 3, 'right', 'DEF', 14);
insert into Player values (148, '<NAME>', 32, 22, 75, 66, 79, 85, 2, 'right', 'DEF', 14);
insert into Player values (149, '<NAME>', 27, 4, 82, 61, 79, 82, 3, 'right', 'MDF', 14);
insert into Player values (150, '<NAME>', 27, 5, 60, 90, 90, 86, 2, 'right', 'MDF', 14);
insert into Player values (151, '<NAME>', 31, 8, 78, 57, 78, 87, 2, 'right', 'MDF', 14);
insert into Player values (152, 'NEYMAR', 23, 11, 88, 48, 86, 86, 2, 'right', 'FWD', 14);
insert into Player values (153, '<NAME>', 28, 9, 94, 49, 86, 86, 3, 'right', 'FWD', 14);
insert into Player values (154, '<NAME>', 28, 10, 97, 42, 70, 91, 3, 'left', 'FWD', 14);
insert into Player values (155, '<NAME>', 29, 13, 40, 56, 75, 79, 2, 'right', 'GK', 15);
insert into Player values (156, '<NAME>', 23, 15, 68, 83, 87, 80, 2, 'right', 'DEF', 15);
insert into Player values (157, 'PEPE', 32, 3, 56, 90, 86, 86, 2, 'right', 'DEF', 15);
insert into Player values (158, '<NAME>', 29, 4, 65, 85, 85, 90, 3, 'right', 'DEF', 15);
insert into Player values (159, 'MARCELO', 27, 12, 83, 81, 83, 77, 1, 'left', 'DEF', 15);
insert into Player values (160, '<NAME>', 24, 10, 84, 60, 84, 83, 2, 'left', 'MDF', 15);
insert into Player values (161, '<NAME>', 25, 8, 76, 74, 83, 85, 2, 'right', 'MDF', 15);
insert into Player values (162, '<NAME>', 30, 19, 82, 65, 84, 88, 2, 'left', 'MDF', 15);
insert into Player values (163, '<NAME>', 30, 7, 93, 57, 87, 92, 2, 'right', 'FWD', 15);
insert into Player values (164, '<NAME>', 28, 9, 84, 53, 77, 87, 2, 'right', 'FWD', 15);
insert into Player values (165, '<NAME>', 26, 11, 78, 69, 87, 90, 1, 'left', 'FWD', 15);
insert into Player values (166, '<NAME>', 28, 30, 46, 70, 69, 85, 3, 'right', 'GK', 16);
insert into Player values (167, '<NAME>', 34, 17, 75, 74, 78, 80, 3, 'right', 'DEF', 16);
insert into Player values (168, '<NAME>', 28, 32, 78, 81, 75, 86, 2, 'right', 'DEF', 16);
insert into Player values (169, '<NAME>', 31, 2, 73, 95, 79, 90, 3, 'right', 'DEF', 16);
insert into Player values (170, '<NAME>', 21, 5, 64, 82, 74, 77, 3, 'right', 'DEF', 16);
insert into Player values (171, '<NAME>', 23, 24, 73, 77, 73, 82, 3, 'right', 'MDF', 16);
insert into Player values (172, 'T.MOTTA', 33, 8, 73, 83, 74, 86, 1, 'right', 'MDF', 16);
insert into Player values (173, '<NAME>', 28, 14, 74, 85, 95, 80, 3, 'left', 'MDF', 16);
insert into Player values (174, '<NAME>', 28, 9, 85, 65, 91, 80, 3, 'right', 'FWD', 16);
insert into Player values (175, '<NAME>', 34, 10, 86, 48, 74, 91, 2, 'right', 'FWD', 16);
insert into Player values (176, '<NAME>', 27, 3, 84, 57, 78, 81, 2, 'left', 'FWD', 16);
|
CREATE INDEX /*i*/echo_notification_user_read_timestamp ON /*_*/echo_notification (notification_user, notification_read_timestamp);
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 25 Nov 2019 pada 14.41
-- Versi server: 10.1.35-MariaDB
-- Versi PHP: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `dw`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `admin`
--
CREATE TABLE `admin` (
`idadmin` int(3) NOT NULL,
`nama` varchar(50) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`level` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `barang`
--
CREATE TABLE `barang` (
`idbarang` varchar(8) NOT NULL,
`namabarang` varchar(50) DEFAULT NULL,
`deskripsi` varchar(255) DEFAULT NULL,
`gambar` varchar(50) DEFAULT NULL,
`stok` int(3) DEFAULT NULL,
`harga` int(12) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `cek`
--
CREATE TABLE `cek` (
`idcek` int(10) NOT NULL,
`idpembayaran` int(10) DEFAULT NULL,
`verifikasi` varchar(50) DEFAULT NULL,
`status` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `detailpesanan`
--
CREATE TABLE `detailpesanan` (
`iddetailpesan` int(10) NOT NULL,
`idpesanan` int(10) DEFAULT NULL,
`iduser` int(3) DEFAULT NULL,
`tanggalpesan` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pembayaran`
--
CREATE TABLE `pembayaran` (
`idpembayaran` int(10) NOT NULL,
`iddetailpesan` int(10) DEFAULT NULL,
`bank` varchar(10) DEFAULT NULL,
`struk` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pesanan`
--
CREATE TABLE `pesanan` (
`idpesanan` int(10) NOT NULL,
`idbarang` varchar(8) DEFAULT NULL,
`quantity` int(3) DEFAULT NULL,
`subharga` int(13) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE `user` (
`iduser` int(3) NOT NULL,
`nama` varchar(50) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`alamat` varchar(50) DEFAULT NULL,
`nohp` varchar(13) DEFAULT NULL,
`pertanyaan` varchar(50) DEFAULT NULL,
`jawaban` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`idadmin`);
--
-- Indeks untuk tabel `barang`
--
ALTER TABLE `barang`
ADD PRIMARY KEY (`idbarang`);
--
-- Indeks untuk tabel `cek`
--
ALTER TABLE `cek`
ADD PRIMARY KEY (`idcek`);
--
-- Indeks untuk tabel `detailpesanan`
--
ALTER TABLE `detailpesanan`
ADD PRIMARY KEY (`iddetailpesan`);
--
-- Indeks untuk tabel `pembayaran`
--
ALTER TABLE `pembayaran`
ADD PRIMARY KEY (`idpembayaran`);
--
-- Indeks untuk tabel `pesanan`
--
ALTER TABLE `pesanan`
ADD PRIMARY KEY (`idpesanan`);
--
-- Indeks untuk tabel `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`iduser`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `admin`
--
ALTER TABLE `admin`
MODIFY `idadmin` int(3) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `cek`
--
ALTER TABLE `cek`
MODIFY `idcek` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `pembayaran`
--
ALTER TABLE `pembayaran`
MODIFY `idpembayaran` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `pesanan`
--
ALTER TABLE `pesanan`
MODIFY `idpesanan` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `user`
--
ALTER TABLE `user`
MODIFY `iduser` int(3) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/* create database swm */
CREATE DATABASE `swm`CHARACTER SET utf8 COLLATE utf8_bin;
/* create table t_user */
CREATE TABLE `swm`.`t_user`( `id` INT(32) NOT NULL AUTO_INCREMENT, `username` VARCHAR(32), PRIMARY KEY (`id`) );
INSERT INTO `swm`.`t_user` (`id`, `username`) VALUES ('1', 'yang');
INSERT INTO `swm`.`t_user` (`id`, `username`) VALUES ('2', 'liu');
|
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('1950','Adult Graduation Program','The B.C. Adult Graduation Diploma program, also known as the “Adult Dogwood.” Students are eligible to enter the Adult Graduation Program at 18 years of age. Students must, either through enrolment or assigned credit through prior learning assessment, complete or obtain at least 3 courses after being admitted in an adult program.',10,TIMESTAMP'1999-09-01 00:00:00.0',NULL);
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('2018-EN','Graduation Program 2018','The current B.C. Certificate of Graduation or “Dogwood Diploma” program. Students must earn a minimum of 80 credits and write the Grade 10 Numeracy Assessment and Grades 10 and 12 Literacy Assessments.',20,TIMESTAMP'2018-07-01 00:00:00.0',NULL);
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('2018-PF','2018 Programme Francophone','The current Diplôme de fin d''études secondaires en Colombie-Britannique program for students enrolled in Programme francophone. Students must earn a minimum of 80 credits and write a Numeracy 10 Assessment as well as the Evaluation de Litteratie 10 et 12 - Premiere assessments.',30,TIMESTAMP'2018-07-01 00:00:00.0',NULL);
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('SCCP','Student Completion Certificate Program','The School Completion “Evergreen” Certificate program. Recognizes the accomplishments of students with special needs and an Individual Education Plan who have met the goals of their education program. It is not a graduation credential.',40,TIMESTAMP'2006-07-01 00:00:00.0',NULL);
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('2004-EN','Graduation Program 2004','The 2004 B.C. Certificate of Graduation or “Dogwood Diploma” program (pre-2018 graduation program).',50,TIMESTAMP'2004-07-01 00:00:00.0',TIMESTAMP'2021-06-30 00:00:00.0');
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('2004-PF','2004 Programme Francophone','The 2004 Diplôme de fin d''études secondaires en Colombie-Britannique (pre-2018 graduation program).',60,TIMESTAMP'2004-07-01 00:00:00.0',TIMESTAMP'2021-06-30 00:00:00.0');
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('1996','Graduation Program 1995','The 1995 B.C. Certificate of Graduation or “Dogwood Diploma” program (pre-2004 graduation program).',70,TIMESTAMP'1996-07-01 00:00:00.0',TIMESTAMP'2011-06-30 00:00:00.0');
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('1986','Course Based Graduation Program','The 1986 B.C. Certificate of Graduation or “Dogwood Diploma” program (pre-1995 course-based program).',80,TIMESTAMP'1985-07-01 00:00:00.0',TIMESTAMP'2001-06-30 00:00:00.0');
INSERT INTO GRADUATION_PROGRAM_CODE (GRADUATION_PROGRAM_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('NOPROG','No Program Specified','Students not on a recognized GRAD system program but completing grades 10-12 courses (e.g., pre-1986 and out-of-jurisdiction graduates, or international students not on a B.C. graduation program).',90,TIMESTAMP'2021-06-14 00:00:00.0',NULL); |
SET send_logs_level = 'none';
SELECT if(); -- { serverError 42 }
SELECT if(1); -- { serverError 42 }
SELECT if(1, 1); -- { serverError 42 }
SELECT if(1, 1, 1);
|
CREATE PROCEDURE SP765(OUT MYCOUNT INTEGER) SPECIFIC SP765_122155 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE280;SELECT COUNT(*)INTO MYCOUNT FROM TABLE146;SELECT COUNT(*)INTO MYCOUNT FROM TABLE202;SELECT COUNT(*)INTO MYCOUNT FROM VIEW47;SELECT COUNT(*)INTO MYCOUNT FROM VIEW40;SELECT COUNT(*)INTO MYCOUNT FROM VIEW12;CALL SP998(MYVAR);CALL SP331(MYVAR);CALL SP216(MYVAR);CALL SP390(MYVAR);END
GO |
<filename>sql/common/V20210512180107__add-language.sql
alter table Settings
add language text default 'EN';
|
COMMENT ON LARGE OBJECT 346344 IS 'Planning document';
|
begin;
CREATE TABLE oid_nonces
(
server_url VARCHAR(2047) NOT NULL,
timestamp INTEGER NOT NULL,
salt CHAR(40) NOT NULL,
PRIMARY KEY (server_url, timestamp, salt)
);
CREATE TABLE oid_associations
(
server_url VARCHAR(2047) NOT NULL,
handle VARCHAR(255) NOT NULL,
secret BYTEA NOT NULL,
issued INTEGER NOT NULL,
lifetime INTEGER NOT NULL,
assoc_type VARCHAR(64) NOT NULL,
PRIMARY KEY (server_url, handle),
CONSTRAINT secret_length_constraint CHECK (LENGTH(secret) <= 128)
);
GRANT ALL ON oid_nonces, oid_associations TO pypi;
commit;
|
-- @testpoint: isopen函数有效值测试
SELECT isopen(path '[(0,0),(1,1),(2,0)]') AS RESULT; |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 29, 2021 at 06:40 AM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 5.6.32
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: `task`
--
-- --------------------------------------------------------
--
-- Table structure for table `city`
--
CREATE TABLE `city` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`state_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `city`
--
INSERT INTO `city` (`id`, `name`, `state_id`, `created_at`, `updated_at`) VALUES
(1, 'darbhanga', 1, NULL, NULL),
(2, 'muzaffarpur', 1, NULL, NULL),
(3, 'patna', 1, NULL, NULL),
(4, 'madhubani', 1, NULL, NULL),
(5, 'gurgaon', 2, NULL, NULL),
(6, 'ambala', 2, NULL, NULL),
(7, 'karnal', 2, NULL, NULL),
(8, 'panipat', 2, NULL, NULL),
(9, 'faridabad', 2, NULL, NULL),
(10, 'sonipat', 2, NULL, NULL),
(11, 'rohtak', 2, NULL, NULL),
(12, 'rewari', 2, NULL, NULL),
(13, '<NAME>', 2, NULL, NULL),
(14, 'palwal', 2, NULL, NULL),
(15, 'jind', 2, NULL, NULL),
(16, 'chandigadh', 2, NULL, NULL),
(17, 'sirsa', 2, NULL, NULL),
(18, 'panchkula', 2, NULL, NULL),
(19, 'hisar', 2, NULL, NULL),
(20, 'bhiwani', 2, NULL, NULL),
(21, 'thanesar', 2, NULL, NULL),
(22, 'kaithal', 2, NULL, NULL),
(23, 'mahendergadh', 2, NULL, NULL),
(24, 'kosli', 2, NULL, NULL),
(25, 'pundri', 2, NULL, NULL),
(26, '<NAME>', 2, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(2, '2021_12_28_151958_create_states_table', 1),
(3, '2021_12_28_155611_create_city_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`abilities` text COLLATE utf8_unicode_ci,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `states`
--
CREATE TABLE `states` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `states`
--
INSERT INTO `states` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'bihar', NULL, NULL),
(2, 'haryana', NULL, NULL),
(3, 'new delhi', NULL, NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `city`
--
ALTER TABLE `city`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Indexes for table `states`
--
ALTER TABLE `states`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `city`
--
ALTER TABLE `city`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `states`
--
ALTER TABLE `states`
MODIFY `id` bigint(20) UNSIGNED 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 */;
|
-- Name: Project No. 4: SQL script with the advanced database objects
-- Subject: Database Systems 2017/2018
-- Institute: Faculty of Information Technology, Brno University of Technology
--
-- Author: xstupi00 AT stud.fit.vutbr.cz
-- Author: xzubri00 AT stud.fit.vutbr.cz
--
-- Date: 01-05-2018
SET serveroutput ON;
-- drop TABLE
DROP TABLE PERSON CASCADE CONSTRAINTS;
DROP TABLE DOCTOR CASCADE CONSTRAINTS;
DROP TABLE NURSE CASCADE CONSTRAINTS;
DROP TABLE PATIENT CASCADE CONSTRAINTS;
DROP TABLE OBLIGATION CASCADE CONSTRAINTS;
DROP TABLE DEPARTMENT CASCADE CONSTRAINTS;
DROP TABLE EXAMINATION CASCADE CONSTRAINTS;
DROP TABLE HOSPITALIZATION CASCADE CONSTRAINTS;
DROP TABLE MEDICATION CASCADE CONSTRAINTS;
DROP TABLE ADMINISTRATION_MEDICATION CASCADE CONSTRAINTS;
DROP SEQUENCE DEPARTMENT_ID;
--DROP TRIGGER AUTO_INCREMENTATION_ID;
--DROP TRIGGER CHECK_ID_NUMBER;
--DROP TRIGGER CHECK_IBAN;
--DROP TRIGGER SET_TURNDATE;
--DROP PROCEDURE DETAILS_EXAMINATION;
--DROP PROCEDURE MEDICAMENTS_COUNT;
--DROP PROCEDURE REMOVE_OLD_EXAMINATION;
--DROP INDEX INFO_INDEX;
--DROP INDEX ID_INDEX;
CONNECT xzubri00/KiRkPrDC;
DROP MATERIALIZED VIEW nurse_view;
CONNECT xstupi00/j06nyINz;
-- create TABLE
CREATE TABLE PERSON (
PERSON_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
"NAME" VARCHAR2(42) NOT NULL,
SURNAME VARCHAR2(42) NOT NULL,
BIRTHDATE DATE NOT NULL,
ID_NUMBER INTEGER NOT NULL,
TOWN VARCHAR2(42) NOT NULL,
STREET VARCHAR2(42),
HOUSE_NUMBER INTEGER NOT NULL,
COUNTRY VARCHAR2(42) NOT NULL,
POSTCODE INTEGER NOT NULL,
SEX CHAR(1) CHECK (SEX = 'M' OR SEX = 'F') NOT NULL
);
CREATE TABLE DOCTOR (
DOCTOR_ID INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL,
SPECIALIZATION VARCHAR2(42) NOT NULL,
"DEGREE" VARCHAR(42) NOT NULL,
POSITION VARCHAR2(42) NOT NULL,
ABBREVIATION VARCHAR2(42) NOT NULL,
"STATE" VARCHAR2(10) DEFAULT 'ACTIVE',
TURNDATE DATE
);
CREATE TABLE NURSE (
NURSE_ID INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL,
"DEGREE" VARCHAR2(42) NOT NULL,
TURNDATE DATE,
DEPARTMENT_ID INTEGER NOT NULL,
COMPETENCE VARCHAR2(42) NOT NULL
);
CREATE TABLE PATIENT (
PATIENT_ID INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL,
WEIGHT INTEGER NOT NULL,
HEIGHT INTEGER NOT NULL,
HEALTH_CONDITION VARCHAR2(42) NOT NULL,
ACCOUNT_NUMBER VARCHAR(42),
REGISTRATION_DATE TIMESTAMP NOT NULL,
DEATHDATE TIMESTAMP
);
CREATE TABLE OBLIGATION (
OBLIGATION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
DOCTOR_ID INTEGER NOT NULL,
DEPARTMENT_ID INTEGER NOT NULL,
"TYPE" VARCHAR2(42) NOT NULL,
PHONE_NUMBER varchar2(13) NOT NULL
);
CREATE TABLE DEPARTMENT (
DEPARTMENT_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
"NAME" VARCHAR2(42) NOT NULL,
COUNT_OF_BEDS INTEGER NOT NULL,
COUNT_OF_ROOMS INTEGER NOT NULL,
START_VISITING_HOURS VARCHAR2(5) NOT NULL,
END_VISITING_HOURS VARCHAR2(5) NOT NULL,
FLOOR INTEGER NOT NULL
);
CREATE TABLE EXAMINATION (
EXAMINATION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
DOCTOR_ID INTEGER NOT NULL,
DEPARTMENT_ID INTEGER NOT NULL,
HOSPITALIZATION_ID INTEGER NOT NULL,
SPECIALIZATION VARCHAR2(40) NOT NULL,
DATE_AND_TIME TIMESTAMP NOT NULL,
MEDICALRECORD VARCHAR2(1000) NOT NULL
);
CREATE TABLE HOSPITALIZATION (
HOSPITALIZATION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
DOCTOR_ID INTEGER NOT NULL,
DEPARTMENT_ID INTEGER NOT NULL,
PATIENT_ID INTEGER NOT NULL,
DATE_AND_TIME TIMESTAMP NOT NULL,
HOSPITAL_RECORD VARCHAR2(1000) NOT NULL
);
CREATE TABLE MEDICATION (
MEDICATION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
"NAME" VARCHAR2(42) NOT NULL,
MAX_DOSE INTEGER NOT NULL,
"FORM" VARCHAR2(42) NOT NULL,
ACTIVE_SUBSTANCE VARCHAR2(42) NOT NULL,
CONTRAINDICTION VARCHAR2(42) NOT NULL,
SIDE_EFFECTS VARCHAR2(42)
);
CREATE TABLE ADMINISTRATION_MEDICATION (
ADMINISTRATION_MEDICATION_ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL,
DOCTOR_ID INTEGER NOT NULL,
MEDICATION_ID INTEGER NOT NULL,
HOSPITALIZATION_ID INTEGER NOT NULL,
"PROCEDURE" VARCHAR2(42),
DATE_AND_TIME TIMESTAMP NOT NULL,
FREQUENCY_AT_DAY INTEGER NOT NULL,
WAY VARCHAR2(42) NOT NULL
);
-- set PRIMARY KEYS
ALTER TABLE PERSON ADD CONSTRAINT PK_PERSON_ID PRIMARY KEY(PERSON_ID);
ALTER TABLE DOCTOR ADD CONSTRAINT PK_DOCTOR_ID PRIMARY KEY(DOCTOR_ID);
ALTER TABLE NURSE ADD CONSTRAINT PK_NURSE_ID PRIMARY KEY(NURSE_ID);
ALTER TABLE PATIENT ADD CONSTRAINT PK_PATIENT_ID PRIMARY KEY(PATIENT_ID);
ALTER TABLE OBLIGATION ADD CONSTRAINT PK_OBLIGATION_ID PRIMARY KEY(OBLIGATION_ID);
ALTER TABLE DEPARTMENT ADD CONSTRAINT PK_DEPARTMENT_ID PRIMARY KEY(DEPARTMENT_ID);
ALTER TABLE EXAMINATION ADD CONSTRAINT PK_EXAMINATION_ID PRIMARY KEY(EXAMINATION_ID);
ALTER TABLE HOSPITALIZATION ADD CONSTRAINT PK_HOSPITALIZATION_ID PRIMARY KEY(HOSPITALIZATION_ID);
ALTER TABLE MEDICATION ADD CONSTRAINT PK_MEDICATION_ID PRIMARY KEY(MEDICATION_ID);
ALTER TABLE ADMINISTRATION_MEDICATION ADD CONSTRAINT PK_ADMINISTRATION_MEDICATION_ID PRIMARY KEY(ADMINISTRATION_MEDICATION_ID);
-- set FOREIGN KEYS
ALTER TABLE DOCTOR ADD CONSTRAINT FK_PERSON_ID_D FOREIGN KEY (DOCTOR_ID) REFERENCES PERSON(PERSON_ID);
ALTER TABLE NURSE ADD CONSTRAINT FK_PERSON_ID_N FOREIGN KEY (NURSE_ID) REFERENCES PERSON(PERSON_ID);
ALTER TABLE PATIENT ADD CONSTRAINT FK_PERSON_ID_P FOREIGN KEY (PATIENT_ID) REFERENCES PERSON(PERSON_ID);
ALTER TABLE ADMINISTRATION_MEDICATION ADD CONSTRAINT FK_DOCTOR_ID_A FOREIGN KEY (DOCTOR_ID) REFERENCES DOCTOR(DOCTOR_ID);
ALTER TABLE ADMINISTRATION_MEDICATION ADD CONSTRAINT FK_MEDICATION_ID_A FOREIGN KEY (MEDICATION_ID) REFERENCES MEDICATION(MEDICATION_ID);
ALTER TABLE ADMINISTRATION_MEDICATION ADD CONSTRAINT FK_HOSPITALIZATION_ID_A FOREIGN KEY (HOSPITALIZATION_ID) REFERENCES HOSPITALIZATION(HOSPITALIZATION_ID);
ALTER TABLE HOSPITALIZATION ADD CONSTRAINT FK_DOCTOR_ID_H FOREIGN KEY (DOCTOR_ID) REFERENCES DOCTOR(DOCTOR_ID);
ALTER TABLE HOSPITALIZATION ADD CONSTRAINT FK_DEPARTMENT_ID_H FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT(DEPARTMENT_ID);
ALTER TABLE HOSPITALIZATION ADD CONSTRAINT FK_PATIENT_ID_H FOREIGN KEY (PATIENT_ID) REFERENCES PATIENT(PATIENT_ID);
ALTER TABLE EXAMINATION ADD CONSTRAINT FK_DOCTOR_ID_E FOREIGN KEY (DOCTOR_ID) REFERENCES DOCTOR(DOCTOR_ID);
ALTER TABLE EXAMINATION ADD CONSTRAINT FK_DEPARTMENT_ID_E FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT(DEPARTMENT_ID);
ALTER TABLE EXAMINATION ADD CONSTRAINT FK_HOSPITALIZATION_ID_E FOREIGN KEY (HOSPITALIZATION_ID) REFERENCES HOSPITALIZATION(HOSPITALIZATION_ID);
ALTER TABLE OBLIGATION ADD CONSTRAINT FK_DOCTOR_ID_O FOREIGN KEY (DOCTOR_ID) REFERENCES DOCTOR(DOCTOR_ID);
ALTER TABLE OBLIGATION ADD CONSTRAINT FK_DEPARTMENT_ID_O FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT(DEPARTMENT_ID);
ALTER TABLE NURSE ADD CONSTRAINT FK_DEPARTMENT_ID_N FOREIGN KEY (DEPARTMENT_ID) REFERENCES DEPARTMENT(DEPARTMENT_ID);
-- set CONSTRAINTS
ALTER TABLE OBLIGATION ADD CONSTRAINT LENGTH_PHONE_NUMBER CHECK (LENGTH(PHONE_NUMBER) = 13);
ALTER TABLE DEPARTMENT ADD CONSTRAINT CNT_COUNT_OF_BEDS CHECK (COUNT_OF_BEDS > 0);
ALTER TABLE DEPARTMENT ADD CONSTRAINT CNT_COUNT_OF_ROOMS CHECK (COUNT_OF_ROOMS > 0);
ALTER TABLE DEPARTMENT ADD CONSTRAINT HOUR_START_VISITING_HOURS CHECK (START_VISITING_HOURS <= '15:00' AND START_VISITING_HOURS >= '12:30');
ALTER TABLE DEPARTMENT ADD CONSTRAINT HOUR_END_VISITING_HOURS CHECK (END_VISITING_HOURS <= '17:30');
ALTER TABLE ADMINISTRATION_MEDICATION ADD CONSTRAINT CNT_FREQUENCY CHECK (FREQUENCY_AT_DAY > 0);
ALTER TABLE PATIENT ADD CONSTRAINT CHECK_WEIGHT CHECK (WEIGHT > 0);
ALTER TABLE PATIENT ADD CONSTRAINT CHECK_HEIGHT CHECK (HEIGHT > 0);
---
CREATE OR REPLACE TRIGGER CHECK_ID_NUMBER
BEFORE INSERT OR UPDATE OF ID_NUMBER ON PERSON
FOR EACH ROW
DECLARE
ID_NUMBER PERSON.ID_NUMBER%TYPE;
"DAY" VARCHAR2(2);
"MONTH" VARCHAR2(2);
"YEAR" VARCHAR2(2);
LEN INTEGER;
FORMAT_ERROR INTEGER;
DAY_ERROR INTEGER;
MONTH_ERROR INTEGER;
YEAR_ERROR INTEGER;
DIVIDE_ERROR INTEGER;
BEGIN
ID_NUMBER := :NEW.ID_NUMBER;
LEN := LENGTH(ID_NUMBER);
"YEAR" := SUBSTR(ID_NUMBER, 1, 2);
"MONTH" := SUBSTR(ID_NUMBER, 3, 2);
"DAY" := SUBSTR(ID_NUMBER, 5, 2);
FORMAT_ERROR := -20100;
DAY_ERROR := -20200;
MONTH_ERROR := -20300;
YEAR_ERROR := -20400;
DIVIDE_ERROR := -20500;
IF ("MONTH" > 50) THEN
"MONTH" := "MONTH" - 50;
ELSE
IF ("MONTH" > 20) THEN
"MONTH" := "MONTH" - 20;
END IF;
END IF;
IF ("DAY" > 40) THEN
"DAY" := "DAY" - 40;
END IF;
IF (LEN = 9 OR LEN = 10) THEN
IF (LEN != 9 OR SUBSTR(ID_NUMBER, 7, 3) != '000') THEN
IF (MOD(ID_NUMBER, 11) = 0) THEN
IF ("YEAR" >= 0 AND "YEAR" <= 99) THEN
IF ("MONTH" > 0 AND "MONTH" <= 12) THEN
IF ("DAY" > 0) THEN
IF (("MONTH" = 2 AND MOD("YEAR", 4) = 0 AND ("YEAR" <= 29)) OR "MONTH" > 0 AND "MONTH" <= 12) THEN
IF (("MONTH" = 2 AND MOD("YEAR", 4) != 0 AND ("DAY" > 28)) OR "MONTH" > 0 AND "MONTH" <= 12) THEN
IF (("MONTH" = 1 OR "MONTH" = 3 OR "MONTH" = 5 OR "MONTH" = 7 OR "MONTH" = 8 OR "MONTH" = 10 OR "MONTH" = 12) AND "DAY" > 31) THEN
raise_application_error(DAY_ERROR, 'The given DAY is not in the correct format, you check it!');
ELSE
IF (("MONTH" = 4 OR "MONTH" = 6 OR "MONTH" = 9 OR "MONTH" = 11) AND "DAY" > 30) THEN
raise_application_error(DAY_ERROR, 'The given DAY is not in the correct format, you check it!'); END IF;
END IF;
ELSE
raise_application_error(DAY_ERROR, 'The given DAY is not in the correct format, you check it!'); END IF;
ELSE
raise_application_error(DAY_ERROR, 'The given DAY is not in the correct format, you check it!'); END IF;
ELSE
raise_application_error(DAY_ERROR, 'The given DAY is not in the correct format, you check it!'); END IF;
ELSE
raise_application_error(MONTH_ERROR, 'The given MONTH is not in the correct format, you check it!'); END IF;
ELSE
raise_application_error(YEAR_ERROR, 'The given YEAR is not in the correct format, you check it!'); END IF;
ELSE
raise_application_error(DIVIDE_ERROR, 'The identification number must be divided by number eleven!'); END IF;
ELSE
raise_application_error(FORMAT_ERROR, 'The bad format of the identification number (bad end parts (000)!'); END IF;
ELSE
raise_application_error(FORMAT_ERROR, 'The bad format of the identification number (bad count of numbers) !'); END IF;
END;
/
CREATE SEQUENCE DEPARTMENT_ID START WITH 1000 INCREMENT BY 100;
CREATE OR REPLACE TRIGGER AUTO_INCREMENTATION_ID
BEFORE INSERT ON DEPARTMENT
FOR EACH ROW
BEGIN
:NEW.DEPARTMENT_ID := DEPARTMENT_ID.nextval;
END;
/
CREATE OR REPLACE TRIGGER CHECK_IBAN
BEFORE INSERT OR UPDATE
OF ACCOUNT_NUMBER ON PATIENT
FOR EACH ROW
DECLARE
PATIENT_ACCOUNT PATIENT.ACCOUNT_NUMBER%TYPE;
CHECK_ACCOUNT VARCHAR(24);
CHECK_ACCOUNT_TRANSFER VARCHAR(50);
ACCOUNT_NUMBER VARCHAR(20);
COUNTRY VARCHAR(2);
SUM_CODE VARCHAR(2);
INDEX_STR INT;
CHAR_STR CHAR;
LENGTH_ERROR INTEGER;
COUNTRY_ERROR INTEGER;
FORMAT_ERROR INTEGER;
BEGIN
PATIENT_ACCOUNT := :NEW.ACCOUNT_NUMBER;
INDEX_STR := 1;
COUNTRY := SUBSTR(PATIENT_ACCOUNT, 1, 2);
SUM_CODE := SUBSTR(PATIENT_ACCOUNT, 3, 2);
ACCOUNT_NUMBER := SUBSTR(PATIENT_ACCOUNT, 5, 20);
CHECK_ACCOUNT := CONCAT(CONCAT(ACCOUNT_NUMBER, COUNTRY), SUM_CODE);
LENGTH_ERROR := -20900;
COUNTRY_ERROR := -20800;
FORMAT_ERROR := -20700;
IF (LENGTH(PATIENT_ACCOUNT) != 24) THEN
RAISE_APPLICATION_ERROR(LENGTH_ERROR, 'The length of the account number must be 24!');
END IF;
IF (COUNTRY != 'SK' AND COUNTRY != 'CZ') THEN
RAISE_APPLICATION_ERROR(COUNTRY_ERROR, 'Uncorrect format of the account number!');
END IF;
WHILE (INDEX_STR <= LENGTH(CHECK_ACCOUNT)) LOOP
CHAR_STR := SUBSTR(CHECK_ACCOUNT, INDEX_STR, 1);
IF (ASCII(CHAR_STR) >= 65 AND ASCII(CHAR_STR) <= 90) THEN
CHECK_ACCOUNT_TRANSFER := CONCAT(CHECK_ACCOUNT_TRANSFER, TO_CHAR((ASCII(CHAR_STR)-55)));
ELSE
CHECK_ACCOUNT_TRANSFER := CONCAT(CHECK_ACCOUNT_TRANSFER, CHAR_STR);
END IF;
INDEX_STR := INDEX_STR + 1;
END LOOP;
IF (MOD(TO_NUMBER(CHECK_ACCOUNT_TRANSFER), 97) != 1) THEN
RAISE_APPLICATION_ERROR(FORMAT_ERROR, 'The check sum of the account number is not valid!');
END IF;
END;
/
-- insert VALUES to TABLES
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Dewayne', 'Duff', TO_DATE('25-12-1950', 'DD-MM-YYYY'), 'Melbourne', '6th St.', 123, 'Australia', 32904, 'M', 9901047574);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Carmelita', 'Clukey', TO_DATE('17-06-1953', 'DD-MM-YYYY'), 'Honolulu', 'Goldfield Rd. ', 4, 'USA', 96815, 'F', 9712080642);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Erica', 'Ernert', TO_DATE('28-04-1963', 'DD-MM-YYYY'), 'Che<NAME>', 'Pilgrim Avenue', 71, 'USA', 20815, 'F', 9609279130);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Terica', 'Tague', TO_DATE('24-01-1969', 'DD-MM-YYYY'), 'Chicago', 'Shirley Ave', 44, 'USA', 60185, 'F', 9210056559);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Magda', 'Montoro', TO_DATE('16-02-1976', 'DD-MM-YYYY'), 'South Windsor', 'Bownma St.', 70, 'USA', 06074, 'F', 9111118115);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Charlyn', 'Cissell', TO_DATE('04-12-1985', 'DD-MM-YYYY'), 'Orlando', 'S. Mangnolia St.', 514, 'USA', 32806, 'F', 9558238525);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Rufina', 'Ruocco', TO_DATE('14-05-1950', 'DD-MM-YYYY'), 'Waxhaw', 'Stillwater Drive Apt', 3, 'USA', 28173, 'F', 9606086622);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Milagros', 'Musto', TO_DATE('18-07-1960', 'DD-MM-YYYY'), 'Hialeah', 'Branch Street', 54, 'USA', 33010, 'F', 9258245975);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Alyson', 'Amore', TO_DATE('03-12-1970', 'DD-MM-YYYY'), 'Winona', 'Hartford Ave', 9542, 'USA', 55987, 'F', 9660239754);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Raisa', 'Reeser', TO_DATE('18-08-1973', 'DD-MM-YYYY'), 'Lawrence Township', 'Pineknool Ave', 622, 'USA', 08648, 'F', 9362168233);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Rodolfo', 'Rae', TO_DATE('16-07-1941', 'DD-MM-YYYY'), 'London', 'Naylo Rd.', 107, 'Great Britain', 58369, 'M', 9201181000);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Zachary', 'Zarrella', TO_DATE('15-05-1948', 'DD-MM-YYYY'), 'Newport', 'Aberthaw Rd.', 136, 'Great Britain', 69742, 'M', 9053176407);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Randell', 'Rosenburg', TO_DATE('09-12-1953', 'DD-MM-YYYY'), 'Barnsley', 'Cailhead Drive', 3, 'Great Britain', 361819, 'M', 9753253224);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Del', 'Dlneen', TO_DATE('06-02-1955', 'DD-MM-YYYY'), 'Minnesota', 'Orchard Street', 3957, 'USA', 55437, 'M', 9853215042);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Ernle', 'Engebretson', TO_DATE('19-04-1966', 'DD-MM-YYYY'), 'Ciney', '<NAME>', 310, 'Belgium', 5590, 'M', 9805072134);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Conrad', 'Cypert', TO_DATE('24-09-1947', 'DD-MM-YYYY'), 'Strijpem', 'Rue des Campanules', 187, 'Belgium', 9620, 'M', 9312130355);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Quitin', 'Quesada', TO_DATE('09-06-1954', 'DD-MM-YYYY'), 'Orchimont', 'Rue de Boneffe', 442, 'Belgium', 5550, 'M', 9902175877);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Garrett', 'Grieves', TO_DATE('27-02-1958', 'DD-MM-YYYY'), 'Haine-Saint-Paul', 'Rue Fouramont', 303, 'Belgium', 7001, 'M', 9853113941);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Herschel', 'Henningsen', TO_DATE('16-11-1984', 'DD-MM-YYYY'), 'South Windsor', 'Bowman St.', 70, 'USA', 06074, 'M', 9911211706);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Shaun', 'Spires', TO_DATE('08-06-1986', 'DD-MM-YYYY'), 'Ladson', 'Shore Ave', 9449, 'USA', 07470, 'M', 9757254408);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Thi', 'Tilghman', TO_DATE('19-09-1990', 'DD-MM-YYYY'), 'Norristown', 'Old York Street', 9491, 'Australia', 07061, 'M', 9304229539);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Ernelda', 'Esterline', TO_DATE('22-10-1969', 'DD-MM-YYYY'), 'Stockbridge', 'Woodsman St.', 17, 'USA', 06016, 'F', 9051266510);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Junior', 'Janz', TO_DATE('13-03-1974', 'DD-MM-YYYY'), '<NAME>', 'Rock Creek Street', 7163, 'USA', 02127, 'M', 9712074383);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Rudolph', 'Raymer', TO_DATE('28-11-1982', 'DD-MM-YYYY'), 'Painesville', 'Greystone Ave.', 335, 'USA', 60453, 'M', 9711139658);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Milda', 'Metzinger', TO_DATE('28-09-1971', 'DD-MM-YYYY'), 'Halethorpe', 'Glenwood Drive', 167, 'USA', 54880, 'F', 9901253131);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Gayle', 'Gorski', TO_DATE('09-03-1943', 'DD-MM-YYYY'), 'Hackensack', 'Addison Drive', 3, 'USA', 21227, 'M', 9153076636);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Marilu', 'Miesner', TO_DATE('10-01-1977', 'DD-MM-YYYY'), 'Hartford', '4th St.', 568, 'USA', 44077, 'F', 9554159978);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Paz', 'Pegues', TO_DATE('29-05-1970', 'DD-MM-YYYY'), 'Boston', 'Prince Court', 602, 'USA', 31088, 'F', 9011144439);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Ressie', 'Roma', TO_DATE('31-07-1964', 'DD-MM-YYYY'), 'O<NAME>', 'Glen Eagles St.', 457, 'USA', 30281, 'F', 9511106693);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Cathi', 'Cousar', TO_DATE('20-05-1980', 'DD-MM-YYYY'), 'Superior', 'Bayport Drive', 716, 'USA', 19401, 'F', 9410088314);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Maria', 'Curry', TO_DATE('12-02-1917', 'DD-MM-YYYY'), 'Warsaw', 'Jana Pavla II', 2, 'Poland', 02485, 'F', 9912198989);
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('John', 'Friedrich', TO_DATE('15-09-1987', 'DD-MM-YYYY'), 'Prague', 'Hlavni', 1, 'Czech Republic', 08601, 'M', 9255117091);
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(12, 'Anestesiology', 'MD, DA. FFA', 'MUDr., prof.', 'Head doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION, TURNDATE) VALUES(1, 'Dermatology', 'FACD', 'MUDr.,', 'consultant', TO_DATE('13-04-2018', 'DD-MM-YYYY'));
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION, TURNDATE) VALUES(6, 'Neurology', 'MMed, MD', 'MUDr., Ph.D.', 'ordinary doctor', TO_DATE('25-02-2018', 'DD-MM-YYYY'));
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(10, 'Neurosurgery', 'SpR, MS, MRCS', 'MUDr.,', 'extern doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(23, 'Pediatrics', 'DCH, CPH', 'PaedDr.', 'Head doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(13, 'Psychiatry', 'FRCPsych, MClinPscychol', 'MUDr.', 'doctor specialist');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION, TURNDATE) VALUES(22, 'Surgery', 'BS, DS', 'MUDr., DrSc.', 'Head doctor', TO_DATE('01-04-2018', 'DD-MM-YYYY'));
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(28, 'Surgery', 'FRCS', 'Dr. h. c.', 'ordinary doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(11, 'Urology', 'FFR, GP', 'MUDr.,', 'consultant');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(21, 'Radiology', 'DR, FRCR', 'MUDr.,', 'extern doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(14, 'Orthopaedic Surgery', 'DCh, LMS, MChOrth', 'MUDr.,, doc.', 'Head doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(15, 'Allergy and Immunology', 'FFPHM. DPH', 'MUDr.', 'ordinary doctor');
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(32, 'Gynecology', 'MCM, MMedSc', 'MUDr.', 'Head doctor');
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Neurology', 15, 7, '13:00', '15:00', 2);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Urology', 20, 10, '12:30', '15;30', 3);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Radiology', 10, 5, '14:00', '15:00', 4);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Cardiology', 15, 8, '13:00', '15:00', 5);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Orthopaedics', 6, 3, '13:00', '15:00', 5);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('General Surgery', 50, 25, '13:00', '16:00', 1);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Gynecology', 10, 5, '14:30', '16:00', 2);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Pediatrics', 30, 15, '15:00', '17:30', 4);
INSERT INTO DEPARTMENT ("NAME", COUNT_OF_BEDS, COUNT_OF_ROOMS, START_VISITING_HOURS, END_VISITING_HOURS, FLOOR) VALUES('Psychiatry', 30, 30, '15:00', '15:30', 6);
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (2, 'Mgr.', 1100, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", TURNDATE, DEPARTMENT_ID, COMPETENCE) VALUES (3, 'Bc.', TO_DATE('02-01-2018', 'DD-MM-YYYY'), 1000, 'LIMITED');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (4, 'Mgr.', 1000, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (5, 'PharmDr.', 1200, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (6, 'Mgr.', 1200, 'LIMITED');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (7, 'RNDr.', 1300, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", TURNDATE, DEPARTMENT_ID, COMPETENCE) VALUES (8, 'Bc.', TO_DATE('01-04-2018', 'DD-MM-YYYY'), 1400, 'LIMITED');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (9, 'Mgr.', 1400, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (10, 'Ing.', 1500, 'FULL');
INSERT INTO NURSE (NURSE_ID, "DEGREE", DEPARTMENT_ID, COMPETENCE) VALUES (11, 'Mgr. ', 1500, 'LIMITED');
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, DEATHDATE) VALUES (31, 82, 175, 'Allergic person', TO_DATE('23-11-2016', 'DD-MM-YYYY'), TO_DATE('01-03-2018', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, DEATHDATE) VALUES (30, 72, 180, 'Valetudinarian', TO_DATE('02-08-2014', 'DD-MM-YYYY'), TO_DATE('15-05-2017', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, DEATHDATE) VALUES (29, 100, 190, 'Suscetible to tonsillitis', TO_DATE('17-10-2017', 'DD-MM-YYYY'), TO_DATE('23-10-2017', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, ACCOUNT_NUMBER) VALUES (27, 62, 153, 'Asthmatic', TO_DATE('29-12-2017', 'DD-MM-YYYY'), 'CZ6907101781240000004159');
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, ACCOUNT_NUMBER) VALUES (26, 93, 179, 'Diabetic', TO_DATE('29-12-2017', 'DD-MM-YYYY'), 'CZ5508000000001234567899');
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, ACCOUNT_NUMBER) VALUES (25, 90, 183, 'Disabled person', TO_DATE('03-01-2018', 'DD-MM-YYYY'), 'SK8975000000000012345671');
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE, ACCOUNT_NUMBER) VALUES (24, 87, 192, 'Nothing special', TO_DATE('28-02-2018', 'DD-MM-YYYY'), 'SK3112000000198742637541');
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (20, 98, 201, 'Susceptible to flu', TO_DATE('30-03-2018', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (19, 79, 175, 'Diabetic', TO_DATE('12-12-2017', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (16, 82, 187, 'Allergic person', TO_DATE('30-11-2017', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (13, 68, 157, 'Psychically labile', TO_DATE('11-01-2018', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (17, 115, 200,'Disabled person', TO_DATE('22-09-2017', 'DD-MM-YYYY'));
INSERT INTO PATIENT (PATIENT_ID, WEIGHT, HEIGHT, HEALTH_CONDITION, REGISTRATION_DATE) VALUES (18, 84, 190, 'Asthmatic', TO_DATE('19-10-2017', 'DD-MM-YYYY'));
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(12, 1100, 'Operations specialist', '(513)863-2200');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(12, 1500, 'Operations specialist', '(513)863-2600');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(01, 1400, 'Dermatology specialist', '(513)863-2500');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(06, 1000, 'Chief expert', '(513)863-2100');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(06, 1300, 'Consultant', '(513)863-2400');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(06, 1500, 'Assistant doctor', '(513)863-2601');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(10, 1000, 'Assistant doctor', '(513)863-2101');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(10, 1500, 'Neurosurgery specialist', '(513)863-2602');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(23, 1700, 'Chief expert', '(513)863-2800');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(13, 1800, 'Psychotherapist', '(513)863-2900');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(13, 1000, 'Consultant', '(513)863-2103');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(22, 1500, 'Intervention specialist', '(513)863-2603');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(28, 1500, 'Ordaining doctor', '(513)863-2604');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(22, 1400, 'Assistant doctor', '(513)863-2501');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(11, 1100, 'Chief expert', '(513)863-2201');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(21, 1200, 'Chief expert', '(513)863-2300');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(14, 1500, 'Chief expert', '(513)863-2605');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(14, 1400, 'Orthopaedic surgery specialist', '(513)863-2502');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(14, 1700, 'Consultant', '(513)863-2801');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(15, 1600, 'Immunology specialist', '(513)863-2700');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(32, 1600, 'Chief expert', '(513)863-2701');
INSERT INTO OBLIGATION (DOCTOR_ID, DEPARTMENT_ID, "TYPE", PHONE_NUMBER) VALUES(15, 1200, 'Assistant doctor', '(513)863-2301');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(06, 1000, 31, TO_TIMESTAMP('23-11-2016 12:18:32', 'DD-MM-YYYY HH24:MI:SS'), 'The patient is a 35-year-old female who complains of a cough for one week. She reports a fever last Saturday that is now resolved. She has a slightly hoarse voice. She is a nonsmoker. She takes Prozac 20 mg daily for depression.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(06, 1000, 30, TO_TIMESTAMP('02-08-2014 15:15:58', 'DD-MM-YYYY HH24:MI:SS'), 'The patient was administered 3 mCi of Thallium 201 Chloride and a routine SPECT rest study was performed. The patient was subsequently exercised using the standard Bruce protocol until at least 85% of MPHR was achieved. The patient was then administered 30mCi of Tc99m Myoview at peak stress.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(06, 1000, 13, TO_TIMESTAMP('11-01-2018 03:25:47', 'DD-MM-YYYY HH24:MI:SS'), 'The patient is a 52-year-old gentleman with multiple medical problems and a symptomatic left inguinal hernia. He was chronically constipated and this caused that hernia to pop out. He also had urinary frequency. In the operating room, he had a left indirect inguinal hernia sac, but also was catheterized before the surgery and 700 cc was removed.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(06, 1500, 16, TO_TIMESTAMP('30-11-2017 09:28:17', 'DD-MM-YYYY HH24:MI:SS'), 'The patient comes in for follow up of his lupus. He is tolerating the Plaquenil without any difficulties. He had a right knee arthroscopy done and repair of a meniscal tear. He also underwent viscosupplementation, but he is not sure it made much of a difference. His left knee is bothering him and he was told that he needs viscosupplementation there, so he is going to be going back next week for that.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(10, 1000, 17, TO_TIMESTAMP('25-09-2017 11:59:02', 'DD-MM-YYYY HH24:MI:SS'), 'The patient presents to the office today for a follow-up evaluation of chronic pain in the low back. The patient initially injured his back at work lifting a sign that he states was frozen to the ground. In May of 2008, the patient had epidural steroid injections x 2. He had a reaction that was attributed to the corticosteroids. The patient states that he had relief with the injections. He continued to have pain.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(10, 1500, 18, TO_TIMESTAMP('19-10-2017 23:12:11', 'DD-MM-YYYY HH24:MI:SS'), 'The patient was last evaluated in our office on May 18th. She has a history of lumbar post laminectomy syndrome and lumbar disc herniation. The pain in the lower back is radiating down the side of the right leg. Pain intensity is rated as a 10/10 and it has been worse over the last few weeks. Her migraines have also become more intense. Her sleeping pattern has been disturbed, sleeping only about two hours in the evening.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(10, 1500, 25, TO_TIMESTAMP('03-01-2018 13:45:13', 'DD-MM-YYYY HH24:MI:SS'), 'This is a 59-year-old, right-handed woman with a history of hypertension, schizophrenia, and a fallopian ovarian tumor resection surgically and with radiotherapy treatment, who presented to the emergency room with a four-hour history of difficulty talking, and numbness and weakness on the right side. She was in her usual state of health until early the morning of admission when she woke up and noted numbness on her right side.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(23, 1700, 29, TO_TIMESTAMP('18-10-2017 00:03:25', 'DD-MM-YYYY HH24:MI:SS'), 'This 52-year-old male with a work related injury to his left knee and failure to improve on conservative therapy with MRI scan indicating oblique tearing of the posterior horn of the medial meniscus of the left knee was admitted at this time for diagnostic operative arthroscopic surgery. The patient underwent routine preadmission testing and was cleared for surgery. He was taken to the Operating Room on the date of admission and, under general anesthesia underwent resection of a torn posterior horn of his medial meniscus with chondroplasty of the anterior surface of the medial femoral condyle for grade III chondromalacia and three compartmental synovectomy for hypertrophic synovitis.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(23, 1700, 26, TO_TIMESTAMP('29-12-2017 10:32:47', 'DD-MM-YYYY HH24:MI:SS'), 'This is a 32-year-old gentleman who came in for reevaluation of diabetes mellitus. He was started on Metformin 500 mg t.i.d last week and so far he has tolerated the medication well. He stated he is feeling a lot better. He has no more polyuria, no polydipsia, and he has more energy.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(28, 1500, 20, TO_TIMESTAMP('30-03-2018 14:48:59', 'DD-MM-YYYY HH24:MI:SS'), 'She has a pulse of 84. Blood pressure is 120/80. She is here for an acute visit today complaining about a recurrent rash on her right buttock. A few days ago Heidi felt a tingling sensation in her upper right buttock and today noticed that she had developed some small vesicles. It is in a well-circumscribed area, in an area where she had lesions previously. She had cultures done back in May, on May 10th. It occurred first in January of this year. She had light growth of coagulase-negative staphylococcus and that was all on her last bacterial culture.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(28, 1500, 19, TO_TIMESTAMP('12-12-2017 12:58:01', 'DD-MM-YYYY HH24:MI:SS'), 'She is here for a re-check of weight. She is being seen on a chronic basis for her failure to thrive. Her normal weight is around 112. She is down to 95. Her pulse is 80. Blood pressure is 110/68. She has met a new friend and is enjoying his company. He is also helping out with things around the house and she appreciates that very much. She has gone to the graduation of her daughter from high school and her son from middle school.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(28, 1500, 24, TO_TIMESTAMP('28-02-2018 11:25:58', 'DD-MM-YYYY HH24:MI:SS'), 'The patient presents complaining of bilateral knee pain. She is known to have degenerative disc disease with osteoarthritis of the knees. On examination, both knees are tender, minimally swollen and warm. Straight leg raising test is negative. The sensory examination of the back is unremarkable and the back is nontender.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(28, 1400, 30, TO_TIMESTAMP('15-12-2015 21:53:24', 'DD-MM-YYYY HH24:MI:SS'), 'The patient presents for a physical. The back pain has been present for just a few days and is slightly worse with movement. He has had pains in his elbows for approximately four months. It is relatively constant, no extreme. It does tend to hurt when he supinates his forearm fully. He has also had some mild pain in the back.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(22, 1400, 18, TO_TIMESTAMP('25-01-2018 14:59:21', 'DD-MM-YYYY HH24:MI:SS'), 'Patient states that she has always been overweight. She is very frustrated with trying diet. Her 20 year class reunion is next year and she would like to begin working toward a weight loss goal that is realistic.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(11, 1100, 19, TO_TIMESTAMP('29-12-2017 17:00:36', 'DD-MM-YYYY HH24:MI:SS'), 'Patient has pain in the left hip for 3 months. It is worse when walking or doing exercise. She has no known drug allergies.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(11, 1100, 29, TO_TIMESTAMP('08-03-2018 08:01:52', 'DD-MM-YYYY HH24:MI:SS'), 'Patient reported difficulties in home care, in particular cleaning and shopping. She expressed concern of putting strain on her son who is her primary caregiver. She is keen to get back to previous roles within home (mother/housewife) and visit friends.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(11, 1100, 27, TO_TIMESTAMP('28.01.2018 17:58:07', 'DD-MM-YYYY HH24:MI:SS'), 'This is a 55-year-old white female referred today for chest pain. She was recently evaluated for a typical chest pain and had exercise stress testing. She exercised for 9 minutes and 26 seconds and the test was clinically negative. She continues to have atypical chest pain complaints. She has no orthopnea, no lower extremity edema, no palpations, or dyspnea on exertion.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(21, 1200, 17, TO_TIMESTAMP('14-11-2017 17:45:21', 'DD-MM-YYYY HH24:MI:SS'), 'This is a 70-year-old male with chief complaint of low back pain and bilateral lower extremity pain. The patient denies any recent trauma to the low back. He states that he has been a body builder for the past 30 years and has worked out at the gym on a regular basis. He has entered in one multiple body building contests. He states that approximately 3 years ago, he was a using a machine at the gym doing crunches and felt a pop in his low back. He states that his back has not been the same since then.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(21, 1200, 19, TO_TIMESTAMP('15-03-2018 21:13:42', 'DD-MM-YYYY HH24:MI:SS'), 'This is a 43-year-old black man with no apparent past medical history who presented to the emergency room with the chief complaint of weakness, malaise and dyspnea on exertion for approximately one month. The patient also reports a 15-pound weight loss. He denies fever, chills, and sweats. He denies cough and diarrhea. He has mild anorexia.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(14, 1500, 13, TO_TIMESTAMP('15-03-2018 14:25:01', 'DD-MM-YYYY HH24:MI:SS'), 'Upper respiratory infection, probably viral. Phenergan with Codeine 150 mL, 2 tsp q.4-6h. p.r.n.. She is warned about the drowsy side effects of this. Follow up with her primary doctor next week if not improved.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(14, 1500, 16, TO_TIMESTAMP('08-03-2018 06:25:15', 'DD-MM-YYYY HH24:MI:SS'), 'He feels well and should continue on Prilosec 40 mg a day as part of a chronic antireflux regimen, particularly because of his cardiac history. This is safe to take long term. Biopsies of the stomach are negative for Helicobacter. He is scheduled for endoscopy on Thursday, June 14, at 7 a.m. It is my pleasure to help in the care of this very pleasant gentleman.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(14, 1400, 30, TO_TIMESTAMP('21-03-2017 12:53:48', 'DD-MM-YYYY HH24:MI:SS'), 'Likely herpetic rash. Cultures have been taken. We will also do a check for HSV-1 and HSV-2. I have given her Valtrex 500 mg twice daily for the next three days with p.r.n. refills. We will await the culture results to go further and, in the meantime, we talked about its spread and how to protect her partner. She was agreeable with the above- instructed plan. Risks, benefits and side effects of medications and treatments were discussed, and she will follow up as suggested.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(32, 1600, 31, TO_TIMESTAMP('02-08-2017 08:05:23', 'DD-MM-YYYY HH24:MI:SS'), 'There is mild decreased perfusion identified at the anteroseptal wall at stress which demonstrates normal perfusion at rest. In addition, there is mild to moderate decreased perfusion along inferolateral wall at stress which demonstrates normal perfusion at rest. These findings are likely related to ischemia. Remainder of the myocardia is well perfused with no transient dilatation.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(32, 1600, 24, TO_TIMESTAMP('01-04-2018 16:35:21', 'DD-MM-YYYY HH24:MI:SS'), 'After adequate general endotracheal anesthesia was introduced using a bronchoscopic incubation, a full catheter was placed and an impression device replaced on lower extremity. The patient was then prepped and draped in the usual sterile manner. I did a left parallel angle incision. The fascia was exposed leaving point coagulated a tie with 3-0 Vicryl. The fascia was lifted through external ring and the cord mobilized with a Penrose drain.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(32, 1600, 30, TO_TIMESTAMP('08-05-2017 17:15:32', 'DD-MM-YYYY HH24:MI:SS'), 'The floor was completely intact and the creamasteric fibers and internal spermatic fascia opened. It was immediately evident there was indirect sac. This was dissected down to the internal ring. It was reduced and the hemostasis was excellent. The hernia was pushed back and an extra large plug with a central pedal removed was placed and secured with a 2-0 Prolene anteriorally and medially.');
INSERT INTO HOSPITALIZATION (DOCTOR_ID, DEPARTMENT_ID, PATIENT_ID, DATE_AND_TIME, HOSPITAL_RECORD) VALUES(15, 1200, 27, TO_TIMESTAMP('15-03-2018 22:00:00', 'DD-MM-YYYY HH24:MI:SS'), 'THIS PATIENT FALLS WITHIN THE RANGE OF OSTEOPENIA. IN COMPARISON TO THE PRIOR EXAMINATION OF 10/25/08, THERE HAS BEEN AN INCREASE IN BONE MINERAL DENSITY OF L1 THROUGH L4 OF 1.3% AND AN INCREASE IN BONE MINERAL DENSITY OF THE TOTAL HIPS OF 0.3%');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(06, 1000, 01, 'CT', TO_TIMESTAMP('24-11-2016 14:54:14', 'DD-MM-YYYY HH24:MI:SS'), 'CT was performed of the upper abdomen following the administration of IV contrast utilizing standard protocol. The current study is compared to a prior CT examination of the abdomen from 03/08/05 and a prior MRI of the upper abdomen from 09/07/05.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(06, 1000, 01, 'UltraSound', TO_TIMESTAMP('30-11-2016 07:18:58', 'DD-MM-YYYY HH24:MI:SS'), 'The obvious structures are intact. There is no dislocation. The infraspinatus and teres minor tendons are maintained. There is a focal vertical tear of the supraspinatus tendon at the insertion, which appears full thickness. There is no tendon retraction. The subscapularis tendon is intact.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(06, 1000, 02, 'MRI', TO_TIMESTAMP('04-08-2014 09:36:01', 'DD-MM-YYYY HH24:MI:SS'), 'There are five vertebrae with lumbar configuration. There is a 4.5 x 2.7 cm cystic structure noted on the lowest cut of the examination to the right of midline. This may represent a right adnexal cyst. Correlation with pelvic sonography is recommended.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1000, 02, 'Done Density', TO_TIMESTAMP('14-08-2014 11:11:11', 'DD-MM-YYYY HH24:MI:SS'), 'There is slight rightward deviation of the anterior aspect of the nasal septum. The nasal turbinates are within normal limits. There is normal aeration of the paranasal sinuses, without mucosal thickening or opacification. There is no air-fluid level identified. The ostiomeatal units appear patent.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1000, 03, 'Operation', TO_TIMESTAMP('13-01-2018 10:34:07', 'DD-MM-YYYY HH24:MI:SS'), 'He had laboratory workup done. It showed glucose of 241, BUN and creatinine is in good range, total bilirubin is 1.2, AST is 49, ALT 135, total cholesterol is 216, triglyceride 180, and hemoglobin A1c is 11.4. He does not have any microalbuminuria.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1500, 04, 'Operation', TO_TIMESTAMP('06-12-2017 08:00:00', 'DD-MM-YYYY HH24:MI:SS'), 'She has a pulse of 84. Blood pressure is 120/80. She is here for an acute visit today complaining about a recurrent rash on her right buttock. A few days ago Heidi felt a tingling sensation in her upper right buttock and today noticed that she had developed some small vesicles. It is in a well-circumscribed area, in an area where she had lesions previously.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(28, 1500, 04, 'Postoperative Control', TO_TIMESTAMP('08-12-2017 12:24:57', 'DD-MM-YYYY HH24:MI:SS'), 'She had cultures done back in May, on May 10th. It occurred first in January of this year. She had light growth of coagulase-negative staphylococcus and that was all on her last bacterial culture. She has had multiple sex partners in her life. She has, she believes, been tested for herpes in the past and was negative. She has been monogamous with her current partner for quite some time now. She is trying to conceive a child and has been sexually active lately and is worried about giving this to her husband.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1000, 05, 'Preventive Control', TO_TIMESTAMP('29-09-2017 06:32:48', 'DD-MM-YYYY HH24:MI:SS'), 'She has a 2-3 cm well-circumscribed hyperemic area with small clear vesicles. Bacterial culture is taken. A viral culture is taken. She has no lymph nodes either in her anterior cervical chain, supra or subclavicular or inguinal area.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(06, 1500, 06, 'Preoperative Examination', TO_TIMESTAMP('20-10-2017 11:28:47', 'DD-MM-YYYY HH24:MI:SS'), 'She is here for a re-check of weight. She is being seen on a chronic basis for her failure to thrive. Her normal weight is around 112. She is down to 95. Her pulse is 80. Blood pressure is 110/68. She has met a new friend and is enjoying his company. He is also helping out with things around the house and she appreciates that very much. She has gone to the graduation of her daughter from high school and her son from middle school. Their father came to the son’s ceremony but not his daughter’s, which was her graduation from high school.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(14, 1500, 06, 'Operation', TO_TIMESTAMP('21-10-2017 09:30:00', 'DD-MM-YYYY HH24:MI:SS'), ' This had a huge impact on the family. Her son has actually bitten Daniel again and fortunately did not draw blood this time, but they are definitely having difficulties. She is trying to eat more but finding it difficult. Her back is really bothering her. She has had physical therapy but really has not noted any real improvement thus far. She was suggested to try Pilates, which she is doing daily. The pain is worse after working for several days and, although she had the injury on the left, it radiates all the way through to the right. At the end of the week, she has difficulty even walking around in the mall.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(28, 1500, 06, 'Postoperative Control', TO_TIMESTAMP('24-10-2017 06:57:32', 'DD-MM-YYYY HH24:MI:SS'), ' This is a well-appearing thin middle-aged female. She has slight exophthalmus, anicteric and pupils are equal round and reactive to light. She is very thin appearing with very little musculature. Her veins are clearly visible. She has no thyromegaly. Chest is clear to auscultation bilaterally. Cardiovascular is regular rate and rhythm. Her abdomen is scaphoid but soft with audible bowel sounds, is nontender and without organomegaly. Her extremities are warm and well perfused. There is no edema.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(22, 1500, 07, 'Foot amputation', TO_TIMESTAMP('05-01-2018 13:00:00', 'DD-MM-YYYY HH24:MI:SS'), 'Osteopenia. She continues to take her vitamin D for her vitamin deficiency. She is also taking Actonel. She has no esophageal problems, but she does need lab work done in August. She was agreeable with the above-instructed plan. Risks, benefits and side effects of medication and treatments were discussed, and she will follow up as suggested.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1500, 07, 'Neurosurgery Control', TO_TIMESTAMP('05-01-2018 15:30:00', 'DD-MM-YYYY HH24:MI:SS'), 'Hands and wrists, two views of the right and left hand and wrist were obtained. There is generalized osteopenia. There are OA changes seen at the first CMC joint with subchondral sclerosis and joint space narrowing. Ulnar styloids appear intact. There is no chondrocalcinosis. There are some degenerative changes seen at the carpus but without any obvious erosive changes. There are no erosions seen at any of the MCP or PIP joints. There are scattered areas of joint space narrowing at the PIP and DIP joints.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(23, 1700, 08, 'Select of almonds', TO_TIMESTAMP('20-10-2017 10:24:47', 'DD-MM-YYYY HH24:MI:SS'), 'Shoulders, two views of the right and left shoulder were obtained. Bony mineralization appears within normal limits. There are no lytic or blastic lesions. There is mild degenerative change at the AC joint with some joint space narrowing. A pacemaker is seen in the left hemithorax. There is minimal periarticular calcification at the left shoulder near the supraspinatus insertion. There is mild elevation in the humeral head at the left and perhaps a minimal amount on the right.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(14, 1700, 08, 'Preventive Control', TO_TIMESTAMP('23-10-2017 07:30:52', 'DD-MM-YYYY HH24:MI:SS'), 'The lungs are well aerated. There is no evidence of any focal area of consolidation. A faint rounded density is seen in the base of the left lower hemithorax probably representing a nipple shadow. The hilar and pulmonary vasculature is normal. The heart size is within normal limits. The costophrenic angles are clear.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(23, 1700, 09, 'CT', TO_TIMESTAMP('30-12-2017 09:17:58', 'DD-MM-YYYY HH24:MI:SS'), 'Lumbosacral spine, multiple views of the lumbar spine were obtained. There appears to be a fracture at the coccyx which is age indeterminate. There is straightening of normal lumbar lordosis. Intervertebral disc spaces are maintained. Facet joints appear within normal limits bilaterally. There is a little bit of sacroiliac sclerosis bilaterally, more so on the right. The SI joints do appear patent.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(28, 1500, 10, 'Operation', TO_TIMESTAMP('01-04-2018 07:30:00', 'DD-MM-YYYY HH24:MI:SS'), 'Hips, two views of the right and left hip were obtained. Bony mineralization is normal. There is no acute fracture seen. There is no visible enthesopathy in the limited views of the pelvis. There is a little bit of superior sclerosis at the acetabula bilaterally. The hip joint spaces appear preserved.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1500, 10, 'Postoperation Control', TO_TIMESTAMP('01-04-2018 17:32:03', 'DD-MM-YYYY HH24:MI:SS'), 'No fractures, subluxations or other acute bony abnormalities are identified. There is mild degenerative change with mild endplate spur formation and mild facet sclerosis at all levels. No erosive or destructive changes are seen.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1500, 11, 'Sewing', TO_TIMESTAMP('14-12-2017 10:12:15', 'DD-MM-YYYY HH24:MI:SS'), 'he basilar cisterns, ventricular system and cortical sulci appear unremarkable for a 67-year-old patient. The visualized mastoid air cells and paranasal sinuses appear clear. There are multiple small foci of increased signal on T2 weighted and FLAIR images in the subcortical white matter, predominately in the frontal regions of both hemispheres. There is no evidence of mass effect, midline shift, extra-axial fluid collection or hemorrhage. There are no abnormal areas of contrast enhancement identified within the brain.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(28, 1500, 11, 'Postintervention Control', TO_TIMESTAMP('15-12-2017 07:14:47', 'DD-MM-YYYY HH24:MI:SS'), ' Focal abnormalities in the white matter as described above are generally associated with ischemic microvascular disease. A demyelinating process can have a similar appearance. Clinical correlation is suggested. See complete discussion above.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(06, 1500, 11, 'Preoperative Examination', TO_TIMESTAMP('18-12-2017 14:17:33', 'DD-MM-YYYY HH24:MI:SS'), 'MRI examination of the brain is performed using the following protocol: T1 weighted sagittal and coronal, T2 weighted coronal, FLAIR and T1 weighted axial sequences. The patient refused contrast enhancement so post-contrast scans have not been done. Also, please note that diffusion scans have not been done. The brain parenchyma shows normal signal intensity on the various pulse sequences. There is no intracranial mass, mass effect or area of abnormal signal intensity. The right temporal horn is slightly prominent and asymmetric. Flow voids are appreciated in the major intracranial vessels.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(22, 1500, 12, 'Foot amputation', TO_TIMESTAMP('21-03-2018 11:00:10', 'DD-MM-YYYY HH24:MI:SS'), 'The brain parenchyma shows normal signal intensity on the various pulse sequences. There is no intracranial mass, mass effect or area of abnormal signal intensity. The right temporal horn is slightly prominent and asymmetric. Flow voids are appreciated in the major intracranial vessels.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1500, 13, 'UltraSound', TO_TIMESTAMP('17-12-2015 09:44:11', 'DD-MM-YYYY HH24:MI:SS'), 'The brain parenchyma shows normal signal intensity. There is no confluent edema or mass effect. There is no extra-axial collection identified. The corpus callosum is well formed and it is in good position. The cerebellar tonsils are unremarkable. The pituitary gland is normal in size. The cavernous sinuses are symmetric. The basal cisterns are symmetric in appearance.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1500, 13, 'Operation', TO_TIMESTAMP('25-12-2015 00:53:24', 'DD-MM-YYYY HH24:MI:SS'), 'The cerebellopontine angle cisterns are normal in appearance, without mass or mass effect. The VII and VIII nerve complexes are unremarkable. There is no evidence for vestibular schwannoma or other mass. Trigeminal nerves are symmetric in caliber and in normal position. There are normal flow voids in the basilar artery and along the circle of Willis.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(14, 1400, 14, 'Done Density', TO_TIMESTAMP('27-01-2018 08:17:22', 'DD-MM-YYYY HH24:MI:SS'), 'ere are moderate intrameniscal myxoid changes in the medial meniscus. The intrameniscal myxoid changes are more pronounced in the posterior horn. There is no evidence of discrete meniscal tear extending to an articular surface in a linear fashion of either the medial or lateral meniscus. The anterior and posterior cruciate ligaments are intact. There is some edema medial to the MCL consistent with a grade I MCL sprain. There is also some fluid deep to the MCL below the joint line consistent with some TCL bursitis.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(22, 1500, 14, 'Postoperative Control', TO_TIMESTAMP('01-02-2018 07:16:46', 'DD-MM-YYYY HH24:MI:SS'), 'There is a fairly large broad band of edema in the medial tibial plateau extending to the medial aspect of the lateral tibial plateau compatible with an area of edema, or contusion. There is some subchondral degenerative changes in the femoral condyle. A discrete fracture line is not identified. The lateral collateral ligament appears intact. The extensor mechanism appears intact. There is chondromalacia patella most pronounced along the lateral facet as well as the lateral aspect of the medial facet near the patellar apex. The chondromalacia patella is most pronounced at the level of the upper pole of the patella. A few small subchondral cysts are seen within the patella. There is a small joint effusion.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1100, 15, 'X-Ray', TO_TIMESTAMP('05-01-2018 11:47:01', 'DD-MM-YYYY HH24:MI:SS'), 'MRI examination of the lumbar spine is performed using the following protocol: T1 weighted and T2 weighted axial and sagittal sequences. The lumbar vertebral alignment is well maintained. The vertebral body heights and disc spaces are well maintained. Normal T2 hyperintensities are seen within all the discs in the lumbar spine. Axial scans are done from disc space level L2-L3 through L5-S1. At disc space levels L4-L5 and L5-S1, there are very minimal diffuse disc bulges. There is no focal disc herniation, canal stenosis or foraminal narrowing seen at any of the levels in the lumbar spine.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(11, 1100, 15, 'Operation', TO_TIMESTAMP('08-01-2018 09:45:00', 'DD-MM-YYYY HH24:MI:SS'), 'The infraspinatus and teres minor tendons are intact. There is mild tendinosis of the supraspinatus tendon without tear. The subscapularis tendon is intact. The long head of the biceps tendon is in anatomic location and the biceps anchor is maintained.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(11, 1100, 15, 'Postoperative Control', TO_TIMESTAMP('09-01-2018 07:12:30', 'DD-MM-YYYY HH24:MI:SS'), 'Close attention was paid to insure that no lagophthalmos was created. At this point, lidocaine 2.0% with epinephrine was then injected locally under the premarked skin area, on the left upper lid as well as the right upper lid. Cool compresses were placed on the lids. Attention was first paid to the left side where a #15 blade was then used to incise the skin along the area that was premarked. The skin was then initially removed using Westcott, and 0.12 and then with a Bovie. Hemostasis was achieved using the Bovie cautery as well. Then 6-0 Prolene suture was then used to close the incision with a running subcuticular stitch pattern. The ends were bolstered with small pieces of rubber band and tied to the Prolene suture. The wound was noted to be well approximated.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1100, 16, 'X-Ray', TO_TIMESTAMP('10-03-2018 13:18:14', 'DD-MM-YYYY HH24:MI:SS'), 'No lagophthalmos was appreciated. The same technique was performed on the right upper lid with no lagophthalmos appreciated as well. Maxitrol and cold compresses were placed. Patient tolerated the procedure without any complications. Patient was instructed to take oral antibiotics and Topical TobraDex and follow up in one week with Dr. Richard in the eye clinic.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(12, 1100, 17, 'Preventive Control', TO_TIMESTAMP('04.02.2018 14:24:47', 'DD-MM-YYYY HH24:MI:SS'), 'The patient was taken to the Operating Room and was placed in a recumbent position. A time out was conducted in which the patient’s identity, surgical eyes and procedure was verified by the surgeon, circulating nurse and scrub nurse. Using a Colorado needle, an initial incision in the lower eyelid margin on the premarked skin area was performed. The skin was undermined and bleeding vessels were carefully cauterized with a held cautery. The spectrum was opened and excess fat was removed and a lateral tarsorrhaphy was performed as well.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(11, 1100, 17, 'MRI', TO_TIMESTAMP('05.02.2018 08:42:29', 'DD-MM-YYYY HH24:MI:SS'), 'The skin was closed with 6-0 plain suture. On the left upper eyelid, we also used a Colorado needle to make an initial elliptical incision on the premarked area of the skin. The skin was removed and it was closed with 6-0 Prolene suture. At the endo f the procedure, we gave 1 gm of Ancef and 8 mg of Decadron intravenously. The patient was sent to the Recovery Room without any complications where he received postoperative instructions and follow up appointments.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(21, 1200, 18, 'X-Ray', TO_TIMESTAMP('17-11-2017 09:27:53', 'DD-MM-YYYY HH24:MI:SS'), 'The patient was prepped and draped in the standard fashion with a tourniquet on the leg after preoperative antibiotics. The tourniquet was set 300 mm of pressure. Inferomedial and inferolateral portals were established. The scope was passed through an inferolateral portal. Evaluation of the suprapatellar pouch demonstrated no major abnormalities although some synovitis. The patella, however, demonstrated grade III chondromalacia especially along the lateral facet and over to the middle portion of the patella. There was no significant chondromalacia in the femoral groove.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(21, 1200, 18, 'Operation', TO_TIMESTAMP('19-11-2017 10:30:00', 'DD-MM-YYYY HH24:MI:SS'), 'The anterior cruciate ligament was intact. The medial compartment demonstrated no significant tears and no significant areas of chondromalacia. The lateral meniscus, however, demonstrated a large bucket-handle tear of the posterior horn and a flap tear in the body and anterior part of the meniscus. Initial attention was directed to the lateral meniscus where the flap tear and the bucket-handle tear were removed. This did not appear to be repairable. It was too damaged for an effective repair. The patient then underwent a trimming of it to a stable margin and once this had been established attention was directed to the patella.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(15, 1200, 18, 'CT', TO_TIMESTAMP('21-11-2017 07:24:51', 'DD-MM-YYYY HH24:MI:SS'), 'Initially, a mechanical debridement was done followed by a smoothing and rounding of the shoulders and edges with an ArthroCare on a setting of 2. This having been completed this, the knee was injected with platelet rich plasma to help healing, help hemostasis and prevent infection. She then was placed in a compressive dressing from toes to midthigh. She tolerated the procedure well and will be discharged home to be followed up in my office on Monday.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(21, 1200, 19, 'X-Ray', TO_TIMESTAMP('18-03-2018 11:47:23', 'DD-MM-YYYY HH24:MI:SS'), ' The patient was identified prior to operative area and holding area the correct eye was identified with a YES. A peribulbar block was given in the reoperative area under normal conditions. The patient was brought into the operative suite were leads and monitors were placed. It was confirmed that the left eye was the operative eye. A lid spectrum was spectrum was fashioned in the operative eye and the area was approached from the temporal area. A small groove was made at the two o’clock position using a corneal scleral blade. An incision was made at the six o’clock position with a 1 mm keratome. The anterior chamber was filled with Tryphan blue to stain the capsule. Viscoelastic was then inserted into the eye. The two o’clock position was then entered with a 2.7 mm keratome and using the cystotome and Utrata complete capsulorrhexis was performed.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(28, 1500, 20, 'Operation', TO_TIMESTAMP('16-03-2018 04:29:00', 'DD-MM-YYYY HH24:MI:SS'), 'The water tightness was complete. Miochol was inserted in the eye thus constricting the pupil and it appeared to be complete. The speculum was removed. Antibiotic medication was placed on the eye. A shield and a patch were placed on the eye and the drapes were removed. The reminder procedure without complications and there was no vitreous loss. The patient was taken to the Recovery Room where he recovered without any problems.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(10, 1500, 20, 'Neurosurgery Control', TO_TIMESTAMP('16-03-2018 15:39:41', 'DD-MM-YYYY HH24:MI:SS'), 'The procedure, risks, and benefits were explained to the patient, all questions were answered and consent was obtained. Patient was taken to the Operating Room and place in a decubitus-prone position on the operating table. Monitors were applied and sedation started by the anesthesiologist.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(01, 1400, 22, 'Flat-feet intervention', TO_TIMESTAMP('10-03-2018 08:00:00', 'DD-MM-YYYY HH24:MI:SS'), 'Following the induction of IV Diprovan and inhalation of nitrous oxide, the gentle manipulation of the left total knee replacement was undertaken with audible lysis of adhesions. The manipulation was carried out to 115° of flexion, measured with a goniometer and minus 4° of full extension. Excellent stability of the knee stressed in full extension. Surgical wound well healed. The patient, following the manipulation, she was allowed to recover from her anesthesia and transported by a stretcher from the Operating Room to the Recovery Room in good condition.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(22, 1400, 22, 'Postintervention Conrol', TO_TIMESTAMP('11-03-2018 07:18:48', 'DD-MM-YYYY HH24:MI:SS'), 'he patient is a 32-year-old female, right hand dominant with a previous left carpal tunnel release, cubital tunnel release. The patient has had an increase in symptoms including muscle wasting and constant numbness. The release was done by another physician. A re-release will be performed with a transposition of the nerve.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(01, 1400, 22, 'Preventive Control', TO_TIMESTAMP('21-03-2018 09:41:53', 'DD-MM-YYYY HH24:MI:SS'), 'The patient was taken to the Operating Suite, placed in the supine position. A tourniquet was applied to the left upper extremity and set at 250 mm Hg. The arm was prepped and draped in the usual sterile fashion. The area in the palm and the elbow were infiltrated with 2% lidocaine and 0.25% Marcaine by me as well as IV sedation. The arm was maximally elevated, exsanguinated and the tourniquet was inflated to its preset pressures.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(32, 1600, 23, 'UltraSound', TO_TIMESTAMP('22-03-2017 04:22:00', 'DD-MM-YYYY HH24:MI:SS'), 'The first aspect of the procedure was to go ahead and make an incision in the palm. This was extended down to the transverse carpal ligament, which had reformed with scar tissue and an open release of the carpal tunnel was done, both the palm and volar forearm through the limited incision. A synovectomy was also performed due to the heavy reactive synovial tissue encountered. The synovial tissue was submitted to Pathology.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(15, 1600, 23, 'Immunology Control', TO_TIMESTAMP('22-03-2017 12:53:48', 'DD-MM-YYYY HH24:MI:SS'), 'The area was irrigated with antibiotic solution. All bleeding was meticulously controlled. After complete release of the carpal tunnel and transverse carpal ligament release the incision was closed using 4-0 nylon interrupted sutures.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(32, 1600, 24, 'UltraSound', TO_TIMESTAMP('14-08-2017 14:47:22', 'DD-MM-YYYY HH24:MI:SS'), 'Following this, my attention was then directed at the elbow. The medial epicondyle region, from the previous scar, was then incised carefully removing thick hard scar tissue. After considerable amount of dissection the ulnar nerve was identified and completely released at this time. The nerve appeared hyperemic and compressed. A minor transposition of the nerve and partial submuscular was performed and the area was irrigated with antibiotic solution.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(15, 1600, 25, 'UltraSound', TO_TIMESTAMP('01-04-2018 19:11:11', 'DD-MM-YYYY HH24:MI:SS'), 'The patient had incision lines dressed with Xeroform gauge, fluff and 4-inch Kling. The patient had the hand maximally elevated in a stockinettesling.The patient tolerated the procedure well and all sponge counts, needle counts and instrument counts were correct postoperatively. The patient is aware of possible post surgical sequelae, post traumatic complications including but not limited to hypertrophic scar, wound dehiscence, wound infection, retracted scar, contracted scar, nerve compression, nerve injury, tendon injury, further wasting and numbness of the hand and the possible need for further revisional surgery and/or occupation therapy.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(15, 1600, 25, 'Immnulogy Control', TO_TIMESTAMP('02-04-2018 00:02:57', 'DD-MM-YYYY HH24:MI:SS'), ':Anesthesia was administered without complication. An oculopress was placed over the eye for an appropriate duration. Prior to the actual surgical procedure a time out was undertaken with the patient present on the Operating Room table. The surgeon, anesthesia provider and circulating nurse confirmed the patient’s name, operative side, operative site and the exact procedure to be performed. The patient was prepped and draped in the usual sterile fashion.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(21, 1200, 26, 'X-Ray', TO_TIMESTAMP('14-05-2017 05:55:44', 'DD-MM-YYYY HH24:MI:SS'), 'Subjective growth of corneal lesion and decreased vision in the above noted eye with chronic inflammation subjectively noted. Preoperatively all risks, benefits, general considerations and alternatives regarding the above noted surgery have been explained by myself to the patient including possible loss of vision, infection, double vision, recurrence, the need for additional surgery and the potential loss of the eye. The patient has acknowledged understanding and has preoperatively signed the informed operative consent. Advised of all potential ramifications of surgery the patient desires to undergo the above noted surgery.');
INSERT INTO EXAMINATION (DOCTOR_ID, DEPARTMENT_ID, HOSPITALIZATION_ID, SPECIALIZATION, DATE_AND_TIME, MEDICALRECORD) VALUES(15, 1200, 26, 'X-Ray', TO_TIMESTAMP('17-05-2017 11:11:11', 'DD-MM-YYYY HH24:MI:SS'), 'A wire lid speculum was used to open the eyelid. Two drops of Betadine 5.0% was placed on the eye for 1 minute. The ocular surface reconstruction was begun by removing the pterygium. A 57 blade was used to excise the pterygium in a lamellar fashion. The base of the pterygium was removed using a Westcott scissor. Cautery was used to obtain hemostasis. It was difficult to dissect the plane of the pterygium as there was diffuse corneal scarring');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Codeine', 360, 'syrup', '3-Methylmorphine', 'opioids', 'dizziness');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Acetaminophen', 4000, 'liqiud, surup', 'Acetaminophen', 'severe renal impairment', 'yellow skin');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Lexapro', 10, 'tablet', 'Escitalopram', 'heart disease' ,'ejaculatory disorder');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Viagra', 100, 'tablet','SILDENAFIL CITRATE', 'heart attack', 'dyspepsia');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Ibuprofen', 3200, 'tablet', 'Genpril', 'pregnancy', 'decreased hemoglobin');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Xanax', 2, 'tablet', 'Niravam', 'pregnancy', 'ataxia');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Amoxicillin', 500, 'capsule', 'Moxatag', 'drug abuse', 'bleeding gums');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Lyrica', 100, 'capsule', 'Pregabalin', 'depresion', 'headache');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Lisinopril', 80, 'tablet', 'Prinivil', 'pregnancy', 'dizziness');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Metformin', 2500, 'tablet', 'Fortamet', 'heart attack', 'diarrhea');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Cymbalta', 30, 'capsule', 'Irenka', 'seizures', 'dizziness');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Naproxen', 450, 'capsule', 'Naprosyn', 'heart attack', 'stomach pain');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Tramadol', 400, 'suspension', 'Ultram', 'asthma', 'insomnia');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Oxycodone', 5, 'tablet', 'Oxaydo', 'seizures', 'faintness');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Trazodone', 375, 'tablet', 'Oleptro', 'heart disease', 'headache');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Gabapentin', 3600, 'capsule', 'Neurontin', 'pregnancy', 'dizziness');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Lorazepam', 1, 'tablet', 'Ativan', 'drug abuse', 'sedation');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Ciprofloxaxin', 500, 'syrup', 'Proquin', 'seizures', 'myalgia');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Zoloft', 125, 'capsule', 'Sertaline', 'weight loss', 'diarrhea');
INSERT INTO MEDICATION ("NAME", MAX_DOSE, "FORM", ACTIVE_SUBSTANCE, CONTRAINDICTION, SIDE_EFFECTS) VALUES('Citalopram', 40, 'tablet', 'CeleXA', 'heart disease', 'impotence');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(10, 05, 05, 'buccal', TO_TIMESTAMP('29-09-2017 06:34:12', 'DD-MM-YYYY HH24:MI:SS'), 3, 'injection');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(28, 10, 04, 'rectal', TO_TIMESTAMP('08-12-2017 12:27:02', 'DD-MM-YYYY HH24:MI:SS'), 1, 'infusion');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(28, 12, 06, 'oral', TO_TIMESTAMP('24-10-2017 06:58:02', 'DD-MM-YYYY HH24:MI:SS'), 5, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(10, 07, 07, 'sublingual', TO_TIMESTAMP('05-01-2018 15:32:14', 'DD-MM-YYYY HH24:MI:SS'), 2, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(14, 04, 08, 'intrathecal', TO_TIMESTAMP('23-10-2017 07:37:19', 'DD-MM-YYYY HH24:MI:SS'), 3, 'injection');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(10, 20, 10, 'infused', TO_TIMESTAMP('01-04-2018 17:42:47', 'DD-MM-YYYY HH24:MI:SS'), 10, 'infusion');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(28, 17, 11, 'rectal', TO_TIMESTAMP('15-12-2017 07:17:45', 'DD-MM-YYYY HH24:MI:SS'), 3, 'liquid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(06, 15, 11, 'buccal', TO_TIMESTAMP('18-12-2017 14:24:23', 'DD-MM-YYYY HH24:MI:SS'), 1, 'injection');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(22, 14, 14, 'intrathecal', TO_TIMESTAMP('01-02-2018 07:30:48', 'DD-MM-YYYY HH24:MI:SS'), 2, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(11, 01, 15, 'infused', TO_TIMESTAMP('09-01-2018 07:19:15', 'DD-MM-YYYY HH24:MI:SS'), 5, 'infusion');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(12, 03, 17, 'oral', TO_TIMESTAMP('04.02.2018 14:35:12', 'DD-MM-YYYY HH24:MI:SS'), 3, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(10, 16, 20, 'buccal', TO_TIMESTAMP('16-03-2018 15:47:10', 'DD-MM-YYYY HH24:MI:SS'), 2, 'liquid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(22, 11, 22, 'rectal', TO_TIMESTAMP('11-03-2018 07:24:01', 'DD-MM-YYYY HH24:MI:SS'), 3, 'liquid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(01, 12, 22, 'sublingual', TO_TIMESTAMP('21-03-2018 09:47:17', 'DD-MM-YYYY HH24:MI:SS'), 4, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(15, 02, 23, 'infused', TO_TIMESTAMP('22-03-2017 12:54:12', 'DD-MM-YYYY HH24:MI:SS'), 1, 'infusion');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(15, 05, 25, 'oral', TO_TIMESTAMP('02-04-2018 00:12:17', 'DD-MM-YYYY HH24:MI:SS'), 1, 'injection');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(23, 06, 09, 'buccal', TO_TIMESTAMP('17-12-2015 09:50:09', 'DD-MM-YYYY HH24:MI:SS'), 3, 'solid state');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(10, 09, 02, 'intrathecal', TO_TIMESTAMP('14-08-2014 11:25:48', 'DD-MM-YYYY HH24:MI:SS'), 2, 'injection');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(06, 13, 01, 'infused', TO_TIMESTAMP('24-11-2016 15:02:01', 'DD-MM-YYYY HH24:MI:SS'), 1, 'infusion');
INSERT INTO ADMINISTRATION_MEDICATION (DOCTOR_ID, MEDICATION_ID, HOSPITALIZATION_ID, "PROCEDURE", DATE_AND_TIME, FREQUENCY_AT_DAY, WAY) VALUES(28, 07, 26, 'buccal', TO_TIMESTAMP('08-01-2018 09:52:41', 'DD-MM-YYYY HH24:MI:SS'), 3, 'solid state');
-- Listing of clients that originate from the US
SELECT P.PERSON_ID, P.NAME, P.SURNAME
FROM PERSON P
WHERE P.COUNTRY = 'USA';
-- Listing of names of drugs which were administered to frequency once a day
SELECT M.NAME
FROM MEDICATION M NATURAL JOIN ADMINISTRATION_MEDICATION A
WHERE A.FREQUENCY_AT_DAY = 1
ORDER BY M.NAME;
-- Listing of nurse that have limited competence
SELECT P.NAME, P.SURNAME, N.NURSE_ID
FROM PERSON P INNER JOIN NURSE N ON P.PERSON_ID = N.NURSE_ID AND N.COMPETENCE = 'LIMITED'
ORDER BY P.NAME, P.SURNAME;
-- Listing of doctors ID that described medication in injections way
SELECT DISTINCT D.DOCTOR_ID
FROM DOCTOR D, ADMINISTRATION_MEDICATION A
WHERE D.DOCTOR_ID = A.DOCTOR_ID AND A.WAY = 'injection';
-- Listing of doctors that do not work anymore
-- in the hospital and date of their dismissal
SELECT P.NAME, P.SURNAME, D.TURNDATE
FROM DOCTOR D, PERSON P
WHERE D.DOCTOR_ID = P.PERSON_ID AND D.TURNDATE IS NOT NULL
ORDER BY P.NAME, P.SURNAME;
-- Listing of patients that have ever undergone surgery and its date
SELECT DISTINCT P.NAME, P.SURNAME, E.DATE_AND_TIME
FROM PERSON P INNER JOIN PATIENT PT on P.PERSON_ID = PT.PATIENT_ID INNER JOIN HOSPITALIZATION H ON H.PATIENT_ID = PT.PATIENT_ID INNER JOIN EXAMINATION E ON E.HOSPITALIZATION_ID = H.HOSPITALIZATION_ID
WHERE E.SPECIALIZATION = 'Operation'
ORDER BY P.NAME, P.SURNAME;
-- Listing of count of obligations of Head Doctors
SELECT DISTINCT P.NAME, P.SURNAME, COUNT(*) AS HEAD_DOCTORS_COUNT_OBLIGATIONS
FROM PERSON P INNER JOIN DOCTOR D on P.PERSON_ID = D.DOCTOR_ID INNER JOIN OBLIGATION O ON O.DOCTOR_ID = D.DOCTOR_ID
WHERE D.POSITION = 'Head doctor'
GROUP BY P.NAME, P.SURNAME
ORDER BY COUNT(*) DESC;
-- Listing of count of obligations all doctors
SELECT D.DOCTOR_ID, P.NAME, P.SURNAME, COUNT(*) AS OBLIGATION_COUNT
FROM PERSON P, DOCTOR D, OBLIGATION O
WHERE D.DOCTOR_ID = O.DOCTOR_ID AND O.DOCTOR_ID = P.PERSON_ID
GROUP BY D.DOCTOR_ID, P.NAME, P.SURNAME
ORDER BY COUNT(*) DESC;
-- Listing of count of doctors on each department
SELECT D.DEPARTMENT_ID, COUNT(*) AS DOCTORS_COUNT
FROM DEPARTMENT D, OBLIGATION O
WHERE D.DEPARTMENT_ID = O.DEPARTMENT_ID
GROUP BY D.DEPARTMENT_ID;
-- Listing of doctors that execution some examination
SELECT P.NAME, P.SURNAME, P.PERSON_ID
FROM PERSON P
WHERE EXISTS (
SELECT E.DOCTOR_ID
FROM EXAMINATION E
WHERE E.DOCTOR_ID = P.PERSON_ID
);
-- Listing of count of hospitalization of indiviudual patient
SELECT P.NAME, P.SURNAME, COUNT(*) AS HOSPITALIZATION_COUNT
FROM PERSON P, PATIENT PT, HOSPITALIZATION H
WHERE P.PERSON_ID = PT.PATIENT_ID AND PT.PATIENT_ID = H.PATIENT_ID
GROUP BY P.NAME, P.SURNAME
ORDER BY COUNT(*) DESC;
-- Listing of count of types of examination on the each department
SELECT D.NAME, E.SPECIALIZATION, COUNT(*) AS DEPARTMENT_EXAM_COUNT
FROM DEPARTMENT D, EXAMINATION E
WHERE D.DEPARTMENT_ID = E.DEPARTMENT_ID
GROUP BY D.NAME, E.SPECIALIZATION
ORDER BY D.NAME, E.SPECIALIZATION;
-- Maximal count of executed intervetion in the hospital and
-- department on wich was executed
SELECT D.NAME, E.SPECIALIZATION, COUNT(*) AS DEPARTMENT_EXAM_COUNT
FROM DEPARTMENT D, EXAMINATION E
WHERE D.DEPARTMENT_ID = E.DEPARTMENT_ID
GROUP BY D.NAME, E.SPECIALIZATION
HAVING COUNT(*) >= ALL (
SELECT COUNT(*)
FROM DEPARTMENT D, EXAMINATION E
WHERE D.DEPARTMENT_ID = E.DEPARTMENT_ID
GROUP BY D.NAME, E.SPECIALIZATION
);
-- Listing of patient that was hospitalized in year 2018
SELECT NAME, SURNAME, PERSON_ID
FROM PERSON
WHERE PERSON_ID IN (
SELECT PATIENT_ID
FROM PATIENT
WHERE PATIENT_ID IN (
SELECT PATIENT_ID
FROM HOSPITALIZATION
WHERE DATE_AND_TIME BETWEEN TO_TIMESTAMP('01-01-2018 00:00:00', 'DD-MM-YYYY HH24:MI:SS')
AND TO_TIMESTAMP('15-04-2018 00:00:00', 'DD-MM-YYYY HH24:MI:SS')
)
);
CREATE OR REPLACE TRIGGER SET_TURNDATE
BEFORE UPDATE OF "STATE" ON DOCTOR
REFERENCING OLD AS MYOLD NEW AS MYNEW
FOR EACH ROW
BEGIN
SELECT SYSDATE
INTO : MYNEW.TURNDATE
FROM DUAL;
END SET_TURNDATE;
/
-- VIEW OF TRIGGER
SELECT * FROM DOCTOR WHERE DOCTOR_ID = 12;
UPDATE DOCTOR SET "STATE" = 'UNACTIVE' WHERE DOCTOR_ID = 12;
SELECT * FROM DOCTOR WHERE DOCTOR_ID = 12;
CREATE OR REPLACE PROCEDURE MEDICAMENTS_COUNT(EFFECT IN VARCHAR2)
IS
CURSOR MEDICAMENTS IS SELECT * FROM MEDICATION;
"RECORD" MEDICAMENTS%ROWTYPE;
COUNT_ALL NUMBER;
COUNT_WITH_EFFECT NUMBER;
BEGIN
COUNT_ALL := 0;
COUNT_WITH_EFFECT := 0;
OPEN MEDICAMENTS;
LOOP
FETCH MEDICAMENTS INTO "RECORD";
EXIT WHEN MEDICAMENTS%NOTFOUND;
IF (TRIM("RECORD".SIDE_EFFECTS) = EFFECT) THEN
COUNT_WITH_EFFECT := COUNT_WITH_EFFECT + 1;
END IF;
IF ("RECORD".SIDE_EFFECTS IS NOT NULL) THEN
COUNT_ALL := COUNT_ALL + 1;
END IF;
END LOOP;
CLOSE MEDICAMENTS;
DBMS_OUTPUT.PUT_LINE('The database of the Hospital contains the: ' || COUNT_ALL || ' MEDICAMENTS.');
DBMS_OUTPUT.PUT_LINE('The count of medicaments, which have the side effect ' || EFFECT || ' is: ' || COUNT_WITH_EFFECT);
DBMS_OUTPUT.PUT_LINE('The percentage rate of medicaments with side effect ' || EFFECT || ' to all medicaments in the databse of hospital is ' || COUNT_WITH_EFFECT * 100 / COUNT_ALL || ' %');
EXCEPTION
WHEN ZERO_DIVIDE THEN
DBMS_OUTPUT.PUT_LINE('The database of hospital, which contains the medicaments is empty.');
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20987, 'Some error was occured.');
END MEDICAMENTS_COUNT;
/
BEGIN
MEDICAMENTS_COUNT('headache');
MEDICAMENTS_COUNT('dizziness');
END;
/
CREATE OR REPLACE PROCEDURE REMOVE_OLD_EXAMINATION("DATE" EXAMINATION.DATE_AND_TIME%TYPE) AS
CURSOR EXAMINATION_CURSOR IS
SELECT EXAMINATION_ID, DATE_AND_TIME
FROM EXAMINATION;
"ROW" EXAMINATION_CURSOR%ROWTYPE;
BEGIN
OPEN EXAMINATION_CURSOR;
FETCH EXAMINATION_CURSOR INTO "ROW";
WHILE EXAMINATION_CURSOR%found LOOP
IF ("ROW".DATE_AND_TIME < "DATE") THEN
DELETE FROM EXAMINATION WHERE "ROW".EXAMINATION_ID = EXAMINATION.EXAMINATION_ID;
END IF;
FETCH EXAMINATION_CURSOR INTO "ROW";
END LOOP;
CLOSE EXAMINATION_CURSOR;
END REMOVE_OLD_EXAMINATION;
/
CREATE OR REPLACE PROCEDURE DETAILS_EXAMINATION(SEARCH_EXAMINATION EXAMINATION.EXAMINATION_ID%TYPE) AS
EXAM_SPECIALIZATION EXAMINATION.SPECIALIZATION%TYPE;
ID_DOCTOR EXAMINATION.DOCTOR_ID%TYPE;
SEARCH_HOSPITALIZATION EXAMINATION.HOSPITALIZATION_ID%TYPE;
DATE_EXAMINATION EXAMINATION.DATE_AND_TIME%TYPE;
PATIENT_NAME VARCHAR(42);
PATIENT_SURNAME VARCHAR(42);
DOCTOR_NAME VARCHAR(42);
DOCTOR_SURNAME VARCHAR(42);
BEGIN
SELECT DOCTOR_ID, HOSPITALIZATION_ID, DATE_AND_TIME
INTO ID_DOCTOR, SEARCH_HOSPITALIZATION, DATE_EXAMINATION
FROM EXAMINATION
WHERE SEARCH_EXAMINATION = EXAMINATION.EXAMINATION_ID;
SELECT PERSON."NAME", PERSON.SURNAME
INTO DOCTOR_NAME, DOCTOR_SURNAME
FROM DOCTOR NATURAL JOIN PERSON
WHERE ID_DOCTOR = PERSON.PERSON_ID AND ID_DOCTOR = DOCTOR_ID;
SELECT SPECIALIZATION, "NAME", SURNAME
INTO EXAM_SPECIALIZATION, PATIENT_NAME, PATIENT_SURNAME
FROM EXAMINATION, HOSPITALIZATION, PERSON
WHERE SEARCH_EXAMINATION = EXAMINATION.EXAMINATION_ID AND SEARCH_HOSPITALIZATION = HOSPITALIZATION.HOSPITALIZATION_ID AND HOSPITALIZATION.PATIENT_ID = PERSON.PERSON_ID;
DBMS_OUTPUT.PUT_LINE('EXAMINATION with number ID ' || SEARCH_EXAMINATION || ', which was executed in the frame of HOSPITALIZATION with number ID ' || SEARCH_HOSPITALIZATION || ', has these details:');
DBMS_OUTPUT.PUT_LINE('TYPE OF EXAMINATION: ' || EXAM_SPECIALIZATION);
DBMS_OUTPUT.PUT_LINE('HOSPITALIZATION: ' || SEARCH_HOSPITALIZATION);
DBMS_OUTPUT.PUT_LINE('DOCTOR : ' || DOCTOR_NAME || ' ' || DOCTOR_SURNAME);
DBMS_OUTPUT.PUT_LINE('PATIENT: ' || PATIENT_NAME || ' ' || PATIENT_SURNAME);
DBMS_OUTPUT.PUT_LINE('DATE: ' || DATE_EXAMINATION);
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('THE EXAMINATION WITH NUMBER ID ' || SEARCH_EXAMINATION || ' IS NOT IN THE DATABASE OF THE HOSPITAL.');
END DETAILS_EXAMINATION;
/
BEGIN
DETAILS_EXAMINATION(42);
END;
/
SELECT * FROM EXAMINATION WHERE DATE_AND_TIME < TO_TIMESTAMP('01-01-2016 00:00:00', 'DD-MM-YYYY HH24:MI:SS');
BEGIN
REMOVE_OLD_EXAMINATION(TO_TIMESTAMP('01-01-2016 00:00:00', 'DD-MM-YYYY HH24:MI:SS'));
END;
/
SELECT * FROM EXAMINATION WHERE DATE_AND_TIME < TO_TIMESTAMP('01-01-2016 00:00:00', 'DD-MM-YYYY HH24:MI:SS');
GRANT ALL ON PERSON TO xzubri00;
GRANT ALL ON DOCTOR TO xzubri00;
GRANT ALL ON NURSE TO xzubri00;
GRANT ALL ON PATIENT TO xzubri00;
GRANT ALL ON OBLIGATION TO xzubri00;
GRANT ALL ON DEPARTMENT TO xzubri00;
GRANT ALL ON EXAMINATION TO xzubri00;
GRANT ALL ON HOSPITALIZATION TO xzubri00;
GRANT ALL ON MEDICATION TO xzubri00;
GRANT ALL ON ADMINISTRATION_MEDICATION TO xzubri00;
-- materialized view
CONNECT xzubri00/KiRkPrDC;
CREATE MATERIALIZED VIEW NURSE_VIEW
CACHE
BUILD IMMEDIATE
REFRESH COMPLETE
AS
SELECT DISTINCT SURNAME, "NAME", SPECIALIZATION, POSITION
FROM xstupi00.DOCTOR NATURAL JOIN xstupi00.PERSON
WHERE xstupi00.DOCTOR.DOCTOR_ID = xstupi00.PERSON.PERSON_ID;
GRANT ALL ON NURSE_VIEW to xstupi00;
CONNECT xstupi00/j06nyINz;
SELECT *
FROM xzubri00.NURSE_VIEW;
INSERT INTO PERSON ("NAME", SURNAME, BIRTHDATE, TOWN, STREET, HOUSE_NUMBER, COUNTRY, POSTCODE, SEX, ID_NUMBER) VALUES('Peter', 'Panelak', TO_DATE('25-04-1977', 'DD-MM-YYYY'), 'Zvolen', 'Listova', 3, 'Slovakia', 08688, 'M', 9059040892);
INSERT INTO DOCTOR (DOCTOR_ID, SPECIALIZATION, ABBREVIATION, "DEGREE", POSITION) VALUES(33, 'Anestesiology', 'MD, FFA', 'prof.', 'Doctor');
SELECT *
FROM xzubri00.NURSE_VIEW;
CONNECT xzubri00/KiRkPrDC;
EXECUTE DBMS_SNAPSHOT.REFRESH('nurse_view', 'COMPLETE');
CONNECT xstupi00/j06nyINz;
SELECT *
FROM xzubri00.NURSE_VIEW;
-- end materialized view
EXPLAIN PLAN FOR
SELECT D.DOCTOR_ID, P.NAME, P.SURNAME, COUNT(*) AS OBLIGATION_COUNT
FROM PERSON P, DOCTOR D, OBLIGATION O
WHERE D.DOCTOR_ID = O.DOCTOR_ID AND O.DOCTOR_ID = P.PERSON_ID
GROUP BY D.DOCTOR_ID, P.NAME, P.SURNAME;
SELECT PLAN_TABLE_OUTPUT
FROM TABLE(DBMS_XPLAN.DISPLAY('plan_table', null, 'advanced'));
CREATE INDEX INFO_INDEX ON PERSON("NAME", SURNAME);
CREATE INDEX ID_INDEX ON OBLIGATION(DOCTOR_ID);
EXPLAIN PLAN FOR
SELECT D.DOCTOR_ID, P.NAME, P.SURNAME, COUNT(*) AS OBLIGATION_COUNT
FROM PERSON P, DOCTOR D, OBLIGATION O
WHERE D.DOCTOR_ID = O.DOCTOR_ID AND O.DOCTOR_ID = P.PERSON_ID
GROUP BY D.DOCTOR_ID, P.NAME, P.SURNAME;
SELECT PLAN_TABLE_OUTPUT
FROM TABLE(DBMS_XPLAN.DISPLAY('plan_table', null, 'advanced'));
DROP INDEX INFO_INDEX;
DROP INDEX ID_INDEX;
EXPLAIN PLAN FOR
SELECT DISTINCT P.NAME, P.SURNAME, COUNT(*) AS HEAD_DOCTORS_COUNT_OBLIGATIONS
FROM PERSON P INNER JOIN DOCTOR D on P.PERSON_ID = D.DOCTOR_ID INNER JOIN OBLIGATION O ON O.DOCTOR_ID = D.DOCTOR_ID
WHERE D.POSITION = 'Head doctor'
GROUP BY P.NAME, P.SURNAME;
SELECT PLAN_TABLE_OUTPUT
FROM TABLE(DBMS_XPLAN.DISPLAY('plan_table', null, 'advanced'));
CREATE INDEX INFO_INDEX ON PERSON("NAME", SURNAME);
CREATE INDEX ID_INDEX ON OBLIGATION(DOCTOR_ID);
EXPLAIN PLAN FOR
SELECT DISTINCT P.NAME, P.SURNAME, COUNT(*) AS HEAD_DOCTORS_COUNT_OBLIGATIONS
FROM PERSON P INNER JOIN DOCTOR D on P.PERSON_ID = D.DOCTOR_ID INNER JOIN OBLIGATION O ON O.DOCTOR_ID = D.DOCTOR_ID
WHERE D.POSITION = 'Head doctor'
GROUP BY P.NAME, P.SURNAME;
SELECT PLAN_TABLE_OUTPUT
FROM TABLE(DBMS_XPLAN.DISPLAY('plan_table', null, 'advanced'));
CONNECT xzubri00/KiRkPrDC;
DROP MATERIALIZED VIEW nurse_view_1;
CONNECT xstupi00/j06nyINz;
DROP MATERIALIZED VIEW LOG ON DOCTOR;
DROP MATERIALIZED VIEW LOG ON EXAMINATION;
CREATE MATERIALIZED VIEW LOG ON DOCTOR WITH PRIMARY KEY, ROWID;
CREATE MATERIALIZED VIEW LOG ON EXAMINATION WITH PRIMARY KEY, ROWID;
GRANT ALL ON MLOG$_DOCTOR to xzubri00;
GRANT ALL ON MLOG$_EXAMINATION to xzubri00;
CONNECT xzubri00/KiRkPrDC;
CREATE MATERIALIZED VIEW nurse_view_1
CACHE
BUILD IMMEDIATE
REFRESH FAST ON COMMIT
ENABLE QUERY REWRITE
AS
SELECT DISTINCT POSITION, D.ROWID docrowid, P.ROWID perrowid
FROM xstupi00.DOCTOR D INNER JOIN xstupi00.EXAMINATION P
ON D.DOCTOR_ID = P.DOCTOR_ID;
GRANT ALL ON nurse_view_1 TO xstupi00;
EXPLAIN PLAN FOR
SELECT *
FROM xstupi00.DOCTOR D INNER JOIN xstupi00.EXAMINATION P
ON D.DOCTOR_ID = P.DOCTOR_ID;
SELECT plan_table_output FROM TABLE(dbms_xplan.display(NULL, NULL,'basic'));
ALTER SESSION SET query_rewrite_enabled = TRUE;
EXPLAIN PLAN FOR
SELECT DISTINCT POSITION, D.ROWID DOCROWID, P.ROWID PERROWID
FROM xstupi00.DOCTOR D INNER JOIN xstupi00.EXAMINATION P
ON D.DOCTOR_ID = P.DOCTOR_ID;
SELECT plan_table_output FROM TABLE(dbms_xplan.display(NULL, NULL,'basic')); |
--
-- KEGG_DB schema
-- ==============
--
CREATE TABLE ec2go (
ec_no VARCHAR(16) NOT NULL, -- EC number (with "EC:" prefix)
go_id CHAR(10) NOT NULL -- GO ID
);
CREATE TABLE pathway2gene (
pathway_id CHAR(8) NOT NULL, -- KEGG pathway long ID
gene_id VARCHAR(20) NOT NULL -- Entrez Gene or ORF ID
);
CREATE TABLE pathway2name (
path_id CHAR(5) NOT NULL UNIQUE, -- KEGG pathway short ID
path_name VARCHAR(80) NOT NULL UNIQUE -- KEGG pathway name
);
-- Metadata tables.
CREATE TABLE metadata (
name VARCHAR(80) PRIMARY KEY,
value VARCHAR(255)
);
CREATE TABLE qcdata (
map_name VARCHAR(80) PRIMARY KEY,
count INTEGER NOT NULL
);
CREATE TABLE map_metadata (
map_name VARCHAR(80) NOT NULL,
source_name VARCHAR(80) NOT NULL,
source_url VARCHAR(255) NOT NULL,
source_date VARCHAR(20) NOT NULL
);
-- Indexes.
CREATE INDEX Ipathway2gene ON pathway2gene (gene_id);
|
<reponame>rtanyildizi/Library-Management-System
-- Drop the stored procedure called 'SP_SelectAllAuthors' in schema 'dbo'
IF EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'dbo'
AND SPECIFIC_NAME = N'SP_SelectAllAuthors'
)
DROP PROCEDURE dbo.SP_SelectAllAuthors
GO |
<filename>BaseDatos/ejemplo.sql
CREATE DATABASE IF NOT EXISTS `ejemplo` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `ejemplo`;
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
--
-- Host: localhost Database: ejemplo
-- ------------------------------------------------------
-- Server version 8.0.22
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `departamentos`
--
DROP TABLE IF EXISTS `departamentos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `departamentos` (
`dept_no` tinyint NOT NULL,
`dnombre` varchar(15) DEFAULT NULL,
`loc` varchar(15) DEFAULT NULL,
PRIMARY KEY (`dept_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `departamentos`
--
LOCK TABLES `departamentos` WRITE;
/*!40000 ALTER TABLE `departamentos` DISABLE KEYS */;
INSERT INTO `departamentos` VALUES (10,'contabilidad','Sevilla'),(12,'Pablo','Neruda'),(13,'Marketing','Mislata'),(14,'Marketing','Mislata'),(15,'Informatica','Madrid'),(16,'Marketing','Mislata'),(17,'Marketing','Mislata'),(18,'Marketing','Mislata'),(20,'investigación','Madrid'),(30,'ventas','Valencia'),(40,'producción','Bilbao'),(50,'Informatica2','Madrid'),(60,'MARKETING','GUADALAJARA'),(61,'MARKETING','GUADALAJARA');
/*!40000 ALTER TABLE `departamentos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `empleados`
--
DROP TABLE IF EXISTS `empleados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `empleados` (
`emp_no` smallint NOT NULL,
`apellido` varchar(10) DEFAULT NULL,
`oficio` varchar(10) DEFAULT NULL,
`dir` smallint DEFAULT NULL,
`fecha_alt` date DEFAULT NULL,
`salario` float(6,2) DEFAULT NULL,
`comision` float(6,2) DEFAULT NULL,
`dept_no` tinyint NOT NULL,
PRIMARY KEY (`emp_no`),
KEY `FK_DEP` (`dept_no`),
CONSTRAINT `FK_DEP` FOREIGN KEY (`dept_no`) REFERENCES `departamentos` (`dept_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `empleados`
--
LOCK TABLES `empleados` WRITE;
/*!40000 ALTER TABLE `empleados` DISABLE KEYS */;
INSERT INTO `empleados` VALUES (7369,'Sanchez','Empleado',7902,'1990-12-17',9240.00,NULL,30),(7499,'Arroyo','Vendedor',7698,'1990-02-20',2300.00,390.00,30),(7521,'Sala','Vendedor',7698,'1991-04-22',2425.00,650.00,30);
/*!40000 ALTER TABLE `empleados` 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 2020-12-20 14:48:10
|
/*
Warnings:
- You are about to drop the `Roles` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `Tasks` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "UserRoles" DROP CONSTRAINT "UserRoles_roleName_fkey";
-- DropTable
DROP TABLE "Roles";
-- DropTable
DROP TABLE "Tasks";
-- DropEnum
DROP TYPE "RolePriority";
|
<filename>databases/backup-06-05-2015-23-15.sql
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 07-05-2015 a las 05:43:11
-- Versión del servidor: 5.6.17
-- Versión de PHP: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de datos: `alice`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `achievements`
--
CREATE TABLE IF NOT EXISTS `achievements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `attachments`
--
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`attachmentable_id` int(11) NOT NULL,
`attachmentable_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`route` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`mime` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`size` int(11) NOT NULL,
`status` enum('uploaded','deleted','notuploaded','draft') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'draft',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=58 ;
--
-- Volcado de datos para la tabla `attachments`
--
INSERT INTO `attachments` (`id`, `attachmentable_id`, `attachmentable_type`, `name`, `route`, `mime`, `size`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(4, 7, 'Message', 'Camera Shutter Sound Effect.mp3', '/uploads/messages/files/11A6F10B-8535-4C24-07FB-D73CFDB81EF4.mp3', 'audio/mpeg', 0, 'draft', '2015-04-25 22:25:56', '2015-04-25 22:25:56', NULL),
(5, 7, 'Message', 'Censor Beep Sound Effect.mp3', '/uploads/messages/files/4BBF7212-7FD5-B56E-919A-1123D8D5F272.mp3', 'audio/mpeg', 0, 'draft', '2015-04-25 22:25:56', '2015-04-25 22:25:56', NULL),
(6, 7, 'Message', 'arsenal.sql', '/uploads/messages/files/A7A99A38-F3FE-81ED-6AE7-2406454626A5.sql', 'text/plain', 0, 'draft', '2015-04-25 22:29:15', '2015-04-25 22:29:15', NULL),
(7, 7, 'Message', 'adelaida.sql', '/uploads/messages/files/C60AEF77-F9F7-2276-AC02-B16283481B99.sql', 'text/plain', 0, 'draft', '2015-04-25 22:30:35', '2015-04-25 22:30:35', NULL),
(8, 7, 'Message', 'bootstrap-fileinput-master.zip', '/uploads/messages/files/BBC320FB-8511-8978-4AD1-A8B92B80ABF7.zip', 'application/zip', 0, 'draft', '2015-04-25 22:31:29', '2015-04-25 22:31:29', NULL),
(9, 8, 'Message', 'Censor Beep Sound Effect.mp3', '/uploads/messages/files/AB792C67-88F0-E113-61C5-2D137222E3D0.mp3', 'audio/mpeg', 0, 'draft', '2015-04-25 22:38:31', '2015-04-25 22:38:31', NULL),
(10, 8, 'Message', 'alice.sql', '/uploads/messages/files/B9396191-8A15-333A-8483-DFFFDEC6C50C.sql', 'text/plain', 0, 'draft', '2015-04-25 22:38:31', '2015-04-25 22:38:31', NULL),
(11, 8, 'Message', 'bootstrap-3.3.4-dist.zip', '/uploads/messages/files/9AC7C568-073C-52CB-E015-DC30A4D67900.zip', 'application/zip', 0, 'draft', '2015-04-25 22:38:32', '2015-04-25 22:38:32', NULL),
(12, 8, 'Message', 'Módulos de la Plataforma.docx', '/uploads/messages/files/A1EAA0B6-10C7-F7D3-9358-BA3D108F2441.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 0, 'draft', '2015-04-25 22:38:33', '2015-04-25 22:38:33', NULL),
(13, 9, 'Message', '59ZRklaO5bWGqF5A9baEEVtXRa8TVwTICgirnJhmVJw.woff2', '/uploads/messages/files/2E66FF04-660C-3342-1783-02F345A36909.woff2', 'application/octet-stream', 0, 'draft', '2015-04-25 22:39:53', '2015-04-25 22:39:53', NULL),
(14, 9, 'Message', 'adelaida.sql', '/uploads/messages/files/1C159FEB-B1EA-604B-5F35-7F8C3BD20174.sql', 'text/plain', 0, 'draft', '2015-04-25 22:39:54', '2015-04-25 22:39:54', NULL),
(15, 9, 'Message', 'bootstrap-3.3.4-dist.zip', '/uploads/messages/files/37B7077A-AEF2-B012-31A7-353DD1D8D307.zip', 'application/zip', 0, 'draft', '2015-04-25 22:39:54', '2015-04-25 22:39:54', NULL),
(16, 10, 'Message', 'alice.sql', '/uploads/messages/files/502F7742-8ED6-1415-5F02-47291F532EFF.sql', 'text/plain', 0, 'draft', '2015-04-25 22:47:33', '2015-04-25 22:47:33', NULL),
(17, 10, 'Message', 'adelaida (1).sql', '/uploads/messages/files/3BB4850D-52A5-60FA-DE9F-469FCDA24F07.sql', 'text/plain', 0, 'draft', '2015-04-25 22:47:33', '2015-04-25 22:47:33', NULL),
(18, 10, 'Message', 'arsenal.sql', '/uploads/messages/files/7955C8A2-BF10-F8C4-5A46-3736B97BA7AE.sql', 'text/plain', 0, 'draft', '2015-04-25 22:47:34', '2015-04-25 22:47:34', NULL),
(19, 11, 'Message', 'bootstrap-3.3.4-dist.zip', '/uploads/messages/files/FD12A40A-72F7-400B-44D4-48E46C19E8FB.zip', 'application/zip', 0, 'draft', '2015-04-25 22:54:59', '2015-04-25 22:54:59', NULL),
(20, 11, 'Message', 'bootstrap-fileinput-master.zip', '/uploads/messages/files/6A097636-EFF1-A631-5A48-B96B77FAC972.zip', 'application/zip', 0, 'draft', '2015-04-25 22:54:59', '2015-04-25 22:54:59', NULL),
(21, 16, 'Message', '50giftsforwebenthusiasts34.jpg', '/uploads/messages/files/863A3339-7A1B-4084-94AC-23DDE9FEB225.jpg', 'image/jpeg', 125084, 'uploaded', '2015-04-26 22:27:09', '2015-04-26 22:40:06', NULL),
(22, 17, 'Message', '50giftsforwebenthusiasts34.jpg', '/uploads/messages/files/CC495781-64E8-99FD-5347-38C709846350.jpg', 'image/jpeg', 125084, 'uploaded', '2015-04-26 22:47:45', '2015-04-26 22:48:34', NULL),
(23, 17, 'Message', 'Icons-File-type-flat-Freebie.jpg', '/uploads/messages/files/E165B3C7-B8F1-E870-3732-F98CB74592BE.jpg', 'image/jpeg', 242242, 'uploaded', '2015-04-26 22:47:46', '2015-04-26 22:48:34', NULL),
(24, 17, 'Message', '30-free-flat-style-icons-september-2014-file-types-icons.jpg', '/uploads/messages/files/D0579B58-8A7D-6245-924C-760E726937BD.jpg', 'image/jpeg', 60840, 'uploaded', '2015-04-26 22:47:46', '2015-04-26 22:48:34', NULL),
(25, 17, 'Message', 'images.jpg', '/uploads/messages/files/BF53EAAE-A95C-EB11-D131-4AE77E49DE6A.jpg', 'image/jpeg', 3415, 'uploaded', '2015-04-26 22:47:47', '2015-04-26 22:48:35', NULL),
(26, 18, 'Message', 'Camera Shutter Sound Effect.mp3', '/uploads/messages/files/C5C1F86A-E8A8-D14A-1EA1-C81B110122C2.mp3', 'audio/mpeg', 14368, 'draft', '2015-04-26 23:00:53', '2015-04-26 23:00:53', NULL),
(27, 18, 'Message', 'jquery-1.11.2.min.js', '/uploads/messages/files/A584CC0F-7E4C-9ABA-2F08-2F2BB8BDE965.js', 'text/plain', 95931, 'draft', '2015-04-26 23:00:53', '2015-04-26 23:00:53', NULL),
(28, 18, 'Message', 'Módulos de la Plataforma.docx', '/uploads/messages/files/038F4A28-4CE7-51F3-AC77-84DBDA7F46EF.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 16988, 'draft', '2015-04-26 23:00:54', '2015-04-26 23:00:54', NULL),
(29, 18, 'Message', 'planilla-rusnies-alexis-montenegro-2008-2014 (1).pdf', '/uploads/messages/files/27956DB7-723E-8DDF-AF9C-63B7F998BB40.pdf', 'application/pdf', 19179, 'draft', '2015-04-26 23:00:55', '2015-04-26 23:00:55', NULL),
(30, 20, 'Message', 'bootstrap-3.3.4-dist.zip', '/uploads/messages/files/C03D9E84-BDEA-1858-021A-4EE794BCFF11.zip', 'application/zip', 261026, 'draft', '2015-04-26 23:59:17', '2015-04-26 23:59:17', NULL),
(31, 21, 'Message', 'adelaida.sql', '/uploads/messages/files/353E0D3A-D6D1-27E4-B343-836E13734B7F.sql', 'text/plain', 39990, 'draft', '2015-04-27 00:00:48', '2015-04-27 00:00:48', NULL),
(32, 21, 'Message', 'alice.sql', '/uploads/messages/files/A2967991-AE60-57AD-A79F-A676704BB712.sql', 'text/plain', 24100, 'draft', '2015-04-27 00:00:48', '2015-04-27 00:00:48', NULL),
(33, 21, 'Message', 'arsenal.sql', '/uploads/messages/files/4727C759-0284-253A-E3A1-1159C67302D1.sql', 'text/plain', 1260, 'draft', '2015-04-27 00:00:49', '2015-04-27 00:00:49', NULL),
(34, 22, 'Message', 'adelaida.sql', '/uploads/messages/files/F94D5734-AA06-613D-4FB2-BD0B224E4D4F.sql', 'text/plain', 39990, 'draft', '2015-04-27 00:03:44', '2015-04-27 00:03:44', NULL),
(35, 23, 'Message', 'facebook-php-sdk-v4-4.0-dev.zip', '/uploads/messages/files/B7E6F94A-A822-E22E-AEBA-B0DF0BFC667F.zip', 'application/zip', 93579, 'uploaded', '2015-04-27 00:13:50', '2015-04-27 00:14:04', NULL),
(36, 23, 'Message', 'issuu_download.html', '/uploads/messages/files/241A4245-371A-F9D8-00FC-D7E4F89BA8CF.html', 'text/html', 3051, 'uploaded', '2015-04-27 00:13:51', '2015-04-27 00:14:04', NULL),
(37, 23, 'Message', 'Censor Beep Sound Effect.mp3', '/uploads/messages/files/65998CFE-EEF0-D751-F362-5E4D5E40E5AA.mp3', 'audio/mpeg', 7681, 'uploaded', '2015-04-27 00:13:51', '2015-04-27 00:14:04', NULL),
(38, 23, 'Message', 'jquery-1.11.2.min.js', '/uploads/messages/files/FC50C7C1-0125-9140-0D4C-8E575A74F6C9.js', 'text/plain', 95931, 'uploaded', '2015-04-27 00:13:54', '2015-04-27 00:14:04', NULL),
(39, 23, 'Message', 'Módulos de la Plataforma.docx', '/uploads/messages/files/6AE2029D-F643-BCDA-23E7-50573F787F62.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 16988, 'uploaded', '2015-04-27 00:13:54', '2015-04-27 00:14:04', NULL),
(40, 23, 'Message', 'planilla-rusnies-alexis-montenegro-2008-2014.pdf', '/uploads/messages/files/246AEA9A-026C-AF0E-8329-E702CF305E41.pdf', 'application/pdf', 19179, 'uploaded', '2015-04-27 00:13:54', '2015-04-27 00:14:04', NULL),
(41, 24, 'Message', 'Camera Shutter Sound Effect.mp3', '/uploads/messages/files/B89F4BD9-99CE-442A-9826-9DDB2A384404.mp3', 'audio/mpeg', 14368, 'draft', '2015-04-27 03:31:07', '2015-04-27 03:31:07', NULL),
(42, 25, 'Message', 'Camera Shutter Sound Effect.mp3', '/uploads/messages/files/913FCB3E-2C49-868B-6E0B-0B6205E6C4AC.mp3', 'audio/mpeg', 14368, 'uploaded', '2015-04-27 19:54:08', '2015-04-27 19:54:31', NULL),
(43, 25, 'Message', '59ZRklaO5bWGqF5A9baEEVtXRa8TVwTICgirnJhmVJw.woff2', '/uploads/messages/files/F3750B11-E954-EAEE-6F2A-37A184E4A160.woff2', 'application/octet-stream', 18652, 'uploaded', '2015-04-27 19:54:09', '2015-04-27 19:54:32', NULL),
(44, 25, 'Message', 'issuu_download.html', '/uploads/messages/files/ABA440EF-5F1B-99EA-31D1-9A04001F8BF1.html', 'text/html', 3051, 'uploaded', '2015-04-27 19:54:09', '2015-04-27 19:54:32', NULL),
(45, 25, 'Message', 'adelaida.sql', '/uploads/messages/files/19C022CF-33FB-1959-4C1A-E77CE2C625B8.sql', 'text/plain', 39990, 'uploaded', '2015-04-27 19:54:09', '2015-04-27 19:54:32', NULL),
(46, 25, 'Message', 'jquery-1.11.2.min.js', '/uploads/messages/files/76877057-9404-5ACD-E1C0-7B20A6399AF1.js', 'text/plain', 95931, 'uploaded', '2015-04-27 19:54:09', '2015-04-27 19:54:32', NULL),
(47, 25, 'Message', 'Módulos de la Plataforma.docx', '/uploads/messages/files/CCD61C69-3509-CA2B-7CD8-0E6E43222747.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 16988, 'uploaded', '2015-04-27 19:54:10', '2015-04-27 19:54:32', NULL),
(48, 25, 'Message', 'planilla-rusnies-alexis-montenegro-2008-2014.pdf', '/uploads/messages/files/EC9C80E8-A46A-3C56-FD04-FF051BB8EC26.pdf', 'application/pdf', 19179, 'uploaded', '2015-04-27 19:54:13', '2015-04-27 19:54:32', NULL),
(49, 55, 'Message', 'amCharts.pdf', '/uploads/messages/files/DD39256A-0552-9F8B-3ABB-D5C6134E3865.pdf', 'application/pdf', 76512, 'draft', '2015-05-02 21:44:29', '2015-05-02 22:01:59', '2015-05-02 22:01:59'),
(50, 55, 'Message', 'amCharts.pdf', '/uploads/messages/files/B579DFFA-C642-7365-6732-7136F1485AD9.pdf', 'application/pdf', 76512, 'draft', '2015-05-02 21:49:08', '2015-05-02 22:02:24', '2015-05-02 22:02:24'),
(51, 55, 'Message', 'arsenal.sql', '/uploads/messages/files/7243B4E6-8278-69DE-3A4E-D341AB76CA02.sql', 'text/plain', 1260, 'uploaded', '2015-05-02 21:49:25', '2015-05-02 22:09:13', NULL),
(52, 58, 'Message', 'amCharts.pdf', '/uploads/messages/files/90BF1BBB-6CED-7AD0-35DF-61D413F9CD0D.pdf', 'application/pdf', 76512, 'draft', '2015-05-02 22:27:21', '2015-05-02 22:27:21', NULL),
(53, 59, 'Message', 'amCharts.pdf', '/uploads/messages/files/8C9E264A-D741-E5F4-61FA-37946E32264A.pdf', 'application/pdf', 76512, 'draft', '2015-05-02 22:31:25', '2015-05-02 22:31:25', NULL),
(54, 60, 'Message', 'amCharts.pdf', '/uploads/messages/files/7122B222-A803-3247-7189-FF91AD40C071.pdf', 'application/pdf', 76512, 'draft', '2015-05-02 22:36:34', '2015-05-02 22:36:34', NULL),
(55, 60, 'Message', 'alice.sql', '/uploads/messages/files/B2A5626B-C7C3-84D2-D042-F85E08969CEB.sql', 'text/plain', 24100, 'draft', '2015-05-02 22:36:38', '2015-05-02 22:36:38', NULL),
(56, 61, 'Message', '59ZRklaO5bWGqF5A9baEEVtXRa8TVwTICgirnJhmVJw.woff2', '/uploads/messages/files/F4DC218D-14FD-A512-4B4E-F5C66F4810DE.woff2', 'application/octet-stream', 18652, 'draft', '2015-05-02 22:41:38', '2015-05-02 22:41:38', NULL),
(57, 62, 'Message', 'adelaida (1).sql', '/uploads/messages/files/E438B1BB-2310-15A2-C608-B858BAE45ECF.sql', 'text/plain', 172256, 'draft', '2015-05-02 22:42:52', '2015-05-02 22:42:52', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `auditories`
--
CREATE TABLE IF NOT EXISTS `auditories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`capability_id` int(11) NOT NULL,
`course_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `capabilities`
--
CREATE TABLE IF NOT EXISTS `capabilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`controller` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`crud` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=46 ;
--
-- Volcado de datos para la tabla `capabilities`
--
INSERT INTO `capabilities` (`id`, `name`, `title`, `description`, `controller`, `crud`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'administrators_dashboard_get_index', 'Visualizar Escritorio de Administrador', '', '\\Administrators\\DashboardController@getIndex', 'READ', '', '2015-03-25 07:53:01', '2015-04-02 07:21:29', NULL),
(2, 'security_user_get_index', 'Visualizar Usuarios', '', '\\Security\\UserController@getIndex', 'READ', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(3, 'security_user_get_create', 'Crear Usuarios', '', '\\Security\\UserController@getCreate', 'CREATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(4, 'security_user_get_update', 'Editar Usuarios', '', '\\Security\\UserController@getUpdate', 'UPDATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(5, 'security_user_get_delete', 'Eliminar Usuarios', '', '\\Security\\UserController@getDelete', 'DELETE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(6, 'security_capability_get_index', 'Visualizar Capacidades', '', '\\Security\\CapabilityController@getIndex', 'READ', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(7, 'security_capability_get_create', 'Crear Capacidades', '', '\\Security\\CapabilityController@getCreate', 'CREATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(8, 'security_capability_get_update', 'Editar Capacidades', '', '\\Security\\CapabilityController@getUpdate', 'UPDATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(9, 'security_capability_get_delete', 'Eliminar Capacidades', '', '\\Security\\CapabilityController@getDelete', 'DELETE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(10, 'security_role_get_index', 'Visualizar Roles', '', '\\Security\\RoleController@getIndex', 'READ', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(11, 'security_role_get_create', 'Crear Roles', '', '\\Security\\RoleController@getCreate', 'CREATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(12, 'security_role_get_update', 'Editar Roles', '', '\\Security\\RoleController@getUpdate', 'UPDATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(13, 'security_role_get_delete', 'Eliminar Roles', '', '\\Security\\RoleController@getDelete', 'DELETE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(14, 'security_role_get_assign', 'Asignar Capacidades ', '', '\\Security\\RoleController@getAssign', 'UPDATE', '', '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(15, 'security_user_get_activate', 'Activación de Usuarios', '', '\\Security\\UserController@getActivate', 'UPDATE', '', '2015-04-01 07:17:33', '2015-04-01 07:36:09', NULL),
(16, 'security_user_get_deactivate', 'Desactivar Usuarios', '', '\\Security\\UserController@getDeactivate', 'UPDATE', '', '2015-04-01 07:18:13', '2015-04-01 07:18:13', NULL),
(17, 'nqwioxnqion', 'Capacidad para eliminar', '', 'niwoniwond', 'READ', '', '2015-04-01 07:36:31', '2015-04-01 07:40:29', '2015-04-01 07:40:29'),
(18, 'security_role_get_activate', 'Activación de Roles', '', '\\Security\\RoleController@getActivate', 'UPDATE', '', '2015-04-02 05:16:16', '2015-04-02 05:16:16', NULL),
(19, 'security_role_get_deactivate', 'Desactivar Roles', '', '\\Security\\RoleController@getDeactivate', 'UPDATE', '', '2015-04-02 05:17:24', '2015-04-02 05:17:24', NULL),
(20, 'security_user_get_show', 'Visualización detallada de Usuarios', '', '\\Security\\UserController@getShow', 'READ', '', '2015-04-02 06:14:09', '2015-04-02 06:14:09', NULL),
(21, 'coordinators_read_get_index', 'Visualizar Escritorio de Coordinador', '', '\\Coordinators\\ReadController@getIndex', 'READ', '', '2015-04-02 07:22:39', '2015-04-03 08:19:23', NULL),
(22, 'coordinators_teachers_get_index', 'Visualizar Profesores', '', '\\Coordinators\\Teachers\\ReadController@getIndex', 'READ', '', '2015-04-02 07:25:08', '2015-04-02 07:25:08', NULL),
(23, 'coordinators_teachers_get_create', 'Crear Profesores', '', '\\Coordinators\\Teachers\\ReadController@getCreate', 'CREATE', '', '2015-04-02 07:27:13', '2015-04-02 07:27:13', NULL),
(24, 'coordinators_teachers_get_update', 'Editar Profesores', '', '\\Coordinators\\Teachers\\ReadController@getUpdate', 'UPDATE', '', '2015-04-02 07:27:49', '2015-04-02 07:27:49', NULL),
(25, 'coordinators_teachers_get_delete', 'Eliminar Profesores', '', '\\Coordinators\\Teachers\\ReadController@getDelete', 'DELETE', '', '2015-04-02 07:29:23', '2015-04-02 07:29:23', NULL),
(26, 'coordinators_teachers_get_show', 'Visualización detallada de Profesores', '', '\\Coordinators\\Teachers\\ReadController@getShow', 'READ', '', '2015-04-02 07:31:13', '2015-04-02 07:31:13', NULL),
(27, 'coordinators_students_get_index', 'Visualizar Estudiantes', '', '\\Coordinators\\Students\\ReadController@getIndex', 'READ', '', '2015-04-02 07:31:59', '2015-04-02 07:31:59', NULL),
(28, 'coordinators_students_get_create', 'Crear Estudiantes', '', '\\Coordinators\\Students\\ReadController@getCreate', 'CREATE', '', '2015-04-02 07:32:27', '2015-04-02 07:32:27', NULL),
(29, 'coordinators_students_get_update', 'Editar Estudiates', '', '\\Coordinators\\Students\\ReadController@getUpdate', 'UPDATE', '', '2015-04-02 07:34:02', '2015-04-02 07:34:02', NULL),
(30, 'coordinators_students_get_delete', 'Eliminar Estudiantes', '', '\\Coordinators\\Students\\ReadController@getDelete', 'DELETE', '', '2015-04-02 07:34:37', '2015-04-02 07:34:37', NULL),
(31, 'coordinators_students_get_show', 'Visualización detallada de Estudiantes', '', '\\Coordinators\\Students\\ReadController@getShow', 'READ', '', '2015-04-02 07:35:37', '2015-04-02 07:35:37', NULL),
(32, 'coordinators_teachers_get_activate', 'Activación de Profesores', '', '\\Coordinators\\Teachers\\ReadController@getActivate', 'UPDATE', '', '2015-04-02 07:36:57', '2015-04-02 07:36:57', NULL),
(33, 'coordinators_teachers_get_deactivate', 'Desactivar Profesores', '', '\\Coordinators\\Teachers\\ReadController@getDeactivate', 'UPDATE', '', '2015-04-02 08:00:30', '2015-04-02 08:00:30', NULL),
(34, 'coordinators_students_get_activate', 'Activación de Estudiantes', '', '\\Coordinators\\Students\\ReadController@getActivate', 'UPDATE', '', '2015-04-02 08:01:07', '2015-04-02 08:01:07', NULL),
(35, 'coordinators_students_get_deactivate', 'Desactivar Estudiantes', '', '\\Coordinators\\Students\\ReadController@getDectivate', 'UPDATE', '', '2015-04-02 08:01:40', '2015-04-02 08:01:40', NULL),
(36, 'coordinators_courses_get_index', 'Visualizar Cursos', '', '\\Coordinators\\Courses\\ReadController@getIndex', 'READ', '', '2015-04-12 01:28:44', '2015-04-12 01:28:44', NULL),
(37, 'coordinators_courses_get_create', 'Crear Cursos', '', '\\Coordinators\\Courses\\ReadController@getCreate', 'CREATE', '', '2015-04-12 01:29:18', '2015-04-12 01:29:18', NULL),
(38, 'coordinators_courses_get_update', 'Editar Cursos', '', '\\Coordinators\\Courses\\ReadController@getUpdate', 'UPDATE', '', '2015-04-12 01:30:45', '2015-04-12 01:30:45', NULL),
(39, 'coordinators_courses_get_delete', 'Eliminar Cursos', '', '\\Coordinators\\Courses\\ReadController@getDelete', 'DELETE', '', '2015-04-12 01:31:16', '2015-04-12 01:31:16', NULL),
(40, 'coordinators_courses_get_activate', 'Activación de Cursos', '', '\\Coordinators\\Courses\\ReadController@getActivate', 'UPDATE', '', '2015-04-12 01:32:02', '2015-04-12 01:32:02', NULL),
(41, 'coordinators_courses_get_deactivate', 'Desactivar Cursos', '', '\\Coordinators\\Courses\\ReadController@getDeactivate', 'UPDATE', '', '2015-04-12 01:32:40', '2015-04-12 01:32:40', NULL),
(42, 'coordinators_courses_get_inactive', 'Visualizar Cursos Inactivos', '', '\\Coordinators\\Courses\\ReadController@getInactive', 'READ', '', '2015-04-12 02:24:59', '2015-04-12 02:26:42', NULL),
(43, 'coordinators_teachers_get_inactive', 'Visualizar Profesores Inactivos', '', '\\Coordinators\\Teachers\\ReadController@getInactive', 'READ', '', '2015-04-12 02:26:13', '2015-04-12 02:26:13', NULL),
(44, 'coordinators_students_get_inactive', 'Visualizar Estudiantes Inactivos', '', '\\Coordinators\\Students\\ReadController@getInactive', 'READ', '', '2015-04-12 02:27:33', '2015-04-12 02:27:33', NULL),
(45, 'coordinators_courses_get_show', 'Visualización detallada de Cursos', '', '\\Coordinators\\Courses\\ReadController@getShow', 'READ', '', '2015-04-15 07:03:48', '2015-04-15 07:03:48', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `capability_role`
--
CREATE TABLE IF NOT EXISTS `capability_role` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`capability_id` int(10) unsigned NOT NULL,
`role_id` int(10) unsigned NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `capability_role_capability_id_index` (`capability_id`),
KEY `capability_role_role_id_index` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=53 ;
--
-- Volcado de datos para la tabla `capability_role`
--
INSERT INTO `capability_role` (`id`, `capability_id`, `role_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(2, 2, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(6, 6, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(7, 7, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(8, 8, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(9, 9, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(10, 10, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(11, 11, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(12, 12, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(13, 13, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(14, 14, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(16, 4, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(17, 5, 1, '2015-03-25 07:53:02', '2015-03-25 07:53:02'),
(18, 3, 1, '2015-03-25 07:53:03', '2015-03-25 07:53:03'),
(23, 15, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, 16, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(25, 18, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(26, 19, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(27, 20, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, 34, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(29, 32, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 28, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(31, 23, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(32, 35, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(33, 33, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(34, 29, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(35, 24, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, 30, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(37, 25, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(38, 31, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(39, 26, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(40, 21, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(41, 27, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(42, 22, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(43, 40, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(44, 37, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(45, 41, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(46, 38, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(47, 39, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(48, 36, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(49, 42, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(50, 44, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(51, 43, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(52, 45, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `contributors`
--
CREATE TABLE IF NOT EXISTS `contributors` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`course_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `courses`
--
CREATE TABLE IF NOT EXISTS `courses` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`author_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`main_picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`cover_picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`thumbnail_picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
--
-- Volcado de datos para la tabla `courses`
--
INSERT INTO `courses` (`id`, `author_id`, `name`, `title`, `description`, `main_picture`, `cover_picture`, `thumbnail_picture`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 4, 'matematica-i', 'Matemática II', ' <p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las <b>matemáticas</b> o la <b>matemática</b><sup id="cite_ref-DRAE_1-0" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-DRAE-1" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">1</a></sup> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">latín</a> <i>mathematĭca</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">griego</a> μαθηματικά, derivado de μάθημα, ‘<a href="http://es.wikipedia.org/wiki/Conocimiento" title="Conocimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">conocimiento</a>’) es una<a href="http://es.wikipedia.org/wiki/Ciencias_formales" title="Ciencias formales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia formal</a> que, partiendo de <a href="http://es.wikipedia.org/wiki/Axioma" title="Axioma" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">axiomas</a> y siguiendo el razonamiento lógico, estudia las propiedades y relaciones entre entidades abstractas como <a href="http://es.wikipedia.org/wiki/N%C3%BAmero" title="Número" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">números</a>, <a href="http://es.wikipedia.org/wiki/Figura_geom%C3%A9trica" title="Figura geométrica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">figuras geométricas</a> o <a href="http://es.wikipedia.org/wiki/S%C3%ADmbolo" title="Símbolo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">símbolos</a>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Para explicar el mundo natural se usan las matemáticas, tal como lo expresó <a href="http://es.wikipedia.org/wiki/Eugene_Paul_Wigner" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> (<a href="http://es.wikipedia.org/wiki/Anexo:Ganadores_del_Premio_Nobel_de_F%C3%ADsica" title="Anexo:Ganadores del Premio Nobel de Física" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Premio Nobel de física</a> en 1963):<sup id="cite_ref-2" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-2" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">2</a></sup></p><blockquote class="citado" style="font-size: 12.6000003814697px; padding: 5px 10px; color: rgb(37, 37, 37); font-family: sans-serif; margin: 1em 4em; background-color: rgb(249, 249, 249);"><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">La enorme utilidad de las matemáticas en las ciencias naturales es algo que roza lo misterioso, y no hay explicación para ello. No es en absoluto natural que existan “leyes de la naturaleza”, y mucho menos que el hombre sea capaz de descubrirlas. El milagro de lo apropiado que resulta el lenguaje de las matemáticas para la formulación de las leyes de la física es un regalo maravilloso que no comprendemos ni nos merecemos.</p></blockquote><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Mediante la abstracción y el uso de la <a href="http://es.wikipedia.org/wiki/L%C3%B3gica" title="Lógica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lógica</a> en el <a href="http://es.wikipedia.org/wiki/Razonamiento" title="Razonamiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">razonamiento</a>, las matemáticas han evolucionado basándose en las <a href="http://es.wikipedia.org/wiki/Cuenta_(matem%C3%A1ticas)" title="Cuenta (matemáticas)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cuentas</a>, el <a href="http://es.wikipedia.org/wiki/C%C3%A1lculo" title="Cálculo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cálculo</a> y las <a href="http://es.wikipedia.org/wiki/Medici%C3%B3n" title="Medición" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">mediciones</a>, junto con el estudio sistemático de la <a href="http://es.wikipedia.org/wiki/Forma_(figura)" title="Forma (figura)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">forma</a> y el <a href="http://es.wikipedia.org/wiki/Movimiento_(f%C3%ADsica)" title="Movimiento (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">movimiento</a> de los objetos físicos. Las matemáticas, desde sus comienzos, han tenido un fin práctico.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las explicaciones que se apoyaban en la lógica aparecieron por primera vez con la <a href="http://es.wikipedia.org/wiki/Matem%C3%A1tica_hel%C3%A9nica" title="Matemática helénica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática helénica</a>, especialmente con los <i><a href="http://es.wikipedia.org/wiki/Elementos_de_Euclides" title="Elementos de Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Elementos</a></i> de <a href="http://es.wikipedia.org/wiki/Euclides" title="Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Euclides</a>. Las matemáticas siguieron desarrollándose, con continuas interrupciones, hasta que en el <a href="http://es.wikipedia.org/wiki/Renacimiento" title="Renacimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Renacimiento</a> las innovaciones matemáticas interactuaron con los nuevos descubrimientos científicos. Como consecuencia, hubo una aceleración en la investigación que continúa hasta la actualidad.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Hoy en día, las matemáticas se usan en todo el mundo como una herramienta esencial en muchos campos, entre los que se encuentran las <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias naturales</a>, la <a href="http://es.wikipedia.org/wiki/Ingenier%C3%ADa" title="Ingeniería" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ingeniería</a>, la<a href="http://es.wikipedia.org/wiki/Medicina" title="Medicina" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">medicina</a> y las <a href="http://es.wikipedia.org/wiki/Ciencias_sociales" title="Ciencias sociales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias sociales</a>, e incluso disciplinas que, aparentemente, no están vinculadas con ella, como la <a href="http://es.wikipedia.org/wiki/M%C3%BAsica" title="Música" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">música</a> (por ejemplo, en cuestiones de resonancia armónica). Las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_aplicadas" title="Matemáticas aplicadas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas aplicadas</a>, rama de las matemáticas destinada a la aplicación de los conocimientos matemáticos a otros ámbitos, inspiran y hacen uso de los nuevos descubrimientos matemáticos y, en ocasiones, conducen al desarrollo de nuevas disciplinas. Los matemáticos también participan en las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_puras" title="Matemáticas puras" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas puras</a>, sin tener en cuenta la aplicación de esta ciencia, aunque las aplicaciones prácticas de las matemáticas puras suelen ser descubiertas con el paso del tiempo.</p> \r\n ', '', '', '', 'inactive', '2015-04-15 06:10:28', '2015-04-16 04:19:35', '2015-04-16 04:19:35'),
(2, 4, 'matematica-i-1', 'Matemática I', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las <b>matemáticas</b> o la <b>matemática</b><sup id="cite_ref-DRAE_1-0" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-DRAE-1" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">1</a></sup> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">latín</a> <i>mathematĭca</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">griego</a> μαθηματικά, derivado de μάθημα, ‘<a href="http://es.wikipedia.org/wiki/Conocimiento" title="Conocimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">conocimiento</a>’) es una<a href="http://es.wikipedia.org/wiki/Ciencias_formales" title="Ciencias formales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia formal</a> que, partiendo de <a href="http://es.wikipedia.org/wiki/Axioma" title="Axioma" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">axiomas</a> y siguiendo el razonamiento lógico, estudia las propiedades y relaciones entre entidades abstractas como <a href="http://es.wikipedia.org/wiki/N%C3%BAmero" title="Número" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">números</a>, <a href="http://es.wikipedia.org/wiki/Figura_geom%C3%A9trica" title="Figura geométrica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">figuras geométricas</a> o <a href="http://es.wikipedia.org/wiki/S%C3%ADmbolo" title="Símbolo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">símbolos</a>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Para explicar el mundo natural se usan las matemáticas, tal como lo expresó <a href="http://es.wikipedia.org/wiki/Eugene_Paul_Wigner" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> (<a href="http://es.wikipedia.org/wiki/Anexo:Ganadores_del_Premio_Nobel_de_F%C3%ADsica" title="Anexo:Ganadores del Premio Nobel de Física" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Premio Nobel de física</a> en 1963):<sup id="cite_ref-2" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-2" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">2</a></sup></p><blockquote class="citado" style="font-size: 12.6000003814697px; padding: 5px 10px; color: rgb(37, 37, 37); font-family: sans-serif; margin: 1em 4em; background-color: rgb(249, 249, 249);"><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">La enorme utilidad de las matemáticas en las ciencias naturales es algo que roza lo misterioso, y no hay explicación para ello. No es en absoluto natural que existan “leyes de la naturaleza”, y mucho menos que el hombre sea capaz de descubrirlas. El milagro de lo apropiado que resulta el lenguaje de las matemáticas para la formulación de las leyes de la física es un regalo maravilloso que no comprendemos ni nos merecemos.</p></blockquote><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Mediante la abstracción y el uso de la <a href="http://es.wikipedia.org/wiki/L%C3%B3gica" title="Lógica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lógica</a> en el <a href="http://es.wikipedia.org/wiki/Razonamiento" title="Razonamiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">razonamiento</a>, las matemáticas han evolucionado basándose en las <a href="http://es.wikipedia.org/wiki/Cuenta_(matem%C3%A1ticas)" title="Cuenta (matemáticas)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cuentas</a>, el <a href="http://es.wikipedia.org/wiki/C%C3%A1lculo" title="Cálculo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cálculo</a> y las <a href="http://es.wikipedia.org/wiki/Medici%C3%B3n" title="Medición" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">mediciones</a>, junto con el estudio sistemático de la <a href="http://es.wikipedia.org/wiki/Forma_(figura)" title="Forma (figura)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">forma</a> y el <a href="http://es.wikipedia.org/wiki/Movimiento_(f%C3%ADsica)" title="Movimiento (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">movimiento</a> de los objetos físicos. Las matemáticas, desde sus comienzos, han tenido un fin práctico.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las explicaciones que se apoyaban en la lógica aparecieron por primera vez con la <a href="http://es.wikipedia.org/wiki/Matem%C3%A1tica_hel%C3%A9nica" title="Matemática helénica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática helénica</a>, especialmente con los <i><a href="http://es.wikipedia.org/wiki/Elementos_de_Euclides" title="Elementos de Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Elementos</a></i> de <a href="http://es.wikipedia.org/wiki/Euclides" title="Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Euclides</a>. Las matemáticas siguieron desarrollándose, con continuas interrupciones, hasta que en el <a href="http://es.wikipedia.org/wiki/Renacimiento" title="Renacimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Renacimiento</a> las innovaciones matemáticas interactuaron con los nuevos descubrimientos científicos. Como consecuencia, hubo una aceleración en la investigación que continúa hasta la actualidad.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Hoy en día, las matemáticas se usan en todo el mundo como una herramienta esencial en muchos campos, entre los que se encuentran las <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias naturales</a>, la <a href="http://es.wikipedia.org/wiki/Ingenier%C3%ADa" title="Ingeniería" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ingeniería</a>, la<a href="http://es.wikipedia.org/wiki/Medicina" title="Medicina" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">medicina</a> y las <a href="http://es.wikipedia.org/wiki/Ciencias_sociales" title="Ciencias sociales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias sociales</a>, e incluso disciplinas que, aparentemente, no están vinculadas con ella, como la <a href="http://es.wikipedia.org/wiki/M%C3%BAsica" title="Música" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">música</a> (por ejemplo, en cuestiones de resonancia armónica). Las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_aplicadas" title="Matemáticas aplicadas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas aplicadas</a>, rama de las matemáticas destinada a la aplicación de los conocimientos matemáticos a otros ámbitos, inspiran y hacen uso de los nuevos descubrimientos matemáticos y, en ocasiones, conducen al desarrollo de nuevas disciplinas. Los matemáticos también participan en las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_puras" title="Matemáticas puras" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas puras</a>, sin tener en cuenta la aplicación de esta ciencia, aunque las aplicaciones prácticas de las matemáticas puras suelen ser descubiertas con el paso del tiempo.</p> ', '', '', '', 'inactive', '2015-04-15 06:43:29', '2015-04-15 07:27:19', '2015-04-15 07:27:19'),
(3, 4, 'matematica-i-2', 'Matemática I', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las <b>matemáticas</b> o la <b>matemática</b><sup id="cite_ref-DRAE_1-0" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-DRAE-1" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">1</a></sup> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">latín</a> <i>mathematĭca</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">griego</a> μαθηματικά, derivado de μάθημα, ‘<a href="http://es.wikipedia.org/wiki/Conocimiento" title="Conocimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">conocimiento</a>’) es una<a href="http://es.wikipedia.org/wiki/Ciencias_formales" title="Ciencias formales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia formal</a> que, partiendo de <a href="http://es.wikipedia.org/wiki/Axioma" title="Axioma" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">axiomas</a> y siguiendo el razonamiento lógico, estudia las propiedades y relaciones entre entidades abstractas como <a href="http://es.wikipedia.org/wiki/N%C3%BAmero" title="Número" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">números</a>, <a href="http://es.wikipedia.org/wiki/Figura_geom%C3%A9trica" title="Figura geométrica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">figuras geométricas</a> o <a href="http://es.wikipedia.org/wiki/S%C3%ADmbolo" title="Símbolo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">símbolos</a>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Para explicar el mundo natural se usan las matemáticas, tal como lo expresó <a href="http://es.wikipedia.org/wiki/Eugene_Paul_Wigner" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> (<a href="http://es.wikipedia.org/wiki/Anexo:Ganadores_del_Premio_Nobel_de_F%C3%ADsica" title="Anexo:Ganadores del Premio Nobel de Física" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Premio Nobel de física</a> en 1963):<sup id="cite_ref-2" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-2" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">2</a></sup></p><blockquote class="citado" style="font-size: 12.6000003814697px; padding: 5px 10px; color: rgb(37, 37, 37); font-family: sans-serif; margin: 1em 4em; background-color: rgb(249, 249, 249);"><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">La enorme utilidad de las matemáticas en las ciencias naturales es algo que roza lo misterioso, y no hay explicación para ello. No es en absoluto natural que existan “leyes de la naturaleza”, y mucho menos que el hombre sea capaz de descubrirlas. El milagro de lo apropiado que resulta el lenguaje de las matemáticas para la formulación de las leyes de la física es un regalo maravilloso que no comprendemos ni nos merecemos.</p></blockquote><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Mediante la abstracción y el uso de la <a href="http://es.wikipedia.org/wiki/L%C3%B3gica" title="Lógica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lógica</a> en el <a href="http://es.wikipedia.org/wiki/Razonamiento" title="Razonamiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">razonamiento</a>, las matemáticas han evolucionado basándose en las <a href="http://es.wikipedia.org/wiki/Cuenta_(matem%C3%A1ticas)" title="Cuenta (matemáticas)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cuentas</a>, el <a href="http://es.wikipedia.org/wiki/C%C3%A1lculo" title="Cálculo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cálculo</a> y las <a href="http://es.wikipedia.org/wiki/Medici%C3%B3n" title="Medición" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">mediciones</a>, junto con el estudio sistemático de la <a href="http://es.wikipedia.org/wiki/Forma_(figura)" title="Forma (figura)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">forma</a> y el <a href="http://es.wikipedia.org/wiki/Movimiento_(f%C3%ADsica)" title="Movimiento (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">movimiento</a> de los objetos físicos. Las matemáticas, desde sus comienzos, han tenido un fin práctico.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las explicaciones que se apoyaban en la lógica aparecieron por primera vez con la <a href="http://es.wikipedia.org/wiki/Matem%C3%A1tica_hel%C3%A9nica" title="Matemática helénica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática helénica</a>, especialmente con los <i><a href="http://es.wikipedia.org/wiki/Elementos_de_Euclides" title="Elementos de Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Elementos</a></i> de <a href="http://es.wikipedia.org/wiki/Euclides" title="Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Euclides</a>. Las matemáticas siguieron desarrollándose, con continuas interrupciones, hasta que en el <a href="http://es.wikipedia.org/wiki/Renacimiento" title="Renacimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Renacimiento</a> las innovaciones matemáticas interactuaron con los nuevos descubrimientos científicos. Como consecuencia, hubo una aceleración en la investigación que continúa hasta la actualidad.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Hoy en día, las matemáticas se usan en todo el mundo como una herramienta esencial en muchos campos, entre los que se encuentran las <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias naturales</a>, la <a href="http://es.wikipedia.org/wiki/Ingenier%C3%ADa" title="Ingeniería" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ingeniería</a>, la<a href="http://es.wikipedia.org/wiki/Medicina" title="Medicina" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">medicina</a> y las <a href="http://es.wikipedia.org/wiki/Ciencias_sociales" title="Ciencias sociales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias sociales</a>, e incluso disciplinas que, aparentemente, no están vinculadas con ella, como la <a href="http://es.wikipedia.org/wiki/M%C3%BAsica" title="Música" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">música</a> (por ejemplo, en cuestiones de resonancia armónica). Las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_aplicadas" title="Matemáticas aplicadas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas aplicadas</a>, rama de las matemáticas destinada a la aplicación de los conocimientos matemáticos a otros ámbitos, inspiran y hacen uso de los nuevos descubrimientos matemáticos y, en ocasiones, conducen al desarrollo de nuevas disciplinas. Los matemáticos también participan en las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_puras" title="Matemáticas puras" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas puras</a>, sin tener en cuenta la aplicación de esta ciencia, aunque las aplicaciones prácticas de las matemáticas puras suelen ser descubiertas con el paso del tiempo.</p> ', '', '', '', 'inactive', '2015-04-15 06:45:13', '2015-04-15 07:27:51', '2015-04-15 07:27:51');
INSERT INTO `courses` (`id`, `author_id`, `name`, `title`, `description`, `main_picture`, `cover_picture`, `thumbnail_picture`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(4, 4, 'fisica-i', 'Física I', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La <b>física</b> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lat.</a> <i>physica</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">gr.</a> <i>τὰ φυσικά</i>, neutro plural de <i>φυσικός</i>, "naturaleza") es la <a href="http://es.wikipedia.org/wiki/Ciencia" title="Ciencia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia</a> <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">natural</a> que estudia las propiedades y el comportamiento de la <a href="http://es.wikipedia.org/wiki/Energ%C3%ADa" title="Energía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">energía</a> y la <a href="http://es.wikipedia.org/wiki/Materia" title="Materia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">materia</a> (como también cualquier cambio en ella que no altere la naturaleza de la misma), así como al <a href="http://es.wikipedia.org/wiki/Tiempo" title="Tiempo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">tiempo</a>, el <a href="http://es.wikipedia.org/wiki/Espacio_(f%C3%ADsica)" title="Espacio (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">espacio</a> y las <a href="http://es.wikipedia.org/wiki/Interacciones_fundamentales" title="Interacciones fundamentales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">interacciones</a> de estos cuatro conceptos entre sí.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física es una de las más antiguas disciplinas académicas, tal vez la más antigua, ya que la <a href="http://es.wikipedia.org/wiki/Astronom%C3%ADa" title="Astronomía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">astronomía</a> es una de sus disciplinas. En los últimos dos milenios, la física fue considerada dentro de lo que ahora llamamos <a href="http://es.wikipedia.org/wiki/Filosof%C3%ADa" title="Filosofía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">filosofía</a>, <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica" title="Química" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química</a>, y ciertas ramas de la <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas" title="Matemáticas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática</a> y la <a href="http://es.wikipedia.org/wiki/Biolog%C3%ADa" title="Biología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">biología</a>, pero durante la <a href="http://es.wikipedia.org/wiki/Revoluci%C3%B3n_cient%C3%ADfica" title="Revolución científica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Revolución Científica</a> en el <a href="http://es.wikipedia.org/wiki/Siglo_XVII" title="Siglo XVII" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">siglo XVII</a> surgió para convertirse en una ciencia moderna, única por derecho propio. Sin embargo, en algunas esferas como la física matemática y la <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica_cu%C3%A1ntica" title="Química cuántica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química cuántica</a>, los límites de la física siguen siendo difíciles de distinguir.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El área se orienta al desarrollo de competencias de una cultura científica, para comprender nuestro mundo físico, viviente y lograr actuar en él tomando en cuenta su proceso cognitivo, su protagonismo en el saber y hacer científico y tecnológico, como el conocer, teorizar, sistematizar y evaluar sus actos dentro de la sociedad. De esta manera, contribuimos a la conservación y preservación de los recursos, mediante la toma de conciencia y una participación efectiva y sostenida.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física es significativa e influyente, no sólo debido a que los avances en la comprensión a menudo se han traducido en nuevas tecnologías, sino también a que las nuevas ideas en la física resuenan con las demás ciencias, las matemáticas y la filosofía.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física no es sólo una <a href="http://es.wikipedia.org/wiki/Ciencia" title="Ciencia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia</a> teórica; es también una ciencia <a href="http://es.wikipedia.org/wiki/Experimento" title="Experimento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">experimental</a>. Como toda ciencia, busca que sus conclusiones puedan ser verificables mediante experimentos y que la teoría pueda realizar predicciones de experimentos futuros. Dada la amplitud del campo de estudio de la física, así como su desarrollo histórico con relación a otras ciencias, se la puede considerar la ciencia fundamental o central, ya que incluye dentro de su campo de estudio a la <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica" title="Química" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química</a>, la<a href="http://es.wikipedia.org/wiki/Biolog%C3%ADa" title="Biología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">biología</a> y la <a href="http://es.wikipedia.org/wiki/Electr%C3%B3nica" title="Electrónica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">electrónica</a>, además de explicar sus fenómenos.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física, en su intento de describir los fenómenos naturales con exactitud y veracidad, ha llegado a límites impensables: el conocimiento actual abarca la descripción de<a href="http://es.wikipedia.org/wiki/Part%C3%ADculas_elementales" title="Partículas elementales" class="mw-redirect" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">partículas fundamentales</a> microscópicas, el <a href="http://es.wikipedia.org/wiki/Cosmolog%C3%ADa" title="Cosmología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">nacimiento de las estrellas</a> en el <a href="http://es.wikipedia.org/wiki/Universo" title="Universo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universo</a> e incluso conocer con una gran probabilidad lo que aconteció en los primeros instantes del<a href="http://es.wikipedia.org/wiki/Origen_del_universo" title="Origen del universo" class="mw-redirect" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">nacimiento de nuestro universo</a>, por citar unos pocos campos.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Esta tarea comenzó hace más de dos mil años con los primeros trabajos de <a href="http://es.wikipedia.org/wiki/Filosof%C3%ADa" title="Filosofía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">filósofos</a> griegos como <a href="http://es.wikipedia.org/wiki/Dem%C3%B3crito" title="Demócrito" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Demócrito</a>, <a href="http://es.wikipedia.org/wiki/Erat%C3%B3stenes" title="Eratóstenes" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Eratóstenes</a>, <a href="http://es.wikipedia.org/wiki/Aristarco_de_Samos" title="Aristarco de Samos" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Aristarco</a>, <a href="http://es.wikipedia.org/wiki/Epicuro" title="Epicuro" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Epicuro</a> o <a href="http://es.wikipedia.org/wiki/Arist%C3%B3teles" title="Aristóteles" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Aristóteles</a>, y fue continuada después por <a href="http://es.wikipedia.org/wiki/Cient%C3%ADfico" title="Científico" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">científicos</a> como <a href="http://es.wikipedia.org/wiki/Galileo_Galilei" title="Galileo Galilei" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Galileo Galilei</a>, <a href="http://es.wikipedia.org/wiki/Isaac_Newton" title="Isaac Newton" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Leonhard_Euler" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Leonhard Euler</a>, <a href="http://es.wikipedia.org/wiki/Joseph-Louis_de_Lagrange" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Joseph-L<NAME> Lagrange</a>, <a href="http://es.wikipedia.org/wiki/Michael_Faraday" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/William_Rowan_Hamilton" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Rudolf_Clausius" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/James_Clerk_Maxwell" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Hendrik_Antoon_Lorentz" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Albert_Einstein" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Niels_Bohr" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Max_Planck" title="Max Planck" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Werner_Heisenberg" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Paul_Dirac" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Richard_Feynman" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> y <a href="http://es.wikipedia.org/wiki/Stephen_Hawking" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, entre muchos otros.</p> ', '', '', '', 'inactive', '2015-04-15 07:56:15', '2015-04-15 07:57:57', '2015-04-15 07:57:57'),
(5, 4, 'fisica-i', 'Física I', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La <b>física</b> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lat.</a> <i>physica</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">gr.</a> <i>τὰ φυσικά</i>, neutro plural de <i>φυσικός</i>, "naturaleza") es la <a href="http://es.wikipedia.org/wiki/Ciencia" title="Ciencia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia</a> <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">natural</a> que estudia las propiedades y el comportamiento de la <a href="http://es.wikipedia.org/wiki/Energ%C3%ADa" title="Energía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">energía</a> y la <a href="http://es.wikipedia.org/wiki/Materia" title="Materia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">materia</a> (como también cualquier cambio en ella que no altere la naturaleza de la misma), así como al <a href="http://es.wikipedia.org/wiki/Tiempo" title="Tiempo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">tiempo</a>, el <a href="http://es.wikipedia.org/wiki/Espacio_(f%C3%ADsica)" title="Espacio (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">espacio</a> y las <a href="http://es.wikipedia.org/wiki/Interacciones_fundamentales" title="Interacciones fundamentales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">interacciones</a> de estos cuatro conceptos entre sí.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física es una de las más antiguas disciplinas académicas, tal vez la más antigua, ya que la <a href="http://es.wikipedia.org/wiki/Astronom%C3%ADa" title="Astronomía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">astronomía</a> es una de sus disciplinas. En los últimos dos milenios, la física fue considerada dentro de lo que ahora llamamos <a href="http://es.wikipedia.org/wiki/Filosof%C3%ADa" title="Filosofía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">filosofía</a>, <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica" title="Química" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química</a>, y ciertas ramas de la<a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas" title="Matemáticas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática</a> y la <a href="http://es.wikipedia.org/wiki/Biolog%C3%ADa" title="Biología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">biología</a>, pero durante la <a href="http://es.wikipedia.org/wiki/Revoluci%C3%B3n_cient%C3%ADfica" title="Revolución científica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Revolución Científica</a> en el <a href="http://es.wikipedia.org/wiki/Siglo_XVII" title="Siglo XVII" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">siglo XVII</a> surgió para convertirse en una ciencia moderna, única por derecho propio. Sin embargo, en algunas esferas como la física matemática y la <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica_cu%C3%A1ntica" title="Química cuántica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química cuántica</a>, los límites de la física siguen siendo difíciles de distinguir.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El área se orienta al desarrollo de competencias de una cultura científica, para comprender nuestro mundo físico, viviente y lograr actuar en él tomando en cuenta su proceso cognitivo, su protagonismo en el saber y hacer científico y tecnológico, como el conocer, teorizar, sistematizar y evaluar sus actos dentro de la sociedad. De esta manera, contribuimos a la conservación y preservación de los recursos, mediante la toma de conciencia y una participación efectiva y sostenida.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física es significativa e influyente, no sólo debido a que los avances en la comprensión a menudo se han traducido en nuevas tecnologías, sino también a que las nuevas ideas en la física resuenan con las demás ciencias, las matemáticas y la filosofía.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física no es sólo una <a href="http://es.wikipedia.org/wiki/Ciencia" title="Ciencia" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia</a> teórica; es también una ciencia <a href="http://es.wikipedia.org/wiki/Experimento" title="Experimento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">experimental</a>. Como toda ciencia, busca que sus conclusiones puedan ser verificables mediante experimentos y que la teoría pueda realizar predicciones de experimentos futuros. Dada la amplitud del campo de estudio de la física, así como su desarrollo histórico con relación a otras ciencias, se la puede considerar la ciencia fundamental o central, ya que incluye dentro de su campo de estudio a la <a href="http://es.wikipedia.org/wiki/Qu%C3%ADmica" title="Química" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">química</a>, la<a href="http://es.wikipedia.org/wiki/Biolog%C3%ADa" title="Biología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">biología</a> y la <a href="http://es.wikipedia.org/wiki/Electr%C3%B3nica" title="Electrónica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">electrónica</a>, además de explicar sus fenómenos.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">La física, en su intento de describir los fenómenos naturales con exactitud y veracidad, ha llegado a límites impensables: el conocimiento actual abarca la descripción de<a href="http://es.wikipedia.org/wiki/Part%C3%ADculas_elementales" title="Partículas elementales" class="mw-redirect" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">partículas fundamentales</a> microscópicas, el <a href="http://es.wikipedia.org/wiki/Cosmolog%C3%ADa" title="Cosmología" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">nacimiento de las estrellas</a> en el <a href="http://es.wikipedia.org/wiki/Universo" title="Universo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universo</a> e incluso conocer con una gran probabilidad lo que aconteció en los primeros instantes del<a href="http://es.wikipedia.org/wiki/Origen_del_universo" title="Origen del universo" class="mw-redirect" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">nacimiento de nuestro universo</a>, por citar unos pocos campos.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Esta tarea comenzó hace más de dos mil años con los primeros trabajos de <a href="http://es.wikipedia.org/wiki/Filosof%C3%ADa" title="Filosofía" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">filósofos</a> griegos como <a href="http://es.wikipedia.org/wiki/Dem%C3%B3crito" title="Demócrito" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Demócrito</a>, <a href="http://es.wikipedia.org/wiki/Erat%C3%B3stenes" title="Eratóstenes" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Eratóstenes</a>, <a href="http://es.wikipedia.org/wiki/Aristarco_de_Samos" title="Aristarco de Samos" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Aristarco</a>, <a href="http://es.wikipedia.org/wiki/Epicuro" title="Epicuro" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Epicuro</a> o <a href="http://es.wikipedia.org/wiki/Arist%C3%B3teles" title="Aristóteles" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Aristóteles</a>, y fue continuada después por <a href="http://es.wikipedia.org/wiki/Cient%C3%ADfico" title="Científico" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">científicos</a> como <a href="http://es.wikipedia.org/wiki/Galileo_Galilei" title="Gal<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Galileo Galilei</a>, <a href="http://es.wikipedia.org/wiki/Isaac_Newton" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Leonhard_Euler" title="Le<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Leonhard Euler</a>, <a href="http://es.wikipedia.org/wiki/Joseph-Louis_de_Lagrange" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Joseph-Louis de Lagrange</a>, <a href="http://es.wikipedia.org/wiki/Michael_Faraday" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/William_Rowan_Hamilton" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Rudolf_Clausius" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/James_Clerk_Maxwell" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Hendrik_Antoon_Lorentz" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Albert_Einstein" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Niels_Bohr" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Max_Planck" title="Max Planck" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Max Planck</a>, <a href="http://es.wikipedia.org/wiki/Werner_Heisenberg" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Paul_Dirac" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, <a href="http://es.wikipedia.org/wiki/Richard_Feynman" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> y <a href="http://es.wikipedia.org/wiki/Stephen_Hawking" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a>, entre muchos otros.</p> ', '', '', '', 'inactive', '2015-04-15 07:58:24', '2015-04-16 04:19:23', '2015-04-16 04:19:23'),
(6, 4, 'calculo-numerico', 'Cálculo Numérico', ' \r\n \r\n \r\n \r\n ', '/uploads/courses/calculo-numerico/images/DAEDE148-8853-3A90-1DE9-8C2FBE9E35E9.Png', '/uploads/courses/calculo-numerico/images/08824F9B-6E93-32B9-7911-AFA1809C4E02.jpg', '/uploads/courses/calculo-numerico/images/F884B4F3-F9FB-4CA8-3627-4E743C1FD6E9.Png', 'inactive', '2015-04-16 02:05:09', '2015-04-16 04:19:08', '2015-04-16 04:19:08');
INSERT INTO `courses` (`id`, `author_id`, `name`, `title`, `description`, `main_picture`, `cover_picture`, `thumbnail_picture`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(7, 4, 'matematica-i', 'Matemática I', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las <span style="font-weight: bold;">matemáticas</span> o la <b>matemática</b><sup id="cite_ref-DRAE_1-0" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-DRAE-1" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">1</a></sup> (del <a href="http://es.wikipedia.org/wiki/Lat%C3%ADn" title="Latín" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">latín</a> <i>mathematĭca</i>, y este del <a href="http://es.wikipedia.org/wiki/Griego_antiguo" title="Griego antiguo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">griego</a> μαθηματικά, derivado de μάθημα, ‘<a href="http://es.wikipedia.org/wiki/Conocimiento" title="Conocimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">conocimiento</a>’) es una <a href="http://es.wikipedia.org/wiki/Ciencias_formales" title="Ciencias formales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencia formal</a> que, partiendo de <a href="http://es.wikipedia.org/wiki/Axioma" title="Axioma" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">axiomas</a> y siguiendo el razonamiento lógico, estudia las propiedades y relaciones entre entidades abstractas como <a href="http://es.wikipedia.org/wiki/N%C3%BAmero" title="Número" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">números</a>, <a href="http://es.wikipedia.org/wiki/Figura_geom%C3%A9trica" title="Figura geométrica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">figuras geométricas</a> o <a href="http://es.wikipedia.org/wiki/S%C3%ADmbolo" title="Símbolo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">símbolos</a>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Para explicar el mundo natural se usan las matemáticas, tal como lo expresó <a href="http://es.wikipedia.org/wiki/Eugene_Paul_Wigner" title="<NAME>" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"><NAME></a> (<a href="http://es.wikipedia.org/wiki/Anexo:Ganadores_del_Premio_Nobel_de_F%C3%ADsica" title="Anexo:Ganadores del Premio Nobel de Física" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Premio Nobel de física</a> en 1963):<sup id="cite_ref-2" class="reference" style="line-height: 1em; unicode-bidi: -webkit-isolate;"><a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas#cite_note-2" style="color: rgb(11, 0, 128); white-space: nowrap; background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">2</a></sup></p><blockquote class="citado" style="font-size: 12.6000003814697px; padding: 5px 10px; color: rgb(37, 37, 37); font-family: sans-serif; margin: 1em 4em; background-color: rgb(249, 249, 249);"><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: inherit;">La enorme utilidad de las matemáticas en las ciencias naturales es algo que roza lo misterioso, y no hay explicación para ello. No es en absoluto natural que existan “leyes de la naturaleza”, y mucho menos que el hombre sea capaz de descubrirlas. El milagro de lo apropiado que resulta el lenguaje de las matemáticas para la formulación de las leyes de la física es un regalo maravilloso que no comprendemos ni nos merecemos.</p></blockquote><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Mediante la abstracción y el uso de la <a href="http://es.wikipedia.org/wiki/L%C3%B3gica" title="Lógica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">lógica</a> en el <a href="http://es.wikipedia.org/wiki/Razonamiento" title="Razonamiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">razonamiento</a>, las matemáticas han evolucionado basándose en las <a href="http://es.wikipedia.org/wiki/Cuenta_(matem%C3%A1ticas)" title="Cuenta (matemáticas)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cuentas</a>, el <a href="http://es.wikipedia.org/wiki/C%C3%A1lculo" title="Cálculo" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">cálculo</a> y las <a href="http://es.wikipedia.org/wiki/Medici%C3%B3n" title="Medición" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">mediciones</a>, junto con el estudio sistemático de la <a href="http://es.wikipedia.org/wiki/Forma_(figura)" title="Forma (figura)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">forma</a> y el <a href="http://es.wikipedia.org/wiki/Movimiento_(f%C3%ADsica)" title="Movimiento (física)" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">movimiento</a> de los objetos físicos. Las matemáticas, desde sus comienzos, han tenido un fin práctico.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Las explicaciones que se apoyaban en la lógica aparecieron por primera vez con la <a href="http://es.wikipedia.org/wiki/Matem%C3%A1tica_hel%C3%A9nica" title="Matemática helénica" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemática helénica</a>, especialmente con los <i><a href="http://es.wikipedia.org/wiki/Elementos_de_Euclides" title="Elementos de Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Elementos</a></i> de <a href="http://es.wikipedia.org/wiki/Euclides" title="Euclides" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Euclides</a>. Las matemáticas siguieron desarrollándose, con continuas interrupciones, hasta que en el <a href="http://es.wikipedia.org/wiki/Renacimiento" title="Renacimiento" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Renacimiento</a> las innovaciones matemáticas interactuaron con los nuevos descubrimientos científicos. Como consecuencia, hubo una aceleración en la investigación que continúa hasta la actualidad.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Hoy en día, las matemáticas se usan en todo el mundo como una herramienta esencial en muchos campos, entre los que se encuentran las <a href="http://es.wikipedia.org/wiki/Ciencias_naturales" title="Ciencias naturales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias naturales</a>, la <a href="http://es.wikipedia.org/wiki/Ingenier%C3%ADa" title="Ingeniería" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ingeniería</a>, la <a href="http://es.wikipedia.org/wiki/Medicina" title="Medicina" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">medicina</a> y las <a href="http://es.wikipedia.org/wiki/Ciencias_sociales" title="Ciencias sociales" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">ciencias sociales</a>, e incluso disciplinas que, aparentemente, no están vinculadas con ella, como la <a href="http://es.wikipedia.org/wiki/M%C3%BAsica" title="Música" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">música</a> (por ejemplo, en cuestiones de resonancia armónica). Las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_aplicadas" title="Matemáticas aplicadas" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas aplicadas</a>, rama de las matemáticas destinada a la aplicación de los conocimientos matemáticos a otros ámbitos, inspiran y hacen uso de los nuevos descubrimientos matemáticos y, en ocasiones, conducen al desarrollo de nuevas disciplinas. Los matemáticos también participan en las <a href="http://es.wikipedia.org/wiki/Matem%C3%A1ticas_puras" title="Matemáticas puras" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">matemáticas puras</a>, sin tener en cuenta la aplicación de esta ciencia, aunque las aplicaciones prácticas de las matemáticas puras suelen ser descubiertas con el paso del tiempo.</p> ', '/uploads/courses/matematica-i/images/8A415DE4-4B51-F01C-EEC5-9C104F01FA85.png', '/uploads/courses/matematica-i/images/8BD020EA-0E9B-308D-5504-2986E95C33FB.jpg', '/uploads/courses/matematica-i/images/16D46B82-89FD-90AE-B238-5D213D4E0D74.png', 'active', '2015-04-16 05:03:15', '2015-04-16 05:03:24', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `course_achievements`
--
CREATE TABLE IF NOT EXISTS `course_achievements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`course_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `discussions`
--
CREATE TABLE IF NOT EXISTS `discussions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`discussionable_id` int(11) NOT NULL,
`discussionable_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`content` longtext COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `discussions_karma`
--
CREATE TABLE IF NOT EXISTS `discussions_karma` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`discussion_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `evaluations`
--
CREATE TABLE IF NOT EXISTS `evaluations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lesson_id` int(11) NOT NULL,
`evaluation_id` int(11) NOT NULL,
`model` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `follows`
--
CREATE TABLE IF NOT EXISTS `follows` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`follower_id` int(11) NOT NULL,
`followed_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `hangman_questions`
--
CREATE TABLE IF NOT EXISTS `hangman_questions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`evaluation_id` int(11) NOT NULL,
`question` text COLLATE utf8_unicode_ci NOT NULL,
`word` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`seconds` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
--
-- Volcado de datos para la tabla `hangman_questions`
--
INSERT INTO `hangman_questions` (`id`, `evaluation_id`, `question`, `word`, `seconds`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 0, 'Se define como el proceso previo de configuración mental, "pre-figuración", en la búsqueda de una solución en cualquier campo', 'Diseño', 120, '2015-03-25 20:33:48', '2015-03-25 20:33:48', NULL),
(2, 0, 'Es la instalación de una aplicación informática, realización o la ejecución de un plan, idea, modelo científico, diseño, especificación, estándar, algoritmo o política', 'Implementación', 120, '2015-03-25 20:35:58', '2015-03-25 20:35:58', NULL),
(3, 0, 'Es la ciencia natural que estudia las propiedades y el comportamiento de la energía y la materia (como también cualquier cambio en ella que no altere la naturaleza de la misma), así como al tiempo, el espacio y las interacciones de estos cuatro conceptos entre sí', 'Física', 120, '2015-03-25 20:37:23', '2015-03-25 20:37:23', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `inscriptions`
--
CREATE TABLE IF NOT EXISTS `inscriptions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`course_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `lessons`
--
CREATE TABLE IF NOT EXISTS `lessons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`module_id` int(11) NOT NULL,
`previous_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`approval_percentage` double(3,2) NOT NULL,
`content` longtext COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `links`
--
CREATE TABLE IF NOT EXISTS `links` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lesson_id` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `memory_questions`
--
CREATE TABLE IF NOT EXISTS `memory_questions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`question` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`answer` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ;
--
-- Volcado de datos para la tabla `memory_questions`
--
INSERT INTO `memory_questions` (`id`, `question`, `answer`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Modelo de datos', 'Es un lenguaje orientado a hablar de una Base de Datos', '2015-03-25 21:00:50', '2015-03-25 21:00:50', NULL),
(2, 'Estructura de datos', 'Es una forma particular de organizar datos en una computadora u ordenador para que pueda ser utilizado de manera eficiente', '2015-03-25 21:01:23', '2015-03-25 21:01:23', NULL),
(3, 'Base de datos', 'Es un conjunto de datos pertenecientes a un mismo contexto y almacenados sistemáticamente para su posterior uso', '2015-03-25 21:02:19', '2015-03-25 21:02:19', NULL),
(4, 'Programa informático', 'Es una secuencia de instrucciones, escritas para realizar una tarea específica en una computadora', '2015-03-25 21:02:43', '2015-03-25 21:02:43', NULL),
(5, 'Algoritmo', 'Es un conjunto prescrito de instrucciones o reglas bien definidas, ordenadas y finitas que permite realizar una actividad mediante pasos sucesivos que no generen dudas a quien deba realizar dicha actividad', '2015-03-25 21:03:14', '2015-03-25 21:03:14', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `messages`
--
CREATE TABLE IF NOT EXISTS `messages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`author_id` int(11) NOT NULL,
`subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`message` longtext COLLATE utf8_unicode_ci NOT NULL,
`status` enum('draft','done','deleted') COLLATE utf8_unicode_ci DEFAULT 'draft',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=78 ;
--
-- Volcado de datos para la tabla `messages`
--
INSERT INTO `messages` (`id`, `author_id`, `subject`, `message`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 3, '', '', 'draft', '2015-04-25 22:05:00', '2015-04-25 22:05:00', NULL),
(2, 3, '', '', 'draft', '2015-04-25 22:11:30', '2015-04-25 22:11:30', NULL),
(3, 3, '', '', 'draft', '2015-04-25 22:18:41', '2015-04-25 22:18:41', NULL),
(4, 3, '', '', 'draft', '2015-04-25 22:19:47', '2015-04-25 22:19:47', NULL),
(5, 3, '', '', 'draft', '2015-04-25 22:20:01', '2015-04-25 22:20:01', NULL),
(6, 3, '', '', 'draft', '2015-04-25 22:22:00', '2015-04-25 22:22:00', NULL),
(7, 3, 'Primer Correo de Prueba', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Un <i><b>globally unique identifier</b></i> (inglés para «identificador único global») o <i><b>GUID</b></i> es un <a href="http://es.wikipedia.org/wiki/N%C3%BAmero_pseudoaleatorio" title="Número pseudoaleatorio" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">número pseudoaleatorio</a> empleado en aplicaciones de <a href="http://es.wikipedia.org/wiki/Software" title="Software" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">software</a>. Aunque no se puede garantizar que cada GUID generado sea único, el número total de claves únicas (<img class="mwe-math-fallback-image-inline tex" alt="2^{128}" src="http://upload.wikimedia.org/math/f/e/d/fed43b81bd5ffb0b62e59871d1c1588b.png" style="border-style: none; margin: 0px; display: inline-block;"> o <img class="mwe-math-fallback-image-inline tex" alt="3.4028 \\times 10^{38}" src="http://upload.wikimedia.org/math/7/7/2/7720fb2b755f2cd6766657ffeb421535.png" style="border-style: none; margin: 0px; display: inline-block;">) es tan grande que la posibilidad de que se genere un mismo número dos veces puede considerarse nula en la práctica.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El <i>GUID</i> es una implementación de <a href="http://es.wikipedia.org/wiki/Microsoft" title="Microsoft" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft</a> de un estándar llamado <i><a href="http://es.wikipedia.org/wiki/Universally_unique_identifier" title="Universally unique identifier" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universally unique identifier</a></i> o <i>UUID</i>, especificado por la <a href="http://es.wikipedia.org/wiki/Open_Software_Foundation" title="Open Software Foundation" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Open Software Foundation</a> (<i>OSF</i>). Es esencialmente un número de 16 <a href="http://es.wikipedia.org/wiki/Byte" title="Byte" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">bytes</a>. Los <i>GUID</i> se escriben empleando una palabra de cuatro bytes, tres palabras de dos bytes y un bloque de seis bytes, aunque los dos primeros aparecen separados. Por ejemplo: <code style="font-family: monospace, Courier; color: black; border-color: rgb(221, 221, 221); border-radius: 2px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(249, 249, 249);">{3F2504E0-4F89-11D3-9A0C-0305E82C3301}</code>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">En el <a href="http://es.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">COM</a> de Microsoft, los <i>GUID</i> tan solo se usan para distinguir interfaces de <a href="http://es.wikipedia.org/w/index.php?title=Componente_software&action=edit&redlink=1" class="new" title="Componente software (aún no redactado)" style="color: rgb(165, 88, 88); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">componentes software</a> diferentes. Esto significa que dos versiones de un componente pueden tener exactamente el mismo nombre, pero ser diferente de cara al usuario en caso de que el <i>GUID</i> haya cambiado.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Los <i>GUID</i> también se insertan en los documentos de los programas de <a href="http://es.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft Office</a>, y éstos son vistos como objetos también. Incluso los flujos de audio o vídeo en el<i><a href="http://es.wikipedia.org/wiki/Advanced_Streaming_Format" title="Advanced Streaming Format" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Advanced Streaming Format</a></i> (<i>ASF</i>) son identificados por sus <i>GUID</i>.</p> \r\n ', 'done', '2015-04-25 22:25:33', '2015-04-25 22:35:07', NULL),
(8, 3, '', '', 'draft', '2015-04-25 22:37:51', '2015-04-25 22:37:51', NULL),
(9, 3, 'Tercer Correo de Prueba', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Un <i><b>globally unique identifier</b></i> (inglés para «identificador único global») o <i><b>GUID</b></i> es un <a href="http://es.wikipedia.org/wiki/N%C3%BAmero_pseudoaleatorio" title="Número pseudoaleatorio" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">número pseudoaleatorio</a> empleado en aplicaciones de <a href="http://es.wikipedia.org/wiki/Software" title="Software" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">software</a>. Aunque no se puede garantizar que cada GUID generado sea único, el número total de claves únicas (<img class="mwe-math-fallback-image-inline tex" alt="2^{128}" src="http://upload.wikimedia.org/math/f/e/d/fed43b81bd5ffb0b62e59871d1c1588b.png" style="border-style: none; margin: 0px; display: inline-block;"> o <img class="mwe-math-fallback-image-inline tex" alt="3.4028 \\times 10^{38}" src="http://upload.wikimedia.org/math/7/7/2/7720fb2b755f2cd6766657ffeb421535.png" style="border-style: none; margin: 0px; display: inline-block;">) es tan grande que la posibilidad de que se genere un mismo número dos veces puede considerarse nula en la práctica.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El <i>GUID</i> es una implementación de <a href="http://es.wikipedia.org/wiki/Microsoft" title="Microsoft" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft</a> de un estándar llamado <i><a href="http://es.wikipedia.org/wiki/Universally_unique_identifier" title="Universally unique identifier" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universally unique identifier</a></i> o <i>UUID</i>, especificado por la <a href="http://es.wikipedia.org/wiki/Open_Software_Foundation" title="Open Software Foundation" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Open Software Foundation</a> (<i>OSF</i>). Es esencialmente un número de 16 <a href="http://es.wikipedia.org/wiki/Byte" title="Byte" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">bytes</a>. Los <i>GUID</i> se escriben empleando una palabra de cuatro bytes, tres palabras de dos bytes y un bloque de seis bytes, aunque los dos primeros aparecen separados. Por ejemplo: <code style="font-family: monospace, Courier; color: black; border-color: rgb(221, 221, 221); border-radius: 2px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(249, 249, 249);">{3F2504E0-4F89-11D3-9A0C-0305E82C3301}</code>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">En el <a href="http://es.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">COM</a> de Microsoft, los <i>GUID</i> tan solo se usan para distinguir interfaces de <a href="http://es.wikipedia.org/w/index.php?title=Componente_software&action=edit&redlink=1" class="new" title="Componente software (aún no redactado)" style="color: rgb(165, 88, 88); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">componentes software</a> diferentes. Esto significa que dos versiones de un componente pueden tener exactamente el mismo nombre, pero ser diferente de cara al usuario en caso de que el <i>GUID</i> haya cambiado.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Los <i>GUID</i> también se insertan en los documentos de los programas de <a href="http://es.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft Office</a>, y éstos son vistos como objetos también. Incluso los flujos de audio o vídeo en el<i><a href="http://es.wikipedia.org/wiki/Advanced_Streaming_Format" title="Advanced Streaming Format" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Advanced Streaming Format</a></i> (<i>ASF</i>) son identificados por sus <i>GUID</i>.</p> \r\n ', 'done', '2015-04-25 22:39:24', '2015-04-25 22:39:58', NULL),
(10, 3, 'Cuarto Correo de Prueba', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Un <i><b>globally unique identifier</b></i> (inglés para «identificador único global») o <i><b>GUID</b></i> es un <a href="http://es.wikipedia.org/wiki/N%C3%BAmero_pseudoaleatorio" title="Número pseudoaleatorio" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">número pseudoaleatorio</a> empleado en aplicaciones de <a href="http://es.wikipedia.org/wiki/Software" title="Software" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">software</a>. Aunque no se puede garantizar que cada GUID generado sea único, el número total de claves únicas (<img class="mwe-math-fallback-image-inline tex" alt="2^{128}" src="http://upload.wikimedia.org/math/f/e/d/fed43b81bd5ffb0b62e59871d1c1588b.png" style="border-style: none; margin: 0px; display: inline-block;"> o <img class="mwe-math-fallback-image-inline tex" alt="3.4028 \\times 10^{38}" src="http://upload.wikimedia.org/math/7/7/2/7720fb2b755f2cd6766657ffeb421535.png" style="border-style: none; margin: 0px; display: inline-block;">) es tan grande que la posibilidad de que se genere un mismo número dos veces puede considerarse nula en la práctica.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El <i>GUID</i> es una implementación de <a href="http://es.wikipedia.org/wiki/Microsoft" title="Microsoft" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft</a> de un estándar llamado <i><a href="http://es.wikipedia.org/wiki/Universally_unique_identifier" title="Universally unique identifier" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universally unique identifier</a></i> o <i>UUID</i>, especificado por la <a href="http://es.wikipedia.org/wiki/Open_Software_Foundation" title="Open Software Foundation" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Open Software Foundation</a> (<i>OSF</i>). Es esencialmente un número de 16 <a href="http://es.wikipedia.org/wiki/Byte" title="Byte" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">bytes</a>. Los <i>GUID</i> se escriben empleando una palabra de cuatro bytes, tres palabras de dos bytes y un bloque de seis bytes, aunque los dos primeros aparecen separados. Por ejemplo: <code style="font-family: monospace, Courier; color: black; border-color: rgb(221, 221, 221); border-radius: 2px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(249, 249, 249);">{3F2504E0-4F89-11D3-9A0C-0305E82C3301}</code>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">En el <a href="http://es.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">COM</a> de Microsoft, los <i>GUID</i> tan solo se usan para distinguir interfaces de <a href="http://es.wikipedia.org/w/index.php?title=Componente_software&action=edit&redlink=1" class="new" title="Componente software (aún no redactado)" style="color: rgb(165, 88, 88); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">componentes software</a> diferentes. Esto significa que dos versiones de un componente pueden tener exactamente el mismo nombre, pero ser diferente de cara al usuario en caso de que el <i>GUID</i> haya cambiado.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Los <i>GUID</i> también se insertan en los documentos de los programas de <a href="http://es.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft Office</a>, y éstos son vistos como objetos también. Incluso los flujos de audio o vídeo en el<i><a href="http://es.wikipedia.org/wiki/Advanced_Streaming_Format" title="Advanced Streaming Format" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Advanced Streaming Format</a></i> (<i>ASF</i>) son identificados por sus <i>GUID</i>.</p> \r\n ', 'done', '2015-04-25 22:46:58', '2015-04-25 22:47:39', NULL),
(11, 3, '<NAME>', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Un <i><b>globally unique identifier</b></i> (inglés para «identificador único global») o <i><b>GUID</b></i> es un <a href="http://es.wikipedia.org/wiki/N%C3%BAmero_pseudoaleatorio" title="Número pseudoaleatorio" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">número pseudoaleatorio</a> empleado en aplicaciones de <a href="http://es.wikipedia.org/wiki/Software" title="Software" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">software</a>. Aunque no se puede garantizar que cada GUID generado sea único, el número total de claves únicas (<img class="mwe-math-fallback-image-inline tex" alt="2^{128}" src="http://upload.wikimedia.org/math/f/e/d/fed43b81bd5ffb0b62e59871d1c1588b.png" style="border-style: none; margin: 0px; display: inline-block;"> o <img class="mwe-math-fallback-image-inline tex" alt="3.4028 \\times 10^{38}" src="http://upload.wikimedia.org/math/7/7/2/7720fb2b755f2cd6766657ffeb421535.png" style="border-style: none; margin: 0px; display: inline-block;">) es tan grande que la posibilidad de que se genere un mismo número dos veces puede considerarse nula en la práctica.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El <i>GUID</i> es una implementación de <a href="http://es.wikipedia.org/wiki/Microsoft" title="Microsoft" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft</a> de un estándar llamado <i><a href="http://es.wikipedia.org/wiki/Universally_unique_identifier" title="Universally unique identifier" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universally unique identifier</a></i> o <i>UUID</i>, especificado por la <a href="http://es.wikipedia.org/wiki/Open_Software_Foundation" title="Open Software Foundation" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Open Software Foundation</a> (<i>OSF</i>). Es esencialmente un número de 16 <a href="http://es.wikipedia.org/wiki/Byte" title="Byte" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">bytes</a>. Los <i>GUID</i> se escriben empleando una palabra de cuatro bytes, tres palabras de dos bytes y un bloque de seis bytes, aunque los dos primeros aparecen separados. Por ejemplo: <code style="font-family: monospace, Courier; color: black; border-color: rgb(221, 221, 221); border-radius: 2px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(249, 249, 249);">{3F2504E0-4F89-11D3-9A0C-0305E82C3301}</code>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">En el <a href="http://es.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">COM</a> de Microsoft, los <i>GUID</i> tan solo se usan para distinguir interfaces de <a href="http://es.wikipedia.org/w/index.php?title=Componente_software&action=edit&redlink=1" class="new" title="Componente software (aún no redactado)" style="color: rgb(165, 88, 88); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">componentes software</a> diferentes. Esto significa que dos versiones de un componente pueden tener exactamente el mismo nombre, pero ser diferente de cara al usuario en caso de que el <i>GUID</i> haya cambiado.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Los <i>GUID</i> también se insertan en los documentos de los programas de <a href="http://es.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft Office</a>, y éstos son vistos como objetos también. Incluso los flujos de audio o vídeo en el<i><a href="http://es.wikipedia.org/wiki/Advanced_Streaming_Format" title="Advanced Streaming Format" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Advanced Streaming Format</a></i> (<i>ASF</i>) son identificados por sus <i>GUID</i>.</p> \r\n ', 'done', '2015-04-25 22:53:57', '2015-04-25 22:55:03', NULL),
(12, 3, '', '', 'draft', '2015-04-25 23:22:18', '2015-04-25 23:22:18', NULL),
(13, 3, 'Sexto Mensaje de Prueba', '<p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Un <i><b>globally unique identifier</b></i> (inglés para «identificador único global») o <i><b>GUID</b></i> es un <a href="http://es.wikipedia.org/wiki/N%C3%BAmero_pseudoaleatorio" title="Número pseudoaleatorio" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">número pseudoaleatorio</a> empleado en aplicaciones de <a href="http://es.wikipedia.org/wiki/Software" title="Software" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">software</a>. Aunque no se puede garantizar que cada GUID generado sea único, el número total de claves únicas (<img class="mwe-math-fallback-image-inline tex" alt="2^{128}" src="http://upload.wikimedia.org/math/f/e/d/fed43b81bd5ffb0b62e59871d1c1588b.png" style="border-style: none; margin: 0px; display: inline-block;"> o <img class="mwe-math-fallback-image-inline tex" alt="3.4028 \\times 10^{38}" src="http://upload.wikimedia.org/math/7/7/2/7720fb2b755f2cd6766657ffeb421535.png" style="border-style: none; margin: 0px; display: inline-block;">) es tan grande que la posibilidad de que se genere un mismo número dos veces puede considerarse nula en la práctica.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">El <i>GUID</i> es una implementación de <a href="http://es.wikipedia.org/wiki/Microsoft" title="Microsoft" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft</a> de un estándar llamado <i><a href="http://es.wikipedia.org/wiki/Universally_unique_identifier" title="Universally unique identifier" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">universally unique identifier</a></i> o <i>UUID</i>, especificado por la <a href="http://es.wikipedia.org/wiki/Open_Software_Foundation" title="Open Software Foundation" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Open Software Foundation</a> (<i>OSF</i>). Es esencialmente un número de 16 <a href="http://es.wikipedia.org/wiki/Byte" title="Byte" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">bytes</a>. Los <i>GUID</i> se escriben empleando una palabra de cuatro bytes, tres palabras de dos bytes y un bloque de seis bytes, aunque los dos primeros aparecen separados. Por ejemplo: <code style="font-family: monospace, Courier; color: black; border-color: rgb(221, 221, 221); border-radius: 2px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(249, 249, 249);">{3F2504E0-4F89-11D3-9A0C-0305E82C3301}</code>.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">En el <a href="http://es.wikipedia.org/wiki/Component_Object_Model" title="Component Object Model" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">COM</a> de Microsoft, los <i>GUID</i> tan solo se usan para distinguir interfaces de <a href="http://es.wikipedia.org/w/index.php?title=Componente_software&action=edit&redlink=1" class="new" title="Componente software (aún no redactado)" style="color: rgb(165, 88, 88); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">componentes software</a> diferentes. Esto significa que dos versiones de un componente pueden tener exactamente el mismo nombre, pero ser diferente de cara al usuario en caso de que el <i>GUID</i> haya cambiado.</p><p style="margin-top: 0.5em; margin-bottom: 0.5em; line-height: 22.3999996185303px; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 14px;">Los <i>GUID</i> también se insertan en los documentos de los programas de <a href="http://es.wikipedia.org/wiki/Microsoft_Office" title="Microsoft Office" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Microsoft Office</a>, y éstos son vistos como objetos también. Incluso los flujos de audio o vídeo en el<i><a href="http://es.wikipedia.org/wiki/Advanced_Streaming_Format" title="Advanced Streaming Format" style="color: rgb(11, 0, 128); background-image: none; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;">Advanced Streaming Format</a></i> (<i>ASF</i>) son identificados por sus <i>GUID</i>.</p> \r\n ', 'done', '2015-04-25 23:23:07', '2015-04-25 23:23:30', NULL),
(14, 3, '', '', 'draft', '2015-04-25 23:40:08', '2015-04-25 23:40:08', NULL),
(15, 3, '', '', 'draft', '2015-04-26 01:32:42', '2015-04-26 01:32:42', NULL),
(16, 1, 'Noveno Mensaje de Prueba', '<p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">The argument passed to the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">paginate</code> method is the number of items you wish to display per page. Once you have retrieved the results, you may display them on your view, and create the pagination links using the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">links</code> method:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token markup"><span class="token tag" style="color: rgb(218, 86, 74);"><span class="token tag"><span class="token punctuation" style="color: rgb(153, 153, 153);"><</span>div</span> <span class="token attr-name" style="color: rgb(85, 85, 85);">class</span><span class="token attr-value" style="color: rgb(0, 119, 170);"><span class="token punctuation" style="color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="color: rgb(153, 153, 153);">"</span>container<span class="token punctuation" style="color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="color: rgb(153, 153, 153);">></span></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">foreach</span> <span class="token punctuation" style="color: rgb(153, 153, 153);">(</span><span class="token variable" style="color: rgb(78, 161, 223);">$users</span> <span class="token keyword" style="color: rgb(0, 119, 170);">as</span> <span class="token variable" style="color: rgb(78, 161, 223);">$user</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">:</span> <span class="token delimiter">?></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$user</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token property" style="color: rgb(218, 86, 74);">name</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">endforeach</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span>\r\n<span class="token markup"><span class="token tag" style="color: rgb(218, 86, 74);"><span class="token tag"><span class="token punctuation" style="color: rgb(153, 153, 153);"></</span>div</span><span class="token punctuation" style="color: rgb(153, 153, 153);">></span></span></span>\r\n\r\n<span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$users</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">links<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span></code></pre><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">This is all it takes to create a pagination system! Note that we did not have to inform the framework of the current page. Laravel will determine this for you automatically.</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">If you would like to specify a custom view to use for pagination, you may pass a view to the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">links</code>method:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$users</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">links<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token string" style="color: rgb(85, 85, 85);">''view.name''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span></code></pre> \r\n ', 'done', '2015-04-26 22:26:52', '2015-04-26 22:40:06', NULL),
(17, 3, 'Decimo Primer Mensaje de Prueba', '<p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">The argument passed to the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">paginate</code> method is the number of items you wish to display per page. Once you have retrieved the results, you may display them on your view, and create the pagination links using the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">links</code> method:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token markup"><span class="token tag" style="color: rgb(218, 86, 74);"><span class="token tag"><span class="token punctuation" style="color: rgb(153, 153, 153);"><</span>div</span> <span class="token attr-name" style="color: rgb(85, 85, 85);">class</span><span class="token attr-value" style="color: rgb(0, 119, 170);"><span class="token punctuation" style="color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="color: rgb(153, 153, 153);">"</span>container<span class="token punctuation" style="color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="color: rgb(153, 153, 153);">></span></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">foreach</span> <span class="token punctuation" style="color: rgb(153, 153, 153);">(</span><span class="token variable" style="color: rgb(78, 161, 223);">$users</span> <span class="token keyword" style="color: rgb(0, 119, 170);">as</span> <span class="token variable" style="color: rgb(78, 161, 223);">$user</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">:</span> <span class="token delimiter">?></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$user</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token property" style="color: rgb(218, 86, 74);">name</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span>\r\n <span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">endforeach</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span>\r\n<span class="token markup"><span class="token tag" style="color: rgb(218, 86, 74);"><span class="token tag"><span class="token punctuation" style="color: rgb(153, 153, 153);"></</span>div</span><span class="token punctuation" style="color: rgb(153, 153, 153);">></span></span></span>\r\n\r\n<span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$users</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">links<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span></code></pre><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">This is all it takes to create a pagination system! Note that we did not have to inform the framework of the current page. Laravel will determine this for you automatically.</p><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">If you would like to specify a custom view to use for pagination, you may pass a view to the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">links</code>method:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token php"><span class="token delimiter"><?php</span> <span class="token keyword" style="color: rgb(0, 119, 170);">echo</span> <span class="token variable" style="color: rgb(78, 161, 223);">$users</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">links<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token string" style="color: rgb(85, 85, 85);">''view.name''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span> <span class="token delimiter">?></span></span></code></pre> \r\n ', 'done', '2015-04-26 22:46:48', '2015-04-26 22:47:54', NULL),
(18, 3, '', '', 'draft', '2015-04-26 22:58:55', '2015-04-26 22:58:55', NULL),
(19, 3, '', '', 'draft', '2015-04-26 23:51:42', '2015-04-26 23:51:42', NULL),
(20, 3, '', '', 'draft', '2015-04-26 23:59:09', '2015-04-26 23:59:09', NULL),
(21, 3, '', '', 'draft', '2015-04-27 00:00:33', '2015-04-27 00:00:33', NULL),
(22, 3, '', '', 'draft', '2015-04-27 00:03:23', '2015-04-27 00:03:23', NULL);
INSERT INTO `messages` (`id`, `author_id`, `subject`, `message`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(23, 3, '<NAME> Mensaje de Prueba', '<p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">You may also access additional pagination information via the following methods:</p><ul style="color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px; line-height: normal;"><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getCurrentPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getLastPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getPerPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getTotal</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getFrom</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getTo</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">count</code></li></ul><h4 style="font-size: 18px; font-weight: 700; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; line-height: normal;">"Simple Pagination"</h4><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">If you are only showing "Next" and "Previous" links in your pagination view, you have the option of using the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">simplePaginate</code> method to perform a more efficient query. This is useful for larger datasets when you do not require the display of exact page numbers on your view:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token variable" style="color: rgb(78, 161, 223);">$someUsers</span> <span class="token operator" style="color: rgb(85, 85, 85);">=</span> <span class="token scope" style="color: rgb(246, 97, 83);">User<span class="token punctuation" style="color: rgb(153, 153, 153);">::</span></span><span class="token function" style="color: rgb(85, 85, 85);">where<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token string" style="color: rgb(85, 85, 85);">''votes''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">,</span> <span class="token string" style="color: rgb(85, 85, 85);">''>''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">,</span> <span class="token number" style="color: rgb(218, 86, 74);">100</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">simplePaginate<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token number" style="color: rgb(218, 86, 74);">15</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span></code></pre> \r\n ', 'done', '2015-04-27 00:12:50', '2015-04-27 00:14:03', NULL),
(24, 1, '<NAME>', ' \r\n <p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">You may also access additional pagination information via the following methods:</p><ul style="color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px; line-height: normal;"><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getCurrentPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getLastPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getPerPage</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getTotal</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getFrom</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">getTo</code></li><li><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; border-radius: 3px; padding: 1px 5px; background: rgb(240, 242, 241);">count</code></li></ul><h4 style="font-size: 18px; font-weight: 700; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; line-height: normal;">"Simple Pagination"</h4><p style="line-height: 1.5; margin-top: 10px; margin-bottom: 20px; color: rgb(82, 82, 82); font-family: ''Source Sans Pro'', sans-serif; font-size: 16px;">If you are only showing "Next" and "Previous" links in your pagination view, you have the option of using the <code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: rgb(244, 100, 95); padding: 1px 5px; border-radius: 3px; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4; background: rgb(240, 242, 241);">simplePaginate</code> method to perform a more efficient query. This is useful for larger datasets when you do not require the display of exact page numbers on your view:</p><pre class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; color: black; text-shadow: white 0px 1px; direction: ltr; word-break: normal; line-height: 1.5; tab-size: 4; padding: 1em; margin-top: 10px; margin-bottom: 20px; border-radius: 3px; background: rgb(240, 242, 241);"><code class=" language-php" style="font-family: Consolas, Monaco, ''Andale Mono'', monospace; font-size: 13px; color: black; text-shadow: white 0px 1px; direction: ltr; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; tab-size: 4;"><span class="token variable" style="color: rgb(78, 161, 223);">$someUsers</span> <span class="token operator" style="color: rgb(85, 85, 85);">=</span> <span class="token scope" style="color: rgb(246, 97, 83);">User<span class="token punctuation" style="color: rgb(153, 153, 153);">::</span></span><span class="token function" style="color: rgb(85, 85, 85);">where<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token string" style="color: rgb(85, 85, 85);">''votes''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">,</span> <span class="token string" style="color: rgb(85, 85, 85);">''>''</span><span class="token punctuation" style="color: rgb(153, 153, 153);">,</span> <span class="token number" style="color: rgb(218, 86, 74);">100</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token operator" style="color: rgb(85, 85, 85);">-</span><span class="token operator" style="color: rgb(85, 85, 85);">></span><span class="token function" style="color: rgb(85, 85, 85);">simplePaginate<span class="token punctuation" style="color: rgb(153, 153, 153);">(</span></span><span class="token number" style="color: rgb(218, 86, 74);">15</span><span class="token punctuation" style="color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="color: rgb(153, 153, 153);">;</span></code></pre>', 'done', '2015-04-27 03:30:40', '2015-04-27 03:36:13', NULL),
(25, 3, '<NAME>', '<div class="method-item" style="margin-bottom: 30px;"><h3 id="method_exists" style="font-family: inherit; margin-bottom: 20px; font-size: 20px; padding: 4px; background-color: rgb(238, 238, 238);"><code style="font-family: Consolas, ''Liberation Mono'', Menlo, Courier, monospace; font-size: 17px; padding: 0.2em 0px; color: rgb(51, 51, 51); border-radius: 3px; margin: 0px; background-color: rgb(238, 238, 238);">bool <strong>exists</strong>(string $path)</code></h3><div class="details" style="padding-left: 30px;"><div class="method-description" style="margin: 0px 0px 24px;"><p>Determine if a file exists.</p></div><div class="tags"><h4 style="font-family: inherit; font-size: 18px;">Parameters</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">string</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">$path</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table><h4 style="font-family: inherit; font-size: 18px;">Return Value</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">bool</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table></div></div></div><div class="method-item" style="margin-bottom: 30px;"><h3 id="method_get" style="font-family: inherit; margin-bottom: 20px; font-size: 20px; padding: 4px; background-color: rgb(238, 238, 238);"><div class="location" style="font-size: 11px; float: right; font-style: italic;">at line 27</div><code style="font-family: Consolas, ''Liberation Mono'', Menlo, Courier, monospace; font-size: 17px; padding: 0.2em 0px; color: rgb(51, 51, 51); border-radius: 3px; margin: 0px; background-color: rgb(238, 238, 238);">string <strong>get</strong>(string $path)</code></h3><div class="details" style="padding-left: 30px;"><div class="method-description" style="margin: 0px 0px 24px;"><p>Get the contents of a file.</p></div><div class="tags"><h4 style="font-family: inherit; font-size: 18px;">Parameters</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">string</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">$path</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table><h4 style="font-family: inherit; font-size: 18px;">Return Value</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">string</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table><h4 style="font-family: inherit; font-size: 18px;">Exceptions</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"><a href="http://laravel.com/api/4.2/Illuminate/Filesystem/FileNotFoundException.html" style="color: rgb(66, 139, 202);">FileNotFoundException</a></td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table></div></div></div><div class="method-item" style="margin-bottom: 30px;"><h3 id="method_getRequire" style="font-family: inherit; margin-bottom: 20px; font-size: 20px; padding: 4px; background-color: rgb(238, 238, 238);"><div class="location" style="font-size: 11px; float: right; font-style: italic;">at line 42</div><code style="font-family: Consolas, ''Liberation Mono'', Menlo, Courier, monospace; font-size: 17px; padding: 0.2em 0px; color: rgb(51, 51, 51); border-radius: 3px; margin: 0px; background-color: rgb(238, 238, 238);">mixed <strong>getRequire</strong>(string $path)</code></h3><div class="details" style="padding-left: 30px;"><div class="method-description" style="margin: 0px 0px 24px;"><p>Get the returned value of a file.</p></div><div class="tags"><h4 style="font-family: inherit; font-size: 18px;">Parameters</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">string</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">$path</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table><h4 style="font-family: inherit; font-size: 18px;">Return Value</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);">mixed</td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"></td></tr></tbody></table><h4 style="font-family: inherit; font-size: 18px;">Exceptions</h4><table class="table table-condensed" style="width: 989px;"><tbody><tr><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"><a href="http://laravel.com/api/4.2/Illuminate/Filesystem/FileNotFoundException.html" style="color: rgb(66, 139, 202);">FileNotFoundException</a></td><td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221);"><br></td></tr></tbody></table></div></div></div> \r\n ', 'done', '2015-04-27 19:52:18', '2015-04-27 19:54:31', NULL),
(26, 3, '', '', 'draft', '2015-04-28 04:02:31', '2015-04-28 04:02:31', NULL),
(27, 3, '', '', 'draft', '2015-04-28 04:06:09', '2015-04-28 04:06:09', NULL),
(28, 3, '', '', 'draft', '2015-04-28 04:08:57', '2015-04-28 04:08:57', NULL),
(29, 3, '', '', 'draft', '2015-04-28 04:09:26', '2015-04-28 04:09:26', NULL),
(30, 3, '', '', 'draft', '2015-04-28 04:10:08', '2015-04-28 04:10:08', NULL),
(31, 3, '', '', 'draft', '2015-04-28 04:12:09', '2015-04-28 04:12:09', NULL),
(32, 3, '', '', 'draft', '2015-04-28 04:25:19', '2015-04-28 04:25:19', NULL),
(33, 3, '', '', 'draft', '2015-04-28 04:25:33', '2015-04-28 04:25:33', NULL),
(34, 3, '', '', 'draft', '2015-04-28 04:26:16', '2015-04-28 04:26:16', NULL),
(35, 3, '', ' \r\n ', 'done', '2015-04-28 04:26:53', '2015-04-28 04:27:01', NULL),
(36, 3, '', '', 'draft', '2015-04-28 04:28:02', '2015-04-28 04:28:02', NULL),
(37, 3, '', '', 'draft', '2015-04-28 04:30:18', '2015-04-28 04:30:18', NULL),
(38, 3, '', '', 'draft', '2015-04-28 04:31:08', '2015-04-28 04:31:08', NULL),
(39, 3, '', '', 'draft', '2015-04-28 04:32:49', '2015-04-28 04:32:49', NULL),
(40, 3, '', '', 'draft', '2015-04-28 04:33:55', '2015-04-28 04:33:55', NULL),
(41, 3, '', '', 'draft', '2015-04-28 04:37:07', '2015-04-28 04:37:07', NULL),
(42, 3, '', '', 'draft', '2015-04-28 04:39:51', '2015-04-28 04:39:51', NULL),
(43, 3, '', '', 'draft', '2015-04-28 04:41:39', '2015-04-28 04:41:39', NULL),
(44, 3, '', '', 'draft', '2015-04-28 04:42:29', '2015-04-28 04:42:29', NULL),
(45, 3, '', '', 'draft', '2015-04-28 04:46:15', '2015-04-28 04:46:15', NULL),
(46, 3, '', '', 'draft', '2015-04-28 04:48:28', '2015-04-28 04:48:28', NULL),
(47, 3, 'Mensaje de Borrador de Prueba', 'Este es en contenido del mensaje', 'done', '2015-04-28 05:07:55', '2015-04-28 05:08:36', NULL),
(48, 3, '', '', 'draft', '2015-04-28 05:09:05', '2015-04-28 05:09:05', NULL),
(49, 3, 'Segundo Mensaje de Borrador de Prueba', 'Este es el Contenido del Correo', 'done', '2015-04-28 05:09:23', '2015-04-28 05:10:01', NULL),
(50, 3, 'Tercer Mensaje de Borrador de Prueba', 'Contenido del Mensaje', 'done', '2015-04-28 05:11:29', '2015-04-28 05:12:01', NULL),
(51, 3, 'Cuarto Mensaje de Borrador de Prueba', 'Correo de Prueba', 'done', '2015-04-28 05:12:28', '2015-04-28 05:12:54', NULL),
(52, 3, '', '', 'draft', '2015-04-28 05:13:25', '2015-04-28 05:13:25', NULL),
(53, 3, '', '', 'draft', '2015-04-28 05:14:55', '2015-04-28 05:14:55', NULL),
(54, 3, 'Septimo Mensaje de Borrador de Prueba', ' Contenido del Mensaje\r\n \r\n ', 'draft', '2015-04-28 05:17:27', '2015-05-02 21:40:56', NULL),
(55, 3, 'Asunto de Borrador', ' Contenido de Borrador\r\n ', 'done', '2015-05-02 21:44:21', '2015-05-02 22:09:13', NULL),
(56, 3, '', '', 'draft', '2015-05-02 22:09:34', '2015-05-02 22:09:34', NULL),
(57, 3, 'Re: ', '', 'draft', '2015-05-02 22:23:29', '2015-05-02 22:23:29', NULL),
(58, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:26:09', '2015-05-02 22:26:09', NULL),
(59, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:31:14', '2015-05-02 22:31:14', NULL),
(60, 3, 'Re: Asunto de Borrador', '', 'draft', '2015-05-02 22:34:52', '2015-05-02 22:36:43', NULL),
(61, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:41:08', '2015-05-02 22:41:08', NULL),
(62, 3, 'Re: Asunto de Borrador', '', 'draft', '2015-05-02 22:42:27', '2015-05-02 22:43:23', NULL),
(63, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:45:00', '2015-05-02 22:45:00', NULL),
(64, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:47:59', '2015-05-02 22:47:59', NULL),
(65, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:49:23', '2015-05-02 22:49:23', NULL),
(66, 3, 'Re: Asunto de Borrador', ' \r\n Nuevo Contenido<br>\r\n <br>\r\n <blockquote style="font-size:1em"> Contenido de Borrador\r\n </blockquote>\r\n ', 'done', '2015-05-02 22:54:39', '2015-05-02 22:54:55', NULL),
(67, 3, 'Re: Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > \r\n Nuevo Contenido<br>\r\n <br>\r\n <blockquote style="font-size:1em"> Contenido de Borrador\r\n </blockquote>\r\n </blockquote>', 'draft', '2015-05-02 22:55:13', '2015-05-02 22:55:13', NULL),
(68, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:57:40', '2015-05-02 22:57:40', NULL),
(69, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 22:58:45', '2015-05-02 22:58:45', NULL),
(70, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:08:22', '2015-05-02 23:08:22', NULL),
(71, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:13:50', '2015-05-02 23:13:50', NULL),
(72, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:15:13', '2015-05-06 07:36:08', '2015-05-06 07:36:08'),
(73, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:21:05', '2015-05-05 06:44:21', '2015-05-05 06:44:21'),
(74, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:30:39', '2015-05-05 06:44:21', '2015-05-05 06:44:21'),
(75, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:32:21', '2015-05-05 06:44:20', '2015-05-05 06:44:20'),
(76, 3, 'Re: Asunto de Borrador', '\n <br>\n <br>\n <blockquote style="font-size:1em" > Contenido de Borrador\r\n </blockquote>', 'draft', '2015-05-02 23:34:07', '2015-05-05 06:44:03', '2015-05-05 06:44:03'),
(77, 3, 'Re: Asunto de Borrador', ' \n Este es el nuevo contenido de borrador<br>\n <br>\n <blockquote style="font-size:1em"> Contenido de Borrador\n </blockquote>\n \n ', 'draft', '2015-05-02 23:35:51', '2015-05-05 06:44:03', '2015-05-05 06:44:03');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2015_03_03_032502_create_users_table', 1),
('2015_03_03_032611_create_roles_table', 1),
('2015_03_03_032758_create_capabilities_table', 1),
('2015_03_03_033253_create_capability_role_table', 1),
('2015_03_03_033439_create_user_profiles_table', 1),
('2015_03_03_033552_create_achievements_table', 1),
('2015_03_03_033702_create_user_achievements_table', 1),
('2015_03_03_033829_create_tests_table', 1),
('2015_03_03_033939_create_contributors_table', 1),
('2015_03_03_034043_create_inscriptions_table', 1),
('2015_03_03_034229_create_auditories_table', 1),
('2015_03_03_034417_create_evaluations_table', 1),
('2015_03_03_034624_create_user_course_achievements_table', 1),
('2015_03_03_034724_create_course_achievements_table', 1),
('2015_03_03_034827_create_courses_table', 1),
('2015_03_03_034940_create_notes_table', 1),
('2015_03_03_035041_create_modules_table', 1),
('2015_03_03_035139_create_lessons_table', 1),
('2015_03_03_035240_create_user_lessons_table', 1),
('2015_03_04_022402_create_attachments_table', 1),
('2015_03_04_023032_create_discussions_table', 1),
('2015_03_04_023330_create_discussions_karma_table', 1),
('2015_03_04_045137_create_links_table', 1),
('2015_03_06_014052_create_messages_table', 1),
('2015_03_06_014155_create_user_messages_table', 1),
('2015_03_07_022824_create_follows_table', 1),
('2015_03_10_042914_create_rpsls_questions_table', 1),
('2015_03_10_044227_create_rpsls_answers_table', 1),
('2015_03_14_204854_create_hangman_questions_table', 1),
('2015_03_15_173009_create_memory_questions_table', 1),
('2015_03_15_173110_create_roulette_questions_table', 1),
('2015_03_20_002141_create_roulette_answers_table', 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `modules`
--
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`course_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `notes`
--
CREATE TABLE IF NOT EXISTS `notes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lesson_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`content` longtext COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `roles`
--
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`dashboard_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
--
-- Volcado de datos para la tabla `roles`
--
INSERT INTO `roles` (`id`, `name`, `title`, `description`, `status`, `dashboard_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'superadmin', 'Super Administrador', '', 'active', 1, '2015-03-25 07:53:01', '2015-03-25 07:53:01', NULL),
(2, 'coordinator', 'Coordinador', '', 'active', 21, '2015-03-25 07:53:01', '2015-04-02 08:12:18', NULL),
(3, 'teacher', 'Profesor', '', 'active', 0, '2015-03-25 07:53:02', '2015-03-25 07:53:02', NULL),
(4, 'student', 'Estudiante', '', 'active', 0, '2015-03-25 07:53:02', '2015-03-25 07:53:02', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `roulette_answers`
--
CREATE TABLE IF NOT EXISTS `roulette_answers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`question_id` int(11) NOT NULL,
`answer` text COLLATE utf8_unicode_ci NOT NULL,
`is_correct` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ;
--
-- Volcado de datos para la tabla `roulette_answers`
--
INSERT INTO `roulette_answers` (`id`, `question_id`, `answer`, `is_correct`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, '4', 1, '2015-03-26 02:02:43', '2015-03-26 02:02:43', NULL),
(2, 1, '3', 0, '2015-03-26 02:02:43', '2015-03-26 02:02:43', NULL),
(3, 1, '-4', 0, '2015-03-26 02:02:44', '2015-03-26 02:02:44', NULL),
(4, 1, '5', 0, '2015-03-26 02:02:44', '2015-03-26 02:02:44', NULL),
(5, 2, '12', 1, '2015-03-26 02:03:09', '2015-03-26 02:03:09', NULL),
(6, 2, '10', 0, '2015-03-26 02:03:09', '2015-03-26 02:03:09', NULL),
(7, 2, '0', 0, '2015-03-26 02:03:09', '2015-03-26 02:03:09', NULL),
(8, 2, '9', 0, '2015-03-26 02:03:09', '2015-03-26 02:03:09', NULL),
(9, 3, '16', 1, '2015-03-26 02:03:45', '2015-03-26 02:03:45', NULL),
(10, 3, '14', 0, '2015-03-26 02:03:45', '2015-03-26 02:03:45', NULL),
(11, 3, '18', 0, '2015-03-26 02:03:45', '2015-03-26 02:03:45', NULL),
(12, 3, '20', 0, '2015-03-26 02:03:45', '2015-03-26 02:03:45', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `roulette_questions`
--
CREATE TABLE IF NOT EXISTS `roulette_questions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`evaluation_id` int(11) NOT NULL,
`question` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
--
-- Volcado de datos para la tabla `roulette_questions`
--
INSERT INTO `roulette_questions` (`id`, `evaluation_id`, `question`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 0, '2+2', '2015-03-26 02:02:43', '2015-03-26 02:02:43', NULL),
(2, 0, '2*6', '2015-03-26 02:03:09', '2015-03-26 02:03:09', NULL),
(3, 0, '56-40', '2015-03-26 02:03:45', '2015-03-26 02:03:45', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `rpsls_answers`
--
CREATE TABLE IF NOT EXISTS `rpsls_answers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`question_id` int(11) NOT NULL,
`answer` text COLLATE utf8_unicode_ci NOT NULL,
`is_correct` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 ;
--
-- Volcado de datos para la tabla `rpsls_answers`
--
INSERT INTO `rpsls_answers` (`id`, `question_id`, `answer`, `is_correct`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 'Algoritmo', 1, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(2, 1, 'Programa', 0, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(3, 1, 'Software', 0, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(4, 1, 'Base de Datos', 0, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(5, 1, 'Dato', 0, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(6, 2, 'Software', 1, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(7, 2, 'Dato', 0, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(8, 2, 'Hardware', 0, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(9, 2, 'Información', 0, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(10, 2, 'Interfaz', 0, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(11, 3, 'Sistema operativo', 1, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL),
(12, 3, 'Linux', 0, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL),
(13, 3, 'Software', 0, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL),
(14, 3, 'Hardware', 0, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL),
(15, 3, 'Windows', 0, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `rpsls_questions`
--
CREATE TABLE IF NOT EXISTS `rpsls_questions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`evaluation_id` int(11) NOT NULL,
`question` text COLLATE utf8_unicode_ci NOT NULL,
`seconds` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
--
-- Volcado de datos para la tabla `rpsls_questions`
--
INSERT INTO `rpsls_questions` (`id`, `evaluation_id`, `question`, `seconds`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 0, 'Es un conjunto prescrito de instrucciones o reglas bien definidas, ordenadas y finitas que permite realizar una actividad mediante pasos sucesivos que no generen dudas a quien deba realizar dicha actividad', 120, '2015-03-25 21:11:47', '2015-03-25 21:11:47', NULL),
(2, 0, 'Es el equipamiento lógico o soporte lógico de un sistema informático, que comprende el conjunto de los componentes lógicos necesarios que hacen posible la realización de tareas específicas, en contraposición a los componentes físicos que son llamados hardware', 120, '2015-03-25 21:13:13', '2015-03-25 21:13:13', NULL),
(3, 0, 'Es un programa o conjunto de programas de un sistema informático que gestiona los recursos de hardware y provee servicios a los programas de aplicación, ejecutándose en modo privilegiado respecto de los restantes', 120, '2015-03-25 21:14:43', '2015-03-25 21:14:43', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tests`
--
CREATE TABLE IF NOT EXISTS `tests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`evaluation_id` int(11) NOT NULL,
`percentage` double(3,2) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`role_id` int(11) NOT NULL,
`first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `role_id`, `first_name`, `last_name`, `email`, `username`, `display_name`, `password`, `status`, `created_at`, `updated_at`, `deleted_at`, `remember_token`) VALUES
(1, 1, 'Alexis', 'Montenegro', '<EMAIL>', 'AlexanderZon', '<NAME>', '$2y$10$UFeAB2ioRvtZOzzeSQaj0.zIwVXHug1j1CYEFYxf7q3zfeWPI9z36', 'active', '2015-03-25 07:53:03', '2015-04-27 18:20:37', NULL, NULL),
(2, 1, '<NAME>', 'Borges', '<EMAIL>', '<PASSWORD>dacorte', '<NAME>', '$2y$10$nEJLkVkJzz2VE/mNWcOFoed2gmMZmelpfp2BQNYQv1Ro/ORFORn2u', 'inactive', '2015-03-25 07:53:03', '2015-04-01 07:46:01', NULL, NULL),
(3, 2, 'Fanny', 'Mictil', '<EMAIL>', 'FannyMictil', '<NAME>', '$2y$10$wc9Y/RXl9FEPCOA4aHZLVuoyUxIxLdt0dz6BOBqPSGRWEB/d3rxIS', 'active', '2015-03-26 04:05:30', '2015-05-07 08:10:47', NULL, '1wMjAbtB3tSccAIZoFUYRmQgcTjFZpnJsGitICfj7KKEI7gZQ5YDkFqZWNkv'),
(4, 3, 'Inés', 'Cedeño', '<EMAIL>', 'InesCedeno', 'Prof. Inés Cedeño', '$2y$10$LZynyWu3yiKHLl4TmefPIuFzZHJHfxq/5lLHwWteLFr6gcNzdF8/i', 'active', '2015-04-01 03:49:30', '2015-04-12 02:29:49', NULL, NULL),
(5, 3, 'Yasmin', 'Brito', '<EMAIL>', 'YasminBrito', '<NAME>', '$2y$10$4Oae35CwuI7Yh4CmqPgMaeU4dGF1lGo0kblPusm.qkhfiQNzq0cBi', 'inactive', '2015-04-12 02:49:06', '2015-04-12 04:29:35', '2015-04-12 04:29:35', NULL),
(6, 4, 'Carmini', 'Angúlo', '<EMAIL>', 'caas', '<NAME>', '$2y$10$t7Qz7u0nAFFfzWcZnsJ51uAk9.mphLq4.8lNdfxhjSuAPq5wv8JGm', 'active', '2015-04-12 05:11:39', '2015-04-12 05:15:53', NULL, NULL),
(7, 4, 'Mariana', 'Sanchez', '<EMAIL>', 'marianasanchez', '<NAME>', '$2y$10$.B42grUZLDPHOrY5tmiG4.XaNMqKQKRjAw.8COw8Kt8maf5dezxga', 'inactive', '2015-04-12 05:18:22', '2015-04-12 05:19:00', '2015-04-12 05:19:00', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_achievements`
--
CREATE TABLE IF NOT EXISTS `user_achievements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`achievement_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_course_achievements`
--
CREATE TABLE IF NOT EXISTS `user_course_achievements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`course_achievement_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_lessons`
--
CREATE TABLE IF NOT EXISTS `user_lessons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lesson_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_messages`
--
CREATE TABLE IF NOT EXISTS `user_messages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`message_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`status` enum('unread','read','spam','deleted','unshipped') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unshipped',
`favorite` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_messages_message_id_index` (`message_id`),
KEY `user_messages_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=53 ;
--
-- Volcado de datos para la tabla `user_messages`
--
INSERT INTO `user_messages` (`id`, `message_id`, `user_id`, `status`, `favorite`, `created_at`, `updated_at`, `deleted_at`) VALUES
(2, 10, 1, 'unread', 0, '2015-04-24 18:20:18', '2015-04-25 22:52:13', NULL),
(3, 10, 3, 'unread', 0, '2015-04-24 18:20:18', '2015-04-25 22:52:13', NULL),
(4, 11, 1, 'unread', 0, '2015-04-25 18:20:18', '2015-04-25 22:55:43', NULL),
(5, 11, 3, 'unread', 0, '2015-04-25 18:20:18', '2015-04-25 22:55:43', NULL),
(6, 11, 6, 'unread', 0, '2015-04-25 18:20:18', '2015-04-25 22:55:43', NULL),
(7, 13, 1, 'unread', 0, '2015-04-25 18:20:18', '2015-04-25 23:24:04', NULL),
(8, 13, 3, 'unread', 0, '2015-04-25 18:20:18', '2015-04-25 23:24:04', NULL),
(9, 16, 1, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(10, 16, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(11, 17, 1, 'unread', 0, '2015-04-26 22:48:10', '2015-04-26 22:48:34', NULL),
(12, 17, 3, 'unread', 0, '2015-04-26 22:48:34', '2015-04-26 22:48:34', NULL),
(13, 23, 1, 'unread', 0, '2015-04-27 00:14:04', '2015-04-27 00:14:04', NULL),
(14, 25, 1, 'unread', 0, '2015-04-27 19:54:31', '2015-04-27 19:54:31', NULL),
(15, 25, 3, 'unread', 0, '2015-04-27 19:54:31', '2015-04-27 19:54:31', NULL),
(16, 47, 2, 'unread', 0, '2015-04-28 05:08:36', '2015-04-28 05:08:36', NULL),
(17, 47, 3, 'unread', 0, '2015-04-28 05:08:36', '2015-04-28 05:08:36', NULL),
(18, 49, 1, 'unread', 0, '2015-04-28 05:10:01', '2015-04-28 05:10:01', NULL),
(19, 49, 3, 'unread', 0, '2015-04-28 05:10:01', '2015-04-28 05:10:01', NULL),
(20, 50, 1, 'unread', 0, '2015-04-28 05:12:01', '2015-04-28 05:12:01', NULL),
(21, 50, 3, 'unread', 1, '2015-04-28 05:12:01', '2015-05-05 04:44:29', NULL),
(22, 51, 1, 'unread', 0, '2015-04-28 05:12:55', '2015-04-28 05:12:55', NULL),
(23, 51, 3, 'unread', 0, '2015-04-28 05:12:55', '2015-05-05 04:47:26', NULL),
(24, 54, 1, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(25, 54, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(26, 54, 2, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(27, 55, 1, 'unread', 0, '2015-05-02 22:09:13', '2015-05-02 22:09:13', NULL),
(28, 55, 3, 'read', 1, '2015-05-02 22:09:13', '2015-05-06 07:09:20', NULL),
(29, 57, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(30, 58, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(31, 59, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(32, 60, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(33, 61, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(34, 62, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(35, 62, 1, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(36, 62, 2, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(37, 63, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(38, 64, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(39, 65, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(40, 66, 3, 'read', 1, '2015-05-02 22:54:55', '2015-05-06 07:09:20', NULL),
(41, 67, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(42, 68, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(43, 69, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(44, 70, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(45, 71, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(47, 73, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(48, 74, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(49, 75, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(50, 76, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(51, 77, 3, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL),
(52, 77, 1, 'unshipped', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_profiles`
--
CREATE TABLE IF NOT EXISTS `user_profiles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`about_me` longtext COLLATE utf8_unicode_ci NOT NULL,
`activities` longtext COLLATE utf8_unicode_ci NOT NULL,
`interests` longtext COLLATE utf8_unicode_ci NOT NULL,
`born_date` date NOT NULL,
`born_place` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`sex` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`picture` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`cover` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`website` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`address` text COLLATE utf8_unicode_ci NOT NULL,
`phones` longtext COLLATE utf8_unicode_ci NOT NULL,
`timezone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`locale` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`customs` longtext COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `capability_role`
--
ALTER TABLE `capability_role`
ADD CONSTRAINT `capability_role_capability_id_foreign` FOREIGN KEY (`capability_id`) REFERENCES `capabilities` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `capability_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Filtros para la tabla `user_messages`
--
ALTER TABLE `user_messages`
ADD CONSTRAINT `user_messages_message_id_foreign` FOREIGN KEY (`message_id`) REFERENCES `messages` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `user_messages_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE DATABASE IF NOT EXISTS shortify;
CREATE TABLE IF NOT EXISTS links (
id INT AUTO_INCREMENT PRIMARY KEY,
url CHAR(200) NOT NULL,
cutback CHAR(30) NOT NULL,
timestamp TIMESTAMP
) ENGINE = InnoDB;
|
<gh_stars>1-10
DEFINE RECORD CDD$TOP.PO.PO_REG_SUB_LINE
DESCRIPTION IS /*Purcahse Order Segister Sub-Line*/.
PO_REG_SUB_LINE_CDD STRUCTURE.
/* Element = PO
Description = Purchase order number */
PO DATATYPE IS TEXT SIZE IS 10.
/* Element = LINE
Description = Line */
PO_LINE DATATYPE IS TEXT SIZE IS 4.
/* Element =
Description = Action */
PO_ACTION DATATYPE IS TEXT SIZE IS 2.
/* Element = DATE
Description = Date (YYYYMMDD) */
ACTION_DATE DATATYPE IS TEXT SIZE IS 8.
/* Element =
Description = Quantity */
QTY DATATYPE IS G_FLOATING.
/* Element =
Description = Price */
PRICE DATATYPE IS G_FLOATING.
/* Element = SUBACCT
Description = Sub account (job number) */
SUBACCT DATATYPE IS TEXT SIZE IS 10.
/* Element = ACCOUNT
Description = General Ledger Account Number */
ACCOUNT DATATYPE IS TEXT SIZE IS 18.
/* Element = BATCH
Description = Batch number used for process (post,clos */
BATCH DATATYPE IS TEXT SIZE IS 6.
/* Element = POSTDATE
Description = Date of posting (YYYYMMDD) */
POSTDATE DATATYPE IS TEXT SIZE IS 8.
/* Element = POSTTIME
Description = Time of posting */
POSTTIME DATATYPE IS TEXT SIZE IS 6.
END PO_REG_SUB_LINE_CDD STRUCTURE.
END PO_REG_SUB_LINE.
|
CREATE OR REPLACE FUNCTION notify_all()
RETURNS TRIGGER
AS $$
BEGIN
PERFORM pg_notify('$all', ''
|| '{'
|| '"stream_id": "' || NEW.stream_id || '",'
|| '"stream_type": "' || NEW.stream_type || '",'
|| '"event_type": "' || NEW.event_type || '",'
|| '"sequence_number": ' || NEW.global_sequence_number || ','
|| '"version": ' || NEW."version" || ','
|| '"event": ' || NEW."event"::TEXT || ','
|| '"metadata": ' || NEW.metadata
|| '}');
RETURN NEW;
END;
$$ LANGUAGE PLPGSQL;
CREATE OR REPLACE FUNCTION notify_stream_type()
RETURNS TRIGGER
AS $$
BEGIN
PERFORM pg_notify(NEW.stream_type, ''
|| '{'
|| '"stream_id": "' || NEW.stream_id || '",'
|| '"stream_type": "' || NEW.stream_type || '",'
|| '"event_type": "' || NEW.event_type || '",'
|| '"sequence_number": ' || NEW.global_sequence_number || ','
|| '"version": ' || NEW."version" || ','
|| '"event": ' || NEW."event"::TEXT || ','
|| '"metadata": ' || NEW.metadata
|| '}');
RETURN NEW;
END;
$$ LANGUAGE PLPGSQL;
CREATE TRIGGER notify_all_on_append
AFTER INSERT
ON events
FOR EACH ROW
EXECUTE PROCEDURE notify_all();
CREATE TRIGGER notify_stream_type_on_append
AFTER INSERT
ON events
FOR EACH ROW
EXECUTE PROCEDURE notify_stream_type();
|
<reponame>FelipeAN0810/CEFET-2Ano
drop database atividade8;
create database atividade8;
use atividade8;
create table fornecedor(
cod_for int primary key,
nome varchar(15),
uf varchar(3)
);
create table produto(
codigo int primary key,
nome varchar(15),
estoque int,
valor int,
cod_for int,
desct int,
foreign key (cod_for) references fornecedor(cod_for));
insert into fornecedor values
(1, "Dell", "SP"),
(2, "HP", "BH"),
(3, "Asus", "RJ");
insert into produto values
(1, "Teclado", 12, 38, 2, 10),
(2, "Mouse", 28, 22, 1, 10),
(3, "Placa", 6, 164, 3, 20),
(4, "Monitor", 42, 230, 1, 30),
(5, "Fonte", 33, 64, 3, 20);
|
SELECT DISTINCT(CITY) FROM STATION WHERE MOD(ID,2)=0 |
-- file:text.sql ln:116 expect:true
select format('>>%10L<<', NULL)
|
-- file:jsonb.sql ln:625 expect:true
SELECT rec FROM jsonb_populate_record(NULL::jsbrec, '{"rec": "(abc,42,01.02.2003)"}') q
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.