sql
stringlengths
6
1.05M
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('carbon_piece', 'Mena de Carbon', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('gold_piece', 'Mena de Oro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('iron_piece', 'Mena de Hierro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('lingot_carbon', 'Carbon Puro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('lingot_gold', 'Lingote de Oro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('lingot_iron', 'Lingote de Hierro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('lingot_silver', 'Lingote de Plata', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('pine_processed', 'Tablas de Pino', 1, 10, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('pine_wood', 'Madera de Pino', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('', '', 50, 0, 1);
<gh_stars>1-10 CREATE TABLE `copy_requests` ( `id` int(10) unsigned NOT NULL, `group_id` varchar(32) NOT NULL, `num_copies` tinyint(1) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL, `request_time` datetime NOT NULL, `status` enum('new','activated','completed','rejected','cancelled') NOT NULL DEFAULT 'new', `rejection_reason` text CHARACTER SET latin1 COLLATE latin1_general_cs, PRIMARY KEY (`id`), KEY `user` (`user_id`), KEY `request_time` (`request_time`), KEY `status` (`status`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
<gh_stars>1-10 -- -- TOC entry 341 (class 1255 OID 36777) -- Name: activatepart(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION activatepart(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _viewpart RECORD; _usrId INTEGER; _partActiveHistId INTEGER; _message TEXT; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('activatepart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id, part_rev, item_id, item_number, part_active, part_serialnumber, part_sequencenumber, part_cust_id, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF _viewpart.part_active THEN RETURN true; END IF; UPDATE part SET (part_active) = (true) WHERE part_id = _viewpart.part_id; INSERT INTO partactivehist ( partactivehist_part_id, partactivehist_new_activestate, partactivehist_usr_id, partactivehist_orig_item_id, partactivehist_orig_rev, partactivehist_orig_serialnumber) VALUES ( _viewpart.part_id, true, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING partactivehist_id INTO _partActiveHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' made Active.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Activated'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Active History'::TEXT, _partActiveHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.activatepart(text, text, text) OWNER TO admin; -- -- TOC entry 342 (class 1255 OID 36778) -- Name: activatesummsubass(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION activatesummsubass(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('activatesummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); PERFORM (SELECT activatepart( pItemNumber, pRevision, pSerialNumber)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT activatepart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.activatesummsubass(text, text, text) OWNER TO admin; -- -- TOC entry 328 (class 1255 OID 36779) -- Name: addcustparam(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparam(text, text, text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; pDataType ALIAS FOR $3; _custParam RECORD; _dataTypeId INTEGER; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparam')); IF pParam IS NULL THEN RAISE EXCEPTION 'addcustparam: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'addcustparam: Custom Parameter must be of Type r or p.'; END IF; SELECT custparam_id, custparam_type, custparam_param, custparam_datatype_id, datatype_type INTO _custParam FROM custparam LEFT OUTER JOIN datatype ON datatype.datatype_id = custparam.custparam_datatype_id WHERE custparam_param = pParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; _dataTypeId := (SELECT getdatatypeid(pDataType)); IF _custParam.custparam_id IS NOT NULL THEN RAISE EXCEPTION 'Custom Parameter % of Type % already exists with Data Type %.', pParam, pType, _custParam.datatype_type; END IF; INSERT INTO custparam( custparam_type, custparam_param, custparam_datatype_id) VALUES ( pType, pParam, _dataTypeId) RETURNING custparam_id INTO _custParamId; RETURN _custParamId; END;$_$; ALTER FUNCTION public.addcustparam(text, text, text) OWNER TO admin; -- -- TOC entry 344 (class 1255 OID 36780) -- Name: addcustparamcombo(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparamcombo(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; pValue ALIAS FOR $3; _custParamCombo RECORD; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparamcombo')); IF pParam IS NULL THEN RAISE EXCEPTION 'addcustparamcombo: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'addcustparamcombo: Custom Parameter must be of Type r or p.'; END IF; _custParamId := (SELECT getcustparamid(pType, pParam)); SELECT custparamcombo_id, custparamcombo_custparam_id, custparamcombo_value, custparamcombo_active INTO _custParamCombo FROM custparamcombo WHERE custparamcombo_custparam_id = _custParamId AND custparamcombo_value = pValue; IF _custParamCombo.custparamcombo_id IS NOT NULL AND _custParamCombo.custparamcombo_active = true THEN RETURN true; ELSIF _custParamCombo.custparamcombo_id IS NOT NULL AND _custParamCombo.custparamcombo_active = false THEN UPDATE custparamcombo SET custparamcombo_active = true WHERE custparamcombo_custparam_id = _custParamId AND custparamcombo_value = pValue; RETURN true; END IF; INSERT INTO custparamcombo( custparamcombo_custparam_id, custparamcombo_value) VALUES ( _custParamId, pValue); RETURN true; END;$_$; ALTER FUNCTION public.addcustparamcombo(text, text, text) OWNER TO admin; -- -- TOC entry 345 (class 1255 OID 36781) -- Name: addcustparamlinkitem(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparamlinkitem(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pItemNumber ALIAS FOR $2; _itemCustParamLink RECORD; _custParamId INTEGER; _itemId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparamlinkitem')); _custParamId := (SELECT getcustparamid('p', pParam)); _itemId := (SELECT getitemid(pItemNumber)); SELECT itemitemcustparamlink_id, itemcustparamlink_custparam_id, itemcustparamlink_item_id, itemcustparamlink_recordtype_id, itemcustparamlink_active INTO _itemCustParamLink FROM itemcustparamlink WHERE itemcustparamlink_custparam_id = _custParamId AND itemcustparamlink_item_id = _itemId; IF _itemCustParamLink.itemcustparamlink_id IS NOT NULL AND _itemCustParamLink.itemcustparamlink_active = true THEN RETURN true; ELSIF _itemCustParamLink.itemcustparamlink_id IS NOT NULL AND _itemCustParamLink.itemcustparamlink_active = false THEN UPDATE itemcustparamlink SET itemcustparamlink_active = true WHERE itemcustparamlink_custparam_id = _custParamId AND itemcustparamlink_item_id = _itemId; RETURN true; END IF; INSERT INTO itemcustparamlink( itemcustparamlink_custparam_id, itemcustparamlink_item_id) VALUES ( _custParamId, _itemId); RETURN true; END;$_$; ALTER FUNCTION public.addcustparamlinkitem(text, text) OWNER TO admin; -- -- TOC entry 346 (class 1255 OID 36782) -- Name: addcustparamlinkrecord(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparamlinkrecord(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pRecordType ALIAS FOR $2; _recordcustparamlink RECORD; _custParamId INTEGER; _recordTypeId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparamlinkrecord')); _custParamId := (SELECT getcustparamid('r', pParam)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); SELECT recordcustparamlink_id, recordcustparamlink_custparam_id, recordcustparamlink_item_id, recordcustparamlink_recordtype_id, recordcustparamlink_active INTO _recordcustparamlink FROM recordcustparamlink WHERE recordcustparamlink_custparam_id = _custParamId AND recordcustparamlink_recordtype_id = _recordTypeId; IF _recordcustparamlink.recordcustparamlink_id IS NOT NULL AND _recordcustparamlink.recordcustparamlink_active = true THEN RETURN true; ELSIF _recordcustparamlink.recordcustparamlink_id IS NOT NULL AND _recordcustparamlink.recordcustparamlink_active = false THEN UPDATE recordcustparamlink SET recordcustparamlink_active = true WHERE recordcustparamlink_custparam_id = _custParamId AND recordcustparamlink_recordtype_id = _recordTypeId; RETURN true; END IF; INSERT INTO recordcustparamlink( recordcustparamlink_custparam_id, recordcustparamlink_recordtype_id) VALUES ( _custParamId, _recordTypeId); RETURN true; END;$_$; ALTER FUNCTION public.addcustparamlinkrecord(text, text) OWNER TO admin; -- -- TOC entry 343 (class 1255 OID 36783) -- Name: addcustparamvaluepart(text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparamvaluepart(text, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pItemNumber ALIAS FOR $2; pRevision ALIAS FOR $3; pSerialNumber ALIAS FOR $4; pValue ALIAS FOR $5; _custParamValue TEXT; _partId INTEGER; _custParamId INTEGER; _r RECORD; _message TEXT; _action TEXT; _partCustParamValueId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparamvaluepart')); _custParamId := (SELECT getcustparamid('p', pParam)); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _custParamValue := (SELECT getcustparamvaluepart(pParam, pItemNumber, pRevision, pSerialNumber)); IF _custParamValue = pValue THEN RETURN true; END IF; IF pValue IS NULL THEN PERFORM (SELECT removecustparamvaluepart(pParam, pItemNumber, pRevision, pSerialNumber)); RETURN true; ELSE PERFORM (SELECT removecustparamvaluepart(pParam, pItemNumber, pRevision, pSerialNumber, false)); END IF; INSERT INTO partcustparamvalue (partcustparamvalue_custparam_id, partcustparamvalue_part_id, partcustparamvalue_value) VALUES (_custParamId, _partId, pValue) RETURNING partcustparamvalue_id INTO _partCustParamValueId; IF _custParamValue IS NULL THEN _message := 'Custom Parameter ' || pParam || ' added with value ' || pValue || ' for ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; _action := 'Custom Parameter Added'; ELSE _message := 'Custom Parameter ' || pParam || ' value modified from ' || _custParamValue || ' to ' || pValue || ' for ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; _action := 'Custom Parameter Modified'; END IF; PERFORM (SELECT enterpartlog( 'Custom Parameter'::TEXT, _action, pItemNumber, pRevision, pSerialNumber, 'Part Custom Parameter Value History'::TEXT, _partCustParamValueId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.addcustparamvaluepart(text, text, text, text, text) OWNER TO admin; -- -- TOC entry 349 (class 1255 OID 36784) -- Name: addcustparamvaluerecord(text, text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addcustparamvaluerecord(text, text, integer, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pRecordType ALIAS FOR $2; pRecordId ALIAS FOR $3; pValue ALIAS FOR $4; _custParamValue TEXT; _recordTypeId INTEGER; _custParamId INTEGER; _r RECORD; _message TEXT; _action TEXT; _recordCustParamValueId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addcustparamvaluerecord')); IF pRecordId IS NULL THEN RAISE EXCEPTION 'addcustparamvaluerecord: Record ID cannot be null.'; END IF; _custParamId := (SELECT getcustparamid('r', pParam)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _custParamValue := (SELECT getcustparamvaluerecord(pParam, pRecordType, pRecordId)); IF _custParamValue = pValue THEN RETURN true; END IF; IF pValue IS NULL THEN PERFORM (SELECT removecustparamvaluerecord(pParam, pRecordType, pRecordId)); RETURN true; ELSE PERFORM (SELECT removecustparamvaluerecord(pParam, pRecordType, pRecordId, false)); END IF; INSERT INTO recordcustparamvalue (recordcustparamvalue_custparam_id, recordcustparamvalue_recordtype_id, recordcustparamvalue_record_id, recordcustparamvalue_value) VALUES (_custParamId, _recordTypeId, pRecordId, pValue) RETURNING recordcustparamvalue_id INTO _recordCustParamValueId; IF _custParamValue IS NULL THEN _message := 'Custom Parameter ' || pParam || ' added with value ' || pValue || ' for ' || pRecordType || ' with ID ' || pRecordId || '.'; _action := 'Custom Parameter Added'; ELSE _message := 'Custom Parameter ' || pParam || ' value modified from ' || _custParamValue || ' to ' || pValue || ' for ' || pRecordType || ' with ID ' || pRecordId || '.'; _action := 'Custom Parameter Modified'; END IF; PERFORM (SELECT enterrecordlog( 'Custom Parameter'::TEXT, _action, pRecordType, pRecordId, 'Record Custom Parameter Value History'::TEXT, _recordCustParamValueId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.addcustparamvaluerecord(text, text, integer, text) OWNER TO admin; -- -- TOC entry 350 (class 1255 OID 36785) -- Name: adddoclinkpart(text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION adddoclinkpart(text, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pDocType ALIAS FOR $1; pDocNumber ALIAS FOR $2; pItemNumber ALIAS FOR $3; pRevision ALIAS FOR $4; pSerialNumber ALIAS FOR $5; _partId INTEGER; _docTypeId INTEGER; _message TEXT; _checkPartDocLinkId INTEGER; _partDocLinkId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('adddoclinkpart')); _docTypeId := (SELECT getdoctypeid(pDocType)); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _checkPartDocLinkId := (SELECT partdoclink_id FROM viewpartdoclink WHERE doctype_name = pDocType AND partdoclink_docnumber = pDocNumber AND part_id = _partId AND partdoclink_void_timestamp IS NULL); IF _checkPartDocLinkId IS NOT NULL THEN RETURN true; END IF; INSERT INTO partdoclink (partdoclink_doctype_id, partdoclink_part_id, partdoclink_docnumber) VALUES (_docTypeId, _partId, pDocNumber) RETURNING partdoclink_id INTO _partDocLinkId; _message := 'Document Link ' || pDocType || ' added with Document Number ' || pDocNumber || ' for ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; PERFORM (SELECT enterpartlog( 'Document Link'::TEXT, 'Document Link Added'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part Document Link History'::TEXT, _partDocLinkId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.adddoclinkpart(text, text, text, text, text) OWNER TO admin; -- -- TOC entry 355 (class 1255 OID 36786) -- Name: adddoclinkrecord(text, text, text, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION adddoclinkrecord(text, text, text, integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pDocType ALIAS FOR $1; pDocNumber ALIAS FOR $2; pRecordType ALIAS FOR $3; pRecordId ALIAS FOR $4; _recordTypeId INTEGER; _docTypeId INTEGER; _message TEXT; _checkRecordDocLinkId INTEGER; _recordDocLinkId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('adddoclinkpart')); _docTypeId := (SELECT getdoctypeid(pDocType)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _checkRecordDocLinkId := (SELECT recorddoclink_id FROM viewrecorddoclink WHERE doctype_name = pDocType AND recorddoclink_docnumber = pDocNumber AND recordtype_name = pRecordType AND recorddoclink_record_id = pRecordId AND recorddoclink_void_timestamp IS NULL); IF _checkRecordDocLinkId IS NOT NULL THEN RETURN true; END IF; INSERT INTO recorddoclink (recorddoclink_doctype_id, recorddoclink_recordtype_id, recorddoclink_record_id, recorddoclink_docnumber) VALUES (_docTypeId, _recordTypeId, pRecordId, pDocNumber) RETURNING recorddoclink_id INTO _recordDocLinkId; _message := 'Document Link ' || pDocType || ' added with Document Number ' || pDocNumber || ' for ' || pRecordType || ' with ID ' || pRecordId || '.'; PERFORM (SELECT enterrecordlog( 'Document Link'::TEXT, 'Document Link Added'::TEXT, pRecordType, pRecordId, 'Record Document Link History'::TEXT, _recordDocLinkId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.adddoclinkrecord(text, text, text, integer) OWNER TO admin; -- -- TOC entry 356 (class 1255 OID 36787) -- Name: addfilepart(text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addfilepart(text, text, text, text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pFileName ALIAS FOR $4; pFileType ALIAS FOR $5; pHexData ALIAS FOR $6; pHexThumbnail ALIAS FOR $7; pCustFileType ALIAS FOR $8; _partId INTEGER; _fileTypeId INTEGER; _custFileTypeId INTEGER; _partFileDataId INTEGER; _partFileThumbnailId INTEGER; _partFileId INTEGER; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addfilepart')); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _fileTypeId := (SELECT getfiletypeid(pFileType)); IF pCustFileType IS NOT NULL THEN _custFileTypeId := (SELECT getcustfiletypeid(pCustFileType)); ELSE _custFileTypeId := null; END IF; SELECT partfile_id INTO _partFileId FROM partfile WHERE partfile_filename = pFileName AND partfile_part_id = _partId AND partfile_void_timestamp IS NULL; IF _partFileId IS NOT NULL THEN RAISE EXCEPTION 'addfilepart: File with Name % and File Type % already exists for Item Number % Revision % Serial Number %.', pFileName, pFileType, pItemNumber, pRevision, pSerialNumber; END IF; INSERT INTO partfiledata (partfiledata_data) VALUES (decode(pHexData, $$hex$$)) RETURNING partfiledata_id INTO _partFileDataId; IF pHexThumbnail IS NOT NULL THEN INSERT INTO partfilethumbnail (partfilethumbnail_data) VALUES (decode(pHexThumbnail, $$hex$$)) RETURNING partfilethumbnail_id INTO _partFileThumbnailId; ELSE _partFileThumbnailId := null; END IF; INSERT INTO partfile (partfile_part_id, partfile_filetype_id, partfile_filename, partfile_partfiledata_id, partfile_partfilethumbnail_id, partfile_custfiletype_id) VALUES (_partId, _fileTypeId, pFileName, _partFileDataId, _partFileThumbnailId, _custFileTypeId) RETURNING partfile_id INTO _partFileId; IF pCustFileType IS NOT NULL THEN _message := 'File ' || pFileName || ' of File Type ' || pFileType || ' with Custom File Type ' || pCustFileType || ' attached to Part ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; ELSE _message := 'File ' || pFileName || ' of File Type ' || pFileType || ' attached to Part ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; END IF; PERFORM (SELECT enterpartlog( 'File Attachement'::TEXT, 'File Attached'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part File Attachement History'::TEXT, _partFileId, _message)); RETURN true; END$_$; ALTER FUNCTION public.addfilepart(text, text, text, text, text, text, text, text) OWNER TO admin; -- -- TOC entry 357 (class 1255 OID 36788) -- Name: addfilerecord(text, integer, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addfilerecord(text, integer, text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pRecordType ALIAS FOR $1; pRecordId ALIAS FOR $2; pFileName ALIAS FOR $3; pFileType ALIAS FOR $4; pHexData ALIAS FOR $5; pHexThumbnail ALIAS FOR $6; pCustFileType ALIAS FOR $7; _recordTypeId INTEGER; _fileTypeId INTEGER; _recordFileDataId INTEGER; _recordFileThumbnailId INTEGER; _recordFileId INTEGER; _custFileTypeId INTEGER; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addfilerecord')); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _fileTypeId := (SELECT getfiletypeid(pFileType)); IF pCustFileType IS NOT NULL THEN _custFileTypeId := (SELECT getcustfiletypeid(pCustFileType)); ELSE _custFileTypeId := null; END IF; SELECT recordfile_id INTO _recordFileId FROM recordfile WHERE recordfile_filename = pFileName AND recordfile_recordtype_id = _recordTypeId AND recordfile_record_id = pRecordId AND recordfile_void_timestamp IS NULL; IF _recordFileId IS NOT NULL THEN RAISE EXCEPTION 'addfilerecord: File with Name % and File Type % already exists for Record Type % with ID %.', pFileName, pFileType, pRecordType, pRecordId; END IF; INSERT INTO recordfiledata (recordfiledata_data) VALUES (decode(pHexData, $$hex$$)) RETURNING recordfiledata_id INTO _recordFileDataId; IF pHexThumbnail IS NOT NULL THEN INSERT INTO recordfilethumbnail (recordfilethumbnail_data) VALUES (decode(pHexThumbnail, $$hex$$)) RETURNING recordfilethumbnail_id INTO _recordFileThumbnailId; ELSE _recordFileThumbnailId := null; END IF; INSERT INTO recordfile (recordfile_recordtype_id, recordfile_record_id, recordfile_filetype_id, recordfile_filename, recordfile_recordfiledata_id, recordfile_recordfilethumbnail_id, recordfile_custfiletype_id) VALUES (_recordTypeId, pRecordId, _fileTypeId, pFileName, _recordFileDataId, _recordFileThumbnailId, _custFileTypeId) RETURNING recordfile_id INTO _recordFileId; IF pCustFileType IS NOT NULL THEN _message := 'File ' || pFileName || ' of File Type ' || pFileType || ' with Custom File Type ' || pCustFileType || ' attached to Record Type ' || pRecordType || ' with ID ' || pRecordId || '.'; ELSE _message := 'File ' || pFileName || ' of File Type ' || pFileType || ' attached to Record Type ' || pRecordType || ' with ID ' || pRecordId || '.'; END IF; PERFORM (SELECT enterrecordlog( 'File Attachement'::TEXT, 'File Attached'::TEXT, pRecordType, pRecordId, 'Record File Attachement History'::TEXT, _recordFileId, _message)); RETURN true; END$_$; ALTER FUNCTION public.addfilerecord(text, integer, text, text, text, text, text) OWNER TO admin; -- -- TOC entry 347 (class 1255 OID 36789) -- Name: addrolepriv(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addrolepriv(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pPriv ALIAS FOR $1; pRole ALIAS FOR $2; _rolePriv RECORD; _roleId INTEGER; _privId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addrolepriv')); _roleId := (SELECT getroleid(pRole)); _privId := (SELECT getprivid(pPriv)); SELECT rolepriv_id, rolepriv_priv_id, rolepriv_role_id INTO _rolePriv FROM rolepriv WHERE rolepriv_priv_id = _privId AND rolepriv_role_id = _roleId; IF _rolePriv.rolepriv_id IS NOT NULL THEN RETURN true; END IF; INSERT INTO rolepriv ( rolepriv_priv_id, rolepriv_role_id) VALUES ( _privId, _roleId); RETURN true; END;$_$; ALTER FUNCTION public.addrolepriv(text, text) OWNER TO admin; -- -- TOC entry 348 (class 1255 OID 36790) -- Name: addroleprivmodule(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addroleprivmodule(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pRole ALIAS FOR $2; _r RECORD; _moduleId INTEGER; _roleId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addroleprivmodule')); _moduleId := (SELECT getmoduleid(pModule)); _roleId := (SELECT getroleid(pRole)); FOR _r IN SELECT priv_name FROM priv WHERE priv_module_id = _moduleId LOOP IF _r.priv_name IS NOT NULL THEN PERFORM (SELECT addrolepriv( _r.priv_name, pRole)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.addroleprivmodule(text, text) OWNER TO admin; -- -- TOC entry 362 (class 1255 OID 36791) -- Name: addusrpriv(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addusrpriv(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pPriv ALIAS FOR $1; pUserName ALIAS FOR $2; _usrPriv RECORD; _usrId INTEGER; _privId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addusrpriv')); _usrId := (SELECT getusrid(pUserName)); _privId := (SELECT getprivid(pPriv)); SELECT usrpriv_id, usrpriv_priv_id, usrpriv_usr_id INTO _usrPriv FROM usrpriv WHERE usrpriv_priv_id = _privId AND usrpriv_usr_id = _usrId; IF _usrPriv.usrpriv_id IS NOT NULL THEN RETURN true; END IF; INSERT INTO usrpriv ( usrpriv_priv_id, usrpriv_usr_id) VALUES ( _privId, _usrId); RETURN true; END;$_$; ALTER FUNCTION public.addusrpriv(text, text) OWNER TO admin; -- -- TOC entry 363 (class 1255 OID 36792) -- Name: addusrprivmodule(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addusrprivmodule(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pUserName ALIAS FOR $2; _r RECORD; _moduleId INTEGER; _usrId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addusrprivmodule')); _moduleId := (SELECT getmoduleid(pModule)); _usrId := (SELECT getusrid(pUserName)); FOR _r IN SELECT priv_name FROM priv WHERE priv_module_id = _moduleId LOOP IF _r.priv_name IS NOT NULL THEN PERFORM (SELECT addusrpriv( _r.priv_name, pUserName)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.addusrprivmodule(text, text) OWNER TO admin; -- -- TOC entry 364 (class 1255 OID 36793) -- Name: addusrrole(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addusrrole(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pRole ALIAS FOR $1; pUserName ALIAS FOR $2; _usrRole RECORD; _roleId INTEGER; _usrId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('addusrrole')); _roleId := (SELECT getroleid(pRole)); _usrId := (SELECT getusrid(pUserName)); SELECT usrrole_id, usrrole_usr_id, usrrole_role_id INTO _usrRole FROM usrrole WHERE usrrole_usr_id = _usrId AND usrrole_role_id = _roleId; IF _usrRole.usrrole_id IS NOT NULL THEN RETURN true; END IF; INSERT INTO usrrole ( usrrole_usr_id, usrrole_role_id) VALUES ( _usrId, _roleId); RETURN true; END;$_$; ALTER FUNCTION public.addusrrole(text, text) OWNER TO admin; -- -- TOC entry 365 (class 1255 OID 36794) -- Name: addwatcherpart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addwatcherpart(text, text, text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pUser ALIAS FOR $4; _partId INTEGER; _usrId INTEGER; _partWatcherId INTEGER; BEGIN _usrId := (SELECT getusrid(pUser)); PERFORM (SELECT checkpriv('addwatcherpart')); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _partWatcherId := (SELECT partwatcher_id FROM partwatcher WHERE partwatcher_part_id = _partId AND partwatcher_usr_id = _usrId); IF _partWatcherId IS NOT NULL THEN RETURN true; END IF; INSERT INTO partwatcher (partwatcher_part_id, partwatcher_usr_id) VALUES (_partId, _usrId); RETURN true; END;$_$; ALTER FUNCTION public.addwatcherpart(text, text, text, text) OWNER TO admin; -- -- TOC entry 368 (class 1255 OID 36795) -- Name: addwatcherrecord(text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION addwatcherrecord(text, integer, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pRecordType ALIAS FOR $1; pRecordId ALIAS FOR $2; pUser ALIAS FOR $3; _recordTypeId INTEGER; _usrId INTEGER; _recordWatcherId INTEGER; BEGIN _usrId := (SELECT getusrid(pUser)); PERFORM (SELECT checkpriv('addwatcherrecord')); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _recordWatcherId := (SELECT recordwatcher_id FROM recordwatcher WHERE recordwatcher_recordtype_id = _recordTypeId AND recordwatcher_record_id = pRecordId AND recordwatcher_usr_id = _usrId); IF _recordWatcherId IS NOT NULL THEN RETURN true; END IF; INSERT INTO recordwatcher (recordwatcher_recordtype_id, recordwatcher_record_id, recordwatcher_usr_id) VALUES (_recordTypeId, pRecordId, _usrId); RETURN true; END;$_$; ALTER FUNCTION public.addwatcherrecord(text, integer, text) OWNER TO admin; -- -- TOC entry 369 (class 1255 OID 36796) -- Name: allocpart(text, text, text, text, text, text, text, integer, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION allocpart(text, text, text, text, text, text, text DEFAULT 'AMDA007'::text, integer DEFAULT 0, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParentItemNumber ALIAS FOR $1; pParentRevision ALIAS FOR $2; pParentSerialNumber ALIAS FOR $3; pItemNumber ALIAS FOR $4; pRevision ALIAS FOR $5; pSerialNumber ALIAS FOR $6; pAllocCode ALIAS FOR $7; pAllocPos ALIAS FOR $8; pLine ALIAS FOR $9; pStation ALIAS FOR $10; _parentviewpart RECORD; _viewpart RECORD; _allocCheck RECORD; _locationId INTEGER; _partStateId INTEGER; _deallocCheck BOOLEAN; _usrId INTEGER; _partAllocHistId INTEGER; _message TEXT; _r RECORD; _lineId INTEGER; _stationId INTEGER; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('allocpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, 'Child')); PERFORM (SELECT validatepart(pParentItemNumber, pParentRevision, pParentSerialNumber, 'Parent')); IF pStation IS NULL THEN _stationId := null; ELSE _stationId := (SELECT getstationid(pStation)); END IF; IF pLine IS NULL THEN _lineId := null; ELSE _lineId := (SELECT getstationid(pStation)); END IF; --Ensure Child is Valid SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, parent_part_id, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; --Ensure Parent is Valid SELECT part_id, item_id, item_number, cust_number, loc_number, partstate_name, part_rev, part_serialnumber, part_sequencenumber, parent_part_id INTO _parentviewpart FROM viewpart WHERE item_number = pParentItemNumber AND part_serialnumber = pParentSerialNumber AND part_rev = pParentRevision; IF _parentviewpart.part_id = _viewpart.part_id THEN RAISE EXCEPTION 'allocpart: Parent Item Number % Revision % Serial Number % cannot be allocated to itself.', pParentItemNumber, pParentRevision, pParentSerialNumber; END IF; SELECT * INTO _r FROM summsubass( pItemNumber, pRevision, pSerialNumber) WHERE c_item_number = pParentItemNumber AND c_part_rev = pParentRevision AND c_part_serialnumber = pParentSerialNumber; IF _r.t_item_number IS NOT NULL THEN RAISE EXCEPTION 'allocpart: Parent Item Number % Revision % Serial Number % exists within Child Item Number % Revision % Serial Number % summarized subassembly.', pParentItemNumber, pParentRevision, pParentSerialNumber, pItemNumber, pRevision, pSerialNumber; END IF; SELECT * INTO _allocCheck FROM checkalloc(pParentItemNumber, pParentRevision, pParentSerialNumber, pItemNumber, pRevision, pSerialNumber, pAllocPos); IF _allocCheck.oCode != pAllocCode THEN RAISE EXCEPTION 'allocpart: Allocation Code % returned by checkalloc does not match expected Allocation Code %.', _allocCheck.oCode, pAllocCode; END IF; IF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA001') THEN _deallocCheck := (SELECT deallocpart(_viewpart.parent_item_number, _viewpart.parent_part_rev, _viewpart.parent_part_serialnumber, pItemNumber, pRevision, pSerialNumber, 'AMDD002', pLine, pStation)); IF _deallocCheck = false THEN RAISE EXCEPTION 'allocpart: Could not deallocated Child Item Number % Revision % Serial Number % from its Parent Item Number % Revision % Serial Number %.', pItemNumber, pRevision, pSerialNumber, _viewpart.parent_item_number, _viewpart.parent_part_rev, _viewpart.parent_part_serialnumber; END IF; ELSIF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA002') THEN RETURN true; ELSIF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA003') THEN -- Log as allocation exception with code. ELSIF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA004') THEN -- Log as allocation exception with code. ELSIF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA005') THEN -- Log as allocation exception with code. ELSIF (_allocCheck.oCode = pAllocCode) AND (pAllocCode = 'AMDA006') THEN -- Log as allocation exception with code. END IF; UPDATE part SET (part_parent_part_id, part_allocpos) = (_parentviewpart.part_id, pAllocPos) WHERE part_id = _viewpart.part_id; IF _parentviewpart.loc_number IS NOT NULL THEN PERFORM (SELECT changelocsummsubass(pItemNumber, pRevision, pSerialNumber, _parentviewpart.loc_number)); END IF; --IF _parentviewpart.cust_number IS NOT NULL THEN --PERFORM (SELECT changecustpart(pItemNumber, pRevision, pSerialNumber, _parentviewpart.cust_number)); --END IF; INSERT INTO partallochist (partallochist_parent_part_id, partallochist_child_part_id, partallochist_allocpos, partallochist_alloctype, partallochist_alloccode, partallochist_usr_id, partallochist_parent_orig_item_id, partallochist_parent_orig_rev, partallochist_parent_orig_serialnumber, partallochist_child_orig_item_id, partallochist_child_orig_rev, partallochist_child_orig_serialnumber, partallochist_line_id, partallochist_station_id) VALUES (_parentviewpart.part_id, _viewpart.part_id, pAllocPos, 'a', pAllocCode, _usrId, _parentviewpart.item_id, _parentviewpart.part_rev, _parentviewpart.part_serialnumber, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber, _lineId, _stationId) RETURNING partallochist_id INTO _partAllocHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' allocated to ' || pParentItemNumber || ' ' || pParentRevision || ' ' || pParentSerialNumber || ' with allocation code ' || pAllocCode || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Allocated'::TEXT, pParentItemNumber, pParentRevision, pParentSerialNumber, 'Allocation History'::TEXT, _partAllocHistId, _message, null, null, pLine, pStation)); PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Allocated'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Allocation History'::TEXT, _partAllocHistId, _message, null, null, pLine, pStation)); PERFORM (SELECT changestatesummsubass(pItemNumber, pRevision, pSerialNumber, _parentviewpart.partstate_name, true, true)); RETURN true; END;$_$; ALTER FUNCTION public.allocpart(text, text, text, text, text, text, text, integer, text, text) OWNER TO admin; -- -- TOC entry 370 (class 1255 OID 36799) -- Name: changecustparam(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changecustparam(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; pNewParam ALIAS FOR $3; pNewDataType ALIAS FOR $4; _dataTypeId INTEGER; _custParam RECORD; _newCustParam RECORD; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('changecustparam')); IF pParam IS NULL THEN RAISE EXCEPTION 'changecustparam: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'changecustparam: Custom Parameter must be of Type r or p.'; END IF; SELECT custparam_id, custparam_type, custparam_param, custparam_datatype_id, datatype_type INTO _custParam FROM custparam LEFT OUTER JOIN datatype ON datatype.datatype_id = custparam.custparam_datatype_id WHERE custparam_param = pParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; IF _custParam.custparam_id IS NULL THEN RAISE EXCEPTION 'Custom Parameter % of Type % does not exist.', pParam, pType; END IF; SELECT custparam_id, custparam_type, custparam_param, custparam_datatype_id, datatype_type INTO _newCustParam FROM custparam LEFT OUTER JOIN datatype ON datatype.datatype_id = custparam.custparam_datatype_id WHERE custparam_param = pNewParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; IF _newCustParam.custparam_id IS NOT NULL THEN RAISE EXCEPTION 'New Custom Parameter % of Type % already exists.', pParam, pType; END IF; IF pParam != pNewParam THEN UPDATE custparam SET (custparam_param) = (pNewParam) WHERE custparam_id = _custParam.custparam_id; END IF; IF pNewDataType != _custParam.datatype_type THEN PERFORM (SELECT removecustparam(pType, pNewParam)); _custParamId := (SELECT addcustparam(pType, pNewParam, pNewDataType)); PERFORM (SELECT transfercustparamlink(_custParam.custparam_id, _custParamId)); PERFORM (SELECT transfercustparamcombo(_custParam.custparam_id, _custParamId)); END IF; RETURN true; END;$_$; ALTER FUNCTION public.changecustparam(text, text, text, text) OWNER TO admin; -- -- TOC entry 371 (class 1255 OID 36800) -- Name: changecustpart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changecustpart(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pCustNumber ALIAS FOR $4; _viewpart RECORD; _item RECORD; _partId INTEGER; _usrId INTEGER; _custId INTEGER; _custHistId INTEGER; _message TEXT; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changecustpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, part_cust_id, cust_number, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF pCustNumber IS NOT NULL THEN _custId := (SELECT getcustid(pCustNumber)); ELSE _custId := null; END IF; IF _custId = _viewpart.part_cust_id THEN RETURN true; ELSIF _custId IS NULL AND _viewpart.part_cust_id IS NULL THEN RETURN true; END IF; UPDATE part SET (part_cust_id) = (_custId) WHERE part_id = _viewpart.part_id; INSERT INTO custhist ( custhist_part_id, custhist_start_cust_id, custhist_end_cust_id, custhist_usr_id, custhist_orig_item_id, custhist_orig_rev, custhist_orig_serialnumber) VALUES ( _viewpart.part_id, _viewpart.part_cust_id, _custId, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING custhist_id INTO _custHistId; IF _viewpart.cust_number IS NULL THEN _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' Customer changed from <null> to ' || pCustNumber || '.'; ELSIF _custId IS NULL THEN _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' Customer changed from ' || _viewpart.cust_number || ' to <null>.'; ELSE _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' Customer changed from ' || _viewpart.cust_number || ' to ' || pCustNumber || '.'; END IF; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Customer Changed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Customer History'::TEXT, _custHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.changecustpart(text, text, text, text) OWNER TO admin; -- -- TOC entry 372 (class 1255 OID 36801) -- Name: changecustsummsubass(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changecustsummsubass(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pCustNumber ALIAS FOR $4; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changecustsummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); PERFORM (SELECT changecustpart( pItemNumber, pRevision, pSerialNumber, pCustNumber)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT changecustpart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber, pCustNumber)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.changecustsummsubass(text, text, text, text) OWNER TO admin; -- -- TOC entry 373 (class 1255 OID 36802) -- Name: changelocpart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changelocpart(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pLocNumber ALIAS FOR $4; _viewpart RECORD; _item RECORD; _partId INTEGER; _usrId INTEGER; _locId INTEGER; _locHistId INTEGER; _message TEXT; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changelocpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, part_loc_id, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; _locId := (SELECT getlocid(pLocNumber)); IF _locId = _viewpart.part_loc_id THEN RETURN true; END IF; UPDATE part SET (part_loc_id) = (_locId) WHERE part_id = _viewpart.part_id; INSERT INTO lochist ( lochist_part_id, lochist_start_loc_id, lochist_end_loc_id, lochist_usr_id, lochist_orig_item_id, lochist_orig_rev, lochist_orig_serialnumber) VALUES ( _viewpart.part_id, _viewpart.part_loc_id, _locId, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING lochist_id INTO _locHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' Location changed from ' || _viewpart.loc_number || ' to ' || pLocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Location Changed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Location History'::TEXT, _locHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.changelocpart(text, text, text, text) OWNER TO admin; -- -- TOC entry 374 (class 1255 OID 36803) -- Name: changelocsummsubass(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changelocsummsubass(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pLocNumber ALIAS FOR $4; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changelocsummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); PERFORM (SELECT changelocpart( pItemNumber, pRevision, pSerialNumber, pLocNumber)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT changelocpart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber, pLocNumber)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.changelocsummsubass(text, text, text, text) OWNER TO admin; -- -- TOC entry 375 (class 1255 OID 36804) -- Name: changerevpart(text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changerevpart(text, text, text, text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text, _partrevhistid integer) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pCurrentRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pDocNumber ALIAS FOR $4; pDocType ALIAS FOR $5; pTargetRevision ALIAS FOR $6; pLine ALIAS FOR $7; pStation ALIAS FOR $8; _viewpart RECORD; _item RECORD; _docTypeId INTEGER; _partid INTEGER; _usrId INTEGER; _lineId INTEGER; _stationId INTEGER; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changerevpart')); PERFORM (SELECT validatepart(pItemNumber, pCurrentRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pCurrentRevision; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'Item Number % not found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pTargetRevision) IS NULL THEN RAISE EXCEPTION 'Target Revision % of Selected Item % Not Found in AeryonMES', pTargetRevision, pItemNumber; END IF; _docTypeId := (SELECT getdoctypeid(pDocType)); IF pStation IS NULL THEN _stationId := null; ELSE _stationId := (SELECT getstationid(pStation)); END IF; IF pLine IS NULL THEN _lineId := null; ELSE _lineId := (SELECT getstationid(pStation)); END IF; UPDATE part SET ( part_rev ) = ( pTargetRevision ) WHERE part_id = _viewpart.part_id; INSERT INTO partrevhist (partrevhist_part_id, partrevhist_start_rev, partrevhist_end_rev, partrevhist_usr_id, partrevhist_orig_item_id, partrevhist_orig_rev, partrevhist_orig_serialnumber, partrevhist_doctype_id, partrevhist_docnumber, partrevhist_line_id, partrevhist_station_id) VALUES (_viewpart.part_id, pCurrentRevision, pTargetRevision, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber, _docTypeId, pDocNumber, _lineId, _stationId) RETURNING partrevhist_id INTO _partRevHistId; _partnumber := pItemNumber; _serialnumber := pSerialNumber; _revision := pTargetRevision; _itemfreqcode := _item.itemfreqcode_freqcode; _sequencenumber := _viewpart.part_sequencenumber; RETURN NEXT; RETURN; END;$_$; ALTER FUNCTION public.changerevpart(text, text, text, text, text, text, text, text) OWNER TO admin; -- -- TOC entry 378 (class 1255 OID 36805) -- Name: changestatepart(text, text, text, text, boolean, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changestatepart(text, text, text, text, boolean DEFAULT false, boolean DEFAULT false) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pTargetState ALIAS FOR $4; pOverride ALIAS FOR $5; pForce ALIAS FOR $6; _viewpart RECORD; _currentPartStateId INTEGER; _targetPartStateId INTEGER; _partStateHistId INTEGER; _usrId INTEGER; _message TEXT; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changestatepart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, partstate_name INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF _viewpart.partstate_name = pTargetState THEN RETURN true; END IF; IF (NOT pForce) THEN PERFORM (SELECT checkpartstateflow(_viewpart.partstate_name, pTargetState, pOverride)); ELSE pOverride := true; END IF; _currentPartStateId := (SELECT getpartstateid(_viewpart.partstate_name)); _targetPartStateId := (SELECT getpartstateid(pTargetState)); UPDATE part SET ( part_partstate_id ) = ( _targetPartStateId ) WHERE part_id = _viewpart.part_id; INSERT INTO partstatehist (partstatehist_part_id, partstatehist_start_partstate_id, partstatehist_end_partstate_id, partstatehist_usr_id, partstatehist_orig_item_id, partstatehist_orig_rev, partstatehist_orig_serialnumber, partstatehist_overridden) VALUES (_viewpart.part_id, _currentPartStateId, _targetPartStateId, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber, pOverride) RETURNING partstatehist_id INTO _partStateHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' part state changed from ' || _viewpart.partstate_name || ' to ' || pTargetState || '.'; PERFORM (SELECT enterpartlog( 'Part State Control'::TEXT, 'Part State Changed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part State History'::TEXT, _partStateHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.changestatepart(text, text, text, text, boolean, boolean) OWNER TO admin; -- -- TOC entry 379 (class 1255 OID 36806) -- Name: changestatesummsubass(text, text, text, text, boolean, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION changestatesummsubass(text, text, text, text, boolean DEFAULT false, boolean DEFAULT false) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pTargetPartState ALIAS FOR $4; pOverride ALIAS FOR $5; pForce ALIAS FOR $6; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('changestatesummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); PERFORM (SELECT changestatepart(pItemNumber, pRevision, pSerialNumber, pTargetPartState, pOverride, pForce)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT changestatepart(_r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber, pTargetPartState, pOverride, pForce)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.changestatesummsubass(text, text, text, text, boolean, boolean) OWNER TO admin; -- -- TOC entry 380 (class 1255 OID 36807) -- Name: checkalloc(text, text, text, text, text, text, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION checkalloc(text, text, text, text, text, text, integer DEFAULT 1) RETURNS TABLE(ocode text, omessage text) LANGUAGE plpgsql AS $_$DECLARE pParentItemNumber ALIAS FOR $1; pParentRevision ALIAS FOR $2; pParentSerialNumber ALIAS FOR $3; pItemNumber ALIAS FOR $4; pRevision ALIAS FOR $5; pSerialNumber ALIAS FOR $6; pAllocPos ALIAS FOR $7; _parentviewpart RECORD; _viewpart RECORD; _qtyPerCurrent INTEGER; _qtyAllocCurrent INTEGER; _qtyPerAny INTEGER; _qtyAllocAny INTEGER; _locationId INTEGER; _partStateId INTEGER; _r RECORD; _error BOOLEAN; BEGIN PERFORM (SELECT checkpriv('checkalloc')); BEGIN PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, 'Child')); EXCEPTION WHEN raise_exception THEN oCode := 'AMDA008'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ' || pRevision || ' Serial Number ' || pSerialNumber || ' does not exist.'; RETURN NEXT; RETURN; END; PERFORM (SELECT validatepart(pParentItemNumber, pParentRevision, pParentSerialNumber, 'Parent')); SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber, part_allocpos, parent_part_id, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber parent_part_id INTO _parentviewpart FROM viewpart WHERE item_number = pParentItemNumber AND part_serialnumber = pParentSerialNumber AND part_rev = pParentRevision; _error := false; IF _viewpart.parent_part_id = _parentviewpart.part_id AND _viewpart.part_allocpos = pAllocPos THEN oCode := 'AMDA002'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ' || pRevision || ' Serial Number ' || pSerialNumber || ' is already allocated to Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '.'; RETURN NEXT; RETURN; END IF; IF _viewpart.parent_part_id IS NOT NULL THEN oCode := 'AMDA001'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ' || pRevision || ' Serial Number ' || pSerialNumber || ' is allocated to Parent Item Number ' || _viewpart.parent_item_number || ' Revision ' || _viewpart.parent_part_rev || ' Serial Number ' || _viewpart.parent_part_serialnumber || ' in allocation position ' || _viewpart.part_allocpos || '.'; RETURN NEXT; _error = true; END IF; _qtyPerCurrent := (SELECT checkserialbom(pParentItemNumber, pParentRevision, pItemNumber, pRevision)); _qtyPerAny := (SELECT checkserialbom(pParentItemNumber, pParentRevision, pItemNumber, null)); IF _qtyPerAny <= 0 THEN oCode := 'AMDA003'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ANY Serial Number ' || pSerialNumber || ' not found in BOM of Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '.'; RETURN NEXT; _error = true; ELSIF _qtyPerCurrent <= 0 THEN oCode := 'AMDA004'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ' || pRevision || ' Serial Number ' || pSerialNumber || ' not found in BOM of Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '.'; RETURN NEXT; _error = true; END IF; _qtyAllocCurrent := (SELECT COUNT(c_item_number) FROM serialsubass(pParentItemNumber, pParentRevision, pParentSerialNumber) WHERE p_item_number = pParentItemNumber AND c_item_number = pItemNumber AND c_part_rev = pRevision); _qtyAllocAny := (SELECT COUNT(c_item_number) FROM serialsubass(pParentItemNumber, pParentRevision, pParentSerialNumber) WHERE p_item_number = pParentItemNumber AND c_item_number = pItemNumber); IF (_qtyPerCurrent > 0 AND _qtyAllocCurrent >= _qtyPerCurrent) THEN oCode := 'AMDA005'; oMessage := 'Qty ' || _qtyAllocCurrent || ' of Item Number ' || pItemNumber || ' Revision ' || pRevision || ' already allocted to Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '. Only ' || _qtyPerCurrent || ' may be allocated as per BOM Qty Per.'; RETURN NEXT; _error = true; ELSIF (_qtyPerAny > 0 AND _qtyAllocAny >= _qtyPerAny) THEN oCode := 'AMDA006'; oMessage := 'Qty ' || _qtyAllocAny || ' of Item Number ' || pItemNumber || ' Revision ANY already allocted to Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '. Only ' || _qtyPerAny || ' may be allocated as per BOM Qty Per.'; RETURN NEXT; _error = true; END IF; IF (NOT _error) THEN oCode := 'AMDA007'; oMessage := 'Child Item Number ' || pItemNumber || ' Revision ' || pRevision || ' Serial Number ' || pSerialNumber || ' can be allocated to Parent Item Number ' || pParentItemNumber || ' Revision ' || pParentRevision || ' Serial Number ' || pParentSerialNumber || '.'; RETURN NEXT; END IF; RETURN; END;$_$; ALTER FUNCTION public.checkalloc(text, text, text, text, text, text, integer) OWNER TO admin; -- -- TOC entry 381 (class 1255 OID 36808) -- Name: checkpartstateflow(text, text, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION checkpartstateflow(text, text, boolean DEFAULT false) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pCurrentState ALIAS FOR $1; pTargetState ALIAS FOR $2; pOverride ALIAS FOR $3; _stateInfo RECORD; BEGIN PERFORM (SELECT checkpriv('checkpartstateflow')); PERFORM (SELECT getpartstateid(pCurrentState)); PERFORM (SELECT getpartstateid(pTargetState)); IF pCurrentState = pTargetState THEN RETURN true; END IF; SELECT start_partstate_id, start_partstate_name, start_partstate_active, end_partstate_id, end_partstate_name, end_partstate_active, partstateflow_id, partstateflow_active, partstateflow_overridereq INTO _stateInfo FROM viewpartstateflow WHERE start_partstate_name = pCurrentState AND end_partstate_name = pTargetState; IF _stateInfo.partstateflow_id IS NULL THEN RAISE EXCEPTION 'checkpartstateflow: Part State Flow does not exist for Current State % to Target State %.', pCurrentState, pTargetState; ELSIF _stateInfo.partstateflow_active = false THEN RAISE EXCEPTION 'checkpartstateflow: Part State Flow is not active for Current State % to Target State %.', pCurrentState, pTargetState; ELSIF _stateInfo.end_partstate_active = false THEN RAISE EXCEPTION 'checkpartstateflow: Target Part State % is not active.', pTargetState; ELSIF _stateInfo.partstateflow_overridereq = true AND pOverride = false THEN RAISE EXCEPTION 'checkpartstateflow: Part State Flow requires override for Current State % to Target State %.', pCurrentState, pTargetState; ELSIF _stateInfo.partstateflow_overridereq = true AND pOverride = true THEN PERFORM (SELECT checkpriv('checkpartstateflowoverride')); END IF; RETURN true; END; $_$; ALTER FUNCTION public.checkpartstateflow(text, text, boolean) OWNER TO admin; -- -- TOC entry 351 (class 1255 OID 36809) -- Name: checkpriv(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION checkpriv(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pPriv ALIAS FOR $1; pUserName ALIAS FOR $2; _privGranted RECORD; _usrId INTEGER; BEGIN SELECT usr_username, priv_name INTO _privGranted FROM viewprivgranted WHERE usr_username = pUserName AND priv_name = pPriv; IF _privGranted.usr_username IS NULL OR (_privGranted.usr_username != pUserName) OR (_privGranted.priv_name != pPriv) THEN RAISE EXCEPTION 'checkpriv: User Name % does not have Privilege %.', pUserName, pPriv; END IF; RETURN true; END; $_$; ALTER FUNCTION public.checkpriv(text, text) OWNER TO admin; -- -- TOC entry 352 (class 1255 OID 36810) -- Name: checkserialbom(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION checkserialbom(text, text, text, text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pParentItemNumber ALIAS FOR $1; pParentRevision ALIAS FOR $2; pItemNumber ALIAS FOR $3; pRevision ALIAS FOR $4; _parentitem RECORD; _item RECORD; _serialbom RECORD; BEGIN PERFORM (SELECT checkpriv('checkserialbom')); IF pRevision IS NULL THEN pRevision = '%'; END IF; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _parentitem FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pParentItemNumber AND item_active = true; IF _parentitem.item_id IS NULL THEN RAISE EXCEPTION 'checkserialbom: Parent Item Number % not found in AeryonMES', pParentItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _parentitem.item_id AND itemrev_rev = pParentRevision) IS NULL THEN RAISE EXCEPTION 'checkserialbom: Parent Revision % of Selected Parent Item % Not Found in AeryonMES', pParentRevision, pParentItemNumber; END IF; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'checkserialbom: Item Number % not found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev LIKE pRevision LIMIT 1) IS NULL THEN RAISE EXCEPTION 'checkserialbom: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; SELECT * INTO _serialbom FROM serialbom(pParentItemNumber, pParentRevision) WHERE c_item_number = pItemNumber AND c_bom_itemrev LIKE pRevision; IF _serialbom.c_item_number IS NULL THEN RETURN 0; END IF; RETURN _serialbom.c_bom_qtyper; END;$_$; ALTER FUNCTION public.checkserialbom(text, text, text, text) OWNER TO admin; -- -- TOC entry 353 (class 1255 OID 36811) -- Name: checksummbom(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION checksummbom(text, text, text, text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pParentItemNumber ALIAS FOR $1; pParentRevision ALIAS FOR $2; pItemNumber ALIAS FOR $3; pRevision ALIAS FOR $4; _parentitem RECORD; _item RECORD; _summbom RECORD; BEGIN PERFORM (SELECT checkpriv('checksummbom')); IF pRevision IS NULL THEN pRevision = '%'; END IF; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _parentitem FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pParentItemNumber AND item_active = true; IF _parentitem.item_id IS NULL THEN RAISE EXCEPTION 'checksummbom: Parent Item Number % not found in AeryonMES', pParentItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _parentitem.item_id AND itemrev_rev = pParentRevision) IS NULL THEN RAISE EXCEPTION 'checksummbom: Parent Revision % of Selected Parent Item % Not Found in AeryonMES', pParentRevision, pParentItemNumber; END IF; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'checksummbom: Item Number % not found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev LIKE pRevision LIMIT 1) IS NULL THEN RAISE EXCEPTION 'checksummbom: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; SELECT * INTO _summbom FROM summbom(pParentItemNumber, pParentRevision) WHERE c_item_number = pItemNumber AND c_bom_itemrev LIKE pRevision; IF _summbom.c_item_number IS NULL THEN RETURN 0; END IF; RETURN _summbom.c_bom_qtyper; END;$_$; ALTER FUNCTION public.checksummbom(text, text, text, text) OWNER TO admin; -- -- TOC entry 382 (class 1255 OID 36812) -- Name: deactivatepart(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION deactivatepart(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _viewpart RECORD; _usrId INTEGER; _partActiveHistId INTEGER; _message TEXT; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('deactivatepart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id, item_id, item_number, part_active, part_rev, part_serialnumber, part_sequencenumber, part_cust_id, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF _viewpart.part_active IS false THEN RETURN true; END IF; UPDATE part SET (part_active) = (false) WHERE part_id = _viewpart.part_id; INSERT INTO partactivehist ( partactivehist_part_id, partactivehist_new_activestate, partactivehist_usr_id, partactivehist_orig_item_id, partactivehist_orig_rev, partactivehist_orig_serialnumber) VALUES ( _viewpart.part_id, false, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING partactivehist_id INTO _partActiveHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' made Inactive.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Deactivated'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Active History'::TEXT, _partActiveHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.deactivatepart(text, text, text) OWNER TO admin; -- -- TOC entry 383 (class 1255 OID 36813) -- Name: deactivatesummsubass(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION deactivatesummsubass(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('deactivatesummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); PERFORM (SELECT deactivatepart( pItemNumber, pRevision, pSerialNumber)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT deactivatepart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.deactivatesummsubass(text, text, text) OWNER TO admin; -- -- TOC entry 384 (class 1255 OID 36814) -- Name: deallocpart(text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION deallocpart(text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pLine ALIAS FOR $4; pStation ALIAS FOR $5; _parentviewpart RECORD; _viewpart RECORD; _allocCheck RECORD; _locationId INTEGER; _partStateId INTEGER; _usrId INTEGER; _message TEXT; _partAllocHistId INTEGER; _stationId INTEGER; _lineId INTEGER; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('deallocpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, 'Child', true)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, part_allocpos, parent_part_id, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF _viewpart.parent_part_id IS NOT NULL THEN RETURN deallocpart(_viewpart.parent_item_number, _viewpart.parent_part_rev, _viewpart.parent_part_serialnumber, pItemNumber, pRevision, pSerialNumber, 'AMDD001', pLine, pStation); ELSE RAISE EXCEPTION 'Parent does not exists for Child Item Number % Revision % Serial Number % and cannot be deallocated.', pItemNumber, pRevision, pSerialNumber; END IF; END;$_$; ALTER FUNCTION public.deallocpart(text, text, text, text, text) OWNER TO admin; -- -- TOC entry 386 (class 1255 OID 36815) -- Name: deallocpart(text, text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION deallocpart(text, text, text, text, text, text, text DEFAULT 'AMDD001'::text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParentItemNumber ALIAS FOR $1; pParentRevision ALIAS FOR $2; pParentSerialNumber ALIAS FOR $3; pItemNumber ALIAS FOR $4; pRevision ALIAS FOR $5; pSerialNumber ALIAS FOR $6; pDeallocCode ALIAS FOR $7; pLine ALIAS FOR $8; pStation ALIAS FOR $9; _parentviewpart RECORD; _viewpart RECORD; _allocCheck RECORD; _locationId INTEGER; _partStateId INTEGER; _usrId INTEGER; _message TEXT; _partAllocHistId INTEGER; _stationId INTEGER; _lineId INTEGER; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('deallocpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, 'Child', true)); PERFORM (SELECT validatepart(pParentItemNumber, pParentRevision, pParentSerialNumber, 'Parent', true)); IF pStation IS NULL THEN _stationId := null; ELSE _stationId := (SELECT getstationid(pStation)); END IF; IF pLine IS NULL THEN _lineId := null; ELSE _lineId := (SELECT getstationid(pStation)); END IF; SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, part_allocpos, parent_part_id, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber parent_part_id INTO _parentviewpart FROM viewpart WHERE item_number = pParentItemNumber AND part_serialnumber = pParentSerialNumber AND part_rev = pParentRevision; IF _viewpart.parent_part_id != _parentviewpart.part_id THEN RAISE EXCEPTION 'Child Item Number % Revision % Serial Number % is not allocated to Parent Item Number % Revision % Serial Number % and cannot be deallocated.', pItemNumber, pRevision, pSerialNumber, pParentItemNumber, pParentRevision, pParentSerialNumber; END IF; UPDATE part SET (part_parent_part_id, part_allocpos) = (null, null) WHERE part_id = _viewpart.part_id; INSERT INTO partallochist (partallochist_parent_part_id, partallochist_child_part_id, partallochist_allocpos, partallochist_alloctype, partallochist_alloccode, partallochist_usr_id, partallochist_parent_orig_item_id, partallochist_parent_orig_rev, partallochist_parent_orig_serialnumber, partallochist_child_orig_item_id, partallochist_child_orig_rev, partallochist_child_orig_serialnumber, partallochist_line_id, partallochist_station_id) VALUES (_parentviewpart.part_id, _viewpart.part_id, _viewpart.part_allocpos, 'd', pDeallocCode, _usrId, _parentviewpart.item_id, _parentviewpart.part_rev, _parentviewpart.part_serialnumber, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber, _lineId, _stationId) RETURNING partallochist_id INTO _partAllocHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' deallocated from ' || pParentItemNumber || ' ' || pParentRevision || ' ' || pParentSerialNumber || ' with deallocation code ' || pDeallocCode || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Deallocated'::TEXT, pParentItemNumber, pParentRevision, pParentSerialNumber, 'Allocation History'::TEXT, _partAllocHistId, _message, null, null, pLine, pStation)); PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Deallocated'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Allocation History'::TEXT, _partAllocHistId, _message, null, null, pLine, pStation)); RETURN true; END;$_$; ALTER FUNCTION public.deallocpart(text, text, text, text, text, text, text, text, text) OWNER TO admin; -- -- TOC entry 387 (class 1255 OID 36816) -- Name: enterbackflush(text, text, text, integer, text, text, text, text); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION enterbackflush(text, text, text, integer, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pQty ALIAS FOR $4; pDocType ALIAS FOR $5; pDocNumber ALIAS FOR $6; pLine ALIAS FOR $7; pStation ALIAS FOR $8; _itemId INTEGER; _viewpart RECORD; _docTypeId INTEGER; _usrId INTEGER; _backflushId INTEGER; _message TEXT; _stationId INTEGER; _lineId INTEGER; BEGIN _usrId := (SELECT getusrid()); PERFORM (SELECT checkpriv('enterbackflush')); IF pQty <= 0 THEN RAISE EXCEPTION 'enterbackflush: Backflush Qty cannot be equal to or less than 0.'; END IF; _itemId := (SELECT getitemid(pItemNumber)); _docTypeId := (SELECT getdoctypeid(pDocType)); _lineId := (SELECT getlineid(pLine)); _stationId := (SELECT getstationid(pStation)); IF pSerialNumber IS NOT NULL THEN PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); pQty := 1; END IF; SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF pSerialNumber IS NOT NULL AND (SELECT backflush_id FROM backflush WHERE backflush_void_timestamp IS NULL AND backflush_part_id = _viewpart.part_id) IS NOT NULL THEN RAISE EXCEPTION 'enterbackflush: Serialized part % % % has already been backflushed.', pItemNumber, pRevision, pSerialNumber; END IF; INSERT INTO backflush (backflush_orig_item_id, backflush_orig_rev, backflush_orig_serialnumber, backflush_part_id, backflush_qty, backflush_doctype_id, backflush_docnumber, backflush_create_usr_id, backflush_line_id, backflush_station_id) VALUES (_itemId, pRevision, pSerialNumber, _viewpart.part_id, pQty, _docTypeId, pDocNumber, _usrId, _lineId, _stationId) RETURNING backflush_id INTO _backflushId; UPDATE part SET (part_backflushed) = (true) WHERE part_id = _viewpart.part_id; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' qty ' || pQty || ' entered for backflush on ' || pDocType || ' ' || pDocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Enter Backflush'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Backflush ID'::TEXT, _backflushId, _message, pDocType, pDocNumber, pLine, pStation )); RETURN true; END;$_$; ALTER FUNCTION public.enterbackflush(text, text, text, integer, text, text, text, text) OWNER TO postgres; -- -- TOC entry 388 (class 1255 OID 36817) -- Name: enterpart(text, text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION enterpart(text, text, text, text, text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pDocNumber ALIAS FOR $4; pDocType ALIAS FOR $5; pLocation ALIAS FOR $6; pPartState ALIAS FOR $7; pLine ALIAS FOR $8; pStation ALIAS FOR $9; _viewpart RECORD; _item RECORD; _docTypeId INTEGER; _locationId INTEGER; _partStateId INTEGER; _prefix TEXT; _serialPattern TEXT; _r RECORD; _partId INTEGER; _message TEXT; _usrId INTEGER; _partActiveHistId INTEGER; BEGIN PERFORM (SELECT checkpriv('enterpart')); _usrId := (SELECT getusrid()); IF ((pSerialNumber = '') OR (pSerialNumber IS NULL)) THEN RAISE EXCEPTION 'enterpart: Serial Number cannot be blank or null.'; END IF; SELECT item_number, part_rev INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialNumber = pSerialNumber; IF _viewpart.item_number IS NOT NULL THEN RAISE EXCEPTION 'enterpart: Item Number % and Serial Number % already exists in AeryonMES at Revision %', pItemNumber, pSerialNumber, _viewpart.part_rev; END IF; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'enterpart: Item Number % Not Found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pRevision) IS NULL THEN RAISE EXCEPTION 'enterpart: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; _docTypeId := (SELECT getdoctypeid(pDocType)); _locationId := (SELECT getlocid(pLocation)); _partStateId := (SELECT getpartstateid(pPartState)); IF _item.item_serialstream_id IS NULL THEN _sequenceNumber := (SELECT MAX(part_sequencenumber) + 1 FROM part WHERE part_item_id = _item.item_id); ELSE _sequenceNumber := (SELECT MAX(part_sequencenumber) + 1 FROM part WHERE part_item_id IN (SELECT item_id FROM item WHERE item_serialstream_id = _item.item_serialstream_id)); END IF; IF _sequenceNumber IS NULL THEN _sequenceNumber := 1; END IF; _serialNumber := pSerialNumber; INSERT INTO part (part_item_id, part_rev, part_sequencenumber, part_serialnumber, part_loc_id, part_create_doctype_id, part_create_docnumber, part_partstate_id) VALUES (_item.item_id, pRevision, _sequenceNumber, _serialNumber, _locationId, _docTypeId, pDocNumber, _partStateId) RETURNING part_id INTO _partId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' entered into location ' || pLocation || ' with part state ' || pPartState || ' on ' || pDocType || ' ' || pDocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Entered'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part Record'::TEXT, _partId, _message, pDocType, pDocNumber, pLine, pStation)); INSERT INTO partactivehist ( partactivehist_part_id, partactivehist_new_activestate, partactivehist_usr_id, partactivehist_orig_item_id, partactivehist_orig_rev, partactivehist_orig_serialnumber) VALUES ( _partId, true, _usrId, _item.item_id, pRevision, _serialNumber ) RETURNING partactivehist_id INTO _partActiveHistId; _message := pItemNumber || ' ' || pRevision || ' ' || _serialNumber || ' made Active.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Activated'::TEXT, pItemNumber, pRevision, _serialNumber, 'Active History'::TEXT, _partActiveHistId, _message, pDocType, pDocNumber, pLine, pStation)); _partnumber := pItemNumber; _revision := pRevision; _itemfreqcode := _item.itemfreqcode_freqcode; RETURN NEXT; RETURN; END;$_$; ALTER FUNCTION public.enterpart(text, text, text, text, text, text, text, text, text) OWNER TO postgres; -- -- TOC entry 389 (class 1255 OID 36818) -- Name: enterpartlog(text, text, text, text, text, text, integer, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION enterpartlog(text, text, text, text, text, text, integer, text, text DEFAULT NULL::text, text DEFAULT NULL::text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pAction ALIAS FOR $2; pItemNumber ALIAS FOR $3; pRevision ALIAS FOR $4; pSerialNumber ALIAS FOR $5; pRecordType ALIAS FOR $6; pRecordId ALIAS FOR $7; pMessage ALIAS FOR $8; pDocType ALIAS FOR $9; pDocNumber ALIAS FOR $10; pLine ALIAS FOR $11; pStation ALIAS FOR $12; _viewpart RECORD; _moduleId INTEGER; _actionId INTEGER; _usrId INTEGER; _recordTypeId INTEGER; _docTypeId INTEGER; _stationId INTEGER; _lineID INTEGER; BEGIN PERFORM (SELECT checkpriv('enterpartlog')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber, parent_part_id, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; _moduleId := (SELECT getmoduleid(pModule)); _actionId := (SELECT getpartlogactionid(pAction)); _usrId := (SELECT getusrid()); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); IF pDocType IS NOT NULL THEN _docTypeId := (SELECT getdoctypeid(pDocType)); ELSIF pDocType IS NULL AND pDocNumber IS NOT NULL THEN RAISE EXCEPTION 'enterpartlog: DocType is null, but DocNumber is not null. Log could not be submitted.'; ELSE _docTypeId := null; END IF; IF pStation IS NULL THEN _stationId := null; ELSE _stationId := (SELECT getstationid(pStation)); END IF; IF pLine IS NULL THEN _lineId := null; ELSE _lineId := (SELECT getstationid(pStation)); END IF; INSERT INTO partlog ( partlog_module_id, partlog_partlogaction_id, partlog_part_id, partlog_recordtype_id, partlog_record_id, partlog_doctype_id, partlog_docnumber, partlog_message, partlog_usr_id, partlog_orig_item_id, partlog_orig_rev, partlog_orig_serialnumber, partlog_line_id, partlog_station_id ) VALUES ( _moduleId, _actionId, _viewpart.part_id, _recordTypeId, pRecordId, _docTypeId, pDocNumber, pMessage, _usrId, _viewpart.item_id, pRevision, pSerialNumber, _lineId, _stationId ); RETURN true; END; $_$; ALTER FUNCTION public.enterpartlog(text, text, text, text, text, text, integer, text, text, text, text, text) OWNER TO postgres; -- -- TOC entry 376 (class 1255 OID 36819) -- Name: enterrecordlog(text, text, text, integer, text, integer, text, text, text); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION enterrecordlog(text, text, text, integer, text, integer, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pAction ALIAS FOR $2; pRecordType ALIAS FOR $3; pRecordId ALIAS FOR $4; pSecRecordType ALIAS FOR $5; pSecRecordId ALIAS FOR $6; pMessage ALIAS FOR $7; pDocType ALIAS FOR $8; pDocNumber ALIAS FOR $9; _moduleId INTEGER; _actionId INTEGER; _usrId INTEGER; _recordTypeId INTEGER; _secRecordTypeId INTEGER; _docTypeId INTEGER; BEGIN PERFORM (SELECT checkpriv('enterrecordlog')); _moduleId := (SELECT getmoduleid(pModule)); _actionId := (SELECT getrecordlogactionid(pAction)); _usrId := (SELECT getusrid()); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _secRecordTypeId := (SELECT getrecordtypeid(pSecRecordType, true)); IF _secRecordTypeId IS NULL THEN pSecRecordId := null; END IF; IF pDocType IS NOT NULL THEN _docTypeId := (SELECT getdoctypeid(pDocType)); ELSIF pDocType IS NULL AND pDocNumber IS NOT NULL THEN RAISE EXCEPTION 'enterrecordlog: DocType is null, but DocNumber is not null. Log could not be submitted.'; ELSE _docTypeId := null; END IF; INSERT INTO recordlog ( recordlog_module_id, recordlog_recordlogaction_id, recordlog_recordtype_id, recordlog_record_id, recordlog_doctype_id, recordlog_docnumber, recordlog_message, recordlog_usr_id, recordlog_secondary_recordtype_id, recordlog_secondary_record_id ) VALUES ( _moduleId, _actionId, _recordTypeId, pRecordId, _docTypeId, pDocNumber, pMessage, _usrId, _secRecordTypeId, pSecRecordId ); RETURN true; END; $_$; ALTER FUNCTION public.enterrecordlog(text, text, text, integer, text, integer, text, text, text) OWNER TO postgres; -- -- TOC entry 390 (class 1255 OID 36820) -- Name: generatepart(text, text, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION generatepart(text, text, text, text, text, text, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pDocNumber ALIAS FOR $3; pDocType ALIAS FOR $4; pLocation ALIAS FOR $5; pPartState ALIAS FOR $6; pLine ALIAS FOR $7; pStation ALIAS FOR $8; _item RECORD; _docTypeId INTEGER; _locationId INTEGER; _partStateId INTEGER; _prefix TEXT; _serialPattern TEXT; _r RECORD; _message TEXT; _partId INTEGER; _usrId INTEGER; _partActiveHistId INTEGER; BEGIN PERFORM (SELECT checkpriv('generatepart')); _usrId := (SELECT getusrid()); SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'generatepart: Item Number % Not Found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pRevision) IS NULL THEN RAISE EXCEPTION 'generatepart: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; _docTypeId := (SELECT getdoctypeid(pDocType)); _locationId := (SELECT getlocid(pLocation)); _partStateId := (SELECT getpartstateid(pPartState)); _prefix := COALESCE(_item.serialprefix_prefix, 'SN'); _serialPattern := COALESCE(_item.serialpattern_pattern, 'XXXXXX'); IF _item.item_serialstream_id IS NULL THEN _sequencenumber := ( SELECT MAX(part_sequencenumber) + 1 FROM part WHERE part_item_id = _item.item_id); ELSE _sequencenumber := ( SELECT MAX(part_sequencenumber) + 1 FROM part WHERE part_item_id IN (SELECT item_id FROM item WHERE item_serialstream_id = _item.item_serialstream_id)); END IF; IF _sequencenumber IS NULL THEN _sequencenumber := 1; END IF; _serialnumber := (SELECT generateserial(_prefix, _sequenceNumber, _serialPattern)); INSERT INTO part (part_item_id, part_rev, part_sequencenumber, part_serialnumber, part_loc_id, part_create_doctype_id, part_create_docnumber, part_partstate_id) VALUES (_item.item_id, pRevision, _sequenceNumber, _serialNumber, _locationId, _docTypeId, pDocNumber, _partStateId) RETURNING part_id INTO _partId; _message := pItemNumber || ' ' || pRevision || ' ' || _serialnumber || ' generated into location ' || pLocation || ' with part state ' || pPartState || ' on ' || pDocType || ' ' || pDocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Generated'::TEXT, pItemNumber, pRevision, _serialnumber, 'Part Record'::TEXT, _partId, _message, pDocType, pDocNumber, pLine, pStation)); INSERT INTO partactivehist ( partactivehist_part_id, partactivehist_new_activestate, partactivehist_usr_id, partactivehist_orig_item_id, partactivehist_orig_rev, partactivehist_orig_serialnumber) VALUES ( _partId, true, _usrId, _item.item_id, pRevision, _serialNumber ) RETURNING partactivehist_id INTO _partActiveHistId; _message := pItemNumber || ' ' || pRevision || ' ' || _serialnumber || ' made Active.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Activated'::TEXT, pItemNumber, pRevision, _serialnumber, 'Active History'::TEXT, _partActiveHistId, _message, pDocType, pDocNumber, pLine, pStation)); _partnumber := pItemNumber; _revision := pRevision; _itemfreqcode := _item.itemfreqcode_freqcode; RETURN NEXT; RETURN; END;$_$; ALTER FUNCTION public.generatepart(text, text, text, text, text, text, text, text) OWNER TO admin; -- -- TOC entry 391 (class 1255 OID 36821) -- Name: generateparts(text, text, text, text, text, text, integer, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION generateparts(text, text, text, text, text, text, integer, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pDocNumber ALIAS FOR $3; pDocType ALIAS FOR $4; pLocation ALIAS FOR $5; pPartState ALIAS FOR $6; pQty ALIAS FOR $7; pLine ALIAS FOR $8; pStation ALIAS FOR $9; i INTEGER; BEGIN PERFORM (SELECT checkpriv('generateparts')); FOR i IN 1..pQty LOOP RETURN QUERY (SELECT * FROM generatepart(pItemNumber, pRevision, pDocNumber, pDocType, pLocation, pPartState, pLine, pStation)); END LOOP; RETURN; END;$_$; ALTER FUNCTION public.generateparts(text, text, text, text, text, text, integer, text, text) OWNER TO admin; -- -- TOC entry 392 (class 1255 OID 36822) -- Name: generateserial(text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION generateserial(text, integer, text) RETURNS text LANGUAGE plpgsql AS $_$DECLARE pPrefix ALIAS FOR $1; pSequenceNumber ALIAS FOR $2; pSerialPattern ALIAS FOR $3; _serialNumber TEXT; _serialPatternArray TEXT[]; _sequenceLength INTEGER; _sequenceNumberPadded TEXT; _p TEXT; _i INTEGER; _c INTEGER; BEGIN PERFORM (SELECT checkpriv('generateserial')); SELECT string_to_array(pSerialPattern, '-') INTO _serialPatternArray; _serialNumber := pPrefix; _sequenceLength := (SELECT length(pSerialPattern) - length(regexp_replace(pSerialPattern, 'X', '', 'g'))); _sequenceNumberPadded := (SELECT lpad(pSequenceNumber::TEXT, _sequenceLength, '0')); _c = 1; FOREACH _p IN ARRAY _serialPatternArray LOOP CASE WHEN _p LIKE 'Y%' THEN FOR _i IN 1..(SELECT length(_p)) LOOP _serialNumber := _serialNumber || (SELECT FLOOR(RANDOM() * 10)); END LOOP; WHEN _p LIKE 'X%' THEN _serialNumber := _serialNumber || (SELECT substr(_sequenceNumberPadded, _c, (SELECT length(_p)))); _c := _c + length(_p); ELSE _serialNumber := _serialNumber; END CASE; END LOOP; return _serialNumber; END;$_$; ALTER FUNCTION public.generateserial(text, integer, text) OWNER TO admin; -- -- TOC entry 393 (class 1255 OID 36823) -- Name: getcustfiletypeid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getcustfiletypeid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pcustFileType ALIAS FOR $1; _custFileTypeId INTEGER; BEGIN PERFORM (SELECT checkpriv('getcustfiletypeid')); IF pcustFileType IS NULL THEN RETURN null; END IF; SELECT custfiletype_id INTO _custFileTypeId FROM custfiletype WHERE custfiletype_name = pcustFileType; IF _custFileTypeId IS NULL THEN RAISE EXCEPTION 'getcustfiletypeid: file Type % not found.', pcustFileType; END IF; RETURN _custFileTypeId; END; $_$; ALTER FUNCTION public.getcustfiletypeid(text) OWNER TO admin; -- -- TOC entry 394 (class 1255 OID 36824) -- Name: getcustid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getcustid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pCust ALIAS FOR $1; _custId INTEGER; BEGIN PERFORM (SELECT checkpriv('getcustid')); SELECT cust_id INTO _custId FROM cust WHERE cust_number = pCust; IF _custId IS NULL THEN RAISE EXCEPTION 'getcustid: Customer % Not Found in AeryonMES', pCust; END IF; RETURN _custId; END; $_$; ALTER FUNCTION public.getcustid(text) OWNER TO admin; -- -- TOC entry 385 (class 1255 OID 36825) -- Name: getcustparamid(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getcustparamid(text, text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; _custParam RECORD; BEGIN PERFORM (SELECT checkpriv('getcustparamid')); IF pParam IS NULL THEN RAISE EXCEPTION 'getcustparamid: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'getcustparamid: Custom Parameter Type must be r or p.'; END IF; SELECT custparam_id INTO _custParam FROM custparam WHERE custparam_param = pParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; IF _custParam.custparam_id IS NULL THEN RAISE EXCEPTION 'getcustparamid: Custom Parameter % of Type % not found or is inactive', pParam, pType; END IF; RETURN _custParam.custparam_id; END; $_$; ALTER FUNCTION public.getcustparamid(text, text) OWNER TO admin; -- -- TOC entry 354 (class 1255 OID 36826) -- Name: getcustparamvaluepart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getcustparamvaluepart(text, text, text, text) RETURNS text LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pItemNumber ALIAS FOR $2; pRevision ALIAS FOR $3; pSerialNumber ALIAS FOR $4; _custParamValue TEXT; _partId INTEGER; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('getcustparamvaluepart')); _custParamId := (SELECT getcustparamid('p', pParam)); _partId = (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _custParamValue := ( SELECT partcustparamvalue_value FROM viewpartcustparamvalue WHERE custparam_id = _custParamId AND part_id = _partId AND partcustparamvalue_void_timestamp IS NULL ORDER BY partcustparamvalue_submit_timestamp DESC LIMIT 1); RETURN _custParamValue; END;$_$; ALTER FUNCTION public.getcustparamvaluepart(text, text, text, text) OWNER TO admin; -- -- TOC entry 395 (class 1255 OID 36827) -- Name: getcustparamvaluerecord(text, text, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getcustparamvaluerecord(text, text, integer) RETURNS text LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pRecordType ALIAS FOR $2; pRecordId ALIAS FOR $3; _custParamValue TEXT; _recordTypeId INTEGER; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('getcustparamvaluerecord')); IF pRecordId IS NULL THEN RAISE EXCEPTION 'getcustparamvaluerecord: Record ID cannot be null.'; END IF; _custParamId := (SELECT getcustparamid('r', pParam)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _custParamValue := ( SELECT recordcustparamvalue_value FROM viewrecordcustparamvalue WHERE custparam_id = _custParamId AND recordtype_id = _recordTypeId AND recordcustparamvalue_record_id = pRecordId AND recordcustparamvalue_void_timestamp IS NULL ORDER BY recordcustparamvalue_submit_timestamp DESC LIMIT 1); RETURN _custParamValue; END;$_$; ALTER FUNCTION public.getcustparamvaluerecord(text, text, integer) OWNER TO admin; -- -- TOC entry 396 (class 1255 OID 36828) -- Name: getdatatypeid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getdatatypeid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pDataType ALIAS FOR $1; _dataType RECORD; BEGIN PERFORM (SELECT checkpriv('getdatatypeid')); SELECT datatype_id, datatype_active INTO _dataType FROM datatype WHERE datatype_type = lower(pDataType); IF _dataType.datatype_id IS NULL THEN RAISE EXCEPTION 'getdatatypeid: Data Type % Not Found in AeryonMES', pDataType; ELSIF _dataType.datatype_active = false THEN RAISE EXCEPTION 'getdatatypeid: Data Type % is inactive', pDataType; END IF; RETURN _dataType.datatype_id; END; $_$; ALTER FUNCTION public.getdatatypeid(text) OWNER TO admin; -- -- TOC entry 397 (class 1255 OID 36829) -- Name: getdoctypeid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getdoctypeid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pDocType ALIAS FOR $1; _docTypeId INTEGER; BEGIN PERFORM (SELECT checkpriv('getdoctypeid')); SELECT doctype_id INTO _docTypeId FROM doctype WHERE doctype_name = pDocType; IF _docTypeId IS NULL THEN RAISE EXCEPTION 'getdoctypeid: Doc Type % Not Found in AeryonMES', pDocType; END IF; RETURN _docTypeId; END; $_$; ALTER FUNCTION public.getdoctypeid(text) OWNER TO admin; -- -- TOC entry 398 (class 1255 OID 36830) -- Name: getfilepart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getfilepart(text, text, text, text) RETURNS text LANGUAGE plpgsql AS $_$ DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pFileName ALIAS FOR $4; _partId INTEGER; _partFile RECORD; _hexData TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('getfilepart')); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); SELECT partfile_id, partfile_partfiledata_id INTO _partFile FROM partfile WHERE partfile_filename = pFileName AND partfile_part_id = _partId AND partfile_void_timestamp IS NULL; IF _partFile.partfile_id IS NULL THEN RAISE EXCEPTION 'getfilepart: File with Name % does not exist for Item Number % Revision % Serial Number %.', pFileName, pItemNumber, pRevision, pSerialNumber; END IF; SELECT encode(partfiledata_data, $$hex$$) INTO _hexData FROM partfiledata WHERE partfiledata_id = _partFile.partfile_partfiledata_id; RETURN _hexData; END$_$; ALTER FUNCTION public.getfilepart(text, text, text, text) OWNER TO admin; -- -- TOC entry 399 (class 1255 OID 36831) -- Name: getfilerecord(text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getfilerecord(text, integer, text) RETURNS text LANGUAGE plpgsql AS $_$ DECLARE pRecordType ALIAS FOR $1; pRecordId ALIAS FOR $2; pFileName ALIAS FOR $3; _recordTypeId INTEGER; _recordFile RECORD; _hexData TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('getfilerecord')); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); SELECT recordfile_id, recordfile_recordfiledata_id INTO _recordFile FROM recordfile WHERE recordfile_filename = pFileName AND recordfile_recordtype_id = _recordTypeId AND recordfile_record_id = pRecordId AND recordfile_void_timestamp IS NULL; IF _recordFile.recordfile_id IS NULL THEN RAISE EXCEPTION 'getfilerecord: File with Name % and File Type % does not exist for Record Type % with ID %.', pFileName, pFileType, pRecordType, pRecordId; END IF; SELECT encode(recordfiledata_data, $$hex$$) INTO _hexData FROM recordfiledata WHERE recordfiledata_id = _recordFile.recordfile_recordfiledata_id; RETURN _hexData; END$_$; ALTER FUNCTION public.getfilerecord(text, integer, text) OWNER TO admin; -- -- TOC entry 400 (class 1255 OID 36832) -- Name: getfiletypeid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getfiletypeid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pFileType ALIAS FOR $1; _fileTypeId INTEGER; BEGIN PERFORM (SELECT checkpriv('getfiletypeid')); IF pfileType IS NULL THEN RETURN null; END IF; SELECT filetype_id INTO _fileTypeId FROM filetype WHERE filetype_mediatypename = pFileType; IF _fileTypeId IS NULL THEN RAISE EXCEPTION 'getfiletypeid: file Type % not found.', pfileType; END IF; RETURN _fileTypeId; END; $_$; ALTER FUNCTION public.getfiletypeid(text) OWNER TO admin; -- -- TOC entry 401 (class 1255 OID 36833) -- Name: getitemid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getitemid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; _itemId INTEGER; BEGIN PERFORM (SELECT checkpriv('getitemid')); SELECT item_id INTO _itemId FROM item WHERE item_number = pItemNumber; IF _itemId IS NULL THEN RAISE EXCEPTION 'getitemid: Item Number % Not Found in AeryonMES', pItemNumber; END IF; RETURN _itemId; END; $_$; ALTER FUNCTION public.getitemid(text) OWNER TO admin; -- -- TOC entry 402 (class 1255 OID 36834) -- Name: getlineid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getlineid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pLine ALIAS FOR $1; _lineId INTEGER; BEGIN PERFORM (SELECT checkpriv('getlineid')); SELECT line_id INTO _lineId FROM line WHERE line_name = pLine; IF _lineId IS NULL THEN RAISE EXCEPTION 'getlineid: line % Not Found in AeryonMES.', pLine; END IF; RETURN _lineId; END; $_$; ALTER FUNCTION public.getlineid(text) OWNER TO admin; -- -- TOC entry 403 (class 1255 OID 36835) -- Name: getlocid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getlocid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pLoc ALIAS FOR $1; _locId INTEGER; BEGIN PERFORM (SELECT checkpriv('getlocid')); SELECT loc_id INTO _locId FROM loc WHERE loc_number = pLoc; IF _locId IS NULL THEN RAISE EXCEPTION 'getlocid: Location % Not Found in AeryonMES', pLoc; END IF; RETURN _locId; END; $_$; ALTER FUNCTION public.getlocid(text) OWNER TO admin; -- -- TOC entry 404 (class 1255 OID 36836) -- Name: getmoduleid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getmoduleid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; _moduleId INTEGER; BEGIN PERFORM (SELECT checkpriv('getmoduleid')); SELECT module_id INTO _moduleId FROM module WHERE module_name = pModule; IF _moduleId IS NULL THEN RAISE EXCEPTION 'getmoduleid: Module % Not Found in AeryonMES', pModule; END IF; RETURN _moduleId; END; $_$; ALTER FUNCTION public.getmoduleid(text) OWNER TO admin; -- -- TOC entry 405 (class 1255 OID 36837) -- Name: getpartid(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getpartid(text, text, text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _partid INTEGER; BEGIN PERFORM (SELECT checkpriv('getpartid')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id INTO _partid FROM part WHERE part_item_id = getitemid(pItemNumber) AND part_rev = pRevision AND part_serialnumber = pSerialNumber; RETURN _partid; END; $_$; ALTER FUNCTION public.getpartid(text, text, text) OWNER TO admin; -- -- TOC entry 406 (class 1255 OID 36838) -- Name: getpartlogactionid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getpartlogactionid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pPartLogAction ALIAS FOR $1; _partLogActionId INTEGER; BEGIN PERFORM (SELECT checkpriv('getpartlogactionid')); SELECT partlogaction_id INTO _partLogActionId FROM partlogaction WHERE partlogaction_name = pPartLogAction; IF _partLogActionId IS NULL THEN RAISE EXCEPTION 'getpartlogactionid: Part Log Action % Not Found in AeryonMES', _partLogActionId; END IF; RETURN _partLogActionId; END; $_$; ALTER FUNCTION public.getpartlogactionid(text) OWNER TO admin; -- -- TOC entry 407 (class 1255 OID 36839) -- Name: getpartscrapcodeid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getpartscrapcodeid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pPartScrapCode ALIAS FOR $1; _partScrapCodeId INTEGER; BEGIN PERFORM (SELECT checkpriv('getpartscrapcodeid')); SELECT partscrapcode_id INTO _partScrapCodeId FROM partscrapcode WHERE partscrapcode_code = pPartScrapCode; IF _partScrapCodeId IS NULL THEN RAISE EXCEPTION 'getpartscrapcodeid: Part Scrap Code % Not Found in AeryonMES', pPartScrapCode; END IF; RETURN _partScrapCodeId; END; $_$; ALTER FUNCTION public.getpartscrapcodeid(text) OWNER TO admin; -- -- TOC entry 408 (class 1255 OID 36840) -- Name: getpartstateid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getpartstateid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pPartState ALIAS FOR $1; _partStateId INTEGER; BEGIN PERFORM (SELECT checkpriv('getpartstateid')); SELECT partstate_id INTO _partStateId FROM partstate WHERE partstate_name = pPartState; IF _partStateId IS NULL THEN RAISE EXCEPTION 'getpartstateid: Part State % Not Found in AeryonMES', pPartState; END IF; RETURN _partStateId; END; $_$; ALTER FUNCTION public.getpartstateid(text) OWNER TO admin; -- -- TOC entry 358 (class 1255 OID 36841) -- Name: getprivid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getprivid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pPriv ALIAS FOR $1; _privId INTEGER; BEGIN PERFORM (SELECT checkpriv('getprivid')); SELECT priv_id INTO _privId FROM priv WHERE priv_name = pPriv; IF _privId IS NULL THEN RAISE EXCEPTION 'getprivid: Privilege % Not Found in AeryonMES', pPriv; END IF; RETURN _privId; END; $_$; ALTER FUNCTION public.getprivid(text) OWNER TO admin; -- -- TOC entry 359 (class 1255 OID 36842) -- Name: getrecordlogactionid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getrecordlogactionid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE precordlogAction ALIAS FOR $1; _recordlogActionId INTEGER; BEGIN PERFORM (SELECT checkpriv('getrecordlogactionid')); SELECT recordlogaction_id INTO _recordlogActionId FROM recordlogaction WHERE recordlogaction_name = precordlogAction; IF _recordlogActionId IS NULL THEN RAISE EXCEPTION 'getrecordlogactionid: Part Log Action % Not Found in AeryonMES', _recordlogActionId; END IF; RETURN _recordlogActionId; END; $_$; ALTER FUNCTION public.getrecordlogactionid(text) OWNER TO admin; -- -- TOC entry 360 (class 1255 OID 36843) -- Name: getrecordtypeid(text, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getrecordtypeid(text, boolean DEFAULT false) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pRecordType ALIAS FOR $1; pAllowNull ALIAS FOR $2; _recordTypeId INTEGER; BEGIN PERFORM (SELECT checkpriv('getrecordtypeid')); IF pRecordType IS NULL AND pAllowNull = true THEN RETURN null; END IF; SELECT recordtype_id INTO _recordTypeId FROM recordtype WHERE recordtype_name = pRecordType; IF _recordTypeId IS NULL THEN RAISE EXCEPTION 'getrecordtypeid: Record Type % Not Found in AeryonMES', pRecordType; END IF; RETURN _recordTypeId; END; $_$; ALTER FUNCTION public.getrecordtypeid(text, boolean) OWNER TO admin; -- -- TOC entry 361 (class 1255 OID 36844) -- Name: getroleid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getroleid(text) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pRole ALIAS FOR $1; _roleId INTEGER; BEGIN PERFORM (SELECT checkpriv('getroleid')); SELECT role_id INTO _roleId FROM role WHERE role_name = pRole; IF _roleId IS NULL THEN RAISE EXCEPTION 'getroleid: Role % Not Found in AeryonMES', pRole; END IF; RETURN _roleId; END; $_$; ALTER FUNCTION public.getroleid(text) OWNER TO admin; -- -- TOC entry 366 (class 1255 OID 36845) -- Name: getstationid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getstationid(text) RETURNS integer LANGUAGE plpgsql AS $_$ DECLARE pStation ALIAS FOR $1; _stationId INTEGER; BEGIN PERFORM (SELECT checkpriv('getstationid')); SELECT station_id INTO _stationId FROM station WHERE station_name = pStation; IF _stationId IS NULL THEN RAISE EXCEPTION 'getstationid: Station % Not Found in AeryonMES.', pStation; END IF; RETURN _stationId; END; $_$; ALTER FUNCTION public.getstationid(text) OWNER TO admin; -- -- TOC entry 367 (class 1255 OID 36846) -- Name: getusrid(text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION getusrid(text DEFAULT "current_user"()) RETURNS integer LANGUAGE plpgsql AS $_$DECLARE pUserName ALIAS FOR $1; _usrInfo RECORD; BEGIN PERFORM (SELECT checkpriv('getusrid')); SELECT usr_id, usr_active INTO _usrInfo FROM usr WHERE usr_username = pUserName; IF _usrInfo.usr_id IS NULL THEN RAISE EXCEPTION 'getusrid: User % does not exist.', pUserName; ELSIF _usrInfo.usr_active = false THEN RAISE EXCEPTION 'getusrid: User % is inactive.', pUserName; END IF; RETURN _usrInfo.usr_id; END; $_$; ALTER FUNCTION public.getusrid(text) OWNER TO admin; -- -- TOC entry 377 (class 1255 OID 36847) -- Name: postbackflush(integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION postbackflush(integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pBackflushId ALIAS FOR $1; _backflushCheck RECORD; _usrId INTEGER; _message TEXT; BEGIN _usrId := (SELECT getusrid()); PERFORM (SELECT checkpriv('postbackflush')); SELECT backflush_id, backflush_part_id, item_number, backflush_orig_item_id, backflush_orig_rev, backflush_orig_serialnumber, backflush_qty, doctype_name, backflush_docnumber, backflush_void_timestamp, backflush_complete_timestamp INTO _backflushCheck FROM backflush LEFT OUTER JOIN item ON item_id = backflush_orig_item_id LEFT OUTER JOIN doctype ON doctype_id = backflush_doctype_id WHERE backflush_id = pBackflushId; IF _backflushCheck.backflush_id IS NULL THEN RAISE EXCEPTION 'postbackflush: Backflush ID % does not exist.', pBackflushId; ELSIF _backflushCheck.backflush_void_timestamp IS NOT NULL THEN RAISE EXCEPTION 'postbackflush: Backflush ID % is VOID and cannot be posted.', pBackflushId; ELSIF _backflushCheck.backflush_complete_timestamp IS NOT NULL THEN RAISE EXCEPTION 'postbackflush: Backflush ID % is COMPLETE and cannot be posted.', pBackflushId; END IF; UPDATE backflush SET (backflush_complete_usr_id, backflush_complete_timestamp) = (_usrId, now()) WHERE backflush_id = pBackflushId; _message := 'Backflush ID ' || pBackflushID || ' posted: ' || _backflushCheck.item_number || ' ' || _backflushCheck.backflush_orig_rev || ' ' || _backflushCheck.backflush_orig_serialnumber || ' qty ' || _backflushCheck.backflush_qty || ' on ' || _backflushCheck.doctype_name || ' ' || _backflushCheck.backflush_docnumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Post Backflush'::TEXT, _backflushCheck.item_number, _backflushCheck.backflush_orig_rev, _backflushCheck.backflush_orig_serialnumber, 'Backflush ID'::TEXT, pBackflushId, _message, _backflushCheck.doctype_name, _backflushCheck.backflush_docnumber)); RETURN true; END;$_$; ALTER FUNCTION public.postbackflush(integer) OWNER TO admin; -- -- TOC entry 409 (class 1255 OID 36848) -- Name: refurbpart(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION refurbpart(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _viewpart RECORD; _usrId INTEGER; _partRefurbHistId INTEGER; _message TEXT; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('refurbpart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id, item_id, part_rev, item_number, part_active, part_refurb, part_serialnumber, part_sequencenumber, part_cust_id, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF _viewpart.part_refurb THEN RETURN true; END IF; UPDATE part SET (part_refurb) = (true) WHERE part_id = _viewpart.part_id; INSERT INTO partrefurbhist ( partrefurbhist_part_id, partrefurbhist_refurb, partrefurbhist_usr_id, partrefurbhist_orig_item_id, partrefurbhist_orig_rev, partrefurbhist_orig_serialnumber) VALUES ( _viewpart.part_id, true, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING partrefurbhist_id INTO _partRefurbHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' Refurbed.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Refurbed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Refurb History'::TEXT, _partRefurbHistId, _message)); PERFORM (SELECT activatepart(pItemNumber, pRevision, pSerialNumber)); RETURN true; END;$_$; ALTER FUNCTION public.refurbpart(text, text, text) OWNER TO admin; -- -- TOC entry 410 (class 1255 OID 36849) -- Name: refurbsummsubass(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION refurbsummsubass(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('refurbsummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); PERFORM (SELECT refurbpart( pItemNumber, pRevision, pSerialNumber)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT refurbpart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.refurbsummsubass(text, text, text) OWNER TO admin; -- -- TOC entry 411 (class 1255 OID 36850) -- Name: removecustparam(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removecustparam(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; _custParam RECORD; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparam')); IF pParam IS NULL THEN RAISE EXCEPTION 'removecustparam: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'removecustparam: Custom Parameter must be of Type r or p.'; END IF; SELECT custparam_id, custparam_type, custparam_param, custparam_datatype_id, datatype_type INTO _custParam FROM custparam LEFT OUTER JOIN datatype ON datatype.datatype_id = custparam.custparam_datatype_id WHERE custparam_param = pParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; IF _custParam.custparam_id IS NULL THEN RETURN true; END IF; UPDATE custparam SET (custparam_void_timestamp) = (now()) WHERE custparam_param = pParam AND custparam_type = pType AND custparam_void_timestamp IS NULL; RETURN true; END;$_$; ALTER FUNCTION public.removecustparam(text, text) OWNER TO admin; -- -- TOC entry 412 (class 1255 OID 36851) -- Name: removecustparamcombo(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removecustparamcombo(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pType ALIAS FOR $1; pParam ALIAS FOR $2; pValue ALIAS FOR $3; _custParamCombo RECORD; _custParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparamcombo')); IF pParam IS NULL THEN RAISE EXCEPTION 'removecustparamcombo: Custom Parameter Name cannot be null.'; END IF; IF pType != 'r' AND pType != 'p' THEN RAISE EXCEPTION 'removecustparamcombo: Custom Parameter must be of Type r or p.'; END IF; _custParamId := (SELECT getcustparamid(pType, pParam)); SELECT custparamcombo_id, custparamcombo_custparam_id, custparamcombo_value, custparamcombo_active INTO _custParamCombo FROM custparamcombo WHERE custparamcombo_custparam_id = _custParamId AND custparamcombo_value = pValue AND custparamcombo_active = true; IF _custParamCombo.custparamcombo_id IS NULL THEN RETURN true; END IF; UPDATE custparamcombo SET custparamcombo_active = false WHERE custparamcombo_custparam_id = _custParamId AND custparamcombo_value = pValue; RETURN true; END;$_$; ALTER FUNCTION public.removecustparamcombo(text, text, text) OWNER TO admin; -- -- TOC entry 413 (class 1255 OID 36852) -- Name: removecustparamlinkitem(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removecustparamlinkitem(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pItemNumber ALIAS FOR $2; _itemCustParamLink RECORD; _custParamId INTEGER; _itemId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparamlinkitem')); _custParamId := (SELECT getcustparamid('p', pParam)); _itemId := (SELECT getitemid(pItemNumber)); SELECT itemcustparamlink_id, itemcustparamlink_custparam_id, itemcustparamlink_item_id, itemcustparamlink_active INTO _itemCustParamLink FROM itemcustparamlink WHERE itemcustparamlink_custparam_id = _custParamId AND itemcustparamlink_item_id = _itemId AND itemcustparamlink_active = true; IF _itemCustParamLink.itemcustparamlink_id IS NULL THEN RETURN true; ELSIF _itemCustParamLink.itemcustparamlink_id IS NOT NULL AND _itemCustParamLink.itemcustparamlink_active = true THEN UPDATE itemcustparamlink SET itemcustparamlink_active = false WHERE itemcustparamlink_custparam_id = _custParamId AND itemcustparamlink_item_id = _itemId; END IF; RETURN true; END;$_$; ALTER FUNCTION public.removecustparamlinkitem(text, text) OWNER TO admin; -- -- TOC entry 414 (class 1255 OID 36853) -- Name: removecustparamlinkrecord(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removecustparamlinkrecord(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pRecordType ALIAS FOR $2; _recordCustParamLink RECORD; _custParamId INTEGER; _recordTypeid INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparamlinkrecord')); _custParamId := (SELECT getcustparamid('r', pParam)); _recordTypeid := (SELECT getrecordtypeid(pRecordType)); SELECT recordcustparamlink_id, recordcustparamlink_custparam_id, recordcustparamlink_recordtype_id, recordcustparamlink_active INTO _recordCustParamLink FROM recordcustparamlink WHERE recordcustparamlink_custparam_id = _custParamId AND recordcustparamlink_recordtype_id = _recordTypeid AND recordcustparamlink_active = true; IF _recordCustParamLink.recordcustparamlink_id IS NULL THEN RETURN true; ELSIF _recordCustParamLink.recordcustparamlink_id IS NOT NULL AND _recordCustParamLink.recordcustparamlink_active = true THEN UPDATE recordcustparamlink SET recordcustparamlink_active = false WHERE recordcustparamlink_custparam_id = _custParamId AND recordcustparamlink_recordtype_id = _recordTypeid; END IF; RETURN true; END;$_$; ALTER FUNCTION public.removecustparamlinkrecord(text, text) OWNER TO admin; -- -- TOC entry 415 (class 1255 OID 36854) -- Name: removecustparamvaluepart(text, text, text, text, boolean); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION removecustparamvaluepart(text, text, text, text, boolean DEFAULT true) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pItemNumber ALIAS FOR $2; pRevision ALIAS FOR $3; pSerialNumber ALIAS FOR $4; pLog ALIAS FOR $5; _partId INTEGER; _custParamId INTEGER; _r RECORD; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparamvaluepart')); _custParamId := (SELECT getcustparamid('p', pParam)); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); FOR _r IN SELECT custparam_id FROM custparam WHERE custparam_param = pParam AND custparam_type = 'p' LOOP IF _r.custparam_id IS NOT NULL THEN UPDATE partcustparamvalue SET partcustparamvalue_void_timestamp = now() WHERE partcustparamvalue_custparam_id = _r.custparam_id AND partcustparamvalue_part_id = _partId AND partcustparamvalue_void_timestamp IS NULL; END IF; END LOOP; IF pLog = true THEN _message := 'Custom Parameter ' || pParam || ' removed for ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; PERFORM (SELECT enterpartlog( 'Custom Parameter'::TEXT, 'Custom Parameter Removed', pItemNumber, pRevision, pSerialNumber, 'Part Custom Parameter Value History'::TEXT, null, _message)); END IF; RETURN true; END;$_$; ALTER FUNCTION public.removecustparamvaluepart(text, text, text, text, boolean) OWNER TO postgres; -- -- TOC entry 416 (class 1255 OID 36855) -- Name: removecustparamvaluerecord(text, text, integer, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removecustparamvaluerecord(text, text, integer, boolean DEFAULT true) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pParam ALIAS FOR $1; pRecordType ALIAS FOR $2; pRecordId ALIAS FOR $3; pLog ALIAS FOR $4; _recordTypeId INTEGER; _custParamId INTEGER; _r RECORD; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removecustparamvaluerecord')); IF pRecordId IS NULL THEN RAISE EXCEPTION 'removecustparamvaluerecord: Record ID cannot be null.'; END IF; _custParamId := (SELECT getcustparamid('r', pParam)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); FOR _r IN SELECT custparam_id FROM custparam WHERE custparam_param = pParam AND custparam_type = 'r' LOOP IF _r.custparam_id IS NOT NULL THEN UPDATE recordcustparamvalue SET recordcustparamvalue_void_timestamp = now() WHERE recordcustparamvalue_custparam_id = _r.custparam_id AND recordcustparamvalue_recordtype_id = _recordTypeId AND recordcustparamvalue_record_id = pRecordId AND recordcustparamvalue_void_timestamp IS NULL; END IF; END LOOP; IF pLog = true THEN _message := 'Custom Parameter ' || pParam || ' removed for ' || pRecordType || ' with ID ' || pRecordId || '.'; PERFORM (SELECT enterrecordlog( 'Custom Parameter'::TEXT, 'Custom Parameter Removed', pRecordType, pRecordId, 'Record Custom Parameter Value History'::TEXT, null, _message)); END IF; RETURN true; END;$_$; ALTER FUNCTION public.removecustparamvaluerecord(text, text, integer, boolean) OWNER TO admin; -- -- TOC entry 417 (class 1255 OID 36856) -- Name: removedoclinkpart(text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removedoclinkpart(text, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pDocType ALIAS FOR $1; pDocNumber ALIAS FOR $2; pItemNumber ALIAS FOR $3; pRevision ALIAS FOR $4; pSerialNumber ALIAS FOR $5; _partId INTEGER; _docTypeId INTEGER; _message TEXT; _checkPartDocLinkId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removedoclinkpart')); _docTypeId := (SELECT getdoctypeid(pDocType)); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _checkPartDocLinkId := (SELECT partdoclink_id FROM viewpartdoclink WHERE doctype_name = pDocType AND partdoclink_docnumber = pDocNumber AND part_id = _partId AND partdoclink_void_timestamp IS NULL); IF _checkPartDocLinkId IS NULL THEN RETURN true; END IF; UPDATE partdoclink SET partdoclink_void_timestamp = now() WHERE partdoclink_doctype_id = _docTypeId AND partdoclink_part_id = _partId AND partdoclink_docnumber = pDocNumber AND partdoclink_void_timestamp IS NULL; _message := 'Document Link ' || pDocType || ' removed with Document Number ' || pDocNumber || ' from ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; PERFORM (SELECT enterpartlog( 'Document Link'::TEXT, 'Document Link Removed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part Document Link History'::TEXT, _checkPartDocLinkId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.removedoclinkpart(text, text, text, text, text) OWNER TO admin; -- -- TOC entry 418 (class 1255 OID 36857) -- Name: removedoclinkrecord(text, text, text, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removedoclinkrecord(text, text, text, integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pDocType ALIAS FOR $1; pDocNumber ALIAS FOR $2; pRecordType ALIAS FOR $3; pRecordId ALIAS FOR $4; _recordTypeId INTEGER; _docTypeId INTEGER; _message TEXT; _checkRecordDocLinkId INTEGER; _recordDocLinkId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('adddoclinkpart')); _docTypeId := (SELECT getdoctypeid(pDocType)); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _checkRecordDocLinkId := (SELECT recorddoclink_id FROM viewrecorddoclink WHERE doctype_name = pDocType AND recorddoclink_docnumber = pDocNumber AND recordtype_name = pRecordType AND recorddoclink_record_id = pRecordId AND recorddoclink_void_timestamp IS NULL); IF _checkRecordDocLinkId IS NULL THEN RETURN true; END IF; UPDATE recorddoclink SET recorddoclink_void_timestamp = now() WHERE recorddoclink_doctype_id = _docTypeId AND recorddoclink_recordtype_id = _recordTypeId AND recorddoclink_record_id = pRecordId AND recorddoclink_docnumber = pDocNumber AND recorddoclink_void_timestamp IS NULL; _message := 'Document Link ' || pDocType || ' removed with Document Number ' || pDocNumber || ' from ' || pRecordType || ' with ID ' || pRecordId || '.'; PERFORM (SELECT enterrecordlog( 'Document Link'::TEXT, 'Document Link Removed'::TEXT, pRecordType, pRecordId, 'Record Document Link History'::TEXT, _checkRecordDocLinkId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.removedoclinkrecord(text, text, text, integer) OWNER TO admin; -- -- TOC entry 421 (class 1255 OID 36858) -- Name: removefilepart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removefilepart(text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pFileName ALIAS FOR $4; _partId INTEGER; _partFileId INTEGER; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removefilepart')); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); SELECT partfile_id INTO _partFileId FROM partfile WHERE partfile_filename = pFileName AND partfile_part_id = _partId AND partfile_void_timestamp IS NULL; IF _partFileId IS NULL THEN RETURN true; END IF; UPDATE partfile SET partfile_void_timestamp = now() WHERE partfile_filename = pFileName AND partfile_part_id = _partId AND partfile_void_timestamp IS NULL; _message := 'File ' || pFileName || ' removed from Part ' || pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || '.'; PERFORM (SELECT enterpartlog( 'File Attachement'::TEXT, 'File Removed'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Part File Attachement History'::TEXT, _partFileId, _message)); RETURN true; END$_$; ALTER FUNCTION public.removefilepart(text, text, text, text) OWNER TO admin; -- -- TOC entry 422 (class 1255 OID 36859) -- Name: removefilerecord(text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removefilerecord(text, integer, text) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE pRecordType ALIAS FOR $1; pRecordId ALIAS FOR $2; pFileName ALIAS FOR $3; _recordTypeId INTEGER; _recordFileId INTEGER; _message TEXT; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removefilerecord')); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); SELECT recordfile_id INTO _recordFileId FROM recordfile WHERE recordfile_filename = pFileName AND recordfile_recordtype_id = _recordTypeId AND recordfile_record_id = pRecordId AND recordfile_void_timestamp IS NULL; IF _recordFileId IS NULL THEN RETURN true; END IF; UPDATE recordfile SET recordfile_void_timestamp = now() WHERE recordfile_filename = pFileName AND recordfile_recordtype_id = _recordTypeId AND recordfile_record_id = pRecordId AND recordfile_void_timestamp IS NULL; _message := 'File ' || pFileName || ' removed fromo Record Type ' || pRecordType || ' with ID ' || pRecordId || '.'; PERFORM (SELECT enterrecordlog( 'File Attachement'::TEXT, 'File Removed'::TEXT, pRecordType, pRecordId, 'Record File Attachement History'::TEXT, _recordFileId, _message)); RETURN true; END$_$; ALTER FUNCTION public.removefilerecord(text, integer, text) OWNER TO admin; -- -- TOC entry 423 (class 1255 OID 36860) -- Name: removerolepriv(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removerolepriv(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pPriv ALIAS FOR $1; pRole ALIAS FOR $2; _rolePriv RECORD; _roleId INTEGER; _privId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removerolepriv')); _roleId := (SELECT getroleid(pRole)); _privId := (SELECT getprivid(pPriv)); SELECT rolepriv_id, rolepriv_priv_id, rolepriv_role_id INTO _rolePriv FROM rolepriv WHERE rolepriv_priv_id = _privId AND rolepriv_role_id = _roleId; IF _rolePriv.rolepriv_id IS NULL THEN RETURN true; END IF; DELETE FROM rolepriv WHERE rolepriv_priv_id = _privId AND rolepriv_role_id = _roleId; RETURN true; END;$_$; ALTER FUNCTION public.removerolepriv(text, text) OWNER TO admin; -- -- TOC entry 424 (class 1255 OID 36861) -- Name: removeroleprivmodule(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removeroleprivmodule(text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pRole ALIAS FOR $2; _r RECORD; _moduleId INTEGER; _roleId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removeroleprivmodule')); _moduleId := (SELECT getmoduleid(pModule)); _roleId := (SELECT getroleid(pRole)); FOR _r IN SELECT priv_name FROM priv WHERE priv_module_id = _moduleId LOOP IF _r.priv_name IS NOT NULL THEN PERFORM (SELECT removerolepriv( _r.priv_name, pRole)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.removeroleprivmodule(text, text) OWNER TO admin; -- -- TOC entry 425 (class 1255 OID 36862) -- Name: removeusrpriv(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removeusrpriv(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pPriv ALIAS FOR $1; pUserName ALIAS FOR $2; _usrPriv RECORD; _usrId INTEGER; _privId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removeusrpriv')); _usrId := (SELECT getusrid(pUserName)); _privId := (SELECT getprivid(pPriv)); SELECT usrpriv_id, usrpriv_priv_id, usrpriv_usr_id INTO _usrPriv FROM usrpriv WHERE usrpriv_priv_id = _privId AND usrpriv_usr_id = _usrId; IF _usrPriv.usrpriv_id IS NULL THEN RETURN true; END IF; DELETE FROM usrpriv WHERE usrpriv_priv_id = _privId AND usrpriv_usr_id = _usrId; RETURN true; END;$_$; ALTER FUNCTION public.removeusrpriv(text, text) OWNER TO admin; -- -- TOC entry 419 (class 1255 OID 36863) -- Name: removeusrprivmodule(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removeusrprivmodule(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pModule ALIAS FOR $1; pUserName ALIAS FOR $2; _r RECORD; _moduleId INTEGER; _usrId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removeusrprivmodule')); _moduleId := (SELECT getmoduleid(pModule)); _usrId := (SELECT getusrid(pUserName)); FOR _r IN SELECT priv_name FROM priv WHERE priv_module_id = _moduleId LOOP IF _r.priv_name IS NOT NULL THEN PERFORM (SELECT removeusrpriv( _r.priv_name, pUserName)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.removeusrprivmodule(text, text) OWNER TO admin; -- -- TOC entry 420 (class 1255 OID 36864) -- Name: removeusrrole(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removeusrrole(text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pRole ALIAS FOR $1; pUserName ALIAS FOR $2; _usrRole RECORD; _roleId INTEGER; _usrId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('removeusrrole')); _roleId := (SELECT getroleid(pRole)); _usrId := (SELECT getusrid(pUserName)); SELECT usrrole_id, usrrole_usr_id, usrrole_role_id INTO _usrRole FROM usrrole WHERE usrrole_usr_id = _usrId AND usrrole_role_id = _roleId; IF _usrRole.usrrole_id IS NULL THEN RETURN true; END IF; DELETE FROM usrrole WHERE usrrole_usr_id = _usrId AND usrrole_role_id = _roleId; RETURN true; END;$_$; ALTER FUNCTION public.removeusrrole(text, text) OWNER TO admin; -- -- TOC entry 426 (class 1255 OID 36865) -- Name: removewatcherpart(text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removewatcherpart(text, text, text, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pUser ALIAS FOR $4; _partId INTEGER; _usrId INTEGER; _partWatcherId INTEGER; BEGIN _usrId := (SELECT getusrid(pUser)); PERFORM (SELECT checkpriv('removewatcherpart')); _partId := (SELECT getpartid(pItemNumber, pRevision, pSerialNumber)); _partWatcherId := (SELECT partwatcher_id FROM partwatcher WHERE partwatcher_part_id = _partId AND partwatcher_usr_id = _usrId); IF _partWatcherId IS NULL THEN RETURN true; END IF; DELETE FROM partwatcher WHERE partwatcher_part_id = _partId AND partwatcher_usr_id = _usrId; RETURN true; END;$_$; ALTER FUNCTION public.removewatcherpart(text, text, text, text) OWNER TO admin; -- -- TOC entry 427 (class 1255 OID 36866) -- Name: removewatcherrecord(text, integer, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION removewatcherrecord(text, integer, text DEFAULT "current_user"()) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pRecordType ALIAS FOR $1; pRecordId ALIAS FOR $2; pUser ALIAS FOR $3; _recordTypeId INTEGER; _usrId INTEGER; _recordWatcherId INTEGER; BEGIN _usrId := (SELECT getusrid(pUser)); PERFORM (SELECT checkpriv('removewatcherrecord')); _recordTypeId := (SELECT getrecordtypeid(pRecordType)); _recordWatcherId := (SELECT recordwatcher_id FROM recordwatcher WHERE recordwatcher_recordtype_id = _recordTypeId AND recordwatcher_record_id = pRecordId AND recordwatcher_usr_id = _usrId); IF _recordWatcherId IS NULL THEN RETURN true; END IF; DELETE FROM recordwatcher WHERE recordwatcher_recordtype_id = _recordTypeId AND recordwatcher_record_id = pRecordId AND recordwatcher_usr_id = _usrId; RETURN true; END;$_$; ALTER FUNCTION public.removewatcherrecord(text, integer, text) OWNER TO admin; -- -- TOC entry 430 (class 1255 OID 36867) -- Name: revdownpart(text, text, text, text, text, boolean, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION revdownpart(text, text, text, text, text, boolean DEFAULT false, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pCurrentRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pDocNumber ALIAS FOR $4; pDocType ALIAS FOR $5; pNpi ALIAS FOR $6; pLine ALIAS FOR $7; pStation ALIAS FOR $8; _viewpart RECORD; _item RECORD; _docTypeId INTEGER; _locationId INTEGER; _partStateId INTEGER; _prefix TEXT; _serialPattern TEXT; _targetRevision TEXT; _npiRevision BOOLEAN; _r RECORD; _message TEXT; _changeRevPart RECORD; BEGIN PERFORM (SELECT checkpriv('revdownpart')); PERFORM (SELECT validatepart(pItemNumber, pCurrentRevision, pSerialNumber)); SELECT item_number, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pCurrentRevision; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'revdownpart: Item Number % not found in AeryonMES', pItemNumber; END IF; _docTypeId := (SELECT getdoctypeid(pDocType)); _npiRevision := pNpi; IF _npiRevision = false THEN SELECT itemrev_npi INTO _npiRevision FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pCurrentRevision; END IF; SELECT itemrevflow_start_rev INTO _targetRevision FROM itemrevflow WHERE itemrevflow_item_id = _item.item_id AND itemrevflow_end_rev = pCurrentRevision AND itemrevflow_npi = _npiRevision; IF pCurrentRevision = '00' THEN RAISE EXCEPTION 'revdownpart: Cannot RevDown Part at Revision 00'; ElSIF _targetRevision IS NULL THEN _targetRevision := lpad((pCurrentRevision::INTEGER - 1)::TEXT, 2, '0'); END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = _targetRevision) IS NULL THEN RAISE EXCEPTION 'revdownpart: Target Revision % of Selected Item % Not Found in AeryonMES', _targetRevision, pItemNumber; END IF; SELECT * INTO _changeRevPart FROM changerevpart( pItemNumber, pCurrentRevision, pSerialNumber, pDocNumber, pDocType, _targetRevision, pLine, pStation); _message := pItemNumber || ' down reved from ' || pCurrentRevision || ' to ' || _targetRevision || ' for ' || pSerialNumber || ' on ' || pDocType || ' ' || pDocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Down Reved'::TEXT, pItemNumber, _targetRevision, pSerialNumber, 'Revision History'::TEXT, _changeRevPart._partrevhistid, _message, pDocType, pDocNumber)); _partnumber := pItemNumber; _serialnumber := pSerialNumber; _revision := _targetRevision; _itemfreqcode := _item.itemfreqcode_freqcode; _sequencenumber := _viewpart.part_sequencenumber; RETURN NEXT; RETURN; END;$_$; ALTER FUNCTION public.revdownpart(text, text, text, text, text, boolean, text, text) OWNER TO admin; -- -- TOC entry 431 (class 1255 OID 36868) -- Name: reversebackflush(integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION reversebackflush(integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pBackflushId ALIAS FOR $1; _backflushCheck RECORD; _usrId INTEGER; _message TEXT; BEGIN _usrId := (SELECT getusrid()); PERFORM (SELECT checkpriv('reversebackflush')); SELECT backflush_id, backflush_part_id, item_number, backflush_item_id, backflush_rev, backflush_serialnumber, backflush_qty, doctype_name, backflush_docnumber, backflush_void_timestamp, backflush_complete_timestamp INTO _backflushCheck FROM backflush LEFT OUTER JOIN item ON item_id = backflush_item_id LEFT OUTER JOIN doctype ON doctype_id = backflush_doctype_id WHERE backflush_id = pBackflushId; IF _backflushCheck.backflush_id IS NULL THEN RAISE EXCEPTION 'reversebackflush: Backflush ID % does not exist.', pBackflushId; ELSIF _backflushCheck.backflush_void_timestamp IS NOT NULL THEN RAISE EXCEPTION 'reversebackflush: Backflush ID % is VOID and cannot be reversed.', pBackflushId; ELSIF _backflushCheck.backflush_complete_timestamp IS NULL THEN RAISE EXCEPTION 'reversebackflush: Backflush ID % is NOT COMPLETE and cannot be reversed.', pBackflushId; END IF; UPDATE backflush SET (backflush_complete_usr_id, backflush_complete_timestamp) = (null, null) WHERE backflush_id = pBackflushId; _message := 'Backflush ID ' || pBackflushID || ' reversed: ' || _backflushCheck.item_number || ' ' || _backflushCheck.backflush_rev || ' ' || _backflushCheck.backflush_serialnumber || ' qty ' || _backflushCheck.backflush_qty || ' on ' || _backflushCheck.doctype_name || ' ' || _backflushCheck.backflush_docnumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Reverse Backflush'::TEXT, _backflushCheck.item_number, _backflushCheck.backflush_rev, _backflushCheck.backflush_serialnumber, 'Backflush ID'::TEXT, pBackflushId, _message, _backflushCheck.doctype_name, _backflushCheck.backflush_docnumber)); RETURN true; END;$_$; ALTER FUNCTION public.reversebackflush(integer) OWNER TO admin; -- -- TOC entry 432 (class 1255 OID 36869) -- Name: revuppart(text, text, text, text, text, boolean, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION revuppart(text, text, text, text, text, boolean DEFAULT false, text DEFAULT NULL::text, text DEFAULT NULL::text) RETURNS TABLE(_partnumber text, _revision text, _serialnumber text, _sequencenumber integer, _itemfreqcode text) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pCurrentRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pDocNumber ALIAS FOR $4; pDocType ALIAS FOR $5; pNpi ALIAS FOR $6; pLine ALIAS FOR $7; pStation ALIAS FOR $8; _viewpart RECORD; _item RECORD; _docTypeId INTEGER; _locationId INTEGER; _partStateId INTEGER; _prefix TEXT; _serialPattern TEXT; _targetRevision TEXT; _npiRevision boolean; _changeRevPart RECORD; _message TEXT; BEGIN PERFORM (SELECT checkpriv('revuppart')); PERFORM (SELECT validatepart(pItemNumber, pCurrentRevision, pSerialNumber)); SELECT item_number, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pCurrentRevision; SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'revuppart: Item Number % not found in AeryonMES', pItemNumber; END IF; _docTypeId := (SELECT getdoctypeid(pDocType)); _npiRevision := pNpi; IF _npiRevision = false THEN SELECT itemrev_npi INTO _npiRevision FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pCurrentRevision; END IF; SELECT itemrevflow_end_rev INTO _targetRevision FROM itemrevflow WHERE itemrevflow_item_id = _item.item_id AND itemrevflow_start_rev = pCurrentRevision AND itemrevflow_npi = _npiRevision; IF _targetRevision IS NULL THEN _targetRevision := lpad((pCurrentRevision::INTEGER + 1)::TEXT, 2, '0'); END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = _targetRevision) IS NULL THEN RAISE EXCEPTION 'revuppart: Target Revision % of Selected Item % Not Found in AeryonMES', _targetRevision, pItemNumber; END IF; SELECT * INTO _changeRevPart FROM changerevpart( pItemNumber, pCurrentRevision, pSerialNumber, pDocNumber, pDocType, _targetRevision, pLine, pStation); _message := pItemNumber || ' up reved from ' || pCurrentRevision || ' to ' || _targetRevision || ' for ' || pSerialNumber || ' on ' || pDocType || ' ' || pDocNumber || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Up Reved'::TEXT, pItemNumber, _targetRevision, pSerialNumber, 'Revision History'::TEXT, _changeRevPart._partrevhistid, _message, pDocType, pDocNumber)); _partnumber := pItemNumber; _serialnumber := pSerialNumber; _revision := _targetRevision; _itemfreqcode := _item.itemfreqcode_freqcode; _sequencenumber := _viewpart.part_sequencenumber; RETURN NEXT; RETURN; END;$_$; ALTER FUNCTION public.revuppart(text, text, text, text, text, boolean, text, text) OWNER TO admin; -- -- TOC entry 433 (class 1255 OID 36870) -- Name: scrappart(text, text, text, text, text, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION scrappart(text, text, text, text, text, boolean DEFAULT true) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pPartScrapCode ALIAS FOR $4; pPartScrapDescription ALIAS FOR $5; pDeAllocFirst ALIAS FOR $6; _viewpart RECORD; _usrId INTEGER; _partScrapCodeId INTEGER; _partScrapHistId INTEGER; _message TEXT; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('scrappart')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_rev, part_serialnumber, part_sequencenumber, part_cust_id, loc_number, parent_item_number, parent_part_rev, parent_part_serialnumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF pDeAllocFirst = true AND _viewpart.parent_item_number IS NOT NULL THEN PERFORM (SELECT deallocpart( _viewpart.parent_item_number, _viewpart.parent_part_rev, _viewpart.parent_part_serialnumber, pItemNumber, pRevision, pSerialNumber, 'AMDD003')); END IF; _partScrapCodeId := (SELECT getpartscrapcodeid(pPartScrapCode)); PERFORM (SELECT deactivatepart(pItemNumber, pRevision, pSerialNumber)); INSERT INTO partscraphist ( partscraphist_part_id, partscraphist_partscrapcode_id, partscraphist_description, partscraphist_usr_id, partscraphist_orig_item_id, partscraphist_orig_rev, partscraphist_orig_serialnumber) VALUES ( _viewpart.part_id, _partScrapCodeId, pPartScrapDescription, _usrId, _viewpart.item_id, _viewpart.part_rev, _viewpart.part_serialnumber) RETURNING partscraphist_id INTO _partScrapHistId; _message := pItemNumber || ' ' || pRevision || ' ' || pSerialNumber || ' scrapped with code ' || pPartScrapcode || ' with description ' || pPartScrapDescription || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Scrapped'::TEXT, pItemNumber, pRevision, pSerialNumber, 'Scrap History'::TEXT, _partScrapHistId, _message)); RETURN true; END;$_$; ALTER FUNCTION public.scrappart(text, text, text, text, text, boolean) OWNER TO admin; -- -- TOC entry 434 (class 1255 OID 36871) -- Name: scrapsummsubass(text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: postgres -- CREATE FUNCTION scrapsummsubass(text, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pPartScrapCode ALIAS FOR $4; pPartScrapDescription ALIAS FOR $5; _viewpart RECORD; _usrId INTEGER; _r RECORD; BEGIN _usrID := (SELECT getusrid()); PERFORM (SELECT checkpriv('scrapsummsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber, part_cust_id, loc_number INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; PERFORM (SELECT scrappart( pItemNumber, pRevision, pSerialNumber, pPartScrapCode, pPartScrapDescription)); FOR _r IN SELECT * FROM summsubass( pItemNumber, pRevision, pSerialNumber) LOOP IF _r.c_item_number IS NOT NULL THEN PERFORM (SELECT scrappart( _r.c_item_number, _r.c_part_rev, _r.c_part_serialnumber, pPartScrapCode, pPartScrapDescription, false)); END IF; END LOOP; RETURN true; END;$_$; ALTER FUNCTION public.scrapsummsubass(text, text, text, text, text) OWNER TO postgres; -- -- TOC entry 436 (class 1255 OID 36872) -- Name: serialbom(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION serialbom(text, text) RETURNS TABLE(t_item_number text, t_bom_itemrev text, t_bom_qtyper numeric, p_item_number text, p_bom_itemrev text, p_bom_qtyper numeric, c_item_number text, c_bom_itemrev text, c_bom_qtyper numeric) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; _item RECORD; BEGIN PERFORM (SELECT checkpriv('serialbom')); SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'serialbom: Item Number % not found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pRevision) IS NULL THEN RAISE EXCEPTION 'serialbom: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; RETURN QUERY (WITH RECURSIVE b( t_bom_item_id, t_bom_itemrev, t_bom_qtyper, p_bom_item_id, p_bom_itemrev, p_bom_qtyper, p_item_phantom, c_bom_item_id, c_bom_itemrev, c_bom_qtyper, c_item_phantom) AS( SELECT p.bom_parent_item_id AS t_bom_item_id, p.bom_parent_itemrev AS t_bom_itemrev, 1::NUMERIC(20, 8) AS t_bom_qtyper, p.bom_parent_item_id AS p_bom_item_id, p.bom_parent_itemrev AS p_bom_itemrev, 1::NUMERIC(20, 8) AS p_bom_qtyper, i2.item_phantom AS p_item_phantom, p.bom_item_id AS c_bom_item_id, p.bom_itemrev AS c_bom_itemrev, p.bom_qtyper AS c_bom_qtyper, i3.item_phantom AS c_item_phantom FROM bom p LEFT OUTER JOIN item i2 ON i2.item_id = bom_parent_item_id LEFT OUTER JOIN item i3 ON i3.item_id = p.bom_item_id WHERE p.bom_parent_item_id = _item.item_id AND p.bom_parent_itemrev = pRevision AND COALESCE(p.bom_effective, now()) <= now() AND COALESCE(p.bom_expires, now()) >= now() UNION ALL SELECT b.t_bom_item_id AS t_bom_item_id, b.t_bom_itemrev AS t_bom_itemrev, b.t_bom_qtyper AS t_bom_qtyper, b.c_bom_item_id AS p_bom_item_id, b.c_bom_itemrev AS p_bom_itemrev, b.c_bom_qtyper AS p_bom_qtyper, b.c_item_phantom AS p_item_phantom, c.bom_item_id AS c_bom_item_id, c.bom_itemrev AS c_bom_itemrev, (c.bom_qtyper * b.c_bom_qtyper)::NUMERIC(20, 8) AS c_bom_qtyper, i3.item_phantom AS c_item_phantom FROM b LEFT OUTER JOIN bom c ON c.bom_parent_item_id = b.c_bom_item_id LEFT OUTER JOIN item i3 ON i3.item_id = c.bom_item_id WHERE c.bom_parent_item_id = b.c_bom_item_id AND c.bom_parent_itemrev = b.c_bom_itemrev AND COALESCE(c.bom_effective, now()) <= now() AND COALESCE(c.bom_expires, now()) >= now() AND b.c_item_phantom = true ) SELECT i1.item_number AS t_item_number, b.t_bom_itemrev, b.t_bom_qtyper, i2.item_number AS p_item_number, b.p_bom_itemrev, b.p_bom_qtyper, i3.item_number AS c_item_number, b.c_bom_itemrev, b.c_bom_qtyper FROM b LEFT OUTER JOIN item i1 ON b.t_bom_item_id = i1.item_id LEFT OUTER JOIN item i2 ON b.p_bom_item_id = i2.item_id LEFT OUTER JOIN item i3 ON b.c_bom_item_id = i3.item_id WHERE i3.item_serialized = true AND b.c_item_phantom = false); RETURN; END;$_$; ALTER FUNCTION public.serialbom(text, text) OWNER TO admin; -- -- TOC entry 437 (class 1255 OID 36873) -- Name: serialsubass(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION serialsubass(text, text, text) RETURNS TABLE(t_item_number text, t_part_rev text, t_part_serialnumber text, t_part_sequencenumber integer, t_part_parent_allocorder integer, p_item_number text, p_part_rev text, p_part_serialnumber text, p_part_sequencenumber integer, p_part_parent_allocorder integer, c_item_number text, c_part_rev text, c_part_serialnumber text, c_part_sequencenumber integer, c_part_parent_allocorder integer) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _viewpart RECORD; BEGIN PERFORM (SELECT checkpriv('serialsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; RETURN QUERY (WITH a( t_part_id, t_part_item_id, t_part_rev, t_part_serialnumber, t_part_sequencenumber, t_part_parent_part_id, t_part_allocpos, p_part_id, p_part_item_id, p_part_rev, p_part_serialnumber, p_part_sequencenumber, p_part_parent_part_id, p_part_allocpos, p_item_phantom, c_part_id, c_part_item_id, c_part_rev, c_part_serialnumber, c_part_sequencenumber, c_part_parent_part_id, c_part_allocpos, c_item_phantom) AS( SELECT p.part_id AS t_part_id, p.part_item_id AS t_part_item_id, p.part_rev AS t_part_rev, p.part_serialnumber AS t_part_serialnumber, p.part_sequencenumber AS t_part_sequencenumber, p.part_parent_part_id AS t_part_parent_part_id, p.part_allocpos AS t_part_allocpos, p.part_id AS p_part_id, p.part_item_id AS p_part_item_id, p.part_rev AS p_part_rev, p.part_serialnumber AS p_part_serialnumber, p.part_sequencenumber AS p_part_sequencenumber, p.part_parent_part_id AS p_part_parent_part_id, p.part_allocpos AS p_part_allocpos, i2.item_phantom AS p_item_phantom, c.part_id AS c_part_id, c.part_item_id AS c_part_item_id, c.part_rev AS c_part_rev, c.part_serialnumber AS c_part_serialnumber, c.part_sequencenumber AS c_part_sequencenumber, c.part_parent_part_id AS c_part_parent_part_id, c.part_allocpos AS c_part_allocpos, i3.item_phantom AS c_item_phantom FROM part p LEFT OUTER JOIN part c ON p.part_id = c.part_parent_part_id LEFT OUTER JOIN item i2 ON i2.item_id = p.part_item_id LEFT OUTER JOIN item i3 ON i3.item_id = c.part_item_id WHERE p.part_id = _viewpart.part_id -- UNION ALL -- SELECT p.part_id AS t_part_id, -- p.part_item_id AS t_part_item_id, -- p.part_rev AS t_part_rev, -- p.part_serialnumber AS t_part_serialnumber, -- p.part_sequencenumber AS t_part_sequencenumber, -- p.part_parent_part_id AS t_part_parent_part_id, -- p.part_allocpos AS t_part_allocpos, -- p.part_id AS p_part_id, -- p.part_item_id AS p_part_item_id, -- p.part_rev AS p_part_rev, -- p.part_serialnumber AS p_part_serialnumber, -- p.part_sequencenumber AS p_part_sequencenumber, -- p.part_parent_part_id AS p_part_parent_part_id, -- p.part_allocpos AS p_part_allocpos, -- i2.item_phantom AS p_item_phantom, -- c.part_id AS c_part_id, -- c.part_item_id AS c_part_item_id, -- c.part_rev AS c_part_rev, -- c.part_serialnumber AS c_part_serialnumber, -- c.part_sequencenumber AS c_part_sequencenumber, -- c.part_parent_part_id AS c_part_parent_part_id, -- c.part_allocpos AS c_part_allocpos, -- i3.item_phantom AS c_item_phantom -- FROM part p -- LEFT OUTER JOIN part c -- ON p.part_id = c.part_parent_part_id -- LEFT OUTER JOIN item i2 -- ON i2.item_id = a.p_part_item_id -- LEFT OUTER JOIN item i3 -- ON i3.item_id = c.part_item_id -- WHERE p.part_id = _viewpart.part_id -- AND a.c_item_phantom = true ) SELECT i1.item_number AS t_item_number, a.t_part_rev, a.t_part_serialnumber, a.t_part_sequencenumber, a.t_part_allocpos, i2.item_number AS p_item_number, a.p_part_rev, a.p_part_serialnumber, a.p_part_sequencenumber, a.p_part_allocpos, i3.item_number AS c_item_number, a.c_part_rev, a.c_part_serialnumber, a.c_part_sequencenumber, a.c_part_allocpos FROM a LEFT OUTER JOIN item i1 ON a.t_part_item_id = i1.item_id LEFT OUTER JOIN item i2 ON a.p_part_item_id = i2.item_id LEFT OUTER JOIN item i3 ON a.c_part_item_id = i3.item_id); RETURN; END;$_$; ALTER FUNCTION public.serialsubass(text, text, text) OWNER TO admin; -- -- TOC entry 438 (class 1255 OID 36874) -- Name: summbom(text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION summbom(text, text) RETURNS TABLE(t_item_number text, t_bom_itemrev text, t_bom_qtyper numeric, p_item_number text, p_bom_itemrev text, p_bom_qtyper numeric, c_item_number text, c_bom_itemrev text, c_bom_qtyper numeric) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; _item RECORD; BEGIN PERFORM (SELECT checkpriv('summbom')); SELECT item_id, item_serialstream_id, serialprefix_prefix, serialpattern_pattern, itemfreqcode_freqcode INTO _item FROM item LEFT OUTER JOIN serialstream ON item_serialstream_id = serialstream_id LEFT OUTER JOIN serialprefix ON item_serialprefix_id = serialprefix_id LEFT OUTER JOIN serialpattern ON serialprefix_serialpattern_id = serialpattern_id LEFT OUTER JOIN itemfreqcode ON item_itemfreqcode_id = itemfreqcode_id WHERE item_number = pItemNumber AND item_active = true; IF _item.item_id IS NULL THEN RAISE EXCEPTION 'summbom: Item Number % not found in AeryonMES', pItemNumber; END IF; IF (SELECT itemrev_id FROM itemrev WHERE itemrev_item_id = _item.item_id AND itemrev_rev = pRevision) IS NULL THEN RAISE EXCEPTION 'summbom: Revision % of Selected Item % Not Found in AeryonMES', pRevision, pItemNumber; END IF; RETURN QUERY (WITH RECURSIVE b( t_bom_item_id, t_bom_itemrev, t_bom_qtyper, p_bom_item_id, p_bom_itemrev, p_bom_qtyper, c_bom_item_id, c_bom_itemrev, c_bom_qtyper) AS( SELECT p.bom_parent_item_id AS t_bom_item_id, p.bom_parent_itemrev AS t_bom_itemrev, 1::NUMERIC(20, 8) AS t_bom_qtyper, p.bom_parent_item_id AS p_bom_item_id, p.bom_parent_itemrev AS p_bom_itemrev, 1::NUMERIC(20, 8) AS p_bom_qtyper, p.bom_item_id AS c_bom_item_id, p.bom_itemrev AS c_bom_itemrev, p.bom_qtyper AS c_bom_qtyper FROM bom p WHERE p.bom_parent_item_id = _item.item_id AND p.bom_parent_itemrev = pRevision AND COALESCE(p.bom_effective, now()) <= now() AND COALESCE(p.bom_expires, now()) >= now() UNION ALL SELECT b.t_bom_item_id AS t_bom_item_id, b.t_bom_itemrev AS t_bom_itemrev, b.t_bom_qtyper AS t_bom_qtyper, b.c_bom_item_id AS p_bom_item_id, b.c_bom_itemrev AS p_bom_itemrev, b.c_bom_qtyper AS p_bom_qtyper, c.bom_item_id AS c_bom_item_id, c.bom_itemrev AS c_bom_itemrev, (c.bom_qtyper * b.c_bom_qtyper)::NUMERIC(20, 8) AS c_bom_qtyper FROM b LEFT OUTER JOIN bom c ON c.bom_parent_item_id = b.c_bom_item_id WHERE c.bom_parent_item_id = b.c_bom_item_id AND c.bom_parent_itemrev = b.c_bom_itemrev AND COALESCE(c.bom_effective, now()) <= now() AND COALESCE(c.bom_expires, now()) >= now() ) SELECT i1.item_number AS t_item_number, b.t_bom_itemrev, b.t_bom_qtyper, i2.item_number AS p_item_number, b.p_bom_itemrev, b.p_bom_qtyper, i3.item_number AS c_item_number, b.c_bom_itemrev, b.c_bom_qtyper FROM b LEFT OUTER JOIN item i1 ON b.t_bom_item_id = i1.item_id LEFT OUTER JOIN item i2 ON b.p_bom_item_id = i2.item_id LEFT OUTER JOIN item i3 ON b.c_bom_item_id = i3.item_id); RETURN; END;$_$; ALTER FUNCTION public.summbom(text, text) OWNER TO admin; -- -- TOC entry 439 (class 1255 OID 36875) -- Name: summsubass(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION summsubass(text, text, text) RETURNS TABLE(t_item_number text, t_part_rev text, t_part_serialnumber text, t_part_sequencenumber integer, t_part_parent_allocorder integer, p_item_number text, p_part_rev text, p_part_serialnumber text, p_part_sequencenumber integer, p_part_parent_allocorder integer, c_item_number text, c_part_rev text, c_part_serialnumber text, c_part_sequencenumber integer, c_part_parent_allocorder integer) LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; _viewpart RECORD; BEGIN PERFORM (SELECT checkpriv('summsubass')); PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber, null, true)); SELECT part_id, item_id, item_number, part_serialnumber, part_sequencenumber INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; RETURN QUERY (WITH RECURSIVE a( t_part_id, t_part_item_id, t_part_rev, t_part_serialnumber, t_part_sequencenumber, t_part_parent_part_id, t_part_allocpos, p_part_id, p_part_item_id, p_part_rev, p_part_serialnumber, p_part_sequencenumber, p_part_parent_part_id, p_part_allocpos, c_part_id, c_part_item_id, c_part_rev, c_part_serialnumber, c_part_sequencenumber, c_part_parent_part_id, c_part_allocpos) AS( SELECT p.part_id AS t_part_id, p.part_item_id AS t_part_item_id, p.part_rev AS t_part_rev, p.part_serialnumber AS t_part_serialnumber, p.part_sequencenumber AS t_part_sequencenumber, p.part_parent_part_id AS t_part_parent_part_id, p.part_allocpos AS t_part_allocpos, p.part_id AS p_part_id, p.part_item_id AS p_part_item_id, p.part_rev AS p_part_rev, p.part_serialnumber AS p_part_serialnumber, p.part_sequencenumber AS p_part_sequencenumber, p.part_parent_part_id AS p_part_parent_part_id, p.part_allocpos AS p_part_allocpos, c.part_id AS c_part_id, c.part_item_id AS c_part_item_id, c.part_rev AS c_part_rev, c.part_serialnumber AS c_part_serialnumber, c.part_sequencenumber AS c_part_sequencenumber, c.part_parent_part_id AS c_part_parent_part_id, c.part_allocpos AS c_part_allocpos FROM part p LEFT OUTER JOIN part c ON p.part_id = c.part_parent_part_id WHERE p.part_id = _viewpart.part_id UNION ALL SELECT a.t_part_id AS t_part_id, a.t_part_item_id AS t_part_item_id, a.t_part_rev AS t_part_rev, a.t_part_serialnumber AS t_part_serialnumber, a.t_part_sequencenumber AS t_part_sequencenumber, a.t_part_parent_part_id AS t_part_parent_part_id, a.t_part_allocpos AS t_part_allocpos, a.c_part_id AS p_part_id, a.c_part_item_id AS p_part_item_id, a.c_part_rev AS p_part_rev, a.c_part_serialnumber AS p_part_serialnumber, a.c_part_sequencenumber AS p_part_sequencenumber, a.c_part_parent_part_id AS p_part_parent_part_id, a.c_part_allocpos AS p_part_allocpos, c.part_id AS c_part_id, c.part_item_id AS c_part_item_id, c.part_rev AS c_part_rev, c.part_serialnumber AS c_part_serialnumber, c.part_sequencenumber AS c_part_sequencenumber, c.part_parent_part_id AS c_part_parent_part_id, c.part_allocpos AS c_part_allocpos FROM a LEFT OUTER JOIN part c ON a.c_part_id = c.part_parent_part_id WHERE a.c_part_id = c.part_parent_part_id ) SELECT i1.item_number AS t_item_number, a.t_part_rev, a.t_part_serialnumber, a.t_part_sequencenumber, a.t_part_allocpos, i2.item_number AS p_item_number, a.p_part_rev, a.p_part_serialnumber, a.p_part_sequencenumber, a.p_part_allocpos, i3.item_number AS c_item_number, a.c_part_rev, a.c_part_serialnumber, a.c_part_sequencenumber, a.c_part_allocpos FROM a LEFT OUTER JOIN item i1 ON a.t_part_item_id = i1.item_id LEFT OUTER JOIN item i2 ON a.p_part_item_id = i2.item_id LEFT OUTER JOIN item i3 ON a.c_part_item_id = i3.item_id); RETURN; END;$_$; ALTER FUNCTION public.summsubass(text, text, text) OWNER TO admin; -- -- TOC entry 440 (class 1255 OID 36876) -- Name: transfercustparamcombo(integer, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION transfercustparamcombo(integer, integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pOldParamId ALIAS FOR $1; pNewParamId ALIAS FOR $2; _dataTypeId INTEGER; _r RECORD; _oldParamId INTEGER; _newParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('transfercustparamcombo')); IF pOldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamcombo: Custom Parameter ID cannot be null.'; END IF; IF pNewParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamcombo: Custom Parameter ID cannot be null.'; END IF; _oldParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamcombo: Old Custom Parameter ID cannot be found on custparam table.'; END IF; _oldParamId := (SELECT custparamcombo_id FROM custparamcombo WHERE custparamcombo_custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RETURN true; END IF; _newParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pNewParamId); IF _newParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamcombo: New Custom Parameter ID cannot be found on custparam table.'; END IF; FOR _r IN SELECT custparamcombo_item_id, custparamcombo_recordtype_id FROM custparamcombo WHERE custparamcombo_custparam_id = pOldParamId LOOP IF _r.custparamcombo_item_id IS NOT NULL THEN INSERT INTO custparamcombo (custparamcombo_custparam_id, custparamcombo_value, custparamcombo_active) VALUES (pNewParamId, _r.custparamcombo_value, _r.custparamcombo_active); END IF; END LOOP; UPDATE custparamcombo SET custparamcombo_active = false WHERE custparamcombo_custparam_id = pOldParamId; RETURN true; END;$_$; ALTER FUNCTION public.transfercustparamcombo(integer, integer) OWNER TO admin; -- -- TOC entry 441 (class 1255 OID 36877) -- Name: transfercustparamlinkitem(integer, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION transfercustparamlinkitem(integer, integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pOldParamId ALIAS FOR $1; pNewParamId ALIAS FOR $2; _dataTypeId INTEGER; _r RECORD; _oldParamId INTEGER; _newParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('transfercustparamlinkitem')); IF pOldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkitem: Custom Parameter ID cannot be null.'; END IF; IF pNewParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkitem: Custom Parameter ID cannot be null.'; END IF; _oldParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkitem: Old Custom Parameter ID cannot be found on custparam table.'; END IF; _oldParamId := (SELECT itemcustparamlink_id FROM itemcustparamlink WHERE itemcustparamlink_custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RETURN true; END IF; _newParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pNewParamId); IF _newParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkitem: New Custom Parameter ID cannot be found on custparam table.'; END IF; FOR _r IN SELECT itemcustparamlink_item_id, itemcustparamlink_active FROM itemcustparamlink WHERE itemcustparamlink_custparam_id = pOldParamId LOOP IF _r.itemcustparamlink_item_id IS NOT NULL THEN INSERT INTO itemcustparamlink (itemcustparamlink_custparam_id, itemcustparamlink_item_id, itemcustparamlink_active) VALUES (pNewParamId, _r.itemcustparamlink_item_id, _r.itemcustparamlink_active); END IF; END LOOP; UPDATE itemcustparamlink SET itemcustparamlink_active = false WHERE itemcustparamlink_custparam_id = pOldParamId; RETURN true; END;$_$; ALTER FUNCTION public.transfercustparamlinkitem(integer, integer) OWNER TO admin; -- -- TOC entry 442 (class 1255 OID 36878) -- Name: transfercustparamlinkrecord(integer, integer); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION transfercustparamlinkrecord(integer, integer) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pOldParamId ALIAS FOR $1; pNewParamId ALIAS FOR $2; _dataTypeId INTEGER; _r RECORD; _oldParamId INTEGER; _newParamId INTEGER; BEGIN PERFORM (SELECT getusrid()); PERFORM (SELECT checkpriv('transfercustparamlinkrecord')); IF pOldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkrecord: Custom Parameter ID cannot be null.'; END IF; IF pNewParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkrecord: Custom Parameter ID cannot be null.'; END IF; _oldParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkrecord: Old Custom Parameter ID cannot be found on custparam table.'; END IF; _oldParamId := (SELECT recordcustparamlink_id FROM recordcustparamlink WHERE recordcustparamlink_custparam_id = pOldParamId); IF _oldParamId IS NULL THEN RETURN true; END IF; _newParamId := (SELECT custparam_id FROM custparam WHERE custparam_id = pNewParamId); IF _newParamId IS NULL THEN RAISE EXCEPTION 'transfercustparamlinkrecord: New Custom Parameter ID cannot be found on custparam table.'; END IF; FOR _r IN SELECT recordcustparamlink_recordtype_id, recordcustparamlink_active FROM recordcustparamlink WHERE recordcustparamlink_custparam_id = pOldParamId LOOP IF _r.recordcustparamlink_recordtype_id IS NOT NULL THEN INSERT INTO recordcustparamlink (recordcustparamlink_custparam_id, recordcustparamlink_recordtype_id, recordcustparamlink_active) VALUES (pNewParamId, _r.recordcustparamlink_recordtype_id, _r.recordcustparamlink_active); END IF; END LOOP; UPDATE recordcustparamlink SET recordcustparamlink_active = false WHERE recordcustparamlink_custparam_id = pOldParamId; RETURN true; END;$_$; ALTER FUNCTION public.transfercustparamlinkrecord(integer, integer) OWNER TO admin; -- -- TOC entry 428 (class 1255 OID 36879) -- Name: updatebackflush(integer, text, text, text, integer, text, text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION updatebackflush(integer, text, text, text, integer, text, text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pBackflushId ALIAS FOR $1; pItemNumber ALIAS FOR $2; pRevision ALIAS FOR $3; pSerialNumber ALIAS FOR $4; pQty ALIAS FOR $5; pDocType ALIAS FOR $6; pDocNumber ALIAS FOR $7; pLine ALIAS FOR $8; pStation ALIAS FOR $9; _itemId INTEGER; _viewpart RECORD; _backflushCheck RECORD; _backflushId INTEGER; _docTypeId INTEGER; _usrId INTEGER; _message TEXT; BEGIN _usrId := (SELECT getusrid()); PERFORM (SELECT checkpriv('updatebackflush')); IF pQty < 0 THEN RAISE EXCEPTION 'updatebackflush: Backflush Qty cannot be less than 0.'; END IF; _itemId := (SELECT getitemid(pItemNumber)); _docTypeId := (SELECT getdoctypeid(pDocType)); IF pSerialNumber IS NOT NULL THEN PERFORM (SELECT validatepart(pItemNumber, pRevision, pSerialNumber)); END IF; SELECT backflush_id, backflush_part_id, item_number, backflush_orig_item_id, backflush_orig_rev, backflush_orig_serialnumber, backflush_qty, doctype_name, backflush_docnumber, backflush_void_timestamp, backflush_complete_timestamp INTO _backflushCheck FROM backflush LEFT OUTER JOIN item ON item_id = backflush_orig_item_id LEFT OUTER JOIN doctype ON doctype_id = backflush_doctype_id WHERE backflush_id = pBackflushId; IF _backflushCheck.backflush_id IS NULL THEN RAISE EXCEPTION 'updatebackflush: Backflush ID % does not exist.', pBackflushId; ELSIF _backflushCheck.backflush_void_timestamp IS NOT NULL THEN RAISE EXCEPTION 'updatebackflush: Backflush ID % is VOID and cannot be updated.', pBackflushId; ELSIF _backflushCheck.backflush_complete_timestamp IS NOT NULL THEN RAISE EXCEPTION 'updatebackflush: Backflush ID % is COMPLETE and cannot be updated.', pBackflushId; END IF; PERFORM (SELECT voidbackflush(pBackflushId, 'UPDATE', 'Void existing ID to insert updated backflush information.')); RETURN (SELECT enterbackflush(pItemNumber, pRevision, pSerialNumber, pQty, pDocType, pDocNumber, pLine, pStation)); END;$_$; ALTER FUNCTION public.updatebackflush(integer, text, text, text, integer, text, text, text, text) OWNER TO admin; -- -- TOC entry 429 (class 1255 OID 36880) -- Name: validatepart(text, text, text, text, boolean); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION validatepart(text, text, text, text DEFAULT NULL::text, boolean DEFAULT false) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber ALIAS FOR $3; pCode ALIAS FOR $4; pAllowInactive ALIAS FOR $5; _viewpart RECORD; _code TEXT; BEGIN PERFORM (SELECT checkpriv('validatepart')); SELECT part_id, part_active INTO _viewpart FROM viewpart WHERE item_number = pItemNumber AND part_serialnumber = pSerialNumber AND part_rev = pRevision; IF pCode IS NULL THEN _code := ''; ELSE _code := ' ' || pCode; END IF; IF _viewpart.part_id IS NULL THEN RAISE EXCEPTION 'validatepart:% Item Number % Revision % Serial Number % Not Found in AeryonMES.', _code, pItemNumber, pRevision, pSerialNumber; ELSIF _viewpart.part_active = false AND pAllowInactive = false THEN RAISE EXCEPTION 'validatepart:% Item Number % Revision % Serial Number % Is Inactive.', _code, pItemNumber, pRevision, pSerialNumber; END IF; RETURN true; END; $_$; ALTER FUNCTION public.validatepart(text, text, text, text, boolean) OWNER TO admin; -- -- TOC entry 435 (class 1255 OID 36881) -- Name: voidbackflush(integer, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION voidbackflush(integer, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pBackflushId ALIAS FOR $1; pVoidType ALIAS FOR $2; pVoidReason ALIAS FOR $3; _backflushCheck RECORD; _usrId INTEGER; _message TEXT; BEGIN _usrId := (SELECT getusrid()); PERFORM (SELECT checkpriv('voidbackflush')); SELECT backflush_id, backflush_part_id, pitem.item_number AS part_item_number, part_rev, part_serialnumber, oitem.item_number AS orig_item_number, backflush_orig_item_id, backflush_orig_rev, backflush_orig_serialnumber, backflush_qty, doctype_name, backflush_docnumber, backflush_void_timestamp, backflush_complete_timestamp INTO _backflushCheck FROM backflush LEFT OUTER JOIN item AS oitem ON oitem.item_id = backflush_orig_item_id LEFT OUTER JOIN part ON part_id = backflush_part_id LEFT OUTER JOIN item AS pitem ON pitem.item_id = backflush_orig_item_id LEFT OUTER JOIN doctype ON doctype_id = backflush_doctype_id WHERE backflush_id = pBackflushId; IF _backflushCheck.backflush_id IS NULL THEN RAISE EXCEPTION 'voidbackflush: Backflush ID % does not exist.', pBackflushId; ELSIF _backflushCheck.backflush_void_timestamp IS NOT NULL THEN RAISE EXCEPTION 'voidbackflush: Backflush ID % is VOID and cannot be voided.', pBackflushId; ELSIF _backflushCheck.backflush_complete_timestamp IS NOT NULL THEN RAISE EXCEPTION 'voidbackflush: Backflush ID % is COMPLETE and cannot be voided.', pBackflushId; END IF; UPDATE backflush SET (backflush_void_usr_id, backflush_void_timestamp, backflush_void_type, backflush_void_reason) = (_usrId, now(), pVoidType, pVoidReason) WHERE backflush_id = pBackflushId; UPDATE part SET (part_backflushed) = (false) WHERE part_id = _backflushCheck.backflush_part_id; _message := 'Backflush ID ' || pBackflushID || ' voided: ' || _backflushCheck.orig_item_number || ' ' || _backflushCheck.backflush_orig_rev || ' ' || _backflushCheck.backflush_orig_serialnumber || ' qty ' || _backflushCheck.backflush_qty || ' on ' || _backflushCheck.doctype_name || ' ' || _backflushCheck.backflush_docnumber || ' - VoidType: ' || pVoidType || ' - Reason: ' || pVoidReason || '.'; PERFORM (SELECT enterpartlog( 'Manufacturing'::TEXT, 'Void Backflush'::TEXT, _backflushCheck.part_item_number, _backflushCheck.part_rev, _backflushCheck.part_serialnumber, 'Backflush ID'::TEXT, pBackflushId, _message, _backflushCheck.doctype_name, _backflushCheck.backflush_docnumber)); RETURN true; END;$_$; ALTER FUNCTION public.voidbackflush(integer, text, text) OWNER TO admin; SET default_tablespace = ''; SET default_with_oids = true;
SELECT * FROM $wpdb->postmeta WHERE post_id = %d SELECT * FROM {$this->db->posts} WHERE $in_post_ids_sql SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_menu_item_menu_item_parent' AND meta_value=%s SELECT ID FROM $wpdb->posts SELECT comment_ID FROM $wpdb->comments SELECT ID FROM {$wpdb->posts} WHERE post_type = 'attachment' AND $post_parent_condition SELECT * FROM $wpdb->blogs WHERE blog_id = %d SELECT ID FROM {$wpdb->posts} AS p $join $where SELECT term_id, taxonomy FROM $wpdb->term_taxonomy SELECT * FROM $wpdb->site WHERE id = %d SELECT ID FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_type = %s SELECT cat_ID FROM {$wpdb->sitecategories} WHERE category_nicename = %s SELECT COUNT(*) FROM ', $query, 1, $replacements ); SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam' SELECT * FROM `$table` WHERE `$col` REGEXP '^[aiO]:[1-9]' LIMIT 1 SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = %s SELECT term_taxonomy_id FROM $wpdb->term_taxonomy ORDER BY term_taxonomy_id DESC LIMIT 1
<reponame>velioo/animesite<filename>assets/sql/anime_genres.sql<gh_stars>1-10 COPY anime_genres (anime_id, genre_id) FROM stdin; 1 1 1 2 1 3 1 4 1 5 1 6 2 1 2 7 2 4 2 5 3 1 3 3 3 5 4 1 4 7 4 4 4 8 4 9 4 10 5 2 5 11 5 9 6 1 6 3 6 13 7 3 7 4 7 14 8 3 8 13 8 16 9 17 9 13 10 7 10 4 10 19 10 10 10 20 10 21 11 1 11 3 11 22 11 23 12 1 12 2 12 3 12 11 12 23 13 1 13 3 13 24 13 13 14 1 14 13 15 3 15 14 15 24 16 1 16 2 16 3 16 25 16 5 17 1 17 4 17 5 17 20 18 1 18 26 18 9 19 3 20 1 20 27 20 5 20 28 21 1 21 29 21 4 21 30 21 5 21 20 22 4 22 30 22 5 22 20 23 29 23 4 23 30 23 5 23 20 24 1 24 2 24 31 24 4 24 11 24 19 24 14 24 9 24 28 25 30 25 5 25 10 25 20 26 1 26 27 26 22 26 14 27 1 27 2 27 3 27 27 27 32 27 14 28 4 28 27 28 32 29 1 29 2 29 19 29 5 29 9 29 28 30 2 30 7 30 11 30 8 30 5 31 3 31 8 31 14 31 9 32 1 32 4 32 14 32 9 33 3 33 4 33 5 33 13 34 3 34 4 34 14 34 34 34 16 35 1 35 4 35 30 35 5 35 28 35 10 36 1 36 2 36 11 36 19 36 5 37 2 37 11 37 5 10052 1 38 4 38 35 38 16 39 2 39 4 39 19 39 30 39 14 39 5 39 6 39 28 40 3 40 4 40 25 40 14 40 5 41 1 41 31 41 14 41 9 42 1 42 3 42 11 42 8 42 14 42 24 43 4 43 8 43 14 43 34 44 3 44 25 44 14 44 5 44 34 45 1 45 3 45 4 45 8 46 1 46 3 46 4 46 8 47 3 47 24 47 16 48 1 48 2 48 11 48 27 48 32 48 14 48 9 49 2 49 3 49 5 49 23 50 1 50 11 50 5 50 28 51 1 51 3 51 30 51 5 52 1 52 3 52 24 53 1 53 30 53 28 54 3 54 8 54 24 55 4 55 30 55 5 56 1 56 3 56 4 56 8 56 23 57 1 57 3 57 4 57 8 57 23 58 3 58 4 58 25 58 11 58 8 58 14 58 24 58 34 59 1 59 30 59 5 59 6 59 28 60 2 60 4 60 30 60 14 60 5 60 28 61 2 61 4 61 30 61 5 61 6 61 28 62 4 62 30 62 5 62 28 63 2 63 4 63 30 63 5 63 6 63 28 64 4 64 30 64 5 64 6 64 28 65 3 65 4 65 30 65 5 65 6 65 28 66 4 66 30 66 5 66 6 66 28 67 4 67 30 67 5 67 6 67 28 68 4 68 30 68 5 68 28 69 1 69 2 69 4 69 30 69 5 69 6 69 28 69 20 70 1 70 4 70 30 70 5 71 2 71 4 71 30 71 5 72 1 72 30 72 5 72 28 73 4 73 30 73 14 73 5 73 6 73 28 74 1 74 2 74 4 74 30 74 5 74 6 74 28 75 2 75 3 75 4 75 22 75 30 75 14 75 5 75 6 75 13 76 1 76 2 76 5 77 1 77 3 77 4 77 11 77 8 77 30 77 14 77 24 77 37 78 3 78 4 78 11 78 8 79 3 79 4 79 11 79 8 79 14 79 23 80 4 80 14 80 9 81 3 81 4 81 14 82 2 82 3 82 11 82 8 82 14 83 2 83 3 83 4 83 19 83 14 83 9 83 20 84 3 84 14 84 16 85 4 85 14 85 24 86 2 86 3 86 11 86 5 87 2 87 3 87 11 87 20 88 2 88 3 88 30 88 5 89 1 89 3 89 4 90 2 90 3 90 8 90 5 91 1 91 2 91 3 91 25 91 11 91 8 91 5 91 23 92 1 92 14 92 5 92 6 93 3 93 24 94 2 94 3 94 11 95 2 95 3 96 2 96 3 96 11 96 14 97 2 97 3 97 11 98 3 98 4 98 14 98 16 99 3 99 4 99 11 99 14 99 16 100 1 100 2 100 3 100 4 100 11 100 8 100 28 101 3 101 4 101 35 101 14 101 9 102 2 102 3 102 4 102 11 102 8 102 22 102 14 103 11 104 3 104 14 104 24 105 3 105 4 105 14 106 1 106 3 106 11 106 30 106 5 107 1 107 4 107 30 107 5 108 2 108 3 108 4 108 9 109 2 109 3 109 9 110 2 110 3 110 9 111 1 111 3 111 7 111 4 111 23 111 9 112 3 112 25 112 14 112 24 112 16 113 1 113 4 113 5 113 20 114 3 114 38 114 9 115 1 115 2 115 23 116 1 116 2 116 23 117 1 117 2 117 23 118 1 118 2 118 23 119 30 119 5 120 2 120 3 120 31 120 7 120 4 120 11 120 27 120 8 120 14 121 4 121 8 121 30 121 14 121 37 121 9 122 4 122 14 122 16 122 9 123 3 123 4 123 14 123 24 123 16 124 3 124 4 124 8 124 14 124 5 125 4 125 14 125 16 126 4 126 14 126 16 127 1 127 7 127 4 127 11 127 14 127 39 127 9 128 1 128 7 128 4 128 19 128 26 128 9 128 28 129 1 129 3 129 25 129 5 130 1 130 5 130 23 131 1 131 2 131 11 131 8 131 9 132 1 132 2 132 3 132 4 132 9 133 1 133 4 133 11 133 19 133 8 133 5 133 9 134 1 134 4 134 11 134 8 134 14 134 23 135 3 135 25 135 11 135 8 135 14 135 24 135 23 135 26 135 9 136 4 136 14 136 37 136 16 137 2 137 11 137 19 137 30 137 5 137 6 137 9 137 20 138 2 138 4 138 11 138 5 138 28 139 1 139 3 139 27 139 32 140 3 140 11 140 40 140 14 140 24 141 2 141 3 141 11 141 27 142 1 142 2 142 11 143 1 143 7 143 4 143 30 143 35 143 14 143 5 144 27 144 30 144 32 144 5 145 2 145 3 145 4 145 11 145 30 145 5 146 1 146 2 146 5 146 23 147 1 147 7 147 19 147 14 147 23 147 26 147 9 148 3 148 4 148 24 148 13 148 16 149 2 149 4 149 11 150 3 150 7 150 4 150 11 150 23 151 1 151 3 151 25 151 22 151 24 151 23 152 1 152 2 152 14 152 5 152 23 153 2 153 14 154 2 154 11 154 8 154 14 155 3 155 8 155 14 155 24 156 3 156 8 156 14 156 24 157 1 157 25 157 30 157 5 157 6 158 1 158 25 158 30 158 5 158 6 159 2 159 11 159 30 159 14 160 24 160 13 161 1 161 30 161 5 162 17 163 17 164 17 164 13 165 3 165 7 165 41 165 9 166 3 166 25 166 14 166 34 166 16 167 3 167 4 167 14 168 3 168 14 168 16 169 2 169 3 169 14 170 3 170 4 170 25 170 8 170 14 170 34 171 2 171 30 171 5 171 28 172 3 172 14 172 5 173 3 173 4 173 24 173 5 173 34 174 3 174 14 175 1 175 7 175 23 176 2 176 4 176 14 176 9 177 3 177 8 177 14 178 3 178 4 178 25 178 14 179 2 179 31 179 11 179 41 179 8 180 1 180 3 180 25 180 23 180 34 181 2 181 3 181 32 182 1 182 2 182 4 182 11 182 8 182 14 183 1 183 2 183 11 183 8 183 9 184 1 184 2 184 7 184 27 184 8 184 5 185 1 185 2 185 3 185 4 185 5 185 23 186 3 186 22 186 16 187 41 188 2 188 3 188 30 188 5 189 3 189 41 189 14 190 3 190 4 190 41 190 14 191 3 191 14 192 14 193 3 193 4 193 41 193 14 194 1 194 3 194 30 194 36 194 14 194 5 194 6 194 28 195 1 195 3 195 4 195 30 195 5 195 6 195 20 196 41 197 1 197 3 197 41 197 5 198 1 198 2 198 3 198 7 198 5 199 3 199 11 199 22 199 23 200 1 200 2 200 3 200 11 200 8 200 5 200 23 201 1 201 4 201 19 201 14 201 20 202 1 202 3 202 29 202 30 202 36 202 5 203 7 203 19 203 9 203 20 204 3 204 22 204 36 205 2 205 3 206 1 206 3 206 4 206 11 206 8 206 24 206 5 206 23 206 16 206 9 207 2 207 3 207 4 207 8 207 14 207 24 208 3 208 5 209 2 209 13 210 2 210 3 210 7 210 10 211 2 211 3 211 4 211 5 211 9 211 28 212 2 212 4 212 30 212 14 212 5 213 1 213 2 213 22 213 23 214 7 214 4 214 5 214 21 215 3 215 36 215 16 216 3 216 25 216 14 217 3 217 4 217 24 217 16 218 3 218 35 218 14 218 39 219 7 219 27 220 3 220 4 220 24 220 16 221 2 221 3 221 11 221 14 222 4 222 11 222 27 222 8 223 25 223 14 224 1 224 2 224 3 224 31 224 11 224 8 224 14 224 9 225 2 225 3 225 8 225 9 226 2 226 3 226 31 226 11 227 7 227 4 227 8 227 9 227 28 227 20 228 3 229 3 230 3 231 4 231 30 231 14 231 5 232 25 232 22 232 24 232 23 233 4 233 19 233 26 234 3 234 14 234 24 234 34 235 3 235 4 235 14 235 34 235 16 236 3 236 14 236 34 236 16 237 3 237 14 237 24 237 34 238 3 238 4 238 13 239 3 239 13 240 3 240 13 241 4 241 30 241 14 241 5 241 16 241 28 242 1 242 4 242 5 242 23 243 2 243 3 243 25 244 1 244 3 244 23 244 9 245 1 245 7 245 19 245 23 245 26 246 2 246 30 246 5 247 1 247 7 247 4 248 4 248 8 248 16 249 1 249 25 249 30 249 5 249 23 250 3 250 25 250 14 250 34 251 3 251 14 251 5 251 28 252 3 252 4 252 14 252 5 252 28 253 1 253 3 253 5 254 7 254 11 254 27 254 19 254 9 254 20 255 2 255 3 255 11 256 3 256 30 256 14 257 1 257 14 258 4 258 27 258 16 259 1 259 4 259 14 259 28 260 1 260 2 260 4 260 30 260 5 260 28 261 2 261 30 261 5 262 13 263 1 263 2 263 3 263 5 263 13 264 3 264 4 265 1 265 14 265 5 265 6 265 28 266 3 266 4 266 14 266 34 266 9 267 4 267 13 268 3 268 11 268 5 269 2 269 3 269 4 269 19 269 30 269 5 269 6 269 28 270 27 270 30 270 5 271 1 271 2 271 3 271 11 271 24 271 5 272 2 272 3 272 25 273 2 273 3 273 11 273 5 274 7 274 5 275 1 275 2 275 3 275 7 276 2 276 4 276 5 277 3 277 8 277 9 278 1 278 3 279 7 279 4 279 11 279 5 280 3 281 4 281 13 282 1 282 13 283 13 284 1 284 4 284 11 284 14 285 3 285 41 286 3 286 25 286 11 286 14 287 1 287 4 287 41 287 10 288 1 288 3 288 25 288 5 289 3 289 4 289 14 289 16 290 7 290 4 290 5 290 9 290 10 290 20 290 21 291 3 291 30 291 5 291 10 292 14 292 16 293 7 293 19 293 9 294 3 294 11 294 8 295 4 295 35 295 14 295 16 296 4 296 14 296 5 296 6 297 3 297 4 297 25 297 14 298 2 298 3 298 11 299 3 299 11 299 8 300 3 300 4 300 5 301 3 301 4 301 14 302 3 302 7 302 8 302 9 303 11 304 3 304 14 304 9 305 2 305 4 305 27 305 14 306 29 306 7 306 4 306 5 306 9 306 20 307 1 307 27 307 22 307 32 308 3 308 7 308 4 309 4 309 5 309 6 309 28 310 3 310 11 310 14 310 26 311 4 311 24 311 5 311 9 312 4 312 27 312 14 312 16 313 4 313 14 313 24 313 34 313 16 314 1 314 2 314 11 314 8 314 5 314 26 315 3 315 11 315 8 315 16 316 4 316 11 316 8 316 9 317 3 317 8 318 3 318 8 319 3 319 11 319 8 320 3 320 8 321 3 321 25 321 8 321 5 322 1 322 3 322 11 322 14 322 24 322 23 322 9 323 1 323 11 323 8 323 14 323 9 324 3 324 25 324 8 325 4 325 14 325 5 326 1 326 24 326 13 327 2 327 4 327 11 327 9 328 4 328 14 329 4 329 14 330 4 330 14 331 7 332 3 332 7 332 14 332 39 332 10 333 1 333 2 333 3 333 25 333 5 334 3 334 11 334 8 335 41 336 29 336 7 336 4 336 19 336 9 336 20 337 1 337 2 337 3 337 25 337 5 337 10 338 3 338 11 338 8 339 1 339 3 339 11 339 8 340 1 340 2 340 3 340 8 340 30 340 5 341 1 341 3 341 25 341 14 341 5 342 1 342 2 342 3 342 30 342 5 343 1 343 19 343 14 343 5 343 9 343 20 344 2 344 17 344 3 344 5 345 2 345 17 345 3 345 5 346 3 346 36 346 5 347 2 347 3 347 11 347 14 348 2 348 4 348 11 348 22 348 14 349 3 349 25 349 14 350 3 350 5 351 1 351 4 351 19 351 5 351 9 351 20 352 4 352 11 352 5 353 3 353 14 353 13 354 4 354 11 354 16 355 17 355 13 356 1 356 11 356 5 357 4 357 14 357 13 358 2 358 11 359 1 359 3 359 31 359 11 359 22 359 24 360 2 360 4 360 11 360 30 360 14 360 5 361 3 361 4 361 14 361 34 361 16 362 1 362 4 362 19 362 5 362 9 362 20 363 1 363 14 363 5 363 6 363 28 364 1 364 14 364 5 364 6 364 28 365 1 365 14 365 5 365 6 365 28 366 1 366 14 366 5 366 6 366 28 367 1 367 5 367 6 368 4 368 27 368 32 368 14 369 2 369 8 370 3 370 25 370 14 371 1 371 2 371 3 371 25 371 11 372 19 372 26 372 9 373 13 374 3 374 7 374 4 374 10 375 1 375 2 375 4 375 11 375 5 376 1 376 2 376 4 376 30 376 5 377 3 377 25 377 37 377 16 378 19 378 5 379 3 379 16 380 1 380 2 380 3 380 4 380 27 380 14 380 28 381 1 381 11 381 8 382 2 382 3 383 2 383 3 383 27 383 9 384 2 384 5 384 28 385 3 385 5 385 28 386 3 386 5 386 28 387 3 387 5 387 28 388 1 388 2 388 3 388 5 389 3 389 13 389 9 390 1 390 2 390 3 390 11 391 3 391 4 391 11 392 2 392 3 392 4 393 3 393 4 394 3 394 4 394 11 394 27 395 2 395 4 395 11 396 1 396 2 396 5 396 6 397 4 397 14 397 5 397 28 398 2 398 11 399 2 399 3 399 4 399 11 399 8 399 30 399 14 400 4 400 19 400 20 401 1 401 4 402 2 402 4 402 11 403 4 403 11 403 20 404 29 404 4 404 11 404 14 405 2 405 3 405 4 405 27 405 9 406 3 406 25 406 14 406 5 407 4 407 14 407 24 407 37 408 2 408 3 408 11 408 14 409 1 409 4 410 1 410 4 411 2 411 4 411 22 411 14 411 9 412 2 412 3 412 31 412 4 412 27 412 14 412 9 413 2 413 31 413 4 413 11 413 27 413 14 413 9 414 2 414 3 414 31 414 4 414 11 414 27 414 14 414 9 415 2 415 3 415 31 415 4 415 11 415 27 415 14 415 23 416 3 416 11 417 2 417 7 417 11 417 14 417 5 418 3 418 24 418 16 419 2 419 7 419 11 419 9 420 3 420 25 420 8 420 5 421 2 421 3 421 11 422 2 422 3 422 11 423 2 423 3 423 11 424 2 424 3 424 11 425 2 425 3 425 11 426 2 426 3 426 11 427 2 427 3 427 11 428 2 428 3 428 11 429 1 429 30 429 5 429 28 429 10 430 30 430 5 430 28 430 10 430 20 431 3 431 14 431 24 431 26 432 3 432 4 432 14 432 16 433 3 433 4 433 14 433 24 433 34 433 16 434 4 434 14 434 24 434 34 434 16 435 1 435 2 435 4 435 28 436 4 436 30 436 5 436 6 436 28 437 4 437 5 438 4 438 14 438 13 439 11 439 5 439 16 440 1 440 30 440 14 440 5 440 23 440 9 441 2 441 3 441 4 441 9 442 2 442 38 443 1 443 3 443 11 443 38 444 1 444 4 444 5 444 6 444 23 445 2 445 9 446 3 447 1 447 2 447 16 448 3 448 25 448 14 449 3 449 16 450 3 450 4 450 16 450 9 451 3 451 36 451 24 452 3 453 1 453 2 453 30 453 5 454 1 454 2 454 30 454 14 454 5 454 28 454 10 455 2 455 3 455 25 455 11 455 8 456 2 456 4 456 11 456 27 457 2 457 7 457 25 457 11 457 8 457 37 458 1 458 2 458 30 458 5 459 2 459 19 459 14 459 9 460 3 460 40 461 1 461 2 461 3 461 11 461 23 462 2 462 4 462 11 463 1 463 2 463 4 463 22 463 14 464 3 464 8 465 4 465 14 466 3 466 14 466 39 467 2 467 3 467 40 468 3 468 4 468 14 468 24 468 16 469 3 469 4 469 14 469 24 469 34 470 2 470 3 470 11 470 27 471 2 471 3 471 4 471 11 471 8 471 14 472 2 472 11 472 14 472 5 473 4 473 19 473 8 473 14 473 9 473 20 474 1 474 2 474 11 474 8 474 9 475 3 475 5 476 3 476 14 476 24 477 8 478 3 478 4 478 14 479 14 480 2 480 3 480 8 480 14 481 2 481 4 481 14 481 5 481 10 482 2 482 3 482 9 483 3 483 4 483 14 484 2 484 4 484 11 484 27 485 4 485 14 485 5 486 2 486 3 487 2 487 3 487 4 487 5 488 4 488 14 488 24 488 5 489 31 489 8 489 14 490 4 490 8 490 14 491 4 491 8 491 14 492 3 492 16 493 2 493 3 493 31 493 11 493 8 494 2 494 3 494 31 494 11 494 8 495 2 495 3 495 11 495 8 496 1 496 2 496 22 496 5 497 3 497 14 497 5 497 34 498 1 498 3 498 5 498 6 499 1 499 3 499 5 499 6 499 34 500 1 500 3 500 5 500 6 500 34 501 1 501 4 501 11 501 19 501 14 501 5 501 26 502 1 502 2 502 5 502 6 503 3 503 5 504 4 504 14 504 24 504 9 505 4 505 14 505 24 505 9 506 1 506 4 506 14 506 5 507 1 507 3 507 11 507 38 508 1 508 22 508 13 509 1 509 2 509 3 509 11 509 40 510 3 510 4 510 11 510 19 510 8 510 39 510 26 511 2 511 3 511 4 511 27 511 30 511 14 511 28 512 3 512 30 512 14 512 5 512 37 513 4 513 14 513 5 514 3 514 27 514 14 514 5 515 3 515 4 515 13 516 4 516 5 516 20 517 4 517 30 517 5 517 28 518 2 518 30 518 5 519 2 519 30 519 5 520 3 520 14 520 5 521 3 521 8 521 5 522 1 522 2 522 4 522 27 522 5 522 28 523 1 523 3 523 5 524 1 524 7 524 30 524 5 524 20 525 2 525 30 525 5 526 3 526 36 526 5 526 6 526 28 527 4 527 14 527 28 527 10 527 20 528 2 528 3 528 8 528 30 528 14 528 5 529 2 529 11 530 1 530 2 530 3 530 4 530 22 530 30 530 14 530 5 530 34 531 11 531 30 531 5 532 3 532 11 532 8 532 14 532 34 533 11 533 8 534 4 534 27 535 3 535 25 535 5 536 3 537 2 537 3 537 25 537 32 538 3 538 22 538 24 539 2 539 4 539 5 539 16 540 2 540 4 540 11 540 14 540 16 541 11 541 27 541 19 542 3 542 4 542 14 543 3 543 25 543 11 543 14 544 2 544 4 545 3 545 14 546 3 546 25 546 14 546 24 546 9 547 2 547 11 548 4 548 30 548 5 548 6 548 28 548 20 549 1 549 2 549 3 549 23 550 7 550 4 550 11 550 14 550 9 551 3 551 14 552 2 552 4 552 11 553 1 553 2 553 4 553 30 553 5 554 2 554 3 554 9 555 4 555 26 555 9 556 3 556 29 556 20 557 2 557 3 557 11 557 30 557 9 558 2 558 3 558 11 558 8 559 3 559 4 559 8 559 35 559 14 560 3 560 11 560 14 561 2 561 3 561 27 561 22 562 2 562 3 562 11 563 2 563 30 563 5 564 4 564 14 564 5 565 3 565 4 565 9 566 4 566 11 566 14 567 3 567 11 567 14 567 24 568 2 568 11 568 9 569 8 569 14 570 3 570 8 571 4 571 11 571 8 572 2 572 11 572 27 572 19 572 14 572 9 573 2 573 19 573 8 573 22 573 9 574 2 574 4 574 5 575 7 575 4 575 11 575 19 576 1 576 3 576 7 576 19 576 26 577 3 577 4 577 14 577 5 578 2 578 3 578 8 578 14 578 24 579 2 579 3 579 25 580 3 580 14 581 3 581 8 581 14 582 3 582 4 582 13 583 3 583 11 583 8 583 14 583 5 584 3 584 8 584 14 584 5 585 3 585 14 585 5 586 3 586 14 586 5 586 28 587 2 587 4 587 14 587 5 588 4 588 14 588 20 589 1 589 2 589 3 589 4 590 2 590 3 590 4 590 22 590 32 591 3 591 25 591 14 592 3 592 4 592 14 592 16 593 38 594 3 594 9 595 2 595 4 595 11 595 27 595 14 596 3 596 4 596 14 596 5 596 34 597 3 597 14 598 1 598 3 598 10 599 3 599 41 599 14 600 3 600 5 601 3 601 5 602 3 602 5 603 3 603 5 604 3 604 4 604 27 604 14 604 9 605 38 605 21 606 3 606 24 606 16 607 3 607 8 607 14 608 4 608 14 608 24 608 34 609 2 609 3 609 4 609 11 609 28 610 2 610 4 610 11 610 19 610 26 610 9 611 3 611 4 611 14 611 24 611 37 611 16 612 3 612 14 612 34 613 3 613 14 614 4 614 14 614 16 615 4 615 35 616 3 617 4 617 14 618 4 618 14 619 4 619 14 620 2 620 4 620 11 621 2 621 4 621 11 622 3 622 8 622 5 623 3 623 11 623 8 623 14 624 3 624 11 624 8 624 14 625 11 625 8 625 14 626 4 626 14 626 24 626 5 626 34 626 16 627 3 627 22 627 36 627 32 627 5 627 23 628 2 628 3 628 11 628 8 628 14 628 5 628 9 629 4 629 11 629 8 629 24 630 4 630 11 630 8 630 24 631 1 631 31 631 4 631 19 631 26 632 1 632 3 632 4 632 13 633 41 633 14 633 34 634 1 634 3 634 4 634 25 634 5 634 10 635 3 635 4 635 14 635 16 636 3 636 14 636 16 637 3 637 14 637 5 637 6 637 34 638 4 638 14 638 16 638 9 639 2 639 3 639 8 639 5 640 3 640 4 641 3 641 4 642 2 642 5 643 1 643 2 643 11 643 5 643 16 644 3 644 4 644 14 645 4 645 5 645 6 645 28 646 1 646 2 646 3 646 30 646 28 647 3 647 36 647 14 647 24 648 3 648 14 649 1 649 4 649 14 649 5 649 39 649 43 650 3 650 8 650 14 651 3 651 14 652 4 652 16 653 19 653 43 654 4 654 14 655 3 655 40 656 3 656 14 656 24 656 13 657 4 657 14 657 39 658 2 658 4 658 35 658 5 659 1 659 19 659 5 659 26 659 9 660 4 660 14 660 43 661 4 661 14 661 43 662 4 662 43 663 1 663 2 663 3 663 11 664 31 664 8 664 14 665 3 665 4 665 14 665 43 666 4 666 14 666 24 666 16 667 3 667 14 667 5 668 3 668 4 668 14 668 39 668 43 669 4 669 14 669 39 670 14 671 3 671 40 672 3 672 16 673 1 673 2 673 3 673 5 674 4 674 39 675 41 676 2 676 4 676 11 677 4 677 43 678 4 678 14 679 2 679 4 679 11 680 1 680 4 680 30 680 14 680 5 680 20 681 3 681 4 682 2 682 4 682 22 682 14 682 9 683 2 10052 11 684 1 10052 8 684 4 684 9 685 1 685 2 685 3 685 30 685 5 686 2 686 3 686 30 686 5 686 13 687 2 687 3 687 8 687 5 688 3 688 4 688 30 688 5 689 1 689 3 689 25 689 5 689 10 690 3 690 30 690 5 691 4 691 5 692 4 692 27 693 2 693 3 693 25 693 30 693 5 694 3 694 4 694 14 694 16 695 1 695 19 695 26 695 9 695 28 696 2 696 7 697 2 697 7 698 2 698 7 699 4 699 30 699 9 699 28 699 20 700 3 700 25 700 10 701 3 701 4 701 27 701 8 701 30 701 5 702 3 702 11 702 24 703 3 703 25 703 14 703 24 704 4 704 11 704 9 704 20 705 7 705 5 705 20 706 1 706 11 706 8 707 2 707 3 708 3 708 7 708 4 708 9 708 20 709 4 709 24 709 37 709 42 710 2 710 3 711 3 711 14 712 4 712 28 713 3 713 4 713 16 714 3 714 5 714 16 715 7 715 30 715 5 715 28 715 10 716 2 716 11 455 1 455 14 455 23 455 34 717 3 717 5 718 3 718 4 718 25 718 14 718 24 719 2 719 4 719 8 719 5 720 1 720 2 720 3 720 22 720 23 721 3 721 13 722 1 722 13 723 3 723 30 723 5 723 28 724 3 724 14 724 5 724 28 725 3 725 4 725 14 725 16 726 14 727 4 727 5 727 6 727 28 11493 35 728 17 11493 3 729 17 730 41 730 14 731 3 731 25 731 8 731 14 731 24 732 2 732 4 733 41 734 41 735 41 736 3 736 11 737 30 737 5 738 2 738 3 738 30 738 5 739 2 10052 9 739 4 739 11 739 9 740 4 740 14 741 3 741 4 741 14 741 34 741 16 742 3 742 25 742 14 742 24 743 4 743 19 743 9 744 1 744 11 744 22 744 32 744 23 745 3 745 14 745 5 746 3 746 25 746 16 747 1 747 3 747 19 748 2 748 9 749 2 749 11 750 3 750 14 750 24 751 3 751 7 751 36 751 24 751 5 751 16 752 3 752 4 752 14 752 24 752 39 753 3 754 3 754 4 754 14 754 16 755 3 755 36 755 24 755 34 756 1 756 2 756 3 756 14 756 5 756 6 756 28 757 4 757 14 757 24 757 42 758 1 758 4 758 11 758 5 759 1 759 3 759 25 759 13 760 4 760 30 760 14 760 5 760 16 760 28 761 2 761 3 761 4 761 11 762 1 762 3 762 31 762 11 762 8 763 3 763 7 763 4 763 9 763 20 764 3 764 4 764 25 764 24 765 30 765 5 765 6 765 28 766 2 766 30 766 5 767 2 767 3 767 11 767 8 768 2 768 3 768 11 768 8 768 9 769 2 769 3 769 11 769 8 770 2 770 3 770 11 770 8 771 3 771 11 772 2 772 3 772 11 772 8 773 2 773 4 773 11 773 38 773 5 774 2 774 3 774 4 774 11 775 2 775 3 775 29 775 14 775 20 776 2 776 7 776 4 777 3 777 4 777 35 777 14 777 16 778 1 778 30 778 14 778 5 779 4 779 8 779 14 779 37 779 28 780 3 780 8 780 14 780 9 781 3 781 25 781 14 781 24 782 1 782 2 782 3 783 1 783 3 784 1 784 11 785 29 785 4 785 11 786 3 786 25 786 14 786 16 786 9 787 1 787 30 787 5 787 6 787 28 788 1 788 30 788 5 788 6 788 28 789 1 790 2 790 30 790 5 791 1 791 2 791 3 791 5 791 23 792 1 792 2 792 3 792 11 792 5 792 23 793 1 793 2 793 3 793 11 793 5 793 23 794 2 794 3 794 5 795 2 795 3 795 5 796 2 796 3 796 5 797 2 797 5 798 2 798 3 798 5 799 2 799 3 799 5 800 2 800 3 800 5 801 2 801 3 801 5 802 2 802 3 802 5 803 1 803 2 803 3 803 31 803 22 803 23 804 1 804 2 804 3 804 22 804 23 805 2 805 3 805 5 806 2 806 3 806 5 807 3 807 24 808 3 808 11 809 2 809 30 809 5 810 2 810 3 810 22 811 2 811 9 812 2 813 1 813 25 813 22 814 3 814 25 814 24 814 13 815 2 815 4 816 1 816 3 816 7 816 19 816 9 816 10 817 2 817 3 817 10 818 1 818 3 818 27 818 36 818 32 818 5 819 4 819 14 819 5 820 3 820 8 821 3 822 2 822 30 822 5 823 2 823 30 823 5 824 2 824 30 824 5 825 2 825 30 825 5 826 2 826 30 826 5 827 2 827 30 827 5 828 4 828 30 828 5 829 3 829 5 829 16 830 3 830 8 830 9 831 7 831 19 831 20 831 21 832 1 832 5 832 23 833 2 833 3 833 4 833 11 833 9 834 1 834 2 834 30 834 5 834 10 835 1 835 30 835 5 836 3 836 25 836 8 837 3 837 25 837 8 837 26 838 3 838 7 838 4 838 11 838 14 839 3 839 4 839 11 839 8 839 24 839 16 840 1 840 2 840 5 841 1 841 3 841 4 841 30 841 5 841 28 842 2 843 3 843 16 844 3 844 8 845 1 845 2 845 7 845 4 845 5 846 2 846 30 846 5 847 2 847 3 847 4 847 11 847 27 847 14 848 1 848 2 848 30 848 5 848 10 849 2 849 4 849 27 849 14 850 2 850 4 850 27 850 14 851 1 851 2 851 3 851 22 852 11 852 5 852 16 853 4 853 14 853 16 854 3 854 25 855 3 855 11 856 3 856 25 856 40 856 24 856 16 857 1 857 4 857 22 857 5 858 1 858 3 858 22 858 24 859 2 859 7 859 4 859 11 859 14 859 9 860 2 860 27 861 1 861 2 861 40 861 30 861 5 861 23 862 41 862 9 863 2 863 5 864 2 864 3 864 5 864 20 865 5 865 16 866 4 866 5 866 16 867 1 867 30 867 5 867 43 868 1 868 2 868 19 868 30 868 5 868 20 869 1 869 4 869 22 869 23 870 3 870 40 870 8 870 5 870 28 871 3 871 25 871 14 871 24 871 34 872 3 872 25 872 36 872 24 873 3 874 2 874 3 874 5 875 2 875 4 875 11 876 2 876 3 876 5 877 1 877 2 877 3 877 22 877 23 878 1 878 3 878 27 878 32 878 28 879 27 879 28 880 3 880 4 880 11 880 14 881 1 881 3 881 25 881 8 881 14 882 1 882 3 882 30 882 5 882 34 883 3 883 4 883 30 883 14 883 5 883 34 884 7 885 1 885 3 885 13 886 2 886 3 886 4 886 11 886 8 886 14 887 2 887 3 887 4 887 11 887 8 887 14 888 1 888 2 888 3 888 31 888 7 888 4 888 25 888 19 888 14 888 5 889 1 889 3 889 4 889 19 889 5 889 9 890 1 890 4 890 5 890 6 891 2 891 4 892 1 892 3 892 30 892 5 893 3 893 8 893 14 893 9 894 4 894 14 894 16 894 20 895 2 895 11 895 5 896 1 896 3 896 14 896 24 896 5 896 6 897 3 897 14 898 2 898 3 898 14 899 2 899 3 900 1 900 2 900 3 900 22 900 9 901 2 901 3 901 14 902 3 902 22 902 24 903 7 903 27 903 8 903 9 904 3 904 8 904 16 905 3 906 4 906 30 906 5 907 1 907 2 907 3 907 31 907 11 907 8 908 2 908 3 908 11 908 8 909 1 909 4 909 27 909 14 909 24 909 39 909 9 910 1 910 4 910 27 910 14 910 39 910 9 911 4 911 35 911 14 912 1 912 2 912 3 912 4 912 5 913 2 913 4 913 5 913 9 913 20 914 1 914 4 915 2 915 3 915 35 915 5 915 16 916 2 916 27 916 19 916 9 917 2 918 11 918 8 919 4 919 14 919 16 920 40 921 2 921 11 922 2 922 4 922 27 922 14 923 1 923 2 923 4 923 11 923 27 923 14 924 1 924 4 924 5 924 6 924 28 925 2 925 11 926 11 926 27 926 14 926 39 926 9 927 1 927 11 927 8 928 41 929 4 929 14 930 16 931 4 931 35 931 14 931 39 931 13 931 43 932 4 932 35 932 14 932 39 932 13 932 43 933 1 933 7 933 8 933 9 934 2 934 4 934 8 935 2 935 3 935 25 935 11 935 8 936 2 936 3 936 11 937 4 937 35 937 5 938 31 938 19 938 9 939 4 939 11 939 35 940 2 940 3 940 5 941 1 941 2 941 30 941 5 941 28 942 1 942 2 942 9 943 3 943 4 943 25 943 14 943 24 944 30 944 5 945 3 945 4 945 14 945 24 946 1 946 3 946 25 947 2 947 3 947 27 948 2 948 3 948 5 949 3 949 25 950 1 950 3 951 2 951 3 951 30 951 5 952 4 952 14 952 24 952 13 952 16 953 3 953 36 954 1 954 25 954 8 954 30 954 14 954 34 955 2 955 30 955 5 956 2 956 4 956 30 956 5 957 3 957 14 958 4 958 14 959 1 959 11 959 27 959 30 960 2 960 3 960 38 961 3 962 11 963 3 964 1 964 2 964 30 964 14 964 5 964 10 965 1 965 4 965 5 965 6 965 28 965 20 966 1 966 5 967 3 967 7 967 4 967 5 967 10 967 20 968 4 968 13 968 16 969 4 969 14 969 24 970 2 970 7 970 19 971 2 971 3 971 30 971 14 971 5 971 28 972 1 972 3 972 4 972 11 972 8 972 14 972 24 972 16 973 1 973 30 973 35 973 14 973 5 973 6 973 28 974 1 974 30 974 35 974 14 974 5 974 6 974 28 975 1 975 2 975 4 975 30 975 5 975 6 975 28 976 4 976 30 976 5 976 6 976 28 977 4 977 30 977 5 977 6 977 28 978 3 979 2 979 3 979 11 980 4 980 30 980 28 980 10 981 7 981 4 981 30 981 5 981 10 982 3 982 25 982 30 982 9 983 2 983 3 983 11 984 2 984 4 984 11 985 2 985 3 985 5 986 1 986 3 986 5 986 6 987 1 987 27 987 5 988 3 988 25 988 30 988 14 988 5 989 3 989 25 989 30 989 14 989 5 990 3 990 20 991 3 991 20 992 1 992 2 992 31 992 4 992 19 992 23 993 2 993 11 993 27 993 8 993 9 995 2 995 3 995 8 995 14 996 1 996 2 996 3 996 25 996 30 996 5 997 1 997 2 997 3 997 25 997 30 997 5 998 41 999 14 1000 4 1000 16 1001 2 1001 3 1001 4 1002 2 1002 3 1002 4 1003 2 1003 3 1003 4 1003 8 1004 2 1004 3 1004 4 1005 2 1005 3 1005 4 1005 11 1006 2 1006 3 1007 2 1007 11 1007 9 1008 14 1008 5 1008 6 1008 28 1009 5 1009 16 1010 3 1010 25 1010 8 1010 5 1011 3 1011 14 1011 5 1012 3 1012 14 1012 5 1013 1 1013 4 1013 11 1013 14 1013 5 1014 1 1014 2 1014 3 1014 4 1014 11 1014 40 1015 1 1015 3 1015 30 1015 5 1015 6 1015 34 1015 10 1016 11 1016 8 1017 1 1017 2 1017 3 1017 7 1017 4 1017 19 1017 30 1017 5 1017 20 1018 2 1018 4 1018 11 1018 5 1019 2 1019 3 1019 5 1020 2 1020 11 1021 2 1021 4 1021 11 1021 14 1021 5 1022 2 1022 4 1022 11 1022 14 1023 4 1023 14 1024 2 1024 7 1024 11 1024 8 1024 5 1025 4 1025 14 1025 5 1026 2 1026 7 1026 4 1026 16 1027 3 1027 14 1027 5 1027 34 1028 1 1028 3 1028 5 1028 6 1028 34 1029 27 1029 19 1029 9 1030 2 1030 3 1030 30 1030 5 1031 1 1031 2 1031 11 1031 8 1031 9 1032 3 1032 30 1032 5 1032 10 1033 3 1033 30 1033 5 1033 10 1034 1 1034 2 1034 4 1034 22 1035 2 1035 4 1035 5 1036 2 1036 3 1036 5 1036 6 1037 1 1037 7 1037 4 1037 5 1038 1 1038 2 1038 11 1038 5 1039 2 1039 3 1039 9 1040 2 1040 3 1040 5 1041 5 1042 2 1042 3 1042 11 1042 30 1043 2 1043 3 1043 11 1043 30 1044 2 1044 19 1044 30 1045 2 1045 3 1045 11 1045 8 1046 2 1046 30 1046 5 1047 2 1047 30 1047 5 1048 27 1049 2 1049 3 1049 4 1049 5 1049 6 1049 28 1050 2 1050 4 1050 5 1051 2 1051 3 1051 11 1051 8 1051 9 1052 2 1052 3 1052 31 1052 11 1052 8 1052 9 1053 2 1053 3 1053 31 1053 11 1053 8 1054 11 1054 8 1055 3 1055 5 1055 13 1056 11 1057 19 1057 5 1058 2 1058 30 1058 5 1059 2 1059 30 1059 5 1059 6 1059 9 1060 1 1060 3 1060 5 1060 10 1061 1 1061 2 1061 3 1061 11 1061 8 1062 8 1062 14 1063 1 1063 25 1063 22 1063 23 1064 2 1064 3 1064 4 1064 5 1064 6 1065 1 1065 3 1065 25 1065 5 1065 6 1065 13 1066 1 1066 2 1066 3 1066 4 1066 24 1066 5 1066 13 1067 3 1067 4 1067 5 1068 3 1068 16 1069 2 1069 14 1070 2 1070 3 1070 13 1071 1 1071 3 1071 14 1071 5 1072 19 1072 9 1072 20 1073 3 1073 11 1074 1 1074 2 1074 3 1074 30 1074 5 1075 1 1075 2 1075 3 1075 25 1075 11 1075 8 1075 14 1075 24 1075 34 1076 3 1077 3 1077 14 1077 24 1077 16 1078 3 1079 2 1079 11 1079 32 1080 1 1080 2 1080 11 1080 8 1080 30 1080 5 1081 27 1081 35 1082 4 1082 11 1083 2 1083 11 1084 4 1084 5 1084 16 1085 2 1085 11 1086 2 1086 11 1086 27 1087 1 1087 13 1088 3 1088 14 1088 20 1089 2 1089 30 1089 5 1089 6 1089 28 1090 2 1090 30 1090 5 1091 3 1091 4 1091 16 1092 30 1092 5 1092 6 1092 28 1093 4 1093 14 1093 39 1094 3 1094 4 1094 14 1094 39 1095 3 1095 4 1095 25 1095 14 1095 24 1096 3 1096 4 1096 14 1097 14 1097 5 1098 2 1098 3 1098 8 1098 24 1098 5 1098 16 1099 4 1099 14 1099 16 1101 1 1101 2 1101 11 1101 35 1101 14 1101 5 1101 23 1101 9 1102 1 1102 2 1102 31 1102 11 1102 19 1102 14 1103 2 1103 3 1103 4 1103 14 1103 5 1104 31 1104 19 1104 9 1105 1 1105 3 1105 25 1105 11 1105 9 1106 2 1106 4 1106 30 1106 5 1106 28 1107 1 1107 2 1107 3 1107 5 1108 1 1108 3 1108 5 1109 2 1109 3 1109 14 1109 28 1110 3 1110 14 1110 5 1111 3 1111 25 1111 14 1112 2 1112 30 1112 5 1113 2 1113 3 1113 11 1114 2 1114 3 1114 11 1115 4 1115 8 1115 14 1116 4 1116 8 1117 4 1117 30 1117 5 1117 6 1117 28 1118 7 1118 4 1118 19 1118 9 1118 20 1119 4 1119 5 1119 9 1120 19 1121 1 1121 7 1121 4 1121 28 1121 20 1122 2 1122 3 1122 5 1123 1 1123 4 1123 30 1123 14 1123 5 1123 6 1123 28 1124 1 1124 2 1124 3 1124 30 1124 5 1124 28 1125 2 1125 3 1125 11 1125 8 1125 14 1125 23 1126 2 1126 3 1126 27 10053 1 1126 14 1126 5 1127 1 1127 2 1127 7 1127 4 1127 27 1127 14 1127 5 1128 1 1128 2 1128 31 1128 11 1128 5 1128 23 1129 2 1129 11 1129 5 1130 2 1130 11 1130 5 1131 2 1131 5 1132 2 1132 5 1133 2 1133 5 1134 2 1134 5 1135 2 1135 5 1136 1 1136 3 1136 30 1136 5 1136 23 1137 2 1137 30 1137 5 1137 6 1137 28 1138 4 1138 11 1138 41 1138 14 1139 2 1139 32 1139 5 1140 2 1140 11 1140 32 1141 2 1141 11 1141 32 1142 2 1142 11 1142 32 1143 1 1143 4 1143 23 1144 1 1144 31 1144 19 1145 1 1145 2 1145 30 1145 5 1145 28 1146 3 1146 25 1147 31 1147 41 1148 31 1148 41 1149 31 1149 41 1150 11 1150 41 1150 14 1151 2 1151 31 1151 4 1151 11 1151 8 1152 2 1152 31 1152 4 1152 11 1152 8 1153 3 1153 8 1153 14 1154 2 1154 27 1154 5 1155 3 1155 11 1155 19 1155 8 1155 9 1156 7 1156 19 1156 9 1157 2 1157 3 1157 11 1158 3 1159 30 1159 5 1159 28 1160 30 1160 5 1160 28 1161 2 1161 4 1161 5 1162 3 1162 30 1162 5 1162 10 1163 3 1163 30 1163 5 1163 10 1164 30 1164 5 1164 10 1165 1 1165 32 1166 1 1166 2 1166 3 1166 4 1166 14 1166 5 1167 2 1167 3 1167 5 1168 3 1168 30 1168 5 1169 3 1169 30 1169 5 1170 3 1170 30 1170 5 1171 30 1171 28 1172 3 1173 4 1173 5 1174 4 1174 5 1175 1 1175 4 1175 5 1176 3 1176 4 1176 25 1176 14 1176 5 1177 2 1177 3 1177 30 1177 5 1177 28 1178 1 1178 2 1178 3 1178 4 1178 11 1178 40 1179 5 1180 38 1180 24 1180 13 1181 13 1182 4 1182 39 1183 2 1183 4 1183 11 1184 1 1184 13 1185 13 1186 4 1186 27 1187 1 1187 2 1187 3 1187 11 1187 41 1187 8 1187 9 1188 11 1188 41 1189 2 1189 3 1189 11 1189 40 1190 3 1190 30 1190 5 1191 1 1191 19 1191 5 1192 3 1192 11 1193 1 1193 19 1193 5 1194 41 1195 19 1195 9 1196 19 1197 1 1197 4 1197 19 1198 1 1198 4 1199 5 1200 31 1201 2 1201 7 1201 19 1201 30 1201 5 1202 2 1202 30 1202 5 1203 1 1203 2 1203 30 1203 5 1204 1 1204 30 1204 5 1205 5 1206 1 1206 2 1206 5 1207 1 1207 2 1207 5 1207 10 1208 2 1208 31 1208 11 1208 41 1208 19 1209 2 1209 5 1210 1 1210 4 1210 22 1210 23 1211 1 1211 22 1211 5 1212 2 1212 5 1213 41 1213 42 1214 41 1215 5 1216 1 1216 22 1217 2 1217 7 1217 4 1218 7 1219 2 1219 7 1220 2 1220 7 1221 2 1221 7 1222 7 1223 2 1223 3 1223 7 1223 4 1224 3 1224 29 1224 11 1225 2 1225 4 1225 27 1225 5 1225 9 1226 1 1226 3 1226 10 1227 4 1228 2 1228 5 1229 3 1229 14 1229 24 1229 16 1230 3 1230 11 1230 8 1231 4 1231 5 1232 1 1232 22 1232 32 1233 2 1233 4 1233 11 1234 2 1234 4 1234 19 1234 30 1234 5 1234 28 1235 1 1235 14 1235 5 1235 6 1235 28 1236 2 1236 4 1236 30 1236 5 1237 1 1237 3 1237 11 1237 41 1237 19 1237 30 1237 14 1237 9 1238 41 1239 41 1240 41 1241 41 1242 41 1243 41 1243 35 1243 42 1244 2 1244 5 1244 13 1245 4 1245 5 1245 13 1246 4 1246 5 1246 13 1247 4 1247 5 1247 13 1248 4 1248 5 1248 13 1249 4 1249 5 1249 13 1250 1 1250 2 1250 3 1250 4 1250 30 1250 35 1250 14 1250 5 1250 28 1251 2 1251 3 1251 30 1251 5 1252 1 1252 3 1252 4 1252 30 1252 35 1252 5 1253 1 1253 2 1253 3 1253 4 1253 30 1253 35 1253 5 1254 41 1255 11 1255 41 1255 14 1256 41 1257 41 1258 3 1258 41 1258 36 1258 14 1259 4 1259 41 1259 14 1260 41 1261 41 1262 30 1262 5 1262 13 1263 30 1263 5 1263 13 1264 2 1264 3 1264 30 1264 5 1264 6 1265 2 1265 3 1266 2 1266 3 1267 2 1267 3 1268 2 1268 3 1269 2 1269 3 1270 2 1270 3 1271 2 1271 3 1271 7 1272 2 1272 3 1273 1 1273 3 1274 2 1274 3 1275 2 1275 3 1276 2 1276 3 1277 2 1277 3 1278 2 1278 3 1279 2 1279 3 1280 2 1280 3 1281 2 1281 3 1282 2 1282 3 1283 2 1283 3 1284 2 1284 3 1285 2 1285 3 1286 2 1286 3 1287 2 1287 3 1288 2 1288 3 1288 7 1289 2 1289 3 1290 2 1290 3 1290 7 1291 2 1291 3 1292 1 1292 2 1292 3 1292 7 1293 2 1293 3 1293 9 1294 7 1294 4 1294 11 1294 27 1295 1 1295 2 1295 11 1295 27 1295 5 1295 9 1296 2 1296 5 1296 6 1297 2 1297 30 1297 5 1297 6 1298 2 1298 17 1298 13 1299 2 1299 30 1299 5 1300 2 1300 3 1300 4 1300 30 1300 5 1301 27 1301 9 1302 3 1302 14 1302 24 1303 3 1303 4 1303 14 1304 1 1304 31 1304 19 1304 14 1304 9 1305 1 1305 27 1305 32 1305 9 1306 1 1306 2 1306 7 1307 1 1307 4 1307 30 1307 35 1307 5 1308 1 1308 2 1308 30 1308 5 1309 1 1309 2 1309 4 1309 30 1309 14 1309 5 1309 28 1310 1 1310 2 1310 4 1310 30 1310 5 1310 28 1311 4 1311 19 1311 5 1311 20 1312 1 1312 30 1312 24 1312 5 1313 2 1313 5 1314 1 1314 22 1314 5 1314 6 1314 23 1315 1 1315 2 1315 3 1315 11 1316 3 1316 7 1317 3 1317 7 1318 3 1318 7 1319 1 1319 3 1319 7 1324 2 1324 3 1326 30 1326 5 1326 28 1327 1 1327 2 1327 3 1327 4 1327 14 1327 5 1328 1 1328 2 1328 3 1329 2 1329 7 1330 1 1330 2 1330 19 1330 9 1331 3 1331 4 1332 3 1332 4 1332 14 1333 2 1333 3 1333 11 1333 8 1333 5 1334 1 1334 2 1334 4 1334 14 1334 28 1335 3 1335 25 1335 8 1335 26 1336 1 1336 4 1336 5 1336 6 1337 2 1337 4 1337 5 1338 1 1338 22 1338 23 1339 1 1339 11 1339 22 1339 24 1339 23 1340 7 1340 19 1340 5 1340 20 1341 4 1341 5 1342 3 1342 25 1342 11 1343 4 1344 1 1344 3 1344 11 1344 26 1344 9 1345 41 1346 3 1346 4 1346 25 1346 19 1346 9 1347 3 1348 3 1348 11 1348 8 1348 36 1349 2 1349 3 1349 11 1349 8 1349 36 1350 4 1350 30 1350 5 1350 28 1351 2 1351 3 1351 7 1351 10 1352 7 1353 4 1353 19 1353 5 1354 2 1354 3 1354 14 1355 41 1356 41 1357 41 1357 24 1357 13 1358 41 1359 3 1359 8 1359 14 1359 5 1360 3 1360 36 1360 5 1361 3 1361 4 1361 14 1362 1 1362 3 1362 4 1362 11 1362 19 1362 8 1362 14 1362 5 1363 1 1364 4 1365 4 1366 4 1366 11 1366 24 1366 16 1366 9 1367 2 1367 3 1368 1 1369 2 1369 3 1369 5 1370 3 1370 30 1370 5 1371 1 1371 25 1371 30 1372 3 1372 25 1372 11 1372 14 1372 9 1373 3 1373 4 1373 14 1373 39 1373 16 1374 2 1374 3 1374 8 1374 14 1375 8 1376 7 1376 9 1376 10 1376 20 1376 21 1377 1 1377 3 1377 11 1377 24 1377 9 1378 2 1378 14 1379 1 1379 3 1379 4 1379 28 1380 14 1380 13 1381 14 1381 13 1382 1 1382 27 1382 22 1383 1 1383 2 1383 30 1383 5 1384 3 1384 14 1384 24 1384 5 1385 30 1385 5 1386 4 1386 14 1386 16 1387 2 1387 3 1387 25 1387 11 1387 8 1387 14 1387 24 1387 26 1387 16 1387 9 1388 3 1388 24 1389 7 1389 5 1390 2 1390 4 1390 11 1390 5 1391 4 1391 13 1392 3 1392 4 1392 14 1393 1 1393 2 1393 5 1394 4 1394 11 1394 16 1394 9 1395 3 1395 14 1395 24 1396 31 1396 25 1396 11 1396 8 1397 1 1397 31 1397 11 1397 27 1397 8 1397 9 1398 3 1398 31 1398 11 1398 41 1398 8 1398 36 1399 1 1399 3 1399 22 1399 24 1400 1 1400 25 1400 22 1400 5 1401 35 1401 34 1402 3 1403 2 1403 4 1403 11 1403 8 1403 30 1403 14 1404 2 1404 3 1405 2 1405 3 1406 7 1406 30 1406 5 1406 28 1406 10 1407 2 1407 8 1407 14 1408 3 1408 22 1408 14 1409 3 1409 4 1409 14 1409 24 1409 37 1410 3 1410 8 1410 14 1410 24 1410 34 1411 3 1411 7 1411 19 1411 9 1412 40 1412 24 1413 1 1413 3 1413 4 1413 25 1413 11 1413 19 1413 8 1414 2 1414 30 1414 5 1415 1 1415 30 1415 24 1415 23 1415 28 1416 1 1416 4 1416 27 1416 32 1417 1 1417 3 1417 10 1418 2 1418 3 1418 4 1418 11 1418 8 1418 14 1418 5 1419 3 1419 4 1419 8 1419 35 1419 14 1419 24 1420 2 1420 31 1420 9 1421 3 1421 4 1421 8 1421 14 1421 24 1422 1 1423 1 1423 30 1423 5 1424 3 1424 5 1424 28 1425 31 1425 11 1426 2 1426 30 1427 31 1427 27 1427 9 1428 3 1428 14 1428 24 1429 4 1429 16 1430 1 1430 2 1430 3 1430 11 1431 3 1431 14 1431 24 1432 3 1432 4 1432 14 1432 16 1433 3 1433 24 1433 16 1434 19 1434 9 1434 20 1435 41 1436 1 1436 3 1436 25 1436 36 1436 13 1436 23 1437 3 1438 2 1438 30 1438 5 1439 1 1439 2 1439 5 1439 23 1440 3 1440 5 1441 7 1441 4 1442 4 1442 25 1442 30 1442 5 1442 28 1443 1 1443 30 1443 5 1444 1 1444 3 1444 24 1444 23 1445 2 1445 3 1445 11 1446 4 1446 14 1446 9 1447 3 1447 4 1448 1 1448 8 1449 2 1449 7 1449 4 1449 19 1449 5 1449 9 1449 28 1449 20 1450 3 1450 11 1451 1 1451 13 1452 3 1452 4 1452 11 1452 16 1453 1 1453 2 1453 5 1454 3 1454 25 1454 14 1454 24 1454 34 1455 2 1455 3 1455 5 1456 1 1456 3 1456 24 1457 1 1457 11 1457 27 1457 8 1458 3 1458 4 1458 5 1459 4 1459 14 1459 24 1460 2 1460 3 1460 25 1460 14 1460 5 1460 6 1460 28 1461 2 1461 4 1461 5 1462 2 1462 25 1462 30 1462 5 1463 1 1463 31 1463 19 1463 9 1464 1 1464 4 1464 19 1465 2 1465 3 1466 30 1466 5 1467 41 1467 24 1468 41 1469 41 1470 41 1471 41 1472 4 1472 27 1472 14 1472 39 1473 2 1473 11 1474 43 1475 4 1475 11 1475 14 1475 5 1475 39 1475 9 1476 1 1476 3 1476 23 1477 11 1477 8 1478 30 1478 5 1479 11 1479 14 1480 2 1480 4 1480 5 1481 1 1481 31 1481 25 1481 19 1481 30 1481 5 1481 23 1482 3 1482 14 1482 5 1483 1 1483 2 1483 4 1483 5 1483 6 1483 28 1484 4 1484 5 1484 6 1484 28 1485 4 1485 5 1485 6 1485 28 1486 3 1486 35 1487 3 1487 40 1488 11 1489 1 1489 3 1489 11 1489 27 1489 19 1489 22 1489 32 1489 9 1490 3 1490 4 1490 11 1490 8 1491 1 1491 2 1491 4 1491 5 1492 1 1492 2 1492 24 1492 5 1493 5 1494 2 1494 4 1495 1 1495 2 1495 7 1495 5 1495 9 1496 5 1496 2 1496 9 1497 1 1497 5 1497 9 1498 1 1498 2 1498 3 1498 5 1498 13 1499 1 1499 2 1499 3 1499 5 1499 13 1500 1 1500 2 1500 3 1500 5 1500 13 1501 1 1501 2 1501 5 1502 3 1502 40 1502 5 1503 40 1503 5 1504 13 1505 1 1505 30 1505 5 1506 1 1506 2 1506 5 1506 28 1507 4 1507 5 1508 1 1508 2 1508 30 1508 5 1509 3 1509 25 1509 14 1509 16 1510 1 1510 2 1510 11 1510 40 1510 8 1510 9 1511 1 1511 4 1511 30 1511 5 1512 3 1512 11 1512 5 1513 3 1514 1 1514 2 1514 3 1515 1 1515 2 1515 22 1515 23 1516 8 1516 14 1516 24 1517 4 1517 14 1517 16 1518 4 1518 30 1518 5 1518 20 1519 1 1519 11 1519 8 1519 14 1520 4 1520 14 1520 34 1521 1 1521 30 1521 5 1522 1 1522 3 1522 30 1522 5 1523 4 1523 27 1524 1 1524 2 1524 11 1525 3 1525 4 1525 35 1525 14 1525 16 1526 4 1526 11 1526 14 1527 3 1527 25 1527 5 1528 31 1528 41 1528 19 1528 23 1528 9 1529 1 1529 4 1530 1 1530 2 1530 5 1530 23 1461 19 1461 9 1531 1 1531 2 1531 5 1532 1 1532 3 1532 22 1532 5 1532 13 1533 1 1533 11 1534 1 1534 2 1534 3 1534 4 1534 11 1534 5 1535 1 1535 2 1535 3 1535 38 1535 30 1535 5 1536 2 1536 3 1536 25 1536 14 1536 5 1537 30 1537 5 1538 1 1538 2 1538 5 1538 28 1539 4 1539 14 1539 16 1540 1 1540 3 1540 4 1540 8 1541 3 1541 4 1541 14 1541 24 1541 34 1542 4 1542 14 1542 24 1542 16 1543 3 1543 25 1543 14 1543 34 1544 4 1544 11 1544 14 1544 24 1545 2 1545 11 1546 3 1546 4 1546 14 1546 24 1547 1 1547 31 1547 11 1548 4 1548 11 1548 35 1548 14 1548 24 1549 3 1549 16 1550 4 1550 24 1550 37 1550 16 1551 1 1551 2 1551 11 1551 8 1551 22 1552 3 1552 25 1552 11 1552 14 1553 1 1553 17 1553 5 1554 3 1554 4 1554 14 1554 24 1555 1 1555 3 1555 22 1555 23 1556 1 1556 2 1557 30 1557 5 1558 1 1558 3 1558 22 1558 36 1559 40 1560 4 1561 3 1561 25 1562 7 1562 4 1562 23 1562 9 1563 1 1563 3 1563 36 1563 5 1564 2 1564 3 1564 4 1564 11 1564 40 1564 8 1564 14 1564 24 1565 1 1565 2 1565 10 1566 2 1566 30 1566 5 1567 1 1567 2 1567 5 1568 3 1568 5 1569 3 1569 25 1569 14 1569 9 1570 3 1570 25 1570 14 1570 9 1571 1 1571 3 1571 11 1572 3 1573 3 1574 3 1575 3 1576 3 1577 3 1578 3 1579 1 1579 2 1579 27 1579 5 1580 1 1580 2 1580 4 1580 28 1581 1 1581 2 1581 4 1581 28 1582 1 1582 2 1582 4 1582 11 1583 1 1583 2 1583 11 1583 41 1584 3 1584 4 1584 24 1584 13 1584 16 1585 23 1585 26 1585 9 1586 1 1586 2 1586 11 1586 22 1587 19 1587 5 1587 20 1588 1 1588 2 1588 4 1588 30 1588 5 1589 1 1589 3 1589 36 1589 5 1590 41 1591 1 1591 13 1592 11 1592 24 1592 5 1593 1 1593 2 1593 22 1594 1 1594 2 1594 30 1594 5 1594 10 1595 1 1595 2 1595 4 1595 11 1595 8 1596 5 1597 2 1597 11 1597 9 1598 2 1598 3 1598 27 1599 41 1600 31 1600 41 1600 5 1600 23 1601 41 1602 41 1602 19 1603 41 1604 41 1605 41 1606 3 1606 25 1606 14 1606 24 1607 41 1608 41 1609 1 1609 30 1609 5 1610 1 1610 3 1610 25 1610 14 1610 5 1610 28 1611 4 1611 41 1612 1 1612 2 1612 30 1612 5 1613 1 1613 29 1613 4 1613 5 1614 1 1614 2 1614 3 1614 5 1614 10 1615 1 1615 2 1615 3 1615 5 1615 10 1616 1 1616 2 1616 3 1616 5 1616 10 1617 3 1617 4 1617 36 1618 3 1618 4 1618 36 1619 1 1619 2 1619 4 1619 22 1619 14 1620 1 1620 2 1620 4 1620 22 1621 1 1621 2 1621 3 1621 25 1621 5 1621 10 1622 1 1622 2 1622 3 1622 5 1622 10 1623 3 1623 4 1623 14 1623 16 1623 9 1624 1 1624 2 1624 3 1624 31 1624 26 1624 9 1625 1 1625 2 1625 3 1625 26 1626 1 1626 3 1626 4 1626 11 1626 8 1627 3 1627 11 1627 8 1627 24 1628 4 1628 8 1628 14 1629 1 1629 5 1629 6 1630 5 1631 3 1631 36 1631 16 1632 2 1632 11 1633 2 1633 3 1633 40 1633 30 1633 5 1634 3 1634 25 1634 14 1634 5 1634 34 1635 1 1635 2 1635 11 1635 9 1636 19 1636 30 1636 5 1637 1 1637 2 1637 30 1637 5 1638 41 1638 34 1639 1 1639 2 1639 31 1639 27 1639 22 1639 32 1640 1 1640 2 1640 22 1640 5 1641 4 1641 27 1642 4 1642 27 1643 2 1643 11 1644 2 1644 11 1645 1 1645 11 1646 2 1646 11 1646 8 1647 1 1647 3 1647 4 1647 11 1648 1 1648 2 1648 5 1649 2 1649 30 1650 1 1650 2 1650 5 1651 2 1651 11 1651 41 1651 8 1652 1 1652 38 1652 5 1653 3 1653 4 1653 25 1653 11 1653 8 1653 14 1653 24 1653 34 1654 1 1654 2 1654 3 1654 36 1654 5 1655 4 1655 14 1655 24 1656 2 1656 11 1656 40 1656 16 1657 1 1657 2 1657 3 1657 25 1657 11 1657 8 1657 14 1657 24 1657 34 1658 3 1659 4 1659 13 1660 4 1660 28 1661 1 1661 3 1661 7 1662 1 1662 30 1662 5 1663 4 1663 14 1663 13 1664 3 1664 4 1664 14 1665 1 1665 2 1665 11 1665 8 1666 2 1666 11 1666 30 1667 2 1667 11 1667 30 1668 2 1668 11 1668 30 1669 3 1669 16 1670 1 1670 2 1670 3 1670 8 1670 14 1670 5 1671 1 1671 2 1671 5 1672 2 1672 3 1672 11 1672 8 1673 3 1674 4 1674 5 1675 3 1675 24 1675 5 1675 16 1676 1 1676 13 1677 1 1677 4 1677 11 1677 19 1677 22 1677 24 1677 9 1678 3 1678 4 1678 24 1678 13 1678 16 1679 1 1679 25 1679 8 1679 5 1679 28 1680 2 1680 11 1680 27 1681 4 1681 11 1681 14 1681 34 1682 3 1682 36 1682 5 1683 1 1683 2 1683 11 1683 8 1683 14 1683 9 1684 1 1684 2 1684 5 1684 6 1685 2 1685 4 1685 30 1685 14 1686 3 1686 4 1686 35 1686 14 1686 16 1687 2 1687 3 1687 11 1687 40 1687 14 1688 2 1688 30 1688 24 1688 5 1688 13 1689 3 1689 25 1689 14 1689 34 1690 4 1690 27 1691 1 1691 4 1691 5 1691 23 1692 1 1692 2 1692 7 1692 5 1692 23 1693 11 1693 8 1693 24 1694 3 1695 3 1696 3 1696 11 1696 38 1697 3 1697 36 1697 24 1697 16 1698 3 1698 24 1698 16 1699 7 1699 9 1699 20 1699 21 1700 4 1700 11 1700 35 1700 5 1701 2 1701 3 1701 5 1702 2 1702 3 1702 5 1703 3 1703 14 1703 16 1704 2 1704 3 1704 11 1704 38 1705 41 1706 41 1707 2 1707 30 1707 24 1707 5 1708 1 1708 3 1708 25 1709 2 1709 30 1709 5 1710 3 1710 30 1710 5 1711 1 1711 2 1711 7 1711 4 1711 14 1711 5 1711 6 1712 3 1712 11 1713 1 1713 25 1713 5 1714 2 1714 31 1714 4 1714 11 1714 27 1714 14 1715 4 1715 27 1715 14 1716 2 1716 4 1716 11 1716 27 1716 14 1717 2 1717 3 1717 11 1717 27 1718 3 1718 14 1718 39 1719 3 1719 14 1719 39 1720 2 1720 7 1721 3 1721 30 1722 14 1722 24 1722 39 1723 1 1723 3 1723 24 1724 2 1724 3 1724 4 1724 11 1724 27 1724 14 1725 1 1725 3 1725 4 1725 8 1726 30 1726 5 1726 6 1726 28 1727 30 1727 5 1727 6 1727 28 1728 3 1728 8 1728 36 1729 3 1730 3 1731 3 1732 3 1733 3 1734 3 1734 14 1734 5 1735 3 1736 35 1736 16 1737 1 1737 22 1737 24 1737 23 1738 1 1738 2 1739 8 1740 8 1741 8 1742 11 1742 8 1742 24 1743 1 1744 1 1744 7 1744 30 1744 35 1744 14 1744 5 1745 3 1745 14 1745 5 1746 4 1746 11 1746 27 1746 9 1747 1 1747 2 1747 11 1747 27 1747 5 1747 28 1748 2 1748 3 1748 11 1748 30 1749 2 1749 3 1749 25 1749 5 1750 2 1750 4 1750 5 1751 2 1751 3 1751 5 1752 7 1752 11 1752 5 1752 20 1752 21 1753 1 1753 2 1753 3 1753 4 1753 25 1753 30 1753 14 1753 5 1754 2 1754 4 1754 27 1754 14 1755 1 1755 11 1755 30 1756 4 1756 8 1756 14 1757 2 1757 11 1757 19 1757 5 1757 9 1758 1 1758 2 1758 4 1758 11 1759 1 1759 30 1759 24 1759 23 1759 28 1760 1 1760 2 1760 11 1761 3 1761 11 1761 5 1762 1 1762 25 1762 22 1762 24 1762 23 1763 2 1763 3 1763 8 1763 14 1764 35 1765 2 1765 10 1766 3 1766 11 1766 40 1767 2 1767 3 1767 4 1767 11 1768 1 1768 3 1768 5 1769 1 1769 2 1769 38 1769 30 1769 5 1769 34 1770 4 1770 14 1770 16 1770 9 1771 31 1771 7 1771 11 1771 19 1771 9 1771 20 1772 4 1772 30 1772 5 1772 28 1773 4 1773 30 1773 14 1773 5 1773 28 1774 4 1774 30 1774 5 1774 28 1775 2 1775 3 1775 7 1776 29 1776 7 1776 9 1777 4 1778 30 1778 5 1779 1 1779 4 1779 27 1779 32 1780 1 1780 11 1780 5 1781 29 1781 11 1782 1 1782 3 1782 30 1782 5 1782 6 1783 7 1783 14 1783 5 1783 20 1784 16 1785 4 1786 7 1787 30 1788 30 1788 5 1789 3 1789 14 1790 3 1791 2 1791 3 1791 11 1791 8 1792 30 1793 1 1793 3 1793 25 1793 30 1793 24 1794 5 1795 2 1795 3 1795 11 1795 38 1795 5 1796 25 1796 8 1796 5 1797 3 1797 11 1797 9 1798 2 1798 35 1798 14 1798 5 1798 10 1799 2 1799 4 1799 30 1799 5 1800 3 1800 4 1800 30 1800 5 1801 1 1801 3 1801 30 1801 5 1802 1 1802 30 1802 5 1802 28 1803 1 1803 30 1804 3 1804 4 1804 16 1804 9 1805 2 1805 3 1805 11 1805 38 1806 41 1807 1 1807 3 1807 4 1807 22 1807 14 1807 13 1807 16 1808 1 1808 3 1808 4 1808 22 1808 13 1808 16 1809 1 1809 3 1809 10 1810 1 1810 3 1810 10 1811 2 1811 3 1811 19 1811 14 1811 24 1811 9 1812 1 1812 3 1812 4 1812 10 1813 1 1813 3 1813 10 1814 3 1814 24 1815 7 1815 4 1815 11 1815 19 1816 7 1816 4 1816 11 1816 19 1817 7 1817 19 1818 1 1818 2 1818 4 1818 5 1819 2 1819 3 1819 11 1820 2 1820 3 1820 41 1821 11 1821 9 1822 3 1822 9 1823 3 1823 27 1824 1 1824 7 1824 5 1824 23 1825 1 1825 3 1825 36 1825 14 1825 34 1826 3 1826 14 1826 24 1828 4 1828 11 1828 14 1829 2 1829 7 1829 4 1830 1 1830 2 1830 11 1830 8 1831 1 1831 2 1831 3 1831 4 1831 11 1831 27 1832 3 1832 29 1832 5 1832 20 1833 3 1833 14 1834 4 1834 27 1834 14 1834 16 1835 2 1835 3 1835 4 1835 8 1835 5 1836 3 1836 11 1836 8 1836 14 1836 24 1837 3 1837 8 1838 3 1838 8 1839 8 1840 1 1840 3 1840 11 1840 40 1840 8 1840 36 1840 14 1840 24 1841 1 1841 4 1841 11 1841 30 1841 5 1842 1 1842 2 1842 3 1842 7 1842 14 1843 3 1843 11 1843 8 1843 14 1843 24 1843 5 1844 3 1844 11 1844 8 1844 14 1845 3 1845 11 1845 8 1845 14 1846 11 1847 1 1847 30 1847 5 1847 28 1848 1 1848 2 1848 3 1848 11 1848 14 1849 3 1849 13 1850 1 1850 4 1850 35 1850 5 1850 23 1850 9 1851 14 1851 13 1852 2 1852 3 1852 11 1852 5 1853 11 1853 8 1854 2 1854 7 1854 4 1854 16 1855 1 1855 2 1855 5 1855 9 1856 3 1856 7 1856 10 1857 3 1857 30 1857 36 1857 24 1857 5 1858 3 1858 14 1859 1 1859 2 1859 5 1860 1 1860 30 1860 5 1861 1 1861 2 1861 5 1862 1 1862 2 1862 5 1863 1 1863 2 1863 5 1864 1 1864 2 1864 5 1865 1 1865 2 1865 5 1866 1 1866 3 1866 30 1866 36 1866 5 1867 1 1867 2 1867 30 1867 5 1868 2 1868 11 1869 41 1870 4 1870 14 1871 2 1871 3 1871 35 1872 19 1873 2 1873 3 1873 11 1874 2 1874 3 1874 16 1875 7 1876 7 1876 24 1877 2 1877 11 1878 2 1878 3 1878 25 1878 11 1878 8 1879 8 1879 5 1880 3 1880 38 1880 8 1881 14 1881 16 1882 1 1882 22 1882 24 1883 2 1883 3 1883 11 1884 2 1884 3 1884 11 1885 2 1885 3 1885 11 1886 3 1886 11 1887 2 1887 5 1887 6 1888 2 1888 30 1888 5 1889 2 1889 30 1889 5 1890 14 1891 3 1891 14 1892 14 1893 30 1893 5 1894 2 1894 5 1895 14 1895 5 1896 3 1896 5 1897 3 1897 4 1897 25 1897 11 1897 8 1897 14 1897 16 1898 2 1898 5 1898 9 1899 2 1899 5 1900 14 1901 2 1901 3 1901 16 1901 9 1902 4 1902 35 1903 3 1903 36 1903 14 1903 24 1904 4 1904 14 1904 9 1905 30 1905 5 1905 28 1906 1 1906 2 1907 1 1907 2 1907 3 1907 38 1907 30 1907 5 1908 1 1908 2 1908 38 1908 30 1908 24 1908 5 1909 1 1909 2 1909 38 1909 30 1909 5 1910 1 1910 2 1910 38 1910 40 1911 13 1912 1 1912 11 1912 8 1913 1 1913 11 1913 8 1914 1 1914 13 1915 40 1915 13 1916 40 1916 13 1917 13 1918 13 1919 1 1919 13 1920 1 1920 2 1920 11 1920 30 1920 24 1920 5 1921 1 1921 30 1921 24 1921 23 1921 28 1922 1 1922 2 1922 9 1923 1 1923 2 1923 3 1923 9 1924 2 1924 30 1924 5 1925 2 1925 30 1925 5 1926 4 1926 14 1926 24 1927 3 1927 19 1927 9 1928 3 1928 25 1928 8 1929 3 1929 25 1929 8 1930 4 1930 11 1931 41 1932 41 1933 41 1934 41 1935 1 1935 41 1935 27 1935 22 1936 4 1936 41 1936 14 1936 34 1937 41 1938 2 1938 4 1939 2 1939 3 1939 11 1939 9 1940 1 1940 2 1940 3 1940 4 1940 9 1941 1 1941 2 1942 11 1942 41 1942 9 1943 11 1943 35 1943 14 1943 24 1944 3 1944 19 1944 14 1944 5 1945 4 1945 14 1945 39 1945 43 1946 2 1946 3 1946 11 1946 16 1947 2 1947 11 1947 40 1948 3 1948 4 1948 11 1948 27 1948 5 1949 11 1950 2 1951 14 1951 24 1951 34 1952 1 1952 11 1952 38 1953 30 1953 5 1954 1 1954 4 1954 5 1954 6 1954 28 1955 13 1956 1 1956 7 1956 23 1957 2 1957 27 1958 1 1958 3 1958 25 1959 2 1959 3 1959 7 1959 4 1959 5 1960 3 1960 11 1960 19 1961 3 1961 16 1962 3 1962 4 1962 14 1962 24 1962 9 1963 2 1963 3 1963 9 1964 1 1964 5 1964 28 1965 1 1965 30 1965 14 1965 5 1965 23 1965 9 1966 7 1967 3 1967 25 1967 40 1967 24 1968 2 1968 11 1969 1 1969 2 1969 22 1969 14 1970 2 1970 4 1970 11 1971 1 1971 30 1971 5 1971 23 1972 1 1972 5 1973 4 1973 14 1973 24 1974 3 1974 14 1974 24 1974 13 1974 16 1975 30 1976 11 1976 5 1977 3 1977 13 1978 1 1978 2 1978 11 1978 41 1979 41 1980 41 1981 41 1982 41 1983 41 1984 41 1985 3 1985 11 1985 27 1985 14 1986 2 1986 3 1986 4 1986 11 1986 27 1986 14 1987 41 1988 41 1989 1 1989 11 1989 8 1989 30 1990 2 1990 4 1990 11 1991 30 1991 5 1992 2 1992 40 1993 1 1993 2 1993 4 1993 5 1994 1 1994 2 1994 4 1994 5 1995 7 1995 19 1995 21 1996 1 1996 3 1996 30 1996 5 1997 3 1997 5 1998 2 1998 3 1998 11 1999 4 1999 41 1999 14 2000 1 2000 41 2000 22 2001 4 2001 14 2002 2 2003 1 2003 30 2003 5 2004 4 2005 1 2005 4 2006 30 2006 5 2007 1 2007 4 2007 27 2007 22 2008 3 2008 25 2008 14 2008 5 2009 4 2009 14 2009 39 2009 43 2009 16 2009 20 2010 29 2010 4 2010 14 2010 39 2010 20 2011 4 2011 39 2012 3 2012 14 2013 3 2013 16 2014 11 2014 16 2015 35 2015 14 2015 13 2016 4 2016 27 2016 16 2017 11 2018 4 2018 27 2019 3 2019 13 2020 2 2020 3 2020 31 2020 11 2020 8 2020 22 2021 4 2021 8 2022 14 2022 24 2023 3 2024 3 2024 40 2025 1 2025 3 2025 40 2025 30 2025 36 2025 5 2026 4 2026 5 2026 20 2027 2 2027 4 2027 14 2027 5 2028 3 2028 7 2029 4 2029 27 2029 32 2029 14 2029 39 2029 43 2030 41 2031 41 2032 1 2032 2 2032 4 2032 27 2033 3 2033 27 2034 4 2034 14 2034 5 2035 31 2035 7 2035 11 2035 19 2035 9 2036 1 2036 3 2036 11 2036 22 2037 2 2037 11 2038 19 2038 5 2039 1 2039 9 2040 1 2040 11 2040 19 2040 9 2041 1 2041 4 2041 30 2041 5 2042 30 2042 5 2042 28 2043 1 2043 30 2043 5 2044 1 2044 4 2044 30 2045 4 2045 30 2045 5 2045 28 2046 3 2046 30 2046 5 2047 3 2047 11 2047 8 2047 14 2047 24 2048 3 2048 25 2048 30 2048 5 2049 19 2049 5 2049 20 2050 1 2050 19 2050 5 2050 9 2050 10 2051 2 2051 3 2051 5 2052 2 2053 1 2053 30 2054 41 2055 7 2055 30 2056 2 2056 30 2056 5 2057 1 2057 30 2057 5 2057 28 2058 8 2059 35 2060 41 2061 41 2062 2 2062 3 2062 11 2062 8 2063 3 2063 8 2064 2 2064 3 2064 11 2065 3 2066 2 2066 3 2066 7 2066 11 2066 5 2067 27 2068 30 2068 5 2069 2 2069 3 2069 30 2069 5 2070 1 2070 2 2070 40 2070 30 2070 5 2071 2 2072 2 2072 3 2072 11 2072 38 2073 2 2073 30 2073 5 2074 2 2074 3 2074 30 2074 5 2075 2 2075 11 2076 1 2076 2 2076 25 2076 30 2076 5 2077 1 2077 2 2077 5 2078 1 2078 30 2078 5 2079 1 2079 4 2079 30 2079 5 2080 1 2080 4 2080 30 2080 5 2081 1 2081 30 2081 5 2082 1 2082 30 2082 5 2083 1 2083 30 2083 5 2084 30 2084 36 2084 5 2085 30 2085 36 2085 5 2086 30 2086 36 2086 5 2087 30 2087 36 2087 5 2088 3 2088 30 2088 36 2089 1 2089 3 2089 25 2089 30 2090 4 2090 30 2090 14 2091 3 2091 5 2091 13 2091 16 2092 30 2092 5 2093 2 2094 1 2094 14 2094 5 2095 2 2095 3 2095 11 2096 2 2096 4 2097 1 2097 2 2097 41 2097 19 2097 5 2098 13 2099 3 2099 25 2100 1 2100 2 2100 28 2101 1 2101 2 2101 5 2102 1 2102 30 2102 5 2102 23 2103 2 2103 3 2103 30 2103 5 2103 20 2104 1 2104 31 2104 41 2105 2 2105 41 2105 8 2105 5 2106 41 2107 41 2108 41 2109 41 2110 2 2110 3 2110 11 2111 1 2111 2 2111 5 2111 6 2112 1 2112 2 2112 3 2112 25 2112 30 2112 14 2112 5 2112 28 2113 2 2113 4 2113 27 2113 14 2114 2 2114 27 2114 14 2115 1 2115 3 2115 11 2115 22 2116 3 2116 38 2116 9 2117 2 2117 30 2117 5 2118 41 2119 41 2120 41 2120 9 2121 1 2121 31 2121 4 2121 41 2122 31 2122 11 2122 41 2122 19 2122 5 2123 31 2123 11 2123 41 2123 19 2123 5 2124 31 2124 11 2124 41 2124 19 2124 5 2125 31 2125 11 2125 41 2125 19 2126 1 2126 29 2126 4 2126 19 2126 22 2126 20 2127 41 2128 41 2129 31 2129 41 2130 41 2131 41 2132 41 2133 19 2133 5 2133 9 2134 19 2134 5 2134 9 2135 19 2135 9 2136 41 2137 41 2138 41 2139 1 2139 30 2140 1 2140 30 2140 5 2141 2 2141 3 2141 40 2141 9 2142 1 2142 2 2142 30 2142 5 2142 10 2143 2 2143 11 2143 8 2144 9 2145 3 2145 25 2145 8 2145 24 2146 41 2147 7 2147 11 2148 41 2149 41 2150 4 2150 41 2151 11 2151 41 2151 9 2152 41 2152 24 2153 41 2153 24 2154 41 2155 41 2156 41 2157 41 2158 41 2159 1 2159 30 2159 5 2159 28 2160 1 2160 2 2160 14 2160 5 2161 3 2161 9 2162 3 2162 11 2163 3 2163 11 2163 13 2164 4 2164 14 2165 3 2166 2 2167 2 2167 3 2167 11 2167 36 2168 2 2168 3 2168 11 2168 30 2169 2 2169 3 2169 40 2170 2 2170 3 2170 11 2170 40 2171 41 2172 41 2173 41 2174 40 2174 5 2175 2 2175 3 2175 4 2175 40 2175 5 2176 2 2176 3 2176 40 2177 3 2177 9 2178 4 2178 13 2179 3 2179 25 2179 24 2180 1 2180 19 2180 9 2181 4 2182 3 2183 3 2183 40 2183 5 2184 1 2184 2 2184 3 2184 4 2184 5 2185 2 2185 3 2185 11 2185 8 2186 41 2186 5 2187 41 2188 41 2189 41 2190 3 2191 2 2191 13 2192 2 2192 13 2193 3 2193 4 2193 14 2193 39 2193 43 2194 1 2194 27 2194 32 2195 3 2195 11 2195 14 2195 5 2196 3 2196 4 2196 11 2196 5 2197 3 2197 11 2198 1 2198 2 2198 3 2198 5 2199 1 2199 11 2199 5 2200 2 2200 3 2200 4 2200 8 2200 14 2200 24 2201 2 2201 11 2201 40 2202 2 2202 11 2202 40 2203 2 2203 11 2203 40 2204 41 2205 41 2206 41 2206 24 2207 41 2208 41 2209 41 2209 24 2210 41 2211 11 2211 41 2212 41 2213 41 2214 41 2215 11 2215 41 2215 8 2215 34 2215 9 2216 11 2216 41 2216 8 2216 34 2216 9 2217 41 2218 41 2219 41 2220 41 2221 41 2222 1 2222 30 2222 5 2223 1 2223 7 2223 30 2223 5 2223 10 2223 20 2224 3 2224 25 2224 40 2224 24 2224 16 2225 1 2225 2 2225 5 2225 6 2226 1 2226 2 2226 5 2227 2 2227 3 2227 30 2228 3 2228 4 2228 14 2228 16 2229 5 2230 2 2230 4 2230 11 2230 35 2231 3 2231 8 2232 3 2232 4 2232 8 2232 14 2232 24 2233 3 2233 14 2234 3 2234 14 2235 1 2235 30 2235 5 2236 1 2236 22 2237 1 2237 36 2238 2 2238 3 2238 11 2239 2 2239 3 2239 28 2240 36 2241 2 2242 4 2242 14 2243 3 2243 41 2244 1 2244 5 460 5 2245 1 2245 2 2245 3 2245 11 2246 1 2246 2 2246 3 2246 8 2246 30 2246 5 2247 1 2247 2 2247 3 2247 8 2247 30 2247 5 2248 1 2248 5 2249 4 2249 14 2249 34 2250 1 2250 31 2250 11 2250 41 2251 1 2251 31 2251 11 2251 41 2252 1 2252 5 2253 1 2253 2 2253 22 2253 32 2254 1 2254 30 2255 3 2255 11 2255 8 2255 14 2256 3 2256 4 2256 14 2256 16 2256 9 2257 2 2257 4 2257 11 2257 5 2258 2 2258 11 2259 11 2259 8 2260 3 2260 11 2260 13 2261 4 2261 14 2261 13 2262 4 2262 14 2262 13 2263 4 2263 24 2263 13 2264 3 2264 25 2264 11 2265 4 2265 35 2266 2 2266 3 2266 8 2266 5 2267 3 2267 4 2267 24 2267 13 2267 16 2268 3 2268 4 2268 24 2268 13 2268 16 2269 27 2269 28 2270 2 2270 3 2271 2 2271 3 2272 41 2273 41 2274 41 2275 3 2275 36 2275 16 2276 30 2276 36 2276 5 2277 1 2277 5 2278 2 2278 7 2279 2 2279 7 2280 2 2280 7 2281 2 2281 7 2282 30 2282 5 2282 28 2283 4 2283 27 2283 14 2283 16 2284 3 2285 1 2285 2 2285 22 2285 23 2286 1 2286 30 2286 5 2287 2 2287 3 2287 8 2287 5 2288 2 2288 4 2288 11 2288 22 2288 14 2288 9 2289 1 2289 2 2289 3 2289 25 2289 8 2290 3 2290 25 2291 14 2292 1 2292 3 2292 25 2292 11 2292 8 2292 14 2292 5 2293 2 2293 25 2293 11 2294 2 2294 3 2294 11 2294 36 2295 41 2295 42 2296 41 2297 41 2298 41 2299 4 2299 11 2299 14 2299 5 2300 2 2300 3 2300 4 2300 11 2300 14 2300 5 2301 4 2301 11 2301 8 2301 14 2301 5 2302 11 2302 5 2303 7 2303 4 2303 11 2303 14 2303 24 2304 41 2305 3 2305 41 2306 41 2307 4 2307 14 2308 2 2308 27 2308 14 2309 2 2309 4 2309 16 2310 2 2310 4 2310 27 2311 4 2311 16 2312 4 2312 27 2312 16 2313 4 2313 27 2313 16 2314 4 2314 27 2314 16 2315 36 2316 41 2316 5 2317 3 2318 4 2318 16 2319 4 2319 27 2319 16 2320 4 2320 16 2321 2 2321 4 2322 4 2322 27 2322 35 2322 14 2322 16 2323 4 2323 27 2323 16 2324 2 2324 4 2324 27 2324 14 2324 16 2325 1 2325 4 2325 5 2326 1 2326 2 2326 5 2327 7 2327 4 2327 38 2327 21 2328 5 2328 16 2329 3 2329 14 2329 24 2329 5 2329 16 2330 2 2331 3 2331 24 2332 2 2332 40 2333 4 2334 2 2334 4 2335 3 2335 27 2335 40 2336 2 2336 3 2337 2 2337 11 2337 40 2338 2 2338 4 2338 16 2339 2 2339 11 2340 40 2341 4 2341 27 2341 16 2342 2 2342 4 2342 27 2342 16 2343 2 2343 3 2343 11 2344 2 2344 27 2344 40 2344 14 2345 3 2345 26 2345 9 2346 1 2346 4 2346 30 2346 5 2346 28 2347 1 2347 4 2347 30 2347 5 2347 28 2348 1 2348 4 2348 30 2348 5 2348 28 2349 1 2349 4 2349 30 2349 5 2349 28 2350 4 2350 30 2350 5 2350 28 2351 4 2351 30 2351 5 2351 28 2352 41 2353 1 2353 3 2354 41 2355 2 2355 27 2355 32 2356 1 2356 11 2356 19 2356 5 2356 39 2356 9 2357 1 2357 7 2357 14 2357 9 2357 21 2358 2 2358 3 2358 4 2358 35 2358 24 2359 4 2359 25 2359 14 2359 24 2360 5 2360 9 2360 20 2361 7 2362 2 2362 4 2362 30 2362 5 2363 1 2363 30 2363 5 2364 1 2364 30 2364 5 2365 1 2365 30 2365 5 2366 3 2366 25 2366 24 2367 1 2367 11 2367 5 2368 30 2368 5 2368 28 2369 3 2369 36 2369 24 2370 1 2370 2 2370 3 2370 11 2371 1 2371 2 2371 3 2371 11 2371 5 2371 20 2372 1 2372 17 2372 13 2373 4 2373 14 2373 24 2373 34 2374 4 2374 41 2374 14 2374 34 2375 3 2375 40 2376 40 2376 8 2377 2 2377 4 2377 5 2378 2 2378 4 2378 5 2379 3 2379 14 2379 24 2380 40 2381 3 2382 2 2382 7 2382 4 2382 27 2382 9 2383 1 2383 2 2383 30 2384 1 2384 2 2384 30 2385 4 2385 14 2386 1 2386 2 2386 5 2386 6 2386 28 2387 2 2387 4 2388 4 2388 27 2389 11 2390 11 2391 3 2392 11 2393 3 2394 3 2395 11 2396 3 2397 11 2398 3 2399 3 2399 11 2399 40 2400 11 2401 2 2401 3 2401 11 2401 40 2402 2 2402 3 2402 11 2402 40 2403 11 2404 2 2404 3 2404 11 2404 40 2405 2 2405 3 2405 11 2405 40 2406 11 2407 2 2407 3 2407 11 2407 40 2408 2 2408 3 2408 11 2408 40 2409 11 2410 11 2411 11 2412 3 2412 11 2412 40 2413 3 2413 11 2413 40 2414 11 2415 3 2415 11 2415 40 2416 11 2417 2 2417 3 2417 11 2417 40 2418 2 2418 11 2419 2 2419 3 2419 11 2419 40 2420 2 2420 3 2420 5 2421 2 2421 3 2421 11 2421 40 2422 11 2423 11 2424 11 2425 2 2425 3 2426 2 2426 3 2426 11 2426 40 2427 11 2428 2 2428 3 2428 11 2428 40 2429 2 2429 3 2429 11 2429 40 2430 11 2431 2 2431 3 2431 11 2431 40 2432 11 2433 2 2433 3 2433 11 2433 40 2434 2 2435 11 2436 2 2436 3 2436 11 2437 11 2438 11 2439 11 2440 11 2441 11 2442 3 2442 5 2443 2 2444 3 2444 41 2444 5 2445 1 2445 7 2445 4 2445 11 2445 19 2445 22 2445 24 2446 1 2446 5 2446 13 2447 2 2447 4 2447 11 2447 14 2448 2 2448 30 2448 5 2449 3 2449 11 2450 2 2450 5 2451 2 2451 5 2452 1 2452 7 2453 2 2453 11 2454 36 2455 3 2455 11 2456 4 2456 27 2457 1 2457 2 2457 30 2457 5 2458 2 2458 5 2459 1 2460 4 2461 2 2461 3 2461 5 2462 2 2462 5 2463 3 2463 40 2464 2 2464 38 2465 13 2466 1 2466 7 2466 30 2466 10 2467 2 2467 17 2467 13 2468 17 2468 13 2469 2 2469 40 2470 3 2470 11 2470 40 2471 17 2471 13 2472 3 2473 3 2473 14 2474 1 2474 2 2474 38 2474 30 2474 5 2475 4 2475 24 2476 2 2477 3 2478 2 2478 4 2478 5 2478 6 2479 2 2479 11 2480 1 2480 3 2480 11 2480 14 2481 3 2481 41 2482 1 2482 2 2482 5 2483 1 2483 3 2483 8 2483 30 2483 5 2484 1 2484 2 2484 30 2484 35 2484 5 2485 3 2485 8 2485 36 2485 5 2485 6 2485 10 2486 1 2486 4 2486 24 2486 10 2487 1 2487 3 2487 8 2487 24 2488 35 2489 4 2489 35 2490 3 2490 25 2491 1 2491 30 2491 36 2492 3 2492 4 2493 36 2494 1 2494 30 2495 1 2495 30 2495 5 2496 3 2496 11 2496 5 2497 1 2497 4 2498 11 2499 4 2499 11 2499 23 2500 13 2501 13 2502 3 2502 40 2502 5 2503 3 2503 36 2504 3 2504 24 2505 3 2505 24 2505 9 2506 1 2506 5 2506 28 2507 1 2507 2 2507 4 2507 30 2507 5 2508 3 2508 25 2508 13 2509 2 2509 3 2510 2 2510 3 2511 4 2511 11 2511 16 2512 1 2512 3 2512 13 2513 27 2514 1 2514 2 2514 5 2515 41 2515 27 2516 11 2517 1 2517 3 2517 40 2518 5 2518 13 2519 1 2519 30 2519 5 2520 4 2520 30 2520 5 2521 4 2521 30 2521 5 2522 2 2522 3 2522 14 2523 1 2524 3 2524 8 2525 20 2526 1 2526 3 2526 4 2526 11 2526 8 2526 35 2526 14 2527 1 2527 2 2527 5 2528 2 2528 5 2529 3 2529 14 2529 24 2530 1 2530 11 2531 1 2531 19 2531 30 2531 5 2531 20 2532 1 2532 2 2532 11 2532 8 2533 2 2533 11 2533 8 2534 1 2534 2 2534 11 2534 8 2535 4 2535 24 2536 1 2536 2 2536 3 2536 24 2536 9 2537 7 2537 9 2537 20 2538 2 2538 11 2539 2 2539 11 2540 3 2540 25 2540 8 2540 14 2540 34 2541 5 2541 28 2542 1 2542 38 2543 1 2543 4 2543 11 2543 14 2543 24 2543 23 2543 9 2544 4 2544 41 2544 14 2544 5 2545 2 2545 11 2545 40 2546 3 2546 25 2546 24 2547 1 2547 3 2547 24 2548 2 2548 11 2549 2 2549 4 2549 11 2549 5 2550 41 2551 1 2551 4 2551 11 2551 30 2551 14 2551 5 2552 3 2552 40 2553 1 2553 22 2554 41 2555 2 2555 14 2556 4 2556 16 2557 4 2557 16 2558 4 2558 16 2559 30 2559 5 2560 2 2560 11 2560 8 2561 11 2561 8 2562 2 2562 3 2562 11 2563 1 2563 30 2563 5 2564 2 2564 3 2564 40 2565 4 2565 27 2565 40 2566 1 2566 2 2566 4 2566 30 2566 5 2567 2 2567 3 2567 4 2567 11 2567 40 2568 3 2568 40 2569 3 2569 40 2570 2 2570 4 2570 30 2570 14 2570 5 2571 2 2571 11 2571 14 2572 1 2572 3 2572 11 2572 8 2572 30 2572 5 2573 1 2573 2 2573 11 2574 1 2574 2 2574 3 2574 40 2575 41 2576 3 2577 3 2577 11 2578 2 2578 3 2579 2 2579 11 2579 8 2579 14 2580 11 2581 3 2582 2 2582 4 2582 27 2582 40 2582 16 2583 2 2583 4 2583 16 2584 2 2584 4 2584 16 2585 2 2585 4 2585 16 2586 2 2586 3 2586 4 2586 11 2586 38 2586 40 2586 8 2586 22 2586 30 2586 24 2586 5 2586 23 2586 16 2586 9 2587 2 2587 5 2588 4 2588 8 2589 2 2589 3 2589 14 2589 39 2590 2 2590 3 2590 27 2590 40 2591 1 2591 3 2591 30 2591 5 2592 2 2592 11 2592 41 2592 14 2593 1 2593 3 2593 30 2593 5 2594 3 2594 36 2595 41 2596 2 2596 11 2597 2 2597 3 2598 2 2599 1 2599 2 2599 3 2599 27 2599 22 2600 41 2601 41 2602 41 2603 41 2604 41 2605 41 2606 41 2607 41 2608 41 2609 41 2610 41 2611 41 2612 41 2612 24 2613 41 2614 41 2615 41 2616 41 2617 11 2617 40 2618 4 2618 28 2619 27 2619 5 2620 41 2621 1 2621 3 2622 3 2623 1 2623 2 2623 22 2623 9 2624 2 2624 11 2625 11 2626 3 2626 11 2627 41 2628 2 2629 41 2630 3 2631 3 2631 9 2631 21 2632 1 2632 3 2633 1 2633 3 2634 1 2634 30 2634 23 2634 28 2635 25 2635 22 2635 24 2635 23 2636 30 2636 5 2637 3 2637 5 2638 3 2638 25 2639 4 2639 8 2639 14 2640 3 2640 16 2641 2 2641 4 2642 4 2643 30 2644 3 2644 41 2645 1 2645 4 2645 13 2646 4 2646 13 2647 4 2647 13 2648 3 2648 8 2648 24 2649 7 2649 4 2649 14 2650 4 2650 14 2650 24 2651 4 2651 14 2651 24 2652 2 2652 4 2652 11 2652 38 2652 8 2652 5 2653 2 2653 5 2653 6 2654 3 2655 7 2655 16 2655 9 2656 3 2656 5 2656 10 2657 3 2658 41 2659 41 2661 35 2662 1 2662 30 2662 5 2663 3 2663 16 2664 41 2664 24 2665 29 2665 11 2665 41 2665 19 2666 41 2667 1 2667 41 2667 27 2667 30 2667 28 2668 40 2668 8 2669 40 2669 8 2670 40 2670 16 2671 1 2671 3 2671 27 2671 36 2671 32 2671 5 2672 1 2672 11 2672 23 2673 35 2673 16 2674 3 2675 41 2676 41 2677 41 2678 41 2679 41 2680 41 2174 11 2174 2 2681 3 2681 16 2682 4 2682 5 2682 37 2683 7 2683 5 2684 2 2684 11 2684 14 2685 7 2685 4 2685 14 2686 1 2686 30 2686 5 2686 28 2687 2 2687 11 2687 8 2688 2 2688 3 2688 11 2689 2 2690 11 2690 5 2691 4 2691 30 2691 5 2692 31 2692 11 2692 41 2692 19 2693 1 2693 2 2693 31 2693 19 2693 30 2693 5 2694 41 2695 1 2695 2 2695 11 2695 8 2695 30 2696 4 2696 27 2696 19 2697 41 2697 24 2698 2 2698 31 2698 7 2698 4 2698 11 2698 19 2698 24 2698 9 2698 20 2699 3 2699 31 2699 7 2699 9 2700 3 2700 24 2700 13 2701 30 2701 5 2702 1 2702 41 2702 19 2702 9 2703 41 2703 24 2704 41 2705 41 2706 3 2706 25 2706 11 2706 14 2706 24 2706 26 2706 34 2707 7 2707 9 2707 10 2707 20 2707 21 2708 4 2708 11 2708 27 2709 4 2709 11 2709 5 2710 4 2710 27 2711 1 2711 3 2711 10 2712 3 2712 24 2712 9 2713 38 2713 21 2714 4 2714 11 2715 2 2715 11 2715 8 2715 14 2716 2 2716 4 2716 11 2717 3 2718 35 2718 39 2719 3 2720 13 2721 2 2721 27 2722 14 2723 13 2724 1 2724 27 2724 5 2724 28 2725 1 2725 4 2725 5 2725 6 2725 28 2726 1 2726 4 2726 5 2726 28 2727 2 2727 3 2728 3 2729 1 2729 3 2729 14 2729 24 2729 23 2730 1 2730 14 2730 24 2730 5 2731 3 2731 25 2731 8 2731 24 2731 23 2731 9 2732 1 2732 7 2732 11 2732 14 2733 1 2733 11 2733 8 2734 3 2734 4 2734 14 2734 5 2735 1 2735 2 2735 4 2735 22 2736 1 2736 11 2736 5 2736 28 2737 2 2737 3 2737 4 2737 11 2738 2 2738 4 2738 5 2739 2 2739 3 2739 5 2740 41 2741 1 2741 5 2742 1 2742 2 2742 3 2742 14 2743 3 2743 11 2744 11 2744 41 2745 41 2746 3 2746 41 2746 42 2747 11 2747 14 2748 1 2748 2 2748 30 2748 5 2749 41 2750 41 2750 24 2751 41 2751 24 2752 11 2752 35 2752 14 2753 3 2753 4 2753 13 2754 2 2754 27 2755 41 2756 3 2756 11 2756 14 2756 39 2756 9 2757 41 2758 2 2758 30 2758 5 2759 5 2760 2 2760 27 2760 30 2760 5 2761 41 2762 41 2763 1 2764 1 2764 2 2764 3 2764 11 2765 41 2766 1 2766 4 2766 5 2766 28 2767 2 2767 4 2767 5 2767 28 2768 1 2768 11 2768 30 2768 5 2768 28 2769 4 2769 5 2769 28 2770 4 2770 5 2770 28 2771 3 2772 11 2772 41 2773 2 2773 27 2773 5 2774 8 2774 14 2775 3 2776 41 2776 8 2777 30 2777 5 2778 1 2778 36 2779 14 2779 13 2780 41 2781 3 2781 25 2781 5 2782 1 2782 11 2782 5 2783 1 2783 5 2784 11 2784 14 2785 4 2785 28 2786 3 2786 8 2786 14 2786 9 2787 3 2787 7 2787 4 2787 9 2787 20 2788 3 2788 4 2788 14 2788 39 2789 41 2790 41 2791 3 2791 25 2791 9 2792 1 2792 30 2792 5 2793 1 2793 11 2793 30 2793 23 2794 1 2795 1 2795 2 2795 30 2795 5 2795 13 2796 41 2797 1 2797 5 2798 41 2799 41 2800 41 2801 2 2801 3 2801 11 2801 41 2802 4 2803 4 2803 13 2804 3 2804 25 2805 3 2805 16 2806 1 2806 2 2806 3 2806 40 2806 30 2806 5 2806 23 2807 1 2807 2 2807 14 2807 5 2808 13 2809 4 2809 14 2810 3 2810 25 2810 24 2811 3 2811 11 2811 14 2811 26 2812 1 2812 2 2812 3 2813 3 2813 19 2814 3 2814 19 2815 13 2816 2 2816 27 2817 1 2817 2 2817 11 2817 30 2817 5 2818 3 2819 2 2820 3 2820 4 2821 11 2821 41 2821 28 2822 2 2822 30 2822 5 2823 4 2824 2 2824 30 2824 5 2825 1 2825 2 2825 5 2825 20 2826 1 2826 2 2826 5 2826 23 2827 1 2827 2 2827 22 2827 5 2827 23 2828 1 2828 3 2828 40 2829 1 2829 3 2829 25 2829 11 2829 8 2829 14 2829 34 2830 3 2830 14 2830 24 2830 16 2831 41 2831 42 2832 2 2832 4 2832 27 2832 16 2833 3 2834 3 2834 24 2834 16 2835 1 2835 11 2835 19 2835 5 2836 5 2836 16 2837 41 2838 3 2838 14 2838 16 2838 9 2839 1 2839 2 2839 3 2839 4 2839 5 2840 2 2840 4 2840 11 2840 19 2840 8 2840 35 2840 5 2840 9 2841 1 2841 2 2841 31 2841 11 2841 19 2841 9 2842 11 2843 3 2843 14 2843 16 2844 1 2844 2 2844 4 2844 5 2844 6 2845 2 2845 3 2845 11 2845 8 2846 4 2846 11 2846 14 2847 5 2848 11 2848 5 2849 3 2849 5 2850 11 2851 4 2851 27 2851 40 2851 16 2852 2 2852 16 2853 11 2853 40 2854 40 2855 3 2855 24 2856 25 2857 14 2857 39 2857 43 2858 3 2858 41 2858 42 2859 1 2859 3 2859 13 2860 1 2860 2 2860 23 2861 27 2862 2 2862 9 2863 3 2863 24 2863 5 2863 16 2864 4 2865 2 2865 3 2865 11 2865 36 2866 1 2866 30 2866 5 2866 23 2867 1 2867 30 2867 5 2867 23 2868 3 2868 24 2868 16 2869 3 2869 4 2869 13 2870 2 2870 11 2870 27 2871 3 2871 36 2871 24 2872 3 2872 25 2872 36 2872 14 2872 34 2873 2 2873 3 2873 11 2874 1 2874 4 2874 5 2874 28 2875 1 2875 2 2875 3 2875 30 2875 5 2876 1 2876 2 2876 4 2876 22 2876 5 2877 5 2877 6 2877 23 2878 3 2878 41 2878 36 2879 3 2880 7 2881 14 2882 1 2882 4 2882 27 2882 9 2883 41 2884 1 2884 40 2885 5 2886 1 2886 7 2886 4 2886 41 2886 19 2886 14 2886 5 2886 10 2887 30 2887 5 2887 28 2888 2 2888 4 2888 19 2888 5 2889 25 2890 25 2891 3 2891 8 2891 14 2892 3 2892 4 2892 14 2893 11 2894 5 2895 1 2895 11 2895 38 2895 5 2896 4 2896 30 2896 5 2896 13 2897 2 2897 30 2897 5 2898 2 2898 3 2898 13 2899 1 2899 3 2899 13 2900 1 2900 3 2900 13 2901 1 2901 3 2901 13 2902 1 2902 3 2902 13 2903 1 2903 3 2903 13 2904 1 2904 3 2904 13 2905 1 2905 3 2905 13 2906 1 2906 3 2906 13 2907 1 2907 3 2907 13 2909 41 2910 30 2910 5 2911 1 2911 30 2911 6 2911 28 2912 3 2912 11 2912 40 2913 3 2913 24 2914 7 2914 30 2914 5 2914 6 2914 28 2915 3 2916 11 2916 5 2916 16 2917 2 2917 3 2917 4 2917 11 2917 14 2918 14 2918 24 2919 1 2919 3 2919 31 2919 11 2919 41 2920 41 2920 8 2920 14 2920 24 2921 41 2921 9 2922 41 2922 24 2923 30 2923 5 2924 4 2924 14 2925 41 2925 30 2926 1 2926 41 2927 7 2927 41 2927 27 2928 3 2928 16 2929 2 2929 3 2930 1 2930 30 2930 10 2931 2 2931 5 2932 4 2932 14 2934 2 2934 11 2934 9 2935 1 2935 4 2936 41 2937 30 2938 29 2938 4 2938 27 2938 20 2939 2 2939 30 2939 5 2940 3 2940 25 2940 8 2941 2 2941 3 2941 11 2941 41 2942 3 2943 41 2944 4 2944 27 2944 14 2944 16 2945 11 2946 1 2946 19 2946 5 2946 42 2946 9 2947 3 2947 14 2947 16 2948 1 2948 3 2948 5 2948 23 2949 41 2950 1 2950 2 2950 3 2950 30 2950 5 2951 1 2951 9 2952 2 2953 11 2953 8 2953 24 2954 3 2954 4 2954 22 2955 1 2955 11 2955 27 2955 9 2956 1 2956 30 2957 8 2958 1 2958 5 2959 1 2959 5 2959 23 2960 27 2961 38 2961 27 2962 41 2962 14 2963 1 2963 5 2963 28 2964 2 2965 3 2965 4 2965 39 2965 43 2966 41 2967 41 2968 41 2969 41 2970 2 2970 5 2971 41 2972 41 2973 41 2974 41 2975 8 2976 1 2977 2 2977 11 2977 5 2978 3 2978 25 2978 24 2979 35 2979 14 2979 24 2980 41 2981 4 2981 14 2982 7 2982 4 2982 14 2983 1 2983 22 2983 5 2983 23 2984 1 2984 30 2985 2 2985 11 2986 1 2986 3 2986 41 2986 23 2987 41 2988 3 2988 30 2988 5 2989 1 2989 5 2990 3 2990 30 2990 5 2990 28 2991 41 2991 20 2992 3 2993 3 2993 25 2993 8 2994 1 2994 3 2994 36 2995 3 2995 25 2995 22 2995 14 2996 4 2996 11 2996 20 2996 21 2997 3 2997 4 2997 24 2998 41 2999 4 2999 27 2999 40 2999 16 3000 2 3000 40 3000 16 3001 41 3001 19 3001 9 3002 41 3002 19 3003 30 3003 5 3004 1 3004 30 3004 5 3005 1 3005 2 3005 3 3005 30 3006 5 3006 13 3007 2 3007 17 3007 40 3008 7 3008 27 3009 2 3009 40 3009 5 3010 3 3011 1 3011 13 3012 41 3013 41 3014 1 3014 5 3014 23 3015 1 3015 19 3015 5 3016 3 3016 30 3016 5 3017 1 3018 5 3019 41 3020 41 3021 3 3021 25 3021 14 3021 24 3021 5 3021 34 3022 14 3022 24 3022 37 3023 7 3023 4 3023 26 3023 9 3024 3 3024 40 3025 11 3026 2 3026 11 3027 4 3027 16 3028 5 3029 3 3029 14 3029 5 3030 4 3030 27 3030 28 3031 2 3031 11 3031 20 3032 3 3032 14 136 24 407 16 3033 3 3033 14 3033 24 3034 3 3035 36 3036 36 3037 19 3037 22 3037 32 3038 41 3039 1 3039 31 3039 41 3039 22 3039 9 3040 1 3040 5 3041 2 3041 30 3042 3 3042 24 3042 13 3043 3 3043 14 3044 4 3044 14 3045 3 3045 30 3045 5 3046 1 3046 2 3046 30 3046 5 3047 4 3047 27 3047 14 3048 5 3049 2 3050 11 3050 27 3051 14 3052 22 3053 2 3053 5 3054 3 3055 2 3055 11 3055 27 3055 14 3056 3 3056 25 3056 14 3056 34 3056 9 3057 1 3057 2 3057 22 3057 30 3057 24 3057 23 3058 29 3058 35 3058 5 3059 29 3059 4 3059 35 3059 24 3059 9 3059 20 3060 1 3060 29 3060 11 3060 30 3060 35 3060 14 3060 5 3060 20 3061 1 3061 22 3061 23 3062 1 3062 22 3062 23 3063 3 3063 4 3064 14 3064 16 3065 3 3066 1 3066 11 3066 23 3067 3 3068 3 3069 11 3070 3 3071 1 3071 5 3071 23 3072 1 3072 29 3072 38 3072 19 3072 35 3072 5 3073 2 3073 11 3073 41 3074 41 3075 41 3076 41 3077 41 3078 41 3079 1 3079 11 3079 8 3080 1 3080 31 3080 41 3080 8 3080 9 3081 3 3082 41 3083 41 3084 41 3085 41 3086 41 3087 41 3088 41 3089 41 3090 3 3090 16 3090 10 3091 3 3091 10 3092 3 3092 10 3093 1 3093 2 3094 3 3094 13 3095 41 3096 1 3096 31 3096 11 3096 41 3097 41 3098 41 3099 4 3099 41 3099 14 3099 34 3100 41 3101 41 3102 2 3102 30 3102 5 3103 41 3104 41 3105 41 3106 41 3107 41 3108 41 3109 3 3109 13 3110 41 3110 19 3111 2 3111 11 3111 40 3111 16 3112 2 3112 17 3113 1 3113 30 3113 35 3113 14 3113 5 3114 8 3114 36 3115 1 3115 7 3115 10 3116 3 3116 36 3117 2 3118 3 3118 5 3119 41 3120 1 3120 30 3120 5 3121 41 3122 41 3123 41 3124 41 3125 31 3125 41 3126 41 3127 41 3128 1 3128 2 3128 3 3128 11 3128 9 3129 1 3129 3 3129 11 3130 1 3130 2 3130 11 3130 8 3131 1 3131 31 3131 19 3132 1 3133 3 3133 4 3133 11 3133 8 3133 14 3134 1 3134 31 3134 22 3135 1 3135 4 3135 5 3136 1 3136 2 3136 19 3136 26 3137 3 3137 16 3138 1 3138 22 3138 14 3139 1 3139 2 3139 30 3139 5 3140 1 3140 3 3140 14 3140 28 3141 7 3141 9 3141 10 3142 3 3142 11 3142 14 3143 1 3143 3 3143 25 3144 3 3145 3 3145 23 3146 3 3146 36 3147 11 3147 41 3148 2 3149 1 3149 25 3149 19 3149 23 3149 9 3150 1 3150 2 3150 4 3150 30 3150 5 3150 6 3150 28 3150 20 3151 3 3151 4 3151 11 3151 14 3151 34 3152 41 3153 3 3153 8 3153 24 3153 5 3153 23 3154 11 3155 3 3155 41 3155 24 3156 41 3156 5 3157 41 3158 5 3159 2 3159 3 3160 41 3161 3 3161 25 3162 40 3162 24 3162 16 3162 9 3163 25 3163 11 3163 35 3163 34 3164 41 3165 41 3166 41 3167 27 3168 41 3169 41 3170 3 3170 7 3170 21 3171 1 3171 30 3172 3 3172 25 3172 11 3172 14 3172 24 3172 9 3173 1 3173 3 3173 4 3173 11 3173 9 3174 1 3174 39 3174 9 3175 2 3175 3 3176 3 3176 11 3176 40 3176 8 3177 1 3177 14 3177 5 3178 4 3178 5 3178 6 3178 28 3179 1 3179 25 3179 8 3179 5 3179 28 3180 11 3180 24 3181 2 3181 40 3182 1 3182 30 3182 28 3183 1 3183 30 3183 35 3184 3 3184 5 3184 23 3185 1 3185 2 3185 7 3186 3 3186 36 3186 24 3187 11 3187 5 3188 1 3188 30 3188 5 3189 41 3190 41 3191 31 3191 41 3191 9 3192 3 3193 5 3194 35 3195 3 3195 24 3196 2 3196 3 3196 30 3197 2 3197 3 3197 30 3197 14 3198 40 3198 16 3199 11 3199 8 3199 24 3200 11 3201 14 3201 5 3202 3 3202 35 3203 3 3204 41 3205 41 3206 41 3207 19 3207 9 3208 41 3208 24 3209 1 3209 2 3209 3 3209 25 3209 11 3209 8 3209 14 3209 24 3209 34 3210 7 3210 9 3210 20 3211 11 3212 3 3213 38 3214 1 3214 2 3214 4 3214 27 3215 2 3215 3 3216 41 3217 41 3218 3 3218 14 3219 4 3220 1 3220 3 3220 30 3220 36 3220 24 3220 5 3220 6 3221 3 3221 11 3222 2 3222 3 3223 2 3223 3 3224 7 3224 36 3224 26 3225 3 3225 40 3225 32 3226 3 3226 25 3226 40 3226 24 3226 16 3227 41 3227 24 3227 9 3228 24 3228 37 3228 16 3229 11 3230 2 3230 11 3230 40 3231 11 3231 8 3232 11 3232 40 3233 2 3233 11 3234 2 3235 3 3235 14 3236 2 3236 11 3237 2 3237 27 3238 1 3238 23 3239 1 3239 5 3239 23 3240 1 3240 5 3240 23 3241 2 3241 11 3242 1 3242 13 3243 1 3243 13 3244 41 3245 30 3245 5 3246 24 3247 3 3247 7 3247 24 3248 1 3248 7 3248 14 3248 9 3248 21 3249 1 3249 7 3249 14 3249 9 3249 21 3250 1 3250 30 3250 5 3251 1 3251 30 3251 5 3252 1 3252 30 3252 5 3253 3 3253 5 3253 23 3254 13 3255 41 3256 41 3257 3 3258 17 3259 26 3260 41 3260 9 3261 8 3262 1 3262 2 3262 3 3262 22 3262 14 3262 13 3263 4 3263 27 3263 14 3264 13 3265 2 3265 11 3265 14 3266 2 3266 3 3267 2 3268 2 3268 40 3269 7 3269 11 3269 14 3270 1 3270 25 3271 5 3272 35 3273 4 3273 35 3274 35 3274 5 3275 35 3276 2 3277 40 3278 41 3279 1 3279 24 3279 13 3280 41 3281 1 3281 13 3282 2 3283 4 3283 27 3284 1 3284 11 3285 41 3286 2 3286 5 3287 4 3287 27 3288 2 3288 27 3289 2 3289 3 3289 30 3289 5 3290 8 3290 24 3291 8 3291 24 3292 1 3292 5 3293 3 3293 16 3294 2 3295 1 3295 11 3296 1 3296 24 3296 13 3297 8 3298 5 3299 11 3300 1 3300 2 3300 3 3300 11 3300 23 3301 3 3302 1 3302 3 3302 40 3302 23 3303 4 3303 5 3304 2 3304 3 3304 4 3305 7 3305 5 3305 20 3306 1 3306 3 3306 9 3307 3 3307 8 3308 1 3308 27 3308 22 3309 4 3309 27 3310 4 3310 27 3310 14 3311 3 3311 11 3312 13 3313 2 3313 27 3314 13 3315 3 3315 8 3316 2 3316 11 3317 2 3317 27 3318 3 3318 8 3319 2 3319 27 3320 30 3320 5 3321 3 3321 8 3322 30 3322 5 3322 9 3323 41 3323 5 3324 1 3324 3 3324 25 3324 11 3325 40 3326 2 3326 3 3327 41 3328 3 3328 25 3329 41 3329 5 3330 41 3331 41 3332 2 3332 31 3332 30 3332 5 3333 5 3333 23 3334 1 3334 3 3334 27 3334 9 3335 41 3335 35 3336 2 3337 19 3338 2 3338 14 3338 5 3338 6 3339 31 3339 41 3339 19 3340 3 3340 11 3341 1 3341 3 3341 41 3341 14 3341 9 3342 41 3343 41 3344 1 3344 31 3344 22 3345 11 3346 2 3346 3 3346 30 3347 41 3348 41 3349 41 3350 41 3351 41 3352 41 3352 10 3353 41 3353 24 3354 1 3354 2 3354 3 3354 40 3354 23 3355 1 3355 30 3355 5 3356 3 3356 9 3357 9 3358 17 3359 30 3359 5 3360 1 3360 2 3360 27 3360 30 3361 2 3361 27 3361 5 3362 3 3362 5 3363 41 3364 41 3365 41 3366 41 3367 41 3368 41 3369 3 3369 4 3369 16 3370 3 3370 4 3370 16 3371 1 3371 3 3371 25 3371 14 3371 34 3371 9 3372 41 3373 41 3374 3 3374 14 3374 5 3375 41 3376 1 3376 3 3376 11 3376 8 3377 3 3377 36 3378 3 3378 24 3378 9 3379 1 3379 30 3379 5 3380 3 3380 40 3381 1 3381 4 3381 30 3381 5 3381 6 3381 28 3382 1 3382 4 3382 30 3382 5 3382 6 3382 28 3383 3 3383 35 3383 14 3383 16 3384 2 3384 11 3385 1 3385 2 3385 30 3385 5 3386 41 3387 1 3387 38 3388 3 3389 1 3389 3 3389 5 3390 3 3390 16 3391 4 3391 41 3391 14 3392 3 3392 24 3392 34 3392 16 3393 41 3394 41 3395 41 3396 41 3397 1 3398 8 3399 2 3399 3 3399 11 3399 8 3400 31 3400 11 3400 41 3400 19 3400 8 3400 9 3401 41 3402 41 3402 19 3402 9 3403 11 3403 41 3404 41 3405 25 3405 8 3406 11 3406 41 3406 19 3407 41 3408 31 3408 41 3408 24 3408 9 3409 41 3409 24 3409 34 3410 1 3410 35 3411 2 3412 1 3412 5 3412 23 3413 3 3413 14 3413 24 3414 41 3414 8 3415 3 3416 40 3417 2 3417 11 3417 40 3418 2 3418 40 3419 1 3419 2 3420 41 3420 8 3420 23 3421 2 3421 3 3421 11 2633 22 2633 24 3422 3 3422 35 3423 41 3423 36 3423 23 3424 1 3424 2 3424 3 3424 4 3424 5 3424 6 3425 1 3425 3 3425 9 3426 1 3426 4 3426 21 3427 1 3427 3 3427 25 3427 8 3427 24 3428 19 3429 2 3429 3 3429 11 3429 40 3429 8 3429 23 3430 11 3431 1 3431 2 3431 3 3431 11 3431 40 3431 8 3431 9 3432 1 3432 2 3432 5 3433 3 3433 24 3433 13 3434 3 3434 16 3435 3 3436 31 3436 11 3436 41 3437 1 3437 2 3437 30 3437 5 3438 4 3438 14 3438 24 3438 16 3439 2 3439 3 3439 11 3439 40 3439 8 3440 13 3441 1 3441 3 3441 25 3441 23 3441 34 3442 2 3442 14 3442 5 3442 6 3442 28 3442 20 3443 1 3443 2 3443 31 3443 11 3443 38 3443 40 3443 8 3443 5 3443 9 3444 1 3444 2 3444 31 3444 11 3444 38 3444 40 3444 8 3444 5 3444 9 3445 3 3446 3 3447 2 3448 30 3449 2 3450 1 3450 3 3450 30 3451 3 3451 25 3452 2 3452 3 3452 11 3452 14 3453 4 3453 11 3453 16 3453 9 3454 1 3454 5 3455 11 3455 41 3455 19 3455 9 3456 29 3456 19 3456 20 3457 2 3457 3 3458 1 3458 2 3459 1 3459 2 3459 3 3459 5 3460 16 3461 1 3461 2 3461 22 3462 11 3462 19 3463 27 3464 35 3465 2 3466 11 3467 3 3467 11 3467 40 3468 17 3469 3 3470 1 3470 3 3471 1 3471 3 3471 30 3472 2 3473 8 3473 14 3474 3 3474 11 3474 40 3475 1 3475 30 3475 5 3476 1 3476 13 3477 11 3477 40 3477 8 3478 35 3479 1 3479 11 3479 41 3479 9 3480 3 3481 3 3481 36 3481 24 3482 1 3482 2 3484 3 3485 3 3486 2 3486 4 3486 11 3486 16 3487 11 3487 40 3488 25 3489 3 3489 36 3489 5 3489 6 3490 1 3490 2 3490 27 3490 32 3490 9 3491 1 3491 2 3491 3 3491 11 3492 1 3492 2 3492 3 3492 4 3493 3 3494 25 3495 35 3496 3 3496 41 3497 1 3497 3 3497 10 3498 3 3498 36 3498 14 3498 24 3499 3 3499 41 3499 8 3500 3 3500 25 3500 14 3501 3 3502 1 3502 3 3502 13 3503 1 3503 5 3503 28 3504 41 3505 4 3505 11 3505 14 3505 16 3505 9 3506 3 3506 36 3506 5 3507 1 3507 30 3507 6 3508 1 3508 2 3508 11 3508 24 3508 5 3509 27 3510 2 3510 3 3510 25 3510 8 3510 14 3510 26 3510 34 3510 9 3511 4 3511 14 3512 3 3512 11 3513 2 3513 11 3514 1 3514 3 3514 36 3514 14 3514 34 3515 3 3515 25 3515 24 3516 1 3516 25 3516 22 3516 24 3516 23 3517 2 3517 3 3517 11 3517 9 3518 1 3518 31 3518 30 3518 5 3519 2 3519 4 3519 11 3519 27 3519 14 3520 1 3520 2 3520 3 3520 5 3520 6 3521 4 3521 27 3521 16 3522 7 3522 16 3522 9 3523 14 3523 24 3524 1 3524 30 3525 1 3525 3 3525 24 3525 5 3526 4 3526 28 3527 1 3527 3 3527 11 3528 4 3528 14 3529 3 3529 25 3529 11 3529 14 3529 24 3529 26 3529 34 3530 14 3531 4 3531 11 3532 3 3532 14 3532 24 3532 16 3533 30 3533 5 3534 30 3535 30 3536 30 3537 2 3537 30 3537 5 3538 5 3538 6 3539 1 3539 2 3540 3 3540 41 3540 24 3541 1 3541 2 3541 11 3541 22 3542 1 3542 5 3543 5 3544 41 3544 24 3545 1 3545 7 3545 14 3545 9 3545 21 3546 1 3546 7 3546 14 3546 9 3546 21 3547 3 3548 13 3549 41 3550 11 3550 40 3550 14 3551 41 3552 1 3552 22 3553 3 3553 40 3554 3 3554 40 3555 1 3555 31 3555 11 3555 5 3556 1 3556 3 3557 3 3557 40 3558 1 3559 1 3559 5 3560 24 3560 13 3561 2 3561 3 3561 41 3561 34 3562 41 3562 34 3563 41 3563 19 3563 5 3563 9 3563 28 3564 3 3564 4 3564 14 3564 24 3564 39 3565 41 3566 41 3567 1 3567 41 3567 5 3568 41 3569 41 3569 5 3569 9 3570 2 3570 3 3570 25 3570 36 3571 3 3571 5 3572 41 3573 41 3574 41 3575 1 3575 3 3575 31 3575 41 3575 22 3575 24 1557 1 1557 6 3576 2 3576 3 3576 11 3577 41 3578 41 3579 3 3579 7 3579 36 3579 14 3579 24 3579 5 3579 16 3580 3 3580 11 3580 16 3581 1 3581 30 3581 5 3582 1 3582 30 3582 5 3583 30 3583 5 3584 1 3584 4 3584 30 3584 5 3585 2 3585 3 3586 13 3587 2 3587 28 3588 3 3589 27 3590 2 3591 2 3592 9 3593 28 3594 11 3595 41 3595 24 3595 42 3595 34 3596 41 3597 1 3597 30 3598 3 3598 30 3598 6 3599 2 3599 11 3600 1 3600 30 3600 5 3600 23 3601 3 3602 3 3602 11 3602 16 3603 3 3603 11 3603 16 3604 1 3604 3 3604 40 3604 26 3605 1 3605 2 3605 3 3605 22 3606 1 3606 22 3606 9 3607 1 3607 22 3607 13 3608 1 3608 22 3608 13 3610 1 3610 2 3610 3 3611 2 3611 3 3611 38 3611 13 3612 7 3613 2 3613 3 3613 31 3613 27 3613 9 3614 25 3615 3 3616 1 3616 30 3616 35 3616 5 3616 28 3617 40 3618 2 3618 3 3618 11 3619 29 3619 20 3620 4 3621 1 3622 41 3623 11 3623 35 3624 2 3624 11 3625 3 3625 11 3625 38 3625 36 3625 5 3626 1 3626 2 3627 2 3628 3 3628 36 3628 24 3628 16 3629 3 3629 41 3629 14 3629 37 3629 42 3630 4 3631 2 3631 11 3632 3 3632 35 3632 14 3632 16 3633 41 3634 41 3635 2 3636 4 3636 8 3636 16 3637 4 3637 19 3637 14 3638 4 3638 14 3639 30 3640 41 3641 41 3642 41 3643 41 3644 41 3645 41 3646 41 3646 5 3647 41 3648 41 3649 41 3650 41 3651 41 3652 41 3653 1 3653 4 3653 30 3653 5 3654 1 3654 2 3654 3 3654 30 3654 5 3655 3 3655 14 3655 34 3656 1 3656 2 3656 5 3657 2 3657 16 3658 2 3658 11 3658 27 3658 14 3659 2 3659 3 3659 4 3659 27 3660 40 3661 2 3661 5 3662 1 3662 10 3663 1 3663 2 3663 38 3663 22 3664 1 3664 31 3664 19 3664 23 3664 9 3665 1 3665 30 3665 5 3666 3 3666 5 3667 1 3667 5 3667 23 3668 14 3668 24 3668 37 3669 3 3669 30 3669 5 3669 6 3670 3 3671 1 3671 30 3671 5 3672 41 3673 11 3674 5 3675 1 3675 3 3675 9 3676 1 3676 4 3676 22 3677 3 3677 24 3677 16 3678 2 3678 11 3678 8 3679 11 3680 3 3680 16 3681 41 3682 41 3682 19 3683 41 3684 41 3684 27 3685 41 3686 41 3687 41 3688 2 3689 1 3689 30 3689 5 3689 6 3689 23 3690 1 3690 3 3690 4 3690 11 3690 8 3691 5 3692 30 3693 1 3693 41 3693 5 3694 1 3694 3 3694 30 3694 36 3694 5 3695 1 3695 19 3696 2 3696 3 3696 5 3696 6 3697 40 3698 41 3699 3 3700 1 3700 30 3700 24 3700 23 3700 28 3701 1 3701 2 3702 2 3702 3 3703 40 3704 41 3705 41 3706 41 3707 41 3708 41 3708 42 3709 41 3710 41 3711 2 3711 27 3712 40 3713 3 3714 4 3714 5 3715 1 3715 4 3715 30 3715 24 3715 5 3716 4 3716 13 3717 41 3717 14 3718 3 3718 5 3719 3 3719 5 3720 41 3720 14 3721 41 3721 42 3722 1 3722 2 3722 30 3722 5 3722 6 3723 2 3723 3 3723 11 3724 41 3724 24 3725 1 3725 8 3725 5 3725 23 3726 1 3726 2 3726 3 3726 11 3727 3 3727 11 3727 27 3727 16 3728 2 3728 11 3729 1 3729 2 3729 27 3729 22 3730 1 3730 3 3730 32 3731 2 3731 3 3731 40 3732 1 3732 30 3732 5 3732 28 3733 41 3734 27 3735 3 3735 40 3736 3 3736 40 3737 11 3737 40 3738 11 3738 24 3739 41 3740 35 3741 1 3741 2 3741 5 3742 41 3743 1 3743 3 3743 41 3744 4 3744 14 3744 24 3744 5 3745 41 3746 41 3747 41 3747 24 3748 41 3749 41 3750 11 3750 40 3750 8 3750 14 3750 23 3751 35 3752 40 3753 1 3753 2 3753 3 3753 11 3753 5 3753 9 3754 11 3754 14 3754 34 3755 41 3756 4 3756 11 3756 20 3756 21 3757 41 3758 25 3759 1 3759 2 3759 25 3759 11 3760 4 3760 35 3760 14 3760 34 3761 3 3761 4 3761 14 3762 14 3763 1 3763 23 3763 21 3764 2 3764 11 3765 41 3766 41 3767 41 3768 41 3769 2 3769 5 3770 3 3770 36 3770 23 3771 3 3772 3 3772 14 3772 24 3772 34 3773 7 3773 4 3773 36 3774 25 3775 3 3776 41 3776 14 3777 1 3777 4 3777 5 3777 28 3778 3 3778 16 3779 1 3779 2 3779 11 3779 8 3779 30 3779 5 3779 6 3780 41 3781 41 3782 3 3782 40 3782 16 3783 3 3783 25 3783 24 3784 7 3784 4 3784 14 3785 4 3785 27 3786 2 3786 40 3787 2 3787 3 3787 40 3788 2 3788 40 3789 2 3789 40 3790 2 3790 11 3791 41 3792 2 3793 2 3793 11 3793 40 3794 41 3795 41 3796 14 3797 2 3797 3 3797 30 3798 1 3799 1 3800 3 3800 16 3801 41 3802 3 3802 4 3802 14 3802 39 3803 41 3803 24 3804 41 3805 41 3806 41 3807 41 3808 41 3809 41 3810 19 3811 41 3812 41 3813 34 3814 41 3815 41 3816 41 3817 1 3817 3 3817 23 3817 9 3818 41 3819 41 3820 41 3821 41 3822 41 3823 1 3823 3 3824 41 3825 3 3825 19 3825 26 3825 9 3826 1 3827 1 3828 1 3829 43 3830 41 3831 41 3832 3 3832 36 3832 24 3833 2 3833 3 3834 1 3834 2 3835 7 3835 9 3835 21 3836 2 3836 4 3836 11 3837 1 3838 35 3839 7 3839 19 3839 9 3839 20 3840 1 3840 3 3840 31 3840 11 3840 9 3841 1 3842 3 3842 25 3842 14 3842 24 3843 17 3843 3 3844 5 3845 4 3845 36 3846 2 3846 40 3847 5 3848 3 3848 7 3848 4 3848 9 3848 20 3849 2 3850 1 3850 22 3850 23 3851 2 3851 4 3852 2 3852 4 3853 3 3853 4 3854 1 3854 30 3854 5 3855 1 3855 11 3855 5 3856 1 3856 30 3856 5 3857 3 3858 3 3859 1 3859 2 3859 7 3859 4 3859 11 3859 8 3859 14 3859 9 3860 3 3860 36 3861 1 3861 2 3862 7 3863 2 3863 11 3863 35 3864 41 3864 5 3865 2 3865 11 3866 1 3866 2 3866 11 3866 5 3867 2 3867 3 3867 11 3867 40 3867 8 3867 36 3868 3 3869 1 3869 5 3869 23 3870 1 3870 32 3871 7 3871 5 3871 34 3871 9 3871 20 3872 1 3872 2 3872 5 3873 2 3873 3 3873 19 3874 1 3874 3 3874 4 3874 8 3874 23 3483 27 3483 16 3875 3 3875 14 3875 5 3875 28 3876 3 3876 25 3876 22 3876 14 3877 1 3877 4 3877 13 3878 3 3878 36 3878 23 3879 2 3880 2 3881 5 3882 35 3883 35 3884 3 3885 2 3885 3 3886 1 3886 25 3886 22 3887 30 3887 5 3888 1 3888 2 3888 27 3889 3 3889 25 3889 36 3890 2 3890 3 3891 3 3891 4 3891 14 3891 13 3892 1 3892 13 3893 3 3893 36 3893 14 3893 24 3894 1 3894 5 3895 1 3895 5 3896 35 3897 2 3897 4 3897 5 3898 1 3898 4 3898 27 3898 19 3898 14 3898 5 3898 26 3899 13 3899 20 3900 2 3900 11 3901 3 3901 25 3901 14 3902 35 3903 1 3903 3 3903 25 3904 31 3904 41 3905 1 3905 30 3906 1 3906 4 3906 30 3906 5 3907 5 3908 41 3909 3 3910 3 3910 27 3910 36 3911 3 3911 35 3911 36 3911 14 3912 1 3912 30 3912 5 3913 1 3913 2 3913 3 3913 11 3914 1 3914 30 3914 14 3914 5 3914 6 3915 1 3915 3 3915 5 3916 1 3916 2 3916 30 3916 5 3916 10 3917 1 3917 22 3917 23 3918 3 3918 11 3918 8 3918 24 3919 7 3919 14 3919 9 3920 38 3921 2 3921 4 3922 14 3922 39 3922 13 3922 16 3923 7 3924 3 3925 1 3925 30 3925 5 3925 10 3926 2 3926 3 3926 27 3926 9 3927 2 3927 3 3928 41 3929 4 3929 40 3930 41 3931 2 3932 1 3932 41 3932 14 3933 41 3934 41 3934 24 3935 3 3935 25 3935 11 3935 14 3935 34 3936 1 3936 2 3936 4 3936 11 3936 8 3936 28 3937 24 3937 37 3937 16 3938 11 3938 41 3939 3 3939 36 3940 2 3940 30 3940 5 3941 30 3941 5 3942 3 3942 25 3942 24 3943 5 3944 1 3945 40 3945 35 3946 24 3946 13 3947 1 3947 30 3947 5 3948 3 3949 3 3949 25 3949 14 3949 24 3950 4 3951 1 3951 2 3951 3 3952 11 3952 30 3952 5 3953 41 3953 24 3954 4 3954 27 3954 14 3955 1 3955 2 3955 29 3955 7 3955 27 3955 9 3955 28 3956 35 3957 2 3957 11 3957 41 3958 41 3959 3 3959 16 3960 1 3960 30 3960 23 3960 28 3961 1 3961 30 3961 5 3962 1 3962 30 3962 5 3963 4 3963 14 3964 27 3964 32 3965 41 3966 41 3967 7 3967 24 3967 21 3968 1 3968 27 3968 23 3968 9 3968 28 3969 2 3969 3 3969 27 3970 1 3970 2 3970 40 3971 2 3971 4 3971 41 3972 4 3972 41 3972 14 3973 2 3973 27 3974 40 3975 41 3976 11 3976 5 3976 16 3977 3 3977 11 3977 13 3978 3 3978 36 3978 24 3979 1 3979 4 3979 13 3980 2 3980 3 3981 2 3982 11 3982 16 3983 1 3983 7 3983 14 3983 9 3983 21 3984 1 3984 7 3984 14 3984 9 3984 21 3985 3 3986 41 3987 41 3988 41 3989 41 3990 41 3991 41 3992 41 3993 4 3993 8 3993 14 3993 34 3994 13 3995 1 3995 4 3995 5 3996 3 3997 1 3998 1 3998 2 3998 27 11494 35 3999 17 4000 13 4000 23 4001 1 4002 2 4002 3 4002 11 4003 3 4003 25 4004 11 4004 38 4005 1 4005 3 4005 5 4006 2 4007 3 4007 35 4008 40 4009 11 4009 5 4009 16 4010 3 4010 8 4011 2 4012 30 4013 1 4013 3 4013 24 4014 1 4014 3 4014 23 4015 2 4015 11 4016 3 4016 4 4016 13 4017 11 4017 41 4017 8 4018 2 4018 40 4019 3 4019 8 4019 24 4020 35 4021 1 4021 2 4021 3 4022 1 4022 30 4022 5 4023 2 4024 1 4024 30 4024 5 4025 2 4026 13 4027 2 4027 3 4027 25 4027 11 4027 8 4027 24 4028 3 4028 11 4028 40 4029 1 4029 3 4029 25 4029 23 4029 34 4030 1 4030 3 4030 14 4031 3 4032 41 4033 41 4034 2 4034 3 4034 13 4035 1 4035 7 4035 4 4035 30 4035 35 4035 14 4035 5 4036 1 4036 2 4036 5 4037 3 4037 5 4038 22 4039 1 4039 2 4039 30 4039 28 4040 1 4040 2 4040 4 4040 14 4040 5 4041 1 4042 11 4042 38 4042 5 4043 16 4044 4 4044 11 4044 16 4044 9 4045 30 4046 3 4046 40 4046 16 4047 3 4047 11 4047 24 4048 1 4048 2 4048 11 4048 8 4048 22 4049 2 4049 3 4049 5 4049 6 4050 1 4050 3 4050 19 4051 1 4051 30 4051 35 4051 14 4051 5 4052 1 4052 2 4052 30 4052 5 4053 2 4053 3 4053 11 4054 41 4055 41 4056 41 4057 1 4057 5 4057 6 4058 41 4059 1 4060 1 4060 3 4060 4 4060 14 4060 28 4061 3 4061 25 4062 2 4062 11 4062 38 4063 2 4063 11 4063 14 4064 1 4064 30 4064 9 4065 2 4065 3 4065 25 4065 36 11494 3 4067 41 4068 2 4068 3 4068 7 4068 10 4069 1 4069 30 4069 5 4070 3 4070 25 4071 1 4071 27 4071 22 4071 32 4071 23 4072 1 4073 4 4074 1 4074 2 4075 11 4075 30 4076 40 4076 16 4077 3 4078 3 4078 41 4078 42 4079 1 4079 27 4079 22 4079 32 4080 43 4081 41 4081 42 4082 30 4083 30 4084 3 4085 41 4086 41 4087 41 4087 8 4088 41 4089 41 4090 41 4091 11 4091 41 4092 4 4092 11 4092 41 4092 14 4093 4 4093 27 4093 14 4093 37 4093 16 4093 28 4094 3 4094 36 4094 24 4095 4 4095 11 4096 1 4096 11 4096 30 4096 5 4096 9 4096 28 4097 41 4098 41 4099 31 4099 11 4099 41 4099 9 4100 41 4100 27 4101 1 4101 2 4101 11 4101 40 4101 30 4101 5 4102 14 4102 24 4103 3 4104 3 4104 8 4105 41 4106 2 4106 11 4106 38 4107 1 4107 7 4107 4 4108 3 4108 5 4109 41 4110 3 4110 11 4110 8 4111 7 4111 40 4111 16 4112 1 4112 4 4112 28 4113 3 4113 4 4113 16 4114 3 4114 16 4115 3 4115 11 4115 40 4116 1 4116 2 4117 8 4118 3 4118 36 4118 5 4119 2 4119 11 4119 40 4120 2 4120 3 4120 11 4120 9 4121 1 4121 30 4121 23 4122 4 4122 16 4123 1 4123 2 4123 3 4123 22 4123 9 4124 4 4124 27 4124 40 4124 16 4125 1 4125 2 4125 22 4126 1 4126 29 4126 36 4127 40 4128 4 4128 11 4128 35 4128 14 4128 24 4129 1 4129 5 4129 28 4130 1 4130 14 4130 28 4131 30 4132 3 4132 11 4132 40 4132 8 4133 1 4133 3 4133 36 4133 14 4133 34 4134 41 4135 1 4135 31 4135 11 4135 8 4135 28 4136 3 4136 40 4137 40 4138 2 4138 11 4138 9 4139 14 4139 16 4140 2 4140 4 4140 40 4140 16 4141 2 4141 11 4141 16 4141 9 4142 1 4142 5 4143 41 4144 41 4145 41 4146 41 4147 41 4148 41 4149 41 4150 41 4151 41 4152 1 4152 3 4152 25 4152 36 4153 41 4154 41 4155 41 4156 41 4157 36 4157 13 4158 41 4159 41 4160 41 4161 41 4162 41 4163 41 4164 41 4165 41 4166 41 4167 41 4168 41 4169 41 4170 41 4171 41 4172 41 4173 41 4174 41 4175 41 4176 41 4177 41 4178 2 4179 1 4179 2 4180 1 4181 25 4181 8 4182 25 4182 8 4183 41 4184 41 4185 41 4186 41 4186 13 4187 41 4188 1 4189 40 4190 3 4190 11 4190 14 4191 2 4191 27 4191 40 4192 11 4192 35 4193 4 4193 41 4193 9 4194 41 4195 41 4196 41 4197 41 4198 41 4199 41 4200 41 4201 41 4202 41 4203 41 4204 3 4205 1 4206 41 4207 29 4207 20 4208 1 4208 2 4208 19 4208 28 4209 6 4210 30 4210 5 4211 1 4211 3 4211 7 4211 4 4211 14 4211 5 4212 4 4212 32 4213 11 4214 1 4214 2 4214 30 4214 10 4215 4 4215 25 4215 14 4216 41 4216 24 4217 41 4218 41 4219 41 4220 25 4220 24 4220 34 4221 41 4222 41 4223 41 4224 2 4224 5 4225 31 4225 41 4225 24 4225 9 4226 2 4226 40 4226 5 4227 30 4228 32 4229 35 4230 41 4231 41 4232 41 4233 3 4233 25 4233 24 4233 5 4233 34 4234 3 4234 24 4234 16 4235 38 4235 24 4235 16 4236 2 4236 4 4236 27 4237 41 4237 14 4237 24 4237 13 4238 25 4238 30 4238 13 4239 3 4239 4 4239 11 4240 3 4240 35 4240 24 4240 16 4241 3 4241 5 4242 1 4242 4 4242 21 4243 8 4244 41 4245 41 4246 2 4246 3 4246 11 4246 19 4246 9 4247 2 4247 4 4247 11 4248 3 4248 35 4248 14 4249 1 4249 2 4249 8 4249 22 4249 24 4249 5 4249 23 4250 27 4251 2 4251 11 4252 3 4253 2 4253 11 4253 16 4254 3 4254 16 4255 1 4255 2 4255 3 4255 25 4255 38 4255 36 4255 24 4256 35 4256 24 4257 3 4257 4 4257 43 4257 9 4258 4 4258 27 4258 30 4258 5 4258 6 4258 28 4259 1 4259 2 4259 38 4259 40 4259 5 4260 41 4260 14 4261 14 4261 34 4261 9 4262 5 4263 41 4264 3 4264 24 4264 13 4265 40 4265 8 2777 1 4266 1 4266 2 4266 9 4267 41 4268 1 4268 4 4268 5 4268 6 4268 28 4269 1 4269 2 4269 3 4269 25 4269 11 4269 8 4269 14 4269 24 4269 34 4270 3 4270 25 4270 14 4270 34 4271 41 4272 43 4273 1 4273 30 4273 5 4274 1 4274 3 4274 25 4274 11 4274 30 4274 24 4274 34 4275 2 4275 3 4276 4 4276 14 4276 5 4276 43 4277 11 4278 5 4279 3 4279 40 4279 14 4279 24 4279 16 4280 11 4280 9 4281 40 4282 3 4282 23 4283 1 4284 1 4285 1 4286 1 4287 11 4288 3 4288 40 4289 13 11495 35 4291 1 4291 9 4292 30 4292 5 4293 3 4293 40 4294 13 4295 1 4295 3 4295 40 4295 8 4295 30 4295 5 4295 23 4296 13 4297 4 4297 14 4298 1 4298 2 4299 3 4300 3 4301 1 4301 2 4301 3 4301 40 4302 40 4303 40 4304 1 4304 3 4304 9 4305 1 4305 2 4305 4 4305 27 4305 14 4306 1 4306 5 4306 23 4307 5 4308 3 4308 4 4308 14 4308 16 4310 1 4311 1 4312 1 4312 2 4313 1 4314 1 4315 1 11495 11 4317 2 4317 11 4317 27 4318 1 4318 3 4319 11 4319 5 4320 3 4321 1 4321 22 4321 32 4321 5 4322 11 4323 1 4323 11 4324 41 4324 42 4325 30 4326 27 4326 8 4327 4 4328 4 4328 43 4329 4 4329 14 4330 2 4330 11 4330 5 4331 3 4332 3 4332 36 4332 24 4332 34 4333 3 4333 25 4333 16 4334 4 4335 4 4336 4 4336 19 4336 14 4337 2 4337 3 4337 11 4338 2 4338 31 4338 11 4339 2 4339 31 4339 11 4340 2 4340 31 4340 11 4341 4 4341 27 4341 20 4342 11 4343 7 4343 8 4343 24 4344 3 4344 14 4344 5 4345 3 4345 4 4345 30 4346 4 4346 27 4347 11 4347 9 4348 2 4348 3 4348 11 4349 2 4350 2 4350 11 4351 2 4351 27 4352 4 4354 1 4354 2 4354 11 4355 3 4355 4 4355 14 4355 24 4355 13 4356 2 4356 5 4357 5 4358 3 4359 8 4360 3 4360 36 4361 1 4361 2 4361 3 4361 36 4361 14 4361 24 4362 3 4363 3 4363 25 4363 5 4363 9 4364 41 4365 2 4365 3 4365 13 4366 1 4366 3 4366 22 4366 5 4366 13 4367 1 4367 3 4367 22 4367 5 4367 13 4368 3 4368 25 4368 5 4369 3 4369 24 4369 9 4370 3 4371 4 4371 16 4372 2 4372 11 4373 40 4374 1 4374 3 4374 5 4375 3 4375 4 4375 14 4375 24 4375 16 4376 41 4377 3 4377 24 4377 13 4378 1 4378 3 4378 13 4379 1 4379 2 4379 4 4379 27 4379 22 4379 32 4379 16 4379 10 4380 11 4381 1 4382 2 4382 11 4382 14 4383 8 4384 27 4385 41 1191 23 4386 4 4387 3 4387 25 4387 14 4388 3 4388 40 4388 16 4389 1 4389 41 4389 5 4390 3 4390 16 4391 1 4391 3 4391 25 4391 5 4391 23 4392 22 4392 24 4393 4 4393 11 4393 30 4394 1 4394 2 4394 3 4394 22 4394 23 4395 30 4395 5 4396 41 4396 24 4396 42 4396 34 4397 14 4397 24 4398 1 4398 2 4398 11 4398 8 4398 28 4399 1 4399 2 4399 25 4399 8 4399 9 4400 17 4400 13 4401 1 4401 27 4401 22 4402 14 4403 11 4403 19 4404 1 4404 2 4404 3 4405 3 4405 40 4406 3 4406 36 4407 14 4407 24 4408 1 4408 2 4408 3 4409 3 4409 24 4410 3 4410 31 4410 7 4410 19 4410 26 4410 9 4411 11 4412 11 4413 1 4413 2 4413 5 4414 6 4415 3 4416 3 4416 4 4417 3 4417 11 4418 5 4419 30 4419 5 4420 1 4420 8 4420 22 4421 7 4422 3 4422 27 4423 11 4424 3 4424 14 4424 16 4425 3 4426 3 4426 25 4426 24 4427 3 4427 14 4427 24 4427 16 4428 3 4429 3 4429 25 4429 11 4430 4 4430 21 4431 1 4431 3 4431 7 4432 16 4433 3 4433 14 4433 24 4434 3 4434 40 4435 31 4435 41 4435 22 4435 42 4436 41 4437 2 4437 4 4437 11 4437 27 4437 9 4438 3 4439 4 4439 8 4439 9 4440 3 4441 3 4442 41 4443 35 4444 3 4444 16 4445 3 4445 40 4445 24 4445 16 4446 27 4446 40 4446 16 4447 1 4447 11 4447 23 4448 1 4448 4 4448 11 4448 5 4449 2 4449 11 4449 5 4450 2 4450 5 4451 3 4451 40 4452 1 4452 2 4452 17 4452 5 4453 1 4453 31 4453 11 4453 9 4454 14 4454 37 4454 16 4455 4 4455 35 4455 14 4455 34 4456 3 4456 25 4456 14 4456 5 4457 2 4457 11 4457 9 4458 1 4458 2 4458 22 4458 23 4458 9 4459 7 4460 2 4460 3 4461 11 4462 11 4463 11 4464 11 4464 9 4465 3 4465 35 4465 14 4465 16 4466 2 4466 5 4467 41 4468 16 4469 7 4470 8 4471 3 4471 25 4471 24 4471 34 4472 2 4472 4 4473 3 4473 14 4473 24 4473 37 4474 1 4474 3 4474 14 4474 24 4474 37 4474 23 4475 3 4476 30 4476 35 4476 16 4477 4 4478 1 4478 11 4478 5 4478 23 4479 1 4479 2 4479 8 4479 35 4479 5 4479 23 4480 3 4480 25 4480 40 4480 24 4480 16 4481 2 4482 41 4483 1 4483 4 4483 11 4484 3 4484 4 4484 25 4484 35 4484 34 4485 1 4485 4 4485 27 4485 28 4486 1 4486 4 4486 27 4486 28 4487 7 4488 3 4488 36 4488 24 4489 41 4490 3 4490 11 4490 5 4491 4 4492 3 4492 16 4493 2 4493 3 4493 4 4494 2 4494 4 4494 11 4494 27 4495 4 4495 24 4495 16 4496 11 4496 19 4496 8 4497 14 4498 11 4498 19 4499 19 4500 27 4501 27 4501 16 4502 2 4503 19 4504 11 4504 27 4505 1 4505 11 4505 28 4506 5 4507 41 11496 27 4508 3 4508 25 4509 1 4509 30 4509 5 4509 6 4510 1 4510 2 4510 30 4510 28 4511 1 4512 1 4512 2 4512 3 4512 40 4512 23 4513 3 4514 35 4514 24 4515 3 4516 3 4516 40 4516 8 4516 24 4517 1 4517 2 4517 3 4517 10 4518 3 4518 25 4518 8 4518 30 4518 36 4519 1 4519 3 4519 31 4519 25 4519 14 4519 34 4519 9 4520 1 4520 3 4520 22 4520 23 4521 11 4522 41 4523 3 4523 11 4523 9 4524 1 4524 3 4524 30 4524 36 4524 5 4524 6 4524 42 4524 28 4525 1 4525 4 4525 30 4525 28 4526 41 3695 2 3695 4 3695 9 4527 3 4527 14 4528 3 4528 14 4528 24 4528 23 4529 4 4529 14 4529 24 4530 3 4531 7 4531 4 4531 35 4531 14 4532 1 4532 3 4532 4 4532 16 4533 8 4534 1 4534 3 4534 7 4534 4 4534 14 4535 1 4536 1 4537 3 4537 36 4537 24 4538 3 4538 25 4538 14 4538 24 4539 1 4539 3 4539 5 4540 1 4540 25 4540 8 4540 5 4540 28 4541 2 4541 5 4542 1 4543 40 4544 5 4545 25 4545 13 4546 4 4546 16 4547 35 4548 7 4548 4 4548 14 4549 41 4550 7 4550 4 4550 14 4550 24 4551 35 4552 1 4552 3 4552 9 4553 1 4553 3 4553 13 4554 3 4555 2 4555 4 4555 11 4555 8 4555 28 4556 41 4557 3 4557 25 4557 38 4558 1 4558 30 4558 23 4559 3 4560 3 4561 2 4561 3 4561 5 4561 6 4562 2 4562 3 4562 7 4562 10 4563 1 4563 2 4563 3 4563 25 4564 2 4564 11 4564 9 4565 2 4565 30 4565 5 4566 1 4566 5 4566 6 4566 23 4567 1 4567 30 4567 5 4568 3 4568 25 4568 40 4568 24 4568 16 4569 11 4570 40 4570 5 4571 41 4572 1 4572 7 4573 3 4574 19 4575 14 4575 37 4575 16 4576 40 4577 40 4578 1 4578 3 4579 1 4579 2 4579 3 4579 4 4579 25 4579 11 4579 8 4579 14 4579 24 4579 34 4580 35 4580 16 4581 4 4581 11 4581 8 4582 2 4582 3 4582 8 4582 14 4583 1 4583 25 4583 23 4583 9 4584 4 4584 5 4585 3 4585 14 4586 3 4586 4 4586 16 4587 1 4587 2 4587 30 4587 23 4588 3 4588 14 4588 34 4589 35 4589 6 4590 40 4591 40 4592 40 4593 3 4593 11 4593 40 4593 16 4594 40 4595 40 4596 40 4597 3 4597 16 4598 1 4598 11 4598 8 4599 3 4600 41 4601 35 4602 29 4602 14 4602 20 4603 43 4604 1 4604 3 4604 9 4605 25 4605 35 4606 3 4606 14 4606 39 4607 2 4608 3 4609 2 4609 3 4609 11 4609 8 4610 41 4610 42 4611 3 4611 29 4612 5 4613 2 4613 3 4613 5 4614 24 4615 3 4615 14 4615 16 4616 1 4616 3 4616 11 4616 14 4616 24 4616 23 4616 9 4617 1 4617 7 4617 5 4617 23 4618 3 4618 16 4619 1 4619 22 4619 30 4619 23 4620 2 4620 3 4620 40 4620 30 4620 14 4620 24 4620 6 4620 23 4620 9 4621 1 4621 27 4621 22 4621 32 4622 3 4622 36 4622 23 4623 31 4623 11 4624 2 4624 11 4625 40 4625 24 4626 1 4626 22 4626 23 4627 31 4627 11 4627 41 4627 22 4628 27 4628 14 4629 2 4629 11 4629 40 4630 1 4630 2 4630 22 4631 3 4631 16 4632 2 4632 11 4633 3 4633 36 4634 1 4634 7 4634 5 4634 21 4635 1 4635 14 4635 5 4636 41 4637 1 4637 7 4637 14 4637 23 4637 21 4638 3 4638 16 4639 3 4640 16 4641 2 4641 16 4642 1 4642 2 4642 25 4642 11 4643 1 4643 27 4643 22 4643 32 4643 23 4644 41 4645 1 4645 30 4645 28 4645 10 4646 1 4646 3 4646 7 4646 4 4646 14 4647 3 4647 35 4648 3 4648 25 4648 24 4649 4 4649 5 4650 3 4650 32 4651 25 4651 24 4651 16 4652 3 4652 8 4653 35 4654 35 4655 35 4656 2 4656 5 4657 1 4657 30 4657 5 4658 3 4658 7 4659 17 4659 13 4660 1 4660 30 4660 9 4661 27 4661 9 4662 1 4662 25 4662 23 4662 9 4663 3 4664 41 4665 41 4666 3 4667 27 4667 16 4668 41 4669 41 4670 41 4671 41 4672 3 4672 40 4673 41 4674 2 4674 3 4674 11 4675 2 4675 11 4675 40 4675 8 4676 1 4676 2 4676 3 4676 11 4676 8 4677 3 4678 1 4678 3 4678 31 4678 11 4678 9 4679 3 4679 14 4679 34 4679 16 4680 3 4680 11 4680 14 4681 3 4681 35 4682 1 4682 2 4682 3 4682 22 4682 23 4683 5 4684 1 4685 4 4685 14 4686 3 4686 5 4687 4 4688 40 4689 3 4689 23 4690 5 4691 5 4692 5 4693 7 4693 9 4693 21 4694 1 4694 3 4694 31 4694 11 4694 8 4695 3 4695 11 4696 1 4696 9 4697 1 4697 26 4697 9 4698 3 4698 8 4699 1 4699 35 4700 1 4700 11 4700 23 4701 3 4701 16 4702 3 4703 3 4704 3 4705 1 4705 30 4705 23 4705 28 4706 27 4707 2 4707 11 4707 40 4708 1 4708 11 4708 30 4708 28 4709 1 4709 14 4709 9 4710 3 4710 4 4710 20 4711 35 4712 3 4712 11 4712 40 4712 8 4713 7 4713 4 4713 14 4714 1 4714 4 4714 11 4714 9 4715 25 4715 14 4715 16 4716 3 4716 30 4716 36 4716 5 4717 3 4717 31 4717 36 4718 1 4718 22 4718 23 4719 29 4719 11 4719 35 4719 5 4720 3 4720 5 4721 40 4722 40 4723 1 4723 30 4723 5 4724 35 4724 5 4724 28 4725 19 4726 1 4726 2 4726 3 4726 31 4726 11 4726 8 4726 14 4726 9 4727 3 4727 16 4728 11 4729 11 4730 3 4731 1 4732 1 4733 9 11496 3 4735 1 4736 2 4737 27 4738 1 4738 32 4739 3 4740 2 4740 17 4741 1 4741 32 4742 13 4743 32 4744 13 4745 2 4746 28 4747 2 4747 35 4748 2 4749 1 4750 2 4751 1 4751 28 4752 2 4753 2 4754 2 4755 35 4756 27 4756 40 4757 29 4757 11 4757 5 4758 3 4758 35 4758 24 4758 16 4759 7 4759 9 4760 1 4760 4 4760 5 4760 28 4761 3 4762 1 4762 4 4762 30 4763 3 4764 2 4764 3 4765 1 4765 19 4765 5 4766 3 4766 25 4766 24 4767 4 4767 8 4767 9 4768 2 4768 11 4768 14 4769 3 4769 24 4769 16 4770 1 4770 2 4770 3 4770 5 4770 23 4771 2 4771 8 4772 41 4773 41 4774 41 4774 34 4775 1 4775 4 4775 27 4775 32 4775 9 4776 3 4777 2 4777 3 4778 3 4778 40 4779 1 4779 38 4780 27 4781 41 4782 1 4782 19 4782 23 4782 26 4782 9 4782 28 4783 3 4784 3 4785 1 4785 22 4785 23 4786 1 4786 4 4786 23 4787 1 4787 4 4787 19 4787 26 4788 1 4788 11 4788 8 4788 9 4789 2 4790 2 4790 3 4790 11 4790 40 4791 3 4792 16 4793 4 4793 11 4794 11 4794 5 4795 1 4795 2 4795 3 4795 23 4796 5 4797 1 4797 3 4797 27 4797 36 4797 5 4798 3 4798 38 4798 36 4799 3 4799 5 4799 16 4800 7 4800 14 4800 9 4801 11 4802 2 4802 38 4803 29 4804 7 4805 3 4805 16 4806 3 4806 25 4806 11 4806 36 4807 3 4808 3 4808 24 4808 16 4809 1 4809 3 4809 31 4809 22 4810 2 4810 3 4811 2 4811 30 4811 5 4812 2 4812 31 4812 23 4812 9 4813 1 4813 27 4813 23 4813 28 4814 3 4814 7 4814 24 4814 5 4814 9 4815 2 4816 4 4816 11 4816 19 4816 9 4817 2 4817 11 4817 8 4817 34 4818 7 4818 19 4818 40 4818 9 4819 38 4820 3 4820 16 4821 14 4821 9 4821 20 4822 41 4823 25 4823 14 4824 3 4824 40 4825 1 4825 2 4825 5 4826 2 4826 5 4827 3 4828 3 4829 3 4829 13 4830 3 4831 4 4831 27 4831 9 4832 3 4833 3 4834 3 4835 3 4836 3 4837 3 11497 1 4839 3 4840 3 4841 3 4842 3 4843 3 4844 11 4845 3 4846 3 4846 36 4846 24 4847 3 4847 36 4847 24 4848 2 4848 3 4848 11 4848 40 4849 17 4849 13 4850 1 4850 27 4850 22 4850 32 4851 41 4852 3 4852 14 4852 24 4853 2 4853 4 4853 11 4853 39 4854 1 4854 4 4854 24 4854 16 4855 30 4856 3 4856 16 4857 3 4857 25 4857 14 4857 5 4858 40 4859 1 4859 7 4859 19 4859 9 4860 30 4861 3 4861 8 4861 24 4862 2 4862 11 4862 8 4863 1 4863 3 4863 25 4863 11 4863 8 4863 24 4863 34 4864 1 4864 3 4864 11 4864 8 4864 30 4864 5 4865 4 4865 24 4865 13 4866 11 4867 30 4867 5 4868 3 4869 1 4869 2 4869 11 4869 8 4870 4 4870 43 4871 7 4871 4 4871 11 4872 30 4872 5 4873 4 4873 27 4874 5 4875 1 4875 3 4875 11 4875 8 4875 30 4875 5 4876 2 4876 8 4876 9 4877 5 4878 1 4878 2 4878 4 4878 6 4878 28 4879 3 4879 25 4879 14 4879 24 4879 34 4880 3 4880 8 4881 41 4882 13 4883 1 4883 2 4883 5 4884 3 4884 16 4885 3 4885 16 4886 1 4886 17 4886 3 4886 13 4886 10 4887 41 4888 16 4889 31 4889 27 4889 9 4890 31 4890 27 4890 9 4891 31 4891 27 4891 9 4892 40 4893 3 4893 36 4893 23 4894 3 4895 3 4896 41 4897 11 4897 41 4897 24 4897 34 4897 9 4898 3 4899 1 4899 5 4900 4 4900 27 4900 20 4900 21 4901 3 4902 2 4902 11 4902 40 4903 1 4903 30 4903 35 4903 14 4903 5 4904 4 4905 2 4905 5 4906 1 4906 2 4906 4 4906 27 4906 22 4906 30 4906 32 4907 3 4908 3 4909 11 4910 1 4910 3 4910 40 4910 13 4911 30 4912 2 4912 4 4912 11 4912 40 4913 2 4913 11 4914 3 4915 4 4915 11 4915 20 4916 11 4916 20 4917 36 4917 20 4918 3 4919 41 4919 5 4920 41 4921 41 4922 41 4923 41 4924 1 4924 4 4924 30 4924 5 4924 28 4925 4 4926 41 4927 1 4927 5 4928 2 4928 4 4928 5 4929 1 4929 2 4929 5 4930 2 4930 11 4931 11 4931 35 4932 35 4933 2 4933 3 4933 7 4933 10 4934 2 4934 7 4935 2 4935 7 4936 3 4936 9 4937 2 4937 5 4938 3 4938 7 4938 14 4938 24 4938 5 4938 9 4939 2 4939 11 4939 40 4940 3 4940 25 4940 24 4941 2 4941 3 4941 40 4942 2 4942 3 4942 40 4943 11 4943 14 4944 1 4944 2 4944 11 4944 38 4945 1 4945 5 4945 6 4946 3 4946 27 4946 36 4947 1 4947 7 4947 5 4947 23 4948 41 4949 27 4950 1 4950 22 4951 1 4951 2 4951 11 4951 8 4952 4 4952 14 4952 5 4953 1 4953 2 10054 16 4954 4 4955 3 4955 36 4956 4 4956 11 4956 14 4957 4 4957 14 4958 2 4958 11 4958 38 4959 3 4959 11 4959 8 4959 14 4959 24 4959 34 4960 11 4961 2 4961 23 4962 41 4962 34 4963 35 4964 40 4965 1 4965 2 4965 3 4965 11 4965 40 4965 36 4965 5 4966 4 4966 20 4967 11 4968 1 4968 3 4968 25 4968 23 4969 1 4969 2 4969 3 4969 25 4969 40 4969 8 4969 14 4969 23 4969 9 4970 2 4970 31 4970 8 4971 2 4971 8 4972 3 4973 3 4974 3 4975 3 4976 3 4977 3 4978 3 4979 25 4980 41 4981 41 4982 41 4983 7 4983 11 4984 3 4984 11 4985 3 4985 25 4985 38 4986 3 4987 3 4987 25 4987 24 4987 34 4988 2 4988 3 4988 7 4988 10 4989 1 4989 3 4989 27 4989 36 4989 32 4989 5 4990 27 4991 3 4991 4 4991 14 4991 5 4992 14 4993 2 4993 27 4993 22 4993 32 4993 9 4994 22 4995 4 4996 27 4997 11 4998 2 4998 11 4998 8 4999 11 5000 9 5001 2 5002 27 5003 3 5004 27 5005 3 5006 4 5006 14 5007 3 5007 4 5007 11 5008 4 5008 9 5009 11 5009 20 5010 11 5010 35 5011 40 5011 35 5011 16 5012 1 5012 2 5012 11 5012 8 5013 3 5013 27 5014 27 5015 13 5016 11 5017 1 5018 11 5019 3 5020 11 5021 9 5022 11 5023 30 5023 5 5023 28 3171 3 3171 25 5024 40 5024 16 5025 3 5025 11 5025 8 5025 24 5026 2 5026 3 5027 1 5027 2 5027 30 5027 5 5028 1 5028 11 5028 8 5028 14 5028 9 5029 3 5030 3 5030 36 5031 3 5032 4 5032 16 5033 41 5034 3 5034 4 5034 14 5035 3 5035 4 5035 14 5036 3 5036 14 5036 34 5037 1 5037 25 5037 22 5037 24 5037 23 5038 41 5039 41 5040 41 5041 27 5041 32 5042 3 5042 14 5043 3 5043 27 5043 36 5043 32 5044 1 5044 31 5044 9 5045 3 5045 25 5045 14 5046 3 5046 36 5046 5 5047 3 5047 16 5048 7 5048 5 5048 21 5049 11 5050 2 5050 3 5050 11 5050 40 5050 8 5051 11 5051 27 5052 41 5053 41 5054 4 5055 3 5055 11 5056 2 5056 9 5057 9 5058 11 5058 40 5059 2 5059 11 5060 3 5060 16 5061 3 5061 4 5061 16 5062 11 5063 2 5063 11 5064 3 5064 40 5064 16 5065 11 5065 40 5065 8 5066 3 5066 40 5067 3 5067 14 5068 4 5068 27 5068 20 5069 4 5070 3 5070 4 5070 13 5071 35 5072 13 5073 7 5073 19 5073 9 5074 2 5074 11 5074 40 5075 3 5075 16 5076 3 5076 16 5077 14 5078 3 5078 11 5078 24 5079 3 5079 14 5079 24 5080 2 5080 11 5080 27 5080 5 5081 4 5082 34 5083 1 5083 2 5084 27 5085 1 5085 27 5086 1 5086 27 5087 24 5087 34 5088 41 5089 16 5090 11 5091 41 5092 11 5093 11 5094 11 5095 3 5095 13 5096 2 5096 3 5097 3 5097 11 5097 40 5097 26 5097 9 5098 7 5098 26 5098 9 5098 21 5099 1 5099 26 5099 9 5100 2 5101 41 5102 3 5102 25 5102 23 5102 9 5103 1 5103 2 5103 25 5103 11 5104 3 5104 25 5105 1 5105 3 5105 9 5106 41 5106 42 5107 3 5107 5 5108 3 5109 1 5109 2 5109 11 5110 3 5110 38 5111 3 5112 3 5112 31 5112 9 5113 3 5113 7 5113 23 5114 3 5114 36 5114 14 5115 3 5115 16 5116 11 5117 3 5117 25 5117 11 5118 4 5119 11 5120 30 5120 14 5120 5 5121 3 5122 7 5122 14 5122 20 5123 1 5123 2 5123 11 5124 3 5124 35 5124 24 5124 16 5125 1 5125 13 5126 40 5127 3 5127 11 5127 14 5128 8 5129 2 5129 3 5129 27 5129 14 5130 11 5130 20 5131 11 5131 20 5132 20 5133 3 5133 16 5134 3 5134 25 5134 14 5136 13 5137 30 5137 5 5138 11 5138 20 5139 11 5139 20 5140 2 5140 11 5141 11 5141 19 5142 3 5142 27 5143 3 5143 25 5143 5 5143 9 5144 2 5144 3 5144 4 5144 27 5144 14 5145 30 5146 41 5146 36 5146 5 5147 1 5147 2 5148 3 5148 8 5148 24 5149 25 5150 4 5151 3 5151 8 5151 36 5152 25 5153 1 5153 2 5153 5 5154 3 5154 11 5154 36 5154 28 5155 2 5155 4 5155 11 5155 27 5155 16 5156 41 5157 41 5158 3 5158 36 5159 2 5159 3 5159 29 5159 7 5159 11 5159 35 5160 2 5160 11 5160 8 5160 30 5160 35 5160 14 5160 5 5160 23 5160 9 5161 16 5162 3 5162 5 5163 1 5163 38 5164 27 5165 41 5166 3 5166 40 5166 16 5167 3 5167 24 5167 16 5167 9 5168 3 5168 24 5168 9 5169 2 5170 11 5170 27 5171 5 5172 1 5172 4 5172 30 5172 5 5172 28 5173 3 5174 3 5175 3 5176 1 5176 2 5177 3 5177 35 5177 14 5178 41 5179 3 5179 25 5180 24 5180 13 5181 2 5181 3 5181 25 5181 11 5182 3 5183 3 5183 14 5184 1 5184 11 5184 9 5185 1 5185 2 5185 30 5186 31 5186 9 5187 1 5187 25 5187 19 5187 9 5188 1 5188 3 5189 5 5190 3 5190 11 5190 19 5191 1 5191 2 5191 11 5191 8 5192 27 5193 2 5193 3 5194 4 5194 30 5194 5 5195 1 5195 2 5195 5 5196 3 5196 25 5197 2 5197 3 5197 40 5198 2 5198 3 5198 40 5199 41 5200 41 5201 2 5201 11 5201 6 5202 4 5202 24 5202 16 5203 3 5203 16 5204 3 5205 2 5205 3 5205 30 5205 5 5206 1 5206 30 5207 40 5207 8 5208 3 5209 2 5209 3 5209 4 5210 2 5210 3 5210 4 5211 2 5211 3 5211 4 5212 4 5212 16 5212 9 5213 3 5214 2 5215 1 5215 11 5215 19 5215 40 5215 9 5216 1 5216 11 5216 19 5216 9 5056 3 5056 11 5056 19 5217 2 5217 3 5217 11 5217 19 5217 9 5218 2 5218 3 5218 11 5218 19 5218 9 5219 2 5219 3 5219 11 5219 19 5219 9 5220 2 5220 3 5220 11 5220 19 5220 9 5221 2 5221 3 5221 11 5221 19 5221 9 5222 2 5222 3 5222 11 5222 19 5222 9 5223 2 5223 3 5223 11 5223 19 5223 9 5224 11 5224 19 5225 1 5225 2 5225 3 5225 11 5225 23 5226 3 5227 16 5228 3 5228 13 5229 2 5229 3 5230 5 5231 2 5231 19 5232 2 5233 2 5234 3 5235 3 5235 36 5236 3 5236 35 5236 14 5237 3 5237 5 5238 3 5238 5 5239 2 5239 11 5239 19 5239 8 5239 9 5240 40 5241 3 5241 36 5241 13 5241 23 5242 3 5242 11 5242 40 5243 8 2505 2 2505 19 5244 1 5244 26 5244 9 5245 3 5246 1 5246 2 5246 27 5247 1 5247 3 5247 36 5247 5 5248 13 5249 8 5250 11 5251 3 5251 40 5252 2 5252 11 5252 19 5252 8 5252 9 5253 2 5253 3 5253 19 5253 24 5253 9 5254 11 5255 4 5255 14 5256 8 5256 36 5257 27 5257 8 5257 14 5258 2 5258 3 5258 11 5258 16 5259 2 5259 3 5259 11 5259 16 5260 1 5260 2 5261 2 5261 3 5261 40 5262 3 5262 25 5262 38 5263 2 5263 11 5264 3 5265 2 5265 3 5265 13 5266 1 5266 3 5266 22 5266 23 5267 1 10055 3 5267 23 5267 9 5268 1 5268 4 5268 30 5268 5 5268 28 5269 1 5269 4 5269 30 5269 5 5269 28 5270 1 5270 4 5270 30 5270 5 5270 28 5271 1 5271 30 5271 5 5272 3 5272 14 5273 41 5274 1 5274 3 5274 25 5274 14 5274 24 5275 1 5275 31 5275 7 5275 19 5275 9 5275 28 5275 10 5275 21 5276 1 5276 2 5276 30 5276 5 5277 1 5277 30 5278 41 5279 41 5280 41 5281 41 5282 41 5283 41 5284 1 5284 30 5284 5 5285 25 5286 27 5287 2 5288 2 5288 11 5288 9 5289 35 5290 3 5290 36 5290 23 5291 3 5291 36 5291 13 5291 23 5292 3 5292 36 5292 24 5293 4 5294 7 5295 11 5296 11 5297 3 5298 1 5298 11 5298 27 5299 3 5299 39 5300 3 5300 16 5301 11 5302 30 5302 35 5303 3 5304 3 5304 36 5304 23 5305 3 5305 36 5305 23 5306 3 5306 36 5306 23 5307 3 5307 25 5307 40 5307 24 5307 16 5308 3 5308 25 5308 40 5308 24 5308 16 5309 3 5309 25 5309 40 5309 24 5309 16 5310 3 5310 25 5310 40 5310 24 5310 16 5311 3 5311 25 5311 40 5311 24 5311 16 5312 3 5312 25 5312 40 5312 24 5312 16 5313 3 5313 25 5313 40 5313 24 5313 16 5314 3 5314 25 5314 40 5314 24 5314 16 5315 3 5315 25 5315 40 5315 24 5315 16 5316 3 5316 25 5316 40 5316 24 5316 16 5317 3 5317 25 5317 40 5317 24 5317 16 5318 3 5318 25 5318 40 5318 24 5318 16 5319 3 5320 2 5320 3 5321 2 5321 30 5321 5 3741 30 5322 4 5323 3 5323 25 5323 5 5323 9 5324 1 5324 9 5325 3 5326 2 5326 3 5326 13 5327 2 5327 4 5327 27 5328 3 5328 26 1955 3 5329 3 5329 24 5330 7 5330 4 5330 14 5331 4 5331 24 5332 4 5332 16 5333 27 5333 28 5334 2 5334 3 5335 3 5336 2 5336 3 5336 11 5336 30 5337 3 5337 8 5338 11 5338 35 5339 1 5339 5 5339 39 5340 4 5341 4 5342 1 5342 2 5342 25 5342 11 5343 1 5343 3 5343 9 5344 1 5344 7 5344 9 5344 20 5344 21 5345 3 5345 25 5345 24 5346 3 5346 25 5346 11 5346 8 5347 41 5348 4 5348 27 5349 31 5349 27 5349 14 5349 9 5349 28 5350 40 5351 3 5351 27 5351 36 5352 7 5352 4 5352 14 5352 24 5353 11 5353 30 5354 1 5354 31 5354 9 5355 1 5355 2 5355 3 5355 11 5355 40 5355 36 5355 13 5356 1 5356 2 5356 11 5356 40 5356 9 5357 11 5357 40 5358 2 5358 31 5358 23 5358 9 5359 11 5359 40 5360 11 5360 40 5360 8 5361 3 5363 3 5363 40 5363 9 5364 40 5364 8 5365 3 5365 25 5366 1 5366 11 5366 30 5366 28 5367 3 5367 14 5367 24 5367 23 5368 24 5368 16 5369 3 5370 3 5371 3 5371 24 5371 13 5372 41 5373 3 5373 14 5373 24 5373 16 5374 3 5374 14 5374 34 5374 9 5375 5 5376 3 5377 31 5377 4 5377 27 5377 14 5378 3 5378 14 5378 24 5378 26 5378 9 5379 3 5379 14 5379 24 5380 19 5381 4 5381 13 5382 3 5382 16 5383 3 5383 16 5384 3 5384 16 5385 3 5385 16 5386 3 5386 16 5387 3 5387 5 5388 4 5388 27 5389 3 5389 16 5390 14 5390 24 5391 5 5392 2 5392 4 5392 5 5393 11 5393 40 5394 41 5395 25 5395 14 5395 42 5396 4 5396 28 5397 2 5397 3 5397 11 5397 40 5397 8 5398 2 5398 11 5399 3 5399 25 5400 35 5400 24 5400 16 5401 3 5402 2 5402 3 5402 7 5402 10 5403 25 5403 35 5404 1 5404 2 5404 3 5404 11 5404 40 5405 35 5405 16 5406 11 5407 1 5407 3 5408 3 5408 16 5409 3 5410 43 5411 25 5411 35 5412 3 5412 4 5412 25 5412 14 5413 3 5413 11 5413 40 5414 40 5414 35 5415 40 5415 35 5416 3 5416 31 5417 3 5417 11 5418 41 5419 41 5420 41 5421 41 5422 41 5423 40 5423 35 5424 3 5424 40 5424 35 5425 35 5425 16 5426 14 5426 20 5427 1 5427 2 5427 3 5427 11 5427 38 5428 2 5428 3 5428 30 5428 5 5429 11 5429 35 5430 25 5431 35 5431 16 5432 40 5433 35 5433 16 5434 3 5434 24 5435 14 5435 24 5436 27 5437 27 5438 3 5438 40 5438 35 5439 40 5439 16 5440 35 5441 3 5442 9 5443 3 5443 40 5443 5 5444 20 5445 35 5446 35 5447 3 5447 16 5448 11 5448 40 5448 35 5449 3 5450 3 5450 5 5451 30 5451 5 5452 3 5453 3 5453 5 5454 4 5454 14 5454 16 5455 3 5455 40 5455 35 5455 5 5455 6 5456 35 5457 4 5457 35 5458 35 5458 16 5459 11 5459 35 5460 3 5461 11 5461 35 5462 3 5462 16 5463 24 5463 9 5464 40 5464 35 5464 24 5464 16 5465 11 5465 40 5465 35 5466 35 5466 16 5467 35 5468 11 5468 35 5469 1 5469 2 5469 3 5469 11 5469 23 5470 4 5470 5 5470 16 5470 28 5471 31 5471 9 5472 3 5473 3 5473 11 5473 35 5474 35 5475 40 5475 6 5476 3 5476 16 5477 31 5477 8 5477 14 5479 31 5479 8 5479 14 5482 3 5483 3 5483 27 5484 3 5484 25 5484 14 5485 3 5485 14 5485 5 5486 14 5487 3 5487 16 5488 40 5489 40 5489 35 5490 11 5491 2 5491 4 5491 27 5491 35 5492 40 5492 35 5493 11 5493 40 5493 35 5494 40 5495 3 5495 13 5496 3 5497 1 5497 3 5497 25 5497 36 5497 9 5498 1 5498 2 5498 5 5499 1 5499 27 5499 23 5499 28 5500 2 5501 3 5502 3 5502 16 5503 3 5503 16 5504 1 5504 31 5504 41 5504 22 5504 9 5505 2 5505 30 5505 6 5506 1 5506 27 5506 23 5506 28 5507 1 5507 3 5507 25 5507 8 5508 3 5509 3 5510 1 5510 2 5510 3 5510 30 5510 5 5511 11 5512 3 5512 24 5512 16 5513 4 5513 25 5513 14 5513 34 5514 3 5515 3 5515 25 5516 1 5516 2 5516 40 5516 5 5517 3 5517 30 5518 1 5518 30 5518 28 5519 3 5519 25 5519 8 5520 3 5520 14 5521 3 5521 14 5522 40 5522 24 5523 4 5523 27 5524 1 5524 2 5524 40 5524 5 5525 1 5526 1 5526 2 5526 40 5526 5 5527 2 5527 3 5527 11 5527 40 5527 14 5528 1 5528 3 5528 11 5528 8 5529 3 5529 11 5529 8 5530 1 5530 7 5530 27 5530 9 5531 5 5531 6 5532 41 5533 2 5533 11 5534 19 5535 1 5535 35 5535 23 5536 3 5536 16 5537 29 5538 1 5538 30 5539 3 5539 5 5540 4 5541 1 5541 8 5541 5 5541 23 5542 35 5542 5 5542 6 5543 40 5544 2 5544 27 5544 16 5545 3 5546 1 5546 24 5546 13 5547 1 5547 2 5547 3 5547 11 5547 5 5548 1 5548 2 5548 40 5549 3 5550 3 5551 3 5551 36 5552 1 5552 3 5553 3 5553 32 5554 2 5554 3 5555 2 5555 3 5556 2 5556 3 5556 40 5557 2 5557 3 5557 40 5558 4 5559 3 5559 36 5560 8 5561 3 5562 1 5562 31 5562 19 5562 9 5563 41 5564 25 5564 14 5565 1 5565 2 5565 11 5565 8 5565 22 5566 1 5566 2 5567 2 5567 14 5567 28 5568 4 5569 40 5570 3 5570 14 5570 34 5571 41 5572 3 5572 11 5572 40 5573 41 5574 41 5575 3 5575 16 5576 4 5576 8 5576 14 5576 37 5577 3 5577 11 5577 40 5577 8 5578 3 5579 3 5579 22 5579 13 5579 10 5580 13 5580 23 5581 2 5581 35 5582 1 5582 30 5582 5 5583 1 5583 3 5583 30 5583 5 5583 34 5584 1 5584 11 5585 2 5585 29 5585 40 5586 1 5586 5 5586 23 5587 1 5587 5 5587 28 5588 3 5588 16 5589 29 5589 19 5589 35 5590 2 5590 11 5591 1 5591 3 5591 9 5592 3 5592 25 5593 1 5593 4 5593 27 5593 32 5593 9 5594 3 5595 3 5595 14 5596 3 5596 4 5596 24 5596 13 5597 1 5597 3 5597 4 5597 24 5597 13 5598 1 5598 3 5598 11 5598 30 5598 36 5599 1 5599 2 5599 4 5599 11 5600 11 5600 41 5601 2 5601 27 5602 1 5602 3 5602 11 5602 30 5602 36 5603 3 5604 1 5604 2 5604 11 5605 2 5605 3 5606 14 5606 24 5607 40 5607 16 5608 1 5608 3 5608 31 5608 24 5608 9 5609 1 5609 5 5610 3 5610 13 5611 1 5611 3 5611 9 5612 1 5612 2 5612 22 5612 23 5612 9 5613 1 5613 2 5613 3 5613 4 5613 11 5613 8 5613 28 5614 11 5614 9 5615 7 5616 1 5616 3 5616 19 5616 9 5617 4 5617 13 5618 4 5618 13 5619 4 5619 13 5620 4 5620 13 5621 25 5622 30 5622 36 5622 5 5622 6 5623 2 5623 11 5624 3 5624 40 5625 13 5626 3 5626 25 5626 24 5626 5 5626 34 5627 2 5627 3 5627 27 5628 1 5628 3 5628 25 5628 13 5629 1 5629 25 5629 23 5629 9 5630 3 5631 2 5631 40 5632 3 5632 13 5633 41 5634 14 5635 4 5635 35 5635 5 5635 16 5636 3 5636 24 5636 9 5637 1 5637 2 5637 40 5637 30 5637 5 5638 1 5638 2 5638 4 5638 11 5639 43 5640 1 5640 5 5641 1 5641 30 5641 5 5641 6 5642 1 5642 24 5642 13 5643 1 5643 24 5643 13 5644 1 5644 24 5644 13 5645 1 5645 11 5645 30 5645 28 5646 5 5646 21 5647 4 5648 41 5649 1 5649 7 5649 26 5649 9 5650 4 5650 8 5651 41 5652 1 5652 30 5652 5 5652 23 5653 4 5654 38 5655 3 5655 13 3436 19 3436 9 5656 40 5656 8 5657 3 5657 4 5657 16 5658 3 5658 24 5658 9 5659 40 5660 40 5661 2 5661 3 5661 11 5662 41 5663 41 5663 34 5664 41 5665 41 5666 41 5667 41 5668 2 5668 11 5668 5 5669 41 5670 41 5671 20 5672 41 5673 2 5673 3 5674 41 5675 41 5676 41 5677 41 5678 1 5678 8 5678 14 5678 24 5678 9 5679 1 5679 9 5680 1 5680 2 5680 11 5680 5 5681 3 5681 14 5682 3 5683 3 5683 14 5683 24 5684 3 5684 24 5685 4 5686 3 5686 40 5687 3 5688 41 5689 2 5689 5 5689 6 5690 1 5691 16 5692 3 5692 19 5692 24 5692 9 5693 1 5694 3 5694 11 5694 14 5694 26 5694 34 5695 3 5695 16 5697 3 5697 4 5697 14 5698 41 5699 4 5699 8 5699 14 5699 34 5700 3 5700 25 5700 34 5701 1 5701 2 5701 11 5702 30 5703 1 5703 3 5703 25 5703 14 5703 24 5704 1 5704 2 5704 3 5704 11 5705 3 5705 14 5705 24 5706 1 5706 4 5706 25 5706 22 5706 14 5706 5 5706 34 5707 40 5708 41 5709 1 5709 2 5709 11 5709 8 5709 30 5709 5 5709 6 5710 3 5710 5 5711 3 5711 4 5711 16 5712 1 5712 30 5712 5 5713 1 5713 2 5713 30 5713 5 5714 1 5714 2 5714 30 5714 5 5715 1 5715 2 5715 30 5715 5 5716 1 5716 2 5716 30 5716 5 5717 1 5717 2 5717 30 5717 5 5718 2 5718 11 5719 1 5719 8 5720 2 5720 40 5721 3 5721 16 5722 1 5722 2 5722 3 5722 11 5722 30 5722 5 5723 3 5724 30 5724 5 5725 2 5726 2 5727 1 5728 16 5729 1 5729 38 5729 24 5729 13 5730 3 5730 40 5731 11 5732 41 5733 41 5734 1 5734 2 5734 5 5735 16 5736 41 5737 30 5738 3 5738 40 5739 4 5739 20 5740 3 5740 40 5741 3 5741 32 5742 3 5743 1 5743 11 5743 30 5743 28 5744 4 5744 41 5745 3 5745 24 5745 23 5746 1 5746 5 5747 41 5748 41 5749 1 5749 5 5750 1 5750 3 5750 24 5751 3 5751 11 5752 1 5752 4 5752 30 5752 5 5753 4 5754 11 5754 14 5755 1 5755 3 5756 3 5757 1 5757 14 5757 5 5758 2 5758 11 5758 27 5759 35 5760 41 5761 41 5762 3 5762 25 5762 8 5763 41 5764 7 5764 19 5764 35 5764 9 5764 20 5765 3 5765 16 5766 1 5766 3 5766 31 5766 24 5766 9 5767 3 5767 25 5767 42 5767 9 5768 3 5769 3 5770 1 5770 2 5770 30 5770 5 5771 1 5771 2 5771 11 5772 1 5772 2 5772 30 5772 5 5773 3 5774 4 5774 27 5775 1 5775 5 5776 1 5776 2 5776 17 5776 3 5776 40 5776 30 5776 5 5776 6 5776 23 5776 9 5777 2 5778 3 5778 40 5779 2 5780 3 5780 40 5781 1 5781 2 5781 31 5781 38 5782 3 5783 3 5783 14 5784 1 5784 19 5784 5 5785 11 5785 41 5785 9 5786 4 5787 4 5787 27 5787 16 5788 4 5788 27 5788 16 5789 4 5789 27 5789 16 5790 40 5791 3 5792 3 5792 36 5793 3 5793 16 5794 5 5795 1 5795 3 5795 4 5795 27 5795 32 5796 11 5797 3 5797 25 5797 24 5798 2 5798 40 5798 9 5799 3 5799 25 5799 14 5799 34 5800 41 5801 36 5802 5 5803 3 5803 5 5804 41 5805 42 5806 40 5807 3 5808 3 5808 8 5808 14 5808 9 5809 1 5809 27 5809 5 5810 3 5810 35 5810 24 5810 16 5811 3 5811 25 5811 14 5811 5 5812 25 5812 36 5813 3 5814 1 5814 2 5814 30 5814 5 5815 3 5815 27 5816 41 5817 3 5817 24 5818 17 5818 13 5819 35 5820 14 5820 24 5821 19 5821 20 5822 13 5823 35 5824 3 5825 3 5825 9 5826 8 5826 16 5826 9 5827 1 5827 2 5827 11 5827 8 5828 1 5828 5 5829 4 5829 13 5830 1 5831 1 5831 30 5831 5 5831 28 5832 3 5832 36 5832 14 5832 24 5833 1 5833 3 5833 32 5834 41 5835 41 5836 1 5836 4 5836 27 5836 32 5836 26 5836 34 5836 9 5837 1 5837 30 5837 28 5838 1 5838 9 5839 35 5840 35 5841 3 5841 35 5841 24 5841 16 5842 1 5842 3 5842 27 5842 36 5842 32 5842 5 5843 3 5843 31 5843 25 5843 11 5843 14 5844 1 5844 30 5844 5 5844 28 5844 10 5845 3 5845 25 5845 14 5846 25 5846 13 5847 1 5847 27 5847 22 5847 32 5847 23 5848 13 5850 3 5850 25 5850 14 5850 26 5850 9 5851 1 5851 25 5851 8 5851 5 5851 28 5852 3 5853 8 5853 20 5853 21 5854 1 5854 5 5854 13 5855 2 5855 11 5855 14 5856 43 5857 2 5857 3 5857 11 5857 40 5857 8 5858 40 5859 4 5860 3 5860 24 5860 16 5861 3 5861 24 5861 16 5862 16 5863 41 5864 1 5864 5 5865 7 5865 5 5866 2 5866 3 5866 7 5866 40 5866 10 5867 2 5867 3 5867 7 5867 10 5868 2 5868 40 5869 3 5869 4 5869 25 5869 5 5869 9 5870 2 5870 40 5871 1 5871 11 5871 28 5872 3 5872 27 5872 36 5872 32 5873 3 5874 3 5875 1 5875 3 5876 2 5876 11 5877 1 5877 3 5877 40 5878 29 5879 1 5879 11 5879 27 5879 22 5880 40 5881 3 5882 3 5882 11 5883 3 5884 3 5885 3 5886 3 5887 3 5888 3 5888 27 5889 38 5890 11 5890 19 5891 3 5892 35 5893 29 5893 19 5893 20 5894 3 5895 3 5895 5 5896 1 5896 4 5897 2 5897 3 5897 7 5897 10 5898 7 5899 41 5900 40 5901 1 5901 3 5901 41 5901 30 5902 41 5903 27 5904 2 5904 17 5904 13 5905 2 5905 17 5905 13 5906 1 5906 36 5907 2 5907 11 5907 8 5908 3 5908 24 5909 3 5909 27 5909 36 5910 4 5911 27 5911 40 5912 3 5912 36 5913 11 5913 8 5914 11 5914 8 5915 2 5915 11 5915 40 5915 8 5916 40 5917 11 5918 17 5919 7 5919 19 5920 3 5921 3 5922 3 5922 11 5923 16 5924 41 5924 14 5925 3 5926 3 5926 4 5926 13 5927 11 5927 40 5927 8 5928 3 5929 40 5930 40 5931 40 5932 31 5932 11 5932 41 5932 8 5932 14 5932 9 5933 13 5934 2 5934 35 5935 35 5936 40 5936 35 5937 8 5938 13 5939 2 5939 3 5940 1 5940 11 5940 9 5941 3 5941 4 5941 25 5941 14 5941 34 5941 20 5942 3 5942 25 5942 11 5943 24 5944 3 5944 14 5944 39 5945 35 5946 4 5946 40 5947 3 5947 9 5948 19 5949 1 5949 25 5949 22 5949 24 5949 23 5949 34 5950 27 5950 16 5951 41 5952 8 5953 1 5953 3 5953 7 5953 23 5954 14 5956 2 5956 3 5957 35 5958 3 5959 1 5959 23 5960 9 5961 38 5962 40 5963 3 5964 27 5964 16 5965 3 5965 36 5965 34 5966 4 5966 27 5967 2 5967 3 5967 7 5967 10 5968 30 5969 24 5969 34 5970 41 5971 1 5971 3 5971 27 5971 36 5971 32 5971 5 5972 41 5973 4 5973 30 5973 5 5973 28 5974 3 5975 4 5976 5 5977 40 5977 8 5978 1 5978 7 5978 38 5979 1 5979 2 5979 3 5979 11 5979 8 5980 14 5980 24 5980 37 5981 4 5981 16 5982 4 5983 2 5984 1 5984 4 5984 32 5985 27 5985 32 5986 3 5986 4 5986 14 5986 10 5987 1 5987 2 5987 3 5988 3 5988 23 5988 9 5989 3 5989 29 5989 19 5991 1 5991 2 5991 30 5991 5 5992 3 5992 9 5993 4 5993 27 5994 4 5994 27 5995 1 5995 11 5995 38 5996 3 5996 22 5997 2 5997 11 5997 22 5997 5 5997 23 5998 3 5998 16 5999 2 5999 3 5999 4 5999 11 5999 8 5999 30 5999 14 6000 27 6001 3 6001 4 6001 14 6001 24 6002 1 6002 2 6002 3 6002 11 6003 4 6003 35 6003 14 6003 5 6004 3 6005 3 6006 41 6007 30 6007 5 6008 3 6008 4 6009 1 6009 4 6009 27 6009 32 6009 43 6009 28 6010 1 6010 31 6010 9 6011 35 6013 3 6013 11 6013 40 6014 3 6014 11 6014 40 6015 3 6015 11 6015 40 6016 3 6016 11 6016 40 6017 3 6017 11 6017 40 6018 3 6018 11 6018 40 6019 4 6019 9 6020 1 6020 25 6020 23 6020 9 6021 1 6021 2 6021 3 6022 1 10055 25 6022 22 6022 23 6023 1 6023 3 6023 25 6023 14 6023 9 6024 11 6025 14 6025 34 6026 3 6026 14 6026 34 6026 9 6027 7 6027 19 6027 26 6027 9 6028 1 6028 11 6028 9 6030 7 6030 30 6030 5 6030 28 6030 10 6031 1 6031 30 6031 28 6032 3 6032 4 6032 11 6033 41 6033 9 6034 7 6034 5 6035 1 6035 2 6035 11 6035 5 6035 6 6035 28 6036 41 6036 34 6037 3 6038 3 6038 25 6038 24 6038 13 6039 3 6039 14 6039 24 6040 27 6041 1 6041 24 6042 3 6043 3 6043 40 6044 3 6045 2 6045 4 6045 5 6046 3 6046 24 6047 4 6047 35 6047 5 6047 16 6048 35 6049 2 6049 3 6049 27 6050 2 6050 3 6050 40 6051 2 6051 40 6052 2 6052 40 6053 2 6053 3 6053 40 6053 5 6054 2 6054 11 6054 40 6055 14 6056 1 6056 3 6056 4 6056 8 6056 23 6057 1 6057 2 6057 11 6057 8 6058 1 6058 24 6058 5 6058 23 6059 1 6059 5 6060 16 6061 1 6061 7 6061 23 6061 21 6062 3 6062 24 6062 16 6063 1 6063 3 6063 25 6064 36 6065 4 6066 31 6066 14 6066 9 6067 3 6067 25 6068 1 6068 2 6068 23 6069 3 6069 36 6069 24 6069 5 6070 1 6070 2 6070 3 6070 7 6071 25 6071 34 6072 3 6072 9 6073 1 6073 2 6073 11 6073 40 6073 8 6073 23 6074 1 6074 2 6074 40 6075 1 6075 27 6075 23 6076 1 6076 2 6076 3 6076 40 6076 23 6077 1 6077 2 6077 40 6078 2 6078 3 6078 9 6079 1 6079 25 6079 8 6080 3 6081 3 6081 25 6081 22 6081 14 6081 24 6081 23 6081 34 6082 3 6082 31 6082 9 6083 8 6084 1 6084 2 11497 7 6084 11 6084 9 11497 10 6085 3 6085 25 6085 14 6086 1 6086 30 6086 5 6086 6 6087 3 6087 16 6088 2 6089 2 6089 40 6090 3 6091 3 6091 11 6091 40 6092 3 6093 3 6094 2 6094 3 6095 11 6095 19 6096 40 6097 3 6097 40 6098 3 6098 36 6099 3 6099 23 6100 41 6101 35 6101 13 6102 3 6103 2 6103 9 6104 1 6104 2 6104 11 6105 3 6106 3 6107 2 6107 3 6107 40 6107 30 6107 5 6108 2 6108 11 6108 32 6109 38 6109 21 6110 3 6111 3 6111 35 6111 16 6112 41 6112 5 6113 27 6114 27 6115 41 6115 9 6116 1 6116 23 6116 9 6117 3 6117 24 6118 3 6118 14 6118 24 6119 3 6119 25 6119 38 6120 1 6120 3 6121 1 6121 22 6122 4 6122 8 6122 9 6123 1 6123 3 6123 27 6123 32 6123 5 6123 23 6124 11 6125 1 6125 2 6125 30 6125 5 6126 3 6126 14 6126 24 6126 34 6127 24 6127 13 6128 3 6128 27 6128 36 6128 32 6129 41 6129 26 6130 41 6131 1 6131 2 6131 11 6131 38 6132 1 6132 2 6132 3 6132 27 6132 32 6132 14 6133 27 6133 28 6134 2 6134 11 6134 5 6135 3 6135 24 6135 9 6136 1 6136 2 6136 4 6136 30 6136 5 6137 13 6138 3 6138 11 6139 5 6140 40 6141 1 6141 31 6141 4 6141 11 6141 27 6142 3 6142 5 6142 6 6143 3 6144 4 6145 2 6145 3 6145 6 6146 11 6147 8 6148 1 6148 13 6149 1 6149 30 6149 35 6149 14 6149 5 6150 41 6151 3 6151 27 6152 2 6152 13 6153 1 6153 9 6154 14 6154 5 6155 4 6156 3 6156 16 6157 4 6157 11 6157 16 6157 9 6158 41 6159 3 6159 14 6159 24 6159 37 6160 4 6161 3 6162 2 6162 3 6163 41 6164 1 6164 3 6164 22 6165 4 6165 14 6165 24 6165 34 6166 2 6166 5 6167 3 6168 16 6169 9 6170 41 6171 19 6172 1 6172 19 6172 5 6173 41 6174 41 6175 41 6176 41 6177 41 6178 3 6178 36 6178 14 6178 24 6179 14 6180 35 6181 41 6182 41 6183 1 6183 2 6183 3 6183 11 6183 40 6184 35 6185 1 6185 3 6185 4 6185 11 6185 30 6185 14 6185 5 6186 4 6187 1 6187 11 6188 41 6189 41 6190 3 6191 3 6191 4 6191 14 6191 24 6191 16 6192 1 6192 5 6193 3 6193 36 6193 24 6193 34 6194 1 6194 3 6194 25 6194 32 6195 1 6195 4 6195 28 6196 3 6196 36 6196 24 6197 1 6197 31 6197 11 6197 38 6197 9 6197 28 6198 2 6198 4 6199 1 6199 3 6199 31 6199 24 6199 9 6200 7 6200 4 6200 14 6200 16 6201 1 6201 27 6201 32 6202 41 6202 34 6203 1 6203 7 6203 4 6203 19 6203 26 6203 16 6203 9 6204 7 6204 25 6204 36 6205 3 6205 24 6205 37 6205 16 6206 3 6206 27 6206 36 10055 14 10055 9 10314 2 6208 4 6208 27 6209 3 6209 9 6210 3 6210 9 6211 7 6212 3 6213 13 6213 23 6214 40 6215 27 6215 16 6216 3 6217 4 6217 8 6217 9 6218 8 6218 35 6218 36 6219 3 6219 40 6219 36 6220 3 6220 16 6221 40 6222 3 6222 40 6223 1 6223 40 6224 1 6224 40 6225 1 6225 40 6226 7 6227 3 6228 3 6229 3 6229 40 6230 3 6230 14 6231 3 6232 3 6233 3 6234 1 6234 11 6234 9 6235 41 6236 4 6236 25 6236 11 6236 14 6236 34 6237 11 6237 40 6237 8 6237 14 6237 23 6238 41 6239 41 6240 1 6240 4 6240 13 6241 1 6241 17 6242 1 6242 4 6242 13 6243 1 6243 3 6244 7 6245 41 6246 3 6246 25 6246 24 6246 13 6247 13 6248 41 6249 1 6249 3 6249 25 6249 24 6249 9 6250 1 6250 4 6250 30 6250 5 6250 6 6250 28 6251 3 6251 31 6251 25 6251 11 6251 14 6252 35 6253 35 6254 35 6255 2 6255 7 6255 24 6255 5 6255 23 6255 9 6256 1 6256 2 6256 7 6256 22 6256 23 6257 41 6257 34 6258 1 6258 2 6258 5 6258 23 6259 3 6259 11 6259 14 6259 26 6260 14 6260 24 6261 27 6262 27 6263 1 6263 3 6263 14 6263 24 6264 3 6265 3 6265 25 6265 14 6265 24 6265 34 6266 1 6266 7 6266 9 6266 20 6266 21 6267 1 6267 2 6267 3 6267 5 6268 2 6269 1 6269 5 6269 10 6269 20 10314 40 10316 2 10316 11 10316 40 6271 3 6271 13 6272 1 6272 2 6272 25 6272 8 6272 9 6273 2 6274 4 6275 3 6276 3 6276 5 6277 1 6277 11 6278 1 6278 3 6278 36 6278 32 6279 1 6279 11 6279 9 6280 1 6280 30 6280 5 6281 5 6281 6 6282 1 6282 3 6282 22 6282 23 6283 3 6283 5 6284 41 6285 3 6285 24 6285 16 6286 3 6287 3 6287 35 6288 1 6288 7 6288 4 6288 19 6288 26 6288 9 6289 41 6289 8 6289 9 6290 3 6290 11 6290 40 6291 3 6291 11 6291 40 6292 1 6292 2 6292 22 6292 23 6293 2 6293 11 6293 5 6294 4 6295 1 6295 30 6295 5 6295 28 6295 10 6296 2 6296 8 6297 35 6298 1 6298 30 6298 5 6298 28 6298 10 6299 41 6300 41 6301 41 6302 1 6302 2 6302 5 6302 6 6303 1 6303 11 6303 22 6303 5 6303 9 6304 2 6304 3 6304 7 6304 10 6305 40 6306 40 6307 4 6308 8 6309 3 6309 25 6310 1 6310 7 6310 23 6310 9 6311 9 6312 9 6313 9 6314 9 6315 5 6316 3 6316 25 6316 14 6316 24 6316 34 6317 35 6318 3 6318 7 6318 4 6318 20 6319 3 6319 4 6319 14 6320 41 6321 1 6321 3 6321 24 6321 13 6322 2 6322 3 6322 8 6322 9 6323 3 6323 5 6323 6 6324 11 6324 40 6324 8 6325 3 6325 24 6325 16 6326 1 6326 3 6326 25 6326 36 6326 9 6327 2 6327 3 6328 2 6328 4 6328 10 6329 4 6330 4 6331 1 6331 2 6331 30 6332 7 6333 4 6334 4 6335 4 6336 4 6337 4 6338 1 6338 30 6339 11 6339 41 6339 9 6340 3 6340 38 6340 9 6341 2 6341 3 6341 7 6341 10 6342 41 6342 8 6342 9 6343 27 6343 13 6344 24 6345 41 6346 30 6346 5 6346 13 6347 1 6347 3 6347 25 6347 8 6348 3 6348 41 6348 34 6349 1 6349 4 6349 5 6349 23 6350 1 6350 3 6350 30 6350 5 6350 34 6351 3 6351 25 6351 24 6351 13 6352 3 6352 24 6353 7 6353 9 6354 35 6355 4 6355 38 6355 13 6356 3 6356 24 6356 5 6357 1 6357 3 6358 27 6358 16 6359 3 6359 14 6359 34 6359 9 6360 3 6360 24 6360 16 6361 1 6361 30 6361 5 6362 1 6362 3 6362 36 6362 14 6363 1 6364 3 6364 4 6364 16 6365 1 6365 30 6366 3 6366 22 6366 16 6367 30 6367 36 6367 5 6368 11 6368 40 6368 8 6369 3 6369 22 6369 16 6370 3 6370 22 6370 16 6371 3 6371 22 6371 35 6371 16 6372 3 6372 22 6372 16 6373 11 6373 41 6374 2 6374 3 6374 7 6374 10 6375 27 6375 16 6376 3 6376 14 6376 24 6376 23 6377 3 6377 24 6378 3 6378 11 6378 8 6379 1 6379 25 6379 42 6380 3 6381 35 6382 3 6382 36 6382 16 6382 10 6383 41 6384 1 6384 2 6384 3 6385 3 6385 40 6386 3 6386 40 6387 16 6388 3 6388 4 6388 13 6389 5 6389 21 6390 17 6390 40 6390 6 6390 13 6391 1 6391 11 6392 38 6392 24 6392 16 6393 1 6393 31 6393 13 6393 9 6394 3 6395 3 6396 9 6397 3 6397 14 6397 24 6398 4 6398 27 6399 2 6399 11 6400 27 6400 16 6401 41 6402 3 6403 40 6403 23 6404 2 6404 3 6405 2 6405 3 6406 4 6406 35 6406 5 6406 16 6407 25 6407 42 6408 3 6408 7 6408 23 6409 1 6409 2 6409 25 6409 11 6410 3 6410 14 6411 3 6411 25 6411 14 6411 24 6411 34 6412 3 6412 25 6412 14 6412 26 6412 9 6413 4 6413 24 6414 3 6414 9 6415 1 6415 30 6415 5 6415 6 6415 28 6416 41 6417 35 6418 3 6418 4 6418 14 6418 24 6418 16 6419 3 6419 36 6419 14 6419 24 6420 3 6420 30 6420 5 6421 3 6421 30 6421 5 6422 3 6422 30 6422 5 6423 3 6423 30 6423 5 6424 3 6424 40 6424 16 6425 30 6425 36 6425 5 6426 3 6427 1 6427 4 6427 13 6428 2 6428 7 6428 5 6428 9 6429 17 6430 3 6431 2 6431 3 6431 40 6432 3 6433 3 6434 3 6435 5 6435 13 6436 1 6436 3 6436 14 6436 28 6437 25 6437 9 6438 2 6438 3 6439 3 6439 9 6440 1 6441 2 6441 3 6442 1 6442 30 6442 5 6442 28 6443 41 6443 9 6444 35 6445 1 6445 5 6446 11 6446 16 6447 2 6447 3 6447 11 6447 40 6448 1 6448 2 6448 23 6449 41 6450 41 6451 40 6452 40 6453 1 6453 19 6453 26 6453 9 6454 3 6454 24 6455 1 6455 30 6455 36 6455 5 6456 35 6457 2 6458 4 6459 1 6459 3 6459 23 6460 4 6460 27 6460 14 6461 1 6461 5 6462 7 6462 19 6462 24 6462 21 6463 16 6464 3 6464 14 6464 39 6465 4 6465 27 6465 39 6466 1 6467 14 6467 34 6468 2 6469 3 6469 14 6469 16 6470 41 6471 35 6472 3 6473 2 6473 3 6473 38 6473 40 6474 1 6474 25 6474 22 6474 24 6474 23 6474 34 6475 5 6476 14 6477 1 6477 3 6477 30 6478 3 6478 14 6478 24 6478 16 6479 3 6479 16 6480 3 6480 16 6481 1 6481 2 6481 27 6481 32 6481 23 6482 27 6483 1 6483 25 6483 22 6483 24 6483 23 6484 1 6484 11 6484 9 6485 3 6486 1 6486 30 6486 5 6487 2 6487 27 6488 1 6488 3 6488 30 6488 36 6488 32 6489 1 6489 4 6489 24 6489 16 6490 1 6490 2 6490 3 6490 30 6490 6 6491 4 6491 5 6491 6 6491 28 6492 4 6492 14 6492 24 6493 2 6493 25 6493 11 6493 8 6493 14 6494 41 6495 3 6495 24 6495 16 6496 3 6496 7 6496 23 6497 41 6498 1 6498 11 6498 39 6498 23 6498 9 6499 1 6499 30 6499 5 6499 6 6500 1 6500 3 6501 1 6501 3 6501 24 6501 13 6502 1 6502 2 6502 7 6502 11 6502 38 6502 8 6502 5 6503 1 6503 2 6503 3 6503 11 6503 40 6504 3 6504 11 6505 1 6505 5 6506 19 6506 5 6506 6 6507 2 6507 40 6508 3 6508 4 6508 14 6508 5 6508 16 6509 1 6509 4 6509 27 6509 32 6510 3 6510 14 6510 5 6511 9 6512 11 6512 9 6513 41 6514 41 6515 41 6516 1 6517 17 6517 13 6518 35 6519 3 6519 24 6520 3 6521 3 6521 25 6521 19 6521 14 6521 9 6522 16 6523 30 6523 5 6523 28 6524 35 6525 35 6526 3 6526 11 6526 40 6527 41 6528 40 6529 7 6529 9 6530 2 6530 3 6531 40 6532 3 6533 35 6534 27 6535 1 6535 3 6535 4 6535 27 6535 32 6535 14 6536 3 6536 14 6536 24 6536 16 6537 2 6537 4 6537 27 6537 40 6538 40 6538 8 6538 35 6539 5 6539 21 6540 35 6541 35 6543 3 6544 24 6544 13 6545 3 6545 40 6545 24 6545 23 6546 3 6546 25 6546 9 6547 3 6548 3 6549 3 6549 24 6549 16 6550 3 6550 31 6550 25 6550 14 6550 24 6550 34 6551 40 6552 3 6552 31 6552 26 6552 9 6553 1 6553 24 6553 5 6553 23 6554 2 6554 3 6554 11 6555 1 6555 3 6555 40 6555 30 6555 5 6556 1 6556 4 6556 27 6556 32 6556 9 6557 4 6557 11 6557 16 6557 9 6558 2 6558 40 6559 3 6559 19 6559 9 6559 21 6560 11 6561 2 6561 7 6561 4 6561 27 6561 9 6562 11 6562 19 6563 13 6564 19 6565 4 6565 40 6566 1 6566 3 6566 36 6566 23 6567 3 6567 24 6567 13 6568 3 6568 16 6569 7 6569 19 6569 24 6569 21 6570 1 6570 3 6570 24 6570 23 6570 9 6571 1 6571 11 6572 40 6573 11 6573 40 6574 3 6575 2 6575 3 6575 11 6575 36 6576 3 6577 3 6578 3 6579 11 6579 5 6580 1 6580 11 6580 9 6581 3 6581 4 6581 14 6581 24 6581 16 6582 1 6582 11 6582 9 6582 21 6583 1 6583 8 6583 5 6583 23 6584 41 6585 41 6586 41 6587 1 6587 35 6587 5 6588 1 6588 2 6588 30 6588 5 6589 1 6589 2 6589 11 6589 38 6589 14 6590 1 6590 14 6590 24 6590 5 6591 1 6591 3 6591 25 6591 22 6591 14 6591 24 6592 1 6592 25 6592 13 6593 1 6593 30 6593 5 6594 3 6594 25 6594 24 6595 3 6595 24 6595 13 6596 2 6596 3 6596 25 6596 11 6596 8 6597 2 6597 3 6598 1 6598 2 6598 11 6598 8 6599 3 6599 36 6599 5 6600 1 6600 2 6600 3 6600 23 6601 11 6601 40 6601 8 6602 3 6602 40 6602 8 6603 3 6603 16 6604 35 6605 7 6606 41 6607 3 6608 1 6608 3 6608 22 6608 24 6609 41 6610 41 6611 1 6611 11 6611 41 6612 27 6613 1 6613 11 6613 27 6613 22 6614 1 6614 4 6614 19 6614 14 6614 5 6614 9 6615 1 6615 11 6615 27 6615 22 6616 3 6616 24 6616 16 6617 2 6617 3 6618 41 6619 13 6620 1 6620 2 6620 25 6620 11 6621 4 6621 35 6622 19 6622 9 6622 20 6622 21 6623 40 6624 41 6625 11 6626 3 6626 4 6626 14 6626 24 6626 9 6627 3 6627 35 6627 16 6628 11 6629 35 6629 13 6630 19 6631 3 6631 4 6631 13 6632 14 6632 13 6633 3 6633 27 6633 14 6634 3 6635 41 6636 8 6636 20 6636 21 6637 8 6637 20 6637 21 6638 8 6638 20 6638 21 6639 1 6639 19 6639 5 6640 41 6641 1 6641 2 6641 3 6642 3 6643 1 6643 3 6643 7 6643 23 6644 1 6644 3 6644 7 6644 23 6645 3 6645 16 6646 5 6647 4 6647 27 6648 1 6648 27 6648 28 6649 4 6649 20 6649 21 6650 3 6651 3 6652 1 6652 2 6652 3 6652 11 6652 8 6653 1 6653 5 6653 20 6654 41 6654 9 6655 41 6656 41 6657 1 6657 41 6657 9 6658 1 6658 2 6658 25 6658 11 6659 1 6659 2 6659 3 6659 27 6659 32 6659 14 6660 3 6660 4 6660 13 6661 1 6661 35 6662 1 6662 2 6662 40 6662 30 6662 5 6662 6 6663 8 6663 35 6664 1 6664 2 6664 31 6664 11 6664 9 6665 1 6665 2 6665 31 6665 11 6665 9 11498 1 6666 2 6666 3 6666 7 6666 10 6667 16 6668 35 6669 3 6669 16 6670 25 6670 36 6671 5 6671 20 6672 2 6672 5 6672 20 6673 5 6673 39 6673 16 6673 20 6674 1 6674 7 6675 11 6676 41 6677 3 6677 40 6678 35 6678 5 6679 1 6679 28 6680 4 6680 5 6681 27 6682 4 6682 14 6683 27 6684 3 6684 11 6684 40 6685 3 6685 9 6686 7 6686 24 6687 8 6688 40 6688 8 6689 1 6689 2 6689 5 6689 23 6690 3 6690 5 6691 1 6691 2 6691 3 6691 22 6691 5 6691 23 6692 24 6693 25 6693 42 6694 3 6694 38 6694 40 6695 3 6695 36 6696 3 6696 7 6696 4 6697 2 6697 11 6697 40 6698 1 6698 3 6698 4 6698 22 6698 32 6698 14 6699 1 6699 3 6699 30 6700 1 6700 11 6701 14 6701 24 6702 3 6702 8 6702 14 6702 34 6703 2 6704 1 6704 3 6705 3 6705 27 6706 1 6706 4 6706 30 6706 5 6706 28 6707 11 6708 1 6708 2 6708 3 6708 25 6708 5 6708 10 6709 1 6709 2 6709 3 6709 25 6709 5 6709 10 6710 3 6711 11 6712 40 6713 1 6713 17 6714 3 6714 4 6714 14 6714 24 6715 1 6715 11 6716 2 6716 11 6717 41 6717 42 6718 41 6719 3 6720 3 6721 3 6721 41 6722 2 6722 36 6722 5 6723 31 6723 25 6724 3 6724 24 6724 37 6724 16 6725 36 6726 1 6726 2 6727 1 6727 5 6727 23 6728 2 6728 11 6728 5 6729 5 6729 6 6729 16 6730 7 6731 3 6732 1 6732 4 6732 30 6732 5 6732 28 6733 1 6733 4 6733 30 6733 5 6733 28 6734 7 6734 19 6734 14 6734 24 6734 9 6735 3 6736 25 6737 30 6738 3 6739 11 6739 14 6739 9 6740 7 6740 25 6740 14 6740 24 6741 1 6741 2 6741 4 6741 30 6741 5 6742 5 6743 3 6743 31 6743 7 6743 19 6743 26 6743 9 6744 3 6744 31 6744 7 6744 19 6744 26 6744 9 6745 3 6745 31 6745 7 6745 19 6745 26 6745 9 6746 1 6746 11 6747 3 6748 3 6749 3 6749 5 6750 1 6750 3 6750 7 6750 9 6750 20 6750 21 6751 1 6751 3 6751 25 6751 24 6751 9 6752 5 6753 5 6754 5 6755 5 6756 5 6757 5 6758 35 6759 1 6759 2 6760 4 6760 35 6760 14 6760 24 6760 16 6761 3 6761 25 6761 14 6761 9 6762 41 6763 1 6763 3 6764 41 6765 1 6765 11 6765 8 6765 14 6765 9 6766 8 6767 3 6767 25 6767 14 6767 26 6767 9 6768 3 6768 25 6768 14 6768 24 6769 13 6769 23 6770 2 6770 40 6771 40 6771 8 6772 4 6774 3 6774 11 6774 32 6775 40 6776 35 6777 35 6778 3 6778 5 6779 1 6780 11 6780 8 6781 35 6782 35 6783 2 6783 3 6783 14 6783 39 6784 3 6785 14 6786 2 6786 3 6787 3 6787 25 6788 5 6789 3 6789 16 6790 35 6791 3 6791 11 6791 36 6792 30 6792 5 6792 28 6793 14 6793 43 6794 3 6795 1 6795 2 6795 3 6795 11 6795 8 6795 22 6796 3 6796 14 6796 24 6796 34 6797 1 6797 2 6797 31 6797 27 6797 22 6797 32 6798 7 6798 5 6798 21 11498 4 6799 17 6800 3 6800 27 6801 3 6801 31 6801 25 6801 14 6801 24 6802 1 6802 4 6802 13 6803 1 6803 38 6804 11 6804 8 6804 35 6805 11 6806 27 6806 28 6807 1 6808 5 6809 19 6809 20 6810 3 6811 3 6812 3 6812 25 6812 5 6812 9 6813 11 6813 40 6814 2 6814 4 6815 11 6816 2 6816 22 6816 24 6817 1 6817 2 6817 5 6818 3 6818 11 6818 40 6819 2 6820 3 6820 11 6821 3 6822 3 6822 36 6823 19 6823 24 6823 9 6824 3 6825 1 6825 2 6825 5 6826 1 6826 30 6827 1 6827 2 6827 3 6827 4 6828 3 6829 35 6829 13 6830 3 6831 4 6832 13 6833 4 6833 30 6833 5 6833 20 6834 1 6834 7 6834 27 6835 3 6835 4 6835 14 6835 5 6835 34 6836 5 6837 1 6837 30 6837 5 6838 1 6838 2 6838 5 6839 3 6839 24 6839 16 6840 1 6840 2 6840 5 6841 5 6841 6 6842 24 6842 13 6843 2 6843 5 6844 27 6845 4 6845 27 6846 11 6846 27 6846 9 6847 4 6848 20 6849 3 6849 24 6849 16 6850 1 6850 2 6850 11 6852 5 6852 28 6853 41 6854 41 6855 41 6856 41 6856 19 6857 8 6858 8 6859 14 6860 8 6861 1 6861 3 6861 36 6862 27 6862 16 6863 3 6863 36 6863 24 6863 5 6864 35 6865 41 6866 41 6867 41 6868 2 6868 4 6869 1 6869 40 6870 2 6871 41 6872 35 6873 3 6873 25 6873 19 6873 14 6873 9 6874 41 6875 1 6875 3 6875 31 6875 24 6875 9 6876 13 6877 16 6878 16 6879 3 6880 3 6881 3 6882 7 6882 25 6882 14 6882 24 6883 2 6883 4 6884 1 6884 4 6884 27 6884 32 6884 9 6885 1 6885 4 6885 27 6885 32 6885 9 6886 1 6886 4 6886 27 6886 32 6886 9 6887 4 6887 5 6887 9 6888 1 6888 3 6888 25 6888 32 6888 14 6888 24 6888 34 6889 3 6889 25 6890 3 6890 24 6891 3 6892 1 6892 38 6893 1 6893 38 6895 3 6895 8 6895 24 6895 16 6896 1 6896 25 6896 11 6896 23 6897 27 6898 40 6899 40 6900 27 6901 9 6902 16 6903 4 6903 24 6904 16 6905 16 6906 1 6906 11 6906 9 6907 1 6907 2 6908 11 6909 1 6909 2 6909 3 6909 11 6910 1 6910 2 6910 3 6910 25 6910 32 6911 3 6912 4 6913 41 6914 41 6915 41 6915 9 6916 41 6917 2 6917 13 6918 3 6919 1 6919 2 6919 5 6920 1 6920 3 6920 24 6920 13 6921 2 6921 3 6922 2 6922 3 6923 2 6923 3 6923 11 6924 35 6925 2 6926 35 6927 13 6927 23 6928 3 6929 3 6929 16 6930 1 6930 2 6932 16 6933 3 6933 5 6934 3 6934 4 6934 14 6934 24 6934 16 6935 38 6935 20 6936 1 6936 2 6936 32 6937 35 6937 16 6938 35 6938 23 6939 41 6940 1 6940 2 6941 35 6941 24 6941 16 6942 1 6942 4 6942 27 6943 27 6944 3 6944 31 6944 25 6944 14 6944 24 6944 34 6945 8 6946 5 6947 3 6947 25 6947 14 6947 24 6947 34 6948 3 6949 35 6949 16 6950 35 6950 16 6951 3 6951 24 6952 41 6953 5 6954 3 6954 7 6954 9 6955 3 6956 11 6957 3 6957 24 6957 9 6958 1 6958 4 6958 5 6958 23 6959 3 6960 2 6961 6 6961 16 6962 5 6963 3 6963 36 6963 23 6964 3 6964 36 6964 23 6965 3 6965 36 6965 23 6966 2 6967 11 6968 30 6968 13 6969 3 6970 3 6971 3 6972 40 6973 40 6974 7 6974 24 6975 3 6975 5 6976 16 6977 4 6978 2 6978 3 6978 36 6978 6 6979 3 6979 36 6980 3 6981 3 6981 27 6981 36 6982 3 6983 3 6984 35 6985 3 6986 3 6987 3 6988 3 6988 36 6988 9 6989 3 6990 3 6991 3 6991 16 6992 13 6993 41 6994 3 6995 16 6996 4 6996 14 6996 9 6997 2 6997 7 6997 24 6997 5 6997 23 6997 9 6998 41 6999 5 7000 1 7000 5 7001 3 7001 36 7001 24 7002 4 7002 35 7003 27 7003 16 7004 41 7005 3 7005 4 7005 24 7006 3 7006 16 7007 3 7007 25 7007 14 7007 24 7007 5 7007 34 7008 1 7008 2 7008 22 7008 23 7009 1 7009 2 7009 11 7009 5 7010 27 7011 4 7012 3 7012 36 7013 2 7013 40 7014 3 7014 9 7015 4 7016 1 7017 1 7017 32 7018 3 7018 25 7019 1 7019 3 7019 30 7020 2 7020 4 7020 30 7020 14 7020 5 7021 35 7022 4 7022 14 7022 34 7023 3 7023 4 7023 14 7023 24 7024 3 7024 4 7024 14 7024 39 7025 1 7025 11 7026 40 7027 3 7027 25 7028 41 7029 2 7030 3 7031 11 7032 3 7033 19 7033 24 7034 3 7034 16 7035 3 7035 16 7036 2 7036 3 7036 16 7037 3 7037 16 7038 3 7038 16 7039 3 7039 16 7040 3 7040 16 7041 3 7041 16 7042 14 7043 1 7044 7 7044 14 7044 13 7044 16 7044 10 7045 7 7045 13 7045 16 7045 10 7046 1 7046 3 7046 7 7046 4 7046 39 7047 3 7047 25 7047 14 7047 24 7047 5 7047 34 7048 25 7050 3 7050 24 7050 5 7051 1 7051 2 7051 7 7051 4 7051 5 7051 21 7052 41 7053 1 7053 3 7053 24 7053 5 7053 23 7054 2 7054 3 7054 4 7054 11 7054 8 7054 14 7055 11 7055 40 7056 41 7057 1 7057 14 7057 24 7057 5 7058 13 7059 2 7059 3 7059 7 7059 4 7059 5 7060 41 7061 3 7061 27 7062 3 7062 27 7063 3 7063 27 7064 11 7065 3 7065 6 7066 1 7066 4 7066 11 7066 9 7067 4 7067 30 7067 5 7067 6 7067 28 7068 35 7069 3 7069 14 7069 24 7070 1 7070 5 7071 3 7071 16 7072 11 7072 41 7072 9 7073 14 7073 34 7075 1 7075 3 7075 36 7075 10 7076 40 7077 36 7077 24 7078 1 7078 7 7078 4 7078 11 7078 20 7079 3 7079 36 7080 2 7080 3 7080 11 7080 40 7081 1 7081 3 7081 40 7082 1 7082 7 7082 4 7082 19 7082 26 7082 16 7082 9 7083 1 7083 2 7083 3 7085 41 7085 34 7086 41 7087 24 7087 28 7088 4 7088 27 7088 14 7089 1 7089 3 7089 25 7089 24 7090 3 7090 4 7090 16 7091 4 7091 11 7091 27 7092 4 7093 7 7093 19 7093 14 7093 24 7093 9 7094 3 7094 25 7094 14 7094 34 7095 41 7096 41 8638 20 7098 27 7099 3 7099 14 7099 24 7099 16 7100 11 7100 14 7101 11 7102 1 7102 5 7103 14 7104 2 7105 40 7106 2 7106 7 7106 24 7106 23 7106 9 7107 3 7107 14 7107 24 7107 16 7108 1 7108 5 7109 14 7109 24 7110 5 7111 5 7112 2 7112 11 7113 1 7113 5 7113 20 7114 3 7115 3 7117 16 7118 11 7118 35 7120 5 7121 41 7121 34 7122 2 7122 40 7122 23 7123 4 7123 38 7123 13 7124 2 7125 1 7125 9 7126 41 7127 11 7127 8 7127 24 7128 3 7128 16 7129 1 7129 2 7129 11 7130 3 7130 14 7130 9 7131 3 7132 1 7132 3 7132 22 7132 14 7132 24 7133 1 7133 30 7133 5 7134 40 7135 41 7135 34 7136 1 7136 41 7136 9 7137 3 7137 8 7138 3 7138 16 7139 3 7140 1 7140 2 7140 27 7140 32 7141 41 7142 1 7142 3 7142 40 7142 5 7143 3 7143 24 7144 1 7144 5 7144 28 7145 3 7146 11 7146 14 7146 9 7147 3 7147 7 7147 23 7148 3 7148 36 7148 34 7149 41 7150 41 7151 41 7151 34 7152 1 7152 25 7152 11 7153 3 7153 14 7153 24 7154 1 7154 3 7154 30 7155 14 7156 3 7156 16 7157 3 7157 31 7157 11 7157 9 7158 1 7158 2 7159 2 7159 3 7159 7 7159 10 7160 3 7160 4 7160 14 7160 24 7161 3 7162 3 7162 14 7162 24 7163 31 7163 8 7163 14 7164 3 7164 24 7165 1 7165 3 7165 11 7166 1 7166 30 7166 5 7167 7 7167 4 7167 9 7168 3 7168 24 7168 16 7169 3 7169 14 7169 24 7170 5 7170 6 7171 1 7172 4 7172 25 7172 14 7172 24 7173 1 7173 3 7173 11 7173 8 7174 2 7174 11 7174 14 7175 35 7175 16 7176 1 7176 2 7176 22 7176 23 7177 11 7177 27 7177 8 7178 1 7178 2 7178 4 7178 30 7178 5 7179 24 7180 3 7180 14 7181 1 7182 11 7183 3 7184 35 7184 5 7185 1 7185 2 7185 7 7187 3 7187 16 7188 35 7189 3 7189 11 7189 9 7190 3 7190 14 7190 24 7191 1 7191 17 7191 30 7192 41 7192 34 7193 41 7194 41 7195 2 7195 11 7195 8 7196 3 7196 25 7197 2 7197 3 7197 11 7198 4 7199 19 7200 4 7200 16 7201 9 7202 3 7202 4 7202 19 7202 14 7202 20 7203 35 7204 17 7205 40 7205 35 7205 24 7206 2 7206 3 7207 40 7208 40 7208 16 7209 11 7209 14 7210 2 7210 3 7210 11 7211 2 7211 3 7211 11 7212 41 7212 34 7213 1 7213 3 7213 7 7214 40 7215 3 7215 14 7215 34 7215 9 7216 1 7216 25 7217 3 7217 24 7217 13 7219 35 7220 1 7220 2 7220 25 7220 11 7220 36 7221 40 7222 40 7223 11 7224 16 7225 1 7225 30 7225 35 7225 14 7225 5 7226 3 7226 27 7226 36 7227 1 7227 30 7227 28 7228 1 7228 30 7228 28 7229 1 7229 30 7229 28 7231 7 7232 1 7232 5 7233 3 7233 14 7233 24 7234 4 7234 27 7235 35 7236 43 7237 8 7238 11 7239 11 7239 9 7240 1 7240 2 7240 3 7240 11 7240 23 7242 2 7242 3 7242 7 7243 1 7243 11 7243 9 7244 1 7244 3 7244 25 7244 14 7244 24 7245 3 7245 14 7245 24 7246 3 7247 3 7247 25 7247 14 7247 24 7247 5 7249 1 7250 8 7251 41 7252 14 7253 1 7253 3 7253 27 7253 36 7253 32 7253 5 7254 35 7255 16 7256 1 7256 3 7256 25 7256 8 7257 39 7258 3 7258 31 7258 25 7258 14 7258 24 7258 34 7259 35 7260 11 7261 2 7261 3 7261 11 7261 40 7261 8 7262 3 7262 24 7262 13 7263 1 7263 11 7263 38 7264 11 7268 16 7269 25 7269 9 7270 41 7271 41 7271 24 7272 41 7273 40 7274 40 7275 1 7275 25 7275 22 7275 24 7275 23 7275 34 7276 11 7276 40 7277 2 7277 11 7278 30 7278 14 7278 24 7278 5 7279 3 7279 16 7280 14 7280 34 7281 4 7281 27 7281 16 7282 3 7282 25 7282 14 7282 24 7282 34 7283 1 7283 2 7283 31 7283 38 7284 1 7284 11 7284 9 7285 11 7286 1 7286 3 7286 24 7286 23 7286 9 7287 3 7287 35 7287 16 7288 1 7288 38 7291 2 7291 3 7291 40 7292 35 7293 3 7293 24 7294 3 7294 9 7295 3 7295 36 7295 5 7296 3 7296 24 7297 14 7298 3 7298 25 7299 3 7299 16 7300 1 7300 2 7301 2 7301 3 7301 9 7303 1 7303 3 7303 11 7304 11 7305 3 7305 16 7306 3 7306 16 7307 3 7307 35 7307 16 7308 2 7308 3 7311 1 7311 35 7311 5 7312 1 7312 5 7313 13 7314 3 7314 31 7314 14 7315 24 7315 28 7316 11 7316 8 7317 40 7318 7 7319 2 7319 40 7320 41 7321 41 7322 41 7323 41 7324 1 7324 30 7325 1 7325 30 7325 24 7325 5 7326 3 7326 40 7327 41 7328 3 7328 22 7329 13 7330 3 7330 14 7330 24 7331 3 7331 25 7331 14 7331 34 7333 9 7334 3 7334 35 7334 14 7334 24 7335 14 7335 24 7336 3 7336 40 7337 1 7337 11 7337 27 7337 22 7338 3 7338 24 7339 2 7339 3 7339 11 7339 40 7340 2 7340 3 7340 11 7340 40 7341 3 7341 40 7342 3 7342 9 7343 1 7343 7 7343 11 7343 39 7343 26 7343 9 7344 2 7345 14 7346 3 7346 40 7347 1 7347 31 7347 9 7348 1 7348 17 7348 3 7348 24 7349 3 7349 36 7349 24 7349 34 7350 27 7351 40 7351 35 7351 24 7352 3 7352 16 7353 38 7353 24 7353 16 7354 13 7355 3 7355 4 7355 14 7355 24 7355 16 7355 9 7356 9 7357 11 7358 7 7358 11 7359 3 7359 24 7359 23 7359 9 7360 1 7360 2 7360 11 7361 14 7362 2 7362 11 7362 27 7363 11 7363 5 7364 1 7364 7 7364 11 7364 5 7365 2 7365 30 7365 5 7366 1 7366 11 7366 5 7366 23 7367 13 7368 41 7368 9 7371 41 7371 19 7371 9 7372 3 7373 11 7374 27 7375 38 7375 24 7375 16 7376 1 7376 30 7376 5 7377 2 7377 3 7377 11 7378 14 7379 1 7379 3 7379 11 7379 36 7379 5 7379 9 7380 1 7380 3 7380 5 7380 23 7381 1 7381 2 7381 3 7381 40 7381 23 7382 3 7382 16 7383 3 7383 36 7384 41 7385 41 7386 24 7386 28 7387 4 7387 14 7387 24 7387 20 7388 11 7388 27 7389 4 7389 35 7390 1 7390 2 7390 3 7390 11 7390 23 7391 3 7391 31 7391 9 7392 3 7392 24 7393 7 7394 2 7394 5 7395 3 7395 11 7396 2 7398 1 7398 5 7401 14 7401 24 7402 1 7402 3 7402 23 7403 3 7403 5 7404 3 7404 24 7405 3 7405 14 7405 24 7405 16 7406 1 7406 17 7406 5 7407 1 7407 30 7407 5 7407 28 7408 1 7408 2 7408 3 7408 22 7409 3 7410 3 7410 14 7410 24 7411 1 7411 11 7411 14 7412 1 7412 2 7412 25 7412 11 7413 3 7413 16 7414 3 7414 16 7415 3 7415 16 7416 11 7417 1 7417 2 7417 11 7417 8 7418 2 7418 3 7418 40 7418 5 7419 3 7419 7 7420 3 7420 24 7421 14 7421 24 7422 1 7422 5 7422 23 7423 3 7424 3 7424 30 7425 3 7425 16 7426 11 7426 40 7426 8 7427 4 7427 28 7428 3 7428 24 11498 25 7429 40 7429 8 7430 11 7430 9 7431 3 7431 25 7431 24 7432 4 7432 27 7432 16 7433 4 7433 27 7433 40 7433 16 7434 1 7434 2 7434 3 7434 11 7434 23 7435 41 7436 41 7437 41 7438 2 7438 3 7438 11 7439 2 7439 3 7439 11 7439 40 7439 16 7440 13 7441 30 7442 1 7442 4 7442 11 7442 23 7443 35 7444 36 7444 24 7445 2 7446 31 7446 9 7447 3 7447 4 7447 24 7447 13 7448 2 7448 11 7449 5 7450 3 7450 36 7450 24 7451 14 7452 3 7452 16 7453 1 7453 3 7453 31 7453 24 7453 9 7454 13 7455 30 7455 5 7456 2 7456 11 7457 1 7457 30 7457 5 7458 1 7458 30 7458 5 7459 1 7459 30 7459 5 7460 1 7460 30 7460 5 7461 1 7461 30 7461 5 7462 1 7462 30 7462 5 7463 40 7464 13 7465 1 7465 11 7465 38 7466 1 7466 11 7466 38 7467 2 7467 11 7467 14 7468 1 7468 2 7468 3 7468 11 7468 30 7468 5 7469 1 7469 7 7469 19 7469 20 7470 19 7470 36 7470 9 7470 21 7471 3 7471 19 7472 19 7473 3 7473 14 7474 3 7474 19 7475 1 7475 5 7476 1 7476 30 7477 3 7477 24 7478 41 7478 24 7479 41 7480 41 7481 3 7481 40 7481 35 7482 1 7482 3 7482 40 7483 13 7484 1 7484 25 7484 8 7484 34 7485 4 7485 27 7485 14 7486 11 7486 27 7487 30 7488 3 7489 2 7489 3 7489 11 7489 40 7490 4 7491 31 7491 40 7491 24 7492 3 7492 25 7492 19 7492 14 7492 9 7493 5 7493 6 7494 7 7494 19 7494 20 7494 21 7495 5 7495 16 7496 3 7496 14 7496 34 7496 9 7497 3 7497 24 7498 3 7498 11 7499 1 7499 2 7499 3 7499 22 7500 3 7500 16 7501 3 7501 24 7501 16 7502 11 7503 3 7503 40 7503 24 7504 3 7504 24 7505 1 7505 9 7506 1 7506 5 7506 6 7507 2 7507 4 7507 28 7508 1 7508 2 7508 23 7509 1 7509 2 7509 11 7509 40 7510 1 7510 9 7510 20 7511 1 7511 10 7512 4 7513 2 7513 40 7513 6 7514 1 7514 2 7515 14 7516 1 7516 2 7516 30 7516 5 7517 1 7517 30 7518 1 7518 2 7518 30 7519 1 7519 30 7519 6 7520 1 7520 5 7521 1 7521 30 7521 6 7522 1 7522 2 7522 40 7522 30 7523 1 7523 2 7523 30 7524 1 7524 40 7525 1 7525 30 7526 1 7526 30 7527 1 7527 2 7527 31 7527 40 7527 23 7528 1 7528 2 7528 5 7528 6 7528 23 7529 1 7529 4 7530 1 7530 2 7530 6 7531 2 7531 27 7531 40 7532 1 7532 2 7532 40 7532 5 7532 6 7533 1 7533 40 7533 23 7534 1 7534 5 7534 6 7535 13 7536 1 7536 30 7537 1 7537 2 7537 40 7537 5 7537 6 7538 1 7538 2 7538 30 7539 1 7539 2 7539 30 7540 2 7540 40 7541 3 7541 14 11498 19 11498 20 7542 14 7542 24 7543 1 7543 22 7543 23 7544 3 7544 31 7544 11 7544 9 7545 3 7545 24 7545 13 7546 1 7546 9 7547 3 7548 3 7549 3 7549 16 7550 3 7551 41 7552 24 7552 13 7553 3 7553 24 7553 16 7554 3 7554 11 11498 5 11498 9 11528 38 11578 3 7556 3 7556 24 7557 3 7558 25 7558 14 7559 3 7560 3 7560 25 7561 3 7561 36 7561 14 7561 34 7562 3 7562 11 7562 40 7563 3 7563 25 7564 1 7564 30 7564 5 7565 3 7565 11 7565 40 7565 23 7566 3 7566 11 7566 40 7566 23 7568 4 7568 41 7568 24 7568 20 7569 4 7569 35 7569 14 7569 24 7570 1 7570 2 7570 5 7571 3 7573 3 7573 14 7573 9 7574 3 7574 9 7575 4 7575 30 7575 5 7576 3 7576 24 7576 16 7577 40 7578 2 7578 40 7579 2 7579 40 7580 13 7581 13 7582 40 7582 13 7583 40 7583 13 7584 16 7585 3 7585 25 7585 40 7586 2 7586 3 7586 11 7587 4 7587 27 7587 28 7589 30 7590 2 7590 3 7590 30 7594 3 7594 24 7596 3 7596 25 7596 24 7597 3 7597 16 7598 3 7598 16 7599 3 7599 16 7600 2 7600 30 7600 5 7601 2 7601 5 7602 30 7602 5 7602 10 7602 20 7603 2 7603 11 7604 2 7605 40 7606 3 7607 3 7607 40 7608 3 7608 40 7609 4 7609 27 7610 3 7610 40 7611 2 7611 4 7612 2 7612 4 7613 4 7613 11 7613 40 7614 3 7616 35 7618 35 7619 41 7620 3 7620 24 7620 13 7622 2 7623 3 7623 7 7623 23 7624 5 7627 4 7628 1 7628 3 7628 11 7628 38 7630 4 7630 38 7635 4 7635 13 7636 13 7637 13 7638 13 7640 13 7644 11 7640 40 7638 40 7629 1 7629 35 7629 5 7627 1 7627 30 7627 24 7627 9 7627 28 7624 1 7624 4 7624 6 7622 11 7622 8 7621 3 7621 40 7616 9 7592 1 7591 2 7591 4 7591 11 7588 4 7487 1 7421 25 7367 3 7367 25 7367 24 7314 11 7278 3 7241 1 7241 3 7241 27 7241 36 7241 32 7241 5 7116 38 7116 20 7115 2 7115 11 7115 8 7115 24 7082 24 7032 35 6986 24 6986 9 7646 36 7647 3 5297 40 7648 3 7648 16 3773 20 3534 1 3534 2 7649 3 7201 3 7650 8 7651 3 7653 22 7654 3 12 4 170 24 174 25 174 24 174 5 199 2 201 25 214 9 343 25 370 34 388 25 388 10 395 14 591 24 597 25 597 34 605 20 711 25 711 34 831 9 1088 4 1098 1 1387 34 1415 5 1523 16 1543 11 1616 25 1759 3 1759 25 1759 16 1899 31 1899 11 1962 16 2035 27 2631 7 2634 4 2634 5 2713 20 2719 2 2915 2 2915 36 3113 28 3170 9 3201 2 3201 7 3249 4 3305 10 3485 25 3485 24 3485 16 3541 27 3546 4 3784 9 3901 34 3919 26 3960 3 3960 25 3960 16 3983 8 4296 4 4363 14 4429 27 4432 3 4474 25 4534 16 4604 4 4630 27 4696 7 4789 3 4789 7 4789 14 4860 1 4860 40 5042 34 5045 24 5045 34 5134 24 5181 27 5323 14 5324 3 5329 25 5329 34 5507 11 5507 9 5518 5 5568 5 5710 16 5853 4 5869 14 5980 4 5981 9 5992 36 6008 25 6008 14 6019 24 6023 37 6023 23 6065 16 6109 20 6169 4 6203 24 6272 11 6272 24 6347 11 6347 34 6439 14 6452 11 6591 23 6594 37 6594 42 6667 24 6667 9 6682 24 6687 11 6687 40 6692 25 6692 35 6701 3 6701 16 6702 25 6711 16 6729 3 6774 36 6779 40 6779 30 6787 14 6787 16 6887 19 6926 8 6937 11 7000 10 7132 23 7160 16 7162 34 7180 25 7190 34 7203 24 7203 16 7240 4 7245 4 7313 3 7313 24 7401 3 7401 16 7483 40 7552 3 7570 23 7614 16 7626 3 7626 27 7626 36 7636 40 7637 40 7655 3 7655 24 7655 16 7656 3 7656 25 7656 14 7656 9 7657 3 7657 27 7657 14 7658 1 7658 11 7658 9 7658 21 7659 4 7659 14 7659 16 7659 9 7660 4 7660 14 7660 16 7660 9 7661 5 7661 16 7662 3 7662 25 7662 14 7662 34 7663 3 7663 4 7663 14 7663 24 7663 37 7663 16 7664 13 7665 3 7665 25 7665 11 7665 36 7666 1 7666 19 7666 22 7667 1 7667 19 7668 35 7668 5 7668 28 7669 3 7669 16 7670 8 7671 24 7671 28 7672 4 7672 14 7672 16 7673 3 7673 9 7675 3 7675 11 7676 24 7677 3 7677 36 7677 16 7678 1 7678 3 7678 4 7678 8 7679 1 7679 11 7679 9 7680 1 7680 27 7680 28 7681 2 7681 5 7682 4 7682 5 7683 4 7684 1 7684 2 7684 11 7685 3 7685 14 7685 16 7686 1 7687 3 7687 24 7687 16 7688 8 7689 1 7689 4 7689 30 7689 5 7689 28 7690 3 7690 16 7691 34 7692 1 7692 2 7692 3 7692 11 7692 8 7693 3 7693 4 7693 13 7694 1 7694 4 7694 11 7694 23 7695 3 7695 24 7696 1 7696 2 7696 11 7697 4 7697 14 7697 16 7698 1 7698 30 7699 3 7699 24 7699 13 7700 3 7700 4 7700 13 11499 3 7704 3 7704 4 7704 14 7704 24 7705 3 7705 4 7705 14 7705 24 7705 16 7706 23 7707 26 7708 3 7708 14 7710 1 7710 3 7710 4 7710 25 7710 22 7710 14 7710 5 7710 34 7711 3 7711 24 7711 16 7712 1 7712 24 7713 8 7714 16 7714 9 7715 1 7715 25 7715 11 7715 24 7715 26 7715 9 7617 1 7617 25 7617 11 7617 24 5974 2 5974 40 7717 14 7718 3 7718 24 7718 13 7719 1 7719 3 7719 11 7720 27 7721 3 7721 9 7716 1 7716 2 7716 7 7716 4 7716 11 7716 5 7722 1 7722 11 7723 7 7724 3 7724 31 7724 26 7724 9 7725 3 7725 11 7725 14 7726 1 7726 2 7726 3 7726 5 7726 6 7727 1 7727 30 7727 5 7729 3 7729 13 7730 2 7730 4 7730 11 7730 19 7730 26 7730 9 7731 41 7728 1 7728 31 7728 9 7732 1 7732 3 7732 11 7733 1 7733 3 7733 30 7733 5 7733 34 7734 16 7736 1 7736 3 7736 10 7737 4 7737 14 7737 24 7738 11 7739 5 7740 11 7741 21 7742 13 7744 1 7744 27 7744 22 7744 32 7746 2 7746 31 7746 9 7747 4 7747 11 7747 16 7747 9 7748 3 7748 14 7748 24 7749 1 7749 31 7749 11 7749 19 7749 14 7750 3 7751 30 7751 5 7752 3 7752 36 7752 5 7753 7 7753 4 7753 14 7753 26 7753 9 7754 1 7754 31 7754 4 7754 19 7754 26 7757 3 7757 8 7758 3 7758 25 7758 8 7758 24 7760 11 7760 8 7760 24 7761 3 7761 24 7762 1 7762 2 7762 25 7762 11 7763 3 7763 4 7763 16 7763 9 7764 3 7764 16 7765 13 7765 23 7766 16 7767 39 7768 1 7768 2 7768 30 7768 5 7768 6 7768 28 7769 1 7769 5 7770 2 7770 4 7770 14 7771 1 7771 9 7772 3 7773 3 7773 4 7773 14 7773 24 7773 16 7775 3 7775 8 7775 14 7775 9 7776 1 7776 11 7776 23 7777 1 7777 3 7778 3 7779 14 7779 24 7780 3 7780 8 7780 14 7780 9 7781 30 7781 5 7782 3 7782 14 7782 24 7783 1 7783 3 7783 19 7783 26 7783 9 7784 3 7784 8 7784 14 7784 9 7786 2 7786 3 7786 25 7786 11 7786 8 7786 9 7787 41 7788 41 7789 2 7789 11 7789 40 7790 2 7790 3 7790 40 7792 11 7792 40 7793 40 7794 16 7796 24 7796 13 7798 35 7799 41 7795 38 7797 40 7800 24 7800 13 7801 4 7802 25 7802 36 7803 2 7804 3 7804 16 7805 4 7805 27 7807 3 7807 4 7807 25 7807 14 7808 3 7808 5 7809 3 7809 24 7810 11 7810 8 7811 24 7811 28 7812 41 7813 41 11499 11 11499 41 11499 9 7815 4 7815 14 7815 37 7815 16 7816 4 7816 14 7816 24 7816 37 7817 3 7110 24 7818 1 7818 25 7819 3 7820 3 7820 36 7820 16 7821 3 7821 14 7822 3 7822 16 7823 3 7823 35 7823 16 7824 3 7824 35 7824 16 7825 3 7825 14 7825 24 7826 11 7826 40 7826 5 7827 2 7827 3 7827 40 7827 5 7828 2 7828 11 7828 14 7829 3 7829 11 7829 9 7832 3 7830 3 7833 41 7338 16 7233 9 7278 34 7330 30 7449 1 7449 30 7644 3 7834 3 7834 8 7835 1 7837 11 7838 1 7838 4 7838 11 7838 23 7839 30 7839 14 7839 24 7839 5 7840 19 7840 9 7841 3 7841 25 7841 14 7844 1 7844 24 7844 42 7845 4 7845 11 7845 19 7845 20 7846 3 7846 14 7846 24 7847 25 7332 11 7332 8 7849 14 7849 24 7849 13 7850 2 7850 3 7850 11 7850 40 7851 16 7852 30 7856 30 7856 5 7856 10 7856 20 7857 11 7857 40 7857 8 7858 3 7858 11 7858 8 7859 3 7859 14 7859 24 7860 3 7860 24 7860 16 7861 1 7861 3 7861 25 7861 11 7861 8 7861 9 7862 2 7862 3 7862 11 7862 8 7862 24 7863 1 7863 5 7863 10 7863 21 7864 3 7864 30 7864 14 7864 24 7864 5 7867 41 7868 1 7868 2 7868 30 7868 5 7869 1 7869 2 7869 4 7869 5 7870 1 7870 11 7870 9 7871 35 7871 24 7871 16 7774 35 7774 16 7872 1 7872 30 7872 5 7873 3 7449 14 7449 4 7449 2 7487 14 7487 5 7487 4 7446 2 7446 1 7874 1 7874 11 7874 30 7875 3 7876 30 7876 16 7879 1 7879 11 7879 8 7880 2 7880 3 7880 25 7880 11 7880 9 7855 13 7882 11 7882 8 7882 1 7881 2 7881 1 7886 3 7886 16 7888 3 7888 36 7887 1 7887 3 7887 4 7887 14 7887 24 7887 13 7889 1 7889 4 7889 11 7889 23 7890 5 7892 3 7892 16 4659 5 4659 1 7893 16 7894 1 7894 2 7894 3 7894 4 7894 11 7894 23 7895 2 7895 3 7895 11 7895 40 7358 9 7896 3 7896 14 7896 5 359 9 4604 24 7515 16 7515 4 7897 41 7898 11 7898 8 7898 1 7899 3 7899 14 7899 24 7899 34 7900 3 7900 24 7901 3 7901 31 7901 11 7901 9 7902 2 7902 3 7902 11 7902 40 7903 13 7904 24 7904 28 7905 1 7905 9 7906 17 11499 43 7114 32 7114 27 7114 4 7114 1 7908 1 7908 2 7908 23 7909 1 7909 3 7909 30 7909 5 7909 34 7910 3 7910 5 7910 6 7911 35 7911 16 7912 24 7912 16 7913 3 7913 13 7914 2 7915 1 7915 30 7915 35 7915 36 7915 5 7370 14 7370 11 7370 4 7916 41 7917 3 7917 25 7917 32 7917 24 2039 7 7918 1 7918 30 7918 5 7919 1 7919 3 7919 30 7921 38 7921 11 7921 3 7921 1 7922 2 7922 3 7923 2 7923 3 7924 1 7924 13 7925 1 7925 40 7925 30 7926 23 7926 22 7926 11 7926 4 7926 3 7926 2 7926 1 7927 23 7927 22 7927 3 7927 2 7927 1 7927 4 7928 40 7928 3 7928 1 7926 44 7927 44 7928 44 7928 23 7929 44 7929 11 7929 2 7929 1 7927 11 7930 44 7930 11 7930 4 7930 2 7930 1 7931 44 7931 11 7931 3 7931 2 7931 1 7931 40 7936 44 7936 23 7936 22 7936 11 7936 4 7936 3 7936 2 7936 1 7937 44 7937 11 7937 4 7937 3 7937 2 7937 1 7937 23 7937 22 7938 44 7938 23 7938 22 7938 11 7938 4 7938 3 7938 2 7938 1 7939 44 7939 40 7939 32 7939 22 7939 11 7939 8 7939 5 7939 4 7939 2 7939 1 7940 44 7940 10 7940 7 7940 5 7940 1 7941 44 7941 10 7941 7 7941 5 7941 1 7942 44 7942 10 7942 7 7942 5 7942 1 7944 44 7944 40 7944 23 7944 3 7944 1 7945 44 7945 30 7945 5 7945 2 7946 44 7946 30 7946 5 7946 1 7947 44 7947 30 7947 5 7947 1 7948 44 7948 30 7948 5 7948 1 7949 44 7949 30 7949 5 7949 1 7950 44 7950 36 7950 3 7950 1 6439 24 7953 44 7953 40 7953 11 7953 3 7953 2 7953 1 7954 44 7954 23 7954 7 7954 5 7954 2 7954 1 7956 44 7956 30 7956 3 7956 1 7958 44 7958 36 7958 3 7959 44 7959 22 7959 11 7959 8 7959 5 7959 4 7959 3 7959 2 7959 1 7960 44 7960 23 7960 21 7960 7 7960 5 7960 2 7960 1 1090 13 7961 44 7961 14 7961 5 7961 4 7961 3 7961 2 7962 3 7962 24 7921 44 7963 16 7964 1 7964 4 7964 30 7964 5 7964 28 7965 35 6711 4 7966 2 7966 1 3919 3 6546 26 6546 20 6546 14 7294 25 7294 20 7294 14 7294 4 11500 41 6599 25 6599 1 7295 14 7295 11 7295 1 6599 11 7295 25 5978 3 5978 2 6477 25 6590 38 6590 4 6590 3 7967 41 7968 3 7968 16 7969 3 7970 17 7971 1 7971 30 7971 5 7971 6 7971 28 7972 40 7972 35 7972 24 7973 1 7973 3 7973 9 7974 1 7974 11 7974 9 7975 1 7975 3 7975 22 7975 23 7976 3 7976 40 7978 14 7978 24 7978 42 7978 16 7979 3 7979 11 7979 16 7980 24 7980 13 7980 3 7981 24 7981 28 7982 24 7983 30 7983 5 7983 6 7983 28 7985 44 7985 13 7985 5 7985 3 7985 2 7985 1 7000 21 11500 24 7986 10 7986 5 7986 1 7988 3 7988 14 7988 24 7988 9 7989 7 7989 11 7990 3 7990 40 7991 3 7991 24 7991 16 11529 1 7993 25 7993 24 7993 16 7993 3 7995 44 7995 11 7995 4 7995 2 7995 1 7996 14 7996 11 7996 7 7996 5 7996 4 7997 44 7997 17 7997 5 7997 3 7998 1 7998 22 7998 32 7999 3 7999 5 7999 16 8001 3 8001 24 8002 14 8002 24 8003 1 8003 11 8003 9 8004 3 8004 36 8004 16 8006 31 8006 25 8009 3 8009 11 8009 9 8010 38 8011 3 8011 14 8011 24 8019 3 8019 4 8019 24 8020 3 8020 16 8021 3 8021 16 8022 44 8022 13 8022 1 8023 44 8023 5 8023 2 8023 1 7893 3 8025 1 8025 3 8025 10 8025 21 8026 16 8026 3 8027 16 8029 14 8029 11 8029 3 8030 38 8036 44 8036 30 8036 28 8036 5 8036 1 8037 43 8037 41 8040 4 8040 14 8040 24 8042 41 8043 41 8044 41 8045 41 8046 41 8047 41 8048 41 8049 41 8050 1 8050 11 8050 9 8052 1 8052 7 8052 5 8053 8 8053 14 8053 24 8053 5 8053 9 8054 4 8054 11 8054 16 8054 9 8055 35 7712 23 7712 3 7874 5 8060 3 8060 14 7836 5 7836 2 7836 1 8061 24 8061 3 8062 3 8062 25 8062 24 8062 9 7573 26 7573 4 8063 1 8063 2 7511 36 7511 3 6812 34 7725 25 8071 1 8071 3 8071 11 8071 5 8073 25 8073 24 8073 11 8073 1 8075 25 8075 24 8075 3 8077 44 8077 23 8077 22 8077 11 8077 4 8077 3 8077 2 8077 1 8078 24 8078 13 8078 3 8057 38 8057 23 7835 4 7835 3 8080 2 8080 11 8080 14 8081 35 8081 5 8082 1 8082 11 8083 3 8083 16 8085 4 8086 3 8087 41 8088 16 8088 9 8089 41 8090 5 8090 23 8091 11 11529 3 8092 16 8093 14 8093 24 8093 13 8094 3 8094 14 8094 24 8094 16 8095 3 8095 16 8096 24 8099 3 8099 16 8100 11 8101 25 8101 35 8101 14 8101 24 8102 11 11529 25 8105 9 8106 20 8107 2 8108 1 8108 11 8108 9 8111 41 8112 2 8112 7 8112 11 8112 9 8113 2 8113 3 8113 11 8113 40 8114 2 8114 11 8114 8 8114 14 8115 3 8115 30 8115 5 8116 41 8117 41 8118 41 8119 14 8119 24 8120 1 8120 8 8120 5 8120 23 8122 26 8123 4 8123 13 8124 1 8124 2 8124 4 8124 19 8124 5 8039 28 8127 11 8127 5 8638 8 8638 4 8121 1 8121 30 8130 1 8130 3 8130 24 8133 13 8135 3 8135 14 8135 16 8136 1 8136 35 8136 5 8137 1 8137 3 8137 30 8137 5 8137 34 8141 4 8141 13 8138 16 8142 25 8142 14 8142 9 8139 30 8140 16 8143 3 8143 14 8143 24 8143 34 8007 24 8007 16 8007 3 8145 24 8145 16 8145 9 8147 19 8147 5 8149 40 8150 40 8151 1 8151 3 8151 9 8152 1 8152 2 751 9 3579 9 8153 41 8154 3 8154 24 8159 9 8160 11 8160 14 8160 34 8162 3 8162 14 8162 9 8163 3 8165 44 8165 30 8165 1 7573 7 7573 25 8167 44 8167 31 8167 19 8167 1 8168 1 8168 3 8168 25 8169 31 8169 41 8169 9 8170 41 8139 5 8139 1 8171 4 8171 27 7992 3 8172 3 8173 41 8174 1 8174 2 8174 11 8174 38 8174 14 7914 38 7914 11 7914 1 8175 41 5646 7 5646 4 5646 3 8178 4 8178 27 8178 9 8179 1 8179 2 8179 3 8179 7 8179 5 8179 10 8180 2 8180 5 8181 8 8182 30 8182 5 8182 10 8182 20 8183 30 8183 5 8183 10 8183 20 8184 1 8184 22 8184 23 8185 4 8185 14 8185 16 8186 1 8186 7 8186 10 8187 3 8187 24 8187 16 8188 3 8188 14 8188 24 8189 1 8189 11 8189 9 8190 35 8191 1 8191 25 8191 13 8192 3 8192 14 8192 39 8193 3 8193 14 8193 39 8194 1 8194 27 8194 32 8195 2 8195 11 11501 1 8196 3 8197 3 8197 16 8198 3 8198 24 8199 14 8199 24 8200 35 8200 16 8201 16 8204 2 8204 7 8204 11 8204 9 8205 5 8207 41 8208 41 8209 31 8209 11 8209 41 8210 2 8210 3 8210 11 8210 40 8210 8 8211 41 8212 27 8213 41 8214 7 8214 11 8214 5 8214 6 8215 11 8215 5 8215 9 8218 11 8219 11 8219 35 8221 1 8221 11 8221 35 8221 9 8222 16 8223 16 8226 1 8226 30 8228 3 8229 6 8229 16 8231 4 8231 35 8232 4 8232 35 8233 1 8233 30 8233 5 8233 10 8235 3 8236 8 8236 16 8238 3 8238 24 8238 16 8239 27 8240 3 8240 13 8241 1 8241 32 8241 5 8244 3 8245 16 8245 14 6887 20 6887 7 8031 35 8246 3 8246 4 8246 14 8246 24 8246 16 7881 9 8076 30 8076 5 8076 1 8247 3 8057 7 8017 11 8017 9 8017 1 7801 27 8249 3 8249 27 8249 36 8250 1 8250 11 8250 38 8251 9 8252 40 8252 8 8027 14 8027 3 8253 16 8245 44 8254 44 8254 30 8254 1 8255 41 8256 1 8256 3 8256 11 8257 1 8257 11 8257 9 8261 13 8262 13 8263 37 8264 1 8264 2 8264 31 8264 38 8265 24 8265 9 8055 24 8055 16 7704 16 7704 9 8267 3 8269 11 8269 40 8269 8 8270 11 8270 1 7622 38 7622 1 8031 16 8031 3 8000 14 8000 9 8000 5 8000 3 8263 24 8263 3 8271 19 8271 11 8273 13 8274 1 8274 3 8274 4 8274 8 8274 23 8275 3 8275 24 8275 16 8276 41 11501 4 11529 11 11529 34 11529 14 11529 24 11529 5 8278 44 8278 11 8278 2 8278 1 5183 39 8279 2 8280 11 8019 14 8019 16 8019 9 8281 1 8281 11 8281 30 8281 28 8282 38 8282 40 8283 38 8284 1 8284 40 8284 23 8285 38 8285 20 8286 3 8287 35 8288 2 8288 3 8288 11 8288 40 8289 3 8289 24 8289 13 8290 1 8290 38 8290 22 8290 24 8291 19 8291 11 8291 2 8293 38 8293 22 8293 11 8030 11 8030 5 8030 2 8295 3 8295 19 8297 30 8299 44 8299 40 8299 11 8300 44 8300 40 8300 11 8301 44 8301 40 8301 11 8303 24 8303 16 8305 11 8306 3 8306 24 8307 41 8310 7 8312 3 8312 5 8312 6 8313 1 8313 2 8313 11 8313 38 8313 8 8314 1 8314 7 8314 9 8315 29 8316 20 8317 40 8318 19 8319 29 8319 19 8320 11 8320 35 8321 29 8321 38 8321 19 8322 9 8323 40 8323 16 8324 3 8324 11 8324 40 8325 16 8327 1 8327 2 8327 11 8327 40 8328 1 8328 2 8328 11 8328 40 8329 41 8330 3 8330 27 8330 30 8330 16 8330 10 8331 1 8331 5 8331 20 8332 3 8332 11 8333 3 8406 3 8333 9 8334 11 8334 27 8334 14 8335 1 8335 30 8336 3 8336 14 8336 24 8336 9 8268 3 8268 31 8268 11 8268 9 8338 3 8338 31 8338 11 8338 9 8339 1 8339 11 8339 14 8339 9 8340 1 8340 2 8340 3 8340 4 8341 3 8341 8 8342 20 8342 21 8343 3 8343 16 8345 1 8345 30 8345 28 8406 4 8406 14 8406 24 8348 1 8348 3 8348 11 8348 35 8348 14 8348 24 8348 16 8348 9 8348 21 8129 3 8129 5 8203 1 8203 2 8203 3 8203 11 8203 8 8350 5 8350 28 8351 1 8351 2 8351 3 8351 22 8351 23 8352 11 8353 11 8353 40 8353 24 8353 16 8354 40 8354 8 8355 1 8355 19 8355 5 8355 6 8356 1 8356 19 8356 5 8356 6 8357 1 8357 11 8357 5 8357 23 8358 3 8358 5 8358 6 8358 16 8359 19 8359 9 8360 3 8361 4 8361 14 8362 11 8362 40 8363 3 8364 40 8365 3 8365 13 8366 40 8367 3 8367 7 8368 2 8368 3 8368 40 8369 16 8370 3 8370 16 8371 3 8371 16 8372 3 8372 36 8373 3 8373 36 8374 3 8374 36 8375 3 8376 1 8376 2 8376 3 8376 4 8376 30 8376 5 8377 1 8377 3 8377 40 8378 3 8378 40 8379 9 8380 8 8381 1 8381 3 8381 11 7768 11 7768 9 7987 1 7987 30 7987 5 8008 1 8008 2 8008 3 8008 11 8008 14 8148 3 8148 25 8148 34 8148 16 7706 1 7706 3 7706 5 7706 9 8155 1 8383 3 8383 24 8384 13 8146 1 8146 27 8146 30 8386 3 8386 14 8386 16 8387 41 8388 41 8389 41 8390 3 8390 16 8258 2 8258 11 8258 14 7782 25 8391 1 8391 30 8391 5 8391 6 8012 35 8012 24 8393 35 8163 25 8163 30 7877 3 7877 25 7877 11 7877 24 8126 1 8126 11 8126 38 8394 3 8394 27 8096 3 8096 16 8011 34 8395 38 8151 25 8396 40 8396 8 8032 3 8032 7 8032 14 8032 9 8397 3 8397 36 8397 23 8398 40 8398 13 8399 14 8399 34 8400 3 8401 30 8401 1 8402 24 8402 14 8402 3 8403 35 8403 24 8403 14 8403 4 8404 35 7855 3 7855 4 8405 3 8405 35 8405 16 8407 16 8407 14 8407 5 8407 4 8407 3 8408 44 8408 30 8408 2 8408 1 7882 9 8409 1 8409 31 8410 24 8410 16 8410 3 8412 3 8412 16 8414 3 7864 34 7978 3 8415 3 8416 1 8416 4 8416 5 8416 6 8416 28 8417 11 8417 40 8417 8 8418 3 8418 25 8418 14 8418 24 8419 1 8419 2 8419 30 8419 5 8297 1 8297 5 8422 1 8422 9 8424 2 8424 5 8425 2 8425 3 8425 11 8425 40 8426 3 8429 1 8429 2 8429 11 8429 8 8430 4 8431 3 8431 24 8431 16 8432 1 8432 3 6999 24 6999 7 6999 4 8433 35 8434 4 8434 16 8435 35 8435 5 8436 41 8437 25 8438 2 8439 1 8439 31 8440 11 8440 35 8638 11 56 28 57 28 1725 28 8442 1 8442 5 8442 13 8444 41 8445 11 8446 11 8446 27 8446 40 8447 2 8447 3 8447 11 8447 40 8448 3 8448 16 8449 35 8449 9 8450 41 8450 9 8451 3 8451 36 8451 14 8451 34 8452 14 8452 11 8452 9 8452 8 8452 3 8453 31 8453 11 8453 41 8453 9 8454 41 8455 41 8456 41 8270 2 7734 3 8105 4 8457 41 8458 2 8458 7 8458 24 8458 5 8458 23 8458 9 8459 3 8459 11 8460 41 8271 1 8271 7 8271 4 8271 9 8271 20 8461 3 8461 9 8462 24 8462 16 8463 4 8463 5 8463 6 8464 1 8464 9 8464 21 8465 29 8466 3 8466 14 8467 25 8468 38 8469 3 8469 14 8469 24 8469 37 8470 1 8470 25 8470 22 8471 1 8471 11 8472 2 8472 3 8473 30 8474 2 8474 40 8475 1 8475 22 8475 23 8476 1 8476 23 8477 3 7124 1 7124 11 7124 9 8478 3 8478 14 8478 24 8479 16 8480 41 8481 14 8481 24 8482 17 7715 34 8483 27 8484 3 8484 25 8484 36 8485 41 8486 41 8487 41 8488 14 8488 24 8488 16 8490 3 8490 14 8491 3 8491 14 8492 3 8492 24 8492 37 8492 16 8493 3 8493 24 8157 3 8157 4 8157 25 8157 14 8157 24 8157 16 6646 28 6646 6 6646 4 6646 1 2885 30 8494 3 8494 14 8494 24 7675 16 7675 4 8495 3 8496 11 8496 40 8497 11 8497 40 8498 3 8498 16 8499 40 8499 35 8500 4 8500 27 8500 40 8500 16 8502 14 8502 24 8506 11 8508 4 8501 2 11530 46 8501 11 8501 19 8501 8 8501 9 8503 35 8504 3 8504 36 8505 1 8505 2 8505 30 8505 5 8505 28 8505 10 8507 3 8507 4 8509 4 8509 13 8510 11 8510 35 7664 16 8511 14 8511 24 8511 16 8512 3 8512 14 8512 24 115 20 8514 1 8514 3 8514 31 8514 25 8514 14 8514 24 8514 34 8515 16 2918 29 2918 20 2918 4 8516 27 8516 40 8517 3 8518 3 8028 3 8028 16 7844 37 8519 2 8519 7 8519 11 8519 9 8520 3 8520 36 8521 16 8272 1 8272 27 8272 22 8272 32 8272 23 8003 3 8003 8 8523 3 8523 7 8523 23 8524 3 8524 24 8524 13 8525 3 8525 25 8525 34 8525 16 8526 3 8526 25 8526 37 3837 31 8527 3 8527 16 8528 24 8528 16 8529 14 8529 16 8530 2 8530 11 8531 35 8531 24 8531 16 8532 3 8532 40 8533 35 6836 16 6836 3 8534 25 8534 11 8534 38 5838 31 8299 8 8300 31 8300 8 8301 8 8273 16 8535 3 8536 3 8536 14 8536 24 8536 16 8537 2 8537 11 8537 22 8538 41 8539 41 8539 24 8540 41 8541 3 8541 30 8541 36 8542 3 8542 24 8543 13 8543 23 8544 35 8545 38 8546 8 8546 16 8546 9 8547 35 8548 3 8548 11 8016 1 8016 3 8016 28 8549 1 8549 11 8550 3 8550 40 8551 3 8552 3 8553 3 8553 40 8553 16 8554 3 8554 11 8554 40 8555 40 8555 35 8555 16 8556 3 8557 11 8344 3 8344 16 8558 27 3874 28 8559 35 7878 1 7878 3 7878 25 7878 11 7878 14 7878 24 7878 34 7878 9 8560 1 3837 14 8560 11 8560 22 3837 11 8561 2 8561 11 8561 40 8562 3 8562 25 8562 30 8563 3 8564 3 8565 24 8566 3 8566 40 8566 5 8567 3 8567 25 8567 14 8567 24 8568 40 8569 3 8569 24 8570 3 8570 1 8571 21 8571 16 8571 11 8571 4 8572 21 8572 11 8573 44 8573 5 8573 4 8573 1 8574 21 8574 10 8574 5 8574 1 8575 3 8575 11 8576 1 8576 4 3837 9 8577 1 8577 2 8577 3 8577 11 8577 14 8578 1 8578 2 8578 3 8578 11 8579 3 8579 25 8557 25 8580 3 8580 5 8581 2 8581 7 8581 11 8581 9 8582 3 8583 1 8583 3 8583 28 8584 30 8584 5 8585 3 8585 11 8585 40 8585 26 8585 9 8592 3 8592 30 8592 5 8593 29 8593 19 8593 35 8596 3 8596 27 8598 3 8598 16 8599 3 8599 8 8601 11 8602 35 8602 14 8586 3 8589 3 8589 38 8589 40 8591 4 8591 30 8591 28 8587 3 8588 3 8588 24 8594 3 8594 25 8594 24 8594 13 8590 3 8590 38 3837 8 8595 3 8595 9 8597 1 8597 3 8597 11 8600 3 8600 11 8600 8 8603 1 8603 30 8603 5 8604 1 8604 4 8604 5 8604 6 8604 28 8605 35 8606 41 8607 1 8607 3 8607 8 8607 14 8608 1 8608 3 8608 27 8608 36 8608 32 8608 5 8609 35 8610 1 8610 2 8610 3 8610 11 8610 22 8610 23 8611 1 8611 2 8611 3 8611 22 8611 23 8611 16 8612 35 8614 3 8614 31 8615 3 8615 13 8616 35 8617 2 8617 11 8618 41 8619 1 8619 3 8619 22 8619 24 8620 1 8620 27 8620 22 8621 3 8621 14 8621 24 8621 16 8622 41 8623 41 8624 41 8625 11 8625 35 8626 13 8627 1 8627 3 8627 27 8627 36 8627 32 8627 5 8628 1 8628 5 8628 39 8628 20 8629 3 8630 2 8630 25 8630 11 8630 14 8630 34 7982 20 7982 14 7982 4 8631 1 8631 24 8631 5 8631 6 8631 9 6056 28 8632 24 8633 1 8633 3 8633 28 8634 7 8634 4 8634 5 8259 3 8259 14 8635 3 8635 4 8635 13 8636 2 8637 30 8638 16 8640 1 8640 3 8640 24 8640 9 8641 1 8641 25 8641 14 8641 24 8641 34 8641 9 8642 1 8643 1 8643 19 8643 9 8643 20 8644 7 8644 19 8644 24 8644 16 8644 9 8645 1 8645 3 8645 25 8645 14 8645 24 8645 9 8646 1 8646 2 8646 11 8646 23 8646 26 8646 9 8647 3 8648 1 8648 3 8648 11 8648 14 8649 11 8649 14 8649 24 8650 1 8650 4 8650 11 8650 8 8650 24 8651 3 8651 25 8651 14 8651 24 8651 34 8652 1 8652 25 8652 11 8652 14 8653 1 8653 5 10063 35 10063 4 8655 1 8655 2 8655 31 8655 38 8656 13 8657 4 8657 13 8658 1 8658 25 8658 8 8658 5 8658 28 8659 3 8660 35 8661 3 8662 1 8662 11 8662 24 8662 9 8663 3 8663 16 8664 2 8664 3 8664 7 8665 3 8665 24 8665 13 2166 23 2166 5 8666 11 8667 16 8668 3 8668 24 8669 1 8669 25 8669 14 8669 34 8669 28 8670 1 8670 30 8670 5 8670 6 8671 1 8671 4 8671 11 8671 23 8672 1 8672 4 8672 11 8672 23 8673 1 8673 4 8673 11 8673 23 8674 11 8674 9 8675 1 8675 11 8675 8 8675 9 6466 41 8676 1 8676 2 8676 3 8676 22 8676 23 8677 11 8678 41 8679 4 8680 30 8680 5 8680 6 7589 3 8681 1 8681 5 8682 1 8682 5 8155 25 8683 3 8684 1 8684 2 8684 3 8685 1 8685 22 8686 3 8686 22 8686 36 8687 1 8687 2 8687 8 8688 3 8688 14 8688 24 8688 16 8689 16 8690 11 8690 40 8691 3 8691 27 8692 14 8692 16 8693 7 8694 11 8695 7 8695 19 8695 9 8696 3 8696 7 8696 19 8696 9 8521 35 8697 3 8697 24 8699 1 8699 2 8699 11 8699 9 7697 35 8700 35 8701 35 8702 16 8703 11 8704 35 8705 3 8705 14 8705 24 8705 34 4233 14 5626 14 8706 44 8706 23 8706 22 8706 11 8706 4 8706 3 8706 2 8706 1 8707 44 8707 11 8707 2 8707 1 8708 3 8708 24 8709 41 8710 1 8710 3 8710 11 8710 14 8710 24 8711 1 8711 11 8711 9 8712 3 8712 16 8713 4 8713 19 8713 35 8714 11 8714 35 8715 4 8715 35 8716 3 8716 31 8716 11 8716 14 8716 9 8717 3 8717 13 8718 2 8718 3 8718 11 8719 19 8719 35 8720 35 8721 11 8721 35 8722 35 8723 8 8723 35 8724 1 8724 24 8724 37 8725 3 8725 8 8726 14 8726 34 8727 35 8728 3 8728 4 8728 14 8728 39 8729 11 8729 14 8729 34 8730 3 8730 14 8730 39 8731 8 8731 35 8731 14 8731 9 8732 35 8733 35 8734 1 8734 30 8734 5 8735 11 8735 16 8735 9 8144 3 8144 14 8144 24 8736 4 8736 26 8736 9 8737 5 8737 20 3837 3 8739 1 8739 2 8740 35 8741 3 8741 5 8741 6 8742 35 8743 35 8744 3 8744 7 8744 36 8745 41 8746 41 8747 41 8748 41 8749 24 8749 28 8750 41 8751 41 8752 41 8753 41 8753 34 8754 41 8755 41 8756 41 8757 41 8758 41 8759 3 8759 11 8759 24 8761 3 8761 11 8761 9 8762 3 8762 24 8762 13 8762 16 8763 3 8763 25 8763 14 8763 16 8764 35 8765 3 8766 3 8767 3 8768 35 8768 24 8768 16 8769 3 8770 35 8771 4 8771 35 8771 14 8771 16 8772 35 8773 3 8773 7 8773 23 8774 11 8774 5 8775 1 8775 35 8775 9 8776 1 8776 35 8777 3 8777 35 8777 16 8778 3 8778 27 8779 39 8780 3 8781 1 8781 30 8781 35 8781 6 8782 41 8783 7 8784 30 8784 28 8785 3 8815 4 8815 14 8815 24 8876 35 8877 1 8877 22 8878 3 8878 27 8878 40 8879 3 8786 3 8786 16 8787 1 8787 5 8788 1 8788 5 8789 1 8789 5 8790 2 8790 11 8791 3 8791 24 8792 3 8792 24 8792 13 8793 3 8793 25 8793 5 8794 16 8795 1 8795 3 8795 25 8795 14 8795 24 8795 34 8796 2 8796 4 8796 16 8797 8 8798 3 8798 16 8799 2 8799 11 8799 40 8800 2 8800 11 8800 40 8801 1 8801 30 8802 30 8803 4 8804 3 8804 35 8805 11 8805 8 8806 9 8807 2 8807 3 8807 8 8808 3 8808 24 8808 16 8809 2 8809 11 8810 11 8810 8 8810 14 8811 9 8812 3 8812 16 8260 1 8260 3 8260 5 8813 11 8813 38 8814 35 8817 3 8817 27 8881 3 8881 36 8881 5 8895 14 8895 16 8896 14 8896 24 8896 39 8818 1 8818 5 8818 6 8819 2 8819 11 8819 40 8820 2 8820 11 8820 40 8821 11 8821 40 8822 35 8823 35 8824 1 8824 30 8824 5 8824 6 8825 2 8825 3 8825 40 8825 35 8825 5 8826 2 8826 3 8826 7 8826 10 8827 40 8827 35 8827 26 8828 35 8829 35 8830 35 8831 1 8831 3 8831 25 8831 11 8831 8 8832 35 8833 35 8834 35 8835 35 8836 35 8838 3 8838 24 8838 37 8839 11 8839 35 8840 1 8840 35 8840 5 8841 30 8841 35 8841 5 8842 8 8842 35 8843 35 8844 35 8845 35 8846 3 8847 35 8848 35 8849 1 8849 35 8850 3 8850 16 8850 28 8851 40 8851 35 8852 40 8852 35 8853 3 8854 40 8854 35 8855 35 8855 24 8856 35 8857 3 8857 40 8858 3 8858 40 8859 35 8427 3 8427 40 8427 13 8860 35 8861 11 8861 35 8862 3 8862 11 8863 35 8864 3 8864 16 8865 24 8866 40 8866 35 8867 35 8868 1 8868 35 8869 35 8870 4 8870 35 8870 24 8870 16 8871 35 8872 35 8872 5 8873 35 8874 35 8874 9 8875 35 8880 3 8897 5 8882 3 8883 35 8884 3 8884 40 8885 11 8886 35 8887 35 8888 17 8888 14 8888 5 8889 16 8890 1 8890 9 8891 3 8891 16 8892 1 8892 25 8892 22 8892 24 8892 23 8893 3 8893 30 8893 5 8899 40 8900 3 8900 40 8900 6 8901 2 8901 11 8902 35 8902 16 8903 2 8903 40 8904 40 8904 8 8905 2 8905 40 8906 3 8906 24 8906 13 8907 3 8907 4 8907 25 8907 5 8908 40 8908 16 8909 3 8910 19 8910 9 8911 1 8911 2 8911 11 8912 3 8912 11 8913 5 8915 35 8916 35 8916 9 8917 3 8917 11 8917 40 8918 40 8919 27 8920 2 8921 2 8921 3 8921 11 8921 19 8921 9 8922 1 8922 41 8923 1 8923 3 8923 14 8924 1 8924 31 8924 19 8925 35 8926 3 8926 13 8927 2 8927 11 8928 1 8928 2 8928 3 8928 5 8929 2 8929 30 8929 5 8930 1 8930 30 8930 5 8931 30 8931 5 8931 6 8932 1 8932 3 8932 30 8932 36 8932 5 8933 4 8935 8 8935 30 8935 5 8935 9 8937 30 8937 5 8938 1 8938 30 8938 5 8939 4 8939 30 8939 5 8940 30 8940 5 8941 3 8941 11 8942 19 8943 1 8943 3 8943 11 8944 41 8945 2 8945 11 8945 40 8946 2 8946 3 8946 11 8946 40 8947 11 8947 40 8948 2 8948 3 8948 11 8948 40 8949 1 8949 2 8949 11 3093 28 3093 14 8950 41 8951 3 8951 25 8951 11 8951 27 8951 8 8952 1 8952 2 8952 25 8952 24 5407 24 5407 14 8718 23 8953 3 8953 40 8954 4 8954 27 8954 16 8955 35 8956 4 8956 16 8957 24 8957 16 8958 40 8959 40 8960 40 8961 11 8961 40 8962 40 8963 3 8963 11 8963 40 8964 3 8964 24 8965 2 8966 40 8967 3 8968 4 8968 40 8969 3 8969 9 8970 3 8970 38 8970 36 8971 5 8972 2 8972 4 8973 40 8973 35 8975 3 8976 3 8976 25 8976 36 8978 16 8979 3 8979 27 8980 3 8980 27 8981 3 8982 3 8982 40 8983 2 8983 40 8984 40 8984 16 8985 3 8985 16 8986 13 8987 4 8987 40 8988 11 8988 40 8989 1 8990 1 8991 2 8991 4 8991 16 8992 2 8992 3 8992 11 8992 40 8992 8 8993 11 8993 40 8994 27 8994 14 8995 3 8995 10 8996 3 8997 11 8997 40 8998 11 8998 40 8999 11 8999 40 9000 11 9000 40 9001 40 9002 3 9002 7 9002 40 9003 3 9003 11 9003 40 9004 3 9004 11 9004 40 9004 26 9004 9 9005 3 9005 40 9006 3 9007 16 9008 3 9008 40 9009 4 9009 16 9010 2 9010 11 9010 40 9010 5 9011 2 9011 3 9011 40 9012 3 9012 27 9012 40 9013 11 9013 40 9014 11 9014 40 9015 11 9015 40 9016 3 9017 40 9018 3 9018 11 9019 4 9019 13 9020 3 9021 16 9022 2 9022 3 9022 25 9022 11 9022 8 9022 24 9023 2 9023 3 9023 25 9023 11 9023 8 9023 24 9024 2 9024 7 9024 40 9025 2 9025 4 9025 16 9026 16 9027 2 9027 16 9028 3 9028 7 9028 36 9029 2 9029 11 9029 40 9030 40 9031 40 9032 40 9033 3 9033 35 9033 16 9035 2 9035 4 9035 27 9035 14 9035 16 9036 40 9036 16 9037 1 9037 3 9037 14 9037 24 9038 2 9038 3 9038 11 9038 40 9038 8 9039 2 9039 3 9039 11 9039 40 9039 8 9040 2 9040 3 9040 11 9040 40 9040 8 9042 4 9042 14 9043 2 9043 3 9043 40 9044 35 9045 3 9045 11 9045 40 9046 3 9046 11 9046 40 9046 5 9047 3 9047 11 9047 40 9048 3 9048 11 9048 40 9049 3 9049 11 9049 40 9050 3 9050 11 9050 40 9051 3 9051 11 9051 40 9052 3 9052 11 9052 40 9053 3 9053 11 9053 40 9054 40 9055 2 9055 3 9055 40 9055 5 9057 3 9057 5 9058 1 9058 5 9058 23 9059 4 9060 3 9060 16 9061 2 9061 3 9061 40 9062 3 9062 36 9063 3 9063 14 9063 24 9063 9 9064 3 9065 40 9066 4 9066 20 9066 21 9067 41 9068 41 9068 34 9069 41 9070 41 9071 41 9072 41 9073 2 9073 13 9074 41 9075 41 9076 41 9077 41 9078 41 9079 3 9079 40 9080 11 9080 40 9081 35 9082 16 9083 35 9084 11 9084 40 9084 35 9085 1 9087 41 9088 41 9090 41 9091 41 9091 34 9093 24 9093 26 9094 7 9094 9 9095 1 9095 3 9095 11 9095 8 8468 20 9096 40 9096 35 9096 24 9097 1 9097 11 9097 23 6636 4 6637 4 8325 14 8325 9 8325 4 8133 24 8133 4 8133 3 8459 25 8459 24 8459 8 4800 26 4800 25 4800 3 3919 25 8032 25 6930 23 3421 8 4002 8 9098 1 9098 5 9098 21 9099 11 3837 2 7158 23 7158 3 11530 35 8063 23 8063 3 8739 23 8739 3 8674 1 9100 1 9100 5 9101 1 9101 30 9102 1 9102 11 9102 22 9103 2 9103 5 9104 1 9104 3 9104 8 9104 5 9104 23 9105 35 9106 35 9106 24 9107 35 6663 28 9109 1 9109 30 9109 5 9109 23 9110 3 9110 11 9110 27 9111 1 9111 38 9112 3 9112 27 9112 36 9112 5 9113 2 9113 40 9114 4 9114 16 9115 3 9116 3 9116 19 9116 40 9117 3 9117 19 9117 40 9118 8 9118 35 9119 8 9120 35 9121 3 9122 2 9122 3 9122 7 9123 1 9123 3 9123 5 9124 1 9124 3 11530 8 9124 11 11530 1 11578 20 9124 8 11578 24 11578 16 11578 9 11579 1 11579 19 11579 7 11579 20 9125 4 9125 27 9125 24 9125 16 9126 3 9126 40 9127 2 9127 3 9127 8 9127 14 9128 3 9128 40 9129 3 9129 40 9130 1 9130 31 9130 11 9130 9 9130 28 9131 3 9131 5 9132 3 9132 4 9132 14 9132 24 9132 16 9133 3 9133 36 9133 5 9133 6 9135 2 9135 7 9135 19 9135 9 9136 1 9136 30 9136 5 9137 4 9137 8 9137 20 9137 21 9138 40 9139 40 9140 11 9140 40 9140 28 9141 7 9142 14 9142 24 9142 13 9143 2 9143 40 9144 3 9144 11 9145 4 9145 11 9145 14 9146 40 9147 3 9147 16 9148 2 9148 7 9148 24 9148 5 9148 23 9148 9 9149 4 9150 3 9150 7 9150 23 9151 35 9151 24 9151 16 9152 3 9152 36 9154 3 9154 14 9154 24 9155 29 9156 29 9157 29 9158 29 9159 2 9159 3 9159 19 9159 9 9160 3 9160 5 9160 6 9161 1 9161 30 9162 4 9162 28 9162 21 9163 3 9163 22 9163 36 9164 1 9164 30 9164 5 9164 28 9165 11 9165 40 9166 3 9166 36 9166 23 9167 2 9167 7 9167 4 9167 27 9167 9 9168 3 9169 35 9170 40 9170 16 9171 3 8274 28 501 9 11502 31 11502 41 11502 9 10316 8 10317 2 10317 11 10317 40 10317 5 10318 2 10318 40 10318 35 10319 11 10319 40 10320 40 10320 35 10321 2 10321 40 10321 35 10322 40 10322 35 10323 29 10324 27 10325 40 10325 13 10326 11 10326 40 10327 2 10327 27 10327 40 10327 16 10328 13 10329 40 10330 3 10330 5 10331 35 10332 3 10332 14 10332 24 10332 16 10453 31 10453 14 10453 9 10454 24 10454 26 10454 34 10455 1 10455 2 10455 3 10456 29 10456 35 10457 29 10458 2 10458 3 10458 40 10459 3 10460 29 10461 1 10462 29 10463 35 10464 14 10464 24 10464 16 10468 3 10469 3 10469 16 10470 2 10471 41 10472 3 10472 11 10472 24 10472 9 10473 3 10473 40 10473 24 10473 16 10474 41 10475 40 10475 16 10476 41 10477 41 10477 24 10478 2 10478 11 10478 40 10479 40 10479 13 10480 40 10480 35 10481 1 10481 3 10481 7 10481 10 10482 11 10483 27 10484 27 10484 28 10485 40 10486 3 10487 13 10488 1 10488 22 10489 29 10490 3 10490 14 10491 4 10491 14 10492 29 10493 29 10494 29 10495 4 10496 4 10498 29 10499 29 10500 29 10501 20 10502 3 10503 4 10504 4 10505 29 10506 3 10506 24 10506 13 10507 41 10508 41 10509 29 10510 16 10511 3 10511 5 10512 40 10513 40 10514 27 10514 28 10515 41 10516 41 10517 41 10518 3 10518 36 10519 3 10519 36 10520 3 10520 36 10521 3 10521 16 10522 3 10522 40 10523 3 10523 40 10523 8 10524 3 10524 40 10525 3 10525 40 10525 23 10526 41 10527 3 10528 3 10529 2 10529 40 10530 3 10531 14 10532 35 10532 5 10533 1 10533 3 10533 11 10533 30 10533 14 10533 24 10533 5 10534 2 10534 11 10536 5 10537 4 10538 3 10538 11 10538 40 10539 1 10539 11 10539 27 10539 22 10540 41 10541 41 10542 31 10543 31 10544 40 10549 40 10550 40 10551 40 10552 40 10553 40 10554 40 10555 1 10555 11 10555 27 10555 22 10556 1 10556 11 10556 27 10556 22 10557 1 10557 11 10557 27 10557 22 10558 35 10559 40 10560 40 10561 29 10562 29 10562 35 10563 29 10564 35 10565 29 10567 1 10567 22 9172 1 9172 4 9173 3 9173 16 9174 3 9174 36 9175 35 9175 16 9176 3 9176 25 9176 14 9176 16 8034 1 8034 3 8034 24 8034 13 8428 38 8653 30 6039 25 9178 3 9178 14 9178 34 9179 40 9180 4 9180 25 9181 27 9181 40 9182 27 9182 40 9183 4 9183 16 9184 3 9184 4 9184 27 9186 3 9186 24 9186 16 9187 3 9188 29 9189 3 9190 13 9191 13 9192 27 9192 40 9193 3 9193 4 9193 27 9194 2 9194 11 9194 40 9195 40 9196 4 9196 27 9196 40 9196 32 9197 16 9198 4 9198 16 9199 11 9199 14 9199 9 9200 3 9201 4 9201 16 9202 40 9203 1 9203 27 9204 3 9204 40 9205 3 9205 40 9206 2 9206 3 9206 40 9206 8 9207 3 9207 40 9207 36 9208 3 9208 40 9208 23 9209 3 9209 40 9210 3 9210 40 9211 11 9211 40 9212 35 9212 36 9213 3 9214 2 9214 11 9215 4 9215 27 9215 40 9216 4 9216 40 9217 4 9217 27 9217 40 9218 3 9218 16 9219 2 9219 4 9219 40 9219 9 9220 3 9221 2 9221 40 9222 35 9225 4 9225 40 9226 2 9226 40 9227 14 9227 16 9228 1 9228 2 9228 30 9228 5 9228 23 9229 4 9229 35 9229 24 9230 2 9230 3 9231 4 9233 1 9233 3 9233 11 9234 2 9234 40 9235 35 9236 29 9237 4 9237 24 9238 3 9238 40 9238 5 9239 3 9239 40 9239 5 9240 4 9240 40 9241 4 9241 24 9241 16 9242 2 9242 27 9243 4 9243 27 9243 13 9244 2 9244 40 9244 16 9245 4 9246 11 9246 40 9247 31 9247 4 9247 40 9248 3 9249 3 9249 5 9250 3 9250 16 9250 9 9251 4 9251 13 9252 3 9252 16 9253 3 9253 5 9254 13 9255 4 9255 27 9256 2 9256 3 9256 11 9256 40 9257 4 9257 27 9257 13 9258 2 9258 4 9258 27 9258 14 9259 1 9259 32 9260 13 9261 1 9261 3 9261 5 9262 13 9263 4 9263 27 9263 40 9264 40 9264 16 9265 11 9265 40 9266 3 9266 16 9267 3 9267 16 9268 11 9268 16 9269 2 9269 40 9270 3 9270 40 9270 5 9270 6 9271 3 9271 40 9272 3 9272 40 9272 36 9273 3 9274 9 9275 3 9275 25 9276 17 9276 13 9277 40 9277 35 9278 40 9278 35 9279 40 9279 35 9280 40 9280 35 9281 40 9281 35 9282 40 9282 35 9283 2 9284 4 9284 5 9285 3 9285 13 9286 4 9286 40 9286 24 9287 3 9287 11 9288 4 9288 40 9289 3 9289 24 9290 3 9291 1 9291 2 9291 3 9292 40 9293 4 9293 40 9293 24 9294 4 9294 40 9295 2 9295 3 9296 2 9296 40 9297 3 9297 16 9298 11 9300 3 9300 24 9301 27 9301 40 9302 3 9302 40 9303 40 9304 40 9305 11 9305 40 9306 11 9306 40 9307 11 9307 40 9308 11 9308 40 9309 40 9310 11 9310 40 9311 11 9311 40 9312 11 9312 40 9313 11 9313 40 9314 11 9314 40 9315 11 9315 40 9316 4 9316 40 9317 4 9317 40 9318 3 9318 11 9318 40 9318 35 9319 1 9319 4 9319 28 9320 1 9320 3 9321 2 9321 11 9322 4 9322 40 9323 4 9323 27 9323 16 9325 4 9325 27 9325 40 9326 3 9326 16 9327 2 9327 40 9327 5 9328 4 9328 40 9329 2 9329 4 9329 27 9330 3 9330 11 9330 40 9331 27 9331 40 9332 2 9332 40 9333 3 9333 40 9334 4 9334 40 9335 4 9335 40 9336 3 9336 16 9337 3 9337 16 9338 3 9339 2 9339 11 9340 4 9340 40 9341 3 9341 27 9341 40 9342 3 9342 27 9342 40 9343 4 9343 27 9343 40 9344 4 9344 40 9345 4 9345 27 9345 40 9346 4 9346 27 9347 3 9347 36 9348 3 9349 1 9349 4 9350 4 9350 27 9350 40 9351 2 9351 3 9351 36 9352 16 9353 3 9353 31 9353 4 9353 40 9354 2 9354 4 9355 2 9356 2 9356 40 9357 13 9358 11 9358 40 9359 5 9360 3 9360 36 9360 16 9361 4 9361 27 9362 2 9362 3 9362 40 9363 4 9363 40 9364 11 9364 40 9365 40 9365 9 9366 3 9366 16 9367 11 9367 40 9368 11 9368 40 9369 2 9369 40 9370 13 9371 16 9372 4 9372 40 9373 2 9373 4 9373 16 9374 11 9374 40 9375 2 9375 3 9376 1 9376 4 9377 13 9378 11 9378 40 9379 11 9379 40 9380 13 9381 27 9381 40 9382 4 9382 40 9383 3 9383 24 9383 16 9384 35 9385 3 9386 3 9387 4 9387 27 9388 2 9388 5 9389 4 9389 40 9390 4 9390 40 9391 4 9391 40 9392 3 9392 40 9393 3 9393 25 9393 36 9394 40 9394 35 9395 3 9395 40 9395 16 9396 4 9396 40 9397 4 9397 11 9397 40 9398 1 9398 4 9398 24 9399 40 9400 4 9400 40 9401 4 9401 40 9402 3 9402 40 9402 5 9403 11 9403 40 9404 3 9404 16 9405 3 9405 24 9406 3 9406 40 9407 3 9408 1 9409 4 9409 40 9410 3 9410 24 9410 13 9411 3 9411 16 9412 3 9412 16 9413 4 9413 13 9414 4 9414 13 9415 4 9415 13 9416 4 9416 13 9417 3 9417 36 9418 19 9419 31 9419 11 9420 2 9421 3 9422 11 9422 40 9423 2 9423 3 9423 25 9423 11 9423 8 9423 24 9424 3 9424 8 9425 4 9426 1 9426 40 9427 2 9427 4 9427 27 9427 16 9428 4 9428 27 9429 11 9429 40 9430 11 9430 40 9431 3 9431 16 9432 27 9433 27 9434 4 9434 11 9434 40 9435 3 9436 3 9436 5 9437 4 9437 27 9437 16 9438 4 9438 40 9439 3 9439 29 9439 11 9439 19 9439 35 9439 36 9440 4 9440 27 9440 40 9440 32 9441 2 9441 16 9442 3 9442 24 9443 4 9443 40 9444 4 9444 27 9445 4 9445 40 9446 3 9446 16 9447 3 9447 36 9448 35 9449 4 9449 40 9450 4 9450 40 9451 4 9451 40 9452 4 9452 40 9453 4 9453 40 9454 4 9454 40 9455 4 9455 27 9455 40 9455 32 9456 4 9456 40 9457 4 9457 11 9457 27 9457 40 9457 24 9458 3 9458 11 9458 40 9459 13 9460 4 9460 40 9461 14 9462 1 9462 3 9462 25 9462 36 9463 27 9464 35 9465 3 9466 2 9466 11 9466 40 9467 4 9467 27 9467 40 9468 4 9469 2 9469 11 9469 40 9470 11 9470 40 9471 27 9471 40 9472 31 9472 4 9472 40 9473 4 9473 40 9474 35 9474 16 9475 4 9475 40 9476 1 9476 3 9477 1 9477 3 9478 3 9478 4 9479 1 9479 3 9480 1 9480 3 9481 1 9481 3 9482 1 9482 3 9483 27 9483 40 9484 29 9485 3 9486 11 9486 40 9487 4 9487 40 9488 40 9489 27 9490 4 9490 40 9491 3 9491 40 9491 22 9491 16 9492 3 9492 22 9492 16 9493 1 9493 3 9493 24 9493 16 9494 4 9494 40 9494 14 9495 40 9495 16 9496 40 9496 16 9497 40 9497 16 9498 27 9498 40 9499 3 9499 40 9499 9 9500 4 9501 3 9501 36 9502 1 9502 22 9502 14 9502 24 9503 3 9503 16 9504 3 9504 14 9504 16 9505 3 9506 27 9506 40 9507 27 9507 40 9508 4 9508 40 9509 27 9509 40 9510 3 9510 16 9511 2 9511 3 9511 5 9512 27 9512 40 9513 31 9513 11 9513 40 9514 3 9515 3 9516 3 9517 11 9517 40 9518 40 9519 16 9520 3 9520 40 9521 3 9522 3 9523 40 9524 35 9525 2 9526 1 9526 13 9527 3 9527 14 9528 11 9529 2 9529 3 9530 2 9530 3 9530 11 9530 39 9531 3 9531 40 9531 16 9532 3 9532 16 9533 4 9533 35 9533 14 9533 16 9534 3 9535 4 9535 35 9535 16 9536 4 9536 35 9536 16 9537 4 9537 11 9538 5 9539 11 9539 40 9540 11 9540 40 9541 11 9541 40 9542 3 9542 40 9543 40 9543 35 9544 40 9545 40 9545 5 9546 17 9546 40 9547 17 9547 40 9548 17 9548 40 9549 2 9549 40 9550 40 9550 35 9551 40 9551 35 9552 3 9553 3 9554 29 9555 3 9555 35 9556 4 9556 27 9557 2 9557 3 9557 40 9557 16 9558 16 9559 4 9559 14 9560 2 9560 11 9561 4 9562 4 9562 16 9563 3 9563 24 9563 16 9564 1 9564 27 9565 3 9565 16 9566 40 9567 3 9567 40 9568 3 9568 16 9569 3 9569 24 9570 2 9570 11 9570 27 9571 27 9572 2 9572 5 9573 4 9573 27 9574 4 9574 27 9575 40 9576 3 9577 3 9577 40 9578 40 9579 1 9579 17 9580 1 9580 3 9580 11 9581 3 9581 16 9582 3 9582 16 9583 4 9583 14 9584 40 9585 1 9585 5 9586 4 9586 40 9587 27 9587 40 9588 4 9588 40 9589 16 9590 2 9591 35 9592 4 9592 16 9593 27 9593 40 9594 1 9594 2 9594 32 9595 4 9595 27 9596 13 9597 4 9598 4 9598 40 9599 16 9600 4 9600 16 9601 40 9602 3 9602 11 9602 40 9603 2 9603 11 9603 40 9604 3 9604 11 9604 40 9605 3 9605 11 9605 40 9606 2 9606 11 9606 40 9607 3 9607 11 9607 40 9608 3 9608 11 9608 40 9609 3 9609 11 9609 40 9610 3 9610 11 9610 40 9611 3 9611 11 9611 40 9612 3 9612 11 9612 40 9613 3 9613 11 9613 40 9614 11 9614 40 9614 8 9615 3 9615 11 9615 40 9616 2 9616 11 9616 40 9617 3 9617 11 9617 40 9618 2 9618 11 9618 40 9619 3 9619 11 9619 40 9620 3 9620 11 9620 40 9621 3 9621 11 9621 40 9622 3 9622 11 9622 40 9623 40 9624 3 9624 11 9624 40 9625 3 9625 11 9625 40 9626 3 9626 11 9626 40 9627 2 9627 40 9628 3 9628 11 9628 40 9629 3 9629 11 9629 40 9630 3 9630 11 9630 40 9631 3 9631 11 9631 40 9632 3 9632 11 9632 40 9633 3 9633 11 9633 40 9634 2 9634 4 9634 27 9635 27 9635 28 9636 5 9636 6 9637 2 9637 3 9637 40 9637 5 9638 1 9638 36 9638 5 9638 28 9639 35 9640 2 9640 5 9641 3 9641 40 9641 16 9642 40 9642 35 9643 3 9643 40 9643 23 9644 3 9644 25 9644 38 9645 3 9645 25 9645 11 9645 38 9646 13 9647 3 9647 40 9648 3 9649 4 9649 40 9650 4 9650 40 9654 4 9654 27 9655 29 9656 4 9656 40 9657 27 9657 16 9658 40 9658 35 9659 40 9660 35 9661 1 9661 5 9662 4 9662 27 9662 40 9663 4 9663 27 9663 40 9663 32 9664 4 9664 27 9664 40 9664 6 9665 1 9665 11 9665 8 9666 40 9667 1 9667 3 9668 40 9669 29 9671 2 9671 5 9672 17 9672 3 9672 36 9673 11 9673 27 9673 40 9674 35 9675 19 9676 4 9676 27 9676 40 9676 32 9677 1 9677 2 9677 9 9678 2 9678 4 9678 27 9678 16 9679 3 9679 40 9679 24 9680 3 9681 4 9681 27 9681 35 9681 14 9682 2 9682 3 9682 11 9683 2 9683 40 9684 40 9685 1 9685 3 9685 24 9686 11 9686 40 9687 4 9687 27 9688 3 9688 11 9688 40 9689 5 9690 3 9690 16 9691 3 9691 16 9692 3 9692 40 9693 27 9693 40 9693 32 9694 2 9694 3 9694 40 9695 3 9695 11 9695 40 9696 4 9696 40 9697 4 9697 16 9698 27 9698 19 9699 27 9699 19 9700 40 9701 3 9701 40 9702 2 9702 3 9702 36 9703 40 9703 8 9704 1 9704 28 9705 4 9705 40 9706 2 9706 19 9706 9 9706 20 9707 3 9707 40 9708 1 9708 2 9708 11 9708 38 9709 16 9710 29 9711 17 9712 4 9712 40 9713 4 9713 40 9714 40 9714 13 9715 1 9715 3 9716 4 9716 16 9717 3 9717 27 9717 5 9718 1 9718 11 9718 8 9718 9 11503 40 11503 35 9721 1 9721 30 9721 5 9721 10 9722 1 9722 2 9722 3 9723 1 9723 2 9723 3 9724 11 9724 16 9725 1 9726 1 3053 44 9727 2 9727 5 7451 5 8337 11 7767 14 7767 3 9153 40 9153 35 9728 2 9728 25 9728 11 9728 14 9728 34 8558 4 8558 3 9729 35 1343 35 1343 14 8977 29 9086 29 9731 1 9731 30 9731 5 9732 1 9732 17 9733 3 9733 4 9733 24 9733 13 9734 2 9734 40 9735 30 9736 2 9736 7 9736 11 9736 40 9736 5 9737 4 9737 24 9737 16 9738 13 9739 1 9739 31 9740 1 9740 2 9740 31 9740 11 9741 1 9741 2 9741 5 9741 6 9742 2 9742 5 9742 6 9743 19 9743 9 9744 1 9744 4 9744 5 9745 1 9745 2 9745 22 9746 1 9746 2 9746 27 9747 40 9747 24 9748 27 9748 32 9749 3 9749 36 9749 13 9750 4 9750 27 9751 4 9751 40 9752 13 9753 1 9753 2 9753 4 9753 11 9753 27 9753 8 9754 1 9754 30 9754 5 9755 1 9755 2 9755 11 9755 8 9756 1 9756 2 9756 11 9757 1 9757 2 9757 11 9757 8 9758 3 9758 40 9759 3 9759 40 9760 4 9760 27 9760 13 9761 1 9761 2 9761 5 9762 40 9763 4 9763 27 9764 3 9764 40 9764 24 9764 16 9765 1 9765 2 9766 3 9766 4 9767 2 9767 11 9768 1 9768 2 9768 30 9768 5 9768 6 9769 1 9769 2 9769 5 9770 4 9770 27 9770 40 9771 40 9772 1 9772 4 9773 40 9773 13 9774 1 9774 2 9774 5 9775 38 9775 27 9776 4 9776 27 8601 35 9777 41 2244 6 2244 4 2244 2 8687 28 10057 3 9780 40 9780 3 9781 1 9781 38 9782 3 9782 40 9783 16 9784 1 9784 2 9784 11 9784 38 4522 20 2128 20 9785 31 9785 11 9785 41 9785 9 9786 3 9789 3 9789 14 9789 16 9790 41 9791 41 9792 40 9793 40 9794 4 9794 27 9794 40 9795 40 9795 24 9796 4 9796 11 9796 35 9796 16 9797 3 9797 40 9798 1 9798 22 9798 32 9799 11 9799 40 9800 2 9800 3 9800 31 9800 9 9801 40 9802 41 9803 35 9804 1 9804 40 9805 13 9806 41 9806 24 9806 5 9807 41 9807 5 9808 41 9808 14 9809 4 9810 40 9811 40 9812 13 9813 14 9814 40 9815 35 9816 41 9816 14 9817 3 9817 40 9818 11 9818 8 9819 40 9820 1 9820 2 9820 11 9820 8 9821 2 9821 40 9822 1 9822 3 9822 11 9822 14 9823 3 9823 25 9823 40 9823 36 9824 3 9824 25 9824 40 9824 36 9825 31 9825 19 9825 24 9826 2 9828 2 9828 11 9829 3 9829 36 9829 23 9830 41 9830 14 9831 16 9832 1 9832 3 9832 40 9833 35 9834 2 9834 40 9835 3 10057 27 9835 9 11504 40 11504 35 11531 46 11531 35 9837 3 9837 30 9838 3 9838 35 9839 3 9839 14 9839 24 9839 16 9840 4 9840 40 9841 35 9842 3 9842 40 9843 14 9844 14 9845 11 9845 40 9846 40 9847 11 9847 40 9848 40 9849 40 9850 11 9850 40 9851 40 9852 40 9852 16 9853 40 9854 11 9854 40 9855 11 9855 40 9856 11 9856 40 9857 11 9857 40 9858 11 9858 40 9859 11 9859 40 9860 11 9860 40 9861 3 9861 40 9861 16 9862 3 9862 36 9862 23 9863 3 9863 25 9863 41 9863 34 9864 3 9864 25 9864 41 9865 1 9865 24 9865 13 9866 1 9866 2 9866 5 9867 41 9868 2 9868 3 9868 40 9869 2 9870 3 9870 16 9871 40 9872 4 9872 13 9873 11 9873 40 9874 2 9874 11 9874 40 9875 11 9875 40 9875 13 9876 11 9876 40 9877 11 9877 40 9878 11 9878 40 9879 11 9879 40 9880 11 9880 40 9881 11 9881 40 9882 11 9882 40 9883 11 9883 40 9884 11 9884 40 9885 2 9885 11 9885 40 9886 11 9886 40 9887 40 9888 40 9889 40 9890 11 9890 40 9891 40 9891 16 9892 40 9892 5 9892 20 9893 2 9893 40 9894 2 9894 40 9895 11 9895 40 9895 9 9896 16 9897 16 9898 3 9898 41 9899 27 9900 7 9900 40 9901 1 9901 2 9901 30 9902 3 9902 40 9903 1 9903 2 9903 23 9904 35 9905 35 9906 40 9907 3 9907 11 9907 40 9908 3 9908 16 9909 3 9909 25 9909 41 9909 36 9910 3 9910 25 9910 41 9910 36 9911 3 9911 40 9912 11 9912 40 9913 3 9913 35 9914 3 9914 40 9914 24 9914 16 9914 9 9915 3 9915 16 9916 2 9916 40 9917 2 9917 40 9918 2 9918 40 9919 11 9919 40 9920 41 9921 11 9921 27 9921 40 9922 40 9922 13 9923 40 9924 25 9924 41 9924 16 9925 11 9925 40 9926 11 9926 40 9927 3 9927 7 9928 3 9928 13 9929 3 9929 13 9930 2 9931 1 9932 30 9932 5 9933 11 9933 40 9934 40 9934 16 9935 1 9935 31 9935 27 9935 22 9935 32 9935 9 9936 2 9936 40 9936 16 9937 24 9938 27 9938 28 9939 41 9940 11 9940 40 9941 1 9941 2 9941 3 9941 40 9942 3 9942 7 9942 40 9943 4 9943 40 9944 4 9944 27 9945 40 9945 35 9946 40 9947 40 9948 38 9949 16 9950 40 9951 1 9951 41 9951 30 9951 5 9951 28 9951 10 9952 1 9952 30 9952 5 9952 28 9952 10 9953 41 9954 41 9955 3 9956 3 9956 40 9956 24 9956 16 10057 36 10333 1 10333 30 10333 5 10334 16 10335 4 10336 3 10336 40 10336 16 10337 8 10338 3 10338 24 10338 13 10339 24 10339 16 10340 1 10340 3 10340 25 10340 11 10340 14 10341 20 10342 3 10342 39 10343 41 10344 1 10344 3 10344 7 10344 22 10344 23 10344 9 10345 1 10345 2 10345 11 10345 8 10346 3 10346 16 10347 3 10347 4 10347 24 10347 13 10348 4 11505 40 10350 3 10350 11 10350 14 10350 24 10351 40 10351 35 10352 3 10352 25 10352 24 10353 2 10354 35 10355 29 10356 29 10356 35 10357 35 10358 29 10358 35 10359 3 10359 31 10359 9 10360 11 10360 5 10360 16 10361 41 10362 41 10363 41 10364 16 8156 11 8156 14 8156 34 10365 40 10366 3 10366 40 10366 14 10367 35 10368 3 10369 16 10370 3 10371 40 10372 29 10373 3 10373 29 10373 28 10374 29 10375 3 10375 16 10377 16 10378 3 10378 36 10379 3 10380 40 10381 40 10382 20 10383 1 10384 3 10385 29 10386 29 10387 4 10388 29 10389 2 10389 4 10389 5 10389 6 10390 24 10390 28 10391 11 10391 40 8632 16 8895 34 26 32 28 14 28 1 368 1 9957 3 9958 1 9958 2 9958 3 9959 11 9959 8 9960 11 9960 8 9961 3 9961 7 9961 14 9961 9 8632 37 8632 14 8698 3 11505 35 11505 13 11507 40 11531 1 9962 1 9962 2 9962 3 9962 11 9962 14 9963 3 9964 1 11580 44 11580 32 11580 22 9964 9 8934 1 8934 3 8934 31 8934 19 8934 24 8934 9 8058 3 9965 1 9965 11 9965 38 9965 8 9966 3 8898 2 8898 3 8898 11 8898 40 9967 25 9967 24 9968 4 9968 35 9968 14 9968 24 9969 38 9969 20 9970 3 9971 40 9971 8 9972 1 9972 2 9972 4 9972 11 9972 27 9972 9 9973 27 9974 31 9974 19 9974 40 9975 27 9975 19 9975 40 9977 16 9978 4 9979 5 9979 20 9980 35 9981 3 9981 22 9981 5 9981 6 9982 3 9982 25 9983 1 9983 2 9983 5 9984 4 9985 8 9986 1 9986 31 9986 27 9986 9 9987 4 9987 40 9988 4 9988 27 9989 2 9989 40 9990 2 9990 40 9991 2 9991 11 9991 40 9992 1 9992 30 9992 35 9992 14 9992 5 9992 28 9993 1 9993 3 9993 11 9993 40 9994 3 9994 35 9994 16 9995 3 9996 4 9996 27 9997 40 9997 35 9998 31 9998 40 9999 3 9999 40 10000 27 10000 40 10001 3 10001 40 10002 27 10002 40 10003 27 10003 40 10004 27 10004 40 10005 1 10005 25 10007 1 10007 7 10007 40 10008 40 10009 4 10009 25 10010 1 10010 2 10010 30 10010 5 10011 2 10012 11 10013 1 10013 27 10013 32 10014 1 10014 3 10014 25 10014 11 10014 8 10014 14 10014 24 10014 34 10014 9 10016 3 10016 14 10017 3 10017 16 10018 3 10018 14 10018 24 10018 9 10019 1 10019 2 10019 31 10019 11 10019 8 10019 9 9720 11 9720 40 10020 1 10020 3 10020 24 10020 9 10021 4 10021 14 10021 24 10021 5 10022 41 10023 3 10023 30 10024 41 10025 41 10026 1 10026 2 10026 11 10026 5 10027 3 10027 36 10027 14 10027 24 10028 4 10028 14 10028 24 8164 16 8164 14 8164 4 8164 3 10029 1 10029 2 10029 7 10029 11 10029 8 10030 1 10030 7 10030 10 10031 1 10031 30 10031 5 10031 6 2775 4 8259 11 8259 8 1515 4 3817 4 5147 40 994 21 994 20 994 19 994 10 994 7 994 4 11506 2 11506 11 11532 46 11532 35 11532 1 11531 8 11532 8 11535 44 10061 44 10061 23 10061 2 10061 1 8668 9 10062 1 10062 5 10064 3 10064 5 10065 2 10065 9 10066 3 10066 24 10067 3 10067 24 10067 16 10068 4 10068 35 10069 3 10069 25 10069 14 10069 24 10070 2 10070 3 10070 7 10071 1 10071 2 10071 11 10071 8 10072 24 10073 17 10074 3 10075 29 10076 4 10076 24 10076 13 10077 1 11535 11 10078 3 10078 25 10078 14 10078 24 10078 5 10078 34 10078 9 10079 3 10079 5 10079 16 10080 16 10081 11 10081 13 10082 4 10082 26 10082 9 10083 1 10083 3 10083 27 10083 36 10083 32 10083 5 10084 2 10084 7 10084 11 10084 27 10084 16 10084 9 10085 1 10085 2 10085 11 10085 28 10086 29 10087 35 10089 1 10089 3 10089 14 10089 23 11535 8 11535 3 11535 1 10091 7 10091 26 10091 9 10092 2 10092 38 10093 40 10093 35 10093 24 10094 4 10094 40 10096 4 10096 40 10096 23 10097 3 10097 36 10097 5 10098 3 10098 36 10099 4 10099 5 10099 16 10100 4 10100 40 10101 2 10101 40 10102 30 10102 5 10104 40 10105 1 10105 2 10105 30 10106 4 10106 27 10106 40 10107 40 10107 35 10108 4 10108 16 10109 4 10109 40 10110 1 10111 7 10111 40 10111 24 10111 9 10112 4 10112 24 10112 16 10113 27 10114 3 10114 19 10114 13 10115 4 10115 40 10116 4 10116 40 10117 3 10117 16 10118 3 10119 4 10119 11 10119 40 10120 4 10120 11 10120 40 10121 3 10121 36 10121 5 10122 2 10123 3 10123 36 10124 4 10124 40 10124 8 10125 4 10125 27 10125 40 10126 4 10126 11 10126 27 10126 40 10127 4 10127 40 10128 16 10129 4 10129 40 10130 4 10130 40 10131 4 10131 40 10132 4 10132 40 10133 1 10133 3 10133 8 10134 1 10134 35 10134 5 10135 4 10135 40 10136 4 10136 40 10137 4 10137 11 10137 40 10138 3 10138 11 10138 16 10139 4 10139 40 10140 11 10140 38 10141 3 10142 4 10142 40 10143 1 10143 25 10143 11 10143 14 10143 34 10144 1 10144 7 10144 19 10144 20 10145 41 10146 7 10146 5 10146 21 10147 41 10148 3 10148 16 5267 2 739 1 684 23 405 23 405 22 405 1 10391 8 10392 29 10392 35 10393 29 10393 35 10395 35 10396 40 10397 40 10398 29 10399 3 10399 16 10400 40 10401 3 10401 40 10402 3 10403 20 10404 20 10405 35 10406 40 10408 4 10409 1 10409 27 10409 28 10410 29 10414 4 10414 13 10415 35 10416 40 10417 3 10418 3 10419 3 10420 40 10421 29 10421 35 10422 16 10423 40 10424 40 10424 35 10425 40 10426 2 10426 3 10426 40 10426 23 10427 2 10427 40 10428 2 10428 6 10428 20 10429 3 10430 2 10430 3 10430 40 10430 23 10431 29 10432 40 10433 40 10434 40 10435 2 10435 40 10436 35 10437 5 10438 40 10439 3 10439 24 10439 16 10440 3 10440 24 10440 16 10441 3 10441 24 10441 16 10442 35 10443 29 10443 35 10444 40 10445 3 10445 40 10446 40 10447 7 10447 9 10447 10 10448 29 10449 3 10450 20 10451 29 10452 4 10568 35 10569 40 10569 35 10570 35 10571 29 10572 29 10573 29 10574 1 10574 5 10575 16 10576 29 10577 29 10578 29 10579 29 10580 29 10581 41 10582 41 10583 29 10584 3 10585 5 10585 28 10586 30 10587 27 10588 3 10589 40 10590 40 10591 4 10591 40 10592 40 10592 23 10593 3 10593 40 10594 2 10594 11 10594 27 10594 40 10594 8 10594 9 10595 2 10595 11 10595 27 10595 40 10595 8 10595 9 10596 2 10596 3 10596 11 10596 27 10596 40 10596 8 10596 5 10596 6 10596 9 10597 8 10598 2 10598 40 10599 35 10599 14 10600 38 10601 1 10601 22 10602 2 10602 3 10603 2 10603 3 10603 40 10603 16 10604 24 10604 16 10605 3 10605 16 10606 3 10607 16 10608 24 10610 3 10611 2 10611 3 10611 11 10612 1 10612 24 10613 4 10614 1 10614 2 10614 11 10615 1 10615 30 10616 11 10616 40 10618 1 10618 2 10618 7 10618 10 10619 1 10619 11 10619 9 10620 3 10620 24 10620 16 10621 4 10621 11 10621 14 10622 2 10622 3 10622 7 10622 10 10623 1 10623 27 10624 2 10624 40 10625 27 10626 35 10627 35 10628 35 10629 35 10630 35 10631 40 10632 11 10633 1 10634 27 10634 40 10634 35 10635 40 10635 35 10636 3 10636 40 10636 35 10637 40 10637 35 10638 3 10638 4 10639 16 10640 3 7837 36 7837 3 5266 9 2245 31 2245 23 2245 22 2245 9 10150 25 10152 2 10152 11 10153 3 10154 4 10154 14 10154 24 10154 34 10154 20 10155 4 10155 14 10155 24 10155 34 10155 20 10156 3 10156 14 10156 24 10157 29 10158 1 10158 27 10158 40 10158 28 10159 1 10159 30 10159 5 10160 20 10162 3 10162 40 10162 35 10163 2 10163 27 10163 14 10164 29 10164 19 10165 7 10165 4 10165 10 10166 1 10166 2 10166 3 10167 3 10167 27 10167 40 10168 3 10168 5 10168 16 10169 3 10169 5 10169 16 10172 40 10172 35 10173 2 10173 17 10173 11 10173 9 10174 2 10174 4 10174 5 10174 6 10175 20 10176 11 10176 40 10177 20 10178 2 10178 11 10179 16 10180 27 10181 16 10182 16 10183 16 10184 16 10185 4 10185 16 10186 41 10186 34 10187 41 10189 3 10189 4 10189 14 10190 3 10190 27 10191 2 10191 3 10193 1 10193 3 10195 14 10196 40 10196 13 10197 1 10197 2 10197 11 10197 27 10198 2 10198 27 10198 14 10199 3 10199 11 10200 41 10202 40 10202 9 10203 27 10204 2 10204 3 10205 1 10205 2 10205 3 10205 11 10205 23 10206 40 10206 35 10207 2 10207 3 10207 5 10209 40 10209 35 10210 20 10211 41 10212 27 10213 2 10213 40 10214 3 10214 11 10214 40 10215 29 10215 19 10216 2 10216 30 10216 5 10217 35 10218 1 10218 3 10219 19 10220 1 10220 30 10220 5 10220 6 10221 40 10222 2 10222 38 10223 4 10224 1 10224 2 10224 11 10224 38 10224 34 10225 3 10225 4 10225 14 10225 24 10226 1 10227 35 10228 4 10228 14 10228 16 4066 2 4066 1 10229 30 10229 5 10229 10 10229 20 9173 8 8738 37 7691 25 7691 14 9135 20 9135 4 9135 1 8647 16 7444 25 7444 3 8147 20 8147 4 8147 1 8607 34 8607 25 8607 24 8607 11 8607 9 10230 3 10231 11 10231 40 10232 4 10232 11 10232 16 10233 16 10234 29 10234 35 10235 3 10235 14 10235 24 10235 34 10236 16 10237 3 10237 40 10237 35 10238 40 10238 35 10239 3 10240 3 10240 40 10241 1 10241 31 10241 35 10242 2 10242 40 10243 2 10243 40 10244 40 10244 35 10245 40 10245 16 10246 11 10246 40 10246 16 10247 3 10247 25 10248 40 6256 9 3606 23 1941 23 1941 22 683 23 683 22 683 14 683 1 833 23 833 22 833 1 960 23 960 22 960 1 4953 23 4953 22 1721 1 8023 30 199 1 8267 35 8267 16 10248 16 1725 23 7884 23 7884 22 7884 11 7884 3 7884 2 7884 1 10032 1 10032 2 10032 11 10032 40 10033 41 10034 11 10034 40 10034 8 10035 5 10035 20 10037 7 10038 3 11508 3 10040 29 10040 5 10040 6 10041 35 10042 3 10042 7 10042 25 10042 14 10042 24 10042 34 10042 9 10043 11 10043 16 10043 9 10044 1 10044 31 10045 1 10045 31 10046 3 10046 40 10046 8 10046 14 10047 1 10047 2 10048 3 10048 11 10048 9 10049 2 10049 4 10049 30 10049 5 10050 3 10050 35 10051 4 10249 4 10249 11 10249 35 10250 2 10250 40 10250 35 10251 16 10252 30 10253 3 10253 8 10254 40 10254 35 10255 3 10256 40 10256 35 10257 40 10257 5 10257 6 10258 40 10258 35 10259 40 10259 35 10260 40 10260 36 10261 27 10261 40 10262 40 10262 5 10263 40 10263 5 10264 11 10264 40 10265 11 10265 35 10266 40 10267 11 10267 40 10268 11 10268 40 10269 40 10269 35 10270 40 10270 35 10271 29 10272 2 10272 40 10273 4 10273 11 10273 40 10274 2 10274 31 10274 4 10274 11 10274 27 10274 40 10274 8 10274 14 10274 9 10275 2 10275 31 10275 4 10275 11 10275 27 10275 40 10275 8 10275 32 10275 14 10275 9 10276 29 10276 5 10277 29 10277 5 10278 11 10278 40 10279 40 10280 11 10280 40 10280 8 10281 40 10281 35 10281 14 10282 40 10282 8 10283 40 10283 8 10284 2 10284 11 10284 35 10285 11 10285 40 10286 40 10287 2 10287 40 10288 2 10288 40 10289 4 10289 40 10290 2 10290 40 10291 2 10291 40 10291 5 10292 19 10292 40 10293 24 10294 2 10294 22 10294 23 10295 2 10295 3 10295 22 10295 5 10295 23 10296 40 10296 10 10297 7 10297 27 10297 40 10298 2 10298 40 10299 40 10299 16 10300 40 10300 35 10301 40 10301 35 10302 2 10303 16 10304 16 10305 2 10305 11 10305 40 10306 40 10306 30 10307 3 10307 36 10308 2 10308 3 10308 40 10308 30 10309 40 10309 16 10310 11 10310 40 10310 8 10311 11 10311 40 10312 3 10313 40 10641 3 10642 35 10643 3 10644 1 10644 3 10645 1 10645 3 10646 3 10646 27 10647 1 10647 3 10648 3 10649 3 10650 11 10651 35 10652 35 10653 40 10654 40 10655 2 10655 3 10655 27 10656 40 10657 2 10657 40 10658 40 10658 16 10659 40 10660 2 10660 40 10661 2 10661 40 10662 3 10662 40 10662 36 10662 5 10662 6 10662 23 10663 3 10663 40 10664 3 10665 41 10666 40 10667 40 10668 41 10669 4 10670 1 10670 2 10671 27 10671 40 10672 1 10672 23 10673 3 10674 2 10674 3 10674 40 10675 2 10675 40 10676 1 10676 3 10676 36 10676 5 10677 3 10678 31 10678 11 10678 27 10678 8 10678 9 10679 3 10679 16 10680 3 10680 16 10681 3 10681 16 10682 3 10682 16 10683 3 10683 16 10684 3 10684 16 10685 3 10685 16 10686 2 10686 3 10686 11 10687 3 10687 8 10688 40 10688 35 10689 40 10690 30 10691 40 10691 35 10692 35 10693 40 10693 35 10694 40 10694 35 10695 40 10695 35 10696 40 10696 35 10696 14 10697 3 10697 11 10697 24 10697 9 10698 40 10698 35 10699 35 10700 35 10701 1 10701 3 10701 27 10701 32 10702 2 10703 3 10703 40 10704 1 10704 3 10704 7 10704 23 10705 1 10705 3 10705 7 10705 23 10706 7 10707 1 10707 7 10707 9 11508 7 11508 23 11533 46 11533 35 11533 8 11533 1 11534 8 9209 13 11536 1 11536 11 11580 11 11580 8 11580 5 11580 4 11580 2 11580 1 11634 3 11634 16 11643 11 11643 8 11643 35 11643 14 11643 24 11643 5 11667 1 11667 2 11667 3 11767 3 11767 24 11767 16 11789 1 3621 32 3621 31 11831 3 11831 40 4354 34 4354 31 4354 4 11861 2 11861 3 1149 42 1149 19 1149 9 1149 3 1149 1 11876 1 11876 5 11880 5 11881 27 11881 4 11869 35 11869 4 11882 7 11882 9 11882 4 11882 1 11883 1 11883 35 11883 5 11887 1 11887 25 11887 8 11887 28 11887 5 5673 30 5673 5 11888 11 11888 1 11889 24 11889 13 11893 3 11895 46 11895 14 11896 46 11896 11 9827 4 11899 1 11899 3 11899 24 11900 40 11900 10 7005 16 7005 9 11899 9 11901 1 11901 29 11901 4 11901 30 11901 20 11901 5 11902 1 11902 2 11902 3 11902 11 10708 4 10710 2 10710 40 10711 35 10712 35 10713 35 10714 35 10715 3 10715 8 10715 14 10716 1 10716 3 11509 35 11509 24 11509 16 11510 1 11510 11 11510 27 11514 46 11514 1 11515 2 11515 11 11515 27 11534 46 11534 35 11534 1 11537 1 11537 4 11537 30 11537 20 11537 5 11396 3 11396 16 11401 24 11401 16 11401 3 11538 3 11538 24 11538 16 1796 36 8085 27 8085 16 11539 4 11539 35 11539 14 11539 16 11541 17 11206 6 11206 5 11545 1 11545 3 11545 27 11545 36 11545 32 11545 5 11165 9 11165 5 11546 1 11546 2 11546 3 11547 3 11547 2 11547 1 11581 35 11583 3 11583 4 11583 13 11585 1 11585 3 11586 41 11587 1 11587 3 11587 25 11587 5 11399 24 11399 13 8483 4 11588 4 11589 16 11590 3 11590 40 11591 3 11591 40 11592 1 11592 35 11592 5 7309 40 7309 30 7309 13 7309 1 11635 3 11635 16 11640 1 11640 2 11640 20 11640 9 11645 36 11645 16 11645 47 11644 47 11643 47 5560 47 3480 47 3478 47 1845 47 1844 47 1843 47 11651 41 11212 1 10077 37 9177 29 10745 25 11652 41 521 36 11653 1 11653 8 11653 9 11654 1 11654 2 11654 3 11654 31 11654 23 11655 49 11656 11 11605 30 11605 1 11598 34 11598 31 11598 24 11598 14 11598 3 11657 3 11657 36 11659 41 11660 41 10533 49 695 49 201 49 11662 4 11662 11 11662 14 11662 5 11668 4 10359 2 10359 1 11671 1 11671 3 11671 28 11249 11 11249 5 11249 2 11673 2 11673 40 11680 7 11498 49 362 49 351 49 11682 4 8271 49 11683 16 11683 3 11212 23 11212 8 11684 44 11684 5 11684 1 8010 9 11685 13 11685 3 11686 11 11686 9 11686 1 11687 11 11687 27 11687 32 11688 1 11688 11 11688 8 11688 24 11688 16 10765 3 113 28 11690 25 11690 34 11690 14 11692 1 11692 4 11692 9 11692 26 11693 27 11695 13 11697 35 11699 1 11701 35 11702 8 11703 3 11704 3 11705 3 11706 30 11707 3 11708 3 11709 40 11709 35 11713 3 11714 3 11715 3 11716 27 11717 11 11717 35 11718 4 11718 40 11719 29 11720 3 11720 36 11720 24 11721 35 11722 35 11723 2 11723 3 11723 11 11723 40 11723 16 11724 40 11739 3 11740 1 10717 27 10718 40 10718 35 10719 40 10719 35 10720 40 10720 35 10721 29 10722 29 10723 29 10724 29 10725 29 10726 29 10727 9 10728 3 10728 4 10728 35 10729 19 10729 24 10729 9 8661 37 757 37 3778 5 2328 11 6000 24 6000 14 2982 41 9726 9 9726 7 9725 9 9725 7 10465 35 7814 16 7814 3 10730 44 10730 3 10730 2 10730 1 10731 44 10731 2 10731 1 8790 8 8790 1 10732 44 10732 5 10732 2 10732 1 10732 30 8738 24 8738 20 8738 11 8738 4 7158 26 10733 8 7843 23 7843 9 7843 8 7843 3 7843 1 8698 4 7907 27 7907 1 262 22 10734 3 10734 25 10734 14 10734 24 10735 44 10735 11 10735 3 10736 11 10736 40 10737 11 10737 40 11511 35 11513 35 11516 2 11516 11 10739 35 10740 1 10740 3 10740 36 10740 5 10740 23 10740 9 10741 3 10741 24 10741 13 10742 3 10742 24 10742 37 10742 16 11516 27 2804 36 2804 8 10744 3 10744 31 10744 25 10744 14 10744 24 10745 1 10745 11 10745 14 10745 24 10746 3 10746 25 10747 35 10747 6 10748 3 10748 25 10748 14 11540 3 10748 34 10750 38 10750 24 10750 16 10751 1 10751 2 10751 11 10751 9 10752 3 10752 40 8254 5 11540 40 11542 1 11542 5 11544 3 10756 24 10757 1 10757 25 10757 11 10757 14 10757 34 10758 1 10758 25 10758 11 10758 24 10758 26 10758 9 10759 1 10759 3 10759 11 10181 3 10182 3 10183 3 10760 3 10760 4 10760 35 8195 31 8195 9 8195 8 8195 1 10761 24 10761 13 10761 16 10762 3 10762 14 10762 24 10763 30 10763 5 10764 1 10764 3 10764 4 10764 11 10764 30 10764 14 10764 5 10765 35 10765 16 10766 1 10766 25 10766 11 10767 3 10767 16 10768 3 10768 13 10769 3 10769 4 10769 13 10770 29 10771 29 10772 29 10773 29 10774 29 10775 29 10776 29 10777 29 10778 29 10779 1 10779 25 10779 11 10779 14 10779 34 10780 1 10780 24 10780 5 10780 16 10780 28 10781 3 10782 24 11544 27 10783 35 10783 24 10783 16 10784 4 10784 40 10784 16 8190 1 10785 3 10786 7 10786 5 10786 34 10786 9 10786 20 10787 3 10787 5 10787 6 10788 5 10788 21 10789 1 10789 4 10789 19 10789 24 10789 9 10790 3 10790 25 10791 3 10792 35 10793 35 10794 3 10795 35 10796 3 10797 40 10797 9 10798 35 10799 35 10800 1 10800 9 10801 16 10802 3 10803 3 10803 32 10803 24 10806 29 10807 3 10807 27 10807 40 10808 16 10809 29 10810 2 10810 4 10810 5 10810 6 10811 2 10811 4 10811 5 10811 6 10812 16 10813 35 10814 35 10815 40 10815 35 10816 16 10817 2 10817 3 10818 4 10820 29 10821 3 10821 24 10822 3 10823 29 10824 8 10825 2 10825 40 10826 16 10827 35 10828 11 10828 40 10829 3 10830 3 10831 3 10832 29 10833 29 10834 2 10834 11 10834 40 10835 29 10836 40 10837 29 10838 29 10839 16 10842 1 10842 25 10842 24 10843 35 10844 16 10845 4 10845 35 10846 24 10846 39 10846 16 10847 4 10847 24 10847 13 11512 3 10848 3 11512 40 11517 3 11517 8 11517 36 11543 3 11548 3 11548 2 11548 1 10848 14 11584 11 11593 24 11593 11 8687 23 10850 1 10850 11 10851 3 10851 7 10851 23 10852 3 10852 24 10852 16 10853 3 10853 7 10853 23 10854 4 10854 30 10854 5 10856 35 10857 1 10857 3 10857 25 10857 11 10857 14 10857 24 10857 5 10857 34 10857 9 10858 3 10858 24 10858 13 10859 3 10860 7 10860 9 10862 5 10863 16 10864 11 10864 8 10866 3 10866 36 10866 23 10867 3 10867 11 10867 40 10869 4 10869 24 10870 31 10870 11 10870 19 10870 9 10871 1 10871 30 10871 5 10872 1 10872 30 10872 5 10873 3 10873 25 10874 1 697 10 697 3 696 10 696 3 10877 1 10877 3 10877 24 10877 9 10038 25 10012 30 10012 5 7977 38 9976 11 9976 3 9976 1 5509 16 978 16 5508 16 4623 3 4623 2 4937 4 3318 16 5128 16 5128 3 7428 37 7428 25 7428 11 5221 13 10878 3 10878 13 10878 16 10879 1 10879 2 10879 3 10879 22 10879 23 7872 2 10880 3 10880 31 10880 11 10880 9 10881 4 10881 26 10881 9 10882 41 10883 41 10884 3 10884 24 10885 8 10885 16 10885 9 10886 1 10886 31 10886 35 10886 5 10887 35 10888 2 10888 3 10888 40 10888 35 10889 3 10890 5 10891 1 10891 2 10892 3 10893 3 10894 2 10894 4 10894 6 10895 35 10896 3 10896 24 10897 1 10897 2 10897 25 10897 11 10898 2 10898 40 10899 2 10899 3 10900 3 10900 40 10900 35 10901 1 10901 3 10901 7 10901 23 10902 1 10902 2 10902 31 10902 11 10902 8 10902 9 10903 41 10904 1 10904 30 10904 28 10905 41 10905 24 10905 42 11518 41 10908 41 10909 3 11549 3 10909 14 10909 24 10909 34 10910 11 10910 35 10911 35 10912 4 10912 35 10912 14 10912 16 10913 1 10913 25 10913 11 10913 14 10913 24 10913 34 10913 9 10914 4 10915 3 10915 11 10915 40 10916 3 10709 24 10709 14 8406 34 10091 3 10917 27 10917 11 10917 2 10917 44 10918 44 10918 4 10919 3 10920 1 10920 25 10920 11 10922 1 10922 2 10922 3 10922 11 10922 8 10923 3 10923 24 10924 3 10924 8 10924 16 10925 29 10926 1 10926 3 10926 25 10926 42 10927 17 10928 29 10929 29 10930 29 10931 29 10931 19 10931 20 10932 3 10932 36 10933 3 10934 29 10935 29 10936 29 10937 1 10937 2 10937 3 10937 5 10938 1 10938 4 10938 30 10938 5 10938 28 10939 17 10939 16 10095 3 10095 16 10407 40 10407 5 10394 3 10394 5 10394 16 10940 4 10940 13 10941 2 10941 3 10941 11 10941 14 10941 9 10942 35 4290 9 3594 35 4858 35 8010 40 8010 11 10943 1 10943 3 10943 19 8039 24 8039 16 8039 5 8039 1 10944 1 10944 3 10944 7 10944 10 10945 3 10945 9 10946 16 10947 3 10947 36 10947 24 10948 14 9178 24 7821 34 7821 24 8490 34 10920 8 10949 7 10949 19 10949 9 10950 7 10950 19 10950 9 10951 7 10951 19 10951 9 10800 2 10952 13 10952 3 10952 44 10089 22 10953 41 10954 41 10467 3 2759 30 2759 1 10012 35 10012 29 10012 28 10012 25 10012 24 10012 9 10012 6 10012 1 9980 24 9980 4 10955 1 10955 5 10956 4 10957 4 10957 14 10957 39 10957 43 10958 3 10958 16 10959 1 10959 22 10960 3 10960 40 10960 16 10961 2 10961 11 10961 40 10962 2 10962 11 10962 40 10963 11 10963 40 10964 3 10964 40 10965 3 10965 5 10966 3 10966 30 10966 5 10967 3 10967 5 10968 3 10968 5 10969 3 10970 41 10971 3 10971 8 10972 41 10973 3 10973 40 10974 3 10974 35 10975 5 10975 6 10976 3 10976 40 10977 3 10978 3 10978 16 10979 41 10980 3 10981 3 10982 3 10982 13 10983 2 10983 40 10984 3 10985 41 10986 3 10986 36 10987 3 10987 36 10988 1 10988 11 10988 38 10989 4 10989 40 10990 4 10990 40 10991 11 10991 40 10992 16 10993 4 10993 40 10994 4 10994 40 10995 4 10995 40 10996 41 10996 34 10997 3 10998 3 10998 40 10998 24 10998 16 10999 3 11000 41 11001 3 11001 14 11001 24 11002 29 11003 41 11004 7 11004 19 11004 9 11005 3 11006 35 11006 24 11006 16 11007 1 11007 27 11007 5 11008 3 11008 30 11008 36 11009 24 11010 5 11011 1 11011 30 11011 5 6953 30 6953 1 10466 16 10466 14 10466 3 10045 11 10045 9 10045 8 10044 11 10044 9 10044 8 8409 11 8409 9 8409 8 10076 3 1849 36 1849 24 1849 22 1849 1 4316 31 4316 3 8697 14 11012 38 11013 44 11013 11 11013 1 11014 29 11016 1 11016 3 11016 11 11016 8 11016 30 11016 5 11017 3 11017 40 11017 24 11017 16 11018 41 11019 3 8698 16 7880 38 11020 7 11020 14 11020 24 11020 16 2234 4 3043 4 2233 4 11021 1 11021 4 11021 11 11022 3 11022 24 11022 37 11022 16 11023 11 11024 17 11024 40 11025 41 11026 3 11027 40 11027 16 11028 32 11028 27 11028 11 11028 3 11028 2 11028 1 11029 34 11029 30 11029 25 11029 24 11029 14 11029 5 11029 1 11030 1 11030 11 11030 23 11030 26 11030 9 11031 22 11031 1 7555 32 7555 11 7555 9 7555 1 11032 4 11032 11 11032 24 11032 16 11033 5 11033 2 8903 11 11034 44 11034 30 11034 3 11035 4 11035 11 11035 40 11036 4 11036 40 11037 4 11037 40 11038 4 11038 11 11038 40 11039 4 11039 40 11040 4 11040 11 11040 40 11041 4 11041 11 11041 40 11042 4 11042 11 11042 40 11043 4 11044 4 11045 4 11045 24 11046 4 11046 40 11047 4 11047 40 11048 27 11048 40 11049 4 11049 40 11050 2 11050 4 11050 40 11051 27 11051 9 11052 19 11053 17 11054 3 11055 19 11055 5 11056 16 11057 1 11057 2 11057 27 11057 22 11057 32 11058 11 11058 19 11058 9 11059 40 11059 13 11060 40 11061 31 11061 4 11061 11 11061 27 11061 40 11061 8 11061 32 11061 14 11061 9 11062 16 11063 27 11065 4 11065 27 11065 40 11070 4 11070 40 11071 4 11071 40 11073 27 11073 40 11075 4 11075 40 11082 4 11082 40 11082 13 11085 4 11085 40 11086 4 11086 40 11092 4 11092 40 11094 4 11094 27 11094 40 11105 23 11105 3 11105 2 11105 1 11105 11 11519 41 11549 2 11549 1 11593 8 11593 2 11636 1 11646 1 11646 2 11646 11 10766 42 11655 1 11655 2 11655 31 11655 4 11655 11 11655 19 11655 28 11655 14 11655 9 11662 1 11669 3 11669 25 11669 14 11669 24 11126 2 11126 1 11681 3 11681 36 11614 24 11332 25 11332 24 11332 14 11332 3 11689 3 11689 27 11689 36 11370 3 11691 44 11691 30 11691 5 11691 1 11724 35 11725 11 11725 8 11726 29 11727 2 11727 11 11727 27 11728 11 11728 35 11729 3 11729 27 11729 40 11730 27 11731 27 11731 40 11732 1 11732 40 11732 22 11733 11 11733 40 11734 40 11735 1 11735 2 11735 3 11735 31 11735 8 11735 23 11795 41 11817 14 11582 16 11832 2 11832 27 11862 3 11862 40 1148 42 1148 19 1148 9 1148 4 1148 3 1148 1 11877 4 11612 3 11884 1 11884 35 11884 5 11890 24 11890 13 11894 1 11894 5 11894 6 11897 46 11897 3 11898 2 11898 11 11898 14 9827 40 6703 28 11910 3 11910 34 11910 14 11910 24 11933 1 11933 7 11933 9 11936 2 11936 11 11690 24 11690 3 11954 41 11955 41 11956 3 11956 35 11957 4 11958 3 11958 16 11959 3 11959 40 11960 1 11960 3 11960 36 11614 9 11770 24 11770 13 11961 36 11961 30 11961 29 11961 5 11961 3 11961 1 11963 3 11963 16 11964 44 11964 5 11964 1 11965 4 11965 5 11737 4 2720 4 2720 1 9670 13 11966 1 11966 4 11966 13 11993 1 11995 11 10467 4 10467 1 11998 35 11469 24 11469 23 12000 11 12000 8 12000 3 12001 24 12001 14 12002 30 12002 24 12002 6 12002 5 12002 1 7325 6 11486 30 11486 5 11486 4 12005 30 12005 6 12005 5 12005 4 12005 1 12007 11 12007 9 12007 8 12007 1 12009 13 7524 23 12012 1 12012 30 12012 14 12012 5 12013 3 12013 14 12015 40 11064 4 11064 40 11066 4 11066 40 11067 4 11067 40 11068 4 11068 40 11069 4 11069 11 11069 27 11069 40 11520 40 11520 35 11522 40 11522 35 11550 3 11550 2 11550 1 11594 40 11594 35 11595 35 11596 3 11599 11 11599 8 11599 39 10971 47 10687 47 11600 47 11601 1 11601 31 11601 11 11601 9 11602 1 11602 11 11602 9 11603 1 11603 2 11603 11 11603 8 11603 7 8159 20 8159 7 11604 3 11604 25 11604 34 11604 14 11604 24 11606 11 11606 41 11608 35 11609 41 11573 47 11170 4 11170 1 11610 24 11610 14 11610 9 11610 3 11611 3 11611 16 11612 25 11612 24 11613 3 11613 7 11613 9 11615 19 11615 7 11615 9 11614 14 11614 4 11616 35 8557 3 11618 30 11618 10 11618 5 11619 3 11619 25 11619 14 11619 24 11486 1 7510 49 6750 49 6266 49 5344 49 8147 49 6665 49 6664 49 6084 49 24 49 6027 49 11620 23 11620 1 11621 4 11621 2 11625 46 11625 35 6272 47 8024 31 8024 23 8024 11 8024 1 10036 11 10036 1 11627 11 11627 4 11627 1 11628 3 11628 16 2460 21 2460 10 2460 1 11630 16 11637 1 11637 2 11647 1 11647 2 11647 11 11663 3 11670 3 4765 49 11490 5 7911 3 8515 13 8515 3 8490 24 10221 9 10221 3 8173 24 8173 9 11737 20 11737 16 11737 14 11738 2 11738 11 11740 2 11740 11 11740 8 11741 3 7714 11 11742 46 11742 35 11742 20 11743 46 11743 5 11744 46 11744 11 11744 8 11744 1 11745 35 11745 24 11745 16 11747 47 11747 44 11747 23 11747 3 11747 1 11620 9 11620 5 987 28 706 4 706 2 3872 20 3872 4 11661 3 11749 3 11749 4 11749 35 11751 3 11751 24 11752 2 11752 3 11752 11 11752 14 11752 9 11753 44 11753 3 10672 49 10672 29 10672 24 11754 41 11755 3 11755 40 11756 3 11756 24 11756 16 11757 46 11757 31 11757 1 11759 3 11759 36 11760 3 11760 34 11760 14 11760 24 143 20 6966 9 11761 30 11761 5 11761 4 11761 1 11762 40 11762 5 11768 11 8629 16 11769 16 11771 1 11771 3 11771 22 11771 23 8643 21 11772 1 11772 11 11772 23 11772 9 11772 26 609 8 609 1 11813 41 11072 4 11072 40 11074 27 11074 40 11521 40 11521 35 11081 4 11081 40 11098 3 11098 16 11106 44 11106 40 11106 11 11106 8 11525 2 11525 3 11551 1 11551 2 11551 3 11551 11 11551 23 8684 4 11548 4 11552 3 11552 8 11552 47 11553 1 11553 11 11553 9 11555 47 11555 44 11555 40 11555 35 11555 8 11555 3 11555 2 11555 1 11556 44 11556 35 11556 3 5355 17 11557 10 11557 5 11558 3 11558 10 11560 3 11560 11 11560 8 11561 40 11561 16 11562 35 11562 13 11563 2 9731 28 11564 28 11566 44 11566 23 11566 4 11566 3 11567 34 11567 41 11567 24 3176 47 11363 47 6663 47 6204 47 5420 47 11568 40 11568 35 11570 3 11570 16 11571 47 11571 44 11571 23 11571 1 11574 21 11574 7 11574 5 11574 4 11575 11 11575 2 11575 1 11597 3 11597 13 11600 3 11600 8 11626 46 11626 14 10036 4 11629 3 11629 16 11629 9 11631 3 11631 16 11638 29 11638 40 11642 4 11642 40 11648 3 11664 1 11664 30 11670 9 11748 24 11748 13 10732 24 8971 11 8971 4 11758 46 11758 31 11758 1 11763 1 11763 2 11763 9 11773 3 11773 16 11833 19 11833 40 11863 3 11863 40 4416 13 4416 1 11878 35 11885 41 11891 3 11891 13 3187 6 3187 4 3187 1 8644 20 11903 41 11904 41 11905 41 11906 13 10804 3 10841 3 11908 19 11911 1 11911 3 11911 11 11911 8 11911 35 11912 3 11913 11 11913 8 11914 3 11914 4 11914 14 10860 21 10860 19 11915 40 11915 35 11916 1 11916 2 11916 30 11916 14 11916 5 11917 2 11917 40 11917 35 11918 40 11918 35 11919 40 11919 35 11920 27 11920 40 11921 40 11921 35 11922 3 11923 40 11923 35 11924 40 11924 35 11925 3 11925 13 11926 35 11927 40 11927 35 11927 24 11928 40 11928 35 11929 2 11929 3 11929 11 11929 40 11930 16 11931 1 11931 8 11931 14 11931 24 11931 5 11931 9 3177 45 10706 4 11934 3 11934 16 11938 4 11938 16 11938 13 11383 4 11943 44 11943 30 11943 5 11943 1 11944 44 11944 5 11944 2 11379 11 11379 1 11682 7 11946 35 11333 3 11947 16 11948 1 11948 30 11948 5 11949 7 11949 5 11950 16 11950 11 11950 9 11950 4 11952 1 11952 4 11952 30 11952 28 11952 5 11077 3 11078 3 11079 3 11079 24 11079 16 11523 40 11080 3 11083 4 11083 40 11084 4 11084 40 11087 4 11087 40 11088 4 11088 40 11089 4 11089 27 11089 40 11090 4 11090 40 11091 4 11091 40 11093 1 11093 19 11095 4 11095 27 11095 40 11096 4 11096 27 11096 40 11097 3 11097 16 11099 29 11100 44 11100 11 11100 3 11101 3 11103 3 11104 23 11104 11 11104 3 11104 2 11104 1 11107 44 11107 3 11108 44 11108 11 11108 3 11109 44 11109 11 11109 3 11110 9 11110 20 11111 44 11111 2 11111 1 11112 40 11112 8 11113 1 11113 2 11113 5 11113 13 11114 1 11114 31 11114 5 11114 23 11114 9 11115 1 11115 24 11115 13 11116 11 8234 4 8234 3 11117 44 11117 11 11117 3 11117 1 11118 44 11118 11 11118 8 11118 3 11118 1 11119 44 11119 40 11119 11 11119 8 11119 3 11119 1 11120 8 10103 24 10103 23 11121 1 11121 3 11121 11 11122 35 11122 5 11122 9 11122 20 11123 1 11123 3 11126 31 11126 9 11126 3 11127 44 11129 44 11129 30 11129 5 11130 44 11130 30 11130 5 11131 44 11131 6 11131 5 11132 44 11132 3 11132 1 11133 44 11133 11 11133 8 11133 3 11134 3 11134 24 11134 16 11136 44 11136 3 186 45 382 45 382 22 6372 45 6369 45 4123 45 898 45 897 45 707 45 611 45 7663 45 177 45 7119 45 6023 45 5121 45 4474 45 1043 45 5336 45 3324 45 1042 45 1712 45 4539 45 3915 45 3389 45 523 45 10042 45 8494 45 8062 45 8710 45 8249 45 755 45 5204 45 6413 45 5331 45 9930 45 7104 45 2732 45 5980 45 1409 45 6514 45 4870 45 2185 45 468 45 275 45 6419 45 5832 45 3893 45 5102 45 807 45 10896 45 11137 3 11137 35 11137 24 3488 45 6768 45 11138 38 11139 3 11139 11 11140 41 10039 7 10782 14 10782 5 10782 3 11141 40 11141 16 4596 2 9136 6 11142 40 11142 35 11142 24 11143 3 11143 30 11143 36 11144 1 11144 3 11144 40 11144 36 11144 23 11145 3 11145 25 11145 34 11146 35 11147 16 11148 1 11148 5 11150 1 11150 5 10716 45 6370 45 6366 45 901 45 900 45 11153 1 11153 2 11153 31 11153 11 11154 35 9729 11 9729 3 9538 14 9538 4 9538 3 11155 29 11156 44 11156 11 11156 8 11157 44 11157 5 11157 4 11157 2 11157 1 11158 3 11158 16 11159 3 11160 44 11160 30 11160 28 11160 5 11161 44 11161 30 11161 5 11162 44 11162 30 11162 5 11162 3 11162 1 11163 44 11163 36 11163 3 11164 1 11164 2 11164 4 11164 11 11164 27 11164 9 11165 1 11165 23 11166 1 11166 3 11166 11 11167 1 11167 11 11167 9 11168 1 11170 5 11171 16 11171 9 11172 3 11172 35 11173 16 11174 3 11175 3 11175 16 11176 3 11176 25 3445 14 4633 14 11152 35 11151 35 11178 3 11179 4 11179 11 11179 14 11180 40 11181 3 11181 14 11181 24 11182 7 11182 9 11183 1 11183 2 11183 30 11183 5 11184 4 11185 1 11185 2 11185 8 11186 1 11186 4 11186 11 11186 8 11186 24 11187 13 11182 3 10748 11 11188 3 11190 40 11190 16 11190 9 11191 35 11192 29 11192 35 11192 24 10153 16 11195 1 11195 11 11195 40 11196 4 11197 2 11197 3 11197 11 11197 40 11198 3 11198 40 11198 24 11198 16 11053 13 10073 13 8482 13 7906 13 7204 13 6799 13 3999 13 3358 13 729 13 728 13 163 13 162 13 10864 46 5913 46 11122 46 11192 46 7195 46 8449 46 11171 46 11199 44 11199 11 11199 2 11200 5 6699 25 7703 16 7703 9 9964 23 11201 1 11201 3 11201 28 10739 1 9721 20 11202 2 11202 11 11202 40 11203 3 11203 16 11204 14 11204 24 11205 35 11205 16 11206 1 11206 4 11206 30 11207 3 11207 14 11208 3 11209 2 11209 11 11210 1 11210 3 11210 26 11210 9 11211 7 11213 38 11213 20 11214 2 11214 11 11215 44 11215 11 11215 3 11216 1 11216 25 11216 11 7875 36 9966 2 11217 3 11217 35 11217 14 11217 34 8143 35 8105 24 11218 3 11218 24 11219 3 11219 36 11220 1 11220 38 11221 29 11222 29 11223 29 11224 29 11225 29 11226 29 11227 29 11228 29 11229 29 11230 29 11231 29 11232 29 11233 3 11235 4 11235 27 11235 40 11236 3 11236 25 11237 3 11237 25 11238 29 11239 29 11242 29 11243 1 11243 2 11244 35 11245 35 11246 4 11246 35 11246 14 11246 16 11247 2 11247 11 11247 35 11248 40 11248 13 11251 11 11253 25 11254 11 11254 27 11255 40 11255 9 11256 40 11256 23 11257 35 11258 2 11258 3 11259 3 11260 35 11260 24 11260 16 11261 3 11262 1 11262 30 11262 5 11263 1 11263 27 11263 32 11264 35 11265 41 11266 31 11266 41 11266 24 11266 34 11266 9 11523 35 11546 4 5702 35 11565 44 11565 23 11565 22 11270 31 11270 4 11270 11 11270 19 11270 5 11270 26 11271 2 11271 3 11271 40 11272 7 11272 5 11274 3 11274 27 11274 36 11275 1 11275 3 11276 41 11277 2 11277 11 11278 1 11278 2 11278 3 11278 13 11279 25 11279 24 11279 37 11279 16 11280 7 11565 11 11565 4 11565 3 11565 2 11282 1 11282 2 11282 3 11282 38 11282 36 11283 4 11283 27 11284 2 11285 3 11286 2 11286 3 11286 40 11286 5 11287 3 11287 35 11289 3 11289 24 11290 3 11290 11 11290 40 11292 1 11292 2 11292 3 11292 4 11292 11 11292 23 11293 3 11294 1 11294 7 11294 4 11294 19 11294 9 11294 20 11295 11 11296 35 11297 35 11298 3 11298 5 11565 1 11569 40 11569 35 11572 47 11572 44 11572 23 11572 3 11572 1 11300 3 11300 24 11300 16 11301 3 11301 35 11301 16 11302 14 11304 3 11304 24 11308 3 11309 14 11309 24 10202 3 11310 44 11310 17 11310 5 11310 3 11310 1 11234 5 11234 2 11315 3 11315 36 11315 24 11316 16 11316 9 11317 3 11317 16 11317 9 11318 3 11318 35 10907 14 10039 19 7163 47 7054 47 5477 47 2774 47 2660 47 1153 47 1116 47 1115 47 887 47 886 47 664 47 491 47 490 47 489 47 6638 47 6637 47 6636 47 5853 47 8687 47 8274 47 6056 47 3874 47 1725 47 57 47 56 47 11156 47 9985 47 8056 47 6083 47 3261 47 9095 47 8831 47 8661 47 8003 47 7861 47 7173 47 9173 48 7760 47 1728 47 1693 47 1348 47 339 47 338 47 207 47 7670 47 8181 47 7332 47 7484 47 7484 46 8731 47 2940 47 2891 47 650 47 995 47 480 47 1098 47 8638 47 5999 47 1760 47 1403 47 399 47 3307 47 2487 47 9137 47 9424 47 3315 47 2953 47 403 47 404 47 3318 47 2896 17 1263 17 1262 17 5702 17 1090 17 424 17 628 47 772 47 3399 47 1627 47 7379 47 7713 47 6308 47 5937 47 7758 47 2145 47 4861 47 4019 47 2648 47 1516 47 5249 47 8797 47 11185 47 10651 47 10391 47 10133 47 10034 47 8417 47 8269 47 8252 47 7857 47 7429 47 6688 47 6687 47 7237 47 6538 47 7426 47 6368 47 6237 47 5977 47 5656 47 5207 47 4598 47 4265 47 4243 47 3750 47 3477 47 3199 47 5927 47 5065 47 6324 47 1545 47 1477 47 10253 47 7757 47 464 47 1658 47 830 47 316 47 2805 47 7250 47 1796 47 2804 47 7723 3 7723 1 1797 47 101 47 11319 3 11319 25 11319 14 11319 24 11320 28 11320 27 11320 7 11321 1 11321 11 11321 8 11321 9 11322 25 11323 3 11323 16 11323 24 11323 14 6742 4 6742 2 11325 1 11325 24 11325 5 11325 16 11325 28 7923 1 11327 29 11328 3 11328 35 11329 3 11329 8 11329 16 11329 48 11330 24 11330 13 7982 34 11331 28 11331 6 11331 5 11331 4 11333 1 11333 11 11333 9 7125 23 7125 7 11334 3 11334 24 11334 13 11335 5 10103 4 10103 3 8560 32 8560 27 8560 23 7653 32 7653 27 7653 23 7653 11 7653 1 4110 47 1062 47 11336 3 11336 8 11337 2 11337 11 11337 14 11338 2 11338 11 11338 14 10056 9 10056 4 11339 7 11339 9 11340 46 11341 4 11341 11 11341 14 11342 1 11342 4 11342 26 11342 9 5255 35 11343 38 11343 2 11344 1 11344 19 11344 5 11344 6 7839 3 8512 30 8512 5 8779 24 8779 4 9093 34 7707 34 7707 24 11345 3 11345 24 11345 16 11347 3 11347 13 11348 3 11348 25 11348 14 11348 24 11348 13 11349 3 11349 24 11349 16 11350 3 11350 7 11350 23 11351 1 11351 2 11351 3 11351 4 11351 11 11352 35 11352 24 11352 16 11208 16 4178 10 4178 7 4178 3 3361 40 2619 40 2619 11 2619 2 11353 24 8158 24 8158 14 8158 3 2200 47 11354 1 11354 2 11354 31 11354 11 11354 8 11354 9 11355 1 11355 30 11355 5 11355 6 11354 24 11353 25 11356 24 11356 5 11021 2 11288 14 11353 3 11357 14 11358 3 11358 35 11359 46 11359 11 11359 8 11359 1 11360 44 11360 11 11360 8 11360 3 1950 20 1950 9 1950 1 4838 29 4838 19 8138 24 8138 3 11361 1 11361 4 11524 40 11524 35 11547 4 11573 4 11573 8 11573 20 11573 21 11576 24 11576 11 11576 2 11576 1 11597 24 11624 46 11624 20 11632 3 11632 16 11639 40 11649 4 11649 14 11649 37 11649 9 11665 5 11766 1 2951 19 11774 35 11775 3 11775 24 11776 21 11777 41 11778 1 11778 2 11778 3 11778 38 11778 36 11779 2 11779 11 11780 46 11780 29 11781 1 11781 30 11782 14 11782 24 11783 13 11784 25 11784 24 11784 14 11784 3 11785 1 11785 2 11785 31 11785 11 11785 27 11785 23 11785 9 11790 3 11791 35 11792 1 11792 2 11792 11 11792 40 11794 8 11794 28 11796 3 11798 4 11799 3 11799 40 11799 16 11800 3 11800 40 11801 40 11801 35 2498 40 3775 29 11346 24 11346 5 11803 27 11803 1 11247 14 11804 3 11804 16 11805 11 11805 3 11806 1 11806 24 11806 9 11806 26 11807 2 11807 11 4585 35 2160 45 2160 23 11808 44 11808 24 11808 5 11808 3 11809 1 11809 2 11809 3 11811 3 11811 25 11814 27 11814 36 11815 3 11815 25 11815 34 11816 46 11816 8 11816 1 11816 5 11818 6 11819 46 11819 25 11819 3 11821 40 11821 11 11821 3 11823 11 11823 16 4309 35 11825 44 11825 30 11825 5 11825 1 11826 3 11826 9 11828 3 11829 11 11829 34 11829 27 11829 14 11834 19 11835 3 11835 19 11836 3 11836 25 11836 11 11836 34 11836 14 11837 1 11837 31 11837 11 11837 8 11837 9 11572 14 11839 44 11839 23 11839 22 11839 11 11839 4 11839 3 11839 2 11839 1 10920 3 7840 29 11842 44 11842 23 11842 22 11842 11 11842 4 11842 3 11842 2 11842 1 2185 9 11843 35 11845 35 11844 14 11844 5 11844 4 11844 24 11846 38 11847 27 11848 35 11849 35 11850 1 11850 4 11850 30 11850 28 11850 5 11850 6 11852 2 11852 3 11852 11 11853 2 11853 3 11853 11 11854 11 11854 5 11855 4 11855 16 11856 41 11857 1 11857 38 8805 41 812 22 812 3 11858 14 11859 3 11859 40 11864 2 11864 3 11864 40 11866 35 11867 3 11868 35 11868 24 11868 16 11869 11 11869 5 11870 3 11870 16 11873 3 11873 35 11874 5 11874 2 11874 1 11362 1 11362 7 11362 9 7541 27 11363 1 11363 11 11363 9 11363 21 11364 13 8253 14 8253 3 8027 24 9967 3 9735 3 9735 1 2937 5 2937 1 828 6 2521 6 2520 6 11365 24 11365 23 11366 3 11366 14 11366 24 11366 9 10847 3 9835 14 11368 19 11368 9 11368 7 11367 40 11367 11 11367 3 11367 2 11367 1 1057 24 11373 24 11373 13 1196 4 1196 1 1198 19 5331 16 11374 13 10918 27 7803 40 2252 30 11377 40 11376 28 11376 11 11376 2 11376 1 11375 10 11375 7 11375 4 11375 3 11372 40 11372 6 11372 2 11372 1 11371 16 11371 3 11370 35 11370 16 11369 3 11378 16 11378 13 11378 5 11378 3 11380 38 11380 16 11380 4 11381 3 11382 11 11383 30 11383 5 11383 1 11384 3 11385 16 11385 3 11386 40 11386 2 11387 35 11387 2 11388 3 11389 3 8712 14 11390 36 11390 3 11391 35 11391 24 11391 4 11392 24 11392 13 11392 3 10017 23 11393 7 11393 3 11393 2 11394 38 11394 3 11395 38 11395 11 11395 3 11402 36 11402 23 11402 9 11402 5 11402 3 11402 1 3503 2 8010 3 11397 3 4511 24 7394 28 7394 1 1422 28 1422 5 1422 2 8380 47 11526 3 11526 14 11405 35 11405 29 181 27 181 1 11403 19 7157 14 1276 1 11406 26 11406 9 11406 7 11406 1 11407 26 11407 9 11407 7 11407 1 11408 16 11408 3 11409 11 11409 5 11409 1 11410 24 11410 14 11410 3 11410 1 11411 46 11412 29 11412 3 11412 46 11413 46 11413 3 11414 25 11414 11 11414 9 11414 2 11414 1 11415 31 11415 14 11415 8 11416 29 11526 24 11549 4 11577 24 11577 11 11418 34 11418 25 11418 24 11418 14 11418 5 11418 3 11419 40 11419 35 11420 16 11420 3 11421 34 11421 25 11421 24 11421 14 11421 11 11421 9 11421 5 11421 3 11415 47 11422 26 11422 9 11422 4 11423 38 11423 14 11423 11 11423 2 11423 1 11424 38 11424 24 11424 14 11424 5 11424 1 11425 46 11425 29 11426 46 11426 29 8443 46 8443 29 10411 46 10411 29 11427 46 11427 29 11428 35 11428 29 11429 46 11429 35 11429 29 11428 46 11430 36 11430 23 11430 9 11430 5 11430 3 11430 1 11431 11 11431 8 11431 2 11431 1 11432 24 11432 16 11432 3 11527 25 11527 11 11527 8 11550 4 11577 5 11577 1 11598 1 11598 25 11633 3 11633 16 11641 38 11641 40 11644 11 11644 8 11650 40 11650 35 11666 3 11786 35 11786 9 11802 3 11802 16 7257 11 11820 1 11820 40 11822 19 11822 7 11822 9 11822 21 11824 25 11824 13 3589 35 11827 44 11827 5 11827 3 11827 1 6288 49 6203 49 11830 41 10640 19 1172 47 1172 8 11838 1 11838 11 11838 27 11840 3 11840 11 11840 8 11216 8 11216 3 8359 29 11381 16 11851 1 11851 2 11851 3 11851 11 11851 14 9724 35 11860 2 11860 3 11865 3 11865 40 1147 42 1147 19 1147 11 1147 3 1147 1 11871 3 11871 27 8831 37 8003 37 11176 37 9095 37 11438 37 7861 37 7858 37 7173 37 11875 3 11875 13 11879 11 11886 41 11892 3 11907 2 11909 1 11909 30 11909 6 11932 3 11935 3 11935 4 11935 24 11935 13 11937 2 11937 3 11937 11 11937 8 11937 9 11940 4 11940 14 11940 24 11942 1 11942 11 11942 8 11942 24 11953 3 11953 16 11953 9 11962 36 11962 30 11962 29 11962 5 11962 3 11962 1 4294 4 4294 1 9056 13 11994 11 11994 1 11997 5 11997 3 11997 2 11999 13 12003 30 12003 24 12003 6 12003 5 12003 1 12004 30 12004 5 12004 4 12004 1 12006 11 12006 8 12006 1 12008 11 12008 9 12008 8 12008 1 11437 20 11437 4 12011 3 12014 40 12014 35 12015 35 12016 40 12016 35 12017 1 12017 4 12017 28 12017 5 12017 6 12018 1 12018 2 12018 3 12019 1 12020 1 12021 38 12022 4 12023 4 12023 5 12024 3 12024 16 11818 3 12025 1 12025 2 12025 3 12026 2 12026 34 12026 14 12026 5 12027 3 12028 40 12028 35 12029 3 12029 14 12029 24 12029 16 12030 3 12030 40 12030 24 12030 5 12030 16 12031 19 12031 9 12032 29 12033 11 12033 40 12034 11 12034 40 12035 3 12036 35 12036 36 12037 16 10038 23 10038 9 10038 5 10038 4 12038 3 12038 16 12039 13 11291 9 12040 14 1108 34 1108 30 12041 1 12041 2 12041 3 12041 34 12041 30 12041 5 10036 49 11209 49 11209 20 12042 35 12043 40 12043 35 11209 4 11433 11 11433 2 11433 1 11178 36 7842 5 7842 1 8669 11 8669 9 11434 46 11434 29 11435 46 11435 29 11436 3 11437 5 11438 47 11438 16 11438 11 11438 8 11438 3 11438 1 11439 44 11439 11 11439 2 11439 1 6342 47 5128 47 521 47 11133 47 4518 47 11239 46 11239 3 11440 44 11440 4 8335 5 8335 4 11441 36 11441 30 11441 3 11442 46 11442 25 11442 3 11443 3 11444 24 11444 13 11444 3 11445 25 11445 11 11445 1 11446 3 11447 11 11447 4 11447 2 11447 1 11448 11 11448 3 11448 2 5428 1 3880 27 3880 4 2266 25 11449 31 11449 27 11449 11 11449 9 11449 3 11449 1 11450 35 11450 24 11450 16 11450 3 11451 34 11451 6 11451 5 11451 3 11451 1 10939 13 4683 28 4683 2 4683 1 4683 6 8425 1 11452 17 11452 16 11452 13 11453 20 11453 11 8009 31 8761 31 1911 17 6802 17 3877 17 2500 17 2501 17 7884 17 6942 9 10881 3 11454 19 11454 5 11454 1 11455 23 11455 1 11456 30 11456 10 11456 5 11457 24 11458 24 10077 24 8082 3 11459 23 11459 3 11459 2 11459 1 11460 30 11460 28 11460 1 11461 11 11461 2 11461 1 11462 26 11462 9 11462 4 11462 3 11463 24 11463 3 11464 44 11464 3 11464 1 11465 25 11465 5 11465 3 11465 1 11466 24 11466 14 11466 3 11467 16 11467 3 11468 44 11468 23 11468 22 11468 11 11468 3 11468 2 11468 1 6437 26 6437 24 6437 11 11469 3 11469 1 11470 16 11470 3 7649 36 7683 36 10072 3 10072 1 2653 4 1750 6 11110 7 11471 46 11471 29 11339 4 11339 1 11472 46 11199 4 11199 3 11199 1 11473 23 11473 7 11473 1 11474 35 11474 24 11474 4 11475 35 11475 24 11475 4 11476 30 11476 28 11476 6 11476 5 11476 4 11476 1 11234 30 11234 11 11234 1 10906 5 10906 3 11477 27 11477 11 11477 9 11477 4 11477 2 11477 1 7153 9 7153 4 11478 29 11479 41 11480 41 11480 6 11481 36 11481 3 11482 46 11482 3 11483 44 11483 23 11483 3 11483 1 11484 29 11484 19 11484 9 11485 39 11485 14 11485 4 11485 3 9124 47 11487 24 11487 16 11487 3 11488 35 11489 35 11491 5 11491 2 11491 1 11492 41 11261 16 11578 1 9069 31 6426 24 12044 27 12045 3 12045 14 12045 24 12046 4 12047 2 12047 3 12047 11 12048 4 12048 9 12048 21 12049 11 11368 1 11615 1 10949 1 10951 1 10950 1 6564 49 6622 49 6559 49 12050 3 12051 7 12051 9 12035 16 11446 16 12052 3 12052 24 12052 16 11605 5 12051 4 12051 1 12053 8 12053 5 12053 4 11346 28 11346 1 12054 3 12054 14 12054 24 12054 16 12055 3 12055 4 12055 14 12055 39 12056 3 12056 24 11317 8 12057 3 12058 46 12058 35 12059 46 12059 35 12060 46 12060 35 11339 3 12061 46 12061 35 12062 46 12062 35 12063 4 12063 30 12064 1 12064 2 12064 7 12064 9 11945 3 12065 38 12065 20 12066 35 12067 35 12068 35 12069 35 12070 1 12070 32 12071 1 12071 35 12072 35 12073 35 12074 35 12074 9 12074 26 12075 35 12075 14 12076 35 12077 3 12077 19 12078 3 12078 19 12078 9 12079 5 12080 1 12080 11 12080 8 12080 24 12080 16 12081 1 12081 3 12081 27 12081 32 12082 3 12082 24 12082 16 12083 2 12084 3 12084 14 12086 3 11437 21 11437 3 12087 1 12087 2 12087 3 12087 11 12087 27 12087 32 12088 35 8337 24 8337 16 8337 4 8356 49 12089 1 12089 5 12089 6 12090 11 12090 34 12090 27 12090 14 12091 3 12091 24 12091 39 12091 16 12092 3 12092 13 12093 3 12093 8 12093 14 12093 5 12093 16 12093 9 12094 41 12095 1 12095 30 12096 3 12096 30 12096 36 12097 3 12098 1 12098 11 12098 5 8132 14 8132 3 11209 3 12099 3 12099 30 12099 36 12100 3 12100 30 12100 36 12101 3 12101 30 12101 36 12102 44 12102 11 12102 3 11682 20 12103 3 12103 24 12103 16 12104 3 12104 40 12104 9 11682 21 11605 4 11620 4 12105 1 12105 19 12105 7 12105 20 12106 1 12106 2 12106 4 12106 28 12106 14 8041 11 12107 1 12107 4 12107 30 12107 28 12107 5 12107 6 8642 22 8642 5 8642 4 8642 3 12108 35 11818 5 12109 3 12109 16 12110 27 12111 46 12020 11 12112 35 12113 35 11108 47 11109 47 12114 3 12114 40 12115 1 12115 19 12115 7 12115 9 12116 1 12116 4 12116 23 12116 9 12117 35 12117 14 12118 3 12118 11 12118 36 12119 3 12119 9 12120 41 12121 41 12122 31 12122 41 12122 19 12122 9 12123 41 12124 41 12125 41 12126 41 12129 35 12127 3 12127 24 12127 9 12145 8 12145 35 12145 14 12145 24 12128 3 12128 11 12128 9 12131 1 12131 23 12133 35 12132 35 55 28 55 1 517 1 5194 28 5194 1 7575 28 7575 1 10854 28 10854 1 12134 2 12134 11 12134 27 12135 2 12135 11 12135 27 12135 22 12135 9 8806 24 8806 3 12136 4 12136 16 12137 9 12137 7 12137 4 12137 1 11605 32 12138 3 12138 16 12139 1 12139 30 12140 3 12140 24 12140 16 12141 3 12141 24 12141 16 12142 3 12143 3 12144 1 12144 2 12144 3 12144 11 12144 36 12146 1 12147 3 12147 16 12148 4 12148 9 10035 27 4709 23 4709 11 4709 4 10056 24 10056 14 8637 5 8637 1 12150 3 12152 3 12152 36 12153 3 12153 36 12149 1 12149 2 12149 3 12149 11 12149 40 6974 16 12151 41 12154 16 12155 4 12155 11 12155 19 11818 1 1644 27 1644 1 12063 5 12156 3 12156 4 12156 13 12157 35 11607 4 11607 35 12158 13 12159 35 12159 6 12160 35 12160 5 12161 40 12162 35 12163 3 12163 13 12164 1 12164 3 12164 11 12164 27 12164 22 12165 35 12166 3 12166 11 12166 40 970 25 12167 14 12167 24 212 28 212 1 12168 3 12168 40 12168 36 12168 24 12169 40 12170 3 12171 3 12171 36 12171 23 12172 3 12173 11 12174 11 12175 3 12176 1 12176 2 12176 3 12177 3 12177 25 12178 3 12178 31 12179 4 12180 3 12180 16 12181 1 12181 3 12181 30 12182 8 12182 35 12182 14 12182 24 6670 14 5812 14 12183 4 12183 27 12183 28 12184 47 12184 41 12184 9 12184 8 12185 35 12186 35 12187 35 12188 35 12189 35 12190 4 12190 35 12191 35 12192 35 12193 35 12194 35 12195 35 12196 35 12183 7 11320 4 10065 11 10065 4 12197 14 12197 16 4887 36 4887 3 12198 30 12198 28 12198 6 12198 5 12198 1 12199 31 12199 14 12199 11 12199 9 12199 3 10880 14 7901 14 12200 35 12201 35 12201 24 12201 16 12202 4 12202 10 12203 28 12203 24 12204 2 12204 3 12204 30 12205 1 12205 3 12205 25 12205 11 12205 34 629 47 630 47 12206 35 12206 9 12206 26 12207 35 12208 35 12209 35 12210 35 12211 35 12212 35 12212 20 12213 35 12214 35 12215 3 12215 35 12216 29 12216 35 12217 4 12217 35 12218 35 12219 35 12219 6 12220 35 12221 35 12221 9 12222 35 12223 35 12223 9 12224 4 12225 3 12225 25 12225 11 12225 8 12226 46 12226 16 12227 11 12227 2 12228 1 12228 2 12228 3 12228 4 12228 11 12229 3 12230 4 12230 11 12231 1 12231 11 12231 7 12231 9 6169 16 6169 14 12232 4 12232 16 12233 3 12233 27 12233 14 12234 7 12235 1 12235 30 12235 5 12236 2 12237 4 12237 11 12237 8 12237 47 12019 11 11410 9 11410 4 12238 1 12238 3 12238 19 7199 49 90 47 12239 1 12239 3 12239 11 12239 8 12240 16 7002 46 7002 16 7002 14 705 4 705 2 11209 21 11437 14 11818 2 12241 35 12241 24 12241 16 12242 7 12243 3 12243 11 12243 16 8737 28 8737 1 6686 16 8270 49 8270 4 12244 8 3332 1 12244 47 12245 3 12245 4 12245 14 12245 39 11825 6 12246 46 12246 35 12247 44 12247 30 12247 5 12248 44 12248 30 12248 5 12249 44 12249 30 12249 5 12249 4 12249 1 12250 1 12250 23 12250 9 12251 4 12251 27 12251 46 12252 44 12252 30 12252 5 12252 1 12253 1 12253 2 12253 11 12254 4 12254 40 12256 35 12256 24 12256 16 12257 41 12258 3 12258 35 12259 41 12260 1 12260 27 12260 28 12263 35 12255 3 12255 14 12255 16 6462 49 1742 47 10513 47 11688 47 2752 47 1375 47 1739 47 558 47 12261 4 12261 28 12261 35 12262 2 12262 35 12264 35 11682 19 12265 1 12265 24 12266 29 12267 3 12267 34 12267 14 12267 24 12268 1 12268 3 12268 24 12268 23 8130 47 12269 3 12270 14 12270 24 12271 3 11818 14 11818 36 12272 2 12272 3 12272 11 12272 8 12272 24 12273 1 12273 11 12273 8 12273 5 12274 3 12274 16 8149 11 8149 2 12275 1 12275 31 12275 11 12275 9 12276 3 12276 14 12276 9 12277 3 12277 14 12278 24 12278 3 12279 44 12279 11 12279 3 12279 1 12280 41 12281 1 12281 31 12282 41 8193 4 12283 1 12283 11 11023 1
insert into datetime_at(id, created_at, updated_at) value(UUID_TO_BIN('17ee6fd8-1e3c-4737-9c67-5b231cc4a6b1'), '2020-06-29 19:49:35', '2020-06-29 19:49:35');
CREATE INDEX index_servers_port ON servers (server_port); CREATE INDEX index_messages_msgidtoclid_read ON messages (message_to_client_id, message_flag_read);
INSERT INTO public.partsupp VALUES (169293, 1810, 5411, 408.55, 'mpress across the quickly regular packages. slyly express deposits sublate slyly quickly regular dependencies. furiously final deposits haggle furiously according to the'); INSERT INTO public.partsupp VALUES (16355, 8857, 7832, 54.15, 'ts about the carefully regular realms haggle slyly pending ideas? multipliers nag blithely. even packages sleep according t'); INSERT INTO public.partsupp VALUES (171152, 1153, 9019, 351.62, 'gedly slow excuses cajole furiously. express accounts are slyly. packages cajole! blithely regular instructions boost slowly. '); INSERT INTO public.partsupp VALUES (141365, 1366, 1683, 802.96, '. frays nag. fluffily ironic asymptotes after the even packages use furiously after the blithely '); INSERT INTO public.partsupp VALUES (141365, 8908, 4061, 992.08, 'requests nag quickly according to the accounts. carefully bold packages about the slyly even requests are ironic foxes. quickly bold pinto'); INSERT INTO public.partsupp VALUES (181540, 4059, 7371, 573.99, 'ckly accounts. furiously special requests haggle fluffily final packages. quietly even platelets affix furiously unusual'); INSERT INTO public.partsupp VALUES (29153, 4158, 4867, 787.92, 'usly even sentiments are blithely requests. regular packages at the even frets haggle slyly stealthily special ideas. ironic foxes against the deposits use carefully slyly unusual reque'); INSERT INTO public.partsupp VALUES (29153, 9154, 6903, 692.54, 'ress excuses sleep fluffily! pending theodolites breach ironically. silent, final sheaves na'); INSERT INTO public.partsupp VALUES (46058, 3571, 9393, 429.33, 'c platelets would doze carefully bold requests. special packages according to the accounts play furiously acc'); INSERT INTO public.partsupp VALUES (72177, 4685, 2928, 69.03, 'lar deposits haggle. blithely regular instructions sleep blithely. carefully enticing dolphins cajole furiously final, even foxes. blithely unusual deposits print carefully ironic accounts. '); INSERT INTO public.partsupp VALUES (13245, 3246, 7282, 817.05, 'even instructions among the furiously final foxes haggle fluffily across the slyly ironic dependencies. slyly pending'); INSERT INTO public.partsupp VALUES (13245, 8248, 8774, 103.96, 'nding asymptotes cajole fluffily according to the carefully regular theodolites. regular decoys across the '); INSERT INTO public.partsupp VALUES (136674, 1701, 4475, 468.63, 'sly pending deposits wake unusual excuses. slyly regular pinto beans wake blit'); INSERT INTO public.partsupp VALUES (77145, 4667, 2794, 344.95, 'onic packages. unusual multipliers haggle fluffily. furiously bold platelets boost furiously--'); INSERT INTO public.partsupp VALUES (193267, 3268, 9574, 947.01, ' dolphins. packages haggle carefully. always silent platelets doubt blithely express, pending requests. pending foxes along the slyly silent foxes breach after the blithely un');
CREATE OR REPLACE FUNCTION public.trigger_set_transferred_at() RETURNS trigger LANGUAGE plpgsql AS $function$ BEGIN IF NEW.owner_id <> OLD.owner_id THEN NEW.list_price = null, NEW.auction_start = null, NEW.auction_end = null, NEW.max_extensions = null, NEW.extension_interval = null, NEW.reserve_price = null, NEW.bid_increment = null, NEW.transferred_at = NOW(); END IF; RETURN NEW; END; $function$;
-- file:bit.sql ln:60 expect:false X0F X10 X1F X11 X2F X12 X3F X13 X8F X04 X000F X0010 X0123 XFFFF X2468 X2468 XFA50 X05AF X1234 XFFF5 \. SELECT a, b, ~a AS "~ a", a & b AS "a & b", a | b AS "a | b", a # b AS "a # b" FROM varbit_table
ALTER TABLE semesters ADD edyoucated_team_id TEXT;
<filename>postgres/init.sql<gh_stars>0 DROP SCHEMA IF EXISTS mythgard CASCADE; CREATE SCHEMA mythgard; CREATE OR REPLACE FUNCTION mythgard.current_user_id() RETURNS integer as $$ SELECT nullif(current_setting('jwt.claims.userId', true), '')::integer; $$ language sql stable; CREATE TYPE mythgard.rarity AS ENUM ('COMMON', 'UNCOMMON', 'RARE', 'MYTHIC'); CREATE TYPE mythgard.cardType AS ENUM ('MINION', 'SPELL', 'ENCHANTMENT', 'ARTIFACT', 'ITEM', 'BRAND'); CREATE ROLE admin; CREATE ROLE authd_user; CREATE ROLE anon_user; CREATE TABLE mythgard.card ( id SERIAL PRIMARY KEY, name varchar(255), rules TEXT, supertype mythgard.cardType[] default '{MINION}', subtype varchar(255), atk integer, def integer, mana integer, gem varchar(10), rarity mythgard.rarity default 'COMMON' ); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem, rarity, supertype) VALUES ('Furball', 'rules', 'cat', '1', '2', '3', 'B', 'COMMON', '{MINION}'); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem, rarity, supertype) VALUES ('Imp', 'rules', 'devil', '2', '1', '2', 'R', 'UNCOMMON', '{SPELL}'); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem, rarity, supertype) VALUES ('Grizzly Bear', 'rules', 'bear', '2', '2', '2', 'O', 'RARE', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem, rarity, supertype) VALUES ('Dragon', 'flying', 'dragon', '5', '5', '1', 'G', 'MYTHIC', '{ARTIFACT}'); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem, supertype) VALUES ('Vampire', 'lifelink', 'vampire', '2', '2', '1', 'PP', '{MINION,ARTIFACT}'); INSERT INTO mythgard.card (name, rules, subtype, atk, def, mana, gem) VALUES ('Harmony Beast', 'friendly', 'beast', '3', '3', '1', 'YY'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Cairnhenge', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 1', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 2', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 3', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 4', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 5', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 6', 'rock', 'Earth Enchantment', '1', 'Y', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 7', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 8', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Common 9', 'rock', 'Earth Enchantment', '1', 'B', 'COMMON', '{ENCHANTMENT}'); INSERT INTO mythgard.card (name, rules, subtype, mana, gem, rarity, supertype) VALUES ('Ghul', 'rock', 'Earth Enchantment', '1', 'R', 'RARE', '{MINION}'); CREATE TABLE mythgard.card_spawn ( card_id int CONSTRAINT spawner_card_id_fkey REFERENCES mythgard.card (id), spawn_id int CONSTRAINT spawnee_card_id_fkey REFERENCES mythgard.card (id), PRIMARY KEY (card_id, spawn_id) ); INSERT INTO mythgard.card_spawn (card_id, spawn_id) VALUES (2, 6), (2,7); CREATE TABLE mythgard.essence_costs ( rarity Mythgard.rarity, essence integer ); insert into mythgard.essence_costs (rarity, essence) values ('MYTHIC', 2400); insert into mythgard.essence_costs (rarity, essence) values ('RARE', 500); insert into mythgard.essence_costs (rarity, essence) values ('UNCOMMON', 100); insert into mythgard.essence_costs (rarity, essence) values ('COMMON', 50); CREATE TABLE mythgard.path ( id SERIAL PRIMARY KEY, name varchar(255), rules TEXT ); INSERT INTO mythgard.path ("name", "rules") VALUES ('Way of the Black Lotus', 'lorems'); INSERT INTO mythgard.path ("name", "rules") VALUES ('Path to Redemption', 'lorems'); INSERT INTO mythgard.path ("name", "rules") VALUES ('Path Variable', 'lorems'); CREATE TABLE mythgard.power ( id SERIAL PRIMARY KEY, name varchar(255), rules TEXT ); INSERT INTO mythgard.power ("name", "rules") VALUES ('It''s over 9000!!', 'lorems'); INSERT INTO mythgard.power ("name", "rules") VALUES ('Power Rangers', 'lorems'); INSERT INTO mythgard.power ("name", "rules") VALUES ('Powerpuff Girls', 'lorems'); -- In PostgreSQL, user is a keyword CREATE TABLE mythgard.account ( id SERIAL PRIMARY KEY, google_id varchar(255) UNIQUE, email varchar(255) UNIQUE, username varchar(255) UNIQUE, registered timestamp default current_timestamp ); INSERT INTO mythgard.account ("username") VALUES ('lsv'); CREATE TABLE mythgard.deck ( id SERIAL PRIMARY KEY, name varchar(255), author_id integer REFERENCES mythgard.account (id), path_id integer REFERENCES mythgard.path (id), power_id integer REFERENCES mythgard.power (id), modified timestamp default current_timestamp, created timestamp default current_timestamp ); INSERT INTO mythgard.deck("name", "author_id") VALUES ('dragons', 1); INSERT INTO mythgard.deck("name", "path_id", "power_id", "author_id") VALUES ('cats', 1, 1, 1); INSERT INTO mythgard.deck("name", "modified") VALUES ('all_factions', current_date - interval '1 month'); INSERT INTO mythgard.deck("name", "modified") VALUES ('norden aztlan', current_date - interval '9 month'); ALTER TABLE mythgard.deck ENABLE ROW LEVEL SECURITY; -- Admin users can make any changes and read all rows CREATE POLICY deck_admin_all ON mythgard.deck TO admin USING (true) WITH CHECK (true); -- Non-admins can read all rows CREATE POLICY deck_all_view ON mythgard.deck FOR SELECT USING (true); -- Only create a deck for yourself CREATE POLICY deck_insert_if_author ON mythgard.deck FOR INSERT WITH CHECK ("author_id" = mythgard.current_user_id()); -- Rows can only be updated by their author CREATE POLICY deck_update_if_author ON mythgard.deck FOR UPDATE USING ("author_id" = mythgard.current_user_id()) WITH CHECK ("author_id" = mythgard.current_user_id()); -- Rows can only be updated by their author CREATE POLICY deck_delete_if_author ON mythgard.deck FOR DELETE USING ("author_id" = mythgard.current_user_id()); CREATE TABLE mythgard.card_deck ( id SERIAL PRIMARY KEY, quantity integer, deck_id integer, card_id integer, FOREIGN KEY (deck_id) REFERENCES mythgard.deck (id) ON DELETE CASCADE, FOREIGN KEY (card_id) REFERENCES mythgard.card (id), UNIQUE(deck_id, card_id) ); INSERT INTO mythgard.card_deck("deck_id", "card_id", "quantity") VALUES (1, 4, 2); INSERT INTO mythgard.card_deck("deck_id", "card_id", "quantity") VALUES (2, 1, 1); INSERT INTO mythgard.card_deck("deck_id", "card_id", "quantity") VALUES (3, 1, 1), (3, 2, 1), (3, 3, 1), (3, 4, 1), (3, 5, 1), (3, 6, 1); INSERT INTO mythgard.card_deck("deck_id", "card_id", "quantity") VALUES (4, 1, 1), (4, 2, 1); ALTER TABLE mythgard.card_deck ENABLE ROW LEVEL SECURITY; -- Admin users can make any changes and read all rows CREATE POLICY card_deck_admin_all ON mythgard.card_deck TO admin USING (true) WITH CHECK (true); -- Non-admins can read all rows CREATE POLICY card_deck_all_view ON mythgard.card_deck FOR SELECT USING (true); -- Only create a card_deck for yourself CREATE POLICY card_deck_insert_if_author ON mythgard.card_deck FOR INSERT -- make sure deck.author equals mythgard.current_user_id WITH CHECK (exists(select deck.author_id, deck.id from mythgard.deck where deck.author_id = mythgard.current_user_id() AND "deck_id" = deck.id)); -- Rows can only be updated by their author CREATE POLICY card_deck_update_if_author ON mythgard.card_deck FOR UPDATE WITH CHECK (exists(select deck.author_id, deck.id from mythgard.deck where deck.author_id = mythgard.current_user_id() AND "deck_id" = deck.id)); -- Rows can only be deleted by their author CREATE POLICY card_deck_delete_if_author ON mythgard.card_deck FOR DELETE USING (exists(select deck.author_id, deck.id from mythgard.deck where deck.author_id = mythgard.current_user_id() AND "deck_id" = deck.id)); CREATE OR REPLACE FUNCTION mythgard.update_deck_and_remove_cards ( _id integer, _name varchar(255), _path_id integer, _power_id integer ) RETURNS mythgard.deck as $$ DELETE FROM mythgard.card_deck WHERE deck_id = _id; UPDATE mythgard.deck SET name = _name, path_id = _path_id, power_id = _power_id WHERE id = _id RETURNING * $$ LANGUAGE sql VOLATILE; CREATE TABLE mythgard.deck_vote ( id SERIAL PRIMARY KEY, deck_id integer, account_id integer, FOREIGN KEY (deck_id) REFERENCES mythgard.deck (id) ON DELETE CASCADE, FOREIGN KEY (account_id) REFERENCES mythgard.account (id) ON DELETE CASCADE, UNIQUE(deck_id, account_id) ); INSERT INTO mythgard.deck_vote("deck_id", "account_id") VALUES (1, 1); CREATE TABLE mythgard.deck_featured ( id SERIAL PRIMARY KEY, deck_id integer, FOREIGN KEY (deck_id) REFERENCES mythgard.deck (id) ON DELETE CASCADE ); INSERT INTO mythgard.deck_featured("deck_id") VALUES (1); CREATE OR REPLACE FUNCTION mythgard.find_account_or_create_by_google ( _google_id varchar(255), _email varchar(255), _username varchar(255) ) RETURNS mythgard.account as $$ INSERT INTO mythgard.account (google_id, email, username) VALUES (_google_id, _email, _username) ON CONFLICT (google_id) DO UPDATE SET email = _email RETURNING * $$ LANGUAGE sql VOLATILE; ALTER TABLE mythgard.account ENABLE ROW LEVEL SECURITY; -- Admin users can make any changes and read all rows CREATE POLICY admin_all ON mythgard.account TO admin USING (true) WITH CHECK (true); -- Non-admins can read all rows CREATE POLICY all_view ON mythgard.account FOR SELECT USING (true); -- Rows can only be updated by their author CREATE POLICY accountupdate_if_author ON mythgard.account FOR UPDATE USING ("id" = mythgard.current_user_id()) WITH CHECK ("id" = mythgard.current_user_id()); CREATE TABLE mythgard.tournament ( id SERIAL PRIMARY KEY, name varchar(255), url text, organizer varchar(255), date date ); INSERT INTO mythgard.tournament("name", "date", "url", "organizer") VALUES ('The Battle of Deimos', '2019-07-26', 'http://www.mythgardhub.com', 'mgh'), ('The Iron Rain', '3000-01-01', 'http://www.mythgardhub.com', 'rhino games'); CREATE TABLE mythgard.tournament_deck ( id SERIAL PRIMARY KEY, rank integer, pilot varchar(255), tournament_id integer, deck_id integer, FOREIGN KEY (tournament_id) REFERENCES mythgard.tournament (id) ON DELETE CASCADE, FOREIGN KEY (deck_id) REFERENCES mythgard.deck (id) ON DELETE CASCADE ); INSERT INTO mythgard.tournament_deck("rank", "tournament_id", "deck_id", "pilot") VALUES (1, 1, 1, 'lsv'), (2, 1, 2, 'pvdr'); CREATE TABLE mythgard.faction ( id SERIAL PRIMARY KEY, name varchar(255) ); INSERT INTO mythgard.faction("name") VALUES ('norden'), ('aztlan'), ('oberos'), ('dreni'), ('parsa'), ('harmony'); CREATE TABLE mythgard.card_faction ( id SERIAL PRIMARY KEY, card_id integer, faction_id integer, FOREIGN KEY (card_id) REFERENCES mythgard.card (id), FOREIGN KEY (faction_id) REFERENCES mythgard.faction (id) ); INSERT INTO mythgard.card_faction("card_id","faction_id") VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 1), (8, 2), (9, 3), (10, 4), (11, 5), (12, 6), (13, 1), (14, 1), (15, 1), (16, 1), (17, 2); -- Save deck modification time so decks can be searched by last update time CREATE OR REPLACE FUNCTION update_modified_column() RETURNS TRIGGER AS $$ BEGIN IF row(NEW.*) IS DISTINCT FROM row(OLD.*) THEN NEW.modified = now(); RETURN NEW; ELSE RETURN OLD; END IF; END; $$ language 'plpgsql'; CREATE OR REPLACE VIEW mythgard.deck_preview as SELECT deck.id as deck_id, deck.name as deck_name, deck.created as deck_created, array_agg(DISTINCT faction.name) as factions, sum(essence_costs.essence * card_deck.quantity)::int as essence_cost, count(deck_vote)::int as votes FROM mythgard.deck JOIN mythgard.card_deck ON card_deck.deck_id = deck.id JOIN mythgard.card ON card_deck.card_id = card.id LEFT JOIN mythgard.card_faction ON (card.id = card_faction.card_id and card_faction.faction_id is not null) LEFT JOIN mythgard.faction On faction.id = card_faction.faction_id LEFT JOIN mythgard.essence_costs On essence_costs.rarity = card.rarity LEFT JOIN mythgard.deck_vote On deck_vote.deck_id = deck.id GROUP BY deck.id ; -- See https://www.graphile.org/postgraphile/smart-comments/#foreign-key -- But basically is for postgraphile to see relation to deck comment on view mythgard.deck_preview is E'@foreignKey (deck_id) references mythgard.deck'; CREATE TRIGGER update_deck_modtime BEFORE UPDATE ON mythgard.deck FOR EACH ROW EXECUTE PROCEDURE update_modified_column(); -- INDEXES FOR QUERIES CREATE INDEX deck_name_index ON mythgard.deck USING gin(to_tsvector('simple',deck.name)); CREATE INDEX author_name_index ON mythgard.account USING gin(to_tsvector('simple',account.username)); -- CUSTOM QUERIES FOR GRAPHQL -- search_decks -- searches for decks (advanced search with several criteria) -- RETURNS setof deck -- PARAMS: -- deckName str or null - name of deck (prefix only, so finds dragons given drag but not given rag) -- authorName str or null - name of author (prefix only, so finds alex given al but not given lex) -- deckModified str or null - modified on or after given date (e.g. "2019-07-11") -- card1 int or null - id of card being searched for (search supports at most 5 cards) -- card2 int or null - id of card being searched for (search supports at most 5 cards) -- card3 int or null - id of card being searched for (search supports at most 5 cards) -- card4 int or null - id of card being searched for (search supports at most 5 cards) -- card5 int or null - id of card being searched for (search supports at most 5 cards) -- faction1 int or null - id of a faction that deck must contain -- faction2 int or null - id of a faction that deck must contain -- faction3 int or null - id of a faction that deck must contain -- faction4 int or null - id of a faction that deck must contain -- faction5 int or null - id of a faction that deck must contain -- faction6 int or null - id of a faction that deck must contain -- numFactions int or null - number of specified factions. Omit to allow more factions than specifed. create or replace function mythgard.search_decks(deckName varchar(255), authorName varchar(255), deckModified date, card1 integer, card2 Integer, card3 Integer, card4 Integer, card5 Integer, faction1 integer, faction2 integer, faction3 integer, faction4 integer, faction5 integer, faction6 integer, numFactions integer) returns setof mythgard.deck as $$ SELECT deck.* FROM mythgard.deck LEFT JOIN mythgard.card_deck ON (card_deck.deck_id = deck.id) LEFT JOIN mythgard.card ON (card.id = card_deck.card_id) LEFT JOIN mythgard.account ON (account.id = deck.author_id) -- deck name filter WHERE (deckName is NULL or deckName = '' or to_tsvector('simple', deck.name) @@ to_tsquery('simple',deckName || ':*')) -- author name filter AND (authorName is NULL or authorName = '' or to_tsvector('simple', account.username) @@ to_tsquery('simple',authorName || ':*')) -- modification date filter AND (deckModified is NULL or deck.modified >= deckModified) intersect -- cards filter SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) where card1 is null or card.id = card1 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) where card2 is null or card.id = card2 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) where card3 is null or card.id = card3 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) where card4 is null or card.id = card4 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) where card5 is null or card.id = card5 intersect -- factions filter SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) group by deck.id having numFactions is NULL or numFactions = 0 or count(distinct faction.id) = numFactions intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction1 is null or faction.id = faction1 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction2 is null or faction.id = faction2 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction3 is null or faction.id = faction3 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction4 is null or faction.id = faction4 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction5 is null or faction.id = faction5 intersect SELECT deck.* from mythgard.deck left join mythgard.card_deck on (deck.id = card_deck.deck_id) left join mythgard.card on (card.id = card_deck.card_id) left join mythgard.card_faction on (card.id = card_faction.card_id) left join mythgard.faction on (faction.id = card_faction.faction_id) where faction6 is null or faction.id = faction6 GROUP BY deck.id LIMIT 2000; $$ language sql stable; -- END QUERIES -- Create a user for Postgraphile to connect as which has permissions -- to the mythgard schema CREATE USER postgraphile WITH password '<PASSWORD>'; GRANT ALL PRIVILEGES ON SCHEMA mythgard TO postgraphile; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA mythgard TO postgraphile; -- The Postgraphile user needs privileges to set role for itself GRANT authd_user TO postgraphile; GRANT anon_user TO postgraphile; GRANT ALL PRIVILEGES ON SCHEMA mythgard TO admin; GRANT ALL PRIVILEGES ON SCHEMA mythgard TO authd_user; GRANT ALL PRIVILEGES ON SCHEMA mythgard TO anon_user; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA mythgard TO admin; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA mythgard TO authd_user; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA mythgard TO anon_user; GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA mythgard TO admin; GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA mythgard TO authd_user; GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA mythgard TO anon_user; -- Set specific permissions for sensitive tables REVOKE ALL PRIVILEGES ON TABLE mythgard.account FROM authd_user; REVOKE ALL PRIVILEGES ON TABLE mythgard.account FROM anon_user; GRANT SELECT ON TABLE mythgard.account TO authd_user; GRANT UPDATE (username) ON TABLE mythgard.account TO authd_user; GRANT SELECT (id, username) ON TABLE mythgard.account TO anon_user; \echo 'Remember to update the postgraphile users pw with the production version in the kubernetes secrets file.';
<filename>conf/evolutions/default/3.sql # --- !Ups create table knownRevision( branch varchar(128) primary key, revision varchar(40) ); create table defaultBenchmark( id identity primary key, branch varchar(128), benchmarkId bigint, foreign key (branch) references knownRevision (branch) on delete cascade ); # --- !Downs drop table knownRevision; drop table defaultBenchmark;
<filename>newD6.sql -- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Apr 02, 2015 at 03:55 AM -- Server version: 5.5.38 -- PHP Version: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `SENG301DB` -- -- -------------------------------------------------------- -- -- Table structure for table `adminUser` -- CREATE TABLE `adminUser` ( `username` varchar(15) NOT NULL, `password` varchar(25) NOT NULL, `fname` varchar(25) NOT NULL, `lname` varchar(25) NOT NULL, `email` varchar(30) NOT NULL, `phoneNum` int(25) NOT NULL, `restName` varchar(25) NOT NULL, `restLoc` varchar(25) NOT NULL, `restType` varchar(25) NOT NULL, `restNum` varchar(25) NOT NULL, `reservation` varchar(25) NOT NULL, `uniqID` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `customerUser` -- CREATE TABLE `customerUser` ( `username` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, `fname` varchar(20) NOT NULL, `lname` varchar(20) NOT NULL, `email` varchar(50) DEFAULT NULL, `phoneNum` varchar(15) DEFAULT NULL, `favFood` varchar(50) NOT NULL, `favRest` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `order` -- CREATE TABLE `order` ( `foodName` varchar(30) NOT NULL, `foodPrice` int(20) NOT NULL, `customer` varchar(30) NOT NULL, `itemNo` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `restaurant1` -- CREATE TABLE `restaurant1` ( `foodName` varchar(20) NOT NULL, `foodDesc` varchar(100) NOT NULL, `foodPrice` int(11) NOT NULL, `ing1` varchar(20) DEFAULT NULL, `ing2` varchar(20) NOT NULL, `ing3` varchar(20) NOT NULL, `ing4` varchar(20) NOT NULL, `ing5` varchar(20) NOT NULL, `ing6` varchar(20) NOT NULL, `foodCategory` varchar(20) DEFAULT NULL, `restID` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `adminUser` -- ALTER TABLE `adminUser` ADD PRIMARY KEY (`username`), ADD UNIQUE KEY `uniqID` (`uniqID`); -- -- Indexes for table `customerUser` -- ALTER TABLE `customerUser` ADD PRIMARY KEY (`username`); -- -- Indexes for table `order` -- ALTER TABLE `order` ADD PRIMARY KEY (`itemNo`); -- -- Indexes for table `restaurant1` -- ALTER TABLE `restaurant1` ADD PRIMARY KEY (`foodName`);
# Users schema # --- !Ups CREATE TABLE Users ( id IDENTITY PRIMARY KEY, name VARCHAR(255) NOT NULL, is_active BOOLEAN NOT NULL ); # --- !Downs DROP TABLE User;
<reponame>pauldraper/piezo<filename>worker/src/main/resources/piezo_mysql_4.sql<gh_stars>10-100 INSERT INTO trigger_monitoring_priority (trigger_name, trigger_group, priority) SELECT TRIGGER_NAME, TRIGGER_GROUP, 3 from QRTZ_TRIGGERS;
with Invoice_create_events as ( select * from {{ ref('Invoice_create_events') }} ), Invoice_payment_events as ( select * from {{ ref('Invoice_payment_events') }} ), Purchase_order_approve_events as ( select * from {{ ref('Purchase_order_approve_events') }} ), Purchase_order_change_events as ( select * from {{ ref('Purchase_order_change_events') }} ), Purchase_order_create_events as ( select * from {{ ref('Purchase_order_create_events') }} ), /* Union all separate events table into one set of distinct events. This events table is used as a base for the event log. The columns on each of the events tables should be exactly the same to union them. */ Events_base as ( select -- Mandatory event fields Invoice_create_events."Activity", Invoice_create_events."Event_end", Invoice_create_events."Invoice_ID", null as "Purchase_order_ID", -- Optional event fields Invoice_create_events."Event_detail", Invoice_create_events."Team", Invoice_create_events."Creator" as "User" from Invoice_create_events union all select -- Mandatory event fields Invoice_payment_events."Activity", Invoice_payment_events."Event_end", Invoice_payment_events."Invoice_ID", null as "Purchase_order_ID", -- Optional event fields Invoice_payment_events."Event_detail", Invoice_payment_events."Team", Invoice_payment_events."Creator" as "User" from Invoice_payment_events union all select -- Mandatory event fields Purchase_order_approve_events."Activity", Purchase_order_approve_events."Event_end", null as "Invoice_ID", Purchase_order_approve_events."Purchase_order_ID", -- Optional event fields null as "Event_detail", Purchase_order_approve_events."Team", Purchase_order_approve_events."Approved_by" as "User" from Purchase_order_approve_events union all select -- Mandatory event fields Purchase_order_change_events."Activity", Purchase_order_change_events."Event_end", null as "Invoice_ID", Purchase_order_change_events."Purchase_order_ID", -- Optional event fields Purchase_order_change_events."Event_detail", Purchase_order_change_events."Team", Purchase_order_change_events."User" from Purchase_order_change_events union all select -- Mandatory event fields Purchase_order_create_events."Activity", Purchase_order_create_events."Event_end", null as "Invoice_ID", Purchase_order_create_events."Purchase_order_ID", -- Optional event fields null as "Event_detail", Purchase_order_create_events."Team", Purchase_order_create_events."Creator" as "User" from Purchase_order_create_events ) select *, -- An event ID is generated to join event properties to the event log. row_number() over (order by Events_base."Event_end") as "Event_ID_internal" from Events_base
CREATE TABLE [Accounting].[Projects] ( [ProjectID] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (50) NOT NULL, [CustomerID] INT NOT NULL, [HourlyRate] FLOAT (53) NULL, [DefaultMiles] FLOAT (53) NULL, [DefaultTermID] INT NULL, CONSTRAINT [PK_Projects] PRIMARY KEY CLUSTERED ([ProjectID] ASC), CONSTRAINT [FK_Projects_Customers] FOREIGN KEY ([CustomerID]) REFERENCES [Common].[Customers] ([CustomerID]), CONSTRAINT [FK_Projects_Terms] FOREIGN KEY ([DefaultTermID]) REFERENCES [Accounting].[Terms] ([TermID]) );
SELECT * FROM listing WHERE checksum IN ( SELECT checksum FROM ( SELECT checksum, ROW_NUMBER() OVER (PARTITION BY checksum ORDER BY id ASC) AS Row FROM listing) dups WHERE dups.Row > 1)
DROP PROCEDURE IF EXISTS sp_tbl_EmployeeServiceMapping; DELIMITER $$ CREATE PROCEDURE sp_tbl_EmployeeServiceMapping() BEGIN DECLARE currentSchema varchar(100); SELECT database() into currentSchema; IF NOT EXISTS( SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = currentSchema AND TABLE_NAME = 'tbl_EmployeeServiceMapping' ) THEN CREATE TABLE IF NOT EXISTS `tbl_EmployeeServiceMapping` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_id` int(11) DEFAULT NULL, `service_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ); end if; end$$ DELIMITER ; CALL sp_tbl_EmployeeServiceMapping(); DROP PROCEDURE IF EXISTS sp_tbl_EmployeeServiceMapping;
<reponame>Mwong228/EmployeeTracker use sql_employees; INSERT INTO department (name) VALUES ('Marketing'), ('HR'), ('Finance') ('Sales'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Associate', 50000, 4), ('Business Analyst Lead', 65000, 3), ('Staff Accountant', 50000, 3), ('HR Manager', 100000, 2), ('Marketing Intern', 45000, 1); INSERT INTO employee (first_name, last_namem, role_id, manager_id) VALUES ('Bob', 'Smith', 1, 2) ('Tom', 'Walker', 2, NULL) ('Billy', 'Jones', 3, 2) ('Sam', 'Parker', 4, NULL) ('Zoe', 'Griffin', 5, 4)
<gh_stars>0 CREATE TABLE events( ID INT NOT NULL AUTO_INCREMENT, PersonID INT, StartDate DATE, EndDate DATE, Name VARCHAR(50), PRIMARY KEY (ID) ); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDate`, `Name`) VALUES (5, '2015-12-11', '2016-12-20', '<NAME>'); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDate`, `Name`) VALUES (4, '2017-01-15', '2017-01-17', 'Morgenland'); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDate`, `Name`) VALUES (6, '2017-05-05', '2017-03-22', 'Wow Koel!'); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDate`, `Name`) VALUES (5, '2016-01-01', '2017-01-01', 'Puppy Day');
<gh_stars>0 --- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "geodetic_crs" VALUES('EPSG','3819','HD1909',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1024','EPSG','1119',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3821','TWD67',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1025','EPSG','3315',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3822','TWD97',NULL,NULL,'geocentric','EPSG','6500','EPSG','1026','EPSG','1228',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3823','TWD97',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1026','EPSG','1228',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3824','TWD97',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1026','EPSG','1228',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3887','IGRS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1029','EPSG','1124',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3888','IGRS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1029','EPSG','1124',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3889','IGRS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1029','EPSG','1124',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3906','MGI 1901',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1031','EPSG','2370',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4000','MOLDREF99',NULL,NULL,'geocentric','EPSG','6500','EPSG','1032','EPSG','1162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4001','Unknown datum based upon the Airy 1830 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6001','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4002','Unknown datum based upon the Airy Modified 1849 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6002','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4003','Unknown datum based upon the Australian National Spheroid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6003','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4004','Unknown datum based upon the Bessel 1841 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6004','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4005','Unknown datum based upon the Bessel Modified ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6005','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4006','Unknown datum based upon the Bessel Namibia ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6006','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4007','Unknown datum based upon the Clarke 1858 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6007','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4008','Unknown datum based upon the Clarke 1866 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6008','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4009','Unknown datum based upon the Clarke 1866 Michigan ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6009','EPSG','1263',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4010','Unknown datum based upon the Clarke 1880 (Benoit) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6010','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4011','Unknown datum based upon the Clarke 1880 (IGN) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6011','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4012','Unknown datum based upon the Clarke 1880 (RGS) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6012','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4013','Unknown datum based upon the Clarke 1880 (Arc) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6013','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4014','Unknown datum based upon the Clarke 1880 (SGA 1922) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6014','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4015','Unknown datum based upon the Everest 1830 (1937 Adjustment) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6015','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4016','Unknown datum based upon the Everest 1830 (1967 Definition) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6016','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4017','MOLDREF99',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1032','EPSG','1162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4018','Unknown datum based upon the Everest 1830 Modified ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6018','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4019','Unknown datum based upon the GRS 1980 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6019','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4020','Unknown datum based upon the Helmert 1906 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6020','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4021','Unknown datum based upon the Indonesian National Spheroid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6021','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4022','Unknown datum based upon the International 1924 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6022','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4023','MOLDREF99',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1032','EPSG','1162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4024','Unknown datum based upon the Krassowsky 1940 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6024','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4025','Unknown datum based upon the NWL 9D ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6025','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4027','Unknown datum based upon the Plessis 1817 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6027','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4028','Unknown datum based upon the Struve 1860 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6028','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4029','Unknown datum based upon the War Office ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6029','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4030','Unknown datum based upon the WGS 84 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6030','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4031','Unknown datum based upon the GEM 10C ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6031','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4032','Unknown datum based upon the OSU86F ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6032','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4033','Unknown datum based upon the OSU91A ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6033','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4034','Unknown datum based upon the Clarke 1880 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6034','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4035','Unknown datum based upon the Authalic Sphere',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6035','EPSG','1263',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4036','Unknown datum based upon the GRS 1967 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6036','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4039','RGRDC 2005',NULL,NULL,'geocentric','EPSG','6500','EPSG','1033','EPSG','3613',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4040','RGRDC 2005',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1033','EPSG','3613',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4041','Unknown datum based upon the Average Terrestrial System 1977 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6041','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4042','Unknown datum based upon the Everest (1830 Definition) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6042','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4043','Unknown datum based upon the WGS 72 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6043','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4044','Unknown datum based upon the Everest 1830 (1962 Definition) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6044','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4045','Unknown datum based upon the Everest 1830 (1975 Definition) ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6045','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4046','RGRDC 2005',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1033','EPSG','3613',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4047','Unspecified datum based upon the GRS 1980 Authalic Sphere',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6047','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4052','Unspecified datum based upon the Clarke 1866 Authalic Sphere',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6052','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4053','Unspecified datum based upon the International 1924 Authalic Sphere',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6053','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4054','Unspecified datum based upon the Hughes 1980 ellipsoid',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6054','EPSG','1263',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4055','Popular Visualisation CRS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6055','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4073','SREF98',NULL,NULL,'geocentric','EPSG','6500','EPSG','1034','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4074','SREF98',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1034','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4075','SREF98',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1034','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4079','REGCAN95',NULL,NULL,'geocentric','EPSG','6500','EPSG','1035','EPSG','3199',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4080','REGCAN95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1035','EPSG','3199',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4081','REGCAN95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1035','EPSG','3199',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4120','Greek',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6120','EPSG','3254',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4121','GGRS87',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6121','EPSG','3254',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4122','ATS77',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6122','EPSG','1283',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4123','KKJ',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6123','EPSG','3333',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4124','RT90',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6124','EPSG','1225',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4125','Samboja',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6125','EPSG','1328',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4126','LKS94 (ETRS89)',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6126','EPSG','1145',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4127','Tete',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6127','EPSG','3281',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4128','Madzansua',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6128','EPSG','1315',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4129','Observatario',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6129','EPSG','1329',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4130','Moznet',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6130','EPSG','1167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4131','Indian 1960',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6131','EPSG','4007',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4132','FD58',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6132','EPSG','1300',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4133','EST92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6133','EPSG','3246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4134','PSD93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6134','EPSG','3288',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4135','Old Hawaiian',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6135','EPSG','1334',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4136','St. Lawrence Island',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6136','EPSG','1332',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4137','St. Paul Island',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6137','EPSG','1333',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4138','St. George Island',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6138','EPSG','1331',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4139','Puerto Rico',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6139','EPSG','1335',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4140','NAD83(CSRS98)',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6140','EPSG','1336',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4141','Israel 1993',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6141','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4142','Locodjo 1965',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6142','EPSG','1075',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4143','Abidjan 1987',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6143','EPSG','1075',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4144','Kalianpur 1937',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6144','EPSG','1308',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4145','Kalianpur 1962',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6145','EPSG','1184',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4146','Kalianpur 1975',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6146','EPSG','3341',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4147','Hanoi 1972',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6147','EPSG','3328',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4148','Hartebeesthoek94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6148','EPSG','4540',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4149','CH1903',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6149','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4150','CH1903+',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6150','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4151','CHTRF95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6151','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4152','NAD83(HARN)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6152','EPSG','1337',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4153','Rassadiran',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6153','EPSG','1338',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4154','ED50(ED77)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6154','EPSG','1123',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4155','Dabola 1981',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6155','EPSG','3257',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4156','S-JTSK',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6156','EPSG','1306',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4157','Mount Dillon',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6157','EPSG','1322',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4158','Naparima 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6158','EPSG','3143',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4159','ELD79',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6159','EPSG','1143',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4160','Chos Malal 1914',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6160','EPSG','1292',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4161','Pampa del Castillo',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6161','EPSG','1265',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4162','Korean 1985',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6162','EPSG','3266',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4163','Yemen NGN96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6163','EPSG','1257',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4164','South Yemen',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6164','EPSG','1340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4165','Bissau',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6165','EPSG','3258',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4166','Korean 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6166','EPSG','3266',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4167','NZGD2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6167','EPSG','1175',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4168','Accra',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6168','EPSG','1104',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4169','American Samoa 1962',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6169','EPSG','3109',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4170','SIRGAS 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6170','EPSG','3448',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4171','RGF93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6171','EPSG','1096',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4172','POSGAR',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6172','EPSG','1033',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4173','IRENET95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6173','EPSG','1305',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4174','Sierra Leone 1924',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6174','EPSG','1342',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4175','Sierra Leone 1968',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6175','EPSG','3306',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4176','Australian Antarctic',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6176','EPSG','1278',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4178','Pulkovo 1942(83)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6178','EPSG','3900',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4179','Pulkovo 1942(58)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6179','EPSG','3574',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4180','EST97',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6180','EPSG','1090',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4181','Luxembourg 1930',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6181','EPSG','1146',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4182','Azores Occidental 1939',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6182','EPSG','1344',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4183','Azores Central 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6183','EPSG','1301',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4184','Azores Oriental 1940',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6184','EPSG','1345',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4185','Madeira 1936',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6185','EPSG','1314',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4188','OSNI 1952',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6188','EPSG','2530',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4189','REGVEN',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6189','EPSG','1251',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4190','POSGAR 98',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6190','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4191','Albanian 1987',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6191','EPSG','3212',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4192','Douala 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6192','EPSG','2555',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4193','Manoca 1962',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6193','EPSG','2555',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4194','Qornoq 1927',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6194','EPSG','3362',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4195','Scoresbysund 1952',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6195','EPSG','2570',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4196','Ammassalik 1958',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6196','EPSG','2571',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4197','Garoua',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6197','EPSG','2590',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4198','Kousseri',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6198','EPSG','2591',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4199','Egypt 1930',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6199','EPSG','3242',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4200','Pulkovo 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6200','EPSG','1198',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4201','Adindan',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6201','EPSG','1271',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4202','AGD66',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6202','EPSG','1279',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4203','AGD84',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6203','EPSG','2576',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4204','Ain el Abd',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6204','EPSG','1272',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4205','Afgooye',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6205','EPSG','3308',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4206','Agadez',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6206','EPSG','1177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4207','Lisbon',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6207','EPSG','1294',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4208','Aratu',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6208','EPSG','1274',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4209','Arc 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6209','EPSG','1276',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4210','Arc 1960',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6210','EPSG','1277',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4211','Batavia',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6211','EPSG','3666',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4212','Barbados 1938',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6212','EPSG','3218',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4213','Beduaram',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6213','EPSG','2771',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4214','Beijing 1954',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6214','EPSG','1067',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4215','Belge 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6215','EPSG','1347',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4216','Bermuda 1957',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6216','EPSG','3221',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4218','Bogota 1975',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6218','EPSG','3686',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4219','Bukit Rimpah',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6219','EPSG','1287',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4220','Camacupa',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6220','EPSG','1288',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4221','Campo Inchauspe',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6221','EPSG','3843',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4222','Cape',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6222','EPSG','1290',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4223','Carthage',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6223','EPSG','1236',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4224','Chua',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6224','EPSG','3356',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4225','Corrego Alegre 1970-72',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6225','EPSG','1293',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4226','Cote d''Ivoire',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6226','EPSG','1075',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4227','Deir ez Zor',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6227','EPSG','1623',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4228','Douala',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6228','EPSG','1060',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4229','Egypt 1907',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6229','EPSG','1086',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4230','ED50',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6230','EPSG','1296',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4231','ED87',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6231','EPSG','1297',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4232','Fahud',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6232','EPSG','4009',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4233','Gandajika 1970',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6233','EPSG','1152',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4234','Garoua',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6234','EPSG','1060',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4235','Guyane Francaise',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6235','EPSG','1097',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4236','Hu Tzu Shan 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6236','EPSG','3315',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4237','HD72',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6237','EPSG','1119',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4238','ID74',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6238','EPSG','4020',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4239','Indian 1954',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6239','EPSG','1304',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4240','Indian 1975',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6240','EPSG','3741',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4241','Jamaica 1875',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6241','EPSG','3342',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4242','JAD69',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6242','EPSG','3342',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4243','Kalianpur 1880',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6243','EPSG','1307',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4244','Kandawala',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6244','EPSG','3310',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4245','Kertau 1968',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6245','EPSG','4223',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4246','KOC',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6246','EPSG','3267',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4247','La Canoa',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6247','EPSG','3327',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4248','PSAD56',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6248','EPSG','1348',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4249','Lake',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6249','EPSG','1312',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4250','Leigon',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6250','EPSG','1104',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4251','Liberia 1964',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6251','EPSG','3270',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4252','Lome',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6252','EPSG','1232',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4253','Luzon 1911',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6253','EPSG','3969',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4254','Hito XVIII 1963',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6254','EPSG','1303',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4255','Herat North',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6255','EPSG','1024',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4256','Mahe 1971',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6256','EPSG','2369',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4257','Makassar',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6257','EPSG','1316',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4258','ETRS89',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6258','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4259','Malongo 1987',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6259','EPSG','3180',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4260','Manoca',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6260','EPSG','1060',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4261','Merchich',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6261','EPSG','3280',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4262','Massawa',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6262','EPSG','1089',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4263','Minna',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6263','EPSG','1178',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4264','Mhast',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6264','EPSG','1318',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4265','Monte Mario',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6265','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4266','M''poraloko',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6266','EPSG','1100',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4267','NAD27',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6267','EPSG','1349',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4268','NAD27 Michigan',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6268','EPSG','1391',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4269','NAD83',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6269','EPSG','1350',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4270','Nahrwan 1967',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6270','EPSG','1351',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4271','Naparima 1972',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6271','EPSG','1322',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4272','NZGD49',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6272','EPSG','3285',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4273','NGO 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6273','EPSG','1352',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4274','Datum 73',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6274','EPSG','1294',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4275','NTF',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6275','EPSG','3694',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4276','NSWC 9Z-2',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6276','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4277','OSGB 1936',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6277','EPSG','4390',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4278','OSGB70',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6278','EPSG','1264',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4279','OS(SN)80',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6279','EPSG','1354',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4280','Padang',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6280','EPSG','1355',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4281','Palestine 1923',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6281','EPSG','1356',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4282','Pointe Noire',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6282','EPSG','1072',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4283','GDA94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6283','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4284','Pulkovo 1942',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6284','EPSG','2423',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4285','Qatar 1974',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6285','EPSG','1195',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4286','Qatar 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6286','EPSG','1346',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4287','Qornoq',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6287','EPSG','1107',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4288','Loma Quintana',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6288','EPSG','1313',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4289','Amersfoort',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6289','EPSG','1275',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4291','SAD69',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6291','EPSG','1358',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4292','Sapper Hill 1943',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6292','EPSG','3247',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4293','Schwarzeck',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6293','EPSG','1169',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4294','Segora',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6294','EPSG','1359',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4295','Serindung',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6295','EPSG','4005',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4296','Sudan',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6296','EPSG','1361',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4297','Tananarive',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6297','EPSG','1149',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4298','Timbalai 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6298','EPSG','1362',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4299','TM65',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6299','EPSG','1305',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4300','TM75',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6300','EPSG','1305',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4301','Tokyo',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6301','EPSG','1364',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4302','Trinidad 1903',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6302','EPSG','1339',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4303','TC(1948)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6303','EPSG','1363',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4304','Voirol 1875',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6304','EPSG','1365',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4306','Bern 1938',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6306','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4307','Nord Sahara 1959',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6307','EPSG','1026',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4308','RT38',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6308','EPSG','3313',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4309','Yacare',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6309','EPSG','3326',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4310','Yoff',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6310','EPSG','1207',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4311','Zanderij',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6311','EPSG','1222',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4312','MGI',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6312','EPSG','1037',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4313','Belge 1972',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6313','EPSG','1347',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4314','DHDN',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6314','EPSG','2326',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4315','Conakry 1905',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6315','EPSG','3257',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4316','Dealul Piscului 1930',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6316','EPSG','3295',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4317','Dealul Piscului 1970',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6317','EPSG','1197',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4318','NGN',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6318','EPSG','3267',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4319','KUDAMS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6319','EPSG','1310',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4322','WGS 72',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6322','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4324','WGS 72BE',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6324','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4326','WGS 84',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6326','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4327','WGS 84 (geographic 3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6326','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4328','WGS 84 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6326','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4329','WGS 84 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6326','EPSG','2830',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4330','ITRF88 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6647','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4331','ITRF89 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6648','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4332','ITRF90 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6649','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4333','ITRF91 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6650','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4334','ITRF92 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6651','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4335','ITRF93 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6652','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4336','ITRF94 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6653','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4337','ITRF96 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6654','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4338','ITRF97 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6655','EPSG','1262',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4339','Australian Antarctic (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6176','EPSG','1278',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4340','Australian Antarctic (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6176','EPSG','1278',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4341','EST97 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6180','EPSG','1090',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4342','EST97 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6180','EPSG','1090',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4343','CHTRF95 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6151','EPSG','1286',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4344','CHTRF95 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6151','EPSG','1286',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4345','ETRS89 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6258','EPSG','1298',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4346','ETRS89 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6258','EPSG','1298',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4347','GDA94 (3D)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6283','EPSG','1036',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4348','GDA94 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6283','EPSG','1036',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4349','Hartebeesthoek94 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6148','EPSG','1215',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4350','Hartebeesthoek94 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6148','EPSG','1215',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4351','IRENET95 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6173','EPSG','1305',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4352','IRENET95 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6173','EPSG','1305',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4353','JGD2000 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6612','EPSG','1129',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4354','JGD2000 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6612','EPSG','1129',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4355','LKS94 (ETRS89) (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6126','EPSG','1145',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4356','LKS94 (ETRS89) (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6126','EPSG','1145',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4357','Moznet (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6130','EPSG','1167',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4358','Moznet (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6130','EPSG','1167',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4359','NAD83(CSRS) (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6140','EPSG','2784',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4360','NAD83(CSRS) (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6140','EPSG','2784',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4361','NAD83(HARN) (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6152','EPSG','1337',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4362','NAD83(HARN) (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6152','EPSG','1337',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4363','NZGD2000 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6167','EPSG','1175',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4364','NZGD2000 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6167','EPSG','1175',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4365','POSGAR 98 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6190','EPSG','1033',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4366','POSGAR 98 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6190','EPSG','1033',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4367','REGVEN (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6189','EPSG','1251',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4368','REGVEN (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6189','EPSG','1251',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4369','RGF93 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6171','EPSG','1096',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4370','RGF93 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6171','EPSG','1096',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4371','RGFG95 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6624','EPSG','1097',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4372','RGFG95 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6624','EPSG','1097',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4373','RGR92 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6627','EPSG','1196',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4374','RGR92 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6627','EPSG','1196',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4375','SIRGAS (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6170','EPSG','1341',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4376','SIRGAS (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6170','EPSG','1341',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4377','SWEREF99 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6619','EPSG','1225',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4378','SWEREF99 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6619','EPSG','1225',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4379','Yemen NGN96 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6163','EPSG','1257',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4380','Yemen NGN96 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6163','EPSG','1257',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4381','RGNC 1991 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6645','EPSG','1174',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4382','RGNC 1991 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6645','EPSG','1174',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4383','RRAF 1991 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6640','EPSG','2824',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4384','RRAF 1991 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6640','EPSG','2824',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4385','ITRF2000 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6656','EPSG','2830',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4386','ISN93 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6659','EPSG','1120',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4387','ISN93 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6659','EPSG','1120',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4388','LKS92 (3D)',NULL,NULL,'geographic 3D','EPSG','6401','EPSG','6661','EPSG','1139',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4389','LKS92 (geocentric)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6661','EPSG','1139',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4463','RGSPM06',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1038','EPSG','1220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4465','RGSPM06',NULL,NULL,'geocentric','EPSG','6500','EPSG','1038','EPSG','1220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4466','RGSPM06',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1038','EPSG','1220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4468','RGM04',NULL,NULL,'geocentric','EPSG','6500','EPSG','1036','EPSG','1159',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4469','RGM04',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1036','EPSG','1159',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4470','RGM04',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1036','EPSG','1159',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4472','Cadastre 1997',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1037','EPSG','3340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4473','Cadastre 1997',NULL,NULL,'geocentric','EPSG','6500','EPSG','1037','EPSG','3340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4475','Cadastre 1997',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1037','EPSG','3340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4479','China Geodetic Coordinate System 2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','1043','EPSG','1067',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4480','China Geodetic Coordinate System 2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1043','EPSG','1067',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4481','Mexico ITRF92',NULL,NULL,'geocentric','EPSG','6500','EPSG','1042','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4482','Mexico ITRF92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1042','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4483','Mexico ITRF92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1042','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4490','China Geodetic Coordinate System 2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1043','EPSG','1067',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4555','New Beijing',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1045','EPSG','3228',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4556','RRAF 1991',NULL,NULL,'geocentric','EPSG','6500','EPSG','1047','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4557','RRAF 1991',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1047','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4558','RRAF 1991',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1047','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4600','Anguilla 1957',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6600','EPSG','3214',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4601','Antigua 1943',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6601','EPSG','1273',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4602','Dominica 1945',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6602','EPSG','3239',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4603','Grenada 1953',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6603','EPSG','1551',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4604','Montserrat 1958',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6604','EPSG','3279',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4605','St. Kitts 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6605','EPSG','3297',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4606','St. Lucia 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6606','EPSG','3298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4607','St. Vincent 1945',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6607','EPSG','3300',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4608','NAD27(76)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6608','EPSG','1367',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4609','NAD27(CGQ77)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6609','EPSG','1368',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4610','Xian 1980',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6610','EPSG','3228',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4611','Hong Kong 1980',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6611','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4612','JGD2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6612','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4613','Segara',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6613','EPSG','1360',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4614','QND95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6614','EPSG','1346',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4615','Porto Santo',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6615','EPSG','1314',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4616','Selvagem Grande',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6616','EPSG','2779',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4617','NAD83(CSRS)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6140','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4618','SAD69',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6618','EPSG','1358',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4619','SWEREF99',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6619','EPSG','1225',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4620','Point 58',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6620','EPSG','2790',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4621','Fort Marigot',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6621','EPSG','2828',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4622','Guadeloupe 1948',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6622','EPSG','2829',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4623','CSG67',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6623','EPSG','3105',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4624','RGFG95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6624','EPSG','1097',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4625','Martinique 1938',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6625','EPSG','3276',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4626','Reunion 1947',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6626','EPSG','3337',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4627','RGR92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6627','EPSG','3902',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4628','Tahiti 52',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6628','EPSG','2811',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4629','Tahaa 54',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6629','EPSG','2812',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4630','IGN72 Nuku Hiva',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6630','EPSG','3129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4631','K0 1949',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6631','EPSG','2816',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4632','Combani 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6632','EPSG','3340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4633','IGN56 Lifou',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6633','EPSG','2814',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4634','IGN72 Grand Terre',NULL,NULL,'geographic 2D','EPSG','6402','EPSG','6634','EPSG','2822',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4635','ST87 Ouvea',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6635','EPSG','2813',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4636','Petrels 1972',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6636','EPSG','2817',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4637','Perroud 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6637','EPSG','2818',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4638','Saint Pierre et Miquelon 1950',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6638','EPSG','3299',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4639','MOP78',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6639','EPSG','2815',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4640','RRAF 1991',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6640','EPSG','2824',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4641','IGN53 Mare',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6641','EPSG','2819',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4642','ST84 Ile des Pins',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6642','EPSG','2820',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4643','ST71 Belep',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6643','EPSG','2821',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4644','NEA74 Noumea',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6644','EPSG','2823',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4645','RGNC 1991',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6645','EPSG','1174',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4646','Grand Comoros',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6646','EPSG','2807',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4657','Reykjavik 1900',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6657','EPSG','3262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4658','Hjorsey 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6658','EPSG','3262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4659','ISN93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6659','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4660','Helle 1954',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6660','EPSG','2869',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4661','LKS92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6661','EPSG','1139',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4662','IGN72 Grande Terre',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6634','EPSG','2822',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4663','Porto Santo 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6663','EPSG','1314',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4664','Azores Oriental 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6664','EPSG','1345',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4665','Azores Central 1995',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6665','EPSG','1301',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4666','Lisbon 1890',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6666','EPSG','1294',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4667','IKBD-92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6667','EPSG','2876',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4668','ED79',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6668','EPSG','1297',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4669','LKS94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6126','EPSG','1145',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4670','IGM95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6670','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4671','Voirol 1879',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6671','EPSG','1365',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4672','Chatham Islands 1971',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6672','EPSG','2889',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4673','Chatham Islands 1979',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6673','EPSG','2889',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4674','SIRGAS 2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6674','EPSG','3418',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4675','Guam 1963',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6675','EPSG','4525',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4676','Vientiane 1982',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6676','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4677','Lao 1993',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6677','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4678','Lao 1997',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6678','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4679','Jouik 1961',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6679','EPSG','2967',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4680','Nouakchott 1965',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6680','EPSG','2968',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4681','Mauritania 1999',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6681','EPSG','1157',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4682','Gulshan 303',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6682','EPSG','1041',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4683','PRS92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6683','EPSG','1190',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4684','Gan 1970',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6684','EPSG','3274',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4685','Gandajika',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6685','EPSG','1259',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4686','MAGNA-SIRGAS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6686','EPSG','1070',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4687','RGPF',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6687','EPSG','1098',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4688','Fatu Iva 72',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6688','EPSG','3133',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4689','IGN63 Hiva Oa',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6689','EPSG','3130',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4690','Tahiti 79',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6690','EPSG','3124',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4691','Moorea 87',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6691','EPSG','3125',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4692','Maupiti 83',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6692','EPSG','3126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4693','Nakhl-e Ghanem',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6693','EPSG','2362',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4694','POSGAR 94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6694','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4695','Katanga 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6695','EPSG','3147',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4696','Kasai 1953',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6696','EPSG','3148',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4697','IGC 1962 6th Parallel South',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6697','EPSG','3149',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4698','IGN 1962 Kerguelen',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6698','EPSG','2816',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4699','Le Pouce 1934',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6699','EPSG','3209',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4700','IGN Astro 1960',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6700','EPSG','3277',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4701','IGCB 1955',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6701','EPSG','3171',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4702','Mauritania 1999',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6702','EPSG','1157',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4703','Mhast 1951',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6703','EPSG','1318',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4704','Mhast (onshore)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6704','EPSG','3179',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4705','Mhast (offshore)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6705','EPSG','3180',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4706','Egypt Gulf of Suez S-650 TL',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6706','EPSG','2341',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4707','Tern Island 1961',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6707','EPSG','3181',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4708','Cocos Islands 1965',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6708','EPSG','1069',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4709','Iwo Jima 1945',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6709','EPSG','3200',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4710','Astro DOS 71',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6710','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4711','Marcus Island 1952',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6711','EPSG','1872',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4712','Ascension Island 1958',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6712','EPSG','3182',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4713','Ayabelle Lighthouse',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6713','EPSG','1081',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4714','Bellevue',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6714','EPSG','3193',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4715','Camp Area Astro',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6715','EPSG','3205',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4716','Phoenix Islands 1966',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6716','EPSG','3196',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4717','Cape Canaveral',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6717','EPSG','3206',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4718','Solomon 1968',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6718','EPSG','1213',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4719','Easter Island 1967',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6719','EPSG','3188',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4720','Fiji 1986',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6720','EPSG','1094',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4721','Fiji 1956',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6721','EPSG','3398',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4722','South Georgia 1968',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6722','EPSG','3529',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4723','GCGD59',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6723','EPSG','3185',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4724','Diego Garcia 1969',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6724','EPSG','3189',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4725','Johnston Island 1961',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6725','EPSG','3201',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4726','SIGD61',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6726','EPSG','3186',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4727','Midway 1961',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6727','EPSG','3202',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4728','Pico de las Nieves 1984',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6728','EPSG','3873',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4729','Pitcairn 1967',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6729','EPSG','3208',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4730','Santo 1965',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6730','EPSG','3194',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4731','Viti Levu 1916',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6731','EPSG','3195',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4732','Marshall Islands 1960',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6732','EPSG','3191',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4733','Wake Island 1952',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6733','EPSG','3190',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4734','Tristan 1968',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6734','EPSG','3184',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4735','Kusaie 1951',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6735','EPSG','3192',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4736','Deception Island',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6736','EPSG','3204',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4737','Korea 2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6737','EPSG','1135',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4738','Hong Kong 1963',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6738','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4739','Hong Kong 1963(67)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6739','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4740','PZ-90',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6740','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4741','FD54',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6741','EPSG','3248',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4742','GDM2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6742','EPSG','1151',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4743','Karbala 1979',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6743','EPSG','3625',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4744','Nahrwan 1934',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6744','EPSG','4238',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4745','RD/83',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6745','EPSG','2545',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4746','PD/83',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6746','EPSG','2544',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4747','GR96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6747','EPSG','1107',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4748','Vanua Levu 1915',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6748','EPSG','3401',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4749','RGNC91-93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6749','EPSG','1174',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4750','ST87 Ouvea',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6750','EPSG','2813',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4751','Kertau (RSO)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6751','EPSG','1309',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4752','Viti Levu 1912',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6752','EPSG','3195',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4753','fk89',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6753','EPSG','3248',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4754','LGD2006',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6754','EPSG','1143',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4755','DGN95',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6755','EPSG','1122',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4756','VN-2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6756','EPSG','3328',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4757','SVY21',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6757','EPSG','1210',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4758','JAD2001',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6758','EPSG','1128',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4759','NAD83(NSRS2007)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6759','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4760','WGS 66',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6760','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4761','HTRS96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6761','EPSG','1076',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4762','BDA2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6762','EPSG','1047',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4763','Pitcairn 2006',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6763','EPSG','3208',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4764','RSRGD2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6764','EPSG','3558',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4765','Slovenia 1996',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6765','EPSG','1212',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4801','Bern 1898 (Bern)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6801','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4802','Bogota 1975 (Bogota)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6802','EPSG','3229',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4803','Lisbon (Lisbon)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6803','EPSG','1294',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4804','Makassar (Jakarta)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6804','EPSG','1316',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4805','MGI (Ferro)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6805','EPSG','1321',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4806','Monte Mario (Rome)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6806','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4807','NTF (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6807','EPSG','3694',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4808','Padang (Jakarta)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6808','EPSG','1355',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4809','Belge 1950 (Brussels)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6809','EPSG','1347',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4810','Tananarive (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6810','EPSG','3273',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4811','Voirol 1875 (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6811','EPSG','1365',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4813','Batavia (Jakarta)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6813','EPSG','1285',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4814','RT38 (Stockholm)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6814','EPSG','3313',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4815','Greek (Athens)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6815','EPSG','3254',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4816','Carthage (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6816','EPSG','1618',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4817','NGO 1948 (Oslo)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6817','EPSG','1352',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4818','S-JTSK (Ferro)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6818','EPSG','1306',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4819','Nord Sahara 1959 (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6819','EPSG','1366',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4820','Segara (Jakarta)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6820','EPSG','1360',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4821','Voirol 1879 (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6821','EPSG','1365',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4823','Sao Tome',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1044','EPSG','3645',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4824','Principe',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1046','EPSG','3646',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4882','Slovenia 1996',NULL,NULL,'geocentric','EPSG','6500','EPSG','6765','EPSG','1212',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4883','Slovenia 1996',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6765','EPSG','1212',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4884','RSRGD2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6764','EPSG','3558',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4885','RSRGD2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6764','EPSG','3558',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4886','BDA2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6762','EPSG','1047',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4887','BDA2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6762','EPSG','1047',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4888','HTRS96',NULL,NULL,'geocentric','EPSG','6500','EPSG','6761','EPSG','1076',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4889','HTRS96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6761','EPSG','1076',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4890','WGS 66',NULL,NULL,'geocentric','EPSG','6500','EPSG','6760','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4891','WGS 66',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6760','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4892','NAD83(NSRS2007)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6759','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4893','NAD83(NSRS2007)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6759','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4894','JAD2001',NULL,NULL,'geocentric','EPSG','6500','EPSG','6758','EPSG','1128',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4895','JAD2001',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6758','EPSG','1128',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4896','ITRF2005',NULL,NULL,'geocentric','EPSG','6500','EPSG','6896','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4897','DGN95',NULL,NULL,'geocentric','EPSG','6500','EPSG','6755','EPSG','1122',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4898','DGN95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6755','EPSG','1122',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4899','LGD2006',NULL,NULL,'geocentric','EPSG','6500','EPSG','6754','EPSG','1143',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4900','LGD2006',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6754','EPSG','1143',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4901','ATF (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6901','EPSG','1326',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4902','NDG (Paris)',NULL,NULL,'geographic 2D','EPSG','6403','EPSG','6902','EPSG','1369',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4903','Madrid 1870 (Madrid)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6903','EPSG','2366',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4904','Lisbon 1890 (Lisbon)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6904','EPSG','1294',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4906','RGNC91-93',NULL,NULL,'geocentric','EPSG','6500','EPSG','6749','EPSG','1174',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4907','RGNC91-93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6749','EPSG','1174',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4908','GR96',NULL,NULL,'geocentric','EPSG','6500','EPSG','6747','EPSG','1107',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4909','GR96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6747','EPSG','1107',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4910','ITRF88',NULL,NULL,'geocentric','EPSG','6500','EPSG','6647','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4911','ITRF89',NULL,NULL,'geocentric','EPSG','6500','EPSG','6648','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4912','ITRF90',NULL,NULL,'geocentric','EPSG','6500','EPSG','6649','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4913','ITRF91',NULL,NULL,'geocentric','EPSG','6500','EPSG','6650','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4914','ITRF92',NULL,NULL,'geocentric','EPSG','6500','EPSG','6651','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4915','ITRF93',NULL,NULL,'geocentric','EPSG','6500','EPSG','6652','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4916','ITRF94',NULL,NULL,'geocentric','EPSG','6500','EPSG','6653','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4917','ITRF96',NULL,NULL,'geocentric','EPSG','6500','EPSG','6654','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4918','ITRF97',NULL,NULL,'geocentric','EPSG','6500','EPSG','6655','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4919','ITRF2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6656','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4920','GDM2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6742','EPSG','1151',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4921','GDM2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6742','EPSG','1151',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4922','PZ-90',NULL,NULL,'geocentric','EPSG','6500','EPSG','6740','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4923','PZ-90',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6740','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4924','Mauritania 1999',NULL,NULL,'geocentric','EPSG','6500','EPSG','6702','EPSG','1157',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4925','Mauritania 1999',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6702','EPSG','1157',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4926','Korea 2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6737','EPSG','1135',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4927','Korea 2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6737','EPSG','1135',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4928','POSGAR 94',NULL,NULL,'geocentric','EPSG','6500','EPSG','6694','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4929','POSGAR 94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6694','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4930','Australian Antarctic',NULL,NULL,'geocentric','EPSG','6500','EPSG','6176','EPSG','1278',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4931','Australian Antarctic',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6176','EPSG','1278',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4932','CHTRF95',NULL,NULL,'geocentric','EPSG','6500','EPSG','6151','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4933','CHTRF95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6151','EPSG','1286',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4934','EST97',NULL,NULL,'geocentric','EPSG','6500','EPSG','6180','EPSG','1090',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4935','EST97',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6180','EPSG','1090',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4936','ETRS89',NULL,NULL,'geocentric','EPSG','6500','EPSG','6258','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4937','ETRS89',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6258','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4938','GDA94',NULL,NULL,'geocentric','EPSG','6500','EPSG','6283','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4939','GDA94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6283','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4940','Hartebeesthoek94',NULL,NULL,'geocentric','EPSG','6500','EPSG','6148','EPSG','4540',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4941','Hartebeesthoek94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6148','EPSG','4540',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4942','IRENET95',NULL,NULL,'geocentric','EPSG','6500','EPSG','6173','EPSG','1305',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4943','IRENET95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6173','EPSG','1305',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4944','ISN93',NULL,NULL,'geocentric','EPSG','6500','EPSG','6659','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4945','ISN93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6659','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4946','JGD2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6612','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4947','JGD2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6612','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4948','LKS92',NULL,NULL,'geocentric','EPSG','6500','EPSG','6661','EPSG','1139',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4949','LKS92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6661','EPSG','1139',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4950','LKS94',NULL,NULL,'geocentric','EPSG','6500','EPSG','6126','EPSG','1145',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4951','LKS94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6126','EPSG','1145',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4952','Moznet',NULL,NULL,'geocentric','EPSG','6500','EPSG','6130','EPSG','1167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4953','Moznet',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6130','EPSG','1167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4954','NAD83(CSRS)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6140','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4955','NAD83(CSRS)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6140','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4956','NAD83(HARN)',NULL,NULL,'geocentric','EPSG','6500','EPSG','6152','EPSG','1337',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4957','NAD83(HARN)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6152','EPSG','1337',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4958','NZGD2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6167','EPSG','1175',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4959','NZGD2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6167','EPSG','1175',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4960','POSGAR 98',NULL,NULL,'geocentric','EPSG','6500','EPSG','6190','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4961','POSGAR 98',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6190','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4962','REGVEN',NULL,NULL,'geocentric','EPSG','6500','EPSG','6189','EPSG','1251',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4963','REGVEN',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6189','EPSG','1251',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4964','RGF93',NULL,NULL,'geocentric','EPSG','6500','EPSG','6171','EPSG','1096',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4965','RGF93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6171','EPSG','1096',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4966','RGFG95',NULL,NULL,'geocentric','EPSG','6500','EPSG','6624','EPSG','1097',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4967','RGFG95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6624','EPSG','1097',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4968','RGNC 1991',NULL,NULL,'geocentric','EPSG','6500','EPSG','6645','EPSG','1174',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4969','RGNC 1991',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6645','EPSG','1174',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4970','RGR92',NULL,NULL,'geocentric','EPSG','6500','EPSG','6627','EPSG','3902',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4971','RGR92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6627','EPSG','3902',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4972','RRAF 1991',NULL,NULL,'geocentric','EPSG','6500','EPSG','6640','EPSG','2824',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4973','RRAF 1991',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6640','EPSG','2824',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','4974','SIRGAS 1995',NULL,NULL,'geocentric','EPSG','6500','EPSG','6170','EPSG','3448',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4975','SIRGAS 1995',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6170','EPSG','3448',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4976','SWEREF99',NULL,NULL,'geocentric','EPSG','6500','EPSG','6619','EPSG','1225',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4977','SWEREF99',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6619','EPSG','1225',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4978','WGS 84',NULL,NULL,'geocentric','EPSG','6500','EPSG','6326','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4979','WGS 84',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6326','EPSG','2830',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4980','Yemen NGN96',NULL,NULL,'geocentric','EPSG','6500','EPSG','6163','EPSG','1257',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4981','Yemen NGN96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6163','EPSG','1257',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4982','IGM95',NULL,NULL,'geocentric','EPSG','6500','EPSG','6670','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4983','IGM95',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6670','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4984','WGS 72',NULL,NULL,'geocentric','EPSG','6500','EPSG','6322','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4985','WGS 72',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6322','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4986','WGS 72BE',NULL,NULL,'geocentric','EPSG','6500','EPSG','6324','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4987','WGS 72BE',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6324','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4988','SIRGAS 2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','6674','EPSG','3418',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4989','SIRGAS 2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6674','EPSG','3418',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4990','Lao 1993',NULL,NULL,'geocentric','EPSG','6500','EPSG','6677','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4991','Lao 1993',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6677','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4992','Lao 1997',NULL,NULL,'geocentric','EPSG','6500','EPSG','6678','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4993','Lao 1997',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6678','EPSG','1138',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4994','PRS92',NULL,NULL,'geocentric','EPSG','6500','EPSG','6683','EPSG','1190',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4995','PRS92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6683','EPSG','1190',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4996','MAGNA-SIRGAS',NULL,NULL,'geocentric','EPSG','6500','EPSG','6686','EPSG','1070',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4997','MAGNA-SIRGAS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6686','EPSG','1070',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4998','RGPF',NULL,NULL,'geocentric','EPSG','6500','EPSG','6687','EPSG','1098',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','4999','RGPF',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6687','EPSG','1098',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5011','PTRA08',NULL,NULL,'geocentric','EPSG','6500','EPSG','1041','EPSG','3670',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5012','PTRA08',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1041','EPSG','3670',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5013','PTRA08',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1041','EPSG','3670',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5132','Tokyo 1892',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1048','EPSG','1364',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5228','S-JTSK/05',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1052','EPSG','1079',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5229','S-JTSK/05 (Ferro)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1055','EPSG','1079',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5233','SLD99',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1053','EPSG','3310',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5244','GDBD2009',NULL,NULL,'geocentric','EPSG','6500','EPSG','1056','EPSG','1055',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5245','GDBD2009',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1056','EPSG','1055',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5246','GDBD2009',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1056','EPSG','1055',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5250','TUREF',NULL,NULL,'geocentric','EPSG','6500','EPSG','1057','EPSG','1237',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5251','TUREF',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1057','EPSG','1237',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5252','TUREF',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1057','EPSG','1237',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5262','DRUKREF 03',NULL,NULL,'geocentric','EPSG','6500','EPSG','1058','EPSG','1048',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5263','DRUKREF 03',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1058','EPSG','1048',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5264','DRUKREF 03',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1058','EPSG','1048',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5322','ISN2004',NULL,NULL,'geocentric','EPSG','6500','EPSG','1060','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5323','ISN2004',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1060','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5324','ISN2004',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1060','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5332','ITRF2008',NULL,NULL,'geocentric','EPSG','6500','EPSG','1061','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5340','POSGAR 2007',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1062','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5341','POSGAR 2007',NULL,NULL,'geocentric','EPSG','6500','EPSG','1062','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5342','POSGAR 2007',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1062','EPSG','1033',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5352','MARGEN',NULL,NULL,'geocentric','EPSG','6500','EPSG','1063','EPSG','1049',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5353','MARGEN',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1063','EPSG','1049',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5354','MARGEN',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1063','EPSG','1049',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5358','SIRGAS-Chile',NULL,NULL,'geocentric','EPSG','6500','EPSG','1064','EPSG','1066',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5359','SIRGAS-Chile',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1064','EPSG','1066',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5360','SIRGAS-Chile',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1064','EPSG','1066',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5363','CR05',NULL,NULL,'geocentric','EPSG','6500','EPSG','1065','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5364','CR05',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1065','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5365','CR05',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1065','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5368','MACARIO SOLIS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1066','EPSG','1186',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5369','Peru96',NULL,NULL,'geocentric','EPSG','6500','EPSG','1067','EPSG','1189',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5370','MACARIO SOLIS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1066','EPSG','1186',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5371','MACARIO SOLIS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1066','EPSG','1186',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5372','Peru96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1067','EPSG','1189',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5373','Peru96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1067','EPSG','1189',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5379','SIRGAS-ROU98',NULL,NULL,'geocentric','EPSG','6500','EPSG','1068','EPSG','1247',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5380','SIRGAS-ROU98',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1068','EPSG','1247',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5381','SIRGAS-ROU98',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1068','EPSG','1247',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5391','SIRGAS_ES2007.8',NULL,NULL,'geocentric','EPSG','6500','EPSG','1069','EPSG','1087',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5392','SIRGAS_ES2007.8',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1069','EPSG','1087',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5393','SIRGAS_ES2007.8',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1069','EPSG','1087',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5451','Ocotepeque 1935',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1070','EPSG','3876',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5464','Sibun Gorge 1922',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1071','EPSG','3219',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5467','Panama-Colon 1911',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1072','EPSG','3290',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5487','RGAF09',NULL,NULL,'geocentric','EPSG','6500','EPSG','1073','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5488','RGAF09',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1073','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5489','RGAF09',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1073','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5524','Corrego Alegre 1961',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1074','EPSG','3874',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5527','SAD69(96)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1075','EPSG','1053',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5544','PNG94',NULL,NULL,'geocentric','EPSG','6500','EPSG','1076','EPSG','1187',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5545','PNG94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1076','EPSG','1187',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5546','PNG94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1076','EPSG','1187',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5558','UCS-2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','1077','EPSG','1242',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5560','UCS-2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1077','EPSG','1242',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5561','UCS-2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1077','EPSG','1242',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5591','FEH2010',NULL,NULL,'geocentric','EPSG','6500','EPSG','1078','EPSG','3889',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5592','FEH2010',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1078','EPSG','3889',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5593','FEH2010',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1078','EPSG','3889',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5681','DB_REF',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1081','EPSG','3339',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5828','DB_REF',NULL,NULL,'geocentric','EPSG','6500','EPSG','1081','EPSG','3339',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5830','DB_REF',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1081','EPSG','3339',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5884','TGD2005',NULL,NULL,'geocentric','EPSG','6500','EPSG','1095','EPSG','1234',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5885','TGD2005',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1095','EPSG','1234',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','5886','TGD2005',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1095','EPSG','1234',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6133','CIGD11',NULL,NULL,'geocentric','EPSG','6500','EPSG','1100','EPSG','1063',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6134','CIGD11',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1100','EPSG','1063',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6135','CIGD11',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1100','EPSG','1063',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6207','Nepal 1981',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1111','EPSG','1171',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6309','CGRS93',NULL,NULL,'geocentric','EPSG','6500','EPSG','1112','EPSG','3236',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6310','CGRS93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1112','EPSG','3236',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6311','CGRS93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1112','EPSG','3236',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6317','NAD83(2011)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1116','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6318','NAD83(2011)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1116','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6319','NAD83(2011)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1116','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6320','NAD83(PA11)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1117','EPSG','4162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6321','NAD83(PA11)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1117','EPSG','4162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6322','NAD83(PA11)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1117','EPSG','4162',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6323','NAD83(MA11)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1118','EPSG','4167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6324','NAD83(MA11)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1118','EPSG','4167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6325','NAD83(MA11)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1118','EPSG','4167',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6363','Mexico ITRF2008',NULL,NULL,'geocentric','EPSG','6500','EPSG','1120','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6364','Mexico ITRF2008',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1120','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6365','Mexico ITRF2008',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1120','EPSG','1160',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6666','JGD2011',NULL,NULL,'geocentric','EPSG','6500','EPSG','1128','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6667','JGD2011',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1128','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6668','JGD2011',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1128','EPSG','1129',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6704','RDN2008',NULL,NULL,'geocentric','EPSG','6500','EPSG','1132','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6705','RDN2008',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1132','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6706','RDN2008',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1132','EPSG','3343',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6781','NAD83(CORS96)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1133','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6782','NAD83(CORS96)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1133','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6783','NAD83(CORS96)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1133','EPSG','1511',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6881','Aden 1925',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1135','EPSG','1340',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6882','Bekaa Valley 1920',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1137','EPSG','3269',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6883','Bioko',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1136','EPSG','4220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6892','South East Island 1943',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1138','EPSG','4183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6894','Gambia',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1139','EPSG','3250',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6934','IGS08',NULL,NULL,'geocentric','EPSG','6500','EPSG','1141','EPSG','2830',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6978','IGD05',NULL,NULL,'geocentric','EPSG','6500','EPSG','1143','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6979','IGD05',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1143','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6980','IGD05',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1143','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6981','IG05 Intermediate CRS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1142','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6982','IG05 Intermediate CRS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1142','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6983','IG05 Intermediate CRS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1142','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6985','IGD05/12',NULL,NULL,'geocentric','EPSG','6500','EPSG','1145','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6986','IGD05/12',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1145','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6987','IGD05/12',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1145','EPSG','1126',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','6988','IG05/12 Intermediate CRS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1144','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6989','IG05/12 Intermediate CRS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1144','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','6990','IG05/12 Intermediate CRS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1144','EPSG','2603',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7034','RGSPM06 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','1038','EPSG','1220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7035','RGSPM06 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1038','EPSG','1220',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7036','RGR92 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','6627','EPSG','3902',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7037','RGR92 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','6627','EPSG','3902',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7038','RGM04 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','1036','EPSG','1159',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7039','RGM04 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1036','EPSG','1159',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7040','RGFG95 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','6624','EPSG','1097',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7041','RGFG95 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','6624','EPSG','1097',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7042','RGF93 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','6171','EPSG','1096',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7071','RGTAAF07',NULL,NULL,'geocentric','EPSG','6500','EPSG','1113','EPSG','4246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7072','RGTAAF07',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1113','EPSG','4246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7073','RGTAAF07',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1113','EPSG','4246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7084','RGF93 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','6171','EPSG','1096',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7085','RGAF09 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','1073','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7086','RGAF09 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1073','EPSG','2824',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7087','RGTAAF07 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','1113','EPSG','4246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7088','RGTAAF07 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1113','EPSG','4246',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','7133','RGTAAF07 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1113','EPSG','4246',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7134','IGD05',NULL,NULL,'geocentric','EPSG','6500','EPSG','1114','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7135','IGD05',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1114','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7136','IGD05',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1114','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7137','IGD05/12',NULL,NULL,'geocentric','EPSG','6500','EPSG','1115','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7138','IGD05/12',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1115','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7139','IGD05/12',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1115','EPSG','1126',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7371','ONGD14',NULL,NULL,'geocentric','EPSG','6500','EPSG','1147','EPSG','1183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7372','ONGD14',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1147','EPSG','1183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7373','ONGD14',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1147','EPSG','1183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7656','WGS 84 (G730)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1152','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7657','WGS 84 (G730)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1152','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7658','WGS 84 (G873)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1153','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7659','WGS 84 (G873)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1153','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7660','WGS 84 (G1150)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1154','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7661','WGS 84 (G1150)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1154','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7662','WGS 84 (G1674)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1155','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7663','WGS 84 (G1674)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1155','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7664','WGS 84 (G1762)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1156','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7665','WGS 84 (G1762)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1156','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7677','PZ-90.02',NULL,NULL,'geocentric','EPSG','6500','EPSG','1157','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7678','PZ-90.02',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1157','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7679','PZ-90.11',NULL,NULL,'geocentric','EPSG','6500','EPSG','1158','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7680','PZ-90.11',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1158','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7681','GSK-2011',NULL,NULL,'geocentric','EPSG','6500','EPSG','1159','EPSG','1198',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7682','GSK-2011',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1159','EPSG','1198',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7683','GSK-2011',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1159','EPSG','1198',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7684','Kyrg-06',NULL,NULL,'geocentric','EPSG','6500','EPSG','1160','EPSG','1137',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7685','Kyrg-06',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1160','EPSG','1137',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7686','Kyrg-06',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1160','EPSG','1137',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7789','ITRF2014',NULL,NULL,'geocentric','EPSG','6500','EPSG','1165','EPSG','2830',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7796','BGS2005',NULL,NULL,'geocentric','EPSG','6500','EPSG','1167','EPSG','1056',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7797','BGS2005',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1167','EPSG','1056',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7798','BGS2005',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1167','EPSG','1056',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7815','WGS 84 (Transit)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1166','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7816','WGS 84 (Transit)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1166','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7842','GDA2020',NULL,NULL,'geocentric','EPSG','6500','EPSG','1168','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7843','GDA2020',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1168','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7844','GDA2020',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1168','EPSG','4177',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7879','St. Helena Tritan',NULL,NULL,'geocentric','EPSG','6500','EPSG','1173','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7880','St. Helena Tritan',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1173','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7881','St. Helena Tritan',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1173','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7884','SHGD2015',NULL,NULL,'geocentric','EPSG','6500','EPSG','1174','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7885','SHGD2015',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1174','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7886','SHGD2015',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1174','EPSG','3183',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7900','ITRF88',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6647','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7901','ITRF89',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6648','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7902','ITRF90',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6649','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7903','ITRF91',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6650','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7904','ITRF92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6651','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7905','ITRF93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6652','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7906','ITRF94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6653','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7907','ITRF96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6654','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7908','ITRF97',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6655','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7909','ITRF2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6656','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7910','ITRF2005',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','6896','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7911','ITRF2008',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1061','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7912','ITRF2014',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1165','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7914','ETRF89',NULL,NULL,'geocentric','EPSG','6500','EPSG','1178','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7915','ETRF89',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1178','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7916','ETRF90',NULL,NULL,'geocentric','EPSG','6500','EPSG','1179','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7917','ETRF90',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1179','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7918','ETRF91',NULL,NULL,'geocentric','EPSG','6500','EPSG','1180','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7919','ETRF91',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1180','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7920','ETRF92',NULL,NULL,'geocentric','EPSG','6500','EPSG','1181','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7921','ETRF92',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1181','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7922','ETRF93',NULL,NULL,'geocentric','EPSG','6500','EPSG','1182','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7923','ETRF93',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1182','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7924','ETRF94',NULL,NULL,'geocentric','EPSG','6500','EPSG','1183','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7925','ETRF94',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1183','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7926','ETRF96',NULL,NULL,'geocentric','EPSG','6500','EPSG','1184','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7927','ETRF96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1184','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7928','ETRF97',NULL,NULL,'geocentric','EPSG','6500','EPSG','1185','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7929','ETRF97',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1185','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7930','ETRF2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','1186','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','7931','ETRF2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1186','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8042','Gusterberg (Ferro)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1188','EPSG','4455',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8043','<NAME> (Ferro)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1189','EPSG','4456',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8084','ISN2016',NULL,NULL,'geocentric','EPSG','6500','EPSG','1187','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8085','ISN2016',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1187','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8086','ISN2016',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1187','EPSG','1120',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8227','IGS14',NULL,NULL,'geocentric','EPSG','6500','EPSG','1191','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8230','NAD83(CSRS96)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1192','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8231','NAD83(CSRS96)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1192','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8232','NAD83(CSRS96)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1192','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8233','NAD83(CSRS)v2',NULL,NULL,'geocentric','EPSG','6500','EPSG','1193','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8235','NAD83(CSRS)v2',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1193','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8237','NAD83(CSRS)v2',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1193','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8238','NAD83(CSRS)v3',NULL,NULL,'geocentric','EPSG','6500','EPSG','1194','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8239','NAD83(CSRS)v3',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1194','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8240','NAD83(CSRS)v3',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1194','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8242','NAD83(CSRS)v4',NULL,NULL,'geocentric','EPSG','6500','EPSG','1195','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8244','NAD83(CSRS)v4',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1195','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8246','NAD83(CSRS)v4',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1195','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8247','NAD83(CSRS)v5',NULL,NULL,'geocentric','EPSG','6500','EPSG','1196','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8248','NAD83(CSRS)v5',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1196','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8249','NAD83(CSRS)v5',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1196','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8250','NAD83(CSRS)v6',NULL,NULL,'geocentric','EPSG','6500','EPSG','1197','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8251','NAD83(CSRS)v6',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1197','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8252','NAD83(CSRS)v6',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1197','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8253','NAD83(CSRS)v7',NULL,NULL,'geocentric','EPSG','6500','EPSG','1198','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8254','NAD83(CSRS)v7',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1198','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8255','NAD83(CSRS)v7',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1198','EPSG','1061',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8351','S-JTSK [JTSK03]',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1201','EPSG','1211',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8397','ETRF2005',NULL,NULL,'geocentric','EPSG','6500','EPSG','1204','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8399','ETRF2005',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1204','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8401','ETRF2014',NULL,NULL,'geocentric','EPSG','6500','EPSG','1206','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8403','ETRF2014',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1206','EPSG','1298',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8425','Hong Kong Geodetic CS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1209','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8426','Hong Kong Geodetic CS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1209','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8427','Hong Kong Geodetic CS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1209','EPSG','1118',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8428','Macao 1920',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1207','EPSG','1147',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8429','Macao 2008',NULL,NULL,'geocentric','EPSG','6500','EPSG','1208','EPSG','1147',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8430','Macao 2008',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1208','EPSG','1147',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8431','Macao 2008',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1208','EPSG','1147',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8449','NAD83(FBN)',NULL,NULL,'geographic 2D','EPSG','6423','EPSG','6152','EPSG','4515',NULL,1); INSERT INTO "geodetic_crs" VALUES('EPSG','8541','NAD83(FBN)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1211','EPSG','4515',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8542','NAD83(FBN)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1211','EPSG','4515',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8543','NAD83(HARN Corrected)',NULL,NULL,'geocentric','EPSG','6500','EPSG','1212','EPSG','3634',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8544','NAD83(HARN Corrected)',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1212','EPSG','3634',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8545','NAD83(HARN Corrected)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1212','EPSG','3634',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8683','SRB_ETRS89',NULL,NULL,'geocentric','EPSG','6500','EPSG','1214','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8684','SRB_ETRS89',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1214','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8685','SRB_ETRS89',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1214','EPSG','3534',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8816','MTRF-2000',NULL,NULL,'geocentric','EPSG','6500','EPSG','1218','EPSG','1206',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8817','MTRF-2000',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1218','EPSG','1206',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8818','MTRF-2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1218','EPSG','1206',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8860','NAD83(FBN)',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1211','EPSG','4515',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8898','RGWF96',NULL,NULL,'geocentric','EPSG','6500','EPSG','1223','EPSG','1255',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8899','RGWF96',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1223','EPSG','1255',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8900','RGWF96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1223','EPSG','1255',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8901','RGWF96 (lon-lat)',NULL,NULL,'geographic 3D','EPSG','6426','EPSG','1223','EPSG','1255',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8902','RGWF96 (lon-lat)',NULL,NULL,'geographic 2D','EPSG','6424','EPSG','1223','EPSG','1255',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8905','CR-SIRGAS',NULL,NULL,'geocentric','EPSG','6500','EPSG','1225','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8906','CR-SIRGAS',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1225','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8907','CR-SIRGAS',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1225','EPSG','1074',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8988','ITRF88',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6647','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8989','ITRF89',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6648','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8990','ITRF90',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6649','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8991','ITRF91',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6650','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8992','ITRF92',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6651','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8993','ITRF93',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6652','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8994','ITRF94',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6653','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8995','ITRF96',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6654','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8996','ITRF97',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6655','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8997','ITRF2000',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6656','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8998','ITRF2005',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','6896','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','8999','ITRF2008',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1061','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9000','ITRF2014',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1165','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9001','IGS97',NULL,NULL,'geocentric','EPSG','6500','EPSG','1244','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9002','IGS97',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1244','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9003','IGS97',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1244','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9004','IGS00',NULL,NULL,'geocentric','EPSG','6500','EPSG','1245','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9005','IGS00',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1245','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9006','IGS00',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1245','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9007','IGb00',NULL,NULL,'geocentric','EPSG','6500','EPSG','1246','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9008','IGb00',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1246','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9009','IGb00',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1246','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9010','IGS05',NULL,NULL,'geocentric','EPSG','6500','EPSG','1247','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9011','IGS05',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1247','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9012','IGS05',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1247','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9013','IGS08',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1141','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9014','IGS08',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1141','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9015','IGb08',NULL,NULL,'geocentric','EPSG','6500','EPSG','1248','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9016','IGb08',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1248','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9017','IGb08',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1248','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9018','IGS14',NULL,NULL,'geographic 3D','EPSG','6423','EPSG','1191','EPSG','1262',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','9019','IGS14',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1191','EPSG','1262',NULL,0);
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2017-09-30',@EPS = N'0.34',@EPSDeduct = N'0',@Revenue = N'17.89亿',@RevenueYoy = N'2.41',@RevenueQoq = N'-6.13',@Profit = N'1.87亿',@ProfitYoy = N'5.06',@ProfiltQoq = N'3.35',@NAVPerUnit = N'6.2504',@ROE = N'5.54',@CashPerUnit = N'0.3350',@GrossProfitRate = N'17.22',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2017-09-30',@EPS = N'0.34',@EPSDeduct = N'0',@Revenue = N'17.89亿',@RevenueYoy = N'2.41',@RevenueQoq = N'-6.13',@Profit = N'1.87亿',@ProfitYoy = N'5.06',@ProfiltQoq = N'3.35',@NAVPerUnit = N'6.2504',@ROE = N'5.54',@CashPerUnit = N'0.3350',@GrossProfitRate = N'17.22',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2017-06-30',@EPS = N'0.235',@EPSDeduct = N'0.231',@Revenue = N'11.89亿',@RevenueYoy = N'2.20',@RevenueQoq = N'16.25',@Profit = N'1.29亿',@ProfitYoy = N'1.47',@ProfiltQoq = N'-24.95',@NAVPerUnit = N'6.0495',@ROE = N'3.87',@CashPerUnit = N'0.1985',@GrossProfitRate = N'17.39',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2017-03-31',@EPS = N'0.134',@EPSDeduct = N'0',@Revenue = N'5.50亿',@RevenueYoy = N'-7.67',@RevenueQoq = N'-13.76',@Profit = N'7394.16万',@ProfitYoy = N'49.76',@ProfiltQoq = N'25.32',@NAVPerUnit = N'6.0122',@ROE = N'2.25',@CashPerUnit = N'0.0565',@GrossProfitRate = N'20.31',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2016-12-31',@EPS = N'0.43',@EPSDeduct = N'0.41',@Revenue = N'23.56亿',@RevenueYoy = N'5.72',@RevenueQoq = N'11.13',@Profit = N'2.37亿',@ProfitYoy = N'6.95',@ProfiltQoq = N'17.63',@NAVPerUnit = N'5.8991',@ROE = N'7.04',@CashPerUnit = N'0.4917',@GrossProfitRate = N'17.77',@Distribution = N'10派2.5',@DividenRate = N'1.36',@AnnounceDate = N'2017-03-25' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2016-03-31',@EPS = N'0.09',@EPSDeduct = N'0',@Revenue = N'5.96亿',@RevenueYoy = N'14.16',@RevenueQoq = N'-0.78',@Profit = N'4937.40万',@ProfitYoy = N'2.19',@ProfiltQoq = N'-24.80',@NAVPerUnit = N'6.0002',@ROE = N'1.45',@CashPerUnit = N'0.0236',@GrossProfitRate = N'19.71',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2015-12-31',@EPS = N'0.402',@EPSDeduct = N'0.346',@Revenue = N'22.29亿',@RevenueYoy = N'0.46',@RevenueQoq = N'9.95',@Profit = N'2.22亿',@ProfitYoy = N'3.45',@ProfiltQoq = N'60.13',@NAVPerUnit = N'6.3101',@ROE = N'7.65',@CashPerUnit = N'0.6011',@GrossProfitRate = N'19.03',@Distribution = N'10派2.5',@DividenRate = N'0.83',@AnnounceDate = N'2017-03-25' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2015-09-30',@EPS = N'0.28',@EPSDeduct = N'0',@Revenue = N'16.01亿',@RevenueYoy = N'-0.19',@RevenueQoq = N'-2.38',@Profit = N'1.56亿',@ProfitYoy = N'-7.39',@ProfiltQoq = N'-38.60',@NAVPerUnit = N'5.7109',@ROE = N'5.70',@CashPerUnit = N'0.3398',@GrossProfitRate = N'20.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2016-06-30',@EPS = N'0.23',@EPSDeduct = N'0.232',@Revenue = N'11.63亿',@RevenueYoy = N'7.60',@RevenueQoq = N'-4.70',@Profit = N'1.28亿',@ProfitYoy = N'11.15',@ProfiltQoq = N'59.10',@NAVPerUnit = N'5.7237',@ROE = N'3.78',@CashPerUnit = N'0.1768',@GrossProfitRate = N'18.25',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2015-03-31',@EPS = N'0.088',@EPSDeduct = N'0',@Revenue = N'5.13亿',@RevenueYoy = N'1.26',@RevenueQoq = N'-11.14',@Profit = N'4828.32万',@ProfitYoy = N'4.32',@ProfiltQoq = N'5.46',@NAVPerUnit = N'4.3031',@ROE = N'2.06',@CashPerUnit = N'0.0983',@GrossProfitRate = N'23.70',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2014-12-31',@EPS = N'0.388',@EPSDeduct = N'0.34',@Revenue = N'21.82亿',@RevenueYoy = N'4.48',@RevenueQoq = N'4.76',@Profit = N'2.14亿',@ProfitYoy = N'-8.81',@ProfiltQoq = N'-30.53',@NAVPerUnit = N'4.2147',@ROE = N'9.43',@CashPerUnit = N'0.6152',@GrossProfitRate = N'20.34',@Distribution = N'10派2.5',@DividenRate = N'1.44',@AnnounceDate = N'2016-03-25' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2014-06-30',@EPS = N'0.186',@EPSDeduct = N'0.18',@Revenue = N'10.53亿',@RevenueYoy = N'3.73',@RevenueQoq = N'7.62',@Profit = N'1.03亿',@ProfitYoy = N'7.81',@ProfiltQoq = N'21.52',@NAVPerUnit = N'3.9446',@ROE = N'4.44',@CashPerUnit = N'0.1834',@GrossProfitRate = N'21.13',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2014-03-31',@EPS = N'0.084',@EPSDeduct = N'0',@Revenue = N'5.07亿',@RevenueYoy = N'2.70',@RevenueQoq = N'-7.82',@Profit = N'4628.20万',@ProfitYoy = N'1.92',@ProfiltQoq = N'7.16',@NAVPerUnit = N'4.1025',@ROE = N'2.09',@CashPerUnit = N'0.0545',@GrossProfitRate = N'23.50',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2013-12-31',@EPS = N'0.426',@EPSDeduct = N'0.319',@Revenue = N'20.89亿',@RevenueYoy = N'3.11',@RevenueQoq = N'5.07',@Profit = N'2.35亿',@ProfitYoy = N'27.14',@ProfiltQoq = N'-55.30',@NAVPerUnit = N'4.0204',@ROE = N'10.84',@CashPerUnit = N'0.4685',@GrossProfitRate = N'20.07',@Distribution = N'10派2.6',@DividenRate = N'2.87',@AnnounceDate = N'2015-03-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2013-09-30',@EPS = N'0.348',@EPSDeduct = N'0',@Revenue = N'15.38亿',@RevenueYoy = N'0.78',@RevenueQoq = N'0.46',@Profit = N'1.92亿',@ProfitYoy = N'39.01',@ProfiltQoq = N'94.46',@NAVPerUnit = N'3.9526',@ROE = N'8.89',@CashPerUnit = N'0.2959',@GrossProfitRate = N'21.05',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2013-06-30',@EPS = N'0.172',@EPSDeduct = N'0.167',@Revenue = N'10.15亿',@RevenueYoy = N'3.62',@RevenueQoq = N'5.56',@Profit = N'9510.10万',@ProfitYoy = N'0.46',@ProfiltQoq = N'9.43',@NAVPerUnit = N'3.7650',@ROE = N'4.44',@CashPerUnit = N'0.2087',@GrossProfitRate = N'21.89',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2013-03-31',@EPS = N'0.082',@EPSDeduct = N'0.08',@Revenue = N'4.94亿',@RevenueYoy = N'4.78',@RevenueQoq = N'-1.04',@Profit = N'4540.98万',@ProfitYoy = N'0.23',@ProfiltQoq = N'-3.06',@NAVPerUnit = N'3.9217',@ROE = N'2.12',@CashPerUnit = N'0.0413',@GrossProfitRate = N'23.29',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2012-12-31',@EPS = N'0.335',@EPSDeduct = N'0.318',@Revenue = N'20.26亿',@RevenueYoy = N'5.51',@RevenueQoq = N'-8.81',@Profit = N'1.85亿',@ProfitYoy = N'-24.10',@ProfiltQoq = N'8.29',@NAVPerUnit = N'3.8400',@ROE = N'8.76',@CashPerUnit = N'0.5636',@GrossProfitRate = N'19.83',@Distribution = N'10派2.3',@DividenRate = N'3.59',@AnnounceDate = N'2014-03-25' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2012-09-30',@EPS = N'0.25',@EPSDeduct = N'0.242',@Revenue = N'15.27亿',@RevenueYoy = N'9.01',@RevenueQoq = N'7.64',@Profit = N'1.38亿',@ProfitYoy = N'-31.81',@ProfiltQoq = N'-12.35',@NAVPerUnit = N'3.7476',@ROE = N'6.53',@CashPerUnit = N'0.3690',@GrossProfitRate = N'20.30',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2012-06-30',@EPS = N'0.172',@EPSDeduct = N'0.164',@Revenue = N'9.80亿',@RevenueYoy = N'8.37',@RevenueQoq = N'7.87',@Profit = N'9466.11万',@ProfitYoy = N'-34.24',@ProfiltQoq = N'8.95',@NAVPerUnit = N'3.6748',@ROE = N'4.41',@CashPerUnit = N'0.2171',@GrossProfitRate = N'21.09',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2012-03-31',@EPS = N'0.082',@EPSDeduct = N'0.079',@Revenue = N'4.71亿',@RevenueYoy = N'3.62',@RevenueQoq = N'-9.28',@Profit = N'4530.35万',@ProfitYoy = N'-19.21',@ProfiltQoq = N'10.00',@NAVPerUnit = N'3.8925',@ROE = N'2.13',@CashPerUnit = N'0.0295',@GrossProfitRate = N'20.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2011-12-31',@EPS = N'0.441',@EPSDeduct = N'0.412',@Revenue = N'19.20亿',@RevenueYoy = N'4.25',@RevenueQoq = N'4.60',@Profit = N'2.43亿',@ProfitYoy = N'-14.34',@ProfiltQoq = N'-29.36',@NAVPerUnit = N'3.8059',@ROE = N'11.83',@CashPerUnit = N'0.6379',@GrossProfitRate = N'24.81',@Distribution = N'10派3',@DividenRate = N'4.14',@AnnounceDate = N'2013-03-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2011-09-30',@EPS = N'0.367',@EPSDeduct = N'0.342',@Revenue = N'14.00亿',@RevenueYoy = N'2.77',@RevenueQoq = N'10.57',@Profit = N'2.02亿',@ProfitYoy = N'-4.35',@ProfiltQoq = N'-33.65',@NAVPerUnit = N'3.6940',@ROE = N'9.92',@CashPerUnit = N'0.5577',@GrossProfitRate = N'26.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2011-06-30',@EPS = N'0.261',@EPSDeduct = N'0.24',@Revenue = N'9.04亿',@RevenueYoy = N'2.65',@RevenueQoq = N'-1.24',@Profit = N'1.44亿',@ProfitYoy = N'2.99',@ProfiltQoq = N'56.71',@NAVPerUnit = N'3.6050',@ROE = N'7.00',@CashPerUnit = N'0.4206',@GrossProfitRate = N'28.31',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-25' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2011-03-31',@EPS = N'0.102',@EPSDeduct = N'0.088',@Revenue = N'4.55亿',@RevenueYoy = N'7.18',@RevenueQoq = N'-5.05',@Profit = N'5607.48万',@ProfitYoy = N'0.40',@ProfiltQoq = N'-22.92',@NAVPerUnit = N'3.7500',@ROE = N'2.74',@CashPerUnit = N'0.0617',@GrossProfitRate = N'25.64',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2010-12-31',@EPS = N'0.515',@EPSDeduct = N'0.478',@Revenue = N'18.42亿',@RevenueYoy = N'15.21',@RevenueQoq = N'-0.66',@Profit = N'2.84亿',@ProfitYoy = N'5.48',@ProfiltQoq = N'1.50',@NAVPerUnit = N'3.6542',@ROE = N'14.36',@CashPerUnit = N'0.7591',@GrossProfitRate = N'25.79',@Distribution = N'10派3',@DividenRate = N'3.01',@AnnounceDate = N'2012-03-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2010-09-30',@EPS = N'0.383',@EPSDeduct = N'0.339',@Revenue = N'13.63亿',@RevenueYoy = N'14.55',@RevenueQoq = N'5.66',@Profit = N'2.11亿',@ProfitYoy = N'5.63',@ProfiltQoq = N'-14.59',@NAVPerUnit = N'3.5290',@ROE = N'10.72',@CashPerUnit = N'0.5542',@GrossProfitRate = N'27.00',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2010-06-30',@EPS = N'0.253',@EPSDeduct = N'0.229',@Revenue = N'8.81亿',@RevenueYoy = N'13.01',@RevenueQoq = N'7.55',@Profit = N'1.40亿',@ProfitYoy = N'-0.40',@ProfiltQoq = N'50.27',@NAVPerUnit = N'3.4000',@ROE = N'7.01',@CashPerUnit = N'0.3993',@GrossProfitRate = N'27.69',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2010-03-31',@EPS = N'0.101',@EPSDeduct = N'0.093',@Revenue = N'4.24亿',@RevenueYoy = N'12.21',@RevenueQoq = N'3.78',@Profit = N'5584.95万',@ProfitYoy = N'9.43',@ProfiltQoq = N'-19.34',@NAVPerUnit = N'3.6080',@ROE = N'2.84',@CashPerUnit = N'0.1656',@GrossProfitRate = N'27.27',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2009-12-31',@EPS = N'0.488',@EPSDeduct = N'0.39',@Revenue = N'15.98亿',@RevenueYoy = N'-4.50',@RevenueQoq = N'-0.40',@Profit = N'2.69亿',@ProfitYoy = N'-16.61',@ProfiltQoq = N'15.70',@NAVPerUnit = N'3.5200',@ROE = N'14.47',@CashPerUnit = N'0.5880',@GrossProfitRate = N'27.65',@Distribution = N'10派3',@DividenRate = N'2.44',@AnnounceDate = N'2011-03-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2016-09-30',@EPS = N'0.32',@EPSDeduct = N'0',@Revenue = N'17.47亿',@RevenueYoy = N'7.33',@RevenueQoq = N'2.72',@Profit = N'1.78亿',@ProfitYoy = N'14.11',@ProfiltQoq = N'-36.10',@NAVPerUnit = N'5.7063',@ROE = N'5.27',@CashPerUnit = N'0.3526',@GrossProfitRate = N'18.92',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2009-09-30',@EPS = N'0.363',@EPSDeduct = N'0.299',@Revenue = N'11.90亿',@RevenueYoy = N'-5.75',@RevenueQoq = N'2.33',@Profit = N'2.00亿',@ProfitYoy = N'-19.36',@ProfiltQoq = N'-32.99',@NAVPerUnit = N'3.3890',@ROE = N'-',@CashPerUnit = N'0.4897',@GrossProfitRate = N'27.25',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2009-06-30',@EPS = N'0.254',@EPSDeduct = N'0.208',@Revenue = N'7.79亿',@RevenueYoy = N'-5.16',@RevenueQoq = N'6.08',@Profit = N'1.40亿',@ProfitYoy = N'-19.94',@ProfiltQoq = N'74.99',@NAVPerUnit = N'3.2940',@ROE = N'7.64',@CashPerUnit = N'0.3885',@GrossProfitRate = N'28.43',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2014-09-30',@EPS = N'0.305',@EPSDeduct = N'0',@Revenue = N'16.04亿',@RevenueYoy = N'4.28',@RevenueQoq = N'1.07',@Profit = N'1.68亿',@ProfitYoy = N'-12.15',@ProfiltQoq = N'17.17',@NAVPerUnit = N'4.0787',@ROE = N'7.46',@CashPerUnit = N'0.4260',@GrossProfitRate = N'21.05',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2008-12-31',@EPS = N'0.586',@EPSDeduct = N'0.508',@Revenue = N'16.74亿',@RevenueYoy = N'3.35',@RevenueQoq = N'-6.59',@Profit = N'3.23亿',@ProfitYoy = N'3.36',@ProfiltQoq = N'2.61',@NAVPerUnit = N'3.2520',@ROE = N'18.04',@CashPerUnit = N'0.7735',@GrossProfitRate = N'25.92',@Distribution = N'10派3',@DividenRate = N'2.28',@AnnounceDate = N'2010-04-09' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2008-09-30',@EPS = N'0.45',@EPSDeduct = N'0.402',@Revenue = N'12.62亿',@RevenueYoy = N'4.95',@RevenueQoq = N'6.02',@Profit = N'2.48亿',@ProfitYoy = N'2.55',@ProfiltQoq = N'-19.53',@NAVPerUnit = N'3.1420',@ROE = N'-',@CashPerUnit = N'0.6682',@GrossProfitRate = N'25.42',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2008-06-30',@EPS = N'0.318',@EPSDeduct = N'0.285',@Revenue = N'8.22亿',@RevenueYoy = N'4.33',@RevenueQoq = N'2.35',@Profit = N'1.75亿',@ProfitYoy = N'7.25',@ProfiltQoq = N'7.14',@NAVPerUnit = N'3.0400',@ROE = N'9.54',@CashPerUnit = N'0.4825',@GrossProfitRate = N'26.78',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-12' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2015-06-30',@EPS = N'0.209',@EPSDeduct = N'0.183',@Revenue = N'10.64亿',@RevenueYoy = N'1.06',@RevenueQoq = N'7.21',@Profit = N'1.15亿',@ProfitYoy = N'12.18',@ProfiltQoq = N'38.21',@NAVPerUnit = N'7.0005',@ROE = N'3.64',@CashPerUnit = N'0.2105',@GrossProfitRate = N'20.66',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2009-03-31',@EPS = N'0.093',@EPSDeduct = N'0.083',@Revenue = N'3.78亿',@RevenueYoy = N'-6.87',@RevenueQoq = N'-8.13',@Profit = N'5103.45万',@ProfitYoy = N'-39.69',@ProfiltQoq = N'-31.83',@NAVPerUnit = N'3.4000',@ROE = N'-',@CashPerUnit = N'0.1630',@GrossProfitRate = N'28.45',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2007-09-30',@EPS = N'0.439',@EPSDeduct = N'0.385',@Revenue = N'12.03亿',@RevenueYoy = N'22.48',@RevenueQoq = N'4.57',@Profit = N'2.42亿',@ProfitYoy = N'18.39',@ProfiltQoq = N'-14.73',@NAVPerUnit = N'2.9000',@ROE = N'-',@CashPerUnit = N'0.6284',@GrossProfitRate = N'27.05',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-24' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2007-06-30',@EPS = N'0.296',@EPSDeduct = N'0.2618',@Revenue = N'7.87亿',@RevenueYoy = N'15.12',@RevenueQoq = N'1.67',@Profit = N'1.63亿',@ProfitYoy = N'18.79',@ProfiltQoq = N'29.46',@NAVPerUnit = N'2.7300',@ROE = N'10.56',@CashPerUnit = N'0.4726',@GrossProfitRate = N'28.33',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-22' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2006-12-31',@EPS = N'0.509',@EPSDeduct = N'0.482',@Revenue = N'13.59亿',@RevenueYoy = N'-58.56',@RevenueQoq = N'26.65',@Profit = N'2.81亿',@ProfitYoy = N'11.90',@ProfiltQoq = N'14.15',@NAVPerUnit = N'3.6300',@ROE = N'13.96',@CashPerUnit = N'0.7234',@GrossProfitRate = N'28.70',@Distribution = N'10派3.5',@DividenRate = N'2.42',@AnnounceDate = N'2008-03-20' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2006-09-30',@EPS = N'0.371',@EPSDeduct = N'0',@Revenue = N'9.82亿',@RevenueYoy = N'-62.95',@RevenueQoq = N'-22.33',@Profit = N'2.04亿',@ProfitYoy = N'31.86',@ProfiltQoq = N'-10.90',@NAVPerUnit = N'3.5000',@ROE = N'-',@CashPerUnit = N'0.5706',@GrossProfitRate = N'28.30',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2008-03-31',@EPS = N'0.153',@EPSDeduct = N'0.129',@Revenue = N'4.06亿',@RevenueYoy = N'3.98',@RevenueQoq = N'-2.60',@Profit = N'8462.05万',@ProfitYoy = N'18.80',@ProfiltQoq = N'19.99',@NAVPerUnit = N'3.3190',@ROE = N'-',@CashPerUnit = N'0.1999',@GrossProfitRate = N'28.07',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2006-06-30',@EPS = N'0.249',@EPSDeduct = N'0',@Revenue = N'6.84亿',@RevenueYoy = N'-62.16',@RevenueQoq = N'27.62',@Profit = N'1.38亿',@ProfitYoy = N'36.55',@ProfiltQoq = N'20.08',@NAVPerUnit = N'3.3800',@ROE = N'6.88',@CashPerUnit = N'0.4558',@GrossProfitRate = N'27.04',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-08-10' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2006-03-31',@EPS = N'0.113',@EPSDeduct = N'0',@Revenue = N'3.01亿',@RevenueYoy = N'-66.51',@RevenueQoq = N'-52.31',@Profit = N'6251.52万',@ProfitYoy = N'21.09',@ProfiltQoq = N'-34.80',@NAVPerUnit = N'3.5500',@ROE = N'-',@CashPerUnit = N'0.1592',@GrossProfitRate = N'31.72',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-04-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2005-12-31',@EPS = N'0.4549',@EPSDeduct = N'0',@Revenue = N'32.80亿',@RevenueYoy = N'29.54',@RevenueQoq = N'-25.18',@Profit = N'2.51亿',@ProfitYoy = N'24.47',@ProfiltQoq = N'76.52',@NAVPerUnit = N'3.4400',@ROE = N'13.81',@CashPerUnit = N'0.8171',@GrossProfitRate = N'16.05',@Distribution = N'10派3',@DividenRate = N'4.13',@AnnounceDate = N'2007-04-11' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'26.50亿',@RevenueYoy = N'81.45',@RevenueQoq = N'-7.49',@Profit = N'1.55亿',@ProfitYoy = N'51.12',@ProfiltQoq = N'10.56',@NAVPerUnit = N'3.2300',@ROE = N'-',@CashPerUnit = N'0.6955',@GrossProfitRate = N'15.87',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2005-06-30',@EPS = N'0.1827',@EPSDeduct = N'0',@Revenue = N'18.08亿',@RevenueYoy = N'278.17',@RevenueQoq = N'1.47',@Profit = N'1.01亿',@ProfitYoy = N'59.60',@ProfiltQoq = N'-4.84',@NAVPerUnit = N'3.1300',@ROE = N'5.82',@CashPerUnit = N'0.4999',@GrossProfitRate = N'16.00',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-08-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2007-12-31',@EPS = N'0.567',@EPSDeduct = N'0.505',@Revenue = N'16.19亿',@RevenueYoy = N'19.15',@RevenueQoq = N'0.41',@Profit = N'3.13亿',@ProfitYoy = N'11.31',@ProfiltQoq = N'-10.30',@NAVPerUnit = N'3.2390',@ROE = N'18.80',@CashPerUnit = N'0.6242',@GrossProfitRate = N'26.91',@Distribution = N'10派4',@DividenRate = N'4.65',@AnnounceDate = N'2009-04-23' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2007-03-31',@EPS = N'0.129',@EPSDeduct = N'0',@Revenue = N'3.90亿',@RevenueYoy = N'29.93',@RevenueQoq = N'3.51',@Profit = N'7122.73万',@ProfitYoy = N'13.94',@ProfiltQoq = N'-6.71',@NAVPerUnit = N'2.8600',@ROE = N'-',@CashPerUnit = N'0.1609',@GrossProfitRate = N'27.06',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-25'
<reponame>surviveplus/MVVM-Sample CREATE INDEX [ProductsIndex2] ON [dbo].[Products] (Publisher)
<filename>study/exception.sql -- PL/SQLの例外処理の例 -- 宣言部 DECLARE name VARCHAR2(10); noNameException EXCEPTION; -- 処理部 BEGIN name := ''; IF (name is not null) THEN DBMS_OUTPUT.PUT_LINE('名前は' || name || 'です。'); ELSE RAISE noNameException; END IF; -- 例外処理部 EXCEPTION WHEN noNameException THEN DBMS_OUTPUT.PUT_LINE('名前がありません。'); END;
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2022 at 07:22 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.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: `myblog` -- -- -------------------------------------------------------- -- -- Table structure for table `article` -- CREATE TABLE `article` ( `art_id` int(11) NOT NULL, `art_title` varchar(50) NOT NULL, `art_body` longtext NOT NULL, `art_image` varchar(50) DEFAULT NULL, `art_authorid` int(11) UNSIGNED NOT NULL, `art_category` int(11) DEFAULT NULL, `art_view` int(11) DEFAULT NULL, `art_created_date` datetime DEFAULT current_timestamp(), `art_update_date` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `comment` -- CREATE TABLE `comment` ( `com_id` int(11) NOT NULL, `com_detail` int(11) DEFAULT NULL, `com_userid` int(10) UNSIGNED NOT NULL, `com_articleid` int(11) NOT NULL, `com_created_date` int(11) DEFAULT NULL, `com_updated_date` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `postcategory` -- CREATE TABLE `postcategory` ( `pc_id` int(11) NOT NULL, `pc_categorytitle` varchar(50) DEFAULT NULL, `pc_categorydesc` mediumtext DEFAULT NULL, `pc_createddate` datetime DEFAULT current_timestamp(), `pc_updatedate` datetime DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `us_userid` int(11) UNSIGNED NOT NULL, `us_username` varchar(50) NOT NULL DEFAULT '', `us_firstname` varchar(50) NOT NULL DEFAULT '', `us_lastname` varchar(50) NOT NULL DEFAULT '', `us_gender` enum('M','F') NOT NULL, `us_email` varchar(50) NOT NULL DEFAULT '', `us_password` mediumtext NOT NULL, `us_regdate` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'Registered date', `us_updatedate` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- -- -- Indexes for dumped tables -- -- -- Indexes for table `article` -- ALTER TABLE `article` ADD PRIMARY KEY (`art_id`), ADD KEY `FK_article_postcategory` (`art_category`), ADD KEY `FK_article_users` (`art_authorid`) USING BTREE; -- -- Indexes for table `comment` -- ALTER TABLE `comment` ADD PRIMARY KEY (`com_id`), ADD KEY `FK__users` (`com_userid`), ADD KEY `FK__article` (`com_articleid`); -- -- Indexes for table `postcategory` -- ALTER TABLE `postcategory` ADD PRIMARY KEY (`pc_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`us_userid`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `article` -- ALTER TABLE `article` MODIFY `art_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `us_userid` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `article` -- ALTER TABLE `article` ADD CONSTRAINT `FK_article_postcategory` FOREIGN KEY (`art_category`) REFERENCES `postcategory` (`pc_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `FK_article_users` FOREIGN KEY (`art_authorid`) REFERENCES `users` (`us_userid`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `comment` -- ALTER TABLE `comment` ADD CONSTRAINT `FK__article` FOREIGN KEY (`com_articleid`) REFERENCES `article` (`art_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `FK__users` FOREIGN KEY (`com_userid`) REFERENCES `users` (`us_userid`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
------------------------------------------------------------------------------- -- -- Script: reserved_pool_summary.sql -- Purpose: to get an overview of chunks in the reserved pool -- For: 7.3 -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- ------------------------------------------------------------------------------- @save_sqlplus_settings select ksmchcom contents, count(*) chunks, sum(decode(ksmchcls, 'R-recr', ksmchsiz)) recreatable, sum(decode(ksmchcls, 'R-freea', ksmchsiz)) freeable, sum(ksmchsiz) total from sys.x_$ksmspr group by ksmchcom / @restore_sqlplus_settings
<reponame>junior-ux/projetoEngenharia -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 03-Dez-2019 às 15:11 -- Versão do servidor: 10.4.8-MariaDB -- versão do PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Banco de dados: `projetoengenharia` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `ta_cupom` -- CREATE TABLE `ta_cupom` ( `id` int(11) NOT NULL, `nome` varchar(50) NOT NULL, `desconto` int(11) NOT NULL, `quantidade` int(11) NOT NULL, `validade` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `ta_cupom` -- INSERT INTO `ta_cupom` (`id`, `nome`, `desconto`, `quantidade`, `validade`) VALUES (10, 'cupomteste', 2, 12, '2019-12-12'), (12, 'sdnsd12', 12, 12, '2019-12-12'), (14, 'assas', 14, 14, '2019-12-14'), (16, 'dfdf', 12, 12, '2019-12-12'), (21, 'ndmooo', 4, 5, '2020-01-29'), (25, 'qualquer', 12, 10, '2019-12-10'), (27, 'selo', 12, 2, '2019-12-12'), (31, 'hhhdkdhdk', 2, 2, '2020-02-02'), (33, 'sdjsk', 1, 1, '2019-12-12'), (34, 'super', 5, 10, '2109-12-12'); -- -- Índices para tabelas despejadas -- -- -- Índices para tabela `ta_cupom` -- ALTER TABLE `ta_cupom` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `nome` (`nome`); -- -- AUTO_INCREMENT de tabelas despejadas -- -- -- AUTO_INCREMENT de tabela `ta_cupom` -- ALTER TABLE `ta_cupom` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; 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 */;
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table todo ( id bigint auto_increment not null, value varchar(1024) not null, user_id bigint, constraint pk_todo primary key (id) ); create table user ( id bigint auto_increment not null, auth_token varchar(255), email_address varchar(256) not null, sha_password varbinary(64) not null, full_name varchar(256) not null, creation_date timestamp not null, constraint uq_user_email_address unique (email_address), constraint pk_user primary key (id) ); alter table todo add constraint fk_todo_user_id foreign key (user_id) references user (id) on delete restrict on update restrict; create index ix_todo_user_id on todo (user_id); # --- !Downs alter table todo drop constraint if exists fk_todo_user_id; drop index if exists ix_todo_user_id; drop table if exists todo; drop table if exists user;
-- ---------------------------- -- Records of t_cms_article -- ---------------------------- INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('1', '1', '2019-03-09 16:24:58', '1', '2019-05-10 13:22:49', 'enilu', '<div id=\"articleContent\" class=\"content\">\n<div class=\"ad-wrap\">\n<p style=\"margin: 0 0 10px 0;\">一般我们都有这样的需求:我需要知道库中的数据是由谁创建,什么时候创建,最后一次修改时间是什么时候,最后一次修改人是谁。web-flash最新代码已经实现该需求,具体实现方式网上有很多资料,这里做会搬运工,将web-flash的实现步骤罗列如下:%%</p>\n</div>\n<p>在Spring jpa中可以通过在实体bean的属性或者方法上添加以下注解来实现上述需求@CreatedDate、@CreatedBy、@LastModifiedDate、@LastModifiedBy。</p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>@CreatedDate 表示该字段为创建时间时间字段,在这个实体被insert的时候,会设置值</p>\n</li>\n<li>\n<p>@CreatedBy 表示该字段为创建人,在这个实体被insert的时候,会设置值</p>\n</li>\n<li>\n<p>@LastModifiedDate 最后修改时间 实体被update的时候会设置</p>\n</li>\n<li>\n<p>@LastModifiedBy 最后修改人 实体被update的时候会设置</p>\n</li>\n</ul>\n<h2>使用方式</h2>\n<h3>实体类添加注解</h3>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>首先在实体中对应的字段加上上述4个注解</p>\n</li>\n<li>\n<p>在web-flash中我们提取了一个基础实体类BaseEntity,并将对应的字段添加上述4个注解,所有需要记录维护信息的表对应的实体都集成该类</p>\n</li>\n</ul>\n<pre>import&nbsp;org.springframework.data.annotation.CreatedBy;\nimport&nbsp;org.springframework.data.annotation.CreatedDate;\nimport&nbsp;org.springframework.data.annotation.LastModifiedBy;\nimport&nbsp;org.springframework.data.annotation.LastModifiedDate;\nimport&nbsp;javax.persistence.Column;\nimport&nbsp;javax.persistence.GeneratedValue;\nimport&nbsp;javax.persistence.Id;\nimport&nbsp;javax.persistence.MappedSuperclass;\nimport&nbsp;java.io.Serializable;\nimport&nbsp;java.util.Date;\n@MappedSuperclass\n@Data\npublic&nbsp;abstract&nbsp;class&nbsp;BaseEntity&nbsp;implements&nbsp;Serializable&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;@Id\n&nbsp;&nbsp;&nbsp;&nbsp;@GeneratedValue\n&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;Long&nbsp;id;\n&nbsp;&nbsp;&nbsp;&nbsp;@CreatedDate\n&nbsp;&nbsp;&nbsp;&nbsp;@Column(name&nbsp;=&nbsp;\"create_time\",columnDefinition=\"DATETIME&nbsp;COMMENT&nbsp;\'创建时间/注册时间\'\")\n&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;Date&nbsp;createTime;\n&nbsp;&nbsp;&nbsp;&nbsp;@Column(name&nbsp;=&nbsp;\"create_by\",columnDefinition=\"bigint&nbsp;COMMENT&nbsp;\'创建人\'\")\n&nbsp;&nbsp;&nbsp;&nbsp;@CreatedBy\n&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;Long&nbsp;createBy;\n&nbsp;&nbsp;&nbsp;&nbsp;@LastModifiedDate\n&nbsp;&nbsp;&nbsp;&nbsp;@Column(name&nbsp;=&nbsp;\"modify_time\",columnDefinition=\"DATETIME&nbsp;COMMENT&nbsp;\'最后更新时间\'\")\n&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;Date&nbsp;modifyTime;\n&nbsp;&nbsp;&nbsp;&nbsp;@LastModifiedBy\n&nbsp;&nbsp;&nbsp;&nbsp;@Column(name&nbsp;=&nbsp;\"modify_by\",columnDefinition=\"bigint&nbsp;COMMENT&nbsp;\'最后更新人\'\")\n&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;Long&nbsp;modifyBy;\n}</pre>\n<h3>实现AuditorAware接口返回操作人员的id</h3>\n<p>配置完上述4个注解后,在jpa.save方法被调用的时候,时间字段会自动设置并插入数据库,但是CreatedBy和LastModifiedBy并没有赋值 这两个信息需要实现AuditorAware接口来返回操作人员的id</p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>首先需要在项目启动类添加@EnableJpaAuditing 注解来启用审计功能</p>\n</li>\n</ul>\n<pre>@SpringBootApplication\n@EnableJpaAuditing\npublic&nbsp;class&nbsp;AdminApplication&nbsp;extends&nbsp;WebMvcConfigurerAdapter&nbsp;{\n&nbsp;//省略\n}</pre>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>然后实现AuditorAware接口返回操作人员的id</p>\n</li>\n</ul>\n<pre>@Configuration\npublic&nbsp;class&nbsp;UserIDAuditorConfig&nbsp;implements&nbsp;AuditorAware&lt;Long&gt;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;@Override\n&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;Long&nbsp;getCurrentAuditor()&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ShiroUser&nbsp;shiroUser&nbsp;=&nbsp;ShiroKit.getUser();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(shiroUser!=null){\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;shiroUser.getId();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;null;\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}</pre>\n</div>', 'web-flash 将所有表增加维护人员和维护时间信息', '1', '1'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('2', '1', '2019-03-09 16:24:58', '1', '2019-03-23 23:12:16', 'enilu.cn', '<div id=\"articleContent\" class=\"content\">\n<div class=\"ad-wrap\">\n<p style=\"margin: 0 0 10px 0;\"><a style=\"color: #a00; font-weight: bold;\" href=\"https://my.oschina.net/u/3985214/blog/3018099?tdsourcetag=s_pcqq_aiomsg\" target=\"_blank\" rel=\"noopener\" data-traceid=\"news_detail_above_text_link_1\" data-tracepid=\"news_detail_above_text_link\">开发十年,就只剩下这套架构体系了! &gt;&gt;&gt;</a>&nbsp;&nbsp;<img style=\"max-height: 32px; max-width: 32px;\" src=\"https://www.oschina.net/img/hot3.png\" align=\"\" /></p>\n</div>\n<h3>国际化</h3>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>flash-vue-admin实现国际化了,</p>\n</li>\n<li>\n<p>不了解上面两个的区别的同学可以再回顾下这个<a href=\"http://www.enilu.cn/web-flash/base/flash-vue-admin.html\">文档</a></p>\n</li>\n<li>\n<p>flash-vue-admin实现国际化的方式参考vue-element-admin的&nbsp;<a href=\"https://panjiachen.github.io/vue-element-admin-site/zh/guide/advanced/i18n.html\" target=\"_blank\" rel=\"noopener\">官方文档</a>,这里不再赘述,强烈建议你先把文档读了之后再看下面的内容。</p>\n</li>\n</ul>\n<h3>默认约定</h3>\n<p>针对网站资源进行国际园涉及到的国际化资源的管理维护,这里给出一些flash-vue-admin的资源分类建议,当然,你也可以根据你的实际情况进行调整。</p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>src/lang/为国际化资源目录,目前提供了英文(en.js)和中文(zh.js)的两种语言实现。</p>\n</li>\n<li>\n<p>目前资源语言资源文件中是json配置主要有以下几个节点:</p>\n</li>\n<ul class=\" list-paddingleft-2\" style=\"list-style-type: square;\">\n<li>\n<p>route 左侧菜单资源</p>\n</li>\n<li>\n<p>navbar 顶部导航栏资源</p>\n</li>\n<li>\n<p>button 公共的按钮资源,比如:添加、删除、修改、确定、取消之类等等</p>\n</li>\n<li>\n<p>common 其他公共的资源,比如一些弹出框标题、提示信息、label等等</p>\n</li>\n<li>\n<p>login 登录页面资源</p>\n</li>\n<li>\n<p>config 参数管理界面资源</p>\n</li>\n</ul>\n<li>\n<p>目前针对具体的页面资源只做了登录和参数管理两个页面,其他具体业务界面仅针对公共的按钮做了国际化,你可以参考config页面资源进行配置进行进一步配置:/src/views/cfg/</p>\n</li>\n<li>\n<p>如果你有其他资源在上面对应的节点添加即可,针对每个页面特有的资源以页面名称作为几点进行维护,这样方便记忆和维护,不容易出错。</p>\n</li>\n</ul>\n<h3>添加新的语言支持</h3>\n<p>如果英文和中文两种语言不够,那么你可以通过下面步骤添加语言支持</p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>在src/lang/目录下新增对应的资源文件</p>\n</li>\n<li>\n<p>在src/lang/index.js中import对应的资源文件</p>\n</li>\n<li>\n<p>在src/lang/index.js中的messages变量中加入新的语言声明</p>\n</li>\n<li>\n<p>在src/components/LangSelect/index.vue的语言下拉框中增加新的语言选项</p>\n</li>\n</ul>\n<h3>演示地址</h3>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p>vue版本后台管理&nbsp;<a href=\"http://172.16.58.3:8082/vue/#/login\" target=\"_blank\" rel=\"noopener\">http://172.16.58.3:8082/vue/#/login</a></p>\n</li>\n<li>CMS内容管理系统的h5前端demo:<a href=\"http://172.16.58.3:8082/mobile/#/index\" target=\"_blank\" rel=\"noopener\">http://172.16.58.3:8082/mobile/#/index</a></li>\n</ul>\n</div>', 'web-flash1.0.1 发布,增加国际化和定时任务管理功能', '1', '2'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('3', '1', '2019-03-09 16:24:58', '1', '2019-04-28 17:39:52', 'enilu.cn', '<div class=\"content\" id=\"articleContent\">\r\n <div class=\"ad-wrap\">\r\n <p style=\"margin:0 0 10px 0;\"><a data-traceid=\"news_detail_above_text_link_1\" data-tracepid=\"news_detail_above_text_link\" style=\"color:#A00;font-weight:bold;\" href=\"https://my.oschina.net/u/3985214/blog/3018099?tdsourcetag=s_pcqq_aiomsg\" target=\"_blank\">开发十年,就只剩下这套架构体系了! &gt;&gt;&gt;</a>&nbsp;&nbsp;<img src=\"https://www.oschina.net/img/hot3.png\" align=\"\" style=\"max-height: 32px; max-width: 32px;\"></p>\r\n </div>\r\n <p>web-flash使用的Spring Boot从1.5.1升级到2.1.1</p><p>下面为升级过程</p><ul class=\" list-paddingleft-2\"><li><p>版本升级</p><pre>&lt;spring.boot.version&gt;2.1.1.RELEASE&lt;/spring.boot.version&gt;\r\n&lt;springframework.version&gt;5.1.3.RELEASE&lt;springframework.version&gt;</pre></li><li><p>配置增加</p><pre>spring.main.allow-bean-definition-overriding=true\r\nspring.jpa.hibernate.use-new-id-generator-mappings=false</pre></li></ul><ul class=\" list-paddingleft-2\"><li><p>审计功能调整,调整后代码:</p><pre>@Configuration\r\npublic&nbsp;class&nbsp;UserIDAuditorConfig&nbsp;implements&nbsp;AuditorAware&lt;Long&gt;&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;@Override\r\n&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;Optional&lt;Long&gt;&nbsp;getCurrentAuditor()&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ShiroUser&nbsp;shiroUser&nbsp;=&nbsp;ShiroKit.getUser();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(shiroUser!=null){\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;Optional.of(shiroUser.getId());\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;null;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}</pre></li><li><p>repository调整</p></li><ul class=\" list-paddingleft-2\" style=\"list-style-type: square;\"><li><p>之前的 delete(Long id)方法没有了,替换为:deleteById(Long id)</p></li><li><p>之前的 T findOne(Long id)方法没有了,替换为: </p><pre>Optional&lt;T&gt;&nbsp;optional&nbsp;=&nbsp;***Repository.findById(id);\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(optional.isPresent())&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;optional.get();\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;null;</pre></li></ul><li><p>随着这次Spring Boot的升级也顺便做了一些其他内容的调整和重构</p></li><ul class=\" list-paddingleft-2\" style=\"list-style-type: square;\"><li><p>springframework也从4.3.5.RELEASE升级到5.1.3.RELEASE</p></li><li><p>为减小复杂度service去掉接口和实现类的结构,基础功能的service直接使用实现类;当然具体业务中如果有需求你也可以这没用</p></li><li><p>去掉了一些暂时用不到的maven依赖</p></li><li><p>完善了基础功能的审计功能(之前有介绍审计功能的实现翻番,后续会专门发一篇文档来说明审计功能在系统总的具体用法,当然聪明的你看代码就知道了)</p></li></ul></ul>\r\n </div>', 'web-flash 升级 Spring Boot 到 2.1.1 版本', '1', '1'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('4', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:34:21', 'enilu.cn', 'H5通用官网系统', 'H5通用官网系统', '2', '17'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('5', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:34:36', 'enilu.cn', 'H5通用论坛系统', 'H5通用论坛系统', '2', '18'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('6', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:38:33', 'enilu.cn', '官网建设方案', '官网建设方案', '3', '19'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('7', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:39:48', 'enilu.cn', '论坛建设方案', '论坛建设方案', '3', '22'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('8', '1', '2019-03-09 16:24:58', '1', '2019-04-28 17:39:52', 'enilu.cn', '案例1', '案例1', '4', '3'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('9', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:39:11', 'enilu.cn', '案例2', '案例2', '4', '20'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('14', '1', '2019-03-09 16:24:58', '1', '2019-04-28 00:39:25', 'test5', '<p>aaaaa<img class=\"wscnph\" src=\"http://127.0.0.1:8082/file/download?idFile=12\" /></p>', 'IDEA的代码生成插件发布啦', '4', '21'); INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('15', '1', '2019-04-28 17:39:52', '1', '2019-05-05 15:36:57', 'enilu', '<p><img class=\"wscnph\" src=\"http://127.0.0.1:8082/file/download?idFile=24\" /></p>', '程序员头冷', '1', '25'); -- ---------------------------- -- Records of t_cms_banner -- ---------------------------- INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('1', '1', '2019-03-09 16:29:03', null, null, '不打开链接', 'javascript:', 'index', '1'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('2', '1', '2019-03-09 16:29:03', null, null, '打打开站内链接', '/contact', 'index', '2'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('3', '1', '2019-03-09 16:29:03', null, null, '打开外部链接', 'http://www.baidu.com', 'index', '6'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('4', '1', '2019-03-09 16:29:03', null, null, '不打开链接', 'javascript:', 'product', '1'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('5', '1', '2019-03-09 16:29:03', null, null, '打打开站内链接', '/contact', 'product', '2'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('6', '1', '2019-03-09 16:29:03', null, null, '打开外部链接', 'http://www.baidu.com', 'product', '6'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('7', '1', '2019-03-09 16:29:03', null, null, '不打开链接', 'javascript:', 'solution', '1'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('8', '1', '2019-03-09 16:29:03', null, null, '打打开站内链接', '/contact', 'solution', '2'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('9', '1', '2019-03-09 16:29:03', null, null, '打开外部链接', 'http://www.baidu.com', 'solution', '6'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('10', '1', '2019-03-09 16:29:03', null, null, '不打开链接', 'javascript:', 'case', '1'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('11', '1', '2019-03-09 16:29:03', null, null, '打打开站内链接', '/contact', 'case', '2'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('12', '1', '2019-03-09 16:29:03', null, null, '打开外部链接', 'http://www.baidu.com', 'case', '6'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('14', '1', '2019-03-09 16:29:03', null, null, '不打开链接', 'javascript:', 'news', '1'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('15', '1', '2019-03-09 16:29:03', null, null, '打打开站内链接', '/contact', 'news', '2'); INSERT INTO `t_cms_banner` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `title`, `url`, `type`, `id_file`) VALUES ('16', '1', '2019-03-09 16:29:03', null, null, '打开外部链接', 'http://www.baidu.com', 'news', '6'); -- ---------------------------- -- Records of t_cms_channel -- ---------------------------- INSERT INTO `t_cms_channel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `name`, `code`) VALUES ('1', null, null, '1', '2019-03-13 22:52:46', '动态资讯', 'news'); INSERT INTO `t_cms_channel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `name`, `code`) VALUES ('2', null, null, '1', '2019-03-13 22:53:11', '产品服务', 'product'); INSERT INTO `t_cms_channel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `name`, `code`) VALUES ('3', null, null, '1', '2019-03-13 22:53:37', '解决方案', 'solution'); INSERT INTO `t_cms_channel` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `name`, `code`) VALUES ('4', null, null, '1', '2019-03-13 22:53:41', '精选案例', 'case'); -- ---------------------------- -- Records of t_cms_contacts -- ---------------------------- INSERT INTO `t_cms_contacts` VALUES ('1', null, '2019-07-31 17:44:27', null, '2019-07-31 17:44:27', '<EMAIL>', '15011111111', '测试联系,哈哈哈', '张三'); -- ---------------------------- -- Records of t_snow_product -- ---------------------------- -- ---------------------------- -- Records of t_sys_cfg -- ---------------------------- INSERT INTO `t_sys_cfg` VALUES ('1', null, null, '1', '2019-04-15 21:36:07', '应用名称update by 2019-03-27 11:47:04', 'system.app.name', 'web-flash'); INSERT INTO `t_sys_cfg` VALUES ('2', null, null, '1', '2019-04-15 21:36:17', '系统默认上传文件路径', 'system.file.upload.path', '/data/flash-waimai/runtime/upload'); INSERT INTO `t_sys_cfg` VALUES ('3', null, null, '1', '2019-04-15 21:36:17', '腾讯sms接口appid', 'api.tencent.sms.appid', '1400219425'); INSERT INTO `t_sys_cfg` VALUES ('4', null, null, '1', '2019-04-15 21:36:17', '腾讯sms接口appkey', 'api.tencent.sms.appkey', '5f71ed5325f3b292946530a1773e997a'); INSERT INTO `t_sys_cfg` VALUES ('5', null, null, '1', '2019-04-15 21:36:17', '腾讯sms接口签名参数', 'api.tencent.sms.sign', '需要去申请咯'); -- ---------------------------- -- Records of t_sys_dept -- ---------------------------- INSERT INTO `t_sys_dept` (`id`, `num`, `pid`, `pids`, `simplename`, `fullname`, `tips`, `version`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('24', '1', '0', '[0],', '总公司', '总公司', '', null, null, null, null, null); INSERT INTO `t_sys_dept` (`id`, `num`, `pid`, `pids`, `simplename`, `fullname`, `tips`, `version`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('25', '2', '24', '[0],[24],', '开发部', '开发部', '', null, null, null, null, null); INSERT INTO `t_sys_dept` (`id`, `num`, `pid`, `pids`, `simplename`, `fullname`, `tips`, `version`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('26', '3', '24', '[0],[24],', '运营部', '运营部', '', null, null, null, null, null); INSERT INTO `t_sys_dept` (`id`, `num`, `pid`, `pids`, `simplename`, `fullname`, `tips`, `version`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('27', '4', '24', '[0],[24],', '战略部', '战略部', '', null, null, null, null, null); -- ---------------------------- -- Records of t_sys_dict -- ---------------------------- INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('16', '0', '0', '状态', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('17', '1', '16', '启用', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('18', '2', '16', '禁用', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('29', '0', '0', '性别', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('30', '1', '29', '男', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('31', '2', '29', '女', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('35', '0', '0', '账号状态', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('36', '1', '35', '启用', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('37', '2', '35', '冻结', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('38', '3', '35', '已删除', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('53', '0', '0', '证件类型', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('54', '1', '53', '身份证', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('55', '2', '53', '护照', null, null, null, null, null); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('68', '0', '0', '是否', null, '2019-01-13 14:18:21', '1', '2019-01-13 14:18:21', '1'); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('69', '1', '68', '是', null, '2019-01-13 14:18:21', '1', '2019-01-13 14:18:21', '1'); INSERT INTO `t_sys_dict` (`id`, `num`, `pid`, `name`, `tips`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('70', '0', '68', '否', null, '2019-01-13 14:18:21', '1', '2019-01-13 14:18:21', '1'); -- ---------------------------- -- Records of t_sys_login_log -- ---------------------------- INSERT INTO `t_sys_login_log` (`id`, `logname`, `userid`, `create_time`, `succeed`, `message`, `ip`) VALUES ('71', '登录日志', '1', '2019-05-10 13:17:43', '成功', null, '127.0.0.1'); INSERT INTO `t_sys_login_log` (`id`, `logname`, `userid`, `create_time`, `succeed`, `message`, `ip`) VALUES ('72', '登录日志', '1', '2019-05-12 13:36:56', '成功', null, '127.0.0.1'); -- ---------------------------- -- Records of t_sys_menu -- ---------------------------- INSERT INTO `t_sys_menu` VALUES ('1', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'system', 'fa-cog', '1', '1', '1', '系统管理', '4', '0', '[0],', '1', null, '/system'); INSERT INTO `t_sys_menu` VALUES ('2', '1', '2019-07-31 22:04:30', '1', '2019-03-11 22:25:38', 'cms', null, '1', null, '1', 'CMS管理', '5', '0', '[0],', '1', null, '/cms'); INSERT INTO `t_sys_menu` VALUES ('3', '1', '2019-07-31 22:04:30', '1', '2019-06-02 10:09:09', 'operationMgr', null, '1', null, '1', '运维管理', '3', '0', '[0],', '1', null, '/optionMgr'); INSERT INTO `t_sys_menu` VALUES ('4', '1', '2019-07-31 22:04:30', '1', '2019-04-16 18:59:15', 'mgr', null, '1', null, '2', '用户管理', '1', 'system', '[0],[system],', '1', null, '/mgr'); INSERT INTO `t_sys_menu` VALUES ('5', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.add', null, '0', null, '3', '添加用户', '1', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/add'); INSERT INTO `t_sys_menu` VALUES ('6', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.edit', null, '0', null, '3', '修改用户', '2', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/edit'); INSERT INTO `t_sys_menu` VALUES ('7', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.delete', null, '0', '0', '3', '删除用户', '3', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/delete'); INSERT INTO `t_sys_menu` VALUES ('8', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.reset', null, '0', '0', '3', '重置密码', '4', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/reset'); INSERT INTO `t_sys_menu` VALUES ('9', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.freeze', null, '0', '0', '3', '冻结用户', '5', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/freeze'); INSERT INTO `t_sys_menu` VALUES ('10', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.unfreeze', null, '0', '0', '3', '解除冻结用户', '6', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/unfreeze'); INSERT INTO `t_sys_menu` VALUES ('11', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'mgr.set.role', null, '0', '0', '3', '分配角色', '7', 'mgr', '[0],[system],[mgr],', '1', null, '/mgr/setRole'); INSERT INTO `t_sys_menu` VALUES ('12', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'role', null, '1', '0', '2', '角色管理', '2', 'system', '[0],[system],', '1', null, '/role'); INSERT INTO `t_sys_menu` VALUES ('13', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'role.add', null, '0', '0', '3', '添加角色', '1', 'role', '[0],[system],[role],', '1', null, '/role/add'); INSERT INTO `t_sys_menu` VALUES ('14', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'role.edit', null, '0', '0', '3', '修改角色', '2', 'role', '[0],[system],[role],', '1', null, '/role/edit'); INSERT INTO `t_sys_menu` VALUES ('15', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'role.delete', null, '0', '0', '3', '删除角色', '3', 'role', '[0],[system],[role],', '1', null, '/role/remove'); INSERT INTO `t_sys_menu` VALUES ('16', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'role.set.authority', null, '0', '0', '3', '配置权限', '4', 'role', '[0],[system],[role],', '1', null, '/role/setAuthority'); INSERT INTO `t_sys_menu` VALUES ('17', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'menu', null, '1', '0', '2', '菜单管理', '4', 'system', '[0],[system],', '1', null, '/menu'); INSERT INTO `t_sys_menu` VALUES ('18', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'menu.add', null, '0', '0', '3', '添加菜单', '1', 'menu', '[0],[system],[menu],', '1', null, '/menu/add'); INSERT INTO `t_sys_menu` VALUES ('19', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'menu.edit', null, '0', '0', '3', '修改菜单', '2', 'menu', '[0],[system],[menu],', '1', null, '/menu/edit'); INSERT INTO `t_sys_menu` VALUES ('20', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'menu.delete', null, '0', '0', '3', '删除菜单', '3', 'menu', '[0],[system],[menu],', '1', null, '/menu/remove'); INSERT INTO `t_sys_menu` VALUES ('21', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept', null, '1', null, '2', '部门管理', '3', 'system', '[0],[system],', '1', null, '/dept'); INSERT INTO `t_sys_menu` VALUES ('22', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict', null, '1', null, '2', '字典管理', '4', 'system', '[0],[system],', '1', null, '/dict'); INSERT INTO `t_sys_menu` VALUES ('23', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept.edit', null, '0', null, '3', '修改部门', '1', 'dept', '[0],[system],[dept],', '1', null, '/dept/update'); INSERT INTO `t_sys_menu` VALUES ('24', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept.delete', null, '0', null, '3', '删除部门', '1', 'dept', '[0],[system],[dept],', '1', null, '/dept/delete'); INSERT INTO `t_sys_menu` VALUES ('25', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict.add', null, '0', null, '3', '添加字典', '1', 'dict', '[0],[system],[dict],', '1', null, '/dict/add'); INSERT INTO `t_sys_menu` VALUES ('26', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict.edit', null, '0', null, '3', '修改字典', '1', 'dict', '[0],[system],[dict],', '1', null, '/dict/update'); INSERT INTO `t_sys_menu` VALUES ('27', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict.delete', null, '0', null, '3', '删除字典', '1', 'dict', '[0],[system],[dict],', '1', null, '/dict/delete'); INSERT INTO `t_sys_menu` VALUES ('28', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept.list', null, '0', null, '3', '部门列表', '5', 'dept', '[0],[system],[dept],', '1', null, '/dept/list'); INSERT INTO `t_sys_menu` VALUES ('29', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept.detail', null, '0', null, '3', '部门详情', '6', 'dept', '[0],[system],[dept],', '1', null, '/dept/detail'); INSERT INTO `t_sys_menu` VALUES ('30', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict.list', null, '0', null, '3', '字典列表', '5', 'dict', '[0],[system],[dict],', '1', null, '/dict/list'); INSERT INTO `t_sys_menu` VALUES ('31', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dict.detail', null, '0', null, '3', '字典详情', '6', 'dict', '[0],[system],[dict],', '1', null, '/dict/detail'); INSERT INTO `t_sys_menu` VALUES ('32', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'dept.add', null, '0', null, '3', '添加部门', '1', 'dept', '[0],[system],[dept],', '1', null, '/dept/add'); INSERT INTO `t_sys_menu` VALUES ('33', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'cfg', null, '1', null, '2', '参数管理', '10', 'system', '[0],[system],', '1', null, '/cfg'); INSERT INTO `t_sys_menu` VALUES ('34', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'cfg.add', null, '0', null, '3', '添加系统参数', '1', 'cfg', '[0],[system],[cfg],', '1', null, '/cfg/add'); INSERT INTO `t_sys_menu` VALUES ('35', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'cfg.edit', null, '0', null, '3', '修改系统参数', '2', 'cfg', '[0],[system],[cfg],', '1', null, '/cfg/update'); INSERT INTO `t_sys_menu` VALUES ('36', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'cfg.delete', null, '0', null, '3', '删除系统参数', '3', 'cfg', '[0],[system],[cfg],', '1', null, '/cfg/delete'); INSERT INTO `t_sys_menu` VALUES ('37', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'task', null, '1', null, '2', '任务管理', '11', 'system', '[0],[system],', '1', null, '/task'); INSERT INTO `t_sys_menu` VALUES ('38', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'task.add', null, '0', null, '3', '添加任务', '1', 'task', '[0],[system],[task],', '1', null, '/task/add'); INSERT INTO `t_sys_menu` VALUES ('39', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'task.edit', null, '0', null, '3', '修改任务', '2', 'task', '[0],[system],[task],', '1', null, '/task/update'); INSERT INTO `t_sys_menu` VALUES ('40', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'task.delete', null, '0', null, '3', '删除任务', '3', 'task', '[0],[system],[task],', '1', null, '/task/delete'); INSERT INTO `t_sys_menu` VALUES ('41', '1', '2019-03-11 22:29:54', '1', '2019-03-11 22:29:54', 'channel', null, '1', null, '2', '栏目管理', '1', 'cms', '[0],[cms],', '1', null, '/channel'); INSERT INTO `t_sys_menu` VALUES ('42', '1', '2019-03-11 22:30:17', '1', '2019-03-11 22:30:17', 'article', null, '1', null, '2', '文章管理', '2', 'cms', '[0],[cms],', '1', null, '/article'); INSERT INTO `t_sys_menu` VALUES ('43', '1', '2019-03-11 22:30:52', '1', '2019-03-11 22:30:52', 'banner', null, '1', null, '2', 'banner管理', '3', 'cms', '[0],[cms],', '1', null, '/banner'); INSERT INTO `t_sys_menu` VALUES ('44', '1', '2019-03-18 19:45:37', '1', '2019-03-18 19:45:37', 'contacts', null, '1', null, '2', '邀约管理', '4', 'cms', '[0],[cms],', '1', null, '/contacts'); INSERT INTO `t_sys_menu` VALUES ('45', '1', '2019-03-19 10:25:05', '1', '2019-03-19 10:25:05', 'file', null, '1', null, '2', '文件管理', '5', 'cms', '[0],[cms],', '1', null, '/fileMgr'); INSERT INTO `t_sys_menu` VALUES ('46', '1', '2019-03-11 22:30:17', '1', '2019-03-11 22:30:17', 'article.edit', null, '1', null, '3', '编辑文章', '1', 'article', '[0],[cms],[article]', '1', null, '/article/edit'); INSERT INTO `t_sys_menu` VALUES ('47', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'task.log', null, '1', null, '3', '任务日志', '4', 'task', '[0],[system],[task],', '1', null, '/taskLog'); INSERT INTO `t_sys_menu` VALUES ('48', '1', '2019-07-31 22:04:30', '1', '2019-06-02 10:25:31', 'log', null, '1', null, '2', '业务日志', '6', 'operationMgr', '[0],[operationMgr],', '1', null, '/log'); INSERT INTO `t_sys_menu` VALUES ('49', '1', '2019-07-31 22:04:30', '1', '2019-06-02 10:25:36', 'login.log', null, '1', null, '2', '登录日志', '6', 'operationMgr', '[0],[operationMgr],', '1', null, '/loginLog'); INSERT INTO `t_sys_menu` VALUES ('50', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'log.clear', null, '0', null, '3', '清空日志', '3', 'log', '[0],[system],[log],', '1', null, '/log/delLog'); INSERT INTO `t_sys_menu` VALUES ('51', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'log.detail', null, '0', null, '3', '日志详情', '3', 'log', '[0],[system],[log],', '1', null, '/log/detail'); INSERT INTO `t_sys_menu` VALUES ('52', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'login.log.clear', null, '0', null, '3', '清空登录日志', '1', 'loginLog', '[0],[system],[loginLog],', '1', null, '/loginLog/delLoginLog'); INSERT INTO `t_sys_menu` VALUES ('53', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'login.log.list', null, '0', null, '3', '登录日志列表', '2', 'loginLog', '[0],[system],[loginLog],', '1', null, '/loginLog/list'); INSERT INTO `t_sys_menu` VALUES ('54', '1', '2019-06-02 10:10:20', '1', '2019-06-02 10:10:20', 'druid', null, '1', null, '2', '数据库管理', '1', 'operationMgr', '[0],[operationMgr],', '1', null, '/druid'); INSERT INTO `t_sys_menu` VALUES ('55', '1', '2019-06-02 10:10:20', '1', '2019-06-02 10:10:20', 'swagger', null, '1', null, '2', '接口文档', '2', 'operationMgr', '[0],[operationMgr],', '1', null, '/swagger'); INSERT INTO `t_sys_menu` VALUES ('56', '1', '2019-06-10 21:26:52', '1', '2019-06-10 21:26:52', 'messageMgr', null, '1', null, '1', '消息管理', '5', '0', '[0],', '1', null, '/message'); INSERT INTO `t_sys_menu` VALUES ('57', '1', '2019-06-10 21:27:34', '1', '2019-06-10 21:27:34', 'msg', null, '1', null, '2', '历史消息', '1', 'messageMgr', '[0],[messageMgr],', '1', null, '/history'); INSERT INTO `t_sys_menu` VALUES ('58', '1', '2019-06-10 21:27:56', '1', '2019-06-10 21:27:56', 'msg.tpl', null, '1', null, '2', '消息模板', '2', 'messageMgr', '[0],[messageMgr],', '1', null, '/template'); INSERT INTO `t_sys_menu` VALUES ('59', '1', '2019-06-10 21:28:21', '1', '2019-06-10 21:28:21', 'msg.sender', null, '1', null, '2', '消息发送者', '3', 'messageMgr', '[0],[messageMgr],', '1', null, '/sender'); INSERT INTO `t_sys_menu` VALUES ('60', '1', '2019-06-10 21:28:21', '1', '2019-06-10 21:28:21', 'msg.clear', null, '1', null, '2', '清空历史消息', '3', 'messageMgr', '[0],[messageMgr],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('61', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'msg.tpl.edit', null, '0', null, '3', '编辑消息模板', '1', 'msg.tpl', '[0],[messageMgr],[msg.tpl]', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('62', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'msg.tpl.delete', null, '0', null, '3', '删除消息模板', '2', 'msg.tpl', '[0],[messageMgr],[msg.tpl]', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('63', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'msg.sender.edit', null, '0', null, '3', '编辑消息发送器', '1', 'msg.sender', '[0],[messageMgr],[msg.sender]', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('64', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'msg.sender.delete', null, '0', null, '3', '删除消息发送器', '2', 'msg.sender', '[0],[messageMgr],[msg.sender]', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('65', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'file.upload', null, '0', null, '3', '上传文件', '1', 'file', '[0],[cms],[file],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('66', '1', '2019-07-31 21:51:33', '1', '2019-07-31 21:51:33', 'banner.edit', null, '0', null, '3', '编辑banner', '1', 'banner', '[0],[cms],[banner],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('67', '1', '2019-07-31 21:51:33', '1', '2019-07-31 21:51:33', 'banner.delete', null, '0', null, '3', '删除banner', '2', 'banner', '[0],[cms],[banner],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('68', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'channel.edit', null, '0', null, '3', '编辑栏目', '1', 'channel', '[0],[cms],[channel],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('69', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'channel.delete', null, '0', null, '3', '删除栏目', '2', 'channel', '[0],[cms],[channel],', '1', null, null); INSERT INTO `t_sys_menu` VALUES ('70', '1', '2019-07-31 22:04:30', '1', '2019-07-31 22:04:30', 'article.delete', null, '0', null, '3', '删除文章', '2', 'article', '[0],[cms],[article]', '1', null, null); -- ---------------------------- -- Records of t_sys_notice -- ---------------------------- INSERT INTO `t_sys_notice` (`id`, `title`, `type`, `content`, `create_time`, `create_by`, `modify_time`, `modify_by`) VALUES ('1', '世界', '10', '欢迎使用web-flash后台管理系统', '2017-01-11 08:53:20', '1', '2019-01-08 23:30:58', '1'); -- ---------------------------- -- Records of t_sys_operation_log -- ---------------------------- INSERT INTO `t_sys_operation_log` (`id`, `logtype`, `logname`, `userid`, `classname`, `method`, `create_time`, `succeed`, `message`) VALUES ('1', '业务日志', '添加参数', '1', 'cn.enilu.flash.api.controller.cms.ArticleMgrController', 'upload', '2019-05-10 13:22:49', '成功', '参数名称=system.app.name'); INSERT INTO `t_sys_operation_log` (`id`, `logtype`, `logname`, `userid`, `classname`, `method`, `create_time`, `succeed`, `message`) VALUES ('2', '业务日志', '修改参数', '1', 'cn.enilu.flash.api.controller.cms.ArticleMgrController', 'upload', '2019-06-10 13:31:09', '成功', '参数名称=system.app.name'); INSERT INTO `t_sys_operation_log` (`id`, `logtype`, `logname`, `userid`, `classname`, `method`, `create_time`, `succeed`, `message`) VALUES ('3', '业务日志', '编辑文章', '1', 'cn.enilu.flash.api.controller.cms.ArticleMgrController', 'upload', '2019-07-10 13:22:49', '成功', '参数名称=system.app.name'); INSERT INTO `t_sys_operation_log` (`id`, `logtype`, `logname`, `userid`, `classname`, `method`, `create_time`, `succeed`, `message`) VALUES ('4', '业务日志', '编辑栏目', '1', 'cn.enilu.flash.api.controller.cms.ArticleMgrController', 'upload', '2019-08-10 13:31:09', '成功', '参数名称=system.app.name'); -- ---------------------------- -- Records of t_sys_relation -- ---------------------------- INSERT INTO `t_sys_relation` VALUES ('1', '42', '1'); INSERT INTO `t_sys_relation` VALUES ('2', '70', '1'); INSERT INTO `t_sys_relation` VALUES ('3', '46', '1'); INSERT INTO `t_sys_relation` VALUES ('4', '43', '1'); INSERT INTO `t_sys_relation` VALUES ('5', '67', '1'); INSERT INTO `t_sys_relation` VALUES ('6', '66', '1'); INSERT INTO `t_sys_relation` VALUES ('7', '33', '1'); INSERT INTO `t_sys_relation` VALUES ('8', '34', '1'); INSERT INTO `t_sys_relation` VALUES ('9', '36', '1'); INSERT INTO `t_sys_relation` VALUES ('10', '35', '1'); INSERT INTO `t_sys_relation` VALUES ('11', '41', '1'); INSERT INTO `t_sys_relation` VALUES ('12', '69', '1'); INSERT INTO `t_sys_relation` VALUES ('13', '68', '1'); INSERT INTO `t_sys_relation` VALUES ('14', '2', '1'); INSERT INTO `t_sys_relation` VALUES ('15', '44', '1'); INSERT INTO `t_sys_relation` VALUES ('16', '21', '1'); INSERT INTO `t_sys_relation` VALUES ('17', '32', '1'); INSERT INTO `t_sys_relation` VALUES ('18', '24', '1'); INSERT INTO `t_sys_relation` VALUES ('19', '29', '1'); INSERT INTO `t_sys_relation` VALUES ('20', '23', '1'); INSERT INTO `t_sys_relation` VALUES ('21', '28', '1'); INSERT INTO `t_sys_relation` VALUES ('22', '22', '1'); INSERT INTO `t_sys_relation` VALUES ('23', '25', '1'); INSERT INTO `t_sys_relation` VALUES ('24', '27', '1'); INSERT INTO `t_sys_relation` VALUES ('25', '31', '1'); INSERT INTO `t_sys_relation` VALUES ('26', '26', '1'); INSERT INTO `t_sys_relation` VALUES ('27', '30', '1'); INSERT INTO `t_sys_relation` VALUES ('28', '54', '1'); INSERT INTO `t_sys_relation` VALUES ('29', '45', '1'); INSERT INTO `t_sys_relation` VALUES ('30', '65', '1'); INSERT INTO `t_sys_relation` VALUES ('31', '48', '1'); INSERT INTO `t_sys_relation` VALUES ('32', '50', '1'); INSERT INTO `t_sys_relation` VALUES ('33', '51', '1'); INSERT INTO `t_sys_relation` VALUES ('34', '49', '1'); INSERT INTO `t_sys_relation` VALUES ('35', '52', '1'); INSERT INTO `t_sys_relation` VALUES ('36', '53', '1'); INSERT INTO `t_sys_relation` VALUES ('37', '17', '1'); INSERT INTO `t_sys_relation` VALUES ('38', '18', '1'); INSERT INTO `t_sys_relation` VALUES ('39', '20', '1'); INSERT INTO `t_sys_relation` VALUES ('40', '19', '1'); INSERT INTO `t_sys_relation` VALUES ('41', '56', '1'); INSERT INTO `t_sys_relation` VALUES ('42', '4', '1'); INSERT INTO `t_sys_relation` VALUES ('43', '5', '1'); INSERT INTO `t_sys_relation` VALUES ('44', '7', '1'); INSERT INTO `t_sys_relation` VALUES ('45', '6', '1'); INSERT INTO `t_sys_relation` VALUES ('46', '9', '1'); INSERT INTO `t_sys_relation` VALUES ('47', '8', '1'); INSERT INTO `t_sys_relation` VALUES ('48', '11', '1'); INSERT INTO `t_sys_relation` VALUES ('49', '10', '1'); INSERT INTO `t_sys_relation` VALUES ('50', '57', '1'); INSERT INTO `t_sys_relation` VALUES ('51', '60', '1'); INSERT INTO `t_sys_relation` VALUES ('52', '59', '1'); INSERT INTO `t_sys_relation` VALUES ('53', '64', '1'); INSERT INTO `t_sys_relation` VALUES ('54', '63', '1'); INSERT INTO `t_sys_relation` VALUES ('55', '58', '1'); INSERT INTO `t_sys_relation` VALUES ('56', '62', '1'); INSERT INTO `t_sys_relation` VALUES ('57', '61', '1'); INSERT INTO `t_sys_relation` VALUES ('58', '3', '1'); INSERT INTO `t_sys_relation` VALUES ('59', '12', '1'); INSERT INTO `t_sys_relation` VALUES ('60', '13', '1'); INSERT INTO `t_sys_relation` VALUES ('61', '15', '1'); INSERT INTO `t_sys_relation` VALUES ('62', '14', '1'); INSERT INTO `t_sys_relation` VALUES ('63', '16', '1'); INSERT INTO `t_sys_relation` VALUES ('64', '55', '1'); INSERT INTO `t_sys_relation` VALUES ('65', '1', '1'); INSERT INTO `t_sys_relation` VALUES ('66', '37', '1'); INSERT INTO `t_sys_relation` VALUES ('67', '38', '1'); INSERT INTO `t_sys_relation` VALUES ('68', '40', '1'); INSERT INTO `t_sys_relation` VALUES ('69', '39', '1'); INSERT INTO `t_sys_relation` VALUES ('70', '47', '1'); INSERT INTO `t_sys_relation` VALUES ('128', '41', '2'); INSERT INTO `t_sys_relation` VALUES ('129', '42', '2'); INSERT INTO `t_sys_relation` VALUES ('130', '43', '2'); INSERT INTO `t_sys_relation` VALUES ('131', '44', '2'); INSERT INTO `t_sys_relation` VALUES ('132', '45', '2'); INSERT INTO `t_sys_relation` VALUES ('133', '46', '2'); INSERT INTO `t_sys_relation` VALUES ('134', '65', '2'); INSERT INTO `t_sys_relation` VALUES ('135', '66', '2'); INSERT INTO `t_sys_relation` VALUES ('136', '67', '2'); INSERT INTO `t_sys_relation` VALUES ('137', '68', '2'); INSERT INTO `t_sys_relation` VALUES ('138', '69', '2'); INSERT INTO `t_sys_relation` VALUES ('139', '70', '2'); INSERT INTO `t_sys_relation` VALUES ('143', '2', '2'); -- ---------------------------- -- Records of t_sys_role -- ---------------------------- INSERT INTO `t_sys_role` VALUES ('1', null, null, null, null, '24', '超级管理员', '1', '0', 'administrator', '1'); INSERT INTO `t_sys_role` VALUES ('2', null, null, null, null, '25', '网站管理员', '1', '1', 'developer', null); -- ---------------------------- -- Records of t_sys_task -- ---------------------------- INSERT INTO `t_sys_task` (`id`, `name`, `job_group`, `job_class`, `note`, `cron`, `data`, `exec_at`, `exec_result`, `disabled`, `create_time`, `create_by`, `concurrent`, `modify_time`, `modify_by`) VALUES ('1', '测试任务', 'default', 'cn.enilu.flash.service.task.job.HelloJob', '测试任务,每30分钟执行一次', '0 0/30 * * * ?', '{\n\"appname\": \"web-flash\",\n\"version\":1\n}\n \n \n \n \n \n \n \n \n \n \n \n ', '2019-03-27 11:47:00', '执行成功', '0', '2018-12-28 09:54:00', '1', '0', '2019-03-27 11:47:11', '-1'); -- ---------------------------- -- Records of t_sys_task_log -- ---------------------------- -- ---------------------------- -- Records of t_sys_user -- ---------------------------- INSERT INTO `t_sys_user` VALUES ('-1', null, null, null, null, 'system', null, null, null, null, '应用系统', null, null, null, null, null, null, null); INSERT INTO `t_sys_user` VALUES ('1', null, '2016-01-29 08:49:53', '1', '2019-03-20 23:45:24', 'admin', null, '2017-05-05 00:00:00', '27', '<EMAIL>', '管理员', 'b5a51391f271f062867e5984e2fcffee', '15021222222', '1', '8pgby', '2', '1', '25'); INSERT INTO `t_sys_user` VALUES ('2', null, '2018-09-13 17:21:02', '1', '2019-01-09 23:05:51', 'developer', null, '2017-12-31 00:00:00', '25', '<EMAIL>', '网站管理员', 'fac36d5616fe9ebd460691264b28ee27', '15022222222', '2,', 'vscp9', '1', '1', null); -- ---------------------------- -- Records of t_test_boy -- ---------------------------- INSERT INTO `t_test_boy` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `age`, `birthday`, `has_girl_friend`, `name`) VALUES ('1', null, null, null, null, '18', '2000-01-01', '1', '张三'); -- ---------------------------- -- Records of t_message_sender -- ---------------------------- INSERT INTO `t_message_sender` VALUES ('1', null, null, null, null, 'tencentSmsSender', ' 腾讯短信服务', null); INSERT INTO `t_message_sender` VALUES ('2', null, null, null, null, 'defaultEmailSender', '默认邮件发送器', null); -- ---------------------------- -- Records of t_message_template -- ---------------------------- INSERT INTO `t_message_template` VALUES ('1', null, null, null, null, 'REGISTER_CODE', '注册页面,点击获取验证码', '【腾讯云】校验码{1},请于5分钟内完成验证,如非本人操作请忽略本短信。', '1', '注册验证码', 0); INSERT INTO `t_message_template` VALUES ('2', null, null, null, null, 'EMAIL_TEST', '测试发送', '你好:{1},欢迎使用{2}', '2', '测试邮件', 1); INSERT INTO `t_message_template` VALUES ('3', null, null, null, null, 'EMAIL_HTML_TEMPLATE_TEST', '测试发送模板邮件', '你好<strong>${userName}</strong>欢迎使用<font color=\"red\">${appName}</font>,这是html模板邮件', '2', '测试发送模板邮件', 1); -- ---------------------------- -- Records of t_message -- ---------------------------- INSERT INTO `t_message` VALUES ('1', null, '2019-06-10 21:20:16', null, null, '【腾讯云】校验码1032,请于5分钟内完成验证,如非本人操作请忽略本短信。', '15021592814', '2', 'REGISTER_CODE', '0');
<reponame>futurewei-cloud/qpmodel -- start query 94 in stream 0 using template query94.tpl select count(distinct ws_order_number) as "order count" ,sum(ws_ext_ship_cost) as "total shipping cost" ,sum(ws_net_profit) as "total net profit" from web_sales ws1 ,date_dim ,customer_address ,web_site where d_date between date '2002-5-01' and (cast('2002-5-01' as date) + 60 days) and ws1.ws_ship_date_sk = d_date_sk and ws1.ws_ship_addr_sk = ca_address_sk and ca_state = 'OK' and ws1.ws_web_site_sk = web_site_sk and web_company_name = 'pri' and exists (select * from web_sales ws2 where ws1.ws_order_number = ws2.ws_order_number and ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) and not exists(select * from web_returns wr1 where ws1.ws_order_number = wr1.wr_order_number) order by count(distinct ws_order_number) limit 100; -- end query 94 in stream 0 using template query94.tpl
WITH follow_up_blood_pressures AS ( SELECT DISTINCT ON (patient_id, facility_id, user_id, month_string) p.id AS patient_id, p.gender::gender_enum as patient_gender, bp.id as visit_id, 'BloodPressure' AS visit_type, bp.facility_id, bp.user_id, bp.recorded_at AS visited_at, to_char(bp.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE ( SELECT current_setting('TIMEZONE')), 'YYYY-MM') AS month_string FROM patients p INNER JOIN blood_pressures bp ON p.id = bp.patient_id AND date_trunc('month', bp.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) > date_trunc('month', p.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) WHERE p.deleted_at IS NULL ), follow_up_blood_sugars AS ( SELECT DISTINCT ON (patient_id, facility_id, user_id, month_string) p.id AS patient_id, p.gender::gender_enum as patient_gender, bs.id as visit_id, 'BloodSugar' AS visit_type, bs.facility_id, bs.user_id, bs.recorded_at AS visited_at, to_char(bs.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE ( SELECT current_setting('TIMEZONE')), 'YYYY-MM') AS month_string FROM patients p INNER JOIN blood_sugars bs ON p.id = bs.patient_id AND date_trunc('month', bs.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) > date_trunc('month', p.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) WHERE p.deleted_at IS NULL ), follow_up_prescription_drugs AS ( SELECT DISTINCT ON (patient_id, facility_id, user_id, month_string) p.id AS patient_id, p.gender::gender_enum as patient_gender, pd.id as visit_id, 'PrescriptionDrug' AS visit_type, pd.facility_id, pd.user_id, pd.device_created_at AS visited_at, to_char(pd.device_created_at AT TIME ZONE 'UTC' AT TIME ZONE ( SELECT current_setting('TIMEZONE')), 'YYYY-MM') AS month_string FROM patients p INNER JOIN prescription_drugs pd ON p.id = pd.patient_id AND date_trunc('month', pd.device_created_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) > date_trunc('month', p.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) WHERE p.deleted_at IS NULL ), follow_up_appointments AS ( SELECT DISTINCT ON (patient_id, facility_id, user_id, month_string) p.id AS patient_id, p.gender::gender_enum as patient_gender, app.id as visit_id, 'Appointment' AS visit_type, app.creation_facility_id AS facility_id, app.user_id, app.device_created_at as visited_at, to_char(app.device_created_at AT TIME ZONE 'UTC' AT TIME ZONE ( SELECT current_setting('TIMEZONE')), 'YYYY-MM') AS month_string FROM patients p INNER JOIN appointments app ON p.id = app.patient_id AND date_trunc('month', app.device_created_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) > date_trunc('month', p.recorded_at AT TIME ZONE 'UTC' AT TIME ZONE (SELECT current_setting('TIMEZONE'))) WHERE p.deleted_at IS NULL ), all_follow_ups AS ( SELECT * FROM follow_up_blood_pressures UNION (select * FROM follow_up_blood_sugars) UNION (select * FROM follow_up_prescription_drugs) UNION (select * FROM follow_up_appointments) ) SELECT DISTINCT ON (cal.month_string, all_follow_ups.facility_id, all_follow_ups.user_id, all_follow_ups.patient_id) all_follow_ups.patient_id, all_follow_ups.patient_gender, all_follow_ups.facility_id, all_follow_ups.user_id, all_follow_ups.visit_id, all_follow_ups.visit_type, all_follow_ups.visited_at, cal.* FROM all_follow_ups LEFT OUTER JOIN reporting_months cal ON all_follow_ups.month_string = cal.month_string ORDER BY cal.month_string desc
<gh_stars>10-100 -- file:cluster.sql ln:43 expect:true INSERT INTO clstr_tst (b, c) VALUES (28, 'veintiocho')
<filename>src/test/resources/sql/create/24476343.sql -- file:triggers.sql ln:1123 expect:true create or replace function parent_del_func() returns trigger language plpgsql as $$ begin delete from child where aid = old.aid
-- This will delete all recent weather records by cascade DELETE FROM sources WHERE observation_type = 'recent';
-- Persistent generated migration. CREATE FUNCTION migrate() RETURNS void AS $$ DECLARE next_version int ; BEGIN SELECT stage_two + 1 INTO next_version FROM schema_version ; IF next_version = 4 THEN EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "min_fee_a" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "min_fee_b" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "max_block_size" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "max_tx_size" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "max_bh_size" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "max_epoch" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "optimal_pool_count" TYPE word64type' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "bccxx_per_u_tx_o_word" entropic NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "cost_models" VARCHAR NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "price_mem" entropic NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "price_step" entropic NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_tx_ex_mem" word64type NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_tx_ex_steps" word64type NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_block_ex_mem" word64type NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_block_ex_steps" word64type NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_val_size" word64type NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "collateral_percent" uinteger NULL' ; EXECUTE 'ALTER TABLE "param_proposal" ADD COLUMN "max_collateral_inputs" uinteger NULL' ; -- Hand written SQL statements can be added here. UPDATE schema_version SET stage_two = next_version ; RAISE NOTICE 'DB has been migrated to stage_two version %', next_version ; END IF ; END ; $$ LANGUAGE plpgsql ; SELECT migrate() ; DROP FUNCTION migrate() ;
CREATE TABLE IF NOT EXISTS blog_post_categories ( post_id INT(12) NOT NULL, category_id INT(12) NOT NULL, UNIQUE KEY(post_id, category_id), CONSTRAINT fk_bpcatpost FOREIGN KEY (post_id) REFERENCES blog_posts(id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT fk_bpcatcategory FOREIGN KEY (category_id) REFERENCES blog_categories(id) ON DELETE CASCADE ON UPDATE CASCADE )
-- -- Copyright (C) 2017-2020 HERE Europe B.V. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- SPDX-License-Identifier: Apache-2.0 -- License-Filename: LICENSE -- -- \timing on -- \set ON_ERROR_STOP on /* Sourcecode: https://github.com/uber/h3.git tag: v3.2.0 */ set search_path = h3, public, topology; create schema if not exists h3; create or replace function h3_version() returns integer as $body$ select 106 $body$ language sql immutable; do $body$ begin begin create domain h3index bigint; exception when duplicate_object then raise notice 'type h3index already exists'; end; begin create type face_ijk_t as ( face integer, i integer, j integer, k integer ); exception when duplicate_object then raise notice 'type face_ijk_t already exists'; end; begin create type vec3d_t as (x double precision, y double precision, z double precision ); exception when duplicate_object then raise notice 'type vec3d_t already exists'; end; end; $body$; -- NUM_ICOSA_FACES 20 create or replace function _faceCenterGeo(icoface integer, out lat double precision, out lon double precision ) as $body$ declare -- does 15 digits fit??? faceCenterGeo double precision[][2] = array [ [ 0.803582649718989942, 1.248397419617396099], -- face 0 [ 1.307747883455638156, 2.536945009877921159], -- face 1 [ 1.054751253523952054, -1.347517358900396623], -- face 2 [ 0.600191595538186799, -0.450603909469755746], -- face 3 [ 0.491715428198773866, 0.401988202911306943], -- face 4 [ 0.172745327415618701, 1.678146885280433686], -- face 5 [ 0.605929321571350690, 2.953923329812411617], -- face 6 [ 0.427370518328979641, -1.888876200336285401], -- face 7 [-0.079066118549212831, -0.733429513380867741], -- face 8 [-0.230961644455383637, 0.506495587332349035], -- face 9 [ 0.079066118549212831, 2.408163140208925497], -- face 10 [ 0.230961644455383637, -2.635097066257444203], -- face 11 [-0.172745327415618701, -1.463445768309359553], -- face 12 [-0.605929321571350690, -0.187669323777381622], -- face 13 [-0.427370518328979641, 1.252716453253507838], -- face 14 [-0.600191595538186799, 2.690988744120037492], -- face 15 [-0.491715428198773866, -2.739604450678486295], -- face 16 [-0.803582649718989942, -1.893195233972397139], -- face 17 [-1.307747883455638156, -0.604647643711872080], -- face 18 [-1.054751253523952054, 1.794075294689396615] -- face 19 ]; begin lat = faceCenterGeo[icoface+1][1]; lon = faceCenterGeo[icoface+1][2]; end; $body$ language plpgsql immutable; create or replace function _faceCenterPoint(icoface integer, out x double precision, out y double precision, out z double precision ) as $body$ declare -- does 15 digits fit??? faceCenterPoint double precision[][3] = array [ [ 0.2199307791404606, 0.6583691780274996, 0.7198475378926182], -- face 0 [-0.2139234834501421, 0.1478171829550703, 0.9656017935214205], -- face 1 [ 0.1092625278784797, -0.4811951572873210, 0.8697775121287253], -- face 2 [ 0.7428567301586791, -0.3593941678278028, 0.5648005936517033], -- face 3 [ 0.8112534709140969, 0.3448953237639384, 0.4721387736413930], -- face 4 [-0.1055498149613921, 0.9794457296411413, 0.1718874610009365], -- face 5 [-0.8075407579970092, 0.1533552485898818, 0.5695261994882688], -- face 6 [-0.2846148069787907, -0.8644080972654206, 0.4144792552473539], -- face 7 [ 0.7405621473854482, -0.6673299564565524, -0.0789837646326737], -- face 8 [ 0.8512303986474293, 0.4722343788582681, -0.2289137388687808], -- face 9 [-0.7405621473854481, 0.6673299564565524, 0.0789837646326737], -- face 10 [-0.8512303986474292, -0.4722343788582682, 0.2289137388687808], -- face 11 [ 0.1055498149613919, -0.9794457296411413, -0.1718874610009365], -- face 12 [ 0.8075407579970092, -0.1533552485898819, -0.5695261994882688], -- face 13 [ 0.2846148069787908, 0.8644080972654204, -0.4144792552473539], -- face 14 [-0.7428567301586791, 0.3593941678278027, -0.5648005936517033], -- face 15 [-0.8112534709140971, -0.3448953237639382, -0.4721387736413930], -- face 16 [-0.2199307791404607, -0.6583691780274996, -0.7198475378926182], -- face 17 [ 0.2139234834501420, -0.1478171829550704, -0.9656017935214205], -- face 18 [-0.1092625278784796, 0.4811951572873210, -0.8697775121287253] -- face 19 ]; begin x = faceCenterPoint[icoface+1][1]; y = faceCenterPoint[icoface+1][2]; z = faceCenterPoint[icoface+1][3]; end; $body$ language plpgsql immutable; create or replace function _faceAxesAzRadsCII(icoface integer, out v0 double precision, out v1 double precision, out v2 double precision ) as $body$ declare -- does 15 digits fit??? faceAxesAzRadsCII double precision[][3] = array [ [5.619958268523939882, 3.525563166130744542, 1.431168063737548730], -- face 0 [5.760339081714187279, 3.665943979320991689, 1.571548876927796127], -- face 1 [0.780213654393430055, 4.969003859179821079, 2.874608756786625655], -- face 2 [0.430469363979999913, 4.619259568766391033, 2.524864466373195467], -- face 3 [6.130269123335111400, 4.035874020941915804, 1.941478918548720291], -- face 4 [2.692877706530642877, 0.598482604137447119, 4.787272808923838195], -- face 5 [2.982963003477243874, 0.888567901084048369, 5.077358105870439581], -- face 6 [3.532912002790141181, 1.438516900396945656, 5.627307105183336758], -- face 7 [3.494305004259568154, 1.399909901866372864, 5.588700106652763840], -- face 8 [3.003214169499538391, 0.908819067106342928, 5.097609271892733906], -- face 9 [5.930472956509811562, 3.836077854116615875, 1.741682751723420374], -- face 10 [0.138378484090254847, 4.327168688876645809, 2.232773586483450311], -- face 11 [0.448714947059150361, 4.637505151845541521, 2.543110049452346120], -- face 12 [0.158629650112549365, 4.347419854898940135, 2.253024752505744869], -- face 13 [5.891865957979238535, 3.797470855586042958, 1.703075753192847583], -- face 14 [2.711123289609793325, 0.616728187216597771, 4.805518392002988683], -- face 15 [3.294508837434268316, 1.200113735041072948, 5.388903939827463911], -- face 16 [3.804819692245439833, 1.710424589852244509, 5.899214794638635174], -- face 17 [3.664438879055192436, 1.570043776661997111, 5.758833981448388027], -- face 18 [2.361378999196363184, 0.266983896803167583, 4.455774101589558636] -- face 19 ]; begin v0 = faceAxesAzRadsCII[icoface+1][1]; v1 = faceAxesAzRadsCII[icoface+1][2]; v2 = faceAxesAzRadsCII[icoface+1][3]; end; $body$ language plpgsql immutable; create or replace function _s_faceIjkBaseCells(icoface integer, i integer, j integer, k integer, out baseCell integer, out cwwRot60 integer ) as $body$ declare faceIjkBaseCells integer [][3][3][2] = array [ [-- face 0 [ -- i 0 [[16, 0], [18, 0], [24, 0]], -- j 0 [[33, 0], [30, 0], [32, 3]], -- j 1 [[49, 1], [48, 3], [50, 3]] -- j 2 ], [ -- i 1 [[8, 0], [5, 5], [10, 5]], -- j 0 [[22, 0], [16, 0], [18, 0]], -- j 1 [[41, 1], [33, 0], [30, 0]] -- j 2 ], [ -- i 2 [[4, 0], [0, 5], [2, 5]], -- j 0 [[15, 1], [8, 0], [5, 5]], -- j 1 [[31, 1], [22, 0], [16, 0]] -- j 2 ]], [-- face 1 [ -- i 0 [[2, 0], [6, 0], [14, 0]], -- j 0 [[10, 0], [11, 0], [17, 3]], -- j 1 [[24, 1], [23, 3], [25, 3]] -- j 2 ], [ -- i 1 [[0, 0], [1, 5], [9, 5]], -- j 0 [[5, 0], [2, 0], [6, 0]], -- j 1 [[18, 1], [10, 0], [11, 0]] -- j 2 ], [ -- i 2 [[4, 1], [3, 5], [7, 5]], -- j 0 [[8, 1], [0, 0], [1, 5]], -- j 1 [[16, 1], [5, 0], [2, 0]] -- j 2 ]], [-- face 2 [ -- i 0 [[7, 0], [21, 0], [38, 0]], -- j 0 [[9, 0], [19, 0], [34, 3]], -- j 1 [[14, 1], [20, 3], [36, 3]] -- j 2 ], [ -- i 1 [[3, 0], [13, 5], [29, 5]], -- j 0 [[1, 0], [7, 0], [21, 0]], -- j 1 [[6, 1], [9, 0], [19, 0]] -- j 2 ], [ -- i 2 [[4, 2], [12, 5], [26, 5]], -- j 0 [[0, 1], [3, 0], [13, 5]], -- j 1 [[2, 1], [1, 0], [7, 0]] -- j 2 ]], [-- face 3 [ -- i 0 [[26, 0], [42, 0], [58, 0]], -- j 0 [[29, 0], [43, 0], [62, 3]], -- j 1 [[38, 1], [47, 3], [64, 3]] -- j 2 ], [ -- i 1 [[12, 0], [28, 5], [44, 5]], -- j 0 [[13, 0], [26, 0], [42, 0]], -- j 1 [[21, 1], [29, 0], [43, 0]] -- j 2 ], [ -- i 2 [[4, 3], [15, 5], [31, 5]], -- j 0 [[3, 1], [12, 0], [28, 5]], -- j 1 [[7, 1], [13, 0], [26, 0]] -- j 2 ]], [-- face 4 [ -- i 0 [[31, 0], [41, 0], [49, 0]], -- j 0 [[44, 0], [53, 0], [61, 3]], -- j 1 [[58, 1], [65, 3], [75, 3]] -- j 2 ], [ -- i 1 [[15, 0], [22, 5], [33, 5]], -- j 0 [[28, 0], [31, 0], [41, 0]], -- j 1 [[42, 1], [44, 0], [53, 0]] -- j 2 ], [ -- i 2 [[4, 4], [8, 5], [16, 5]], -- j 0 [[12, 1], [15, 0], [22, 5]], -- j 1 [[26, 1], [28, 0], [31, 0]] -- j 2 ]], [-- face 5 [ -- i 0 [[50, 0], [48, 0], [49, 3]], -- j 0 [[32, 0], [30, 3], [33, 3]], -- j 1 [[24, 3], [18, 3], [16, 3]] -- j 2 ], [ -- i 1 [[70, 0], [67, 0], [66, 3]], -- j 0 [[52, 3], [50, 0], [48, 0]], -- j 1 [[37, 3], [32, 0], [30, 3]] -- j 2 ], [ -- i 2 [[83, 0], [87, 3], [85, 3]], -- j 0 [[74, 3], [70, 0], [67, 0]], -- j 1 [[57, 1], [52, 3], [50, 0]] -- j 2 ]], [-- face 6 [ -- i 0 [[25, 0], [23, 0], [24, 3]], -- j 0 [[17, 0], [11, 3], [10, 3]], -- j 1 [[14, 3], [6, 3], [2, 3]] -- j 2 ], [ -- i 1 [[45, 0], [39, 0], [37, 3]], -- j 0 [[35, 3], [25, 0], [23, 0]], -- j 1 [[27, 3], [17, 0], [11, 3]] -- j 2 ], [ -- i 2 [[63, 0], [59, 3], [57, 3]], -- j 0 [[56, 3], [45, 0], [39, 0]], -- j 1 [[46, 3], [35, 3], [25, 0]] -- j 2 ]], [-- face 7 [ -- i 0 [[36, 0], [20, 0], [14, 3]], -- j 0 [[34, 0], [19, 3], [9, 3]], -- j 1 [[38, 3], [21, 3], [7, 3]] -- j 2 ], [ -- i 1 [[55, 0], [40, 0], [27, 3]], -- j 0 [[54, 3], [36, 0], [20, 0]], -- j 1 [[51, 3], [34, 0], [19, 3]] -- j 2 ], [ -- i 2 [[72, 0], [60, 3], [46, 3]], -- j 0 [[73, 3], [55, 0], [40, 0]], -- j 1 [[71, 3], [54, 3], [36, 0]] -- j 2 ]], [-- face 8 [ -- i 0 [[64, 0], [47, 0], [38, 3]], -- j 0 [[62, 0], [43, 3], [29, 3]], -- j 1 [[58, 3], [42, 3], [26, 3]] -- j 2 ], [ -- i 1 [[84, 0], [69, 0], [51, 3]], -- j 0 [[82, 3], [64, 0], [47, 0]], -- j 1 [[76, 3], [62, 0], [43, 3]] -- j 2 ], [ -- i 2 [[97, 0], [89, 3], [71, 3]], -- j 0 [[98, 3], [84, 0], [69, 0]], -- j 1 [[96, 3], [82, 3], [64, 0]] -- j 2 ]], [-- face 9 [ -- i 0 [[75, 0], [65, 0], [58, 3]], -- j 0 [[61, 0], [53, 3], [44, 3]], -- j 1 [[49, 3], [41, 3], [31, 3]] -- j 2 ], [ -- i 1 [[94, 0], [86, 0], [76, 3]], -- j 0 [[81, 3], [75, 0], [65, 0]], -- j 1 [[66, 3], [61, 0], [53, 3]] -- j 2 ], [ -- i 2 [[107, 0], [104, 3], [96, 3]], -- j 0 [[101, 3], [94, 0], [86, 0]], -- j 1 [[85, 3], [81, 3], [75, 0]] -- j 2 ]], [-- face 10 [ -- i 0 [[57, 0], [59, 0], [63, 3]], -- j 0 [[74, 0], [78, 3], [79, 3]], -- j 1 [[83, 3], [92, 3], [95, 3]] -- j 2 ], [ -- i 1 [[37, 0], [39, 3], [45, 3]], -- j 0 [[52, 0], [57, 0], [59, 0]], -- j 1 [[70, 3], [74, 0], [78, 3]] -- j 2 ], [ -- i 2 [[24, 0], [23, 3], [25, 3]], -- j 0 [[32, 3], [37, 0], [39, 3]], -- j 1 [[50, 3], [52, 0], [57, 0]] -- j 2 ]], [-- face 11 [ -- i 0 [[46, 0], [60, 0], [72, 3]], -- j 0 [[56, 0], [68, 3], [80, 3]], -- j 1 [[63, 3], [77, 3], [90, 3]] -- j 2 ], [ -- i 1 [[27, 0], [40, 3], [55, 3]], -- j 0 [[35, 0], [46, 0], [60, 0]], -- j 1 [[45, 3], [56, 0], [68, 3]] -- j 2 ], [ -- i 2 [[14, 0], [20, 3], [36, 3]], -- j 0 [[17, 3], [27, 0], [40, 3]], -- j 1 [[25, 3], [35, 0], [46, 0]] -- j 2 ]], [-- face 12 [ -- i 0 [[71, 0], [89, 0], [97, 3]], -- j 0 [[73, 0], [91, 3], [103, 3]], -- j 1 [[72, 3], [88, 3], [105, 3]] -- j 2 ], [ -- i 1 [[51, 0], [69, 3], [84, 3]], -- j 0 [[54, 0], [71, 0], [89, 0]], -- j 1 [[55, 3], [73, 0], [91, 3]] -- j 2 ], [ -- i 2 [[38, 0], [47, 3], [64, 3]], -- j 0 [[34, 3], [51, 0], [69, 3]], -- j 1 [[36, 3], [54, 0], [71, 0]] -- j 2 ]], [-- face 13 [ -- i 0 [[96, 0], [104, 0], [107, 3]], -- j 0 [[98, 0], [110, 3], [115, 3]], -- j 1 [[97, 3], [111, 3], [119, 3]] -- j 2 ], [ -- i 1 [[76, 0], [86, 3], [94, 3]], -- j 0 [[82, 0], [96, 0], [104, 0]], -- j 1 [[84, 3], [98, 0], [110, 3]] -- j 2 ], [ -- i 2 [[58, 0], [65, 3], [75, 3]], -- j 0 [[62, 3], [76, 0], [86, 3]], -- j 1 [[64, 3], [82, 0], [96, 0]] -- j 2 ]], [-- face 14 [ -- i 0 [[85, 0], [87, 0], [83, 3]], -- j 0 [[101, 0], [102, 3], [100, 3]], -- j 1 [[107, 3], [112, 3], [114, 3]] -- j 2 ], [ -- i 1 [[66, 0], [67, 3], [70, 3]], -- j 0 [[81, 0], [85, 0], [87, 0]], -- j 1 [[94, 3], [101, 0], [102, 3]] -- j 2 ], [ -- i 2 [[49, 0], [48, 3], [50, 3]], -- j 0 [[61, 3], [66, 0], [67, 3]], -- j 1 [[75, 3], [81, 0], [85, 0]] -- j 2 ]], [-- face 15 [ -- i 0 [[95, 0], [92, 0], [83, 0]], -- j 0 [[79, 0], [78, 0], [74, 3]], -- j 1 [[63, 1], [59, 3], [57, 3]] -- j 2 ], [ -- i 1 [[109, 0], [108, 0], [100, 5]], -- j 0 [[93, 1], [95, 0], [92, 0]], -- j 1 [[77, 1], [79, 0], [78, 0]] -- j 2 ], [ -- i 2 [[117, 4], [118, 5], [114, 5]], -- j 0 [[106, 1], [109, 0], [108, 0]], -- j 1 [[90, 1], [93, 1], [95, 0]] -- j 2 ]], [-- face 16 [ -- i 0 [[90, 0], [77, 0], [63, 0]], -- j 0 [[80, 0], [68, 0], [56, 3]], -- j 1 [[72, 1], [60, 3], [46, 3]] -- j 2 ], [ -- i 1 [[106, 0], [93, 0], [79, 5]], -- j 0 [[99, 1], [90, 0], [77, 0]], -- j 1 [[88, 1], [80, 0], [68, 0]] -- j 2 ], [ -- i 2 [[117, 3], [109, 5], [95, 5]], -- j 0 [[113, 1], [106, 0], [93, 0]], -- j 1 [[105, 1], [99, 1], [90, 0]] -- j 2 ]], [-- face 17 [ -- i 0 [[105, 0], [88, 0], [72, 0]], -- j 0 [[103, 0], [91, 0], [73, 3]], -- j 1 [[97, 1], [89, 3], [71, 3]] -- j 2 ], [ -- i 1 [[113, 0], [99, 0], [80, 5]], -- j 0 [[116, 1], [105, 0], [88, 0]], -- j 1 [[111, 1], [103, 0], [91, 0]] -- j 2 ], [ -- i 2 [[117, 2], [106, 5], [90, 5]], -- j 0 [[121, 1], [113, 0], [99, 0]], -- j 1 [[119, 1], [116, 1], [105, 0]] -- j 2 ]], [-- face 18 [ -- i 0 [[119, 0], [111, 0], [97, 0]], -- j 0 [[115, 0], [110, 0], [98, 3]], -- j 1 [[107, 1], [104, 3], [96, 3]] -- j 2 ], [ -- i 1 [[121, 0], [116, 0], [103, 5]], -- j 0 [[120, 1], [119, 0], [111, 0]], -- j 1 [[112, 1], [115, 0], [110, 0]] -- j 2 ], [ -- i 2 [[117, 1], [113, 5], [105, 5]], -- j 0 [[118, 1], [121, 0], [116, 0]], -- j 1 [[114, 1], [120, 1], [119, 0]] -- j 2 ]], [-- face 19 [ -- i 0 [[114, 0], [112, 0], [107, 0]], -- j 0 [[100, 0], [102, 0], [101, 3]], -- j 1 [[83, 1], [87, 3], [85, 3]] -- j 2 ], [ -- i 1 [[118, 0], [120, 0], [115, 5]], -- j 0 [[108, 1], [114, 0], [112, 0]], -- j 1 [[92, 1], [100, 0], [102, 0]] -- j 2 ], [ -- i 2 [[117, 0], [121, 5], [119, 5]], -- j 0 [[109, 1], [118, 0], [120, 0]], -- j 1 [[95, 1], [108, 1], [114, 0]] -- j 2 ]] ]; begin i = i+1; j = j+1; k = k+1; icoface = icoface+1; baseCell = faceIjkBaseCells[icoface][i][j][k][1]; cwwRot60 = faceIjkBaseCells[icoface][i][j][k][2]; end; $body$ language plpgsql immutable; create or replace function _faceIjkToBaseCell(icoface integer, i integer, j integer, k integer ) returns integer as $body$ select (_s_faceIjkBaseCells(icoface,i,j,k)).baseCell $body$ language sql immutable; create or replace function _faceIjkToBaseCellCCWrot60(icoface integer, i integer, j integer, k integer ) returns integer as $body$ select (_s_faceIjkBaseCells(icoface,i,j,k)).cwwRot60 $body$ language sql immutable; create or replace function baseCellData( baseCell integer, out face integer, out i integer, out j integer, out k integer, out pentagon boolean, out cwOffsetPent0 integer, out cwOffsetPent1 integer ) as $body$ declare arrBaseCellData integer [][7] = array [ [1, 1, 0, 0, 0, 0, 0], -- base cell 0 [2, 1, 1, 0, 0, 0, 0], -- base cell 1 [1, 0, 0, 0, 0, 0, 0], -- base cell 2 [2, 1, 0, 0, 0, 0, 0], -- base cell 3 [0, 2, 0, 0, 1, -1, -1], -- base cell 4 [1, 1, 1, 0, 0, 0, 0], -- base cell 5 [1, 0, 0, 1, 0, 0, 0], -- base cell 6 [2, 0, 0, 0, 0, 0, 0], -- base cell 7 [0, 1, 0, 0, 0, 0, 0], -- base cell 8 [2, 0, 1, 0, 0, 0, 0], -- base cell 9 [1, 0, 1, 0, 0, 0, 0], -- base cell 10 [1, 0, 1, 1, 0, 0, 0], -- base cell 11 [3, 1, 0, 0, 0, 0, 0], -- base cell 12 [3, 1, 1, 0, 0, 0, 0], -- base cell 13 [11, 2, 0, 0, 1, 2, 6], -- base cell 14 [4, 1, 0, 0, 0, 0, 0], -- base cell 15 [0, 0, 0, 0, 0, 0, 0], -- base cell 16 [6, 0, 1, 0, 0, 0, 0], -- base cell 17 [0, 0, 0, 1, 0, 0, 0], -- base cell 18 [2, 0, 1, 1, 0, 0, 0], -- base cell 19 [7, 0, 0, 1, 0, 0, 0], -- base cell 20 [2, 0, 0, 1, 0, 0, 0], -- base cell 21 [0, 1, 1, 0, 0, 0, 0], -- base cell 22 [6, 0, 0, 1, 0, 0, 0], -- base cell 23 [10, 2, 0, 0, 1, 1, 5], -- base cell 24 [6, 0, 0, 0, 0, 0, 0], -- base cell 25 [3, 0, 0, 0, 0, 0, 0], -- base cell 26 [11, 1, 0, 0, 0, 0, 0], -- base cell 27 [4, 1, 1, 0, 0, 0, 0], -- base cell 28 [3, 0, 1, 0, 0, 0, 0], -- base cell 29 [0, 0, 1, 1, 0, 0, 0], -- base cell 30 [4, 0, 0, 0, 0, 0, 0], -- base cell 31 [5, 0, 1, 0, 0, 0, 0], -- base cell 32 [0, 0, 1, 0, 0, 0, 0], -- base cell 33 [7, 0, 1, 0, 0, 0, 0], -- base cell 34 [11, 1, 1, 0, 0, 0, 0], -- base cell 35 [7, 0, 0, 0, 0, 0, 0], -- base cell 36 [10, 1, 0, 0, 0, 0, 0], -- base cell 37 [12, 2, 0, 0, 1, 3, 7], -- base cell 38 [6, 1, 0, 1, 0, 0, 0], -- base cell 39 [7, 1, 0, 1, 0, 0, 0], -- base cell 40 [4, 0, 0, 1, 0, 0, 0], -- base cell 41 [3, 0, 0, 1, 0, 0, 0], -- base cell 42 [3, 0, 1, 1, 0, 0, 0], -- base cell 43 [4, 0, 1, 0, 0, 0, 0], -- base cell 44 [6, 1, 0, 0, 0, 0, 0], -- base cell 45 [11, 0, 0, 0, 0, 0, 0], -- base cell 46 [8, 0, 0, 1, 0, 0, 0], -- base cell 47 [5, 0, 0, 1, 0, 0, 0], -- base cell 48 [14, 2, 0, 0, 1, 0, 9], -- base cell 49 [5, 0, 0, 0, 0, 0, 0], -- base cell 50 [12, 1, 0, 0, 0, 0, 0], -- base cell 51 [10, 1, 1, 0, 0, 0, 0], -- base cell 52 [4, 0, 1, 1, 0, 0, 0], -- base cell 53 [12, 1, 1, 0, 0, 0, 0], -- base cell 54 [7, 1, 0, 0, 0, 0, 0], -- base cell 55 [11, 0, 1, 0, 0, 0, 0], -- base cell 56 [10, 0, 0, 0, 0, 0, 0], -- base cell 57 [13, 2, 0, 0, 1, 4, 8], -- base cell 58 [10, 0, 0, 1, 0, 0, 0], -- base cell 59 [11, 0, 0, 1, 0, 0, 0], -- base cell 60 [9, 0, 1, 0, 0, 0, 0], -- base cell 61 [8, 0, 1, 0, 0, 0, 0], -- base cell 62 [6, 2, 0, 0, 1, 11, 15], -- base cell 63 [8, 0, 0, 0, 0, 0, 0], -- base cell 64 [9, 0, 0, 1, 0, 0, 0], -- base cell 65 [14, 1, 0, 0, 0, 0, 0], -- base cell 66 [5, 1, 0, 1, 0, 0, 0], -- base cell 67 [16, 0, 1, 1, 0, 0, 0], -- base cell 68 [8, 1, 0, 1, 0, 0, 0], -- base cell 69 [5, 1, 0, 0, 0, 0, 0], -- base cell 70 [12, 0, 0, 0, 0, 0, 0], -- base cell 71 [7, 2, 0, 0, 1, 12, 16], -- base cell 72 [12, 0, 1, 0, 0, 0, 0], -- base cell 73 [10, 0, 1, 0, 0, 0, 0], -- base cell 74 [9, 0, 0, 0, 0, 0, 0], -- base cell 75 [13, 1, 0, 0, 0, 0, 0], -- base cell 76 [16, 0, 0, 1, 0, 0, 0], -- base cell 77 [15, 0, 1, 1, 0, 0, 0], -- base cell 78 [15, 0, 1, 0, 0, 0, 0], -- base cell 79 [16, 0, 1, 0, 0, 0, 0], -- base cell 80 [14, 1, 1, 0, 0, 0, 0], -- base cell 81 [13, 1, 1, 0, 0, 0, 0], -- base cell 82 [5, 2, 0, 0, 1, 10, 19], -- base cell 83 [8, 1, 0, 0, 0, 0, 0], -- base cell 84 [14, 0, 0, 0, 0, 0, 0], -- base cell 85 [9, 1, 0, 1, 0, 0, 0], -- base cell 86 [14, 0, 0, 1, 0, 0, 0], -- base cell 87 [17, 0, 0, 1, 0, 0, 0], -- base cell 88 [12, 0, 0, 1, 0, 0, 0], -- base cell 89 [16, 0, 0, 0, 0, 0, 0], -- base cell 90 [17, 0, 1, 1, 0, 0, 0], -- base cell 91 [15, 0, 0, 1, 0, 0, 0], -- base cell 92 [16, 1, 0, 1, 0, 0, 0], -- base cell 93 [9, 1, 0, 0, 0, 0, 0], -- base cell 94 [15, 0, 0, 0, 0, 0, 0], -- base cell 95 [13, 0, 0, 0, 0, 0, 0], -- base cell 96 [8, 2, 0, 0, 1, 13, 17], -- base cell 97 [13, 0, 1, 0, 0, 0, 0], -- base cell 98 [17, 1, 0, 1, 0, 0, 0], -- base cell 99 [19, 0, 1, 0, 0, 0, 0], -- base cell 100 [14, 0, 1, 0, 0, 0, 0], -- base cell 101 [19, 0, 1, 1, 0, 0, 0], -- base cell 102 [17, 0, 1, 0, 0, 0, 0], -- base cell 103 [13, 0, 0, 1, 0, 0, 0], -- base cell 104 [17, 0, 0, 0, 0, 0, 0], -- base cell 105 [16, 1, 0, 0, 0, 0, 0], -- base cell 106 [9, 2, 0, 0, 1, 14, 18], -- base cell 107 [15, 1, 0, 1, 0, 0, 0], -- base cell 108 [15, 1, 0, 0, 0, 0, 0], -- base cell 109 [18, 0, 1, 1, 0, 0, 0], -- base cell 110 [18, 0, 0, 1, 0, 0, 0], -- base cell 111 [19, 0, 0, 1, 0, 0, 0], -- base cell 112 [17, 1, 0, 0, 0, 0, 0], -- base cell 113 [19, 0, 0, 0, 0, 0, 0], -- base cell 114 [18, 0, 1, 0, 0, 0, 0], -- base cell 115 [18, 1, 0, 1, 0, 0, 0], -- base cell 116 [19, 2, 0, 0, 1, -1, -1], -- base cell 117 [19, 1, 0, 0, 0, 0, 0], -- base cell 118 [18, 0, 0, 0, 0, 0, 0], -- base cell 119 [19, 1, 0, 1, 0, 0, 0], -- base cell 120 [18, 1, 0, 0, 0, 0, 0] -- base cell 121 ]; begin baseCell = baseCell+1; face = arrBaseCellData[baseCell][1]; i = arrBaseCellData[baseCell][2]; j = arrBaseCellData[baseCell][3]; k = arrBaseCellData[baseCell][4]; pentagon = (arrBaseCellData[baseCell][5] != 0); cwOffsetPent0 = arrBaseCellData[baseCell][6]; cwOffsetPent1 = arrBaseCellData[baseCell][7]; end; $body$ language plpgsql immutable; create or replace function _isBaseCellPentagon( baseCell integer) returns boolean as $body$ declare rBaseCell record; begin rBaseCell = baseCellData( baseCell ); return rBaseCell.pentagon; end; $body$ language plpgsql immutable; create or replace function _isBaseCellPolarPentagon(baseCell integer) returns boolean as $body$ select (baseCell = 4) or (baseCell = 117) $body$ language sql immutable; create or replace function _baseCellIsCwOffset( baseCell integer, testFace integer) returns boolean as $body$ declare rBaseCell record; begin rBaseCell = baseCellData( baseCell ); return (( rBaseCell.cwOffsetPent0 = testFace ) or ( rBaseCell.cwOffsetPent1 = testFace )); end; $body$ language plpgsql immutable; create or replace function maxDimByCIIres( res integer ) returns integer as $body$ declare arrDim integer [] = array [ 2, -- res 0 -1, -- res 1 14, -- res 2 -1, -- res 3 98, -- res 4 -1, -- res 5 686, -- res 6 -1, -- res 7 4802, -- res 8 -1, -- res 9 33614, -- res 10 -1, -- res 11 235298, -- res 12 -1, -- res 13 1647086, -- res 14 -1, -- res 15 11529602 -- res 16 ]; begin res = res + 1; return arrDim[res]; end; $body$ language plpgsql immutable; create or replace function unitScaleByCIIres( res integer ) returns integer as $body$ declare arrScale integer [] = array [ 1, -- res 0 -1, -- res 1 7, -- res 2 -1, -- res 3 49, -- res 4 -1, -- res 5 343, -- res 6 -1, -- res 7 2401, -- res 8 -1, -- res 9 16807, -- res 10 -1, -- res 11 117649, -- res 12 -1, -- res 13 823543, -- res 14 -1, -- res 15 5764801 -- res 16 ]; begin res = res + 1; return arrScale[res]; end; $body$ language plpgsql immutable; create or replace function faceNeighbors(icosa_face_nr integer, quadrant integer, out face integer, out i integer, out j integer, out k integer, out ccwrot60 integer) as $body$ declare arr_face_neigh integer [][4][5] = array [ [ -- face 0 [0, 0, 0, 0, 0], -- central face [4, 2, 0, 2, 1], -- ij quadrant [1, 2, 2, 0, 5], -- ki quadrant [5, 0, 2, 2, 3] -- jk quadrant ], [ -- face 1 [1, 0, 0, 0, 0], -- central face [0, 2, 0, 2, 1], -- ij quadrant [2, 2, 2, 0, 5], -- ki quadrant [6, 0, 2, 2, 3] -- jk quadrant ], [ -- face 2 [2, 0, 0, 0, 0], -- central face [1, 2, 0, 2, 1], -- ij quadrant [3, 2, 2, 0, 5], -- ki quadrant [7, 0, 2, 2, 3] -- jk quadrant ], [ -- face 3 [3, 0, 0, 0, 0], -- central face [2, 2, 0, 2, 1], -- ij quadrant [4, 2, 2, 0, 5], -- ki quadrant [8, 0, 2, 2, 3] -- jk quadrant ], [ -- face 4 [4, 0, 0, 0, 0], -- central face [3, 2, 0, 2, 1], -- ij quadrant [0, 2, 2, 0, 5], -- ki quadrant [9, 0, 2, 2, 3] -- jk quadrant ], [ -- face 5 [ 5, 0, 0, 0, 0], -- central face [10, 2, 2, 0, 3], -- ij quadrant [14, 2, 0, 2, 3], -- ki quadrant [ 0, 0, 2, 2, 3] -- jk quadrant ], [ -- face 6 [ 6, 0, 0, 0, 0], -- central face [11, 2, 2, 0, 3], -- ij quadrant [10, 2, 0, 2, 3], -- ki quadrant [ 1, 0, 2, 2, 3] -- jk quadrant ], [ -- face 7 [ 7, 0, 0, 0, 0], -- central face [12, 2, 2, 0, 3], -- ij quadrant [11, 2, 0, 2, 3], -- ki quadrant [ 2, 0, 2, 2, 3] -- jk quadrant ], [ -- face 8 [ 8, 0, 0, 0, 0], -- central face [13, 2, 2, 0, 3], -- ij quadrant [12, 2, 0, 2, 3], -- ki quadrant [ 3, 0, 2, 2, 3] -- jk quadrant ], [ -- face 9 [ 9, 0, 0, 0, 0], -- central face [14, 2, 2, 0, 3], -- ij quadrant [13, 2, 0, 2, 3], -- ki quadrant [ 4, 0, 2, 2, 3] -- jk quadrant ], [ -- face 10 [10, 0, 0, 0, 0], -- central face [ 5, 2, 2, 0, 3], -- ij quadrant [ 6, 2, 0, 2, 3], -- ki quadrant [15, 0, 2, 2, 3] -- jk quadrant ], [ -- face 11 [11, 0, 0, 0, 0], -- central face [ 6, 2, 2, 0, 3], -- ij quadrant [ 7, 2, 0, 2, 3], -- ki quadrant [16, 0, 2, 2, 3] -- jk quadrant ], [ -- face 12 [12, 0, 0, 0, 0], -- central face [ 7, 2, 2, 0, 3], -- ij quadrant [ 8, 2, 0, 2, 3], -- ki quadrant [17, 0, 2, 2, 3] -- jk quadrant ], [ -- face 13 [13, 0, 0, 0, 0], -- central face [ 8, 2, 2, 0, 3], -- ij quadrant [ 9, 2, 0, 2, 3], -- ki quadrant [18, 0, 2, 2, 3] -- jk quadrant ], [ -- face 14 [14, 0, 0, 0, 0], -- central face [ 9, 2, 2, 0, 3], -- ij quadrant [ 5, 2, 0, 2, 3], -- ki quadrant [19, 0, 2, 2, 3] -- jk quadrant ], [ -- face 15 [15, 0, 0, 0, 0], -- central face [16, 2, 0, 2, 1], -- ij quadrant [19, 2, 2, 0, 5], -- ki quadrant [10, 0, 2, 2, 3] -- jk quadrant ], [ -- face 16 [16, 0, 0, 0, 0], -- central face [17, 2, 0, 2, 1], -- ij quadrant [15, 2, 2, 0, 5], -- ki quadrant [11, 0, 2, 2, 3] -- jk quadrant ], [ -- face 17 [17, 0, 0, 0, 0], -- central face [18, 2, 0, 2, 1], -- ij quadrant [16, 2, 2, 0, 5], -- ki quadrant [12, 0, 2, 2, 3] -- jk quadrant ], [ -- face 18 [18, 0, 0, 0, 0], -- central face [19, 2, 0, 2, 1], -- ij quadrant [17, 2, 2, 0, 5], -- ki quadrant [13, 0, 2, 2, 3] -- jk quadrant ], [ -- face 19 [19, 0, 0, 0, 0], -- central face [15, 2, 0, 2, 1], -- ij quadrant [18, 2, 2, 0, 5], -- ki quadrant [14, 0, 2, 2, 3] -- jk quadrant ] ]; begin icosa_face_nr = icosa_face_nr + 1; quadrant = quadrant + 1; face = arr_face_neigh[icosa_face_nr][quadrant][1]; i = arr_face_neigh[icosa_face_nr][quadrant][2]; j = arr_face_neigh[icosa_face_nr][quadrant][3]; k = arr_face_neigh[icosa_face_nr][quadrant][4]; ccwrot60 = arr_face_neigh[icosa_face_nr][quadrant][5]; end; $body$ language plpgsql immutable; create or replace function adjacentFaceDir( origin integer, destination integer ) returns integer as $body$ declare arr_adjacent_face_dir integer[20][20] = array [ -- IJ = 1, KI = 2, JK = 3 [0, 2 /*KI*/, -1, -1, 1 /*IJ*/, 3 /*JK*/, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], -- face 0 [1 /*IJ*/, 0, 2 /*KI*/, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], -- face 1 [-1, 1 /*IJ*/, 0, 2 /*KI*/, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], -- face 2 [-1, -1, 1 /*IJ*/, 0, 2 /*KI*/, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], -- face 3 [2 /*KI*/, -1, -1, 1 /*IJ*/, 0, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], -- face 4 [3 /*JK*/, -1, -1, -1, -1, 0, -1, -1, -1, -1, 1 /*IJ*/, -1, -1, -1, 2 /*KI*/, -1, -1, -1, -1, -1], -- face 5 [-1, 3 /*JK*/, -1, -1, -1, -1, 0, -1, -1, -1, 2 /*KI*/, 1 /*IJ*/, -1, -1, -1, -1, -1, -1, -1, -1], -- face 6 [-1, -1, 3 /*JK*/, -1, -1, -1, -1, 0, -1, -1, -1, 2 /*KI*/, 1 /*IJ*/, -1, -1, -1, -1, -1, -1, -1], -- face 7 [-1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, 0, -1, -1, -1, 2 /*KI*/, 1 /*IJ*/, -1, -1, -1, -1, -1, -1], -- face 8 [-1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, 0, -1, -1, -1, 2 /*KI*/, 1 /*IJ*/, -1, -1, -1, -1, -1], -- face 9 [-1, -1, -1, -1, -1, 1 /*IJ*/, 2 /*KI*/, -1, -1, -1, 0, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1], -- face 10 [-1, -1, -1, -1, -1, -1, 1 /*IJ*/, 2 /*KI*/, -1, -1, -1, 0, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1], -- face 11 [-1, -1, -1, -1, -1, -1, -1, 1 /*IJ*/, 2 /*KI*/, -1, -1, -1, 0, -1, -1, -1, -1, 3 /*JK*/, -1, -1], -- face 12 [-1, -1, -1, -1, -1, -1, -1, -1, 1 /*IJ*/, 2 /*KI*/, -1, -1, -1, 0, -1, -1, -1, -1, 3 /*JK*/, -1], -- face 13 [-1, -1, -1, -1, -1, 2 /*KI*/, -1, -1, -1, 1 /*IJ*/, -1, -1, -1, -1, 0, -1, -1, -1, -1, 3 /*JK*/], -- face 14 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, -1, 0, 1 /*IJ*/, -1, -1, 2 /*KI*/], -- face 15 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, 2 /*KI*/, 0, 1 /*IJ*/, -1, -1], -- face 16 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, 2 /*KI*/, 0, 1 /*IJ*/, -1], -- face 17 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3 /*JK*/, -1, -1, -1, 2 /*KI*/, 0, 1 /*IJ*/], -- face 18 [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3 /*JK*/, 1 /*IJ*/, -1, -1, 2 /*KI*/, 0] -- face 19 ]; begin return arr_adjacent_face_dir[origin +1][destination +1]; end; $body$ language plpgsql immutable; create or replace function baseCellNeighbors( basecell integer, neighbor integer ) returns integer as $body$ declare arr_baseCellNeighbors integer [ 122 /*NUM_BASE_CELLS*/][7] = array [ [0, 1, 5, 2, 4, 3, 8], -- base cell 0 [1, 7, 6, 9, 0, 3, 2], -- base cell 1 [2, 6, 10, 11, 0, 1, 5], -- base cell 2 [3, 13, 1, 7, 4, 12, 0], -- base cell 3 [4, 127 /*INVALID_BASE_CELL*/, 15, 8, 3, 0, 12], -- base cell 4 (pentagon) [5, 2, 18, 10, 8, 0, 16], -- base cell 5 [6, 14, 11, 17, 1, 9, 2], -- base cell 6 [7, 21, 9, 19, 3, 13, 1], -- base cell 7 [8, 5, 22, 16, 4, 0, 15], -- base cell 8 [9, 19, 14, 20, 1, 7, 6], -- base cell 9 [10, 11, 24, 23, 5, 2, 18], -- base cell 10 [11, 17, 23, 25, 2, 6, 10], -- base cell 11 [12, 28, 13, 26, 4, 15, 3], -- base cell 12 [13, 26, 21, 29, 3, 12, 7], -- base cell 13 [14, 127 /*INVALID_BASE_CELL*/, 17, 27, 9, 20, 6], -- base cell 14 (pentagon) [15, 22, 28, 31, 4, 8, 12], -- base cell 15 [16, 18, 33, 30, 8, 5, 22], -- base cell 16 [17, 11, 14, 6, 35, 25, 27], -- base cell 17 [18, 24, 30, 32, 5, 10, 16], -- base cell 18 [19, 34, 20, 36, 7, 21, 9], -- base cell 19 [20, 14, 19, 9, 40, 27, 36], -- base cell 20 [21, 38, 19, 34, 13, 29, 7], -- base cell 21 [22, 16, 41, 33, 15, 8, 31], -- base cell 22 [23, 24, 11, 10, 39, 37, 25], -- base cell 23 [24, 127 /*INVALID_BASE_CELL*/, 32, 37, 10, 23, 18], -- base cell 24 (pentagon) [25, 23, 17, 11, 45, 39, 35], -- base cell 25 [26, 42, 29, 43, 12, 28, 13], -- base cell 26 [27, 40, 35, 46, 14, 20, 17], -- base cell 27 [28, 31, 42, 44, 12, 15, 26], -- base cell 28 [29, 43, 38, 47, 13, 26, 21], -- base cell 29 [30, 32, 48, 50, 16, 18, 33], -- base cell 30 [31, 41, 44, 53, 15, 22, 28], -- base cell 31 [32, 30, 24, 18, 52, 50, 37], -- base cell 32 [33, 30, 49, 48, 22, 16, 41], -- base cell 33 [34, 19, 38, 21, 54, 36, 51], -- base cell 34 [35, 46, 45, 56, 17, 27, 25], -- base cell 35 [36, 20, 34, 19, 55, 40, 54], -- base cell 36 [37, 39, 52, 57, 24, 23, 32], -- base cell 37 [38, 127 /*INVALID_BASE_CELL*/, 34, 51, 29, 47, 21], -- base cell 38 (pentagon) [39, 37, 25, 23, 59, 57, 45], -- base cell 39 [40, 27, 36, 20, 60, 46, 55], -- base cell 40 [41, 49, 53, 61, 22, 33, 31], -- base cell 41 [42, 58, 43, 62, 28, 44, 26], -- base cell 42 [43, 62, 47, 64, 26, 42, 29], -- base cell 43 [44, 53, 58, 65, 28, 31, 42], -- base cell 44 [45, 39, 35, 25, 63, 59, 56], -- base cell 45 [46, 60, 56, 68, 27, 40, 35], -- base cell 46 [47, 38, 43, 29, 69, 51, 64], -- base cell 47 [48, 49, 30, 33, 67, 66, 50], -- base cell 48 [49, 127 /*INVALID_BASE_CELL*/, 61, 66, 33, 48, 41], -- base cell 49 (pentagon) [50, 48, 32, 30, 70, 67, 52], -- base cell 50 [51, 69, 54, 71, 38, 47, 34], -- base cell 51 [52, 57, 70, 74, 32, 37, 50], -- base cell 52 [53, 61, 65, 75, 31, 41, 44], -- base cell 53 [54, 71, 55, 73, 34, 51, 36], -- base cell 54 [55, 40, 54, 36, 72, 60, 73], -- base cell 55 [56, 68, 63, 77, 35, 46, 45], -- base cell 56 [57, 59, 74, 78, 37, 39, 52], -- base cell 57 [58, 127 /*INVALID_BASE_CELL*/, 62, 76, 44, 65, 42], -- base cell 58 (pentagon) [59, 63, 78, 79, 39, 45, 57], -- base cell 59 [60, 72, 68, 80, 40, 55, 46], -- base cell 60 [61, 53, 49, 41, 81, 75, 66], -- base cell 61 [62, 43, 58, 42, 82, 64, 76], -- base cell 62 [63, 127 /*INVALID_BASE_CELL*/, 56, 45, 79, 59, 77], -- base cell 63 (pentagon) [64, 47, 62, 43, 84, 69, 82], -- base cell 64 [65, 58, 53, 44, 86, 76, 75], -- base cell 65 [66, 67, 81, 85, 49, 48, 61], -- base cell 66 [67, 66, 50, 48, 87, 85, 70], -- base cell 67 [68, 56, 60, 46, 90, 77, 80], -- base cell 68 [69, 51, 64, 47, 89, 71, 84], -- base cell 69 [70, 67, 52, 50, 83, 87, 74], -- base cell 70 [71, 89, 73, 91, 51, 69, 54], -- base cell 71 [72, 127 /*INVALID_BASE_CELL*/, 73, 55, 80, 60, 88], -- base cell 72 (pentagon) [73, 91, 72, 88, 54, 71, 55], -- base cell 73 [74, 78, 83, 92, 52, 57, 70], -- base cell 74 [75, 65, 61, 53, 94, 86, 81], -- base cell 75 [76, 86, 82, 96, 58, 65, 62], -- base cell 76 [77, 63, 68, 56, 93, 79, 90], -- base cell 77 [78, 74, 59, 57, 95, 92, 79], -- base cell 78 [79, 78, 63, 59, 93, 95, 77], -- base cell 79 [80, 68, 72, 60, 99, 90, 88], -- base cell 80 [81, 85, 94, 101, 61, 66, 75], -- base cell 81 [82, 96, 84, 98, 62, 76, 64], -- base cell 82 [83, 127 /*INVALID_BASE_CELL*/, 74, 70, 100, 87, 92], -- base cell 83 (pentagon) [84, 69, 82, 64, 97, 89, 98], -- base cell 84 [85, 87, 101, 102, 66, 67, 81], -- base cell 85 [86, 76, 75, 65, 104, 96, 94], -- base cell 86 [87, 83, 102, 100, 67, 70, 85], -- base cell 87 [88, 72, 91, 73, 99, 80, 105], -- base cell 88 [89, 97, 91, 103, 69, 84, 71], -- base cell 89 [90, 77, 80, 68, 106, 93, 99], -- base cell 90 [91, 73, 89, 71, 105, 88, 103], -- base cell 91 [92, 83, 78, 74, 108, 100, 95], -- base cell 92 [93, 79, 90, 77, 109, 95, 106], -- base cell 93 [94, 86, 81, 75, 107, 104, 101], -- base cell 94 [95, 92, 79, 78, 109, 108, 93], -- base cell 95 [96, 104, 98, 110, 76, 86, 82], -- base cell 96 [97, 127 /*INVALID_BASE_CELL*/, 98, 84, 103, 89, 111], -- base cell 97 (pentagon) [98, 110, 97, 111, 82, 96, 84], -- base cell 98 [99, 80, 105, 88, 106, 90, 113], -- base cell 99 [100, 102, 83, 87, 108, 114, 92], -- base cell 100 [101, 102, 107, 112, 81, 85, 94], -- base cell 101 [102, 101, 87, 85, 114, 112, 100], -- base cell 102 [103, 91, 97, 89, 116, 105, 111], -- base cell 103 [104, 107, 110, 115, 86, 94, 96], -- base cell 104 [105, 88, 103, 91, 113, 99, 116], -- base cell 105 [106, 93, 99, 90, 117, 109, 113], -- base cell 106 [107, 127 /*INVALID_BASE_CELL*/, 101, 94, 115, 104, 112], -- base cell 107 (pentagon) [108, 100, 95, 92, 118, 114, 109], -- base cell 108 [109, 108, 93, 95, 117, 118, 106], -- base cell 109 [110, 98, 104, 96, 119, 111, 115], -- base cell 110 [111, 97, 110, 98, 116, 103, 119], -- base cell 111 [112, 107, 102, 101, 120, 115, 114], -- base cell 112 [113, 99, 116, 105, 117, 106, 121], -- base cell 113 [114, 112, 100, 102, 118, 120, 108], -- base cell 114 [115, 110, 107, 104, 120, 119, 112], -- base cell 115 [116, 103, 119, 111, 113, 105, 121], -- base cell 116 [117, 127 /*INVALID_BASE_CELL*/, 109, 118, 113, 121, 106], -- base cell 117 (pentagon) [118, 120, 108, 114, 117, 121, 109], -- base cell 118 [119, 111, 115, 110, 121, 116, 120], -- base cell 119 [120, 115, 114, 112, 121, 119, 118], -- base cell 120 [121, 116, 120, 119, 117, 113, 118] -- base cell 121 ]; begin return arr_baseCellNeighbors[basecell +1][neighbor +1]; end; $body$ language plpgsql immutable; create or replace function baseCellNeighbor60CCWRots( basecell integer, neighbor integer ) returns integer as $body$ declare arr_baseCellNeighbor60CCWRots integer[ 122 /*NUM_BASE_CELLS*/][7] = array [ [0, 5, 0, 0, 1, 5, 1], -- base cell 0 [0, 0, 1, 0, 1, 0, 1], -- base cell 1 [0, 0, 0, 0, 0, 5, 0], -- base cell 2 [0, 5, 0, 0, 2, 5, 1], -- base cell 3 [0, -1, 1, 0, 3, 4, 2], -- base cell 4 (pentagon) [0, 0, 1, 0, 1, 0, 1], -- base cell 5 [0, 0, 0, 3, 5, 5, 0], -- base cell 6 [0, 0, 0, 0, 0, 5, 0], -- base cell 7 [0, 5, 0, 0, 0, 5, 1], -- base cell 8 [0, 0, 1, 3, 0, 0, 1], -- base cell 9 [0, 0, 1, 3, 0, 0, 1], -- base cell 10 [0, 3, 3, 3, 0, 0, 0], -- base cell 11 [0, 5, 0, 0, 3, 5, 1], -- base cell 12 [0, 0, 1, 0, 1, 0, 1], -- base cell 13 [0, -1, 3, 0, 5, 2, 0], -- base cell 14 (pentagon) [0, 5, 0, 0, 4, 5, 1], -- base cell 15 [0, 0, 0, 0, 0, 5, 0], -- base cell 16 [0, 3, 3, 3, 3, 0, 3], -- base cell 17 [0, 0, 0, 3, 5, 5, 0], -- base cell 18 [0, 3, 3, 3, 0, 0, 0], -- base cell 19 [0, 3, 3, 3, 0, 3, 0], -- base cell 20 [0, 0, 0, 3, 5, 5, 0], -- base cell 21 [0, 0, 1, 0, 1, 0, 1], -- base cell 22 [0, 3, 3, 3, 0, 3, 0], -- base cell 23 [0, -1, 3, 0, 5, 2, 0], -- base cell 24 (pentagon) [0, 0, 0, 3, 0, 0, 3], -- base cell 25 [0, 0, 0, 0, 0, 5, 0], -- base cell 26 [0, 3, 0, 0, 0, 3, 3], -- base cell 27 [0, 0, 1, 0, 1, 0, 1], -- base cell 28 [0, 0, 1, 3, 0, 0, 1], -- base cell 29 [0, 3, 3, 3, 0, 0, 0], -- base cell 30 [0, 0, 0, 0, 0, 5, 0], -- base cell 31 [0, 3, 3, 3, 3, 0, 3], -- base cell 32 [0, 0, 1, 3, 0, 0, 1], -- base cell 33 [0, 3, 3, 3, 3, 0, 3], -- base cell 34 [0, 0, 3, 0, 3, 0, 3], -- base cell 35 [0, 0, 0, 3, 0, 0, 3], -- base cell 36 [0, 3, 0, 0, 0, 3, 3], -- base cell 37 [0, -1, 3, 0, 5, 2, 0], -- base cell 38 (pentagon) [0, 3, 0, 0, 3, 3, 0], -- base cell 39 [0, 3, 0, 0, 3, 3, 0], -- base cell 40 [0, 0, 0, 3, 5, 5, 0], -- base cell 41 [0, 0, 0, 3, 5, 5, 0], -- base cell 42 [0, 3, 3, 3, 0, 0, 0], -- base cell 43 [0, 0, 1, 3, 0, 0, 1], -- base cell 44 [0, 0, 3, 0, 0, 3, 3], -- base cell 45 [0, 0, 0, 3, 0, 3, 0], -- base cell 46 [0, 3, 3, 3, 0, 3, 0], -- base cell 47 [0, 3, 3, 3, 0, 3, 0], -- base cell 48 [0, -1, 3, 0, 5, 2, 0], -- base cell 49 (pentagon) [0, 0, 0, 3, 0, 0, 3], -- base cell 50 [0, 3, 0, 0, 0, 3, 3], -- base cell 51 [0, 0, 3, 0, 3, 0, 3], -- base cell 52 [0, 3, 3, 3, 0, 0, 0], -- base cell 53 [0, 0, 3, 0, 3, 0, 3], -- base cell 54 [0, 0, 3, 0, 0, 3, 3], -- base cell 55 [0, 3, 3, 3, 0, 0, 3], -- base cell 56 [0, 0, 0, 3, 0, 3, 0], -- base cell 57 [0, -1, 3, 0, 5, 2, 0], -- base cell 58 (pentagon) [0, 3, 3, 3, 3, 3, 0], -- base cell 59 [0, 3, 3, 3, 3, 3, 0], -- base cell 60 [0, 3, 3, 3, 3, 0, 3], -- base cell 61 [0, 3, 3, 3, 3, 0, 3], -- base cell 62 [0, -1, 3, 0, 5, 2, 0], -- base cell 63 (pentagon) [0, 0, 0, 3, 0, 0, 3], -- base cell 64 [0, 3, 3, 3, 0, 3, 0], -- base cell 65 [0, 3, 0, 0, 0, 3, 3], -- base cell 66 [0, 3, 0, 0, 3, 3, 0], -- base cell 67 [0, 3, 3, 3, 0, 0, 0], -- base cell 68 [0, 3, 0, 0, 3, 3, 0], -- base cell 69 [0, 0, 3, 0, 0, 3, 3], -- base cell 70 [0, 0, 0, 3, 0, 3, 0], -- base cell 71 [0, -1, 3, 0, 5, 2, 0], -- base cell 72 (pentagon) [0, 3, 3, 3, 0, 0, 3], -- base cell 73 [0, 3, 3, 3, 0, 0, 3], -- base cell 74 [0, 0, 0, 3, 0, 0, 3], -- base cell 75 [0, 3, 0, 0, 0, 3, 3], -- base cell 76 [0, 0, 0, 3, 0, 5, 0], -- base cell 77 [0, 3, 3, 3, 0, 0, 0], -- base cell 78 [0, 0, 1, 3, 1, 0, 1], -- base cell 79 [0, 0, 1, 3, 1, 0, 1], -- base cell 80 [0, 0, 3, 0, 3, 0, 3], -- base cell 81 [0, 0, 3, 0, 3, 0, 3], -- base cell 82 [0, -1, 3, 0, 5, 2, 0], -- base cell 83 (pentagon) [0, 0, 3, 0, 0, 3, 3], -- base cell 84 [0, 0, 0, 3, 0, 3, 0], -- base cell 85 [0, 3, 0, 0, 3, 3, 0], -- base cell 86 [0, 3, 3, 3, 3, 3, 0], -- base cell 87 [0, 0, 0, 3, 0, 5, 0], -- base cell 88 [0, 3, 3, 3, 3, 3, 0], -- base cell 89 [0, 0, 0, 0, 0, 0, 1], -- base cell 90 [0, 3, 3, 3, 0, 0, 0], -- base cell 91 [0, 0, 0, 3, 0, 5, 0], -- base cell 92 [0, 5, 0, 0, 5, 5, 0], -- base cell 93 [0, 0, 3, 0, 0, 3, 3], -- base cell 94 [0, 0, 0, 0, 0, 0, 1], -- base cell 95 [0, 0, 0, 3, 0, 3, 0], -- base cell 96 [0, -1, 3, 0, 5, 2, 0], -- base cell 97 (pentagon) [0, 3, 3, 3, 0, 0, 3], -- base cell 98 [0, 5, 0, 0, 5, 5, 0], -- base cell 99 [0, 0, 1, 3, 1, 0, 1], -- base cell 100 [0, 3, 3, 3, 0, 0, 3], -- base cell 101 [0, 3, 3, 3, 0, 0, 0], -- base cell 102 [0, 0, 1, 3, 1, 0, 1], -- base cell 103 [0, 3, 3, 3, 3, 3, 0], -- base cell 104 [0, 0, 0, 0, 0, 0, 1], -- base cell 105 [0, 0, 1, 0, 3, 5, 1], -- base cell 106 [0, -1, 3, 0, 5, 2, 0], -- base cell 107 (pentagon) [0, 5, 0, 0, 5, 5, 0], -- base cell 108 [0, 0, 1, 0, 4, 5, 1], -- base cell 109 [0, 3, 3, 3, 0, 0, 0], -- base cell 110 [0, 0, 0, 3, 0, 5, 0], -- base cell 111 [0, 0, 0, 3, 0, 5, 0], -- base cell 112 [0, 0, 1, 0, 2, 5, 1], -- base cell 113 [0, 0, 0, 0, 0, 0, 1], -- base cell 114 [0, 0, 1, 3, 1, 0, 1], -- base cell 115 [0, 5, 0, 0, 5, 5, 0], -- base cell 116 [0, -1, 1, 0, 3, 4, 2], -- base cell 117 (pentagon) [0, 0, 1, 0, 0, 5, 1], -- base cell 118 [0, 0, 0, 0, 0, 0, 1], -- base cell 119 [0, 5, 0, 0, 5, 5, 0], -- base cell 120 [0, 0, 1, 0, 1, 5, 1] -- base cell 121 ]; begin return arr_baseCellNeighbor60CCWRots[basecell +1][neighbor +1]; end; $body$ language plpgsql immutable; create or replace function NEW_DIGIT_II( currdigit integer, dir integer ) returns integer as $body$ declare arr_NEW_DIGIT_II integer[7][7] = array [ [0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/], [1 /*K_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 1 /*K_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 5 /*IK_AXES_DIGIT*/], [3 /*JK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/], [4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 1 /*K_AXES_DIGIT*/], [5 /*IK_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/], [6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 1 /*K_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/] ]; begin return arr_NEW_DIGIT_II[currdigit +1][dir +1]; end; $body$ language plpgsql immutable; create or replace function NEW_ADJUSTMENT_II( currdigit integer, dir integer ) returns integer as $body$ declare arr_NEW_ADJUSTMENT_II integer[7][7] = array [ [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 2 /*J_AXES_DIGIT*/], [0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 4 /*I_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/], [0 /*CENTER_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 2 /*J_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 6 /*IJ_AXES_DIGIT*/] ]; begin return arr_NEW_ADJUSTMENT_II[currdigit +1][dir +1]; end; $body$ language plpgsql immutable; create or replace function NEW_DIGIT_III( currdigit integer, dir integer ) returns integer as $body$ declare arr_NEW_DIGIT_III integer[7][7] = array [ [0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/], [1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/], [3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/], [4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/], [5 /*IK_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/], [6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 1 /*K_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/] ]; begin return arr_NEW_DIGIT_III[currdigit +1][dir +1]; end; $body$ language plpgsql immutable; create or replace function NEW_ADJUSTMENT_III( currdigit integer, dir integer ) returns integer as $body$ declare arr_NEW_ADJUSTMENT_III integer[7][7] = array [ [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/,1 /*K_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/,1 /*K_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 2 /*J_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 6 /*IJ_AXES_DIGIT*/], [0 /*CENTER_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/,4 /*I_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/,4 /*I_AXES_DIGIT*/], [0 /*CENTER_DIGIT*/,1 /*K_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/], [0 /*CENTER_DIGIT*/, 0 /*CENTER_DIGIT*/, 6 /*IJ_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/,4 /*I_AXES_DIGIT*/, 0 /*CENTER_DIGIT*/, 6 /*IJ_AXES_DIGIT*/] ]; begin return arr_NEW_ADJUSTMENT_III[currdigit +1][dir +1]; end; $body$ language plpgsql immutable; create or replace function DIRECTIONS( dir integer ) returns integer as $body$ declare arr_DIRECTIONS integer[6] = array [ 2 /*J_AXES_DIGIT*/, 3 /*JK_AXES_DIGIT*/, 1 /*K_AXES_DIGIT*/, 5 /*IK_AXES_DIGIT*/, 4 /*I_AXES_DIGIT*/, 6 /*IJ_AXES_DIGIT*/ ]; begin return arr_DIRECTIONS[dir +1]; end; $body$ language plpgsql immutable; create or replace function _geoToVec3d(lat double precision, lon double precision ) returns vec3d_t as $body$ declare clat double precision := cos( lat ); begin return (cos(lon) * clat, sin(lon) * clat, sin(lat) )::vec3d_t; end; $body$ language plpgsql immutable; create or replace function _pointSquareDist(v1 vec3d_t, v2 vec3d_t ) returns double precision as $body$ declare dx double precision := (v1.x - v2.x); dy double precision := (v1.y - v2.y); dz double precision := (v1.z - v2.z); begin return ((dx * dx) + (dy * dy) + ( dz * dz )); end; $body$ language plpgsql immutable; create or replace function _posAngleRads( rads double precision ) returns double precision as $body$ declare M_2PI double precision := 6.28318530717958647692528676655900576839433; tmp double precision := rads; begin if rads < 0.0 then tmp = rads + M_2PI; end if; if rads >= M_2PI then tmp = tmp - M_2PI; end if; return tmp; end; $body$ language plpgsql immutable; create or replace function _geoAzimuthRads( lat1 double precision, lon1 double precision, lat2 double precision, lon2 double precision ) returns double precision as $body$ select atan2(cos(lat2) * sin(lon2 - lon1), cos(lat1) * sin(lat2) - sin(lat1) * cos(lat2) * cos(lon2 - lon1)) $body$ language sql immutable; create or replace function constrainLng( lng double precision ) returns double precision as $body$ declare M_PI CONSTANT double precision := 3.14159265358979323846; begin while (lng > M_PI) loop lng = lng - (2 * M_PI); end loop; while (lng < -M_PI) loop lng = lng + (2 * M_PI); end loop; return lng; end; $body$ language plpgsql immutable; create or replace function _geoAzDistanceRads( in_lat double precision, in_lon double precision, az double precision, distance double precision, out lat double precision, out lon double precision) as $body$ declare EPSILON CONSTANT double precision := 0.0000000000000001; M_PI CONSTANT double precision := 3.14159265358979323846; M_PI_2 CONSTANT double precision := 1.5707963267948966; sinlat double precision; sinlon double precision; coslon double precision; begin if (distance < EPSILON) then lat = in_lat; lon = in_lon return; end if; az = _posAngleRads(az); if (az < EPSILON or abs(az - M_PI) < EPSILON) then if (az < EPSILON) then lat = in_lat + distance; else lat = in_lat - distance; end if; if (abs( lat - M_PI_2) < EPSILON) then lat = M_PI_2; lon = 0.0; elseif ( abs(lat + M_PI_2) < EPSILON) then lat = -M_PI_2; lon = 0.0; else lon = constrainLng(in_lon); end if; else sinlat = sin(in_lat) * cos(distance) + cos(in_lat) * sin(distance) * cos(az); if (sinlat > 1.0) then sinlat = 1.0; end if; if (sinlat < -1.0) then sinlat = -1.0; end if; lat = asin(sinlat); if ( abs( lat - M_PI_2) < EPSILON) then lat = M_PI_2; lon = 0.0; elseif (abs(lat + M_PI_2) < EPSILON) then lat = -M_PI_2; lon = 0.0; else sinlon = sin(az) * sin(distance) / cos(lat); coslon = (cos(distance) - sin(in_lat) * sin(lat)) / cos(in_lat) / cos(lat); if (sinlon > 1.0) then sinlon = 1.0; end if; if (sinlon < -1.0) then sinlon = -1.0; end if; if (coslon > 1.0) then sinlon = 1.0; end if; if (coslon < -1.0) then sinlon = -1.0; end if; lon = constrainLng(in_lon + atan2(sinlon, coslon)); end if; end if; end; $body$ language plpgsql immutable; create or replace function isResClassIII( res integer ) returns boolean as $body$ select (res % 2) = 1 $body$ language sql immutable; create or replace function _v2dMag( x double precision, y double precision ) returns double precision as $body$ select sqrt( x * x + y * y ) $body$ language sql immutable; create or replace function _v2dIntersect( p0_x double precision, p0_y double precision, p1_x double precision, p1_y double precision, p2_x double precision, p2_y double precision, p3_x double precision, p3_y double precision, out x double precision, out y double precision ) as $body$ declare s1_x double precision := p1_x - p0_x; s1_y double precision := p1_y - p0_y; s2_x double precision := p3_x - p2_x; s2_y double precision := p3_y - p2_y; t double precision := 0.0; begin t = (s2_x * (p0_y - p2_y) - s2_y * (p0_x - p2_x)) / (-s2_x * s1_y + s1_x * s2_y); x = p0_x + (t * s1_x); y = p0_y + (t * s1_y); end; $body$ language plpgsql immutable; create or replace function _v2dEquals( v1_x double precision, v1_y double precision, v2_x double precision, v2_y double precision ) returns boolean as $body$ select ( (v1_x = v2_x) and (v1_y = v2_y) ) $body$ language sql immutable; create or replace function _hex2dToGeo( x double precision, y double precision, face integer, res integer, substrate boolean, out lat double precision, out lon double precision ) as $body$ declare EPSILON CONSTANT double precision := 0.0000000000000001; M_AP7_ROT_RADS CONSTANT double precision := 0.333473172251832115336090755351601070065900389; M_SQRT7 CONSTANT double precision := 2.6457513110645905905016157536392604257102; RES0_U_GNOMONIC CONSTANT double precision := 0.38196601125010500003; r double precision := 0.0; theta double precision := 0.0; center record; g record; begin r = _v2dMag(x,y); center = (_faceCenterGeo(face)); if r < EPSILON then lat = center.lat; lon = center.lon; return; end if; theta = atan2( y, x ); r = r / power( M_SQRT7, res ); if substrate then r = r / 3.0; if (isResClassIII(res)) then r = r / M_SQRT7; end if; end if; r = atan( r * RES0_U_GNOMONIC ); if (not substrate) and isResClassIII(res) then theta = _posAngleRads(theta + M_AP7_ROT_RADS); end if; theta = _posAngleRads( (_faceAxesAzRadsCII(face)).v0 - theta ); g = _geoAzDistanceRads(center.lat, center.lon, theta, r); lat = g.lat; lon = g.lon; end; $body$ language plpgsql immutable; create or replace function _geoToHex2d( lat double precision, lon double precision, res integer, out face integer, out x double precision, out y double precision ) as $body$ declare NUM_ICOSA_FACES CONSTANT integer := 20; EPSILON CONSTANT double precision := 0.0000000000000001; M_AP7_ROT_RADS CONSTANT double precision := 0.333473172251832115336090755351601070065900389; RES0_U_GNOMONIC CONSTANT double precision := 0.38196601125010500003; M_SQRT7 CONSTANT double precision := 2.6457513110645905905016157536392604257102; v3d vec3d_t; face3d vec3d_t; sqd double precision := 9999999.0; sqdT double precision := 0.0; r double precision := 0.0; theta double precision := 0.0; center record; begin v3d = _geoToVec3d( lat, lon ); face = 0; for i in 0..(NUM_ICOSA_FACES -1) loop face3d = _faceCenterPoint( i ); sqdT = _pointSquareDist( face3d, v3d ); if sqdT < sqd then face = i; sqd = sqdT; end if; end loop; r = acos(1 - sqd / 2); if r < EPSILON then x = 0.0; y = 0.0; return; end if; center = (_faceCenterGeo(face)); theta = _posAngleRads( (_faceAxesAzRadsCII(face)).v0 - _posAngleRads( _geoAzimuthRads( center.lat, center.lon, lat, lon ) ) ); if isResClassIII(res) then theta = _posAngleRads(theta - M_AP7_ROT_RADS); end if; r = (tan(r) / RES0_U_GNOMONIC) * power( M_SQRT7, res ); x = r * cos(theta); y = r * sin(theta); end; $body$ language plpgsql immutable; create or replace function _ijkToHex2d( i integer, j integer, k integer, out x double precision, out y double precision) as $body$ declare M_SQRT3_2 CONSTANT double precision := 0.8660254037844386467637231707529361834714; i1 integer; j1 integer; begin i1 = i - k; j1 = j - k; x = i1 - 0.5 * j1; y = j1 * M_SQRT3_2; end; $body$ language plpgsql immutable; create or replace function _ijkMatches( i1 integer, j1 integer, k1 integer, i2 integer, j2 integer, k2 integer ) returns boolean as $body$ select ( i1 = i2 and j1 = j2 and k1 = k2 ) $body$ language sql immutable; create or replace function _ijkAdd( i1 integer, j1 integer, k1 integer, i2 integer, j2 integer, k2 integer, out i integer, out j integer, out k integer ) as $body$ declare begin i = i1 + i2; j = j1 + j2; k = k1 + k2; end; $body$ language plpgsql immutable; create or replace function _ijkSub( i1 integer, j1 integer, k1 integer, i2 integer, j2 integer, k2 integer, out i integer, out j integer, out k integer ) as $body$ declare begin i = i1 - i2; j = j1 - j2; k = k1 - k2; end; $body$ language plpgsql immutable; create or replace function _ijkScale( inout i integer, inout j integer, inout k integer, factor integer) as $body$ declare begin i = i * factor; j = j * factor; k = k * factor; end; $body$ language plpgsql immutable; create or replace function _ijkId( inout i integer, inout j integer, inout k integer ) as $body$ select i,j,k $body$ language sql immutable; create or replace function _ijkNormalize( inout i integer, inout j integer, inout k integer ) as $body$ declare min integer; begin if (i < 0) then j = j - i; k = k - i; i = 0; end if; if (j < 0) then i = i - j; k = k - j; j = 0; end if; if (k < 0) then i = i - k; j = j - k; k = 0; end if; min = i; if (j < min) then min = j; end if; if (k < min) then min = k; end if; if (min > 0) then i = i - min; j = j - min; k = k - min; end if; end; $body$ language plpgsql immutable; create or replace function _upAp7( inout i integer, inout j integer, inout k integer ) as $body$ declare i1 integer := i - k; j1 integer := j - k; r record; begin i = round((3 * i1 - j1) / 7.0); j = round((i1 + 2 * j1) / 7.0); k = 0; r = _ijkNormalize( i, j, k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _upAp7r( inout i integer, inout j integer, inout k integer ) as $body$ declare i1 integer := i - k; j1 integer := j - k; r record; begin i = round((2 * i1 + j1) / 7.0); j = round((3 * j1 - i1) / 7.0); k = 0; r = _ijkNormalize( i, j, k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _downAp7( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 3,0,1, i); jvec = _ijkScale( 1,3,0, j); kvec = _ijkScale( 0,1,3, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _downAp7r( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 3,1,0, i); jvec = _ijkScale( 0,3,1, j); kvec = _ijkScale( 1,0,3, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _downAp3( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 2,0,1, i); jvec = _ijkScale( 1,2,0, j); kvec = _ijkScale( 0,1,2, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _downAp3r( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 2,1,0, i); jvec = _ijkScale( 0,2,1, j); kvec = _ijkScale( 1,0,2, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _ijkRotate60ccw( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 1, 1, 0, i); jvec = _ijkScale( 0, 1, 1, j); kvec = _ijkScale( 1, 0, 1, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _ijkRotate60cw( inout i integer, inout j integer, inout k integer ) as $body$ declare ivec record; jvec record; kvec record; r record; begin ivec = _ijkScale( 1, 0, 1, i); jvec = _ijkScale( 1, 1, 0, j); kvec = _ijkScale( 0, 1, 1, k); r = _ijkNormalize( ivec.i + jvec.i + kvec.i, ivec.j + jvec.j + kvec.j, ivec.k + jvec.k + kvec.k ); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function UNIT_VECS( direction integer, out i integer, out j integer, out k integer ) as $body$ declare _UNIT_VECS integer [][3] = array [ [0, 0, 0], -- direction 0 [0, 0, 1], -- direction 1 [0, 1, 0], -- direction 2 [0, 1, 1], -- direction 3 [1, 0, 0], -- direction 4 [1, 0, 1], -- direction 5 [1, 1, 0] -- direction 6 ]; begin direction = direction + 1; i = _UNIT_VECS[direction][1]; j = _UNIT_VECS[direction][2]; k = _UNIT_VECS[direction][3]; end; $body$ language plpgsql immutable; create or replace function _unitIjkToDigit( i integer, j integer, k integer ) returns integer as $body$ declare INVALID_DIGIT CONSTANT integer := 7; NUM_DIGITS CONSTANT integer := 7; CENTER_DIGIT integer := 0; c record; e record; begin c = _ijkNormalize( i,j,k ); for i in CENTER_DIGIT..(NUM_DIGITS - 1) loop e = UNIT_VECS( i ); if _ijkMatches(c.i,c.j,c.k,e.i,e.j,e.k) then return i; end if; end loop; return INVALID_DIGIT; end; $body$ language plpgsql immutable; create or replace function _neighbor( inout i integer, inout j integer, inout k integer, direction integer) as $body$ declare NUM_DIGITS CONSTANT integer := 7; CENTER_DIGIT integer := 0; r record; e record; begin if direction > CENTER_DIGIT and direction < NUM_DIGITS then e = UNIT_VECS( direction ); r = _ijkAdd(i,j,k,e.i,e.j,e.k); r = _ijkNormalize(r.i,r.j,r.k); i = r.i; j = r.j; k = r.k; end if; end; $body$ language plpgsql immutable; create or replace function _hex2dToCoordIJK( x double precision, y double precision, out i integer, out j integer, out k integer ) as $body$ declare a1 double precision; a2 double precision; x1 double precision; x2 double precision; m1 integer; m2 integer; r1 double precision; r2 double precision; M_SIN60 CONSTANT double precision := 0.8660254037844386467637231707529361834714; r record; begin k = 0; a1 = abs(x); a2 = abs(y); -- RAISE NOTICE 'a1(%) a2(%)', a1, a2; x2 = a2 / M_SIN60; x1 = a1 + x2 / 2.0; -- RAISE NOTICE 'x1(%) x2(%)', x1, x2; m1 = trunc(x1); m2 = trunc(x2); -- RAISE NOTICE 'm1(%) m2(%)', m1, m2; r1 = x1 - m1; r2 = x2 - m2; -- RAISE NOTICE 'r1(%) r2(%)', r1, r2; if (r1 < 0.5) then if (r1 < 1.0 / 3.0) then if (r2 < (1.0 + r1) / 2.0) then i = m1; j = m2; else i = m1; j = m2 + 1; end if; else if (r2 < (1.0 - r1)) then j = m2; else j = m2 + 1; end if; if (((1.0 - r1) <= r2) and (r2 < (2.0 * r1))) then i = m1 + 1; else i = m1; end if; end if; else if (r1 < 2.0 / 3.0) then if (r2 < (1.0 - r1)) then j = m2; else j = m2 + 1; end if; if (((2.0 * r1 - 1.0) < r2) and ( r2 < (1.0 - r1))) then i = m1; else i = m1 + 1; end if; else if (r2 < (r1 / 2.0)) then i = m1 + 1; j = m2; else i = m1 + 1; j = m2 + 1; end if; end if; end if; if ( x < 0.0 ) then if ((j % 2) = 0) then i = i - (2.0 * (i - (j / 2))); else i = i - (2.0 * (i - ((j + 1) / 2)) + 1); end if; end if; if ( y < 0.0 ) then i = i - (2 * j + 1) / 2; j = -1 * j; end if; -- RAISE NOTICE 'i(%) j(%) k(%)', i, j, k; r = _ijkNormalize(i,j,k); i = r.i; j = r.j; k = r.k; end; $body$ language plpgsql immutable; create or replace function _geoToFaceIjk(lat double precision, lon double precision, res integer) returns face_ijk_t as $body$ declare h2d record; coord record; begin h2d = _geoToHex2d( lat, lon, res ); -- fills r.face, r.x, r.y coord = _hex2dToCoordIJK(h2d.x, h2d.y); return (h2d.face,coord.i,coord.j,coord.k); end; $body$ language plpgsql immutable; create or replace function _geoToFaceIjkDeg(lat double precision, lon double precision, res integer) returns face_ijk_t as $body$ select _geoToFaceIjk( radians(lat), radians(lon), res ) $body$ language sql immutable; create or replace function H3_GET_MODE( h H3Index ) returns integer as -- H3_MODE_OFFSET = 59, H3_MODE_MASK = 8646911284551352320 $body$ select ( (h & (8646911284551352320)) >> 59 )::integer $body$ language sql immutable; create or replace function H3_SET_MODE( h H3Index, mode integer ) returns H3Index as -- H3_MODE_OFFSET = 59, H3_MODE_MASK = 8646911284551352320 $body$ select (( h & (~8646911284551352320)) | ( ( mode::bigint & 15) << 59 ))::H3Index $body$ language sql immutable; create or replace function H3_GET_RESOLUTION( h H3Index ) returns integer as -- H3_RES_OFFSET = 52, H3_RES_MASK = 67553994410557440 $body$ select ( (h & (67553994410557440)) >> 52 )::integer $body$ language sql immutable; create or replace function H3_SET_RESOLUTION( h H3Index, res integer ) returns H3Index as -- H3_RES_OFFSET = 52, H3_RES_MASK = 67553994410557440 $body$ select (( h & (~67553994410557440)) | ( ( res::bigint & 15) << 52 ))::H3Index $body$ language sql immutable; create or replace function H3_GET_BASE_CELL( h H3Index ) returns integer as -- H3_BC_OFFSET = 45, H3_BC_MASK = 4468415255281664 $body$ select ( (h & (4468415255281664)) >> 45 )::integer $body$ language sql immutable; create or replace function H3_SET_BASE_CELL( h H3Index, bc integer ) returns H3Index as -- H3_BC_OFFSET = 45, H3_BC_MASK = 4468415255281664 $body$ select (( h & (~4468415255281664)) | ( ( bc::bigint & 127) << 45 ))::H3Index $body$ language sql immutable; create or replace function H3_GET_INDEX_DIGIT( h H3Index, res integer ) returns integer as -- H3_PER_DIGIT_OFFSET = 3, H3_DIGIT_MASK = 7, MAX_H3_RES = 15 , res = 1,..,15 $body$ select ( ( h >> ( (15 - res) * 3 ) ) & 7 )::integer $body$ language sql immutable; create or replace function H3_SET_INDEX_DIGIT( h H3Index, res integer, digit integer ) returns H3Index as -- H3_PER_DIGIT_OFFSET = 3, H3_DIGIT_MASK = 7, MAX_H3_RES = 15 , res = 1,..,15 $body$ select (( h & (~ (7::bigint << ((15 - res) * 3)))) | ( (digit::bigint & 7) << ((15 - res) * 3)))::H3Index $body$ language sql immutable; create or replace function h3GetResolution( h H3Index ) returns integer as $body$ select H3_GET_RESOLUTION(h) $body$ language sql immutable; create or replace function h3GetBaseCell( h H3Index) returns integer as $body$ select H3_GET_BASE_CELL(h) $body$ language sql immutable; create or replace function h3IsResClassIII( h H3Index) returns boolean as $body$ select ( H3_GET_RESOLUTION(h) % 2 ) != 0 $body$ language sql immutable; create or replace function h3IsParent( parent H3Index, child H3Index ) returns boolean as -- H3_RES_MASK = 67553994410557440 $body$ select ( (( parent & (~67553994410557440)) >> ((15 - H3_GET_RESOLUTION(parent)) * 3 ) ) = (( child & (~67553994410557440)) >> ((15 - H3_GET_RESOLUTION(parent)) * 3 ) ) ) $body$ language sql immutable; create or replace function h3IsValid( h H3Index ) returns boolean as $body$ declare H3_HEXAGON_MODE CONSTANT integer := 1; NUM_BASE_CELLS CONSTANT integer := 122; NUM_DIGITS CONSTANT integer := 7; CENTER_DIGIT CONSTANT integer := 0; INVALID_DIGIT CONSTANT integer := 7; MAX_H3_RES CONSTANT integer := 15; baseCell integer; res integer; digit integer; begin if (H3_GET_MODE(h) != H3_HEXAGON_MODE) then return false; end if; baseCell = H3_GET_BASE_CELL(h); if ( (baseCell < 0) or (baseCell >= NUM_BASE_CELLS)) then return false; end if; res = H3_GET_RESOLUTION(h); if ( (res < 0) or (res > MAX_H3_RES)) then return false; end if; for r in 1..res loop digit = H3_GET_INDEX_DIGIT(h, r); if ( (digit < CENTER_DIGIT) or (digit >= NUM_DIGITS)) then return false; end if; end loop; for r in (res + 1)..MAX_H3_RES loop digit = H3_GET_INDEX_DIGIT(h, r); if (digit != INVALID_DIGIT) then return false; end if; end loop; return true; end; $body$ language plpgsql immutable; create or replace function _rotate60ccw(direction integer) returns integer as $body$ select case direction when 1 then 5 when 5 then 4 when 4 then 6 when 6 then 2 when 2 then 3 when 3 then 1 else direction end $body$ language sql immutable; create or replace function _rotate60cw(direction integer) returns integer as $body$ select case direction when 1 then 3 when 3 then 2 when 2 then 6 when 6 then 4 when 4 then 5 when 5 then 1 else direction end $body$ language sql immutable; create or replace function _h3LeadingNonZeroDigit(h H3Index) returns integer as $body$ declare digit integer; CENTER_DIGIT CONSTANT integer := 0; begin for r in 1..H3_GET_RESOLUTION(h) loop digit = H3_GET_INDEX_DIGIT(h, r); if digit != CENTER_DIGIT then return digit; end if; end loop; return CENTER_DIGIT; end; $body$ language plpgsql immutable; create or replace function _h3Rotate60cw( h H3Index) returns H3Index as $body$ declare begin for r in 1..H3_GET_RESOLUTION(h) loop h = H3_SET_INDEX_DIGIT(h, r, _rotate60cw( H3_GET_INDEX_DIGIT(h, r) ) ); end loop; return h; end; $body$ language plpgsql immutable; create or replace function _h3Rotate60ccw( h H3Index) returns H3Index as $body$ declare begin for r in 1..H3_GET_RESOLUTION(h) loop h = H3_SET_INDEX_DIGIT(h, r, _rotate60ccw( H3_GET_INDEX_DIGIT(h, r) ) ); end loop; return h; end; $body$ language plpgsql immutable; create or replace function _h3RotatePent60ccw( h H3Index) returns H3Index as $body$ declare K_AXES_DIGIT CONSTANT integer := 1; foundFirstNonZeroDigit integer := 0; res integer; digit integer; begin res = H3_GET_RESOLUTION(h); for r in 1..res loop digit = _rotate60ccw( H3_GET_INDEX_DIGIT(h, r)); h = H3_SET_INDEX_DIGIT(h, r, digit ); if ( foundFirstNonZeroDigit = 0 and digit != 0) then foundFirstNonZeroDigit = 1; if (_h3LeadingNonZeroDigit(h) = K_AXES_DIGIT) then h = _h3Rotate60ccw(h); end if; end if; end loop; return h; end; $body$ language plpgsql immutable; create or replace function _h3RotatePent60cw( h H3Index) returns H3Index as $body$ declare K_AXES_DIGIT CONSTANT integer := 1; foundFirstNonZeroDigit integer := 0; res integer; digit integer; begin res = H3_GET_RESOLUTION(h); for r in 1..res loop digit = _rotate60cw( H3_GET_INDEX_DIGIT(h, r)); h = H3_SET_INDEX_DIGIT(h, r, digit ); if ( foundFirstNonZeroDigit = 0 and digit != 0) then foundFirstNonZeroDigit = 1; if (_h3LeadingNonZeroDigit(h) = K_AXES_DIGIT) then h = _h3Rotate60cw(h); end if; end if; end loop; return h; end; $body$ language plpgsql immutable; create or replace function _faceIjkToH3( fijk face_ijk_t, res integer) returns h3index as $body$ declare MAX_FACE_COORD CONSTANT integer := 2; K_AXES_DIGIT CONSTANT integer := 1; H3_INVALID_INDEX CONSTANT h3index := 0; H3_INIT CONSTANT H3Index := 35184372088831; -- 0000000000000000000111111111111111111111111111111111111111111111 H3_HEXAGON_MODE CONSTANT integer := 1; h H3Index := H3_INIT; ijk record; lastIJK record; lastCenter record; diff record; baseCell integer; rBaseCell record; numRots integer; begin h = H3_SET_RESOLUTION( H3_SET_MODE(h, H3_HEXAGON_MODE), res ); if ( res = 0 ) then if ( fijk.i > MAX_FACE_COORD or fijk.j > MAX_FACE_COORD or fijk.k > MAX_FACE_COORD ) then return H3_INVALID_INDEX; end if; return H3_SET_BASE_CELL(h, _faceIjkToBaseCell(fijk.face,fijk.i, fijk.j, fijk.k )); end if; -- FaceIJK fijkBC = *fijk; ijk = _ijkId( fijk.i, fijk.j, fijk.k ); for r in reverse (res - 1)..0 loop lastIJK = ijk; if( isResClassIII( r+1 ) ) then ijk = _upAp7(ijk.i,ijk.j,ijk.k); lastCenter = _downAp7( ijk.i, ijk.j, ijk.k ); else ijk = _upAp7r(ijk.i,ijk.j,ijk.k); lastCenter = _downAp7r( ijk.i, ijk.j, ijk.k ); end if; diff = _ijkSub( lastIJK.i, lastIJK.j, lastIJK.k, lastCenter.i, lastCenter.j, lastCenter.k ); diff = _ijkNormalize(diff.i, diff.j, diff.k ); h = H3_SET_INDEX_DIGIT(h, r + 1, _unitIjkToDigit(diff.i,diff.j,diff.k)); end loop; if ( ijk.i > MAX_FACE_COORD or ijk.j > MAX_FACE_COORD or ijk.k > MAX_FACE_COORD ) then return H3_INVALID_INDEX; end if; baseCell = _faceIjkToBaseCell( fijk.face, ijk.i, ijk.j, ijk.k ); h = H3_SET_BASE_CELL(h, baseCell); numRots = _faceIjkToBaseCellCCWrot60( fijk.face, ijk.i, ijk.j, ijk.k ); rBaseCell = baseCellData( baseCell ); if rBaseCell.pentagon then if _h3LeadingNonZeroDigit(h) = K_AXES_DIGIT then if _baseCellIsCwOffset( baseCell, fijk.face ) then h = _h3Rotate60cw(h); else h = _h3Rotate60ccw(h); end if; end if; for i in 0..(numRots-1) loop h = _h3RotatePent60ccw(h); end loop; else for i in 0..(numRots-1) loop h = _h3Rotate60ccw(h); end loop; end if; return h; end; $body$ language plpgsql immutable; create or replace function _h3ToFaceIjkWithInitializedFijk( h h3index, inout fijk face_ijk_t, out possible_overage boolean ) as $body$ declare res integer; baseCell integer; rBaseCell record; ijk record; begin possible_overage = true; baseCell = H3_GET_BASE_CELL(h); rBaseCell = baseCellData( baseCell ); res = H3_GET_RESOLUTION(h); if ( (not rBaseCell.pentagon) and ( (res = 0) or ( fijk.i = 0 and fijk.j = 0 and fijk.k = 0 ) ) ) then possible_overage = false; end if; for r in 1..res loop --RAISE NOTICE 'a % fijk(%)', r,fijk; if ( isResClassIII(r) ) then ijk = _downAp7(fijk.i,fijk.j,fijk.k); fijk.i = ijk.i; fijk.j = ijk.j; fijk.k = ijk.k; else ijk = _downAp7r(fijk.i,fijk.j,fijk.k); fijk.i = ijk.i; fijk.j = ijk.j; fijk.k = ijk.k; end if; --RAISE NOTICE 'b % fijk(%) %', r,fijk, H3_GET_INDEX_DIGIT(h, r); ijk = _neighbor(fijk.i,fijk.j,fijk.k, H3_GET_INDEX_DIGIT(h, r)); fijk.i = ijk.i; fijk.j = ijk.j; fijk.k = ijk.k; end loop; end; $body$ language plpgsql immutable; create or replace function _adjustOverageClassII( inout fijk face_ijk_t, res integer, pentleading4 boolean, substrate boolean, out overage integer ) as $body$ declare CENTER CONSTANT integer := 0; /** Center faceNeighbors table direction */ IJ CONSTANT integer := 1; /** IJ quadrant faceNeighbors table direction */ KI CONSTANT integer := 2; /** KI quadrant faceNeighbors table direction */ JK CONSTANT integer := 3; /** JK quadrant faceNeighbors table direction */ maxDim integer; unitScale integer; fijkOrient record; tmpIJK record; begin overage = 0; maxDim = maxDimByCIIres(res); if( substrate ) then maxDim = 3 * maxDim; end if; if ( substrate and ( fijk.i + fijk.j + fijk.k ) = maxDim ) then overage = 1; elseif ( ( fijk.i + fijk.j + fijk.k ) > maxDim ) then overage = 2; if (fijk.k > 0 ) then if ( fijk.j > 0 ) then -- jk "quadrant" fijkOrient = faceNeighbors(fijk.face,JK); else -- ik "quadrant" fijkOrient = faceNeighbors(fijk.face,KI); if (pentLeading4) then tmpIJK = _ijkSub(fijk.i,fijk.j,fijk.k,maxDim,0,0); tmpIJK = _ijkRotate60cw(tmpIJK.i,tmpIJK.j,tmpIJK.k); tmpIJK = _ijkAdd(tmpIJK.i,tmpIJK.j,tmpIJK.k,maxDim,0,0); fijk.i = tmpIJK.i; fijk.j = tmpIJK.j; fijk.k = tmpIJK.k; end if; end if; else -- ij "quadrant" fijkOrient = faceNeighbors(fijk.face,IJ); end if; fijk.face = fijkOrient.face; for i in 0..(fijkOrient.ccwrot60 - 1) loop tmpIJK = _ijkRotate60ccw(fijk.i,fijk.j,fijk.k); fijk.i = tmpIJK.i; fijk.j = tmpIJK.j; fijk.k = tmpIJK.k; end loop; unitScale = unitScaleByCIIres(res); if (substrate) then unitScale = 3* unitScale; end if; tmpIJK = _ijkScale( fijkOrient.i, fijkOrient.j, fijkOrient.k, unitScale ); tmpIJK = _ijkNormalize( fijk.i + tmpIJK.i, fijk.j + tmpIJK.j, fijk.k + tmpIJK.k ); fijk.i = tmpIJK.i; fijk.j = tmpIJK.j; fijk.k = tmpIJK.k; if ( substrate and ( fijk.i + fijk.j + fijk.k ) = maxDim ) then overage = 1; end if; end if; end; $body$ language plpgsql immutable; create or replace function _h3ToFaceIjk( h h3index, out fijk face_ijk_t ) as $body$ declare baseCell integer; rBaseCell record; ijk record; r1 record; r1a record; r2 record; r2a record; res integer; pentLeading4 boolean; begin baseCell = H3_GET_BASE_CELL(h); rBaseCell = baseCellData( baseCell ); if ( rBaseCell.pentagon and _h3LeadingNonZeroDigit(h) = 5) then h = _h3Rotate60cw(h); end if; fijk.face = rBaseCell.face; fijk.i = rBaseCell.i; fijk.j = rBaseCell.j; fijk.k = rBaseCell.k; r1 = _h3ToFaceIjkWithInitializedFijk( h, fijk ); --RAISE NOTICE 'r1(%)', r1; --RAISE NOTICE 'fijk(%)', fijk; r1a = r1.fijk; fijk.i = r1a.i; fijk.j = r1a.j; fijk.k = r1a.k; -- r1.fijk kept for backup if ( not r1.possible_overage ) then return; end if; res = H3_GET_RESOLUTION(h); if ( isResClassIII(res) ) then ijk = _downAp7r(fijk.i,fijk.j,fijk.k); fijk.i = ijk.i; fijk.j = ijk.j; fijk.k = ijk.k; res = res + 1; end if; pentLeading4 = ( rBaseCell.pentagon and _h3LeadingNonZeroDigit(h) = 4 ); r2 = _adjustOverageClassII( fijk, res, pentLeading4, false ); --RAISE NOTICE 'r2(%)', r2; --RAISE NOTICE 'fijk(%) res(%) p(%)', fijk, res,pentLeading4; r2a = r2.fijk; fijk.face = r2a.face; fijk.i = r2a.i; fijk.j = r2a.j; fijk.k = r2a.k; if ( r2.overage > 0 ) then if ( rBaseCell.pentagon ) then -- for abc in 1..3 /*dbg*/ loop r2 = _adjustOverageClassII( fijk, res, false, false ); -- RAISE NOTICE '%, fijk(%) res(%) r2(%)', abc, fijk, res, r2; r2a = r2.fijk; fijk.face = r2a.face; fijk.i = r2a.i; fijk.j = r2a.j; fijk.k = r2a.k; if ( r2.overage = 0 ) then exit; end if; end loop; end if; if (res != H3_GET_RESOLUTION(h)) then r2 = _upAp7r( fijk.i, fijk.j, fijk.k ); fijk.i = r2.i; fijk.j = r2.j; fijk.k = r2.k; end if; elseif ( res != H3_GET_RESOLUTION(h) ) then fijk.i = r1a.i; fijk.j = r1a.j; fijk.k = r1a.k; -- r1.fijk kept for backup end if; end; $body$ language plpgsql immutable; create or replace function geoToH3( lat double precision, lon double precision, res integer) returns h3index as $body$ select case when ( (res < 0) or ( res > 15 /*MAX_H3_RES*/) ) then 0::h3index /* H3_INVALID_INDEX CONSTANT */ else _faceIjkToH3( _geoToFaceIjk(lat, lon, res) , res) end $body$ language sql immutable; create or replace function geoToH3Deg_p( c geometry, res integer) returns h3index as $body$ select geoToH3(radians(st_y(c)), radians(st_x(c)), res) $body$ language sql immutable; create table if not exists h3cache ( h3 h3index not null, res integer not null, geo geometry not null ); create index if not exists idx_h3cache_geo on h3cache using gist (geo); create index if not exists idx_h3cache_res on h3cache ( res ); alter table h3cache drop constraint if exists pk_h3; create index if not exists idx_h3cache_h3 on h3cache ( h3 ); create or replace function geoToH3Deg( c geometry, res integer) returns h3index as $body$ declare h H3Index; hg geometry; begin select t.h3 into h from h3cache t where t.geo && c and st_intersects(t.geo,c) and t.res = geoToH3Deg.res limit 1; if( h notnull ) then return h; end if; h = geoToH3Deg_p(c,res); hg = h3ToGeoBoundaryDeg_p( h ); insert into h3cache ( h3, res, geo ) values( h,res, hg ); return h; end; $body$ language plpgsql volatile; create or replace function h3IsPentagon( h H3Index ) returns boolean as $body$ declare baseCell integer; rBaseCell record; begin baseCell = H3_GET_BASE_CELL(h); rBaseCell = baseCellData( baseCell ); return ( rBaseCell.pentagon and _h3LeadingNonZeroDigit(h) = 0); end; $body$ language plpgsql immutable; create or replace function _faceIjkPentToGeoBoundary( h face_ijk_t, res integer ) returns geometry as $body$ declare M_SQRT3_2 CONSTANT double precision := 0.8660254037844386467637231707529361834714; NUM_PENT_VERTS CONSTANT integer := 5; verts integer [5][3]; adjRes integer; centerIJK face_ijk_t; r record; lastFijk face_ijk_t; fijkVerts face_ijk_t[5]; cp face_ijk_t; fijk face_ijk_t; tmpFijk face_ijk_t; g_numVers integer := 0; v integer; pentLeading4 boolean; overage integer; r1 record; r1a record; orig2d0 record; orig2d1 record; currentToLastDir integer; fijkOrient record; tmpIJK record; transVec record; maxDim integer; edge0 double precision[2]; edge1 double precision[2]; inter record; arr_pts geometry[]; pnt record; vec record; begin -- RAISE NOTICE 'IN-->, h(%) res(%)', h, res; if (isResClassIII(res)) then verts = array [ [5, 4, 0], -- 0 [1, 5, 0], -- 1 [0, 5, 4], -- 2 [0, 1, 5], -- 3 [4, 0, 5] -- 4 ]; else verts = array [ [2, 1, 0], -- 0 [1, 2, 0], -- 1 [0, 2, 1], -- 2 [0, 1, 2], -- 3 [1, 0, 2] -- 4 ]; end if; centerIJK = h; r = _downAp3( centerIJK.i, centerIJK.j, centerIJK.k ); r = _downAp3r( r.i, r.j, r.k ); centerIJK.i = r.i; centerIJK.j = r.j; centerIJK.k = r.k; adjRes = res; if (isResClassIII(res)) then r = _downAp7r( centerIJK.i, centerIJK.j, centerIJK.k ); centerIJK.i = r.i; centerIJK.j = r.j; centerIJK.k = r.k; adjRes = adjRes + 1; end if; for i in 1..NUM_PENT_VERTS loop cp.face = centerIJK.face; r = _ijkNormalize( centerIJK.i + verts[i][1], centerIJK.j + verts[i][2], centerIJK.k + verts[i][3] ); cp.i = r.i; cp.j = r.j; cp.k = r.k; fijkVerts[i] = cp; end loop; g_numVers = 0; for vert in 0..NUM_PENT_VERTS loop v = vert % NUM_PENT_VERTS; fijk = fijkVerts[ v+1 ]; pentLeading4 = false; r1 = _adjustOverageClassII( fijk, adjRes, pentLeading4, true ); r1a = r1.fijk; fijk.face = r1a.face; fijk.i = r1a.i; fijk.j = r1a.j; fijk.k = r1a.k; if ( r1.overage = 2 ) then -- for abc in 1..5 /*dbg*/ loop r1 = _adjustOverageClassII( fijk, adjRes, false, true ); -- RAISE NOTICE '%, fijk(%) adjRes(%) r1(%)', abc, fijk, adjRes, r1; r1a = r1.fijk; fijk.face = r1a.face; fijk.i = r1a.i; fijk.j = r1a.j; fijk.k = r1a.k; if ( r1.overage != 2 ) then exit; end if; end loop; end if; if ( isResClassIII(res) and vert > 0) then tmpFijk = fijk; orig2d0 = _ijkToHex2d(lastFijk.i, lastFijk.j, lastFijk.k ); currentToLastDir = adjacentFaceDir(tmpFijk.face,lastFijk.face); fijkOrient = faceNeighbors(tmpFijk.face,currentToLastDir); tmpFijk.face = fijkOrient.face; --RAISE NOTICE '%, fijkOrient(%) adjRes(%)', 1, fijkOrient, adjRes; for i in 0..(fijkOrient.ccwRot60 - 1) loop tmpIJK = _ijkRotate60ccw(tmpFijk.i,tmpFijk.j,tmpFijk.k); tmpFijk.i = tmpIJK.i; tmpFijk.j = tmpIJK.j; tmpFijk.k = tmpIJK.k; end loop; transVec = _ijkScale(fijkOrient.i, fijkOrient.j, fijkOrient.k, unitScaleByCIIres(adjRes) * 3); transVec = _ijkNormalize(transVec.i + tmpFijk.i, transVec.j + tmpFijk.j, transVec.k + tmpFijk.k ); tmpFijk.i = transVec.i; tmpFijk.j = transVec.j; tmpFijk.k = transVec.k; orig2d1 = _ijkToHex2d(tmpFijk.i, tmpFijk.j, tmpFijk.k ); maxDim = maxDimByCIIres(adjRes); case adjacentFaceDir(tmpFijk.face,fijk.face) when 1 then --IJ edge0 = array [3.0 * maxDim, 0.0]; edge1 = array [-1.5 * maxDim, 3.0 * M_SQRT3_2 * maxDim]; when 3 then --JK edge0 = array [-1.5 * maxDim, 3.0 * M_SQRT3_2 * maxDim]; edge1 = array [-1.5 * maxDim, -3.0 * M_SQRT3_2 * maxDim]; when 2 then --KI edge0 = array [-1.5 * maxDim, -3.0 * M_SQRT3_2 * maxDim]; edge1 = array [3.0 * maxDim, 0.0]; else RAISE EXCEPTION 'adjacentFaceDir(% ,%) not in [1,2,3]', tmpFijk.face, fijk.face; end case; inter = _v2dIntersect(orig2d0.x,orig2d0.y, orig2d1.x,orig2d1.y, edge0[1], edge0[2], edge1[1], edge1[2] ); pnt = _hex2dToGeo(inter.x, inter.y,tmpFijk.face, adjRes, true ); arr_pts = array_append( arr_pts, st_point(pnt.lon,pnt.lat)); g_numVers = g_numVers+1; --formalism end if; if ( vert < NUM_PENT_VERTS) then vec = _ijkToHex2d(fijk.i, fijk.j, fijk.k ); pnt = _hex2dToGeo(vec.x, vec.y, fijk.face, adjRes, true ); arr_pts = array_append( arr_pts, st_point(pnt.lon,pnt.lat)); g_numVers = g_numVers+1; --formalism end if; lastFijk = fijk; end loop; return st_makepolygon( st_makeline( array_append( arr_pts, arr_pts[1] ) ) ); -- append first point to close linestring for polygon end; $body$ language plpgsql immutable; create or replace function _faceIjkToGeoBoundary( h face_ijk_t, res integer, pentagon boolean) returns geometry as $body$ declare M_SQRT3_2 CONSTANT double precision := 0.8660254037844386467637231707529361834714; NUM_HEX_VERTS CONSTANT integer := 6; verts integer [6][3]; adjRes integer; centerIJK face_ijk_t; r record; r1 record; r1a record; orig2d0 record; orig2d1 record; fijkVerts face_ijk_t[6]; cp face_ijk_t; fijk face_ijk_t; lastFace integer; lastOverage integer; g_numVers integer; lastVfijk face_ijk_t; vfijk face_ijk_t; lastV integer; isIntersectionAtVertex boolean; v integer; pentLeading4 boolean; overage integer; maxDim integer; edge0 double precision[2]; edge1 double precision[2]; face2 integer; inter record; arr_pts geometry[]; pnt record; vec record; --aFlag boolean := false; begin if pentagon then return _faceIjkPentToGeoBoundary( h, res); end if; if (isResClassIII(res)) then verts = array [ [5, 4, 0], -- 0 [1, 5, 0], -- 1 [0, 5, 4], -- 2 [0, 1, 5], -- 3 [4, 0, 5], -- 4 [5, 0, 1] -- 5 ]; else verts = array [ [2, 1, 0], -- 0 [1, 2, 0], -- 1 [0, 2, 1], -- 2 [0, 1, 2], -- 3 [1, 0, 2], -- 4 [2, 0, 1] -- 5 ]; end if; centerIJK = h; r = _downAp3( centerIJK.i, centerIJK.j, centerIJK.k ); r = _downAp3r( r.i, r.j, r.k ); centerIJK.i = r.i; centerIJK.j = r.j; centerIJK.k = r.k; adjRes = res; if (isResClassIII(res)) then r = _downAp7r( centerIJK.i, centerIJK.j, centerIJK.k ); centerIJK.i = r.i; centerIJK.j = r.j; centerIJK.k = r.k; adjRes = adjRes + 1; end if; for i in 1..NUM_HEX_VERTS loop cp.face = centerIJK.face; r = _ijkNormalize( centerIJK.i + verts[i][1], centerIJK.j + verts[i][2], centerIJK.k + verts[i][3] ); cp.i = r.i; cp.j = r.j; cp.k = r.k; fijkVerts[i] = cp; end loop; g_numVers = 0; lastFace = -1; lastOverage = 0; -- 0: none; 1: edge; 2: overage for vert in 0..NUM_HEX_VERTS loop v = vert % NUM_HEX_VERTS; fijk = fijkVerts[ v+1 ]; pentLeading4 = false; r1 = _adjustOverageClassII( fijk, adjRes, pentLeading4, true ); overage = r1.overage; r1a = r1.fijk; fijk.face = r1a.face; fijk.i = r1a.i; fijk.j = r1a.j; fijk.k = r1a.k; if ( isResClassIII(res) and vert > 0 and fijk.face != lastFace and lastOverage != 1 ) then lastV = (v + 5) % NUM_HEX_VERTS; lastVfijk = fijkVerts[lastV+1]; vfijk = fijkVerts[v+1]; orig2d0 = _ijkToHex2d(lastVfijk.i,lastVfijk.j,lastVfijk.k); orig2d1 = _ijkToHex2d(vfijk.i, vfijk.j, vfijk.k ); maxDim = maxDimByCIIres(adjRes); if( lastFace = centerIJK.face ) then face2 = fijk.face; else face2 = lastFace; end if; case adjacentFaceDir(centerIJK.face,face2) when 1 then --IJ edge0 = array [3.0 * maxDim, 0.0]; edge1 = array [-1.5 * maxDim, 3.0 * M_SQRT3_2 * maxDim]; when 3 then --JK edge0 = array [-1.5 * maxDim, 3.0 * M_SQRT3_2 * maxDim]; edge1 = array [-1.5 * maxDim, -3.0 * M_SQRT3_2 * maxDim]; when 2 then --KI edge0 = array [-1.5 * maxDim, -3.0 * M_SQRT3_2 * maxDim]; edge1 = array [3.0 * maxDim, 0.0]; else RAISE EXCEPTION 'adjacentFaceDir(% ,%) not in [1,2,3]', centerIJK.face,face2; end case; inter = _v2dIntersect(orig2d0.x,orig2d0.y, orig2d1.x,orig2d1.y, edge0[1], edge0[2], edge1[1], edge1[2] ); --RAISE NOTICE 'xy0(%) xy1(%)', orig2d0, orig2d1; isIntersectionAtVertex = ( _v2dEquals(orig2d0.x,orig2d0.y,inter.x, inter.y) or _v2dEquals(orig2d1.x,orig2d1.y,inter.x, inter.y) ); if( not isIntersectionAtVertex ) then pnt = _hex2dToGeo(inter.x, inter.y, centerIJK.face, adjRes, true ); /* if ( g_numVers = 0 ) then if ( pnt.lon > 0 ) then aFlag = true; end if; elsif ( pnt.lon > 0 and aFlag = false ) then pnt.lon = -pi() - (pi() - pnt.lon); elsif ( pnt.lon < 0 and aFlag = true ) then pnt.lon = pi() - (-pi() - pnt.lon); end if; */ arr_pts = array_append( arr_pts, st_point(pnt.lon,pnt.lat)); g_numVers = g_numVers+1; --formalism --RAISE NOTICE '!isIntersectionAtVertex %, xy(%) face(%) adjRes(%)', g_numVers, inter, centerIJK.face, adjRes; end if; end if; if (vert < NUM_HEX_VERTS) then vec = _ijkToHex2d(fijk.i, fijk.j, fijk.k ); pnt = _hex2dToGeo(vec.x, vec.y, fijk.face, adjRes, true ); /* if ( g_numVers = 0 ) then if ( pnt.lon > 0 ) then aFlag = true; end if; elsif ( pnt.lon > 0 and aFlag = false ) then pnt.lon = -pi() - (pi() - pnt.lon); elsif ( pnt.lon < 0 and aFlag = true ) then pnt.lon = pi() - (-pi() - pnt.lon); end if; */ arr_pts = array_append( arr_pts, st_point(pnt.lon,pnt.lat)); g_numVers = g_numVers+1; --formalism --RAISE NOTICE 'vert %, xy(%) face(%) adjRes(%)', g_numVers, vec, fijk.face, adjRes; end if; lastFace = fijk.face; lastOverage = overage; end loop; return st_makepolygon( st_makeline( array_append( arr_pts, arr_pts[1] ) ) ); -- append first point to close linestring for polygon end; $body$ language plpgsql immutable; create or replace function h3ToGeoBoundary( h3 H3Index ) returns geometry as $body$ declare fijk face_ijk_t; begin fijk = _h3ToFaceIjk( h3 ); return _faceIjkToGeoBoundary( fijk, H3_GET_RESOLUTION(h3), h3IsPentagon(h3) ); end; $body$ language plpgsql immutable; create or replace function _convert_on_dateline( geo geometry ) returns geometry as $body$ declare r record; g geometry; begin -- assers simpl polygon as input select sum( case x >= 150.0 when true then 1 else 0 end ) as x_gte0, sum( case x < -150.0 when true then 1 else 0 end ) as x_lt0 into strict r from ( select st_x(geom) as x from ( select ( st_dumppoints( geo )).geom ) dp ) dp1; if ( (r.x_gte0 = 0) or ( r.x_lt0 = 0 ) ) then return geo; end if; if ( r.x_gte0 < r.x_lt0 ) then -- map x : 177.0 -> -183.00 select st_makepolygon( st_makeline( st_point( case x >= 0 when true then x - 360.0 else x end, dp1.y ) ) ) into g from ( select st_y(geom) as y, st_x(geom) as x from ( select ( st_dumppoints( geo )).geom ) dp ) dp1; return g; else -- map x : -177.0 -> 183.00 select st_makepolygon( st_makeline( st_point( case x < 0 when true then x + 360.0 else x end, dp1.y ) ) ) into g from ( select st_y(geom) as y, st_x(geom) as x from ( select ( st_dumppoints( geo )).geom ) dp ) dp1; return g; end if; end; $body$ language plpgsql immutable; create or replace function h3ToGeoBoundaryDeg_p( h3 H3Index ) returns geometry as $body$ select ST_SetSRID( _convert_on_dateline( st_scale( h3ToGeoBoundary( h3), 180.0/pi(), 180.0/pi() )),4326) as geo $body$ language sql immutable; create or replace function h3ToGeoBoundaryDeg( h3 H3Index ) returns geometry as $body$ declare hg geometry; begin select t.geo into hg from h3cache t where t.h3 = h3ToGeoBoundaryDeg.h3 limit 1; if( hg notnull ) then return hg; end if; hg = h3ToGeoBoundaryDeg_p( h3 ); insert into h3cache ( h3, res, geo ) values( h3, H3_GET_RESOLUTION(h3), hg ); return hg; end; $body$ language plpgsql volatile; create or replace function h3NeighborRotations( origin H3Index, dir integer, inout rotations integer, out h3out H3Index) as $body$ declare INVALID_BASE_CELL CONSTANT integer := 127; H3_INVALID_INDEX CONSTANT integer := 0; CENTER_DIGIT CONSTANT integer := 0; K_AXES_DIGIT CONSTANT integer := 1; JK_AXES_DIGIT CONSTANT integer := 3; IK_AXES_DIGIT CONSTANT integer := 5; h3 H3Index; newRotations integer := 0; oldBaseCell integer; r_oldBaseCell record; oldLeadingDigit integer; r integer; oldDigit integer; nextDir integer; newBaseCell integer; alreadyAdjustedKSubsequence boolean := false; begin h3out = origin; for i in 0..(rotations -1) loop dir = _rotate60ccw(dir); end loop; oldBaseCell = H3_GET_BASE_CELL(h3out); oldLeadingDigit = _h3LeadingNonZeroDigit(h3out); r = H3_GET_RESOLUTION(h3out) - 1; loop if (r = -1) then h3out = H3_SET_BASE_CELL(h3out, baseCellNeighbors(oldBaseCell,dir)); newRotations = baseCellNeighbor60CCWRots(oldBaseCell,dir); if (H3_GET_BASE_CELL(h3out) = INVALID_BASE_CELL) then h3out = H3_SET_BASE_CELL(h3out, baseCellNeighbors(oldBaseCell,IK_AXES_DIGIT)); newRotations = baseCellNeighbor60CCWRots(oldBaseCell,IK_AXES_DIGIT); h3out = _h3Rotate60ccw(h3out); rotations = rotations + 1; end if; exit; else oldDigit = H3_GET_INDEX_DIGIT(h3out, r + 1); if (isResClassIII(r + 1)) then h3out = H3_SET_INDEX_DIGIT(h3out, r + 1, NEW_DIGIT_II(oldDigit,dir)); nextDir = NEW_ADJUSTMENT_II(oldDigit,dir); else h3out = H3_SET_INDEX_DIGIT(h3out, r + 1, NEW_DIGIT_III(oldDigit,dir)); nextDir = NEW_ADJUSTMENT_III(oldDigit,dir); end if; if (nextDir != CENTER_DIGIT) then dir = nextDir; r = r-1; else exit; end if; end if; end loop; newBaseCell = H3_GET_BASE_CELL(h3out); if( _isBaseCellPentagon(newBaseCell) ) then alreadyAdjustedKSubsequence = false; if (_h3LeadingNonZeroDigit(h3out) = K_AXES_DIGIT) then if (oldBaseCell != newBaseCell) then r_oldBaseCell = baseCellData(oldBaseCell); if (_baseCellIsCwOffset( newBaseCell, r_oldBaseCell.face)) then h3out = _h3Rotate60cw(h3out); else h3out = _h3Rotate60ccw(h3out); end if; alreadyAdjustedKSubsequence = true; else if (oldLeadingDigit = CENTER_DIGIT) then h3out = H3_INVALID_INDEX; return; elsif (oldLeadingDigit = JK_AXES_DIGIT) then h3out = _h3Rotate60ccw(h3out); rotations = rotations + 1; elsif (oldLeadingDigit = IK_AXES_DIGIT) then h3out = _h3Rotate60cw(h3out); rotations = rotations + 5; else h3out = H3_INVALID_INDEX; return; end if; end if; end if; for i in 0..(newRotations-1) loop h3out = _h3RotatePent60ccw(h3out); end loop; if (oldBaseCell != newBaseCell) then if (_isBaseCellPolarPentagon(newBaseCell)) then if ( (oldBaseCell != 118) and (oldBaseCell != 8) and (_h3LeadingNonZeroDigit(h3out) != JK_AXES_DIGIT)) then rotations = rotations + 1; end if; elsif ( (_h3LeadingNonZeroDigit(h3out) = IK_AXES_DIGIT) and ( not alreadyAdjustedKSubsequence )) then rotations = rotations + 1; end if; end if; else for i in 0..(newRotations-1) loop h3out = _h3Rotate60ccw(h3out); end loop; end if; rotations = (rotations + newRotations) % 6; --return h3out; end; $body$ language plpgsql immutable; create or replace function maxKringSize(k integer) returns integer as $body$ select 3 * k * (k + 1) + 1 $body$ language sql immutable; create or replace function hexRangeDistances( origin H3Index, k integer ) returns table ( h3 H3Index, distance integer ) as $body$ declare NEXT_RING_DIRECTION CONSTANT integer := 4; arr_out bigint[]; arr_distance integer[]; idx integer := 1; ring integer := 1; direction integer := 0; i integer := 0; rotations integer := 0; r record; begin arr_out[idx] = origin; arr_distance[idx] = 0; idx = idx+1; if ( h3IsPentagon(origin) ) then raise exception 'HEX_RANGE_PENTAGON h3(%)', to_hex(origin) USING ERRCODE = '02000'; --no_data end if; while ( ring <= k ) loop if ( (direction = 0) and (i = 0) ) then -- RAISE NOTICE 'in origin(%) rot(%)', to_hex(origin), rotations; r = h3NeighborRotations(origin, NEXT_RING_DIRECTION, rotations); origin = r.h3out; rotations = r.rotations; -- RAISE NOTICE 'r %, origin(%) rot(%)', r, origin, rotations; if ( origin = 0 ) then raise exception 'HEX_RANGE_K_SUBSEQUENCE h3(%)', to_hex(origin) USING ERRCODE = '02000'; --no_data end if; if ( h3IsPentagon( origin ) ) then raise exception 'HEX_RANGE_PENTAGON h3(%)', to_hex(origin) USING ERRCODE = '02000'; --no_data end if; end if; r = h3NeighborRotations(origin, DIRECTIONS(direction), rotations); origin = r.h3out; rotations = r.rotations; if ( origin = 0 ) then raise exception 'HEX_RANGE_K_SUBSEQUENCE h3(%)', to_hex(origin) USING ERRCODE = '02000'; --no_data end if; arr_out[idx] = origin; arr_distance[idx] = ring; idx = idx +1; i = i +1; if ( i = ring ) then i = 0; direction = direction + 1; if ( direction = 6 ) then direction = 0; ring = ring +1; end if; end if; if ( h3IsPentagon( origin ) ) then raise exception 'HEX_RANGE_PENTAGON h3(%)', to_hex(origin) USING ERRCODE = '02000'; --no_data end if; end loop; return query select u.h3::H3Index, u.distance from unnest( arr_out, arr_distance ) u( h3, distance ); end; $body$ language plpgsql immutable; create or replace function _kRingInternal_r( origin H3Index, k integer, maxIdx integer, curK integer, inout arr_out bigint[], inout arr_distance integer[] ) as $body$ declare offs integer; rotations integer := 0; r1 record; r2 record; begin if origin = 0 then return; end if; offs = ( origin % maxIdx ) +1; --RAISE NOTICE 'in origin(%) k(%) maxIdx(%) curK(%) offs(%) out(%) distance(%)', origin, k, maxIdx, curK, offs, arr_out, arr_distance; while ( ( arr_out[offs] != 0 ) and ( arr_out[offs] != origin )) loop offs = ((offs + 1) % maxIdx) +1; end loop; if ((arr_out[offs] = origin) and (arr_distance[offs] <= curK )) then return; end if; arr_out[offs] = origin; arr_distance[offs] = curK; if (curK >= k) then return; end if; for direction in 0..5 loop -- rotations = 0; r1 = h3NeighborRotations(origin, DIRECTIONS(direction), rotations); --RAISE NOTICE 'origin(%) dir(%) rotation(%) -> origin(%) rotation(%)', to_hex(origin), direction, rotations, to_hex(r1.h3out), r1.rotations; r2 = _kRingInternal_r( r1.h3out, k, maxIdx, curK + 1, arr_out, arr_distance ); arr_out = r2.arr_out; arr_distance = r2.arr_distance; end loop; end; $body$ language plpgsql immutable; create or replace function _kRingInternal( origin H3Index, k integer, maxIdx integer, curK integer ) returns table ( h3 H3Index, distance integer ) as $body$ declare arr_out bigint[]; arr_distance integer[]; r record; begin arr_out = array_fill( 0::bigint, ARRAY[maxIdx]); arr_distance = array_fill( 0::integer, ARRAY[maxIdx]); r = _kRingInternal_r( origin, k, maxIdx , curK, arr_out, arr_distance ) ; return query select u.h3::H3Index, u.distance from unnest( r.arr_out, r.arr_distance ) u( h3, distance ); end; $body$ language plpgsql immutable; create or replace function kRingDistances( origin H3Index, k integer ) returns table ( h3 H3Index, distance integer ) as $body$ declare begin return query select o.h3, o.distance from hexRangeDistances(origin, k ) o; exception when sqlstate '02000' then --no_data return query select o.h3, o.distance from _kRingInternal(origin, k, maxKringSize(k), 0) o; end; $body$ language plpgsql immutable; create or replace function kRing( origin H3Index, k integer ) returns table ( h3 H3Index ) as $body$ declare begin return query select krd.h3 from kRingDistances( origin, k ) krd; end; $body$ language plpgsql immutable; create or replace function _faceIjkToGeo( h face_ijk_t, res integer, out lat double precision, out lon double precision ) as $body$ declare vec record; pnt record; begin vec = _ijkToHex2d(h.i, h.j, h.k ); pnt = _hex2dToGeo(vec.x, vec.y, h.face, res, false ); lon = pnt.lon; lat = pnt.lat; end; $body$ language plpgsql immutable; create or replace function h3ToGeo( h3 H3Index, out lat double precision, out lon double precision ) as $body$ declare fijk face_ijk_t; pnt record; begin fijk = _h3ToFaceIjk( h3 ); pnt = _faceIjkToGeo( fijk, H3_GET_RESOLUTION(h3) ); lon = pnt.lon; lat = pnt.lat; end; $body$ language plpgsql immutable; create or replace function h3ToGeoDeg( h3 H3Index ) returns geometry as $body$ declare pnt record; begin pnt = h3ToGeo( h3 ); return st_point( degrees(pnt.lon), degrees(pnt.lat)); end; $body$ language plpgsql immutable; create or replace function _hexRadiusKm( h3 H3Index ) returns double precision as $body$ declare pnt record; g geometry; begin pnt = h3ToGeo( h3 ); select (ST_DumpPoints( h3ToGeoBoundaryDeg( h3 ) )).geom into g limit 1; return ST_DistanceSphere( g, st_scale( st_point(pnt.lon,pnt.lat), 180.0/pi(), 180.0/pi() ) ) / 1000.0; --return ST_DistanceSpheroid( g, ST_SetSRID( st_scale( st_point(pnt.lon,pnt.lat), 180.0/pi(), 180.0/pi() ), 4326 ), 'SPHEROID["WGS 84",6378137,298.257223563]' ) / 1000.0; end; $body$ language plpgsql immutable; create or replace function bboxHexRadiusDeg( bbox geometry, res integer ) returns integer as $body$ declare bboxRadiusKm double precision; centerHexRadiusKm double precision; c geometry; h3 H3Index; begin bboxRadiusKm = st_length( ST_BoundingDiagonal( bbox )::geography ) / 2000.0; c = ST_Centroid(bbox); h3 = geoToH3(radians(st_y(c)), radians(st_x(c)), res); centerHexRadiusKm = _hexRadiusKm( h3 ); return ceil( bboxRadiusKm / (1.5 * centerHexRadiusKm) )::integer; end; $body$ language plpgsql immutable; create or replace function polyfillDeg_s( geoPolygon geometry, res integer ) returns table ( h3 H3Index ) as $body$ declare minK integer; bbox geometry; center geometry; centerH3 H3Index; begin bbox = st_envelope(geoPolygon); minK = bboxHexRadiusDeg( bbox , res); center = st_centroid( bbox ); centerH3 = geoToH3(radians(st_y(center)), radians(st_x(center)), res); if( minK > 2 ) then return query -- paint the boundary - outline and holes select cl.h3 from coveringDeg( ST_Boundary( geoPolygon ) , res ) cl; return query -- paint the interior select kr.h3 from kRing(centerH3, minK ) kr where 1 = 1 and ST_Within(ST_SetSRID(h3ToGeoDeg( kr.h3 ),4326), geoPolygon); else return query select kr.h3 from kRing(centerH3, minK ) kr where 1 = 1 and ST_Intersects(ST_SetSRID(h3ToGeoBoundaryDeg( kr.h3 ),4326), ST_SetSRID(geoPolygon,4326)); end if; end; $body$ language plpgsql immutable; create or replace function polyfillDeg( geoPolygon geometry, res integer, subdivide boolean default true ) returns table ( h3 H3Index ) as $body$ declare max_vertices integer := 16 * 1024; begin if subdivide then return query select polyfillDeg_s( st_subdivide( st_force2d( geoPolygon ), max_vertices ), res ); else return query select polyfillDeg_s( geoPolygon, res ); end if; end; $body$ language plpgsql immutable; create or replace function h3ToParent( h H3Index, parentRes integer) returns H3Index as $body$ declare H3_INVALID_INDEX constant integer := 0; MAX_H3_RES constant integer := 15; H3_DIGIT_MASK integer := 7; childRes integer; parentH H3Index; begin childRes = H3_GET_RESOLUTION(h); if (parentRes > childRes) then return H3_INVALID_INDEX; elsif (parentRes = childRes) then return h; elsif ((parentRes < 0) or (parentRes > MAX_H3_RES)) then return H3_INVALID_INDEX; end if; parentH = H3_SET_RESOLUTION(h, parentRes); for i in (parentRes + 1)..childRes loop parentH = H3_SET_INDEX_DIGIT(parentH, i, H3_DIGIT_MASK); end loop; return parentH; end; $body$ language plpgsql immutable; create or replace function h3ToParent( h H3Index ) returns H3Index as $body$ select h3ToParent(h, H3_GET_RESOLUTION(h)-1) $body$ language sql immutable; create or replace function compact( h3List bigint[] ) returns table ( h3 H3Index ) as $body$ with recursive search_graph( h3, res, parent, pqty ) as ( select i.h3, H3_GET_RESOLUTION(i.h3)as res, ARRAY[0,h3ToParent(i.h3)] as parent, count(1) OVER (PARTITION BY ( h3ToParent(i.h3) )) as pqty from ( select distinct h as h3 from unnest(h3List) h ) i union all select iii.*, count(1) OVER (PARTITION BY iii.parent) as pqty from ( select distinct on (ii.parent) ii.parent[2] as h3, H3_GET_RESOLUTION(ii.parent[2]) as res, ARRAY[ ii.parent[1]+1, h3ToParent(ii.parent[2])] as parent from search_graph ii where 1 = 1 and ii.pqty = 7 ) iii ) select h3::H3Index from search_graph where 1 = 1 and pqty < 7 $body$ language sql immutable; create or replace function polyfillCompactDeg( geoPolygon geometry, res integer ) returns table ( h3 H3Index ) as $body$ select h3 from compact( ARRAY( select h::bigint from polyfillDeg( geoPolygon , res) h ) ) $body$ language sql immutable; create or replace function makeDirectChild( h H3Index, cellNumber integer ) returns H3Index as $body$ declare childRes integer := H3_GET_RESOLUTION(h) +1; begin return H3_SET_INDEX_DIGIT( H3_SET_RESOLUTION(h, childRes), childRes, cellNumber); end; $body$ language plpgsql immutable; create or replace function h3ToChildren( h H3Index, childRes integer ) returns table ( h3 H3Index ) as $body$ declare K_AXES_DIGIT CONSTANT integer := 1; parentRes integer := H3_GET_RESOLUTION(h); isAPentagon boolean := h3IsPentagon(h); begin if parentRes > childRes then return; elsif parentRes = childRes then h3 = h; return next; else for i in 0..6 loop if ( (isAPentagon) and ( i = K_AXES_DIGIT ) ) then null; else return query select h3ToChildren( makeDirectChild(h,i), childRes ); end if; end loop; end if; end; $body$ language plpgsql immutable; create or replace function uncompact( h3List bigint[], res integer ) returns table ( h3 H3Index ) as 'select h3ToChildren( h, res ) from unnest(h3List) h' language sql immutable; create or replace function hexAreaKm2( res integer ) returns double precision as $body$ declare arrDim double precision[] = array [ 4250546.848, 607220.9782, 86745.85403, 12392.26486, 1770.323552, 252.9033645, 36.1290521, 5.1612932, 0.7373276, 0.1053325, 0.0150475, 0.0021496, 0.0003071, 0.0000439, 0.0000063, 0.0000009 ]; begin res = res + 1; return arrDim[res]; end; $body$ language plpgsql immutable; create or replace function hexAreaM2( res integer ) returns double precision as $body$ declare arrDim double precision[] = array [ 4.25055E+12, 6.07221E+11, 86745854035, 12392264862, 1770323552, 252903364.5, 36129052.1, 5161293.2, 737327.6, 105332.5, 15047.5, 2149.6, 307.1, 43.9, 6.3, 0.9 ]; begin res = res + 1; return arrDim[res]; end; $body$ language plpgsql immutable; create or replace function edgeLengthKm( res integer ) returns double precision as $body$ declare arrDim double precision[] = array [ 1107.712591, 418.6760055, 158.2446558, 59.81085794, 22.6063794, 8.544408276, 3.229482772, 1.220629759, 0.461354684, 0.174375668, 0.065907807, 0.024910561, 0.009415526, 0.003559893, 0.001348575, 0.000509713 ]; begin res = res + 1; return arrDim[res]; end; $body$ language plpgsql immutable; create or replace function edgeLengthM( res integer ) returns double precision as $body$ declare arrDim double precision[] = array [ 1107712.591, 418676.0055, 158244.6558, 59810.85794, 22606.3794, 8544.408276, 3229.482772, 1220.629759, 461.3546837, 174.3756681, 65.90780749, 24.9105614, 9.415526211, 3.559893033, 1.348574562, 0.509713273 ]; begin res = res + 1; return arrDim[res]; end; $body$ language plpgsql immutable; create or replace function _line_coords_seq( line geometry, res integer ) returns table ( nr integer, h3 H3Index, lead boolean, geo geometry ) as $body$ select nr, h3, lead( true::boolean,1, false::boolean ) over (partition by h3 order by nr), geom as geo from ( select nr, h3, ( lag( 1::integer ) over (partition by h3 order by nr) + lead( 1::integer ) over (partition by h3 order by nr) ) as mflag, geom from ( select (d).path[1] as nr, (d).geom, geotoh3deg( (d).geom, res ) as h3 from ( select st_dumppoints(line) d ) o ) oo ) ooo where 1 = 1 and mflag is null -- order by nr $body$ language sql immutable; create or replace function _walkpath_s( h_start H3Index, p_start geometry, h_end H3Index, p_end geometry, res integer, edge_len_m double precision ) returns table ( h3 H3Index ) as $body$ declare h H3Index; p geometry; l geometry; begin if ((h_end notnull) and (h_start notnull)) then if h_start = h_end then return query select h_start; else l = ST_MakeLine(p_start, p_end); if( ST_Length(l::geography) < edge_len_m ) then return query select h_start union select h_end; else p = ST_LineInterpolatePoint( l, 0.5 ); h = geotoh3deg( p, res ); -- RAISE NOTICE 'h %, p(%), len(%) ', h, st_astext(p),ST_Length(ST_MakeLine(p_start, p_end)::geography); if( h != h_start ) then return query select _walkpath_s( h_start, p_start, h, p, res, edge_len_m ); end if; if( h != h_end ) then return query select _walkpath_s( h, p, h_end, p_end, res, edge_len_m ); end if; end if; end if; end if; end; $body$ language plpgsql immutable; create or replace function walkpath( h_start H3Index, p_start geometry, h_end H3Index, p_end geometry, res integer ) returns table ( h3 H3Index ) as $body$ select distinct _walkpath_s(h_start, p_start, h_end, p_end, res, edgeLengthM( res ) ) $body$ language sql immutable; create or replace function coveringLineDeg( line geometry, res integer ) returns table ( h3 H3Index ) as $body$ select distinct walkpath(h3_start,p_start,h3_end,p_end,res) from( select nr, lead, h3 as h3_start, geo as p_start, lead( h3 ) over ( order by nr) as h3_end, lead( geo ) over ( order by nr) as p_end from _line_coords_seq( line ,res) order by 1 ) o $body$ language sql immutable; create or replace function coveringDeg( geo geometry, res integer ) returns table ( h3 H3Index ) as $body$ begin case ST_GeometryType(geo) when 'ST_Point' then return query select geotoh3deg( geo, res ); when 'ST_MultiPoint' then return query select distinct geotoh3deg( (st_dump(geo)).geom, res ); when 'ST_LineString' then return query select coveringLineDeg( geo, res ); when 'ST_MultiLineString' then return query select distinct coveringLineDeg( (st_dump(geo)).geom, res ); when 'ST_Polygon' then return query select polyfillDeg( geo, res ); when 'ST_MultiPolygon' then return query select distinct polyfillDeg( (st_dump(geo)).geom, res ); else return query select geotoh3deg( st_closestpoint( geo , geo ), res ); end case; end; $body$ language plpgsql immutable; create or replace function zoom2resolution( zoom integer ) returns integer as 'select greatest( round(( zoom*ln(4) )/ ln(7))::integer -2 , 0 ) ' language sql immutable; create or replace function lonlat2pxpy( lon double precision, lat double precision, pow2_z_x_pxsz bigint, out px bigint, out py bigint ) as $body$ -- pow2_z_x_pxsz = power(2, ( zoom )) * pixelsize select (case when lon < -180 then 0 when lon > 180 then pow2_z_x_pxsz else floor((lon + 180.0) / 360.0 * pow2_z_x_pxsz ) end )::bigint, (case when lat <= -85 then pow2_z_x_pxsz when lat >= 85 then 0 else floor((1.0 - ln(tan(radians(lat)) + (1.0 / cos(radians(lat)))) / pi()) / 2 * pow2_z_x_pxsz ) end )::bigint $body$ language sql immutable; /* Tests select lat, lon, res, (_geoToHex2d( radians( i.lat ), radians( i.lon ), i.res )).* , (_geoToFaceIjk( radians( i.lat ), radians( i.lon ), i.res )).*, (geoToH3( radians( i.lat ), radians( i.lon ), i.res ))::bit(64) from ( select 40.689167 as lat, -74.044444 as lon, 10 as level ) i select to_hex( h3.geoToH3( radians( i.lat ), radians( i.lon ), i.res ) ) from ( select 40.689167 as lat, -74.044444 as lon, 10 as res ) i select st_astext( ST_SetSRID(st_scale( geo, 180.0/pi(), 180.0/pi() ),4326) ) from ( select to_hex( ii.h3 ), h3IsPentagon( ii.h3 ) as pentagon, H3_GET_RESOLUTION(h3) res, _h3ToFaceIjk( h3 ) as fijk, h3ToGeoBoundary( ii.h3 ) as geo from ( select h3.geoToH3( radians( i.lat ), radians( i.lon ), i.res ) as h3 from ( select 40.689167 as lat, -74.044444 as lon, 10 as res ) i ) ii ) iii */ /* --- Geoserver rendering views create or replace view rdr.h3 as select oo.zm, oo.p, oo.h3, st_centroid(oo.geo) as c, oo.geo from ( select o1.zm, h3ispentagon( o1.h3) as p, to_hex(o1.h3::bigint) as h3, h3togeoboundarydeg(o1.h3)::geometry(polygon,4326) as geo from ( select o.zm, kRing(o.h3, bboxHexRadiusDeg( o.ibox, zoom2resolution(o.zm) )) as h3 from ( with info as ( select i.ibox, st_centroid(i.ibox) as c, coalesce(bbox2zooml(i.ibox), '-1'::integer) as zm from ( select st_setsrid(coalesce(gsrv_getreqbbox(current_query()), st_geomfromtext(replace('polyxxx'::text, 'xxx'::text, 'gon'::text) || '((8.65722656250009 50.0923932109386,8.65722656250009 50.1205780979601,8.7011718750001 50.1205780979601,8.7011718750001 50.0923932109386,8.65722656250009 50.0923932109386))'::text)), 4326) as ibox) i ) select b.zm, b.ibox, geotoh3(radians(st_y(b.c)), radians(st_x(b.c)), zoom2resolution(b.zm)) as h3 from info b where 1 = 1 ) o ) o1 where 1 = 1 and o1.h3 != 0 ) oo where 1 = 1; create or replace view rdr_cal.wv_cluster_delta_h3_f01a as -- select h3, value as total, geo from rdr_cal.wvm_cluster_delta_h3_f01a select -- 'POLXXXYGON ((22.32421875 -0.1714300432299857, 22.32421875 22.114475576668156, 45.17578125 22.114475576668156, 45.17578125 -0.1714300432299857, 22.32421875 -0.1714300432299857))' to_hex( o.h3 ) as h3, o.bqty, o.total::bigint AS total, o.geo from ( with curr_bbox as ( select rdr.bbox2zooml( i.ibox ) as zm, i.ibox from ( select st_setsrid( st_envelope(ST_MinimumBoundingCircle(st_envelope(ST_MinimumBoundingCircle( gsrv_getreqbbox(current_query()))))) , 4326 ) AS ibox ) i ) select i2.h3, sum(w.value) as total, count(1) as bqty, i2.geo from rdr_cal.wvm_cluster_delta_h3_f01a w, ( select i1.h3, h3togeoboundarydeg( i1.h3 )::geometry(polygon,4326) as geo from ( select distinct h3ToParent( v.h3, least( greatest( h3.zoom2resolution(b.zm), 4),8) ) AS h3 from rdr_cal.wvm_cluster_delta_h3_f01a v, curr_bbox b where 1 = 1 and v.geo && b.ibox and st_intersects(v.geo, b.ibox) -- group by 1 ) i1 ) i2 where 1 = 1 and w.geo && i2.geo and st_intersects(w.geo, i2.geo) and h3IsParent( i2.h3, w.h3 ) group by 1 ,4 ) o; */
<filename>vpc/service/db/migrations/40_static_v2.up.sql START TRANSACTION ; alter table ip_addresses add column subnet_id_id int; update ip_addresses set subnet_id_id = subnets.id from subnets where subnets.subnet_id = ip_addresses.subnet_id; alter table ip_addresses add ipv6address inet; alter table ip_addresses add v6prefix text; alter table ip_addresses add v4prefix text; create unique index ip_addresses_ipv6address_subnet_id_uindex on ip_addresses (ipv6address, subnet_id); alter table ip_addresses add constraint ip_addresses_subnet_cidr_reservations_v4_reservation_id_fk foreign key (v4prefix) references subnet_cidr_reservations_v4 on delete set null; alter table ip_addresses add constraint ip_addresses_subnet_cidr_reservations_v6_reservation_id_fk foreign key (v6prefix) references subnet_cidr_reservations_v6 on delete set null; alter table ip_addresses add constraint ip_addresees_subnets_subnet_id_id_id_fk foreign key (subnet_id_id) references subnets (id) on delete set null; COMMIT;
-- -- PostgreSQL database dump -- -- Dumped from database version 11.3 (Debian 11.3-1.pgdg90+1) -- Dumped by pg_dump version 11.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: hdb_catalog; Type: SCHEMA; Schema: -; Owner: hasurauser -- CREATE SCHEMA IF NOT EXISTS hdb_catalog; ALTER SCHEMA hdb_catalog OWNER TO hasurauser; -- -- Name: check_violation(text); Type: FUNCTION; Schema: hdb_catalog; Owner: hasurauser -- CREATE FUNCTION hdb_catalog.check_violation(msg text) RETURNS boolean LANGUAGE plpgsql AS $$ BEGIN RAISE check_violation USING message=msg; END; $$; ALTER FUNCTION hdb_catalog.check_violation(msg text) OWNER TO hasurauser; -- -- Name: hdb_schema_update_event_notifier(); Type: FUNCTION; Schema: hdb_catalog; Owner: hasurauser -- CREATE FUNCTION hdb_catalog.hdb_schema_update_event_notifier() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE instance_id uuid; occurred_at timestamptz; invalidations json; curr_rec record; BEGIN instance_id = NEW.instance_id; occurred_at = NEW.occurred_at; invalidations = NEW.invalidations; PERFORM pg_notify('hasura_schema_update', json_build_object( 'instance_id', instance_id, 'occurred_at', occurred_at, 'invalidations', invalidations )::text); RETURN curr_rec; END; $$; ALTER FUNCTION hdb_catalog.hdb_schema_update_event_notifier() OWNER TO hasurauser; -- -- Name: inject_table_defaults(text, text, text, text); Type: FUNCTION; Schema: hdb_catalog; Owner: hasurauser -- CREATE FUNCTION hdb_catalog.inject_table_defaults(view_schema text, view_name text, tab_schema text, tab_name text) RETURNS void LANGUAGE plpgsql AS $$ DECLARE r RECORD; BEGIN FOR r IN SELECT column_name, column_default FROM information_schema.columns WHERE table_schema = tab_schema AND table_name = tab_name AND column_default IS NOT NULL LOOP EXECUTE format('ALTER VIEW %I.%I ALTER COLUMN %I SET DEFAULT %s;', view_schema, view_name, r.column_name, r.column_default); END LOOP; END; $$; ALTER FUNCTION hdb_catalog.inject_table_defaults(view_schema text, view_name text, tab_schema text, tab_name text) OWNER TO hasurauser; -- -- Name: insert_event_log(text, text, text, text, json); Type: FUNCTION; Schema: hdb_catalog; Owner: hasurauser -- CREATE FUNCTION hdb_catalog.insert_event_log(schema_name text, table_name text, trigger_name text, op text, row_data json) RETURNS text LANGUAGE plpgsql AS $$ DECLARE id text; payload json; session_variables json; server_version_num int; BEGIN id := gen_random_uuid(); server_version_num := current_setting('server_version_num'); IF server_version_num >= 90600 THEN session_variables := current_setting('hasura.user', 't'); ELSE BEGIN session_variables := current_setting('hasura.user'); EXCEPTION WHEN OTHERS THEN session_variables := NULL; END; END IF; payload := json_build_object( 'op', op, 'data', row_data, 'session_variables', session_variables ); INSERT INTO hdb_catalog.event_log (id, schema_name, table_name, trigger_name, payload) VALUES (id, schema_name, table_name, trigger_name, payload); RETURN id; END; $$; ALTER FUNCTION hdb_catalog.insert_event_log(schema_name text, table_name text, trigger_name text, op text, row_data json) OWNER TO hasurauser; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: event_invocation_logs; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.event_invocation_logs ( id text DEFAULT public.gen_random_uuid() NOT NULL, event_id text, status integer, request json, response json, created_at timestamp without time zone DEFAULT now() ); ALTER TABLE hdb_catalog.event_invocation_logs OWNER TO hasurauser; -- -- Name: event_log; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.event_log ( id text DEFAULT public.gen_random_uuid() NOT NULL, schema_name text NOT NULL, table_name text NOT NULL, trigger_name text NOT NULL, payload jsonb NOT NULL, delivered boolean DEFAULT false NOT NULL, error boolean DEFAULT false NOT NULL, tries integer DEFAULT 0 NOT NULL, created_at timestamp without time zone DEFAULT now(), locked boolean DEFAULT false NOT NULL, next_retry_at timestamp without time zone, archived boolean DEFAULT false NOT NULL ); ALTER TABLE hdb_catalog.event_log OWNER TO hasurauser; -- -- Name: event_triggers; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.event_triggers ( name text NOT NULL, type text NOT NULL, schema_name text NOT NULL, table_name text NOT NULL, configuration json, comment text ); ALTER TABLE hdb_catalog.event_triggers OWNER TO hasurauser; -- -- Name: hdb_action; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_action ( action_name text NOT NULL, action_defn jsonb NOT NULL, comment text, is_system_defined boolean DEFAULT false ); ALTER TABLE hdb_catalog.hdb_action OWNER TO hasurauser; -- -- Name: hdb_action_log; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_action_log ( id uuid DEFAULT public.gen_random_uuid() NOT NULL, action_name text, input_payload jsonb NOT NULL, request_headers jsonb NOT NULL, session_variables jsonb NOT NULL, response_payload jsonb, errors jsonb, created_at timestamp with time zone DEFAULT now() NOT NULL, response_received_at timestamp with time zone, status text NOT NULL, CONSTRAINT hdb_action_log_status_check CHECK ((status = ANY (ARRAY['created'::text, 'processing'::text, 'completed'::text, 'error'::text]))) ); ALTER TABLE hdb_catalog.hdb_action_log OWNER TO hasurauser; -- -- Name: hdb_action_permission; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_action_permission ( action_name text NOT NULL, role_name text NOT NULL, definition jsonb DEFAULT '{}'::jsonb NOT NULL, comment text ); ALTER TABLE hdb_catalog.hdb_action_permission OWNER TO hasurauser; -- -- Name: hdb_allowlist; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_allowlist ( collection_name text ); ALTER TABLE hdb_catalog.hdb_allowlist OWNER TO hasurauser; -- -- Name: hdb_check_constraint; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_check_constraint AS SELECT (n.nspname)::text AS table_schema, (ct.relname)::text AS table_name, (r.conname)::text AS constraint_name, pg_get_constraintdef(r.oid, true) AS "check" FROM ((pg_constraint r JOIN pg_class ct ON ((r.conrelid = ct.oid))) JOIN pg_namespace n ON ((ct.relnamespace = n.oid))) WHERE (r.contype = 'c'::"char"); ALTER TABLE hdb_catalog.hdb_check_constraint OWNER TO hasurauser; -- -- Name: hdb_computed_field; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_computed_field ( table_schema text NOT NULL, table_name text NOT NULL, computed_field_name text NOT NULL, definition jsonb NOT NULL, comment text ); ALTER TABLE hdb_catalog.hdb_computed_field OWNER TO hasurauser; -- -- Name: hdb_computed_field_function; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_computed_field_function AS SELECT hdb_computed_field.table_schema, hdb_computed_field.table_name, hdb_computed_field.computed_field_name, CASE WHEN (((hdb_computed_field.definition -> 'function'::text) ->> 'name'::text) IS NULL) THEN (hdb_computed_field.definition ->> 'function'::text) ELSE ((hdb_computed_field.definition -> 'function'::text) ->> 'name'::text) END AS function_name, CASE WHEN (((hdb_computed_field.definition -> 'function'::text) ->> 'schema'::text) IS NULL) THEN 'public'::text ELSE ((hdb_computed_field.definition -> 'function'::text) ->> 'schema'::text) END AS function_schema FROM hdb_catalog.hdb_computed_field; ALTER TABLE hdb_catalog.hdb_computed_field_function OWNER TO hasurauser; -- -- Name: hdb_custom_types; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_custom_types ( custom_types jsonb NOT NULL ); ALTER TABLE hdb_catalog.hdb_custom_types OWNER TO hasurauser; -- -- Name: hdb_foreign_key_constraint; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_foreign_key_constraint AS SELECT (q.table_schema)::text AS table_schema, (q.table_name)::text AS table_name, (q.constraint_name)::text AS constraint_name, (min(q.constraint_oid))::integer AS constraint_oid, min((q.ref_table_table_schema)::text) AS ref_table_table_schema, min((q.ref_table)::text) AS ref_table, json_object_agg(ac.attname, afc.attname) AS column_mapping, min((q.confupdtype)::text) AS on_update, min((q.confdeltype)::text) AS on_delete, json_agg(ac.attname) AS columns, json_agg(afc.attname) AS ref_columns FROM ((( SELECT ctn.nspname AS table_schema, ct.relname AS table_name, r.conrelid AS table_id, r.conname AS constraint_name, r.oid AS constraint_oid, cftn.nspname AS ref_table_table_schema, cft.relname AS ref_table, r.confrelid AS ref_table_id, r.confupdtype, r.confdeltype, unnest(r.conkey) AS column_id, unnest(r.confkey) AS ref_column_id FROM ((((pg_constraint r JOIN pg_class ct ON ((r.conrelid = ct.oid))) JOIN pg_namespace ctn ON ((ct.relnamespace = ctn.oid))) JOIN pg_class cft ON ((r.confrelid = cft.oid))) JOIN pg_namespace cftn ON ((cft.relnamespace = cftn.oid))) WHERE (r.contype = 'f'::"char")) q JOIN pg_attribute ac ON (((q.column_id = ac.attnum) AND (q.table_id = ac.attrelid)))) JOIN pg_attribute afc ON (((q.ref_column_id = afc.attnum) AND (q.ref_table_id = afc.attrelid)))) GROUP BY q.table_schema, q.table_name, q.constraint_name; ALTER TABLE hdb_catalog.hdb_foreign_key_constraint OWNER TO hasurauser; -- -- Name: hdb_function; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_function ( function_schema text NOT NULL, function_name text NOT NULL, configuration jsonb DEFAULT '{}'::jsonb NOT NULL, is_system_defined boolean DEFAULT false ); ALTER TABLE hdb_catalog.hdb_function OWNER TO hasurauser; -- -- Name: hdb_function_agg; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_function_agg AS SELECT (p.proname)::text AS function_name, (pn.nspname)::text AS function_schema, pd.description, CASE WHEN (p.provariadic = (0)::oid) THEN false ELSE true END AS has_variadic, CASE WHEN ((p.provolatile)::text = ('i'::character(1))::text) THEN 'IMMUTABLE'::text WHEN ((p.provolatile)::text = ('s'::character(1))::text) THEN 'STABLE'::text WHEN ((p.provolatile)::text = ('v'::character(1))::text) THEN 'VOLATILE'::text ELSE NULL::text END AS function_type, pg_get_functiondef(p.oid) AS function_definition, (rtn.nspname)::text AS return_type_schema, (rt.typname)::text AS return_type_name, (rt.typtype)::text AS return_type_type, p.proretset AS returns_set, ( SELECT COALESCE(json_agg(json_build_object('schema', q.schema, 'name', q.name, 'type', q.type)), '[]'::json) AS "coalesce" FROM ( SELECT pt.typname AS name, pns.nspname AS schema, pt.typtype AS type, pat.ordinality FROM ((unnest(COALESCE(p.proallargtypes, (p.proargtypes)::oid[])) WITH ORDINALITY pat(oid, ordinality) LEFT JOIN pg_type pt ON ((pt.oid = pat.oid))) LEFT JOIN pg_namespace pns ON ((pt.typnamespace = pns.oid))) ORDER BY pat.ordinality) q) AS input_arg_types, to_json(COALESCE(p.proargnames, ARRAY[]::text[])) AS input_arg_names, p.pronargdefaults AS default_args, (p.oid)::integer AS function_oid FROM ((((pg_proc p JOIN pg_namespace pn ON ((pn.oid = p.pronamespace))) JOIN pg_type rt ON ((rt.oid = p.prorettype))) JOIN pg_namespace rtn ON ((rtn.oid = rt.typnamespace))) LEFT JOIN pg_description pd ON ((p.oid = pd.objoid))) WHERE (((pn.nspname)::text !~~ 'pg_%'::text) AND ((pn.nspname)::text <> ALL (ARRAY['information_schema'::text, 'hdb_catalog'::text, 'hdb_views'::text])) AND (NOT (EXISTS ( SELECT 1 FROM pg_aggregate WHERE ((pg_aggregate.aggfnoid)::oid = p.oid))))); ALTER TABLE hdb_catalog.hdb_function_agg OWNER TO hasurauser; -- -- Name: hdb_function_info_agg; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_function_info_agg AS SELECT hdb_function_agg.function_name, hdb_function_agg.function_schema, row_to_json(( SELECT e.*::record AS e FROM ( SELECT hdb_function_agg.description, hdb_function_agg.has_variadic, hdb_function_agg.function_type, hdb_function_agg.return_type_schema, hdb_function_agg.return_type_name, hdb_function_agg.return_type_type, hdb_function_agg.returns_set, hdb_function_agg.input_arg_types, hdb_function_agg.input_arg_names, hdb_function_agg.default_args, (EXISTS ( SELECT 1 FROM information_schema.tables WHERE (((tables.table_schema)::text = hdb_function_agg.return_type_schema) AND ((tables.table_name)::text = hdb_function_agg.return_type_name)))) AS returns_table) e)) AS function_info FROM hdb_catalog.hdb_function_agg; ALTER TABLE hdb_catalog.hdb_function_info_agg OWNER TO hasurauser; -- -- Name: hdb_permission; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_permission ( table_schema name NOT NULL, table_name name NOT NULL, role_name text NOT NULL, perm_type text NOT NULL, perm_def jsonb NOT NULL, comment text, is_system_defined boolean DEFAULT false, CONSTRAINT hdb_permission_perm_type_check CHECK ((perm_type = ANY (ARRAY['insert'::text, 'select'::text, 'update'::text, 'delete'::text]))) ); ALTER TABLE hdb_catalog.hdb_permission OWNER TO hasurauser; -- -- Name: hdb_permission_agg; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_permission_agg AS SELECT hdb_permission.table_schema, hdb_permission.table_name, hdb_permission.role_name, json_object_agg(hdb_permission.perm_type, hdb_permission.perm_def) AS permissions FROM hdb_catalog.hdb_permission GROUP BY hdb_permission.table_schema, hdb_permission.table_name, hdb_permission.role_name; ALTER TABLE hdb_catalog.hdb_permission_agg OWNER TO hasurauser; -- -- Name: hdb_primary_key; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_primary_key AS SELECT tc.table_schema, tc.table_name, tc.constraint_name, json_agg(constraint_column_usage.column_name) AS columns FROM (information_schema.table_constraints tc JOIN ( SELECT x.tblschema AS table_schema, x.tblname AS table_name, x.colname AS column_name, x.cstrname AS constraint_name FROM ( SELECT DISTINCT nr.nspname, r.relname, a.attname, c.conname FROM pg_namespace nr, pg_class r, pg_attribute a, pg_depend d, pg_namespace nc, pg_constraint c WHERE ((nr.oid = r.relnamespace) AND (r.oid = a.attrelid) AND (d.refclassid = ('pg_class'::regclass)::oid) AND (d.refobjid = r.oid) AND (d.refobjsubid = a.attnum) AND (d.classid = ('pg_constraint'::regclass)::oid) AND (d.objid = c.oid) AND (c.connamespace = nc.oid) AND (c.contype = 'c'::"char") AND (r.relkind = ANY (ARRAY['r'::"char", 'p'::"char"])) AND (NOT a.attisdropped)) UNION ALL SELECT nr.nspname, r.relname, a.attname, c.conname FROM pg_namespace nr, pg_class r, pg_attribute a, pg_namespace nc, pg_constraint c WHERE ((nr.oid = r.relnamespace) AND (r.oid = a.attrelid) AND (nc.oid = c.connamespace) AND (r.oid = CASE c.contype WHEN 'f'::"char" THEN c.confrelid ELSE c.conrelid END) AND (a.attnum = ANY ( CASE c.contype WHEN 'f'::"char" THEN c.confkey ELSE c.conkey END)) AND (NOT a.attisdropped) AND (c.contype = ANY (ARRAY['p'::"char", 'u'::"char", 'f'::"char"])) AND (r.relkind = ANY (ARRAY['r'::"char", 'p'::"char"])))) x(tblschema, tblname, colname, cstrname)) constraint_column_usage ON ((((tc.constraint_name)::text = (constraint_column_usage.constraint_name)::text) AND ((tc.table_schema)::text = (constraint_column_usage.table_schema)::text) AND ((tc.table_name)::text = (constraint_column_usage.table_name)::text)))) WHERE ((tc.constraint_type)::text = 'PRIMARY KEY'::text) GROUP BY tc.table_schema, tc.table_name, tc.constraint_name; ALTER TABLE hdb_catalog.hdb_primary_key OWNER TO hasurauser; -- -- Name: hdb_query_collection; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_query_collection ( collection_name text NOT NULL, collection_defn jsonb NOT NULL, comment text, is_system_defined boolean DEFAULT false ); ALTER TABLE hdb_catalog.hdb_query_collection OWNER TO hasurauser; -- -- Name: hdb_relationship; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_relationship ( table_schema name NOT NULL, table_name name NOT NULL, rel_name text NOT NULL, rel_type text, rel_def jsonb NOT NULL, comment text, is_system_defined boolean DEFAULT false, CONSTRAINT hdb_relationship_rel_type_check CHECK ((rel_type = ANY (ARRAY['object'::text, 'array'::text]))) ); ALTER TABLE hdb_catalog.hdb_relationship OWNER TO hasurauser; -- -- Name: hdb_role; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_role AS SELECT DISTINCT q.role_name FROM ( SELECT hdb_permission.role_name FROM hdb_catalog.hdb_permission UNION ALL SELECT hdb_action_permission.role_name FROM hdb_catalog.hdb_action_permission) q; ALTER TABLE hdb_catalog.hdb_role OWNER TO hasurauser; -- -- Name: hdb_schema_update_event; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_schema_update_event ( instance_id uuid NOT NULL, occurred_at timestamp with time zone DEFAULT now() NOT NULL, invalidations json NOT NULL ); ALTER TABLE hdb_catalog.hdb_schema_update_event OWNER TO hasurauser; -- -- Name: hdb_table; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_table ( table_schema name NOT NULL, table_name name NOT NULL, configuration jsonb, is_system_defined boolean DEFAULT false, is_enum boolean DEFAULT false NOT NULL ); ALTER TABLE hdb_catalog.hdb_table OWNER TO hasurauser; -- -- Name: hdb_table_info_agg; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_table_info_agg AS SELECT schema.nspname AS table_schema, "table".relname AS table_name, jsonb_build_object('oid', ("table".oid)::integer, 'columns', COALESCE(columns.info, '[]'::jsonb), 'primary_key', primary_key.info, 'unique_constraints', COALESCE(unique_constraints.info, '[]'::jsonb), 'foreign_keys', COALESCE(foreign_key_constraints.info, '[]'::jsonb), 'view_info', CASE "table".relkind WHEN 'v'::"char" THEN jsonb_build_object('is_updatable', ((pg_relation_is_updatable(("table".oid)::regclass, true) & 4) = 4), 'is_insertable', ((pg_relation_is_updatable(("table".oid)::regclass, true) & 8) = 8), 'is_deletable', ((pg_relation_is_updatable(("table".oid)::regclass, true) & 16) = 16)) ELSE NULL::jsonb END, 'description', description.description) AS info FROM ((((((pg_class "table" JOIN pg_namespace schema ON ((schema.oid = "table".relnamespace))) LEFT JOIN pg_description description ON (((description.classoid = ('pg_class'::regclass)::oid) AND (description.objoid = "table".oid) AND (description.objsubid = 0)))) LEFT JOIN LATERAL ( SELECT jsonb_agg(jsonb_build_object('name', "column".attname, 'position', "column".attnum, 'type', COALESCE(base_type.typname, type.typname), 'is_nullable', (NOT "column".attnotnull), 'description', col_description("table".oid, ("column".attnum)::integer))) AS info FROM ((pg_attribute "column" LEFT JOIN pg_type type ON ((type.oid = "column".atttypid))) LEFT JOIN pg_type base_type ON (((type.typtype = 'd'::"char") AND (base_type.oid = type.typbasetype)))) WHERE (("column".attrelid = "table".oid) AND ("column".attnum > 0) AND (NOT "column".attisdropped))) columns ON (true)) LEFT JOIN LATERAL ( SELECT jsonb_build_object('constraint', jsonb_build_object('name', class.relname, 'oid', (class.oid)::integer), 'columns', COALESCE(columns_1.info, '[]'::jsonb)) AS info FROM ((pg_index index JOIN pg_class class ON ((class.oid = index.indexrelid))) LEFT JOIN LATERAL ( SELECT jsonb_agg("column".attname) AS info FROM pg_attribute "column" WHERE (("column".attrelid = "table".oid) AND ("column".attnum = ANY ((index.indkey)::smallint[])))) columns_1 ON (true)) WHERE ((index.indrelid = "table".oid) AND index.indisprimary)) primary_key ON (true)) LEFT JOIN LATERAL ( SELECT jsonb_agg(jsonb_build_object('name', class.relname, 'oid', (class.oid)::integer)) AS info FROM (pg_index index JOIN pg_class class ON ((class.oid = index.indexrelid))) WHERE ((index.indrelid = "table".oid) AND index.indisunique AND (NOT index.indisprimary))) unique_constraints ON (true)) LEFT JOIN LATERAL ( SELECT jsonb_agg(jsonb_build_object('constraint', jsonb_build_object('name', foreign_key.constraint_name, 'oid', foreign_key.constraint_oid), 'columns', foreign_key.columns, 'foreign_table', jsonb_build_object('schema', foreign_key.ref_table_table_schema, 'name', foreign_key.ref_table), 'foreign_columns', foreign_key.ref_columns)) AS info FROM hdb_catalog.hdb_foreign_key_constraint foreign_key WHERE ((foreign_key.table_schema = (schema.nspname)::text) AND (foreign_key.table_name = ("table".relname)::text))) foreign_key_constraints ON (true)) WHERE ("table".relkind = ANY (ARRAY['r'::"char", 't'::"char", 'v'::"char", 'm'::"char", 'f'::"char", 'p'::"char"])); ALTER TABLE hdb_catalog.hdb_table_info_agg OWNER TO hasurauser; -- -- Name: hdb_unique_constraint; Type: VIEW; Schema: hdb_catalog; Owner: hasurauser -- CREATE VIEW hdb_catalog.hdb_unique_constraint AS SELECT tc.table_name, tc.constraint_schema AS table_schema, tc.constraint_name, json_agg(kcu.column_name) AS columns FROM (information_schema.table_constraints tc JOIN information_schema.key_column_usage kcu USING (constraint_schema, constraint_name)) WHERE ((tc.constraint_type)::text = 'UNIQUE'::text) GROUP BY tc.table_name, tc.constraint_schema, tc.constraint_name; ALTER TABLE hdb_catalog.hdb_unique_constraint OWNER TO hasurauser; -- -- Name: hdb_version; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.hdb_version ( hasura_uuid uuid DEFAULT public.gen_random_uuid() NOT NULL, version text NOT NULL, upgraded_on timestamp with time zone NOT NULL, cli_state jsonb DEFAULT '{}'::jsonb NOT NULL, console_state jsonb DEFAULT '{}'::jsonb NOT NULL ); ALTER TABLE hdb_catalog.hdb_version OWNER TO hasurauser; -- -- Name: remote_schemas; Type: TABLE; Schema: hdb_catalog; Owner: hasurauser -- CREATE TABLE hdb_catalog.remote_schemas ( id bigint NOT NULL, name text, definition json, comment text ); ALTER TABLE hdb_catalog.remote_schemas OWNER TO hasurauser; -- -- Name: remote_schemas_id_seq; Type: SEQUENCE; Schema: hdb_catalog; Owner: hasurauser -- CREATE SEQUENCE hdb_catalog.remote_schemas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE hdb_catalog.remote_schemas_id_seq OWNER TO hasurauser; -- -- Name: remote_schemas_id_seq; Type: SEQUENCE OWNED BY; Schema: hdb_catalog; Owner: hasurauser -- ALTER SEQUENCE hdb_catalog.remote_schemas_id_seq OWNED BY hdb_catalog.remote_schemas.id; -- -- Name: remote_schemas id; Type: DEFAULT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.remote_schemas ALTER COLUMN id SET DEFAULT nextval('hdb_catalog.remote_schemas_id_seq'::regclass); -- -- Data for Name: event_invocation_logs; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.event_invocation_logs (id, event_id, status, request, response, created_at) FROM stdin; \. -- -- Data for Name: event_log; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.event_log (id, schema_name, table_name, trigger_name, payload, delivered, error, tries, created_at, locked, next_retry_at, archived) FROM stdin; \. -- -- Data for Name: event_triggers; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.event_triggers (name, type, schema_name, table_name, configuration, comment) FROM stdin; \. -- -- Data for Name: hdb_action; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_action (action_name, action_defn, comment, is_system_defined) FROM stdin; \. -- -- Data for Name: hdb_action_log; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_action_log (id, action_name, input_payload, request_headers, session_variables, response_payload, errors, created_at, response_received_at, status) FROM stdin; \. -- -- Data for Name: hdb_action_permission; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_action_permission (action_name, role_name, definition, comment) FROM stdin; \. -- -- Data for Name: hdb_allowlist; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_allowlist (collection_name) FROM stdin; \. -- -- Data for Name: hdb_computed_field; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_computed_field (table_schema, table_name, computed_field_name, definition, comment) FROM stdin; \. -- -- Data for Name: hdb_custom_types; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_custom_types (custom_types) FROM stdin; \. -- -- Data for Name: hdb_function; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_function (function_schema, function_name, configuration, is_system_defined) FROM stdin; \. -- -- Data for Name: hdb_permission; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_permission (table_schema, table_name, role_name, perm_type, perm_def, comment, is_system_defined) FROM stdin; \. -- -- Data for Name: hdb_query_collection; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_query_collection (collection_name, collection_defn, comment, is_system_defined) FROM stdin; \. -- -- Data for Name: hdb_relationship; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_relationship (table_schema, table_name, rel_name, rel_type, rel_def, comment, is_system_defined) FROM stdin; hdb_catalog hdb_table detail object {"manual_configuration": {"remote_table": {"name": "tables", "schema": "information_schema"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table primary_key object {"manual_configuration": {"remote_table": {"name": "hdb_primary_key", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table columns array {"manual_configuration": {"remote_table": {"name": "columns", "schema": "information_schema"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table foreign_key_constraints array {"manual_configuration": {"remote_table": {"name": "hdb_foreign_key_constraint", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table relationships array {"manual_configuration": {"remote_table": {"name": "hdb_relationship", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table permissions array {"manual_configuration": {"remote_table": {"name": "hdb_permission_agg", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table computed_fields array {"manual_configuration": {"remote_table": {"name": "hdb_computed_field", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table check_constraints array {"manual_configuration": {"remote_table": {"name": "hdb_check_constraint", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog hdb_table unique_constraints array {"manual_configuration": {"remote_table": {"name": "hdb_unique_constraint", "schema": "hdb_catalog"}, "column_mapping": {"table_name": "table_name", "table_schema": "table_schema"}}} \N t hdb_catalog event_triggers events array {"manual_configuration": {"remote_table": {"name": "event_log", "schema": "hdb_catalog"}, "column_mapping": {"name": "trigger_name"}}} \N t hdb_catalog event_log trigger object {"manual_configuration": {"remote_table": {"name": "event_triggers", "schema": "hdb_catalog"}, "column_mapping": {"trigger_name": "name"}}} \N t hdb_catalog event_log logs array {"foreign_key_constraint_on": {"table": {"name": "event_invocation_logs", "schema": "hdb_catalog"}, "column": "event_id"}} \N t hdb_catalog event_invocation_logs event object {"foreign_key_constraint_on": "event_id"} \N t hdb_catalog hdb_function_agg return_table_info object {"manual_configuration": {"remote_table": {"name": "hdb_table", "schema": "hdb_catalog"}, "column_mapping": {"return_type_name": "table_name", "return_type_schema": "table_schema"}}} \N t hdb_catalog hdb_action permissions array {"manual_configuration": {"remote_table": {"name": "hdb_action_permission", "schema": "hdb_catalog"}, "column_mapping": {"action_name": "action_name"}}} \N t hdb_catalog hdb_role action_permissions array {"manual_configuration": {"remote_table": {"name": "hdb_action_permission", "schema": "hdb_catalog"}, "column_mapping": {"role_name": "role_name"}}} \N t hdb_catalog hdb_role permissions array {"manual_configuration": {"remote_table": {"name": "hdb_permission_agg", "schema": "hdb_catalog"}, "column_mapping": {"role_name": "role_name"}}} \N t public mouse_gene mouse_gene_synonym_relations array {"foreign_key_constraint_on": {"table": {"name": "mouse_gene_synonym_relation", "schema": "public"}, "column": "mouse_gene_id"}} \N f public human_gene_synonym_relation human_gene_synonym object {"foreign_key_constraint_on": "human_gene_synonym_id"} \N f public human_gene_synonym_relation human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public human_gene_synonym human_gene_synonym_relations array {"foreign_key_constraint_on": {"table": {"name": "human_gene_synonym_relation", "schema": "public"}, "column": "human_gene_synonym_id"}} \N f public human_gene gnomad_plofs array {"foreign_key_constraint_on": {"table": {"name": "gnomad_plof", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene achilles_gene_effects array {"foreign_key_constraint_on": {"table": {"name": "achilles_gene_effect", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene clingens array {"foreign_key_constraint_on": {"table": {"name": "clingen", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene orthologs array {"foreign_key_constraint_on": {"table": {"name": "ortholog", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene human_mapping_filters array {"foreign_key_constraint_on": {"table": {"name": "human_mapping_filter", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene human_gene_synonym_relations array {"foreign_key_constraint_on": {"table": {"name": "human_gene_synonym_relation", "schema": "public"}, "column": "human_gene_id"}} \N f public mouse_gene orthologs array {"foreign_key_constraint_on": {"table": {"name": "ortholog", "schema": "public"}, "column": "mouse_gene_id"}} \N f public mouse_gene impc_adult_viabilities array {"foreign_key_constraint_on": {"table": {"name": "impc_adult_viability", "schema": "public"}, "column": "mouse_gene_id"}} \N f public mouse_gene impc_significant_phenotypes array {"foreign_key_constraint_on": {"table": {"name": "impc_significant_phenotype", "schema": "public"}, "column": "mouse_gene_id"}} \N f public mouse_gene_synonym mouse_gene_synonym_relations array {"foreign_key_constraint_on": {"table": {"name": "mouse_gene_synonym_relation", "schema": "public"}, "column": "mouse_gene_synonym_id"}} \N f public mouse_gene_synonym_relation mouse_gene_synonym object {"foreign_key_constraint_on": "mouse_gene_synonym_id"} \N f public mouse_mapping_filter mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public pharos human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public idg human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public achillies_cell_types achilles_gene_effect_raws array {"foreign_key_constraint_on": {"table": {"name": "achilles_gene_effect_raw", "schema": "public"}, "column": "cell_type_name_id"}} \N f public achilles_gene_effect_raw achilles_gene_effects array {"foreign_key_constraint_on": {"table": {"name": "achilles_gene_effect", "schema": "public"}, "column": "raw_data_id"}} \N f public gnomad_plof human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public impc_adult_viability mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public impc_count mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public human_gene idgs array {"foreign_key_constraint_on": {"table": {"name": "idg", "schema": "public"}, "column": "human_gene_id"}} \N f public human_gene pharos array {"foreign_key_constraint_on": {"table": {"name": "pharos", "schema": "public"}, "column": "human_gene_id"}} \N f public mouse_gene impc_embryo_viabilities array {"foreign_key_constraint_on": {"table": {"name": "impc_embryo_viability", "schema": "public"}, "column": "mouse_gene_id"}} \N f public mouse_gene impc_counts array {"foreign_key_constraint_on": {"table": {"name": "impc_count", "schema": "public"}, "column": "mouse_gene_id"}} \N f public mouse_gene_synonym_relation mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public human_gene hgnc_genes array {"foreign_key_constraint_on": {"table": {"name": "hgnc_gene", "schema": "public"}, "column": "human_gene_id"}} \N f public hgnc_gene human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public ortholog human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public ortholog mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public ortholog fusils array {"foreign_key_constraint_on": {"table": {"name": "fusil", "schema": "public"}, "column": "ortholog_id"}} \N f public clingen human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public achilles_gene_effect_raw achillies_cell_type object {"foreign_key_constraint_on": "cell_type_name_id"} \N f public achilles_gene_effect human_gene object {"foreign_key_constraint_on": "human_gene_id"} \N f public achilles_gene_effect achilles_gene_effect_raw object {"foreign_key_constraint_on": "raw_data_id"} \N f public impc_embryo_viability mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public impc_significant_phenotype mouse_gene object {"foreign_key_constraint_on": "mouse_gene_id"} \N f public fusil ortholog object {"foreign_key_constraint_on": "ortholog_id"} \N f \. -- -- Data for Name: hdb_schema_update_event; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_schema_update_event (instance_id, occurred_at, invalidations) FROM stdin; e3624410-8dfb-4998-aa16-e25c618368db 2020-06-19 08:45:50.97431+00 {"metadata":false,"remote_schemas":[]} \. -- -- Data for Name: hdb_table; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_table (table_schema, table_name, configuration, is_system_defined, is_enum) FROM stdin; information_schema tables {"custom_root_fields": {}, "custom_column_names": {}} t f information_schema schemata {"custom_root_fields": {}, "custom_column_names": {}} t f information_schema views {"custom_root_fields": {}, "custom_column_names": {}} t f information_schema columns {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_table {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_primary_key {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_foreign_key_constraint {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_relationship {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_permission_agg {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_computed_field {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_check_constraint {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_unique_constraint {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog event_triggers {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog event_log {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog event_invocation_logs {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_function {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_function_agg {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog remote_schemas {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_version {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_query_collection {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_allowlist {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_custom_types {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_action_permission {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_action {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_action_log {"custom_root_fields": {}, "custom_column_names": {}} t f hdb_catalog hdb_role {"custom_root_fields": {}, "custom_column_names": {}} t f public hgnc_gene {"custom_root_fields": {}, "custom_column_names": {}} f f public human_gene {"custom_root_fields": {}, "custom_column_names": {}} f f public human_gene_synonym {"custom_root_fields": {}, "custom_column_names": {}} f f public human_gene_synonym_relation {"custom_root_fields": {}, "custom_column_names": {}} f f public human_mapping_filter {"custom_root_fields": {}, "custom_column_names": {}} f f public mouse_gene {"custom_root_fields": {}, "custom_column_names": {}} f f public mouse_gene_synonym {"custom_root_fields": {}, "custom_column_names": {}} f f public mouse_gene_synonym_relation {"custom_root_fields": {}, "custom_column_names": {}} f f public mouse_mapping_filter {"custom_root_fields": {}, "custom_column_names": {}} f f public ortholog {"custom_root_fields": {}, "custom_column_names": {}} f f public idg {"custom_root_fields": {}, "custom_column_names": {}} f f public pharos {"custom_root_fields": {}, "custom_column_names": {}} f f public clingen {"custom_root_fields": {}, "custom_column_names": {}} f f public achillies_cell_types {"custom_root_fields": {}, "custom_column_names": {}} f f public achilles_gene_effect_raw {"custom_root_fields": {}, "custom_column_names": {}} f f public achilles_gene_effect {"custom_root_fields": {}, "custom_column_names": {}} f f public gnomad_plof {"custom_root_fields": {}, "custom_column_names": {}} f f public impc_embryo_viability {"custom_root_fields": {}, "custom_column_names": {}} f f public impc_adult_viability {"custom_root_fields": {}, "custom_column_names": {}} f f public impc_significant_phenotype {"custom_root_fields": {}, "custom_column_names": {}} f f public impc_statistical_result {"custom_root_fields": {}, "custom_column_names": {}} f f public impc_count {"custom_root_fields": {}, "custom_column_names": {}} f f public fusil {"custom_root_fields": {}, "custom_column_names": {}} f f \. -- -- Data for Name: hdb_version; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.hdb_version (hasura_uuid, version, upgraded_on, cli_state, console_state) FROM stdin; 1f4cfebd-11ff-4dc5-b83f-dfdba4b2c0bb 34 2020-06-19 08:43:44.702854+00 {} {"telemetryNotificationShown": true} \. -- -- Data for Name: remote_schemas; Type: TABLE DATA; Schema: hdb_catalog; Owner: hasurauser -- COPY hdb_catalog.remote_schemas (id, name, definition, comment) FROM stdin; \. -- -- Name: remote_schemas_id_seq; Type: SEQUENCE SET; Schema: hdb_catalog; Owner: hasurauser -- SELECT pg_catalog.setval('hdb_catalog.remote_schemas_id_seq', 1, false); -- -- Name: event_invocation_logs event_invocation_logs_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.event_invocation_logs ADD CONSTRAINT event_invocation_logs_pkey PRIMARY KEY (id); -- -- Name: event_log event_log_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.event_log ADD CONSTRAINT event_log_pkey PRIMARY KEY (id); -- -- Name: event_triggers event_triggers_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.event_triggers ADD CONSTRAINT event_triggers_pkey PRIMARY KEY (name); -- -- Name: hdb_action_log hdb_action_log_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_action_log ADD CONSTRAINT hdb_action_log_pkey PRIMARY KEY (id); -- -- Name: hdb_action_permission hdb_action_permission_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_action_permission ADD CONSTRAINT hdb_action_permission_pkey PRIMARY KEY (action_name, role_name); -- -- Name: hdb_action hdb_action_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_action ADD CONSTRAINT hdb_action_pkey PRIMARY KEY (action_name); -- -- Name: hdb_allowlist hdb_allowlist_collection_name_key; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_allowlist ADD CONSTRAINT hdb_allowlist_collection_name_key UNIQUE (collection_name); -- -- Name: hdb_computed_field hdb_computed_field_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_computed_field ADD CONSTRAINT hdb_computed_field_pkey PRIMARY KEY (table_schema, table_name, computed_field_name); -- -- Name: hdb_function hdb_function_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_function ADD CONSTRAINT hdb_function_pkey PRIMARY KEY (function_schema, function_name); -- -- Name: hdb_permission hdb_permission_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_permission ADD CONSTRAINT hdb_permission_pkey PRIMARY KEY (table_schema, table_name, role_name, perm_type); -- -- Name: hdb_query_collection hdb_query_collection_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_query_collection ADD CONSTRAINT hdb_query_collection_pkey PRIMARY KEY (collection_name); -- -- Name: hdb_relationship hdb_relationship_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_relationship ADD CONSTRAINT hdb_relationship_pkey PRIMARY KEY (table_schema, table_name, rel_name); -- -- Name: hdb_table hdb_table_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_table ADD CONSTRAINT hdb_table_pkey PRIMARY KEY (table_schema, table_name); -- -- Name: hdb_version hdb_version_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_version ADD CONSTRAINT hdb_version_pkey PRIMARY KEY (hasura_uuid); -- -- Name: remote_schemas remote_schemas_name_key; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.remote_schemas ADD CONSTRAINT remote_schemas_name_key UNIQUE (name); -- -- Name: remote_schemas remote_schemas_pkey; Type: CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.remote_schemas ADD CONSTRAINT remote_schemas_pkey PRIMARY KEY (id); -- -- Name: event_invocation_logs_event_id_idx; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE INDEX event_invocation_logs_event_id_idx ON hdb_catalog.event_invocation_logs USING btree (event_id); -- -- Name: event_log_created_at_idx; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE INDEX event_log_created_at_idx ON hdb_catalog.event_log USING btree (created_at); -- -- Name: event_log_delivered_idx; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE INDEX event_log_delivered_idx ON hdb_catalog.event_log USING btree (delivered); -- -- Name: event_log_locked_idx; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE INDEX event_log_locked_idx ON hdb_catalog.event_log USING btree (locked); -- -- Name: event_log_trigger_name_idx; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE INDEX event_log_trigger_name_idx ON hdb_catalog.event_log USING btree (trigger_name); -- -- Name: hdb_schema_update_event_one_row; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE UNIQUE INDEX hdb_schema_update_event_one_row ON hdb_catalog.hdb_schema_update_event USING btree (((occurred_at IS NOT NULL))); -- -- Name: hdb_version_one_row; Type: INDEX; Schema: hdb_catalog; Owner: hasurauser -- CREATE UNIQUE INDEX hdb_version_one_row ON hdb_catalog.hdb_version USING btree (((version IS NOT NULL))); -- -- Name: hdb_schema_update_event hdb_schema_update_event_notifier; Type: TRIGGER; Schema: hdb_catalog; Owner: hasurauser -- CREATE TRIGGER hdb_schema_update_event_notifier AFTER INSERT OR UPDATE ON hdb_catalog.hdb_schema_update_event FOR EACH ROW EXECUTE PROCEDURE hdb_catalog.hdb_schema_update_event_notifier(); -- -- Name: event_invocation_logs event_invocation_logs_event_id_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.event_invocation_logs ADD CONSTRAINT event_invocation_logs_event_id_fkey FOREIGN KEY (event_id) REFERENCES hdb_catalog.event_log(id); -- -- Name: event_triggers event_triggers_schema_name_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.event_triggers ADD CONSTRAINT event_triggers_schema_name_fkey FOREIGN KEY (schema_name, table_name) REFERENCES hdb_catalog.hdb_table(table_schema, table_name) ON UPDATE CASCADE; -- -- Name: hdb_action_permission hdb_action_permission_action_name_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_action_permission ADD CONSTRAINT hdb_action_permission_action_name_fkey FOREIGN KEY (action_name) REFERENCES hdb_catalog.hdb_action(action_name) ON UPDATE CASCADE; -- -- Name: hdb_allowlist hdb_allowlist_collection_name_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_allowlist ADD CONSTRAINT hdb_allowlist_collection_name_fkey FOREIGN KEY (collection_name) REFERENCES hdb_catalog.hdb_query_collection(collection_name); -- -- Name: hdb_computed_field hdb_computed_field_table_schema_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_computed_field ADD CONSTRAINT hdb_computed_field_table_schema_fkey FOREIGN KEY (table_schema, table_name) REFERENCES hdb_catalog.hdb_table(table_schema, table_name) ON UPDATE CASCADE; -- -- Name: hdb_permission hdb_permission_table_schema_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_permission ADD CONSTRAINT hdb_permission_table_schema_fkey FOREIGN KEY (table_schema, table_name) REFERENCES hdb_catalog.hdb_table(table_schema, table_name) ON UPDATE CASCADE; -- -- Name: hdb_relationship hdb_relationship_table_schema_fkey; Type: FK CONSTRAINT; Schema: hdb_catalog; Owner: hasurauser -- ALTER TABLE ONLY hdb_catalog.hdb_relationship ADD CONSTRAINT hdb_relationship_table_schema_fkey FOREIGN KEY (table_schema, table_name) REFERENCES hdb_catalog.hdb_table(table_schema, table_name) ON UPDATE CASCADE; -- -- PostgreSQL database dump complete -- -- -- Change the access to hdb_catalog tables -- REVOKE ALL ON hdb_catalog.hdb_table FROM hasurauser; GRANT SELECT ON hdb_catalog.hdb_table TO hasurauser; REVOKE ALL ON hdb_catalog.hdb_relationship FROM hasurauser; GRANT SELECT ON hdb_catalog.hdb_relationship TO hasurauser; REVOKE ALL ON hdb_catalog.hdb_permission FROM hasurauser; GRANT SELECT ON hdb_catalog.hdb_permission TO hasurauser;
INSERT INTO DateEvent ( timestamp, id ) VALUES ( '16:51:58', 1 )
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. CREATE PROCEDURE [dbo].[UpdatePaths] @SystemItemId uniqueidentifier AS Declare @ParentDomainItemPath NVARCHAR(MAX) Declare @ParentDomainItemPathIds NVARCHAR(MAX) Declare @ParentIsExtendedPath NVARCHAR(MAX) SELECT @ParentDomainItemPath = parent.DomainItemPath, @ParentDomainItemPathIds = parent.DomainItemPathIds, @ParentIsExtendedPath = parent.IsExtendedPath FROM SystemItem child JOIN SystemItem parent on child.ParentSystemItemId = parent.SystemItemId WHERE child.SystemItemId = @SystemItemId BEGIN with result as ( SELECT CASE WHEN @ParentDomainItemPath is NULL THEN CAST(ItemName as nvarchar(max)) ELSE @ParentDomainItemPath + '.' + ItemName END as DomainItemPath, CASE WHEN @ParentDomainItemPathIds is NULL THEN CAST(SystemItemId as nvarchar(max)) ELSE @ParentDomainItemPathIds + '/' + CAST(SystemItemId as nvarchar(50)) END as DomainItemPathIds, SystemItemId as ElementGroupId, CASE WHEN @ParentIsExtendedPath is NULL THEN CAST(IsExtended as nvarchar(max)) ELSE @ParentIsExtendedPath + '/' + CAST(IsExtended as nvarchar(1)) END as IsExtendedPath, ParentSystemItemId, SystemItemId FROM dbo.SystemItem WHERE SystemItemId = @SystemItemId UNION all SELECT result.DomainItemPath + '.' + i2.ItemName, result.DomainItemPathIds + '/' + CAST(i2.SystemItemId AS VARCHAR(50)), result.ElementGroupId, result.IsExtendedPath + '/' + CAST(i2.IsExtended AS VARCHAR(1)), i2.ParentSystemItemId, i2.SystemItemId FROM SystemItem AS i2 inner join result ON result.SystemItemId = i2.ParentSystemItemId) UPDATE si SET si.DomainItemPath = paths.DomainItemPath, si.DomainItemPathIds = paths.DomainItemPathIds, si.IsExtendedPath = paths.IsExtendedPath, si.ElementGroupSystemItemId = paths.ElementGroupId FROM SystemItem si JOIN result paths on si.SystemItemId = paths.SystemItemId; END
<gh_stars>1-10 CREATE OR REPLACE FUNCTION public.mfg_model_manager_update_fn(v_model_id text) RETURNS TABLE(t_model_id character varying, t_keypart character varying, t_mask_rule character varying, t_category_id character varying, t_plant_code character varying, t_sap_changed_date character varying, t_spanish_desc character varying, t_fracc_nico character varying, t_uom_value character varying, t_hst_code character varying, t_fracc_digits character varying, t_technical_desc character varying) LANGUAGE plpgsql AS $function$ BEGIN RETURN QUERY SELECT a.model_id , CAST(a.keypart AS VARCHAR(50)), a.mask_rule, a.category_id , a.plant_code , CAST(c.sap_change AS VARCHAR(50)), b.spanish_description , b.fracc_nico , b.uom_value , b.hst_usa, b.fracc_digits , b.technical_description FROM mfg_materialmaster a INNER JOIN mfg_materialdatarelated b ON a.model_id = b.model_id INNER JOIN (SELECT model_id, TO_CHAR(sap_change_date, 'YYYY-MM-DD') || ' ' || TO_CHAR(sap_change_time, 'HH:MM:SS') sap_change FROM mfg_materialmaster) c ON a.model_id = c.model_id WHERE a.model_id = v_model_id; END; $function$ ;
CREATE TABLE IF NOT EXISTS selectors ( resource_group_id BIGINT NOT NULL, priority BIGINT NOT NULL, user_regex VARCHAR(512), source_regex VARCHAR(512), query_type VARCHAR(512), client_tags VARCHAR(512), selector_resource_estimate VARCHAR(1024), FOREIGN KEY (resource_group_id) REFERENCES resource_groups (resource_group_id) ON DELETE CASCADE );
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : event Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-08-17 00:36:08 */ -- ---------------------------- -- Table structure for event_log -- ---------------------------- DROP TABLE IF EXISTS `event_log`; CREATE TABLE `event_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '事件日志ID', `event` int(11) NOT NULL COMMENT '事件ID', `user` varchar(32) NOT NULL DEFAULT '0' COMMENT '用户', `data` longtext NOT NULL COMMENT 'json数据', `ip` varchar(32) NOT NULL COMMENT 'ip地址', `created` int(11) NOT NULL COMMENT '事件创建时间', PRIMARY KEY (`id`), UNIQUE KEY `module_type` (`id`,`event`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='事件日志'; -- ---------------------------- -- Records of event_log -- ---------------------------- -- ---------------------------- -- Table structure for event_module -- ---------------------------- DROP TABLE IF EXISTS `event_module_log`; CREATE TABLE `event_module_log` ( `mid` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `module_name` varchar(64) DEFAULT NULL COMMENT '模块', `event_id` tinyint(4) DEFAULT NULL COMMENT '事件ID', `event_log_last_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后执行的event_log.id', `event_log_ids` longtext COMMENT 'event_log表:未执行的ids"逗号分隔",示例(1,2,3,4,5)', PRIMARY KEY (`mid`), UNIQUE KEY `unique` (`module_name`,`event_id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='事件模块执行记录';; -- ---------------------------- -- Records of event_module -- ----------------------------
ALTER TABLE `jobContainer` CHANGE COLUMN `policenumber` `policenumber` VARCHAR(16) NULL DEFAULT NULL ;
update tb_ordem_servico set tp_situacao = 2 where nu_ordem_servico in (974, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1021, 1022, 1024, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1050, 1052, 1053, 1054, 1056, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1082, 1083, 1084, 1025, 1026, 1088, 1089, 1092, 1093, 1094, 1095, 1096, 1099, 1101, 1102, 1103, 1104);
--test for preparestatement query including simple operation with ? (chartype) --+ holdcas on; create class xoo ( a int, b string ); insert into xoo values(1,'1'); insert into xoo values(1,'11'); insert into xoo values(1,'3'); insert into xoo values(2, '2'); insert into xoo values(3, '3'); $varchar, $1, $varchar, $1; select a,b from xoo where b || 1 = ? + ?; $int, $1, $int, $1; select a,b from xoo where b || 1 = ? + ?; $int, $1, $int, $1; select a,b from xoo where b || 1 = ? || ?; $int, $1, $int, $1; select a,b from xoo where ? = ? order by 1,2; $varchar, $1, $varchar, $1; select a,b from xoo where (? + ?) = b order by 1,2; $varchar, $1, $varchar, $1; select a,b from xoo where (? + ?) = '11' order by 1,2; $int, $1, $int, $1; select * from xoo where ? + ? = b order by 1,2; $int, $1,$int, $1,$int, $1,$int, $1,$int, $1,$int, $1; select a,b from xoo where (? + ? + ((? + ?) + ?) + ? + ?) = '111111' order by 1,2; drop xoo; commit; --+ holdcas off;
-- @testpoint:opengauss关键字lock(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists lock; create database lock; drop database lock; --关键字带双引号-成功 drop database if exists "lock"; create database "lock"; drop database "lock"; --关键字带单引号-合理报错 drop database if exists 'lock'; create database 'lock'; --关键字带反引号-合理报错 drop database if exists `lock`; create database `lock`;
USE [CommonBookings] GO /* Common bookings upgrade script */ /* checks the upgrade_log table. if we've already run this script, it will set noexec on which means it does nothing meaningful at all */ if exists(select 0 from upgrade_log where version = '1.0.1') begin set noexec on end go /* put statements here */ GO /* record successful upgrade here */ insert into upgrade_log(version, features, applied) values ('1.0.1','Change_booking proc',getdate()) go set noexec off
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'AdventureWorksLT 2012 Sample OLTP Database'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary filegroup for the AdventureWorks sample database.', @level0type = N'FILEGROUP', @level0name = N'PRIMARY';
INSERT INTO Grade VALUES('1','Intern','ITN','1','3'); INSERT INTO Grade VALUES('2','Admin Assistant','ADMIN','2','6'); INSERT INTO Grade VALUES('3','Admin Supervisor','ADMSUP','5','11'); INSERT INTO Grade VALUES('4','Admin Office Manager','ADMMGR','10','15'); INSERT INTO Grade VALUES('5','Receptionist','RECEP','3','8'); INSERT INTO Grade VALUES('6','Security','SEC','4','9'); INSERT INTO Grade VALUES('7','Security Team Leader','SECTL','6','10'); INSERT INTO Grade VALUES('8','Widget Maker','WIDGET','6','15'); INSERT INTO Grade VALUES('9','Senior Engineer','SNRENG','10','20'); INSERT INTO Grade VALUES('10','Production Manager','PRODMGR','11','21'); INSERT INTO Grade VALUES('11','Senior Manager','SNRMGR','15','30'); INSERT INTO Grade VALUES('12','Director','DIR','12','30'); INSERT INTO Employee VALUES('1','Dr','Daniel','Dare','<EMAIL>','2005-05-13','2009-01-12','0','','12',NULL); INSERT INTO Employee VALUES('2','Lady','Sarah','Important','<EMAIL>','2005-06-15',NULL,'1','','12',NULL); INSERT INTO Employee VALUES('3','Ms','Alice','Alive','<EMAIL>','2010-06-15',NULL,'1','','10','2'); INSERT INTO Employee VALUES('4','Dr','Xander','Mander','<EMAIL>','2010-04-18',NULL,'1','555-1234','9','3'); INSERT INTO Employee VALUES('5','Professor','Jenny','Generator','<EMAIL>','2011-12-23',NULL,'1','','8','4'); INSERT INTO Employee VALUES('6','Ms','Gemma','Hardasnails','<EMAIL>','2011-08-13',NULL,'1','2222','7','2'); INSERT INTO Employee VALUES('7','HRH','Prince','Caspian','<EMAIL>','2017-09-01',NULL,'1','000-111','4','5'); INSERT INTO Employee VALUES('8','Mr','Brian','Knuckles','<EMAIL>','2008-07-01','2010-09-30','0','','6','6'); INSERT INTO Employee VALUES('9','Mr','Bob','Punch','<EMAIL>','2008-07-01',NULL,'1','2222','6','6'); INSERT INTO Employee VALUES('10','Mrs','Natalie','Nononsense','<EMAIL>','2010-10-13',NULL,'1','2222','6','6'); INSERT INTO Employee VALUES('11','Mr','Euan','Young','<EMAIL>','2017-11-01',NULL,'1','','1','7'); INSERT INTO FileItem VALUES('1','Royal crown','Vault C','7'); INSERT INTO FileItem VALUES('2','Letter of commendation','S:\HR\Employees\Commendation-787.docx','10'); INSERT INTO Skill VALUES('3','Cage Fighting'); INSERT INTO Skill VALUES('9','Copy writing'); INSERT INTO Skill VALUES('2','Database Design'); INSERT INTO Skill VALUES('10','Flemish Horse Riding'); INSERT INTO Skill VALUES('1','SQL'); INSERT INTO Skill VALUES('4','Unicycling'); INSERT INTO Skill VALUES('7','Video Editing'); INSERT INTO Skill VALUES('8','Video Filming'); INSERT INTO Skill VALUES('6','Widget Consultancy'); INSERT INTO Skill VALUES('5','Widget Design'); INSERT INTO EmployeeSkill VALUES('7','10','2016-05-18'); INSERT INTO EmployeeSkill VALUES('4','7','2017-08-23'); INSERT INTO EmployeeSkill VALUES('6','3','2018-01-11'); INSERT INTO EmployeeSkill VALUES('2','1','2007-11-14'); INSERT INTO EmployeeSkill VALUES('11','7','2018-02-11'); INSERT INTO EmployeeSkill VALUES('10','4','2017-12-01'); INSERT INTO EmployeeSkill VALUES('7','7','2018-01-12'); INSERT INTO EmployeeSkill VALUES('7','8','2018-01-12'); INSERT INTO Project VALUES('1','Mega Widgets','A massive widget project to build the biggest ever widget ever seen','1','0','2005-02-01','2007-03-11'); INSERT INTO Project VALUES('2','World Domination','The ongoing project to achieve utter and complete world domination','1','1','2010-01-01',NULL); INSERT INTO Project VALUES('3','Widgets for All','Global widget project for customer','0','0','2012-11-14',NULL); INSERT INTO Project VALUES('4','Blue Widget','Blue widget project','1','0','2013-01-18','2013-01-30'); INSERT INTO Project VALUES('5','Project Octopus','Project Octopus.','0','1','2009-04-07',NULL); INSERT INTO Project VALUES('6','Green Widgets','Can we build green widgets?','1','0','2010-04-17',NULL); INSERT INTO Assignment VALUES('5','7'); INSERT INTO Assignment VALUES('5','2'); INSERT INTO Assignment VALUES('2','8'); INSERT INTO Assignment VALUES('6','4'); INSERT INTO Assignment VALUES('5','10'); INSERT INTO Assignment VALUES('6','5'); INSERT INTO Assignment VALUES('6','2'); INSERT INTO Assignment VALUES('4','2'); INSERT INTO Expense VALUES('1','4','5','Lunch for plotting','138.6','1'); INSERT INTO Expense VALUES('2','7','2','Phone charger','17.99','1'); INSERT INTO Expense VALUES('3','4',NULL,'Wine to help me forget','38.2','1'); INSERT INTO Expense VALUES('4','11',NULL,'Tea for the office','3.99','0'); INSERT INTO Expense VALUES('5','11','5','Large Fake Octopus','99.99','1'); INSERT INTO Expense VALUES('6','9','5','Monorail Survey','1200','1'); INSERT INTO Payslip VALUES('1','4','8000','500','1600','400','6500','2018-02-01','2018-01-31','XFR-LLOYD-71429'); INSERT INTO Payslip VALUES('2','4','8000','500','1600','400','6500','2018-02-28','2018-02-28','XFR-LLOYD-89234'); INSERT INTO Payslip VALUES('3','2','6000','0','2500','500','3000','2017-04-30','2017-04-29','MORDOR-666'); INSERT INTO Payslip VALUES('4','4','4000','500','1000','300','3200','2017-09-30','2017-09-28','XFER-FISHFISHFISH'); INSERT INTO Contract VALUES('1','Intern Contract 2018','2018-01-01','2019-01-01',NULL,'11'); INSERT INTO Contract VALUES('2','Director Contract','2005-05-13','2019-05-13','2009-01-12','1'); INSERT INTO Contract VALUES('3','Director Contract','2017-01-01','2027-01-01',NULL,'2'); INSERT INTO Equipment VALUES('1','Phone','Samsung','S9','Samsung S9 Mobile Phone','Insert SIM and switch on','0'); INSERT INTO Equipment VALUES('2','Phone','Samsung','S9','Samsung S9 Mobile Phone','Insert SIM and switch on','0'); INSERT INTO Equipment VALUES('3','Hotspot','Huwai','Hotspot XL','Mobile 4G Hotspot','Charge with micro USB. Turn on and wait for green light to show solid (stop flashing).','0'); INSERT INTO Equipment VALUES('4','Tablet','Apple','iPad','Apple iPad Large','Large screen Apple iPad','1'); INSERT INTO Equipment VALUES('5','Extension Cable',NULL,NULL,'10m Orange 1 gang extension cable','Plug in, done','0'); INSERT INTO Equipment VALUES('6','Magic Box','Wizard','MagicBox 2','A magic box','Do not open the magic box','0'); INSERT INTO Equipment VALUES('7','Video Camera','Sony','DV-24-6ABX','Sony DV Video Camera','Insert digital 8 tape, charge and switch on.','0'); INSERT INTO Equipment VALUES('8','Camera','Pentax','PX-50','Pentax SLR camera capable of video','Use SD card, AA batteries in compartment','0'); INSERT INTO Equipment VALUES('9','Camera','Canon','5D-III','Canon 5D Mark 3 SLR and Video Camera','Full frame 5D camera - charge and use','1'); INSERT INTO Equipment VALUES('10','Camera','Canon','4Z','Canon 4Z stills and video camera','Turn on, point, shoot','0'); INSERT INTO EquipmentLoan VALUES('7','3','2017-03-11',NULL,'1','For use demoing to customers'); INSERT INTO EquipmentLoan VALUES('2','1','2018-01-13','2018-01-14','0','On call borrowed phone'); INSERT INTO EquipmentLoan VALUES('11','6','2018-02-01','2019-11-11','1','Lent the intern the magic box TO GUARD AND NOT OPEN'); INSERT INTO EquipmentLoan VALUES('11','4','2017-12-01','2017-12-05','0','Lend iPad - came back damaged'); INSERT INTO EquipmentLoan VALUES('11','10','2018-02-01','2019-02-01','1','Loan of video camera for promotional filming');
<reponame>Tak-Irie/kurakichi<gh_stars>0 /* Warnings: - Changed the type of `sentAt` on the `Message` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. */ -- AlterTable ALTER TABLE "Message" DROP COLUMN "sentAt", ADD COLUMN "sentAt" INTEGER NOT NULL;
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Des 2019 pada 07.08 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tki` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `agamadanmoral` -- CREATE TABLE `agamadanmoral` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `bahasa` -- CREATE TABLE `bahasa` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `catatan` -- CREATE TABLE `catatan` ( `catatan_id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `table` varchar(255) NOT NULL, `catatan` text NOT NULL, `penginput` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `classes` -- CREATE TABLE `classes` ( `class_id` int(11) NOT NULL, `classname` varchar(255) NOT NULL, `year_id` int(11) NOT NULL, `countsiswa` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `ekstraagama` -- CREATE TABLE `ekstraagama` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `program_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `ekstrabahasajawa` -- CREATE TABLE `ekstrabahasajawa` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `program_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `ekstradrumbband` -- CREATE TABLE `ekstradrumbband` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `program_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `ekstramenari` -- CREATE TABLE `ekstramenari` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `program_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `ekstramenggambar` -- CREATE TABLE `ekstramenggambar` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `program_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `kognitif` -- CREATE TABLE `kognitif` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `motorik` -- CREATE TABLE `motorik` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `seni` -- CREATE TABLE `seni` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `siswas` -- CREATE TABLE `siswas` ( `siswa_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `namasiswa` varchar(255) NOT NULL, `namapgln` varchar(255) NOT NULL, `noinduk` varchar(255) NOT NULL, `jk` varchar(255) NOT NULL, `tgllahir` varchar(255) NOT NULL, `agama` varchar(255) NOT NULL, `anakke` int(11) NOT NULL, `ayah` varchar(255) NOT NULL, `ibu` varchar(255) NOT NULL, `pekerjaanayah` varchar(255) NOT NULL, `pekerjaanibu` varchar(255) NOT NULL, `alamatortu` text NOT NULL, `thn` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `sosialemosional` -- CREATE TABLE `sosialemosional` ( `id` int(11) NOT NULL, `siswa_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `year_id` int(11) NOT NULL, `semester` int(11) NOT NULL, `bulan` int(11) NOT NULL, `kemampuan_id` int(11) NOT NULL, `nilai` varchar(11) DEFAULT NULL, `penginput` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `t_agamadanmoral` -- CREATE TABLE `t_agamadanmoral` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_agamadanmoral` -- INSERT INTO `t_agamadanmoral` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Mempercayai Tuhan melalui ciptaan Nya', '2019-11-15 05:50:26'), (2, 'Menghargai diri sendiri, orang lain dan lingkungan sekitar sebagai rasa syukur kepada Tuhan', '2019-11-15 05:50:26'), (3, 'Memiliki perilaku yang dapat menyesuaikan diri', '2019-11-15 05:50:26'), (4, 'Memiliki perilaku yang mencerminkan sikap jujur', '2019-11-15 05:50:26'), (5, 'Memiliki perilaku yang mencerminkan sikap santun kepada orang tua didik atau pengasuh dan teman', '2019-11-15 05:50:26'), (6, 'Mengenal kegiatan beribadah sehari-hari', '2019-11-15 05:50:26'), (7, 'Melakukan peribadatan sehari-hari dengan tuntunan orang dewasa', '2019-11-15 05:50:26'), (8, 'Mengenal perilaku baik sebagai cerminan akhlaq mulia', '2019-11-15 05:50:26'), (9, 'Menunjukan perilaku santun sebagai cerminan akhlaq mulia', '2019-11-15 05:50:26'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_bahasa` -- CREATE TABLE `t_bahasa` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_bahasa` -- INSERT INTO `t_bahasa` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Memahami bahasa reseptif (menyimak dan membaca)', '2019-11-15 05:57:02'), (2, 'Menunjukan kemampuan berbahasa reseptif (menyimak dan membaca)', '2019-11-15 05:57:02'), (3, 'Memahami bahasa ekspresi (mengungkapkan bahasa secara verbal dan nonverbal)', '2019-11-15 05:57:02'), (4, 'Menunjukan kemampuan berbahasa ekspresi (mengungkapkan bahasa secara verbal dan nonverbal)', '2019-11-15 05:57:02'), (5, 'Mengenal keaksaraan awal melalui bermain', '2019-11-15 05:57:02'), (6, 'Menunjukan kemampuan keaksaraan awal dalam berbagai bentuk karya', '2019-11-15 05:57:02'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_ekstraagama` -- CREATE TABLE `t_ekstraagama` ( `program_id` int(11) NOT NULL, `program` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_ekstraagama` -- INSERT INTO `t_ekstraagama` (`program_id`, `program`, `created_at`) VALUES (1, 'Hafalan surat pendek Alquran', '2019-11-15 07:12:01'), (2, 'Hafalan hadist', '2019-11-15 07:12:01'), (3, 'Hafalan doa harian', '2019-11-15 07:12:01'), (4, 'Bacaan dan Gerakan sholat', '2019-11-15 07:12:01'), (5, 'Bahasa Arab', '2019-11-15 07:12:01'), (6, 'Huruf Hijaiyah', '2019-11-15 07:12:01'), (7, 'Hafalan <NAME>', '2019-11-15 07:12:01'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_ekstrabahasajawa` -- CREATE TABLE `t_ekstrabahasajawa` ( `program_id` int(11) NOT NULL, `program` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_ekstrabahasajawa` -- INSERT INTO `t_ekstrabahasajawa` (`program_id`, `program`, `created_at`) VALUES (1, 'Kawruh basa jawa', '2019-11-15 07:13:23'), (2, 'Nembang jawa', '2019-11-15 07:13:23'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_ekstradrumbband` -- CREATE TABLE `t_ekstradrumbband` ( `program_id` int(11) NOT NULL, `program` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_ekstradrumbband` -- INSERT INTO `t_ekstradrumbband` (`program_id`, `program`, `created_at`) VALUES (1, 'Keaktifan', '2019-11-15 07:14:39'), (2, 'Kemampuan', '2019-11-15 07:14:39'), (3, 'Permainan', '2019-11-15 07:14:39'), (4, 'Pukulan', '2019-11-15 07:14:39'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_ekstramenari` -- CREATE TABLE `t_ekstramenari` ( `program_id` int(11) NOT NULL, `program` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_ekstramenari` -- INSERT INTO `t_ekstramenari` (`program_id`, `program`, `created_at`) VALUES (1, 'Keberanian', '2019-11-15 07:15:56'), (2, 'Keaktifan', '2019-11-15 07:15:56'), (3, 'Ekspresi', '2019-11-15 07:15:56'), (4, 'Keluwesan', '2019-11-15 07:15:56'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_ekstramenggambar` -- CREATE TABLE `t_ekstramenggambar` ( `program_id` int(11) NOT NULL, `program` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_ekstramenggambar` -- INSERT INTO `t_ekstramenggambar` (`program_id`, `program`, `created_at`) VALUES (1, 'Pewarnaan', '2019-11-15 07:16:49'), (2, 'Kreatifitas', '2019-11-15 07:16:49'), (3, 'Kerapian', '2019-11-15 07:16:49'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_kognitif` -- CREATE TABLE `t_kognitif` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_kognitif` -- INSERT INTO `t_kognitif` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Memiliki perilaku yang mencerminkan sikap ingin tahu', '2019-11-15 06:03:41'), (2, 'Mengetahui cara memecahkan masalah sehari-hari dan prilaku kreatif', '2019-11-15 06:03:41'), (3, 'Menyelesaikan masalah sehari-hari secara kreatif', '2019-11-15 06:03:41'), (4, 'Mengenal benda-benda di sekitarnya (nama,warna,bentuk,ukuran,pola,sifat,\r\nTekstur,fungsidanciri-ciri lain nya)\r\n', '2019-11-15 06:03:41'), (5, 'Menyampaikan tentang apa dan bagaimana benda-benda disekitar yang dikenalnya (nama,warna,bentuk,ukuran,pola,sifat,tekstur,fungsi,dan ciri lainnya) ', '2019-11-15 06:03:41'), (6, 'Mengenal teknologi sederhana (peralatan rumah tangga, peralatan bermaian, peralatan pertukangan dll)', '2019-11-15 06:03:41'), (7, 'Mengenal teknologi sederhana (peralatan rumah tangga, peralatan bermaian,peralatan pertukangan dll) untuk menyelesaikan tugas dan kegiatan', '2019-11-15 06:03:41'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_motorik` -- CREATE TABLE `t_motorik` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_motorik` -- INSERT INTO `t_motorik` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Memiliki perilaku yang mencerminkan hidup sehat', '2019-11-15 06:07:49'), (2, 'Mengenal anggota tubuh, fungsi, dan geraknya untuk mengembangkan motorik kasar dan motorik halus', '2019-11-15 06:07:49'), (3, 'Menggunakan anggota tubuh untuk pengembangan motorik kasar dan halus', '2019-11-15 06:07:49'), (4, 'Mengetahui cara hidup sehat', '2019-11-15 06:07:49'), (5, 'Mampu menolong diri sendiri untuk hidup sehat', '2019-11-15 06:07:49'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_seni` -- CREATE TABLE `t_seni` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_seni` -- INSERT INTO `t_seni` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Memiliki prilaku yang mencerminkan sikap kreatif', '2019-11-15 06:11:49'), (2, 'Memiliki prilaku yang mencerminkan sikap estetis', '2019-11-15 06:11:49'), (3, 'Mengenal berbagai karya dan aktivitas seni', '2019-11-15 06:11:49'), (4, 'Mengenal berbagai karya dan aktivitas seni dengan menggunakan berbagai media ', '2019-11-15 06:11:49'), (5, 'Mengenal lingkungan social(keluarga,teman,tempat tinggal,tempat ibadah,budaya,transportasi)', '2019-11-15 06:11:49'), (6, 'Menyajikan berbagai karyanya dalam bentuk,gambar,bercerita,bernyanyi,gerak tubuh,dan lain-lain tentang lingkungan social(keluarga,teman,tempat tinggal,tempat ibadah,budaya dan transportasi)', '2019-11-15 06:11:49'), (7, 'Mengenal lingkungan alam(hewan,tanaman,cuaca,tanah,air,batu-batuan)', '2019-11-15 06:11:49'), (8, 'Menyajikan berbagai karyanya dalam bentuk gambar,bercerita,bernyanyi,gerak tubuh,dan lain-lain tentang lingkungan alam(hewan,tanaman,cuaca,tanah,air,batu-batuan)', '2019-11-15 06:11:49'); -- -------------------------------------------------------- -- -- Struktur dari tabel `t_sosialemosional` -- CREATE TABLE `t_sosialemosional` ( `kemampuan_id` int(11) NOT NULL, `kemampuan` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `t_sosialemosional` -- INSERT INTO `t_sosialemosional` (`kemampuan_id`, `kemampuan`, `created_at`) VALUES (1, 'Memiliki perilaku yang mencerminkan percaya diri', '2019-11-15 06:18:18'), (2, 'Memiliki prilaku yang mencerminkan sikap taat terhadap aturan sehari-hari untuk melatih kedisiplinan', '2019-11-15 06:18:18'), (3, 'Memiliki prilaku yang mencerminkan sikap sabar(mau menunggu giliran ,mau mendengarkan ketika orang lain berbicara)untuk melakukan kedisiplinan', '2019-11-15 06:18:18'), (4, 'Memiliki perilaku yang mencerminkan kemandirian', '2019-11-15 06:18:18'), (5, 'Memiliki perilaku yang mencerminkan sikap peduli dan mau membantu jika di minta bantuan', '2019-11-15 06:18:18'), (6, 'Memiliki perilaku yang mencerminkan sikap kerjasama', '2019-11-15 06:18:18'), (7, 'Mengenal emosi diri dan orang lain', '2019-11-15 06:18:18'), (8, 'Menujukan reaksi emosi diri secara jujur', '2019-11-15 06:18:18'), (9, 'Mengenal kebutuhan, keinginan dan melihat diri', '2019-11-15 06:18:18'), (10, 'Mengungkapkan kebutuhan, keinginan dan melihat diri dengan cara tepat', '2019-11-15 06:18:18'); -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `user_id` int(11) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(40) NOT NULL, `nama` varchar(255) NOT NULL, `tgllahir` varchar(255) NOT NULL, `alamat` text NOT NULL, `pendidikanterakhir` varchar(255) NOT NULL, `mulaimengajar` varchar(30) NOT NULL, `pengampu` varchar(30) NOT NULL, `telepon` varchar(15) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`user_id`, `username`, `password`, `nama`, `tgllahir`, `alamat`, `pendidikanterakhir`, `mulaimengajar`, `pengampu`, `telepon`, `created_at`) VALUES (1, 'eny', '<PASSWORD>', 'En<NAME>, Amd', 'Semarang, 30 Desember 1976', 'Jl. Galar VI No. 86', 'D3', '2014', 'TK B Kecil', '089777555111', '2019-11-11 15:22:53'), (2, 'tia', 'd8578edf8458ce06fbc5bb76a58c5ca4', '<NAME>', 'Purwodadi, 01-01-1990', 'Purwodadi JawaTengah', 'S3', '2017', 'TK Kecil A', '089777555000', '2019-11-16 13:53:31'); -- -------------------------------------------------------- -- -- Struktur dari tabel `years` -- CREATE TABLE `years` ( `year_id` int(11) NOT NULL, `yearname` varchar(255) NOT NULL, `status` varchar(255) NOT NULL DEFAULT 'Baru', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `agamadanmoral` -- ALTER TABLE `agamadanmoral` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `bahasa` -- ALTER TABLE `bahasa` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `catatan` -- ALTER TABLE `catatan` ADD PRIMARY KEY (`catatan_id`); -- -- Indeks untuk tabel `classes` -- ALTER TABLE `classes` ADD PRIMARY KEY (`class_id`); -- -- Indeks untuk tabel `ekstraagama` -- ALTER TABLE `ekstraagama` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ekstrabahasajawa` -- ALTER TABLE `ekstrabahasajawa` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ekstradrumbband` -- ALTER TABLE `ekstradrumbband` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ekstramenari` -- ALTER TABLE `ekstramenari` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `ekstramenggambar` -- ALTER TABLE `ekstramenggambar` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `kognitif` -- ALTER TABLE `kognitif` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `motorik` -- ALTER TABLE `motorik` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `seni` -- ALTER TABLE `seni` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `siswas` -- ALTER TABLE `siswas` ADD PRIMARY KEY (`siswa_id`); -- -- Indeks untuk tabel `sosialemosional` -- ALTER TABLE `sosialemosional` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `t_agamadanmoral` -- ALTER TABLE `t_agamadanmoral` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `t_bahasa` -- ALTER TABLE `t_bahasa` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `t_ekstraagama` -- ALTER TABLE `t_ekstraagama` ADD PRIMARY KEY (`program_id`); -- -- Indeks untuk tabel `t_ekstrabahasajawa` -- ALTER TABLE `t_ekstrabahasajawa` ADD PRIMARY KEY (`program_id`); -- -- Indeks untuk tabel `t_ekstradrumbband` -- ALTER TABLE `t_ekstradrumbband` ADD PRIMARY KEY (`program_id`); -- -- Indeks untuk tabel `t_ekstramenari` -- ALTER TABLE `t_ekstramenari` ADD PRIMARY KEY (`program_id`); -- -- Indeks untuk tabel `t_ekstramenggambar` -- ALTER TABLE `t_ekstramenggambar` ADD PRIMARY KEY (`program_id`); -- -- Indeks untuk tabel `t_kognitif` -- ALTER TABLE `t_kognitif` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `t_motorik` -- ALTER TABLE `t_motorik` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `t_seni` -- ALTER TABLE `t_seni` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `t_sosialemosional` -- ALTER TABLE `t_sosialemosional` ADD PRIMARY KEY (`kemampuan_id`); -- -- Indeks untuk tabel `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`user_id`); -- -- Indeks untuk tabel `years` -- ALTER TABLE `years` ADD PRIMARY KEY (`year_id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `agamadanmoral` -- ALTER TABLE `agamadanmoral` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT untuk tabel `bahasa` -- ALTER TABLE `bahasa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT untuk tabel `catatan` -- ALTER TABLE `catatan` MODIFY `catatan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT untuk tabel `classes` -- ALTER TABLE `classes` MODIFY `class_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45; -- -- AUTO_INCREMENT untuk tabel `ekstraagama` -- ALTER TABLE `ekstraagama` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT untuk tabel `ekstrabahasajawa` -- ALTER TABLE `ekstrabahasajawa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `ekstradrumbband` -- ALTER TABLE `ekstradrumbband` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `ekstramenari` -- ALTER TABLE `ekstramenari` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `ekstramenggambar` -- ALTER TABLE `ekstramenggambar` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `kognitif` -- ALTER TABLE `kognitif` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `motorik` -- ALTER TABLE `motorik` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT untuk tabel `seni` -- ALTER TABLE `seni` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `siswas` -- ALTER TABLE `siswas` MODIFY `siswa_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT untuk tabel `sosialemosional` -- ALTER TABLE `sosialemosional` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `t_agamadanmoral` -- ALTER TABLE `t_agamadanmoral` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT untuk tabel `t_bahasa` -- ALTER TABLE `t_bahasa` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT untuk tabel `t_ekstraagama` -- ALTER TABLE `t_ekstraagama` MODIFY `program_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT untuk tabel `t_ekstrabahasajawa` -- ALTER TABLE `t_ekstrabahasajawa` MODIFY `program_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `t_ekstradrumbband` -- ALTER TABLE `t_ekstradrumbband` MODIFY `program_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `t_ekstramenari` -- ALTER TABLE `t_ekstramenari` MODIFY `program_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `t_ekstramenggambar` -- ALTER TABLE `t_ekstramenggambar` MODIFY `program_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `t_kognitif` -- ALTER TABLE `t_kognitif` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT untuk tabel `t_motorik` -- ALTER TABLE `t_motorik` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT untuk tabel `t_seni` -- ALTER TABLE `t_seni` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `t_sosialemosional` -- ALTER TABLE `t_sosialemosional` MODIFY `kemampuan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT untuk tabel `users` -- ALTER TABLE `users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `years` -- ALTER TABLE `years` MODIFY `year_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 SET CHARACTER SET "utf8"; CREATE DATABASE IF NOT EXISTS %db_name% DEFAULT CHARACTER SET "utf8"; CREATE TABLE IF NOT EXISTS %db_name%.mirrormx_customer_chat_user ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` CHAR( 32 ) NOT NULL , `mail` CHAR( 64 ) NOT NULL , `password` CHAR( 255 ) NOT NULL , `image` CHAR( 255 ) NULL , `info` TEXT NULL, `roles` CHAR( 128 ) NULL , `last_activity` TIMESTAMP NOT NULL ) DEFAULT CHARACTER SET "utf8"; CREATE TABLE IF NOT EXISTS %db_name%.mirrormx_customer_chat_message ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY , `from_id` BIGINT NOT NULL , `to_id` BIGINT NOT NULL , `body` TEXT NOT NULL , `datetime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `talk_id` BIGINT NOT NULL, `is_new` CHAR(1) NOT NULL DEFAULT "y", `from_user_info` TEXT NOT NULL, `to_user_info` TEXT NOT NULL ) DEFAULT CHARACTER SET "utf8"; CREATE TABLE IF NOT EXISTS %db_name%.mirrormx_customer_chat_data ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY , `type` VARCHAR(255) NOT NULL , `key` VARCHAR(255) NOT NULL , `value` TEXT , KEY `type` (`type`) , KEY `key` (`key`) ) DEFAULT CHARACTER SET "utf8";
--============================================================================ USE [TechMarket]; GO ------------------------------------------------------------------------------ IF EXISTS( SELECT * FROM sys.tables WHERE name = 'OrderStatuses' AND SCHEMA_NAME(schema_id) = 'dbo') BEGIN DROP TABLE dbo.OrderStatuses; END GO ------------------------------------------------------------------------------ SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; SET ANSI_PADDING ON; GO --============================================================================ CREATE TABLE dbo.OrderStatuses ( [Id] INT NOT NULL IDENTITY(1, 1) CONSTRAINT PK_OrderStatuses PRIMARY KEY, [Name] NVARCHAR(50) NOT NULL ); GO --============================================================================
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2020 at 04:32 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_durable` -- -- -------------------------------------------------------- -- -- Table structure for table `catagories` -- CREATE TABLE `catagories` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `catagory_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `catagories` -- INSERT INTO `catagories` (`id`, `created_at`, `updated_at`, `catagory_name`) VALUES (1, '2020-02-24 20:13:30', '2020-02-24 20:13:30', 'โซน A'), (2, '2020-02-24 20:13:38', '2020-02-24 20:13:38', 'โซน B'), (3, '2020-02-24 20:13:44', '2020-02-24 20:13:44', 'โซน C'), (4, '2020-02-24 20:13:52', '2020-02-24 20:13:52', 'โซน D'), (5, '2020-02-24 20:13:58', '2020-02-24 20:13:58', 'โซน E'), (6, '2020-02-24 20:14:05', '2020-02-24 20:14:05', 'โซน F'), (7, '2020-02-24 20:14:10', '2020-02-24 20:14:10', 'โซน G'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `category_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `category_name`) VALUES (1, '2020-02-24 20:17:49', '2020-02-25 00:59:46', 'เครื่องเสียง'), (2, '2020-02-24 20:17:59', '2020-02-24 20:17:59', 'เครื่องคอมพิวเตอร์'), (3, '2020-02-24 20:18:06', '2020-02-24 20:18:06', 'หน้าจอคอมพิวเตอร์'), (4, '2020-02-24 20:19:14', '2020-02-24 20:19:14', 'โปรเจคเตอร์'), (6, '2020-02-24 20:20:20', '2020-02-24 20:20:20', 'จอทีวี'), (7, '2020-02-24 20:31:44', '2020-02-24 21:40:07', 'เครื่องเล่นไฟล์ HD'), (8, '2020-02-24 20:44:12', '2020-02-24 20:44:12', 'คอมพิวเตอร์โน๊ตบุ๊ค'), (9, '2020-02-24 20:47:47', '2020-02-24 20:47:47', 'อุปกรณ์ Network'), (10, '2020-02-24 20:50:00', '2020-02-25 01:49:16', 'อุปกรณ์สลับ-ขยายสัญญาณ'), (11, '2020-02-24 20:51:54', '2020-02-24 20:51:54', 'เครื่องอ่าน SD Card'), (12, '2020-02-24 20:54:19', '2020-02-24 20:54:19', 'เครื่องเล่นวีดีโอ'), (13, '2020-02-24 20:55:59', '2020-02-24 20:55:59', 'เครื่องฉายแสง'), (14, '2020-02-24 21:03:19', '2020-02-24 21:03:19', 'เลนส์ภาพ'), (15, '2020-02-24 21:06:49', '2020-02-24 21:06:49', 'แฟลชไดรฟ์'), (16, '2020-02-24 21:10:07', '2020-02-24 21:10:07', 'กล้อง'), (17, '2020-02-24 21:12:28', '2020-02-24 21:12:28', 'อุปกรณ์ Touch Screen'), (18, '2020-02-24 23:02:29', '2020-02-24 23:02:29', 'อุปกรณ์ Sensor'), (19, '2020-02-24 23:10:06', '2020-02-24 23:10:06', 'กลไก'), (20, '2020-02-24 23:11:58', '2020-02-24 23:11:58', 'อุปกรณ์ Controller'), (21, '2020-02-25 00:25:25', '2020-02-25 00:25:25', 'อุปกรณ์ไฟฟ้า'), (22, '2020-02-25 00:49:27', '2020-02-25 00:49:27', 'อุปกรณ์ไอที'), (23, '2020-02-25 01:01:52', '2020-02-25 01:01:52', 'เครื่องส่งสัญญาณ'); -- -------------------------------------------------------- -- -- Table structure for table `durables` -- CREATE TABLE `durables` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `duID` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `category_id` int(10) UNSIGNED DEFAULT NULL, `catagory_id` int(10) UNSIGNED DEFAULT NULL, `du_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `brand` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `gen` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `amount` int(11) DEFAULT NULL, `break` int(11) DEFAULT NULL, `use` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `durables` -- INSERT INTO `durables` (`id`, `created_at`, `updated_at`, `photo`, `duID`, `category_id`, `catagory_id`, `du_name`, `brand`, `gen`, `amount`, `break`, `use`) VALUES (1, '2020-02-24 21:24:49', '2020-03-09 20:31:38', NULL, 'ITM-55-10-04-91-01-001', 6, NULL, 'จอพลาสม่า TV 50 นิ้ว ยี่ห้อ LG รุ่น 50PC5R', NULL, NULL, 1, NULL, 1), (3, '2020-02-24 21:29:03', '2020-02-24 21:29:03', NULL, 'ITM-55-10-04-91-01-001', 7, NULL, 'Network HD media player ยี่ห้อ Egreat', NULL, NULL, 1, NULL, 1), (4, '2020-02-24 21:29:26', '2020-02-24 21:29:26', NULL, 'ITM-55-10-04-91-01-001', 15, NULL, 'Flash drive ยี่ห้อ HP', NULL, NULL, 1, NULL, 1), (5, '2020-02-24 21:29:56', '2020-02-24 21:32:17', NULL, 'ITM-55-10-04-91-01-001', 6, NULL, 'จอทีวี Samsung 42 นิ้ว รุ่น PPM42M5HBXJXST', NULL, NULL, 2, NULL, 2), (6, '2020-02-24 21:31:10', '2020-02-24 21:31:10', NULL, 'ITM-55-10-04-91-01-001', 6, NULL, 'Cayin Digital Signage', NULL, NULL, 1, NULL, 1), (7, '2020-02-24 21:31:43', '2020-02-24 21:31:43', NULL, 'ITM-55-10-04-91-01-002', 8, NULL, 'Note Book COMPAQ 435', NULL, NULL, 1, NULL, 1), (8, '2020-02-24 21:33:38', '2020-02-24 21:33:38', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'Power Amp Denon', NULL, NULL, 1, NULL, 1), (9, '2020-02-24 21:34:09', '2020-02-24 21:34:09', NULL, 'ITM-55-10-04-91-01-002', 9, NULL, 'Switch Cisco 4 port', NULL, NULL, 1, NULL, 1), (10, '2020-02-24 21:34:35', '2020-02-24 21:34:35', NULL, 'ITM-55-10-04-91-01-002', 10, NULL, 'VQA/UXQA Matrix Switcher Video', NULL, NULL, 1, NULL, 1), (11, '2020-02-24 21:35:03', '2020-02-24 23:25:46', NULL, 'ITM-55-10-04-91-01-002', 11, NULL, 'เครื่องอ่าน SD Card VMX', NULL, NULL, 1, NULL, 1), (12, '2020-02-24 21:35:56', '2020-02-24 21:35:56', NULL, 'ITM-55-10-04-91-01-002', 12, NULL, 'V WBOX-E122 iei Video', NULL, NULL, 1, NULL, 1), (13, '2020-02-24 21:36:27', '2020-02-24 21:36:27', NULL, 'ITM-55-10-04-91-01-002', 13, NULL, 'เครื่องฉายแสง Gobo', NULL, NULL, 2, NULL, 2), (14, '2020-02-24 21:36:45', '2020-02-24 21:36:45', NULL, 'ITM-55-10-04-91-01-002', 14, NULL, 'เลนส์ภาพควายBison', NULL, NULL, 2, NULL, 2), (15, '2020-02-24 21:37:00', '2020-02-24 23:21:49', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'ลำโพง stereo', NULL, NULL, 5, NULL, 5), (16, '2020-02-24 21:37:26', '2020-02-25 00:57:42', NULL, 'ITM-55-10-04-91-01-002', 6, NULL, 'LCD TV Samsung 32 นิ้ว รุ่น LA32C650L1R', NULL, NULL, 5, NULL, 5), (17, '2020-02-24 21:38:27', '2020-02-24 21:38:27', NULL, 'ITM-55-10-04-91-01-002', 7, NULL, 'Network HD Media Player R-Series Egreat', NULL, NULL, 1, NULL, 1), (18, '2020-02-24 21:41:05', '2020-02-24 21:41:05', NULL, 'ITM-55-10-04-91-01-002', 15, NULL, 'Flash Drive Apacer', NULL, NULL, 1, NULL, 1), (19, '2020-02-24 21:41:34', '2020-02-24 21:41:34', NULL, 'ITM-55-10-04-91-01-002', 3, NULL, 'จอ COMPAQ', NULL, NULL, 1, NULL, 1), (21, '2020-02-24 21:43:30', '2020-02-24 23:14:37', NULL, 'ITM-55-10-04-91-01-002', 2, NULL, 'คอมพิวเตอร์ HP', NULL, NULL, 5, NULL, 5), (22, '2020-02-24 21:43:50', '2020-02-24 23:00:04', NULL, 'ITM-55-10-04-91-01-002', 16, NULL, 'กล้อง Web Cam', NULL, NULL, 1, NULL, 2), (23, '2020-02-24 21:44:09', '2020-02-24 23:00:37', NULL, 'ITM-55-10-04-91-01-002', 17, NULL, 'touch switch', NULL, NULL, 8, NULL, 8), (25, '2020-02-24 23:03:28', '2020-02-24 23:03:28', NULL, 'ITM-55-10-04-91-01-002', 18, NULL, 'Senser', NULL, NULL, 1, NULL, 1), (26, '2020-02-24 23:09:40', '2020-02-24 23:10:21', NULL, 'ITM-55-10-04-91-01-002', 19, NULL, 'ชุดกลไลขยับแขนและขยับคอ', NULL, NULL, 1, NULL, 1), (27, '2020-02-24 23:12:42', '2020-02-24 23:12:42', NULL, 'ITM-55-10-04-91-01-002', 20, NULL, 'ชุดบอร์ดคอนโทรล', NULL, NULL, 1, NULL, 1), (28, '2020-02-24 23:13:21', '2020-02-24 23:13:21', NULL, 'ITM-55-10-04-91-01-002', 3, NULL, 'จอมอนิเตอร์ DELL', NULL, NULL, 3, NULL, 3), (32, '2020-02-24 23:30:58', '2020-02-25 00:16:59', NULL, 'ITM-55-10-04-91-01-002', 11, NULL, 'ชุดคอนโทรลตัวอ่าน SD Card', NULL, NULL, 8, NULL, 8), (33, '2020-02-25 00:15:11', '2020-02-25 00:17:09', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'ลำโพง', NULL, NULL, 10, NULL, 10), (34, '2020-02-25 00:18:41', '2020-02-25 00:18:41', NULL, 'ITM-55-10-04-91-01-002', NULL, NULL, 'ศิลาจารึก (จำลอง)', NULL, NULL, 1, NULL, 1), (35, '2020-02-25 00:22:02', '2020-02-25 00:27:22', NULL, 'ITM-55-10-04-91-01-002', 20, NULL, 'ชุดคอนโทรล LED', NULL, NULL, 2, NULL, 2), (36, '2020-02-25 00:25:04', '2020-02-25 00:27:32', NULL, 'ITM-55-10-04-91-01-002', 21, NULL, 'สวิทซ์ชิ่ง 12V.', NULL, NULL, 2, NULL, 2), (37, '2020-02-25 00:28:18', '2020-02-25 00:28:18', NULL, 'ITM-55-10-04-91-01-002', 9, NULL, 'Switch cisco 8 port', NULL, NULL, 1, NULL, 1), (38, '2020-02-25 00:28:47', '2020-02-25 00:28:47', NULL, 'ITM-55-10-04-91-01-002', 7, NULL, 'HD Media Play R1-2', NULL, NULL, 1, NULL, 1), (39, '2020-02-25 00:29:25', '2020-02-25 00:29:25', NULL, 'ITM-55-10-04-91-01-002', 4, NULL, 'Projector acer', NULL, NULL, 1, NULL, 1), (41, '2020-02-25 00:32:06', '2020-02-25 00:32:06', NULL, 'ITM-55-10-04-91-01-002', 20, NULL, 'บอร์ดคอนโทรล', NULL, NULL, 1, NULL, 1), (42, '2020-02-25 00:32:47', '2020-02-25 00:43:14', NULL, 'ITM-55-10-04-91-01-002', 6, NULL, 'LCD TV Samaung 40 นิ้ว รุ่น LA40C530F1R', NULL, NULL, 1, NULL, 1), (43, '2020-02-25 00:44:11', '2020-02-25 00:44:11', NULL, 'ITM-55-10-04-91-01-002', 9, NULL, 'Networked Media tank', NULL, NULL, 1, NULL, 1), (44, '2020-02-25 00:44:32', '2020-02-25 00:44:32', NULL, 'ITM-55-10-04-91-01-002', 15, NULL, 'Flash Drive', NULL, NULL, 1, NULL, 1), (45, '2020-02-25 00:47:05', '2020-02-25 00:47:05', NULL, 'ITM-55-10-04-91-01-002', 2, NULL, 'เครื่องส่งรหัสมอส', NULL, NULL, 2, NULL, 2), (46, '2020-02-25 00:47:35', '2020-02-25 00:47:35', NULL, 'ITM-55-10-04-91-01-002', 3, NULL, 'จอมอนิเตอร์', NULL, NULL, 2, NULL, 2), (47, '2020-02-25 00:48:28', '2020-02-25 00:48:28', NULL, 'ITM-55-10-04-91-01-002', 2, NULL, 'ชุดคอมพิวเตอร์ hp', NULL, NULL, 2, NULL, 2), (48, '2020-02-25 00:49:02', '2020-02-25 00:49:44', NULL, 'ITM-55-10-04-91-01-002', 22, NULL, 'คีร์บอร์ด+เมาส์', NULL, NULL, 2, NULL, 2), (49, '2020-02-25 00:50:36', '2020-02-25 00:50:36', NULL, 'ITM-55-10-04-91-01-002', 18, NULL, 'อัลตร้าโซนิคเซนเซอร์', NULL, NULL, 10, NULL, 10), (50, '2020-02-25 00:51:03', '2020-02-25 00:51:03', NULL, 'ITM-55-10-04-91-01-002', 22, NULL, 'ชุดหูฟัง', NULL, NULL, 10, NULL, 10), (51, '2020-02-25 00:51:36', '2020-02-25 00:51:36', NULL, 'ITM-55-10-04-91-01-002', 21, NULL, 'แบตเตอรี่', NULL, NULL, 10, NULL, 10), (52, '2020-02-25 00:52:06', '2020-02-25 00:53:10', NULL, 'ITM-55-10-04-91-01-002', 3, NULL, 'จอมอนิเตอร์ 17 นิ้ว', NULL, NULL, 2, NULL, 2), (53, '2020-02-25 00:52:46', '2020-02-25 00:55:36', NULL, 'ITM-55-10-04-91-01-002', 7, NULL, 'Network HD Media Player', NULL, NULL, 2, NULL, 2), (54, '2020-02-25 00:53:45', '2020-02-25 00:58:43', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'ไมโครโฟน', NULL, NULL, 2, NULL, 2), (55, '2020-02-25 00:54:46', '2020-02-25 00:54:46', NULL, 'ITM-55-10-04-91-01-002', 3, NULL, 'จอมอนิเตอร์ Samsung 17 นิ้ว', NULL, NULL, 1, NULL, 1), (56, '2020-02-25 00:56:10', '2020-02-25 00:56:10', NULL, 'ITM-55-10-04-91-01-002', 20, NULL, 'ชุดคอนโทรล', NULL, NULL, 1, NULL, 1), (58, '2020-02-25 00:58:15', '2020-02-25 00:58:15', NULL, 'ITM-55-10-04-91-01-002', 2, NULL, 'คอมพิวเตอร์', NULL, NULL, 1, NULL, 1), (59, '2020-02-25 00:59:27', '2020-02-25 00:59:27', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'Mixers MX-600', NULL, NULL, 1, NULL, 1), (60, '2020-02-25 01:00:53', '2020-02-25 01:02:09', NULL, 'ITM-55-10-04-91-01-002', 23, NULL, 'เครื่องส่ง FM', NULL, NULL, 1, NULL, 1), (61, '2020-02-25 01:02:33', '2020-02-25 01:02:33', NULL, 'ITM-55-10-04-91-01-002', 23, NULL, 'เครื่องส่ง AM', NULL, NULL, 1, NULL, 1), (62, '2020-02-25 01:02:56', '2020-02-25 01:02:56', NULL, 'ITM-55-10-04-91-01-002', 23, NULL, 'Model วิทยุรุ่นต่างๆ', NULL, NULL, 6, NULL, 6), (63, '2020-02-25 01:03:18', '2020-02-25 01:09:29', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'ชุดลำโพง', NULL, NULL, 1, NULL, 1), (64, '2020-02-25 01:03:42', '2020-02-25 01:03:42', NULL, 'ITM-55-10-04-91-01-002', 11, NULL, 'เครื่องเล่น Sdcard', NULL, NULL, 3, NULL, 3), (65, '2020-02-25 01:04:06', '2020-02-25 01:04:06', NULL, 'ITM-55-10-04-91-01-002', 1, NULL, 'เครื่องขยายเสียง Crown', NULL, NULL, 1, NULL, 1), (66, '2020-02-25 01:05:40', '2020-02-25 01:07:17', NULL, 'ITM-55-10-04-91-01-003', 1, NULL, 'ชุดลำโพงใต้น้ำ', NULL, NULL, 1, NULL, 1), (67, '2020-02-25 01:06:03', '2020-02-25 01:07:29', NULL, 'ITM-55-10-04-91-01-003', 1, NULL, 'ไมโครโฟนใต้น้ำ', NULL, NULL, 1, NULL, 1), (68, '2020-02-25 01:06:24', '2020-02-25 01:07:43', NULL, 'ITM-55-10-04-91-01-003', 11, NULL, 'ชุดอ่านการ์ด SD card', NULL, NULL, 1, NULL, 1), (69, '2020-02-25 01:11:00', '2020-02-25 01:11:00', NULL, 'ITM-55-10-04-91-01-003', 1, NULL, 'ชุดลำโพง อากาศและน้ำ', NULL, NULL, 1, NULL, 1), (70, '2020-02-25 01:11:49', '2020-02-25 01:11:49', NULL, 'ITM-55-10-04-91-01-003', 23, NULL, 'Exchange line telephone', NULL, NULL, 5, NULL, 5), (71, '2020-02-25 01:12:15', '2020-02-25 01:12:15', NULL, 'ITM-55-10-04-91-01-003', 23, NULL, 'โทรศัพท์', NULL, NULL, 1, NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (22, '2014_10_12_000000_create_users_table', 1), (23, '2014_10_12_100000_create_password_resets_table', 1), (24, '2019_12_23_073220_create_categories_table', 1), (26, '2019_12_31_131124_create_orders', 1), (27, '2019_12_31_132811_create_orders_items', 1), (28, '2020_01_19_131234_create_catagories_table', 1), (29, '2019_12_23_073616_create_durables_table', 2); -- -------------------------------------------------------- -- -- Table structure for table `orderitems` -- CREATE TABLE `orderitems` ( `id` bigint(20) UNSIGNED NOT NULL, `item_id` int(11) DEFAULT NULL, `order_id` int(11) DEFAULT NULL, `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_name` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_category` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_brand` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_gen` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_amount` int(11) DEFAULT NULL, `item_status` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `orderitems` -- INSERT INTO `orderitems` (`id`, `item_id`, `order_id`, `photo`, `item_name`, `item_category`, `item_brand`, `item_gen`, `item_amount`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, 'จอพลาสม่า TV 50 นิ้ว ยี่ห้อ LG รุ่น 50PC5R', 'จอทีวี', NULL, NULL, 1, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `order_id` bigint(20) UNSIGNED NOT NULL, `date` date DEFAULT NULL, `rdate` date DEFAULT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `borrow` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `comment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `fname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `lname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `userID` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `place` text 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 `orders` -- INSERT INTO `orders` (`order_id`, `date`, `rdate`, `status`, `borrow`, `comment`, `fname`, `lname`, `userID`, `address`, `phone`, `place`, `created_at`, `updated_at`) VALUES (1, '2020-02-25', '2020-02-26', '2', '5', NULL, 'Vongola', 'primo', '208631', 'พิพิธภัณฑ์เทคโนโลยีสารสนเทศ : พทส.', '0326565959', 'โซน F เครื่อง MRI', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'admin', '<EMAIL>', NULL, '$2y$10$4if9/gxCRifoZ7.AzHu3e.cjyF/QK8gH0ufhJZmfLfv0T9/3ar34C', NULL, NULL, NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `catagories` -- ALTER TABLE `catagories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `categories_category_name_unique` (`category_name`); -- -- Indexes for table `durables` -- ALTER TABLE `durables` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `durables_du_name_unique` (`du_name`), ADD KEY `durables_category_id_index` (`category_id`), ADD KEY `durables_catagory_id_index` (`catagory_id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orderitems` -- ALTER TABLE `orderitems` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`order_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_username_unique` (`username`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `catagories` -- ALTER TABLE `catagories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `durables` -- ALTER TABLE `durables` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `orderitems` -- ALTER TABLE `orderitems` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `order_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=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 ALTER TABLE access_management ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE access_management ADD COLUMN calling_service_name VARCHAR(100) DEFAULT NULL; ALTER TABLE services ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE resources ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE roles ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE default_permissions_for_roles ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE default_permissions_for_roles ADD COLUMN calling_service_name VARCHAR(100) DEFAULT NULL; ALTER TABLE resource_attributes ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE resource_attributes ADD COLUMN calling_service_name VARCHAR(100) DEFAULT NULL;
INSERT INTO public."Club" (id, "createdAt", "updatedAt", name, description, address, "locationId") VALUES (1, '2021-04-12 19:43:28.747', '2021-04-12 21:43:12.000', 'SPO Radovljica', null, null, 1);
/** * Created by PhpStorm. * User: my * Date: 2017-04-16 * Time: 오후 11:41 */ CREATE TABLE nb_members( idx INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '인덱스', name VARCHAR(10) NOT NULL COMMENT '이름', nick VARCHAR(30) NOT NULL COMMENT '닉네임', id VARCHAR(15) NOT NULL UNIQUE KEY COMMENT '아이디', password TEXT NOT NULL COMMENT '<PASSWORD>', email VARCHAR(20) NOT NULL COMMENT '이메일', in_use TINYINT(1) NOT NULL DEFAULT '1' COMMENT '사용여부', regist_day DATETIME NOT NULL COMMENT '가입일', regist_ip VARCHAR(25) NOT NULL COMMENT '가입 ip' ) ENGINE = InnoDB DEFAULT CHAR SET = UTF8 COMMENT = '회원'; /** * view : 글번호,댓글, 카테고리, 글제목, 작성자, 뷰, * option : 삭제여부, 비밀글여부 */ CREATE TABLE nb_category( idx INT(6) NOT NULL PRIMARY KEY COMMENT '카테고리 id', name VARCHAR(20) NULL UNIQUE KEY COMMENT '카테고리 이름', sub_cnt INT NOT NULL COMMENT '서브카테고리 갯수', path VARCHAR(30) NOT NULL DEFAULT '/' COMMENT '카테고리 경로' ) ENGINE = InnoDB DEFAULT CHARSET = UTF8 COMMENT = '카테고리 테이블'; INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('100000','HOME',0,'/'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('200000','취미·유머',0,'/main/hobby'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('300000','문화',0,'/main/culture'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('400000','강의',0,'/main/lecture'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('500000','IT',0,'/main/it'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('600000','Design',0,'/main/design'); INSERT INTO nb_category (idx, name, sub_cnt, path) VALUES ('700000','여행·맛집',0,'/main/travel'); CREATE TABLE nb_list ( idx INT not null PRIMARY KEY AUTO_INCREMENT comment '글번호 (code)', FK_category INT(6) NOT NULL comment '글 카테고리', subject VARCHAR(50) NOT NULL comment '글 제목', contents VARCHAR(255) NOT NULL comment '글 내용', writer INT NOT NULL comment '작성자 (code, foreign key)', views INT NOT NULL DEFAULT '0' comment '페이지 뷰', regist DATETIME NOT NULL comment '작성일', in_use TINYINT NOT NULL DEFAULT '1' comment '사용여부 (0 삭제, 1 사용)', in_secret TINYINT NOT NULL DEFAULT '0' comment '비밀글 여부 (0 미사용, 1 사용)', FOREIGN KEY (`writer`) REFERENCES `nb_members` (`idx`), FOREIGN KEY (`FK_category`) REFERENCES `nb_category` (`idx`) ) ENGINE = InnoDB DEFAULT CHARSET = UTF8; CREATE TABLE nb_likes ( idx INT NOT NULL PRIMARY KEY AUTO_INCREMENT comment '인덱스', pid INT NOT NULL comment '원글 번호', FK_member INT NOT NULL comment '좋아요 누른 사람', likes_regist DATETIME NOT NULL comment '좋아요 누른 시간', FOREIGN KEY (`FK_member`) REFERENCES `nb_members` (`idx`), FOREIGN KEY (`pid`) REFERENCES `nb_list` (`idx`) ) ENGINE = InnoDB DEFAULT CHARSET = UTF8; CREATE TABLE nb_comment( idx INT NOT NULL PRIMARY KEY AUTO_INCREMENT comment '댓글번호 (code)', pid INT NOT NULL comment '원글번호 (code, foreign key)', contents TEXT NOT NULL comment '댓글 내용', regist DATETIME NOT NULL comment '댓글 작성일', writer INT NOT NULL comment '댓글 작성자 (code,foreign key)', FOREIGN KEY (`writer`) REFERENCES `nb_members` (`idx`), FOREIGN KEY (`pid`) REFERENCES `nb_list` (`idx`) ) ENGINE = InnoDB DEFAULT CHARSET = UTF8 COMMENT = '블로그 뷰'; CREATE TABLE nb_comment_re( idx int NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '인덱스', pid INT NOT NULL COMMENT '원댓글 번호', contents TEXT NOT NULL COMMENT '답글 컨텐츠', regist DATETIME NOT NULL COMMENT '작성일', writer INT NOT NULL COMMENT '답글 작성자', FOREIGN KEY (`writer`) REFERENCES `nb_members` (`idx`), FOREIGN KEY (`pid`) REFERENCES `nb_comment` (`idx`) ) ENGINE = InnoDB DEFAULT CHAR SET = UTF8 COMMENT ='댓글 > 답글'; CREATE TABLE nb_files ( pid INT NOT NULL comment '글번호 (code, foreign key)', file_name VARCHAR(50) NOT NULL, file_type VARCHAR(10) NOT NULL, file_regist DATETIME NOT NULL, FOREIGN KEY (`pid`) REFERENCES `nb_list` (`idx`) )ENGINE = InnoDB DEFAULT CHARSET = UTF8 COMMENT = '블로그 파일'; /** insert test data */ /* ALTER TABLE nb_list AUTO_INCREMENT=1; ALTER TABLE nb_comment AUTO_INCREMENT=1; ALTER TABLE nb_comment_re AUTO_INCREMENT=1; */ /** select */ SELECT nb_list.*, nb_members.id,nb_members.nick,nb_members.name, nb_category.name FROM nb_list LEFT JOIN nb_members ON nb_list.writer = nb_members.idx LEFT JOIN nb_category ON nb_list.FK_category = nb_category.idx LEFT JOIN nb_comment ON nb_list.idx = nb_comment.pid ;
<reponame>pnavo/sequelizedBurger INSERT INTO burgers(burger_name, devoured, date) VALUES ("Big Mac", false, "2017-07-25 04:20:00"), ("Baconator", false, "2017-07-25 16:20:00"), ("Quarter Pounder", false, "2017-07-25 16:20:01"), ("Royal with Cheese", false, "2017-07-25 04:20:20"), ("Double Double", true, "2017-07-25 16:20:16");
<filename>src/sql/messages.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 23, 2019 at 09:21 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `{TABLE_NAME}` ( `id` int(20) NOT NULL, `conservation` varchar(255) NOT NULL COMMENT 'Conservation id', `creator` varchar(255) NOT NULL COMMENT 'Creator id', `role` varchar(255) NOT NULL COMMENT '1=text,2=picture,3=video,4=audio,5=attachment', `content` text NOT NULL, `message_changeslog` longtext NOT NULL DEFAULT '[]', `created` datetime NOT NULL, `modified` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `{TABLE_NAME}` ADD PRIMARY KEY (`id`); ALTER TABLE `{TABLE_NAME}` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT; COMMIT;
<filename>install/delphiscreenshottestsuite.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 20, 2017 at 04:10 PM -- Server version: 5.7.15-log -- PHP Version: 7.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `delphiscreenshottestsuite` -- CREATE DATABASE IF NOT EXISTS `delphiscreenshottestsuite` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `delphiscreenshottestsuite`; -- -------------------------------------------------------- -- -- Table structure for table `comments` -- DROP TABLE IF EXISTS `comments`; CREATE TABLE `comments` ( `project` VARCHAR(255) CHARACTER SET utf8 DEFAULT NULL, `test` VARCHAR(255) CHARACTER SET utf8 NOT NULL DEFAULT '', `comment` VARCHAR(255) DEFAULT NULL, `time` DATETIME DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = latin1; -- -------------------------------------------------------- -- -- Table structure for table `job_warteschlange` -- DROP TABLE IF EXISTS `job_warteschlange`; CREATE TABLE `job_warteschlange` ( `ID` INT(11) NOT NULL, `project` VARCHAR(255) DEFAULT NULL, `user_email` VARCHAR(255) DEFAULT NULL, `Datum` DATETIME DEFAULT CURRENT_TIMESTAMP ) ENGINE = InnoDB DEFAULT CHARSET = latin1; -- -------------------------------------------------------- -- -- Table structure for table `projects` -- DROP TABLE IF EXISTS `projects`; CREATE TABLE `projects` ( `ID` INT(11) NOT NULL, `title` VARCHAR(255) DEFAULT NULL, `status` TINYINT(1) DEFAULT NULL, `ratio` VARCHAR(255) DEFAULT NULL, `duration` VARCHAR(32) DEFAULT '' ) ENGINE = InnoDB DEFAULT CHARSET = latin1; -- -------------------------------------------------------- -- -- Table structure for table `subscribers` -- DROP TABLE IF EXISTS `subscribers`; CREATE TABLE `subscribers` ( `project` VARCHAR(255) DEFAULT NULL, `email` VARCHAR(255) DEFAULT NULL, `ID` INT(11) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET = latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`test`); -- -- Indexes for table `job_warteschlange` -- ALTER TABLE `job_warteschlange` ADD PRIMARY KEY (`ID`); -- -- Indexes for table `projects` -- ALTER TABLE `projects` ADD PRIMARY KEY (`ID`), ADD UNIQUE KEY `title` (`title`); -- -- Indexes for table `subscribers` -- ALTER TABLE `subscribers` ADD PRIMARY KEY (`ID`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `job_warteschlange` -- ALTER TABLE `job_warteschlange` MODIFY `ID` INT(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 5; -- -- AUTO_INCREMENT for table `projects` -- ALTER TABLE `projects` MODIFY `ID` INT(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 10; -- -- AUTO_INCREMENT for table `subscribers` -- ALTER TABLE `subscribers` MODIFY `ID` INT(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 4; /*!40101 SET CHARACTER_SET_CLIENT = @OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS = @OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION = @OLD_COLLATION_CONNECTION */; CREATE TABLE IF NOT EXISTS `config` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `var_name` TINYTEXT, `var_val` TEXT, PRIMARY KEY (`id`) ) DEFAULT CHARSET = latin1; INSERT INTO `config` (`var_name`, `var_val`) VALUES ('db_revision', '1');
CREATE TABLE [dbo].[Tags] ( [Id] INT NOT NULL PRIMARY KEY, [Name] NVARCHAR(100) NOT NULL )
ALTER TABLE `User` ADD COLUMN `accepted_terms` TINYINT(1) NULL;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Värd: 127.0.0.1 -- Tid vid skapande: 09 aug 2018 kl 20:43 -- Serverversion: 10.1.26-MariaDB -- PHP-version: 7.1.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 */; -- -- Databas: `urp` -- -- -------------------------------------------------------- -- -- Tabellstruktur `storage_items` -- CREATE TABLE `storage_items` ( `id` int(11) NOT NULL, `storage_id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `amount` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumpning av Data i tabell `storage_items` -- INSERT INTO `storage_items` (`id`, `storage_id`, `item_id`, `amount`) VALUES (1, 1, 1, 1); -- -- Index för dumpade tabeller -- -- -- Index för tabell `storage_items` -- ALTER TABLE `storage_items` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT för dumpade tabeller -- -- -- AUTO_INCREMENT för tabell `storage_items` -- ALTER TABLE `storage_items` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>bajacalifornia_norte/settlement_bajacalifornia_norte.sql<gh_stars>1-10 insert into settlement(id, name) values(UUID_TO_BIN('ea9aeeab-c363-49a0-8770-fdd44873d125'), '1 de Diciembre'); insert into settlement(id, name) values(UUID_TO_BIN('88424d05-65b9-4110-8e7d-5ad035186b3f'), '1 de Mayo'); insert into settlement(id, name) values(UUID_TO_BIN('5e0bdec8-e963-464d-8576-7767fd20e816'), '10 de Mayo'); insert into settlement(id, name) values(UUID_TO_BIN('27d8c54c-9fd1-4455-83fd-788eab385f12'), '13 de Mayo'); insert into settlement(id, name) values(UUID_TO_BIN('5819d628-954b-40b5-9f31-5e6bc5490ee7'), '14 de Febrero'); insert into settlement(id, name) values(UUID_TO_BIN('2bed4d2a-dd0a-48f9-806c-45a34562c92b'), '17 de Abril'); insert into settlement(id, name) values(UUID_TO_BIN('cab899aa-e6ad-4a12-873b-5de62ca668ca'), '17 de Agosto'); insert into settlement(id, name) values(UUID_TO_BIN('218d0b4c-9f93-47cf-b50c-4b9478eeea74'), '18 de Marzo'); insert into settlement(id, name) values(UUID_TO_BIN('a5ea841e-6510-4f6a-97e6-7383abe1c8b4'), '2 de Septiembre'); insert into settlement(id, name) values(UUID_TO_BIN('8d07ba29-88ba-416e-bdc0-069c764b516c'), '20 de Noviembre'); insert into settlement(id, name) values(UUID_TO_BIN('0821dc55-195b-47a3-8835-ac9070977a05'), '27 de Enero'); insert into settlement(id, name) values(UUID_TO_BIN('091dbf93-9de0-4681-b3c8-fbdbe2cd3224'), '27 de Septiembre'); insert into settlement(id, name) values(UUID_TO_BIN('fbd39882-57d9-47f8-8de4-0f872268aa84'), '28 Batallón de Infantería'); insert into settlement(id, name) values(UUID_TO_BIN('ece0c757-47dc-4826-9e4a-28363bc029c7'), '28 de Agosto'); insert into settlement(id, name) values(UUID_TO_BIN('1092e8be-0edb-497c-b807-adbf9854cbba'), '3 Arbolitos'); insert into settlement(id, name) values(UUID_TO_BIN('e9e7d767-de04-4906-93b2-5f6fdf38630a'), '3 de Octubre'); insert into settlement(id, name) values(UUID_TO_BIN('2c1aba39-3408-46ec-b785-57690235e8fc'), '5 de Julio'); insert into settlement(id, name) values(UUID_TO_BIN('82b3a916-8536-48ba-a96d-c4c2a92bdc3b'), '5 de Mayo'); insert into settlement(id, name) values(UUID_TO_BIN('bb023c8e-9907-4db2-92c7-9bef1d4d2b2f'), '5 y 8 Hectáreas'); insert into settlement(id, name) values(UUID_TO_BIN('1b0a7264-7b33-4a90-9eec-bd717e7ceb5e'), '5ta. Plaza'); insert into settlement(id, name) values(UUID_TO_BIN('f4d19c68-e438-48d6-b3b3-2a1c546f4e18'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5cb42946-a17d-4544-970c-6675d0fc93f4'), 'Acapulco'); insert into settlement(id, name) values(UUID_TO_BIN('f86bce71-1510-4720-9e16-ca85d4084493'), 'Adara Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('c987cdd2-be56-4a32-8f1a-88332b99e2cc'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7cc8e5d4-95c9-4d60-83fb-7537ac1839cb'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b945cd5e-bac3-4a1e-8f71-697a1c0af6e4'), 'Aduana Garita 2'); insert into settlement(id, name) values(UUID_TO_BIN('623d77b2-082d-46dd-961e-10f5c0accfee'), 'Aeropuerto'); insert into settlement(id, name) values(UUID_TO_BIN('59475d8b-4d01-4483-9f74-360b8a454e4c'), 'Agraristas'); insert into settlement(id, name) values(UUID_TO_BIN('c911282c-f01a-42a3-a4a1-270e4edd4491'), 'Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('b7a82f19-b439-4406-b5d6-89a235007a69'), 'Agua Caliente Sección Pinos'); insert into settlement(id, name) values(UUID_TO_BIN('1d124b2d-f9ac-4654-9ba6-67ee42f9e83c'), 'Aguaje de La Tuna 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('cc899250-d4ff-449a-bd0c-b98184a6c4ac'), 'Aguaje de La Tuna 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('e614e49c-1c56-4b4b-a0bc-89f6971e1abf'), 'Aguaje de la Cabaña'); insert into settlement(id, name) values(UUID_TO_BIN('4be48112-c5d2-451d-8818-8d8164ad50c8'), 'Aguajito'); insert into settlement(id, name) values(UUID_TO_BIN('0939a5e7-dfa6-47bb-ae10-8eed18479160'), 'Agualeguas'); insert into settlement(id, name) values(UUID_TO_BIN('2ad2082b-0b22-435d-8d76-5f253d377bce'), 'Aguamarina'); insert into settlement(id, name) values(UUID_TO_BIN('86ad50e5-4df6-4bfb-949c-1d092edd570c'), 'Ahumadita'); insert into settlement(id, name) values(UUID_TO_BIN('d27ed7d0-2113-48f5-9b04-a09a02e80cd9'), 'Alamar'); insert into settlement(id, name) values(UUID_TO_BIN('9284e649-21ee-433e-b45d-39c075ec8eb4'), 'Alamar II'); insert into settlement(id, name) values(UUID_TO_BIN('d2193302-9409-448b-b20a-aa88ad211e9e'), 'Alameda'); insert into settlement(id, name) values(UUID_TO_BIN('4a496b98-6eb4-4450-8389-cdc6ca003cb5'), 'Alamitos'); insert into settlement(id, name) values(UUID_TO_BIN('2eae1a74-76ae-4bc7-bd41-3f738ca3b045'), 'Alba Roja'); insert into settlement(id, name) values(UUID_TO_BIN('af2811a5-68e1-4a69-9b28-9eb4ccb08c84'), 'Albatros'); insert into settlement(id, name) values(UUID_TO_BIN('6d862abc-1175-461c-8360-7b32bfa05829'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('6bf281f8-b424-4884-ae19-09c7cf0b1bdc'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('da3f565a-8e28-4982-aeaf-f60c87cca076'), 'Alcalá'); insert into settlement(id, name) values(UUID_TO_BIN('da641aa5-cbbe-4ad9-b926-163ef9e0dda3'), 'Alcatraces'); insert into settlement(id, name) values(UUID_TO_BIN('2fe52cf7-29d3-43b8-8a00-1cf6fa633805'), 'Aldrete'); insert into settlement(id, name) values(UUID_TO_BIN('60bf0c10-433f-4167-87b5-99188a079190'), 'Alemán'); insert into settlement(id, name) values(UUID_TO_BIN('1948aba7-cbc0-492a-85d8-1b8beb602b72'), 'Alfa Panamericano'); insert into settlement(id, name) values(UUID_TO_BIN('d1f17d38-0641-47a6-a817-c9be22285f37'), 'Alfonso Ballesteros'); insert into settlement(id, name) values(UUID_TO_BIN('473257c2-967e-4615-92f4-9c82cd842f65'), 'Alfonso Corona del Rosal'); insert into settlement(id, name) values(UUID_TO_BIN('ba4bfb28-6842-4ba2-93c8-36afdabf34fe'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('37020fcb-e206-45ca-b9d6-37882bb3fee2'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c517ae41-49ef-4ea9-974a-7a7bcbb1e65a'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bb9d902c-634e-4efd-b1a4-db4d563ab202'), 'Alianza Para La Producción'); insert into settlement(id, name) values(UUID_TO_BIN('b68a072e-e47c-4eec-b910-0715196a733f'), 'Alicia Carrillo'); insert into settlement(id, name) values(UUID_TO_BIN('b2ee371d-dc66-403d-8cef-c0229e6b0674'), 'Alisitos'); insert into settlement(id, name) values(UUID_TO_BIN('fa3a270f-59df-439c-88a3-3565abdd5729'), 'Alisos Reforma'); insert into settlement(id, name) values(UUID_TO_BIN('7df2d025-e41b-484a-9cbb-793051df3be4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('4035c39f-2b5c-49b9-bf97-46d55223bec7'), 'Altabrisa'); insert into settlement(id, name) values(UUID_TO_BIN('83bf03fe-38bb-468d-9cf3-3d142b5e81e8'), 'Altamira'); insert into settlement(id, name) values(UUID_TO_BIN('f53ffdec-da44-433e-a06c-62e43cf17cee'), 'Altamira Sur'); insert into settlement(id, name) values(UUID_TO_BIN('b89481e5-1fab-4bf6-88a2-5591151d841f'), 'Altiplano'); insert into settlement(id, name) values(UUID_TO_BIN('5640a668-c8af-4dea-bf4a-7a13b3d9242e'), 'Altiplano 5a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('67905a84-5309-4bca-9014-4598bf647d81'), 'Alvarado'); insert into settlement(id, name) values(UUID_TO_BIN('015e5896-70cb-4a75-9535-fba39c8a8a04'), 'Amparo Sánchez'); insert into settlement(id, name) values(UUID_TO_BIN('d84c8357-5b9e-4258-a245-bf63d2a3cc8f'), 'Ampliación Aurea Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('ced2593f-6fdc-479d-bd89-bdd131a154a9'), 'Ampliación Benito Juárez'); insert into settlement(id, name) values(UUID_TO_BIN('cbb117fa-5cd1-40ec-b3a2-a1bb29b37dae'), 'Ampliación Bugambilias'); insert into settlement(id, name) values(UUID_TO_BIN('7d7984b4-022f-430c-9b79-7bd6ded31b0a'), 'Ampliación Capricornio'); insert into settlement(id, name) values(UUID_TO_BIN('ae1bfbcc-d298-4793-8cc5-dc271e1c3d13'), 'Ampliación Centinela'); insert into settlement(id, name) values(UUID_TO_BIN('e0089528-7ada-4cba-9b2b-763bc3f9a16d'), 'Ampliación Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('fad61b0e-2810-4ebb-baac-170861839269'), 'Ampliación Colinas de Cuchuma'); insert into settlement(id, name) values(UUID_TO_BIN('b8bf9de8-d09e-4ebb-b470-0194eaa2efb9'), 'Ampliación Constitución'); insert into settlement(id, name) values(UUID_TO_BIN('3ca118e5-97c0-4a62-a8ec-c72f1d6978a5'), 'Ampliación Descanso'); insert into settlement(id, name) values(UUID_TO_BIN('fce17fd4-d50e-4858-8fab-f8ea55d7ee45'), 'Ampliación Ejido L<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('65e6a930-1e56-4659-9b72-9f1bfb96be0e'), 'Ampliación Ejido Mazatlán'); insert into settlement(id, name) values(UUID_TO_BIN('3b1010f5-9366-4bd9-b14d-2297ae724c8e'), 'Ampliación G<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bf8e6604-5b4b-43d9-80f1-44be65fb0b9c'), 'Ampliación Guaycura'); insert into settlement(id, name) values(UUID_TO_BIN('b3f32aab-dfff-4f10-8f50-fb7678d77186'), 'Ampliación Gómez Morín'); insert into settlement(id, name) values(UUID_TO_BIN('0677b33c-68d9-44ac-af39-74648856bd66'), 'Ampliación Hidalgo'); insert into settlement(id, name) values(UUID_TO_BIN('7e0397e9-1df0-432a-85e5-f760eba524f1'), 'Ampliación Independencia'); insert into settlement(id, name) values(UUID_TO_BIN('bce45c1b-b408-42c7-8a60-a580b722450a'), 'Ampliación Jardines del Lago'); insert into settlement(id, name) values(UUID_TO_BIN('f671ed69-ecd3-4174-8675-d02cb18142a6'), 'Ampliación Las Américas'); insert into settlement(id, name) values(UUID_TO_BIN('2fd0098c-304a-44aa-9cdf-37651a78e956'), 'Ampliación Loma Bonita'); insert into settlement(id, name) values(UUID_TO_BIN('bb9d97b6-0bff-4f70-8daf-77df882520a7'), 'Ampliación Lomas Taurinas'); insert into settlement(id, name) values(UUID_TO_BIN('3cf9c3f8-4812-45bb-ad66-2b101b7a5037'), 'Ampliación Lucerna'); insert into settlement(id, name) values(UUID_TO_BIN('fbc2c4b6-3808-40f3-ad89-b3771cdce730'), 'Ampliación Lucio Blanco'); insert into settlement(id, name) values(UUID_TO_BIN('e94aad3d-e639-4932-b670-48c9fbf44dce'), 'Ampliación <NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('6b81242b-b212-4368-be60-a68a144af57c'), 'Ampliación Mixteca II'); insert into settlement(id, name) values(UUID_TO_BIN('76ef0262-f105-4ead-b5e2-d17c89305585'), 'Ampliación Moderna'); insert into settlement(id, name) values(UUID_TO_BIN('818c911a-4440-4826-a430-5df9b49e45d7'), 'Ampliación Nuevo Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('d56cdb3e-00a5-4100-862e-8a1d39882960'), 'Ampliación Parque Industrial Ex-XXI'); insert into settlement(id, name) values(UUID_TO_BIN('0f33894e-9569-4aea-98b9-d32344b66d3a'), 'Ampliación Plan Libertador'); insert into settlement(id, name) values(UUID_TO_BIN('653e4a84-5907-48bf-9b35-b304ed3c6ddc'), 'Ampliación Playas de Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('5c3aa56c-a592-43e4-8de0-c4031e7b2252'), 'Ampliación Poniente'); insert into settlement(id, name) values(UUID_TO_BIN('e1ae7eb9-4c7e-48e4-92a0-0cfa951ef164'), 'Ampliación Popular 89'); insert into settlement(id, name) values(UUID_TO_BIN('08afcb44-a66a-4773-bb26-ab2b4e6ca2ed'), 'Ampliación Popular Santo Niño'); insert into settlement(id, name) values(UUID_TO_BIN('9808f3c5-74d0-4666-873e-f32b92ed25eb'), 'Ampliación Praderas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('56ee9f0a-b161-4ca3-a6d7-4bdb0fac90ab'), 'Ampliación Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('0a461a58-adcd-471e-841a-da700e8b1f84'), 'Ampliación Reforma'); insert into settlement(id, name) values(UUID_TO_BIN('1038fc17-d2d7-4ff4-9077-aa11187b662b'), 'Ampliación Refugio'); insert into settlement(id, name) values(UUID_TO_BIN('c4e52456-7b4e-41a6-a6a4-4e1a7172d957'), 'Ampliación Residencial San Sebastián'); insert into settlement(id, name) values(UUID_TO_BIN('f4619402-afee-4366-83a6-704a8fcb1747'), 'Ampliación Revolución'); insert into settlement(id, name) values(UUID_TO_BIN('508cd490-e415-42c1-a042-40c14b0a31b8'), 'Ampliación Salvatierra'); insert into settlement(id, name) values(UUID_TO_BIN('894fcbb8-f012-49ce-a64b-39d070e02313'), 'Ampliación San Vizcaíno'); insert into settlement(id, name) values(UUID_TO_BIN('6b242cfb-a87b-4f5d-9069-b79e7abed34e'), 'Ampliación Sanchez Taboada'); insert into settlement(id, name) values(UUID_TO_BIN('428009b9-6ebd-4e16-8da7-d771f7c30232'), 'Ampliación Santa Lucia Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('62df1d55-f41d-4d6e-a378-8a9673402eca'), 'Ampliación Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('dcc07539-79ea-47a2-811e-055734c82635'), 'Ampliación Solidaridad Social'); insert into settlement(id, name) values(UUID_TO_BIN('b7455805-817a-44f7-a09f-6824ca2eb884'), 'Ampliación Tejamen'); insert into settlement(id, name) values(UUID_TO_BIN('2e961d63-3a77-4515-90ab-feeecd3b8502'), 'Ampliación Vicente Guerrero'); insert into settlement(id, name) values(UUID_TO_BIN('77fc5368-7734-4dc0-b753-4331b819792a'), 'Ampliación Villa Florida'); insert into settlement(id, name) values(UUID_TO_BIN('aa5e8c38-0caa-45b2-9b21-4de2f0030e4b'), 'Ampliación Xichicalli'); insert into settlement(id, name) values(UUID_TO_BIN('977cbf83-8180-4268-ad6c-20607c1de69a'), 'Ampliación el Papalote'); insert into settlement(id, name) values(UUID_TO_BIN('9224b9e9-d995-41df-a158-c8bc7bb0bcaf'), 'Ampliación las Fuentes'); insert into settlement(id, name) values(UUID_TO_BIN('36093119-9b0f-438d-b1d6-9f88aeaadda9'), 'América'); insert into settlement(id, name) values(UUID_TO_BIN('46a3ed7f-b50e-4d37-830b-4d84fe9bb6d2'), 'Andalucía'); insert into settlement(id, name) values(UUID_TO_BIN('c4c6f475-24d2-4bbb-aa87-a1683418f425'), 'Anexa 20 de Noviembre'); insert into settlement(id, name) values(UUID_TO_BIN('547442f5-2ae5-4581-a283-d5d727abdd4f'), 'Anexa Buena Vista'); insert into settlement(id, name) values(UUID_TO_BIN('c818210d-e809-4689-9fa5-03a76ac41d34'), 'Anexa Del Río'); insert into settlement(id, name) values(UUID_TO_BIN('999c8a90-78ce-44df-81f4-5fb387dbbe77'), 'Anexa Divina Providencia'); insert into settlement(id, name) values(UUID_TO_BIN('fe69c8af-668c-494a-8a66-c2f32c7806dd'), 'Anexa Durango'); insert into settlement(id, name) values(UUID_TO_BIN('3240018e-59c4-4a91-97ee-a9f9f2a4d967'), 'Anexa Herrera'); insert into settlement(id, name) values(UUID_TO_BIN('6a5aeaf1-00cd-4cd6-8a8c-820d4ba9f1bb'), 'Anexa Internacional'); insert into settlement(id, name) values(UUID_TO_BIN('a7770d41-ab75-41a6-b432-a9664477e420'), 'Anexa Loma Dorada'); insert into settlement(id, name) values(UUID_TO_BIN('463d7a02-4af1-4b89-b1aa-ecf00c102e4b'), 'Anexa Magisterial'); insert into settlement(id, name) values(UUID_TO_BIN('d4fbc2c8-a03b-4f21-b0b7-364375f5dfdc'), 'Anexa Miramar'); insert into settlement(id, name) values(UUID_TO_BIN('32527b19-a543-44fd-b9b3-1bae5d755c48'), 'Anexa Niños Héroes'); insert into settlement(id, name) values(UUID_TO_BIN('4864cb4a-fa17-4ce4-b7c5-9fe00dd1dab8'), 'Anexa Obrera'); insert into settlement(id, name) values(UUID_TO_BIN('c504df95-3102-4665-9d71-e05f3f27998e'), 'Anexa Porvenir'); insert into settlement(id, name) values(UUID_TO_BIN('036ac6ef-a44c-41e5-ba35-d8b2c40de6ee'), 'Anexa Postal'); insert into settlement(id, name) values(UUID_TO_BIN('7b06c21c-d39f-4f00-9ea6-cc0c2e2b931a'), 'Anexa Pro Hogar'); insert into settlement(id, name) values(UUID_TO_BIN('382eaf7c-2aaf-4072-8445-8de147a179c3'), 'Anexa Roma'); insert into settlement(id, name) values(UUID_TO_BIN('c5427cfe-5920-4a3b-86ef-9eebfeaa0607'), 'Anexa Ruiz Cortines'); insert into settlement(id, name) values(UUID_TO_BIN('cd2970c3-acf6-4a5d-99d2-7813857e6a0b'), 'Anexa Sanchez Taboada'); insert into settlement(id, name) values(UUID_TO_BIN('947e7196-98f8-42d8-9a15-7722298d4cf6'), 'Anexa Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('e5b16706-b8de-40c2-8f73-40ce9a5414df'), 'Anexa Simón Bolívar'); insert into settlement(id, name) values(UUID_TO_BIN('b2ce5039-791a-41fa-88bd-a5dc52849788'), 'Anexa Veracruz'); insert into settlement(id, name) values(UUID_TO_BIN('3a3c965a-db19-4fe0-8658-f883047724df'), 'Anexo los Laureles'); insert into settlement(id, name) values(UUID_TO_BIN('1b3dbae5-b3ad-43c8-a25b-e2e5ea061a1c'), 'Angélica'); insert into settlement(id, name) values(UUID_TO_BIN('8035fb5c-f03d-46cb-99a8-a56b54ce13d4'), 'Antares Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('466f5797-af9b-4a0a-9221-f83f4591f4c8'), 'Anáhuac'); insert into settlement(id, name) values(UUID_TO_BIN('c644782a-5464-46ba-b92a-1d9f15cedbdc'), 'Arboledas'); insert into settlement(id, name) values(UUID_TO_BIN('1c11b4bf-d50a-4cf1-a38f-ba6e5859a5cc'), 'Arboledas 2'); insert into settlement(id, name) values(UUID_TO_BIN('052ff1b5-4848-48bf-8b2c-0eff8dff3822'), 'Arboledas 3'); insert into settlement(id, name) values(UUID_TO_BIN('eb06ea4b-fd96-409d-8c6a-ea2d4d8f2f54'), 'Arboledas de La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('2363782e-f181-4db6-bcac-0b0acf9ad724'), 'Arco iris'); insert into settlement(id, name) values(UUID_TO_BIN('d4e82415-4c78-452b-89a7-bce27560267d'), 'Arenal'); insert into settlement(id, name) values(UUID_TO_BIN('b7ff11b9-1317-4bbe-9dde-26723b6448de'), 'Arenales B'); insert into settlement(id, name) values(UUID_TO_BIN('d44beac5-14f2-4108-b8db-e83e0ee0b776'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('e5c4dd24-d0e4-4e53-8d67-0a6a3c392949'), 'Arroyo Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('bca7f799-9cbc-4b9e-beab-db81de0b96cc'), 'Artesanal'); insert into settlement(id, name) values(UUID_TO_BIN('b1a1ec3e-bf6b-4b81-be17-740c9985ac3a'), 'Aurea Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('cc0f5259-61a8-4e4c-8bdb-6dcc95d492f7'), 'Aurora'); insert into settlement(id, name) values(UUID_TO_BIN('cd8e768a-0da4-4469-ac13-7bf40d453a02'), 'Aviación'); insert into settlement(id, name) values(UUID_TO_BIN('0cfc782d-f874-4c25-b870-94a60e1c8d41'), 'Azcona'); insert into settlement(id, name) values(UUID_TO_BIN('7ec9fad7-4413-4dcf-b69a-feda698fa75a'), 'Azteca'); insert into settlement(id, name) values(UUID_TO_BIN('8e7eb704-a200-49e9-b2b1-fadf4faa31fb'), 'Aztecas'); insert into settlement(id, name) values(UUID_TO_BIN('8aabe30d-ce09-4773-895f-e07ebd0423a2'), 'Aztlán'); insert into settlement(id, name) values(UUID_TO_BIN('2477f450-2236-49a7-aee2-423c3d7b66fa'), 'Bahía'); insert into settlement(id, name) values(UUID_TO_BIN('bc05c7c5-4fb5-4365-901b-1a5177f06a86'), 'Bahía Cantiles (Cantiles Dorados)'); insert into settlement(id, name) values(UUID_TO_BIN('431e91bc-6587-468c-b742-cf552dab79be'), 'Bahía de los Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('8f96cb50-2145-4916-82cb-8a496c1f1f59'), 'Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('468d160b-66e1-4caf-841b-12b582d99d76'), 'Baja Malibú'); insert into settlement(id, name) values(UUID_TO_BIN('e6a46eb0-13f1-4324-b3c3-c5eb31617b4e'), 'Baja Malibú (Sección Lomas)'); insert into settlement(id, name) values(UUID_TO_BIN('1a615a4c-147f-4db4-8381-3fdd07b34888'), 'Baja Malibú (Sección Playas)'); insert into settlement(id, name) values(UUID_TO_BIN('768027b1-b8df-4dae-a036-9c3f640f883c'), 'Baja Maq. El Águila'); insert into settlement(id, name) values(UUID_TO_BIN('a59ca895-19da-4dd9-b5d3-c4b89aa2bcd7'), 'Baja Mar San Diego'); insert into settlement(id, name) values(UUID_TO_BIN('53910036-13e3-4f26-b31c-fbac2879510a'), 'Baja Marina'); insert into settlement(id, name) values(UUID_TO_BIN('865df77b-fd6e-4cf8-9130-ea1784265379'), 'Baja del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('5025c20d-1f0c-4e51-a696-567653df6839'), 'Balboa Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('c2b2b70c-9d53-4aca-bcf9-e64383af7443'), 'Balbuena'); insert into settlement(id, name) values(UUID_TO_BIN('ff139467-470a-48b8-be3e-9dd83cfef7a5'), 'Balcones de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('92f8636b-5973-4618-ae5a-d35ab92baf8e'), 'Balcón Las Huertas'); insert into settlement(id, name) values(UUID_TO_BIN('01301804-e687-4f01-88fe-d8352e825f9f'), 'Banus Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('ce2d01d1-815c-4685-8b06-c7c1cfb58536'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7d07e60d-5759-4b14-bd64-074b020f29cd'), 'Basso'); insert into settlement(id, name) values(UUID_TO_BIN('4baa2b03-1345-429d-9474-f5740e7e9599'), 'Bella Vista'); insert into settlement(id, name) values(UUID_TO_BIN('c6518557-3b26-4b2e-9da0-4be331212c8d'), 'Bellas Artes'); insert into settlement(id, name) values(UUID_TO_BIN('e4188ba6-bf67-4413-a9ac-07334f0c1168'), 'Bellavista'); insert into settlement(id, name) values(UUID_TO_BIN('e4c32c93-71cf-4815-b588-30109ca15494'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('82637dfd-c638-4b54-b851-626b4c7520f3'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('72b3f93e-3ad2-48e0-91f2-c1dacba5503b'), '<NAME> (Ejido Tecolotes)'); insert into settlement(id, name) values(UUID_TO_BIN('c7fe45d8-c296-4e33-9015-8764a5f8396a'), 'Benton'); insert into settlement(id, name) values(UUID_TO_BIN('a2bb407d-6bea-45a5-810f-ce1a9512752b'), 'Bicentenario'); insert into settlement(id, name) values(UUID_TO_BIN('75699831-176b-4db3-bea2-f151cb39dfb3'), 'Bonaterra'); insert into settlement(id, name) values(UUID_TO_BIN('82a76506-c5cf-494a-885b-9344c96c7ded'), 'Bonaterra Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('4b42794a-97eb-48f0-8b43-e43d6ac37d29'), '<NAME>off'); insert into settlement(id, name) values(UUID_TO_BIN('7f413433-02af-4146-8323-c45ff43b2231'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('01c732b4-b2a0-4eba-beb5-cf667a26edde'), 'Bordo la Rivera'); insert into settlement(id, name) values(UUID_TO_BIN('ed25d13e-e599-4d06-b460-dd82aae0de0a'), 'Borquez'); insert into settlement(id, name) values(UUID_TO_BIN('d4d1b6e6-e552-401a-ac3f-edba6d53516e'), 'Bosque de las Araucarias'); insert into settlement(id, name) values(UUID_TO_BIN('dace0cef-a8a9-45e1-9d1e-f9a6ef1ddcf7'), 'Bosque de los Olivos'); insert into settlement(id, name) values(UUID_TO_BIN('0a35af78-a450-4b84-929e-9fc85a4337f7'), 'Bosque del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('7cfb82a6-b768-45ad-a11d-315a15786ca6'), 'Bosques de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('8ded87a9-a851-4162-aef6-4ee60d61c4d4'), 'Braulio Maldonado'); insert into settlement(id, name) values(UUID_TO_BIN('a849a86a-20c5-4fa0-a784-29572298cd23'), 'Brechas el Mirador'); insert into settlement(id, name) values(UUID_TO_BIN('a1b5be22-21b6-47cd-8261-558b06049e8a'), 'Brisa del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('60eb3ccd-59d7-41eb-8c95-9be7f34f695e'), 'Brisas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('7dd8f33e-610d-4aef-bf52-5810a704a1f8'), 'Bronce'); insert into settlement(id, name) values(UUID_TO_BIN('44b07dcb-53f8-4920-81f2-6b115a207146'), 'Buena Vista'); insert into settlement(id, name) values(UUID_TO_BIN('ff7ec418-b695-4715-af3b-76b202dda0e1'), 'Buenaventura'); insert into settlement(id, name) values(UUID_TO_BIN('66e0af71-ca8a-4f99-b5c1-8dbfca45225a'), 'Buenaventura 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('e98e882d-9b1e-47cb-885a-835e040a2301'), 'Buenos Aires'); insert into settlement(id, name) values(UUID_TO_BIN('d1486d2f-5385-4926-8909-ba12163cb4bc'), 'Buenos Aires Norte'); insert into settlement(id, name) values(UUID_TO_BIN('955f9db0-f33f-45e6-99e1-e202101e754f'), 'Buenos Aires Sur'); insert into settlement(id, name) values(UUID_TO_BIN('604ef22b-d859-4c88-aa12-e8ed2aaf1049'), 'Bugambilias'); insert into settlement(id, name) values(UUID_TO_BIN('37db6851-ff35-462e-8a8a-71083721c8e9'), 'Bugambilias (Jacarandas)'); insert into settlement(id, name) values(UUID_TO_BIN('e12e3814-bb7c-4681-9a11-348794c2c7fa'), 'Bugambilias Jardines'); insert into settlement(id, name) values(UUID_TO_BIN('7fb1f55c-5dbb-4931-a227-051291c2d63b'), 'Burócrata'); insert into settlement(id, name) values(UUID_TO_BIN('1cf40c3e-460d-419e-a564-12d1a8fc363b'), 'Burócrata Hipódromo'); insert into settlement(id, name) values(UUID_TO_BIN('b0aee044-eec9-4612-9369-4c280d164741'), 'Burócrata Ruiz Cortines'); insert into settlement(id, name) values(UUID_TO_BIN('1e19d49a-326f-413b-a64f-a60747e7dab1'), 'Burócratas Federales'); insert into settlement(id, name) values(UUID_TO_BIN('f7961bc7-1129-4075-aaa3-02e6f500b69c'), 'Bustamante'); insert into settlement(id, name) values(UUID_TO_BIN('07d2d97b-c757-4c70-905b-f6d23153ca3d'), 'CCI Ejidatarios'); insert into settlement(id, name) values(UUID_TO_BIN('c57a38bf-6164-418e-9247-43642dd36059'), 'CERESO El Hongo'); insert into settlement(id, name) values(UUID_TO_BIN('84192684-c43f-4d4b-a908-ee4ba6f0b6bf'), 'Cachanilla'); insert into settlement(id, name) values(UUID_TO_BIN('c1a1af1e-2b7f-4b8b-a9ec-ea4d66c76d1b'), 'Calafia'); insert into settlement(id, name) values(UUID_TO_BIN('1b064851-e435-4796-b18c-c6e15bdedde1'), 'Calete'); insert into settlement(id, name) values(UUID_TO_BIN('e98cded5-1930-40d5-acee-ae4465622e8e'), 'California'); insert into settlement(id, name) values(UUID_TO_BIN('68c0589e-a512-4ed4-b6a6-dc8dbea5ca68'), 'Caliss'); insert into settlement(id, name) values(UUID_TO_BIN('528a7f19-652c-43ee-a9a2-98e782f17ff3'), 'Calles'); insert into settlement(id, name) values(UUID_TO_BIN('20e881a4-a3e5-4e93-aaa1-6b90043ff094'), 'Calzada'); insert into settlement(id, name) values(UUID_TO_BIN('51f5ed27-39b8-481c-a5a4-3cd6cd81b665'), 'Camalu'); insert into settlement(id, name) values(UUID_TO_BIN('baf08d2a-a6f7-4eb7-93e5-c007049bfd4b'), 'Camichin'); insert into settlement(id, name) values(UUID_TO_BIN('b8a5ed84-b142-4947-8b0e-a1f073955b5f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bb6293fe-c970-4951-8e30-409ec63245de'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f040d84f-48f7-4091-a118-4dfb6a70b8de'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('acbc8548-cd10-49c0-96cc-609eec3a546e'), '<NAME> (Cañada Verde)'); insert into settlement(id, name) values(UUID_TO_BIN('2e11c86a-cf6a-413b-baf0-a6f8f625b3f5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a7aec02d-eee4-4e4c-a4d9-2934b4943e2d'), 'Caminos del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('d3ef61f6-0eb9-4bce-8c82-a3d2898ffd5c'), 'Campestre La Gloria'); insert into settlement(id, name) values(UUID_TO_BIN('ba558810-aad1-46d2-b1dc-7a4b0b81c356'), 'Campestre La Mina de San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('eadbe410-20bb-4839-a98b-bfd3debd1d8e'), 'Campestre Lagos'); insert into settlement(id, name) values(UUID_TO_BIN('da9fc316-7740-4ad3-a88d-f63649bdd774'), 'Campestre Murua'); insert into settlement(id, name) values(UUID_TO_BIN('81248080-a108-4d88-9b38-15e21a73d012'), 'Campo Koa'); insert into settlement(id, name) values(UUID_TO_BIN('d3d69f92-c0b0-40cb-8907-9b8b8031ca8e'), 'Campo López'); insert into settlement(id, name) values(UUID_TO_BIN('557d7c48-d2bc-45b9-8959-778163c46ed7'), 'Campo Real'); insert into settlement(id, name) values(UUID_TO_BIN('b27d75b4-ef85-4679-910b-8b3eaca88c53'), 'Campo de Golf'); insert into settlement(id, name) values(UUID_TO_BIN('4ed38465-46de-47d8-86e8-e660505c7a69'), 'Campos'); insert into settlement(id, name) values(UUID_TO_BIN('f1228750-0d1a-4577-87fb-9b2d22413ef4'), 'Cantamar'); insert into settlement(id, name) values(UUID_TO_BIN('9f70add5-d8b4-49e3-9aaa-067aff4411a6'), 'Cantera Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('e95a848a-4992-46a5-86eb-4ec7a38dacfb'), 'Capistrano INFONAVIT'); insert into settlement(id, name) values(UUID_TO_BIN('b8449da3-856d-46ea-9b0e-4ac6407e83f1'), 'Carbajal'); insert into settlement(id, name) values(UUID_TO_BIN('4bb80c32-c620-4044-ae16-a3478f50b858'), 'Careaga'); insert into settlement(id, name) values(UUID_TO_BIN('6b2d6f13-f124-4e33-b9a0-71a81b70da2d'), '<NAME> (Ayuntamiento)'); insert into settlement(id, name) values(UUID_TO_BIN('f93f5e43-ba97-4514-aefa-89bfc57182f9'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('91d8229e-6d13-4e61-a2d5-743706ba5a47'), 'Carm<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7a53e6a6-ca21-477c-9a36-ba7e47facd2e'), 'Carreño'); insert into settlement(id, name) values(UUID_TO_BIN('4c96e0ca-bb60-4fd3-993f-6f59c4f817cb'), 'Casa Blanca'); insert into settlement(id, name) values(UUID_TO_BIN('76d7b81b-aa74-4f4c-90c2-08b78dcf3b87'), 'Casa Digna'); insert into settlement(id, name) values(UUID_TO_BIN('81db64ee-a15d-4c1b-86b5-774cd8cf2d53'), 'Casa Magna'); insert into settlement(id, name) values(UUID_TO_BIN('b2e46143-854d-417c-ae41-f006ff11244f'), 'Casas Eternas'); insert into settlement(id, name) values(UUID_TO_BIN('fa2d0f13-62c1-4ae8-9457-bf1e1fcb1605'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('594f349b-589f-48f4-964d-211f7d2d31f9'), 'Castillo'); insert into settlement(id, name) values(UUID_TO_BIN('f9f1a60e-ab28-4ed9-9327-1adeed82a948'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c752fa5a-b4d9-48d2-bd7a-a3204a9939ff'), 'Castro'); insert into settlement(id, name) values(UUID_TO_BIN('f4300c33-8a55-43a4-bf61-a611bc0fb3d8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('da553e46-bf15-4856-844a-e766b34a1f49'), 'C<NAME> Mar'); insert into settlement(id, name) values(UUID_TO_BIN('b4b858d5-45bf-4850-85d1-647e44a331c6'), 'Cataviña'); insert into settlement(id, name) values(UUID_TO_BIN('3e532373-a7b8-4d83-8530-5f0f8a08a722'), 'Cauces Federales'); insert into settlement(id, name) values(UUID_TO_BIN('beb4deb9-f785-44c7-9326-9834a307e35e'), 'Cañadas del Florido'); insert into settlement(id, name) values(UUID_TO_BIN('89498009-3fe0-45a2-ae20-5bfc19721197'), 'Cañadas del Florido 2a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0c3d4790-5d91-4020-b02c-7ae2510ea41b'), 'Cañón Azteca'); insert into settlement(id, name) values(UUID_TO_BIN('74782a8c-223c-48b0-b6cf-86b62c23bef4'), 'Cañón Buenavista'); insert into settlement(id, name) values(UUID_TO_BIN('6b989be2-b5df-4c82-ac7a-e537d55618a1'), 'Cañón Centenario'); insert into settlement(id, name) values(UUID_TO_BIN('46d4d479-7f21-4c06-a9ad-b7e658382cb5'), 'Cañón Miramar'); insert into settlement(id, name) values(UUID_TO_BIN('bcccfc64-16b0-446a-8067-50f1d22de419'), 'Cañón Oasis'); insert into settlement(id, name) values(UUID_TO_BIN('e3b2a920-1844-45ae-8642-7d7179251179'), 'Cañón Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('15739f92-c44d-4db9-b680-d54b12d933ae'), 'Cañón Primavera'); insert into settlement(id, name) values(UUID_TO_BIN('cb48aae1-c380-4b24-9d63-0749962adf24'), 'Cañón Rosales'); insert into settlement(id, name) values(UUID_TO_BIN('b684d6e6-ab3b-4a65-a68f-9b9a3913953b'), 'Cañ<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('121496d5-0e21-417f-8627-7845e5537dee'), 'Cañón Tampico'); insert into settlement(id, name) values(UUID_TO_BIN('66f6896d-70e4-4ec4-b817-3ae56de0f814'), 'Cañón de La Pedrera'); insert into settlement(id, name) values(UUID_TO_BIN('99a73bbe-1c48-4ad9-b20e-463f9ce3e856'), 'Cañón de La Pedrera Este'); insert into settlement(id, name) values(UUID_TO_BIN('aae7a339-432c-4d2d-8875-c5f204f41bf5'), 'Cañón de La Raza'); insert into settlement(id, name) values(UUID_TO_BIN('3b40ab28-a299-4b00-9d96-942f6b64d1a4'), 'Cañón de las Carretas'); insert into settlement(id, name) values(UUID_TO_BIN('7f791709-8afd-4560-9105-7d633c133c90'), 'Cañón de las Palmeras'); insert into settlement(id, name) values(UUID_TO_BIN('17e27786-bd15-4d76-8e8a-aed49cf7064e'), 'Cañón de las Rosas'); insert into settlement(id, name) values(UUID_TO_BIN('93e3db86-5d1f-4f4b-b7ae-1cda72069672'), 'Cañón del Matadero'); insert into settlement(id, name) values(UUID_TO_BIN('b74e4074-0eed-413a-a35e-a2c2f54f5a01'), 'Cañón del Matadero Este'); insert into settlement(id, name) values(UUID_TO_BIN('4b175c68-8ab7-4240-8e8d-65e7600668f6'), 'Cañón del Matadero Norte'); insert into settlement(id, name) values(UUID_TO_BIN('cbf3296e-08df-4343-94d7-9f34fb63d361'), 'Cañón del Padre'); insert into settlement(id, name) values(UUID_TO_BIN('cf4b6085-8d44-4d4f-88cb-fb0fb09dbef3'), 'Cañón del Sainz'); insert into settlement(id, name) values(UUID_TO_BIN('88efb0f5-4b6f-47a9-b8c8-7014106b86c0'), 'Cañón el Salado'); insert into settlement(id, name) values(UUID_TO_BIN('0a8a27bb-8c89-42b2-a4c7-e8a817d05d7d'), 'Ceceña'); insert into settlement(id, name) values(UUID_TO_BIN('d1b6e8cb-62c4-4610-8e53-b39bb36f391c'), 'Central de Abastos de Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('c387679b-9d43-456d-93b8-9c868b5eb365'), 'Centro Comercial Nuevo Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('a06c2d12-b2fc-43e1-b73c-1c7ae4d7397e'), 'Centro Comercial Otay'); insert into settlement(id, name) values(UUID_TO_BIN('dd75ea45-f9b9-4b03-9161-e40aad0de7f4'), 'Centro Cívico'); insert into settlement(id, name) values(UUID_TO_BIN('5335300d-0526-4e4a-9933-031a7b4c71ca'), 'Centro SCT Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('eeb8d33e-dd05-47ff-9d8c-cc4639856967'), 'Centro Urbano 70-76'); insert into settlement(id, name) values(UUID_TO_BIN('f3689d8b-9bfe-4a38-bb55-036b966f93cb'), 'Cerrada Abedul'); insert into settlement(id, name) values(UUID_TO_BIN('964a75d8-5c26-4f25-b193-f046b384846c'), 'Cerrada del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('373e867a-e5b3-4b77-8231-283951822905'), 'Cerro Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('31b3c791-ca18-4e67-819e-c3fe8751a6df'), 'Cerro Colorado 2a Sección (Lomas del Colorado)'); insert into settlement(id, name) values(UUID_TO_BIN('c543b3af-4cc5-473c-8e9e-9e44f73d4c76'), 'Cerro Colorado 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('16bab259-fd31-4d84-a786-a93cc69bc964'), 'Cerro Colorado I'); insert into settlement(id, name) values(UUID_TO_BIN('58d8da39-c4cd-4d6a-a467-9b5caa675b9d'), 'Cerro II'); insert into settlement(id, name) values(UUID_TO_BIN('9c753a68-87d7-4b0f-9591-5d70d45ee3ba'), 'Cerro Prieto 2'); insert into settlement(id, name) values(UUID_TO_BIN('e429d0fc-249a-4760-8144-8d842bf6fbc8'), 'Cerro Prieto 4'); insert into settlement(id, name) values(UUID_TO_BIN('fd72e14c-2ff6-462e-993a-3ba40897d925'), 'Cerro Prieto 5'); insert into settlement(id, name) values(UUID_TO_BIN('4d58fbad-b903-42f3-ab8e-f9f645a912a4'), 'Cerro Prieto 6'); insert into settlement(id, name) values(UUID_TO_BIN('d3ac4b68-c6d5-4360-a5b9-37d60cbdbb24'), 'Cerro Prieto 7'); insert into settlement(id, name) values(UUID_TO_BIN('9827bf1f-bfca-4bb2-807d-3b6818411b3e'), 'Chamizal'); insert into settlement(id, name) values(UUID_TO_BIN('06677702-fb3d-4e44-9770-e48f3819bbb8'), 'Chapala'); insert into settlement(id, name) values(UUID_TO_BIN('db3eea4e-0e1d-4373-8ccd-1d301fa59706'), 'Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('bf91985c-1fd1-46c5-b713-9fea460d01f8'), 'Chapultepec 10a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0bffc198-11e1-4460-be5e-f28d0150fae7'), 'Chapultepec 8a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('546860d9-7253-4445-b8c2-e9e55ca8fddd'), 'Chapultepec 9a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0972b32f-1ac3-44d9-9fcc-ba6245af1503'), 'Chapultepec Alamar'); insert into settlement(id, name) values(UUID_TO_BIN('359503af-8c82-440d-afc7-2557a89dc804'), 'Chapultepec California'); insert into settlement(id, name) values(UUID_TO_BIN('37170a43-3ad6-4488-b95b-f196bef66561'), 'Chapultepec Este'); insert into settlement(id, name) values(UUID_TO_BIN('7b57d06f-1441-4fcf-a7df-374fe36c9353'), 'Chapultepec los Pinos'); insert into settlement(id, name) values(UUID_TO_BIN('bb75207b-5705-4485-9d58-66082c46da21'), 'Chiapas'); insert into settlement(id, name) values(UUID_TO_BIN('e9df5cca-5e2b-4705-8566-017bcfcf611b'), 'Chihuahua'); insert into settlement(id, name) values(UUID_TO_BIN('a034853c-6bc7-418e-91d6-d47bd284a213'), 'Chihuahua La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('0966c2ed-2bcb-4a4f-a96d-80d23e5b15f1'), 'Chilpancingo'); insert into settlement(id, name) values(UUID_TO_BIN('60c8dd3f-2809-4bc9-97f5-37a33213fb4c'), 'Chimi'); insert into settlement(id, name) values(UUID_TO_BIN('f91c894c-d449-49fa-9e63-698f6e1c5008'), 'Chula Vista'); insert into settlement(id, name) values(UUID_TO_BIN('ad326e85-d0ff-4358-a56e-903db22f2cf3'), 'Chulavista (El Chorizo)'); insert into settlement(id, name) values(UUID_TO_BIN('74401572-fb07-4c7e-b230-b1943636aef2'), 'Chávez'); insert into settlement(id, name) values(UUID_TO_BIN('af3ea8c8-651d-4926-9890-1d7b734a5e2b'), 'Ciudad Deportiva'); insert into settlement(id, name) values(UUID_TO_BIN('a46d3a92-ec49-431b-818a-0d1fbb0044ea'), 'Ciudad Industrial'); insert into settlement(id, name) values(UUID_TO_BIN('a416b2b0-f27f-4f9e-921c-131b0b7b7d50'), 'Ciudad Jardín'); insert into settlement(id, name) values(UUID_TO_BIN('2a00e560-85a2-4901-b508-e05ffff70f88'), 'Ciudad Morelos'); insert into settlement(id, name) values(UUID_TO_BIN('addadc44-8e19-4f5a-8a22-8be5aa820a69'), 'Ciudad Victoria'); insert into settlement(id, name) values(UUID_TO_BIN('d6829284-944c-40c2-ae27-efd3aa8b9dc8'), 'Ciudad del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('513ba0d6-49bd-4b01-97c1-74620c5bd50b'), 'Club Hípico Mexicali (Colonia la Herradura)'); insert into settlement(id, name) values(UUID_TO_BIN('e831fbd7-db38-405f-8a93-b4c0c963348b'), 'Club de Pesca'); insert into settlement(id, name) values(UUID_TO_BIN('12e11abc-05d1-4ea7-8dae-a2ecd5a3cac9'), 'Colas del Matamoros'); insert into settlement(id, name) values(UUID_TO_BIN('b7c8268b-e35f-4cdb-8286-e50c12489fe4'), 'Colima'); insert into settlement(id, name) values(UUID_TO_BIN('c8deafd9-92c8-420c-8cd4-b5912ca9cded'), 'Colina del Mediterráneo'); insert into settlement(id, name) values(UUID_TO_BIN('6d7bec19-9e7a-4fd3-a715-6eb566039ce2'), 'Colinas San Rafael'); insert into settlement(id, name) values(UUID_TO_BIN('67713314-460d-40ef-9311-a9ca50e40957'), 'Colinas de Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('4bc61551-2efa-41a8-a94c-6c232a3643ec'), 'Colinas de Aragón'); insert into settlement(id, name) values(UUID_TO_BIN('ded907a9-8552-43b1-920c-e2534f765554'), 'Colinas de California'); insert into settlement(id, name) values(UUID_TO_BIN('456809a3-a23c-4d4c-912f-2433055d760a'), 'Colinas de Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('963d23df-0759-4391-9c1e-4f2a1b2fc680'), 'Colinas de Cortés'); insert into settlement(id, name) values(UUID_TO_BIN('6e1c9d3e-474d-4449-bc40-dfa208b0cfaf'), 'Colinas de Cuchuma'); insert into settlement(id, name) values(UUID_TO_BIN('13ac4312-55b0-4742-9f30-c4e9392860e2'), 'Colinas de La Cantera'); insert into settlement(id, name) values(UUID_TO_BIN('90179a84-f94b-4ca0-9d7e-11e0aded141f'), 'Colinas de La Cruz'); insert into settlement(id, name) values(UUID_TO_BIN('c14e1d31-5110-463f-9f6d-fc3f8f4e7a32'), 'Colinas de La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('4eb1129e-450e-41ba-8fab-df33d933458b'), 'Colinas de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('882daddc-5238-4d5f-ae6f-43aad6f9ad68'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a4d67141-4fc0-45bc-8039-00888d46a678'), 'Colinas de Rosarito 1a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('afe95bb6-9d17-48b8-8b73-e02fb8645cd8'), 'Colinas de Rosarito 2da. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('28cd6d0b-8365-492a-89a4-97b6eaa27801'), 'Colinas de San Angel'); insert into settlement(id, name) values(UUID_TO_BIN('238e18bf-3021-462f-b9c8-87447828c45a'), 'Colinas de San Ángel'); insert into settlement(id, name) values(UUID_TO_BIN('32d50157-fa08-47b7-9c41-6222c4d14614'), 'Colinas de la Presa'); insert into settlement(id, name) values(UUID_TO_BIN('77858b35-70ae-43f0-8a38-07ff3477b688'), 'Colinas de la Presa Sección Montebello'); insert into settlement(id, name) values(UUID_TO_BIN('7a1745ae-931d-4de0-b6fb-5fb12a7db426'), 'Colinas del Alamar (Torres del Lago)'); insert into settlement(id, name) values(UUID_TO_BIN('cbb0569c-96be-47e5-b9e3-d853d4aebb80'), 'Colinas del Magisterio'); insert into settlement(id, name) values(UUID_TO_BIN('3d28b953-12e8-489b-ac1f-1790df024679'), 'Colinas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('28eeba5a-c962-4737-b627-3073518ddfc4'), 'Colinas del Mar Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('ef243f30-de7f-4bad-a046-4a1b3ba2c82f'), 'Colinas del Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('38d0f183-1a1c-4538-802e-260760489c07'), 'Colinas del Puerto'); insert into settlement(id, name) values(UUID_TO_BIN('62a0c40f-f6f1-476f-b67a-78767d370189'), 'Colinas del Rey'); insert into settlement(id, name) values(UUID_TO_BIN('3d81a611-4540-42d7-b490-acf7c414a4f1'), 'Colinas del Sauzal'); insert into settlement(id, name) values(UUID_TO_BIN('b1d91a73-2d59-425b-a972-7fe0a22b2542'), 'Colinas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('607c7297-506c-4e49-9963-199f7f9da105'), 'Colinas del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('7ecaaa89-f178-4dd0-8fea-7d6de8c76639'), 'Colinas del Volcan'); insert into settlement(id, name) values(UUID_TO_BIN('db485eda-4f2a-4ae4-bcf5-6ad49ab11443'), 'Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('05526f37-c456-4fb0-b005-9eb53ed76c16'), 'Comercial Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('d08af15e-2328-4b9d-9324-9a24d5ea409c'), 'Compuertas'); insert into settlement(id, name) values(UUID_TO_BIN('5968e17a-f073-4c67-9927-aee7a48c142e'), 'Compuertas Carejey (Carehey)'); insert into settlement(id, name) values(UUID_TO_BIN('21b85239-0124-4b41-af7b-2767b1ae9c21'), 'Concordia'); insert into settlement(id, name) values(UUID_TO_BIN('60fe2c6e-af35-4ef8-ac6b-92b30c44fd40'), 'Condesa'); insert into settlement(id, name) values(UUID_TO_BIN('b98ccbba-7d33-4228-8387-a2d372a341d9'), 'Condominio Esperanza Agrícola'); insert into settlement(id, name) values(UUID_TO_BIN('232029be-3bde-473f-84bf-4605e62f7225'), 'Condominios Villas California'); insert into settlement(id, name) values(UUID_TO_BIN('18a67193-e73a-458e-bc0e-63a40adf548e'), 'Conjunto Artesanal'); insert into settlement(id, name) values(UUID_TO_BIN('8f9add9a-96f6-4425-ac61-ae54c7e75924'), 'Conjunto Residencial Cataviña'); insert into settlement(id, name) values(UUID_TO_BIN('d521c400-0eb1-4193-afba-575f5a8274b4'), 'Conjunto Urbano Esperanza'); insert into settlement(id, name) values(UUID_TO_BIN('d01bb4a5-0645-40d5-bf12-f392feeaac09'), 'Constitución'); insert into settlement(id, name) values(UUID_TO_BIN('dcc97c1b-aaf8-4a56-bb35-90f1fb17488b'), 'Constitución del 17'); insert into settlement(id, name) values(UUID_TO_BIN('cbce26c5-78fa-4417-a980-a35f1f979ca6'), 'Constituyentes'); insert into settlement(id, name) values(UUID_TO_BIN('4235b9eb-00a7-454e-9580-68ae26646bb4'), 'Contreras'); insert into settlement(id, name) values(UUID_TO_BIN('05165a8e-98be-49ba-869a-6a0ce2950dc4'), 'Contreras Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('b5968823-376f-4abf-b0ca-59acb71ac114'), 'Coral Beach'); insert into settlement(id, name) values(UUID_TO_BIN('f02ae836-da85-4554-ad02-1fe7f765e025'), 'Coral Maya'); insert into settlement(id, name) values(UUID_TO_BIN('8b404cd8-d7bb-41fb-9a87-3a63b81f5d29'), 'Coral de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('fac0fa10-b60d-4699-b4e3-a4ccc8ed83c9'), 'Corona Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('41b45265-0df5-4c03-8e8f-ceeb23fbb9ec'), 'Corona del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('111d56eb-c61d-4449-a8c7-fb3bc51d2f85'), 'Coronita'); insert into settlement(id, name) values(UUID_TO_BIN('8eb6b40d-037e-4311-b3d0-6da59fb0aae4'), 'Corregidora'); insert into settlement(id, name) values(UUID_TO_BIN('fd5972f4-a7c0-43fc-873c-c4bcb476a28f'), 'Cortez'); insert into settlement(id, name) values(UUID_TO_BIN('abb1584f-2dd2-4421-8f4b-1273a83571d5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('083a0d66-5d3e-443a-afe7-01d00435514f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('37549825-87bf-488a-bc89-70e50e32489a'), 'Costa Coronado Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('a65fba50-ef24-4e8b-b555-f63d52887eb8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5bb39142-d46c-4efd-bb88-ea13ad7465e5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f3cb329e-b5be-4b24-b291-732adbb82aa1'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d89cfe7a-cf12-455c-ad29-9dc07bf2ad65'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f487657c-e845-4b02-af96-af8b2b915c6f'), 'Costa del sol'); insert into settlement(id, name) values(UUID_TO_BIN('d6067b72-7361-46de-85f9-cfa13b1bac6f'), 'Crnl. Esteban Cantú'); insert into settlement(id, name) values(UUID_TO_BIN('a78ca769-29fe-467b-b907-194809a43c0d'), 'Crosthwhite'); insert into settlement(id, name) values(UUID_TO_BIN('9dfa4721-e578-4f2f-96e9-b62448d68e0a'), 'Cuatro Estrellas'); insert into settlement(id, name) values(UUID_TO_BIN('a5460c93-186a-4e0f-8f92-8887f3f784c4'), 'Cuatro Milpas'); insert into settlement(id, name) values(UUID_TO_BIN('dfb6f845-7783-4900-90fd-9c37938d41b4'), 'Cuauhtémoc'); insert into settlement(id, name) values(UUID_TO_BIN('d752a990-25a1-45a2-87ea-7113e545b75f'), 'Cuauhtémoc Este'); insert into settlement(id, name) values(UUID_TO_BIN('e71ea0b7-8225-406f-99d8-1e39e40472da'), 'Cuauhtémoc Norte'); insert into settlement(id, name) values(UUID_TO_BIN('53d152c9-03b9-4ca2-98c3-901b11e7cd8f'), 'Cuauhtémoc Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('bb8b8294-0a46-4645-94df-663803d79345'), 'Cuauhtémoc Sur'); insert into settlement(id, name) values(UUID_TO_BIN('46bd4e4f-7066-4558-8113-c3c6f11c8dd5'), 'Cubillas'); insert into settlement(id, name) values(UUID_TO_BIN('d1454f2f-c374-4fa7-9e36-1c6a4583eb78'), 'Cubillas Sur'); insert into settlement(id, name) values(UUID_TO_BIN('fe5ab9ce-717d-4375-b6cb-e7043912d22b'), 'Cucapah'); insert into settlement(id, name) values(UUID_TO_BIN('29fa5f0c-ea5b-4312-a238-a763eff0580a'), 'Cucapah (Mestizos)'); insert into settlement(id, name) values(UUID_TO_BIN('8f8ddd87-b5e5-48df-a5b9-64fd407f3268'), 'Cucapah INFONAVIT'); insert into settlement(id, name) values(UUID_TO_BIN('dfcb6fe7-5270-4da1-b39f-0fe798b00be9'), 'Cucapah Indígena'); insert into settlement(id, name) values(UUID_TO_BIN('e51bffe2-022b-40d4-8bd9-80f118cda4ba'), 'Cucapah Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('1e27d9b5-b683-4de8-b71c-182834aaa967'), 'Cuenca Lechera'); insert into settlement(id, name) values(UUID_TO_BIN('2ecdc852-f42a-41db-bf40-a2257f1d219a'), 'Cuernavaca'); insert into settlement(id, name) values(UUID_TO_BIN('1f41a6e7-e088-4323-9ea9-0699fa35f19f'), 'Cuervitos'); insert into settlement(id, name) values(UUID_TO_BIN('bb2c6543-6fbc-4c50-a396-39c7ae820f01'), 'Cuesta Blanca'); insert into settlement(id, name) values(UUID_TO_BIN('f1b107b8-c752-4783-804c-9e1f79e7f82c'), 'Cumbres de Juárez'); insert into settlement(id, name) values(UUID_TO_BIN('7e2ee9ed-6571-4601-af15-0ff7db448b2b'), 'Cumbres de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('157e58e1-d9a3-49d0-b40d-5d9650d4f6a3'), 'Cumbres de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('baf49755-7115-43ba-ab28-709380e35aed'), 'Cumbres del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('1670a345-53dd-4a4b-9af2-7c3bf43146b7'), 'Cumbres del Pacífico (Terrazas del Pacífico)'); insert into settlement(id, name) values(UUID_TO_BIN('592a7192-e469-4285-855a-600edb566f55'), 'Cumbres del Rubí'); insert into settlement(id, name) values(UUID_TO_BIN('0de28b9a-c584-411a-8fe3-691fcfb171bc'), 'Cumbres del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('0b5b1799-9972-4169-90bc-f994a89c46ff'), 'De ANSA'); insert into settlement(id, name) values(UUID_TO_BIN('a6a5fb6f-d5bc-4546-b566-80059fb4a5cd'), 'De los Maestros'); insert into settlement(id, name) values(UUID_TO_BIN('c2f1133f-d906-45b4-b38c-2691e7858c58'), 'Defensores de Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('d6960ce6-1dc4-4ec9-b37c-7569338d452d'), 'Del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('16688933-e296-498d-b50f-8112ae353d1b'), 'Del Rastro'); insert into settlement(id, name) values(UUID_TO_BIN('e6a0f1d7-0980-4c18-8636-a93eb6beab5c'), 'Del Río'); insert into settlement(id, name) values(UUID_TO_BIN('5b1dd9ce-5c67-48b6-a130-feaef20baf4e'), 'Del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('0d2c41f2-1a09-44ad-a2dd-7ec18346c2e7'), 'Del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('2f8c3389-423b-4d89-9ebe-a06b68b70b30'), 'Delicias'); insert into settlement(id, name) values(UUID_TO_BIN('42bc2b85-92ca-4362-ad38-f5b7d14e4716'), 'Delta (Estación Delta)'); insert into settlement(id, name) values(UUID_TO_BIN('9aba68dd-8b91-44df-9254-0c3a4b8c5d90'), 'Des. Urbanos Zacatecas II'); insert into settlement(id, name) values(UUID_TO_BIN('9d6d026f-a955-4416-99eb-4b399d358c67'), 'Desarrollo Urbano Camino del Sur'); insert into settlement(id, name) values(UUID_TO_BIN('725cf245-4680-4995-b796-f4648ab1681f'), 'Desarrollo Urbano Orizaba Sur'); insert into settlement(id, name) values(UUID_TO_BIN('509729da-4b91-4352-98c4-fe16de237248'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bba58cc9-2b80-4b31-84f9-790a8378645b'), 'Dieguinos'); insert into settlement(id, name) values(UUID_TO_BIN('fc3a5990-da99-4682-a256-006e71621e96'), 'Diez División Dos'); insert into settlement(id, name) values(UUID_TO_BIN('bb2b439f-45b4-4004-959e-b29ac83307d9'), 'Dimenstein'); insert into settlement(id, name) values(UUID_TO_BIN('7a2817d0-7c53-4785-8826-904a3614ca2e'), 'Distrito Federal'); insert into settlement(id, name) values(UUID_TO_BIN('cb73b551-47f5-41d5-9c72-f50a31c14ef2'), 'Divina Providencia'); insert into settlement(id, name) values(UUID_TO_BIN('df7a4ab7-6ab8-4d64-b103-669f84f81d7e'), 'División del Norte'); insert into settlement(id, name) values(UUID_TO_BIN('a10dd31f-f467-468d-bcaf-5e97e1efa3d9'), 'División los Altos'); insert into settlement(id, name) values(UUID_TO_BIN('9049cfcc-2855-46e2-b04d-6a9daa4fcc65'), 'Doctor <NAME> (El Indiviso)'); insert into settlement(id, name) values(UUID_TO_BIN('7a5a1a69-8ba8-4c96-8014-d9e7a7337a37'), 'Domingo Luna'); insert into settlement(id, name) values(UUID_TO_BIN('8044653e-3801-4a5b-92d0-a8366a7e6877'), 'Dos División Dos'); insert into settlement(id, name) values(UUID_TO_BIN('49e4398e-9f62-4b3f-bd9f-0e9933b34e13'), 'Downey'); insert into settlement(id, name) values(UUID_TO_BIN('98338745-6a24-491d-bec7-d65c661f1d9a'), 'Duara Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('19d9e449-40ca-428d-9f51-69a646fc191f'), 'Durango'); insert into settlement(id, name) values(UUID_TO_BIN('32b496e4-799f-43bc-8255-f97f005e930d'), 'Durán'); insert into settlement(id, name) values(UUID_TO_BIN('8efa3bc0-80bc-45a5-a4e9-a29dea6e72d5'), 'Dávila'); insert into settlement(id, name) values(UUID_TO_BIN('45d1cd87-25e5-428f-9fcd-43361d0e44ef'), 'Echeverría'); insert into settlement(id, name) values(UUID_TO_BIN('64de92f1-b4c8-4b37-a672-1f99763d7b5a'), 'Ecológicas Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('9fc053ae-300b-4ec0-a8cd-081fa4f15b21'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('ea5bf667-10fe-40f8-856b-5aaa8d86e77b'), 'Eguia'); insert into settlement(id, name) values(UUID_TO_BIN('1791f5e8-356e-4819-9d98-c8a02711ae9d'), 'Ejido Chilpancingo'); insert into settlement(id, name) values(UUID_TO_BIN('baed81e5-d328-4419-bb0d-a74e4983326f'), 'Ejido Francisco Villa'); insert into settlement(id, name) values(UUID_TO_BIN('67a78638-3430-4970-8bac-308076181811'), 'Ejido Francisco Villa 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('2cadb9e0-6229-403b-9ad0-29a6ad55b231'), 'Ejido Francisco Villa Sur'); insert into settlement(id, name) values(UUID_TO_BIN('b709c674-1d67-4c80-8d98-28d1abbfc9e0'), 'Ejido Lázaro Cárdenas'); insert into settlement(id, name) values(UUID_TO_BIN('b5455654-4206-43d4-8f3c-b9d83b6f6473'), 'Ejido Matamoros'); insert into settlement(id, name) values(UUID_TO_BIN('c6dfd020-23b2-4616-b044-7f8fcbc416a6'), 'Ejido Orizaba'); insert into settlement(id, name) values(UUID_TO_BIN('0c3e48d9-885f-484b-9edb-5f4412779b58'), 'Ejido Ruiz Cortines'); insert into settlement(id, name) values(UUID_TO_BIN('f83d4d91-f218-4bc6-ad1f-c70e2794955f'), 'Ejido Zacatecas'); insert into settlement(id, name) values(UUID_TO_BIN('7440ff83-2aee-4a5b-ae34-9494d63aa2f4'), 'El Ajusco'); insert into settlement(id, name) values(UUID_TO_BIN('c35a3d33-bb50-42c9-be38-a974f823650d'), 'El Bajío'); insert into settlement(id, name) values(UUID_TO_BIN('2bfcbd0f-bf3a-41b9-910b-8e0196490b4d'), 'El Barril'); insert into settlement(id, name) values(UUID_TO_BIN('8997526d-60b9-43c5-b522-252f10df0361'), 'El Bosque'); insert into settlement(id, name) values(UUID_TO_BIN('cc5d8d5a-c451-4e0e-9335-ad4c70366ef8'), 'El Caimán'); insert into settlement(id, name) values(UUID_TO_BIN('060384b0-4593-43ba-a96f-2f807d965ac1'), 'El Campanario'); insert into settlement(id, name) values(UUID_TO_BIN('b596e20c-5785-449e-b277-90ea78b92018'), 'El Campito'); insert into settlement(id, name) values(UUID_TO_BIN('bc5e91ca-7437-4474-8cd5-a1d020edc260'), 'El Capiri'); insert into settlement(id, name) values(UUID_TO_BIN('9aa36612-d305-4507-87cb-f54219478744'), 'El Centinela'); insert into settlement(id, name) values(UUID_TO_BIN('b4ed87d0-6d88-465b-adca-5f4caae1af74'), 'El Chorizo (Colonia Colorado 1 Campo León 1)'); insert into settlement(id, name) values(UUID_TO_BIN('19679602-fe4a-4014-a887-5ebd1270d100'), 'El Choropo (Colonia Colorado Número Uno)'); insert into settlement(id, name) values(UUID_TO_BIN('93a9f4a8-206d-43aa-9626-912646c67db4'), 'El Ciprés'); insert into settlement(id, name) values(UUID_TO_BIN('807adb47-7209-46bf-b8f6-bc241439bed9'), 'El Colonial'); insert into settlement(id, name) values(UUID_TO_BIN('6d03a474-7063-4259-86ae-a51524ec1ed5'), 'El Coloso'); insert into settlement(id, name) values(UUID_TO_BIN('0a7deb2e-f942-4db6-8f58-9f9da6dcad89'), 'El Coloso II'); insert into settlement(id, name) values(UUID_TO_BIN('bf740669-cc82-4960-a234-695cf3188477'), 'El Cortez'); insert into settlement(id, name) values(UUID_TO_BIN('cdeca87d-0d26-4c5d-8642-f313d5d1c2ff'), 'El Cóndor'); insert into settlement(id, name) values(UUID_TO_BIN('9f83eea3-b784-400b-b3ce-b190fe3cd749'), 'El Descanso'); insert into settlement(id, name) values(UUID_TO_BIN('ac8fd279-e21f-4380-ab61-7cade50fab81'), 'El Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('b66abe07-953f-42c2-ad07-5dca7d6a60bb'), 'El Dorado (Ejido Plan Nacional Agrario)'); insert into settlement(id, name) values(UUID_TO_BIN('7b203b45-213c-4fc7-9367-db9cd5f25134'), 'El Encanto'); insert into settlement(id, name) values(UUID_TO_BIN('13ef8404-38aa-413b-bc0a-eb8a6cb61698'), 'El Encinal'); insert into settlement(id, name) values(UUID_TO_BIN('7d14511a-7c6a-48a6-bee3-22139ebd7ed4'), 'El Escorial'); insert into settlement(id, name) values(UUID_TO_BIN('24fa2e75-fc57-4f30-af92-0b9fd79790dc'), 'El Faro'); insert into settlement(id, name) values(UUID_TO_BIN('20a8f665-cfa2-4924-bba7-99df1617465c'), 'El Florido 1a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('1ac4a688-6aa5-4713-b7c5-1cfa885c46c1'), 'El Florido 2a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0f8c6a27-e5f2-44f8-886c-5a4ce9d099ae'), 'El Florido I'); insert into settlement(id, name) values(UUID_TO_BIN('f1c48611-461c-4c4a-8906-9c357fedfa0e'), 'El Florido II'); insert into settlement(id, name) values(UUID_TO_BIN('3b16e8ab-5819-4e21-a583-f55ddee9b2f9'), 'El Florido III'); insert into settlement(id, name) values(UUID_TO_BIN('b9a7df94-4ae2-42a0-97c8-d7fe98176070'), 'El Florido IV'); insert into settlement(id, name) values(UUID_TO_BIN('90d7c430-5142-4775-bbc3-338b42dbf578'), 'El Florido Sección Colinas'); insert into settlement(id, name) values(UUID_TO_BIN('dd8f3c0c-414e-4db8-97d9-615c30e515ff'), 'El Jibarito'); insert into settlement(id, name) values(UUID_TO_BIN('9a341ebe-4f72-47c9-8596-fa39f25afaca'), 'El Lago'); insert into settlement(id, name) values(UUID_TO_BIN('824c3085-d3de-401c-bedd-6e47f7addf99'), 'El Laurel I'); insert into settlement(id, name) values(UUID_TO_BIN('d615b39d-19c6-4f43-8a02-577ef73c77b3'), 'El Laurel II'); insert into settlement(id, name) values(UUID_TO_BIN('7f3fcc6a-05fb-47b2-8940-215893d0a524'), 'El Lienzo'); insert into settlement(id, name) values(UUID_TO_BIN('8f8bd4ce-92db-4b40-a372-4dd2409d28e4'), 'El Maple'); insert into settlement(id, name) values(UUID_TO_BIN('87f1c3e8-a097-477d-8073-e0a4745a1286'), 'El Marítimo'); insert into settlement(id, name) values(UUID_TO_BIN('42afc330-7a5c-4e69-91c0-702edfb4648f'), 'El Mayab'); insert into settlement(id, name) values(UUID_TO_BIN('737e2bdf-4be4-4b13-9367-a41ec5eeae1f'), 'El Mañana'); insert into settlement(id, name) values(UUID_TO_BIN('1702b257-c105-4101-a61e-fff67afda814'), 'El Milagro'); insert into settlement(id, name) values(UUID_TO_BIN('ccfc7b1a-877f-4e03-bec8-f8e273490f06'), 'El Mirador'); insert into settlement(id, name) values(UUID_TO_BIN('7e7693d6-fc73-4fe6-8cf0-f6bac511655f'), 'El Mirador (La Mesa)'); insert into settlement(id, name) values(UUID_TO_BIN('3a46440f-c5d1-47a0-8bb3-121676c89cb1'), 'El Monte'); insert into settlement(id, name) values(UUID_TO_BIN('f63eaae7-30f8-4c64-93c5-d6fa388009a4'), 'El Morro'); insert into settlement(id, name) values(UUID_TO_BIN('7fee83dc-1c65-44e7-820c-cbf6aee23d3a'), 'El Morro Kilómetro Treinta y Ocho'); insert into settlement(id, name) values(UUID_TO_BIN('93bbf67b-8256-4f8a-a5b8-c0457db133ce'), 'El Naranjo'); insert into settlement(id, name) values(UUID_TO_BIN('0ca7a9c4-3bac-45ca-b1f2-5b99a99489b0'), 'El Niño'); insert into settlement(id, name) values(UUID_TO_BIN('7640ba84-eaae-469e-980b-17bd8a6e3bfd'), 'El Oasis'); insert into settlement(id, name) values(UUID_TO_BIN('f70899b9-c2ec-423a-845c-dad21aa5a501'), 'El Olivar'); insert into settlement(id, name) values(UUID_TO_BIN('7c33948a-5c75-4fec-a602-93dcaee6ba26'), 'El Palmar'); insert into settlement(id, name) values(UUID_TO_BIN('8507c040-0670-49e0-bbed-8db21c276e64'), 'El Papago INFONAVIT'); insert into settlement(id, name) values(UUID_TO_BIN('82c7e881-20e4-47ac-8b6c-bc7a5a99dc6b'), 'El Papalote'); insert into settlement(id, name) values(UUID_TO_BIN('6ca19dc8-27b3-409d-99c7-4d3023bf10ef'), 'El Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('3152ba79-a3d0-42ac-8766-22bb555ff1a6'), 'El Pedregal'); insert into settlement(id, name) values(UUID_TO_BIN('8c3b20a0-909a-430c-b067-97edccaeb786'), 'El Pedregal Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('9db79059-0e1d-4908-8c8f-aa4ce2706fe6'), 'El Peligro'); insert into settlement(id, name) values(UUID_TO_BIN('b3d8a733-56fd-4bf5-ba5b-9b418821d542'), 'El Pescador [Centro Turístico]'); insert into settlement(id, name) values(UUID_TO_BIN('762ff543-3563-4ba4-98ca-a77d202361cb'), 'El Peñón'); insert into settlement(id, name) values(UUID_TO_BIN('b62764fb-5242-4e04-9660-16a1a63f2348'), 'El Porvenir'); insert into settlement(id, name) values(UUID_TO_BIN('45228113-1fc3-4caf-b63c-d74d3ae112da'), 'El Porvenir (Guadalupe)'); insert into settlement(id, name) values(UUID_TO_BIN('71513404-8f58-4325-b674-63bdb24e77d1'), 'El Prado'); insert into settlement(id, name) values(UUID_TO_BIN('70fe9025-6e85-44ed-9742-004c4f9b4933'), 'El Prado Este'); insert into settlement(id, name) values(UUID_TO_BIN('5a347707-01a5-4c21-9d60-62e560e253fc'), 'El Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('9e1863ea-b094-4bc9-8a94-132e00fe2880'), 'El Puerto de Santo Tomás'); insert into settlement(id, name) values(UUID_TO_BIN('f6dc50ec-7dd9-4fa1-bee8-5fa98d55d23c'), 'El Pípila'); insert into settlement(id, name) values(UUID_TO_BIN('734272e7-8589-4b1b-ba26-b2d2d748671b'), 'El Ranchito'); insert into settlement(id, name) values(UUID_TO_BIN('e90767c6-8f08-424b-a82b-20f80c717932'), 'El Realito'); insert into settlement(id, name) values(UUID_TO_BIN('a67230ad-2947-4b31-9fd8-0fdca5f49efe'), 'El Refugio'); insert into settlement(id, name) values(UUID_TO_BIN('ebc16b41-0353-4d50-9bf1-633b7884b47c'), 'El Rincón'); insert into settlement(id, name) values(UUID_TO_BIN('a51fec0c-ea58-4855-8d94-af74e34eb9bb'), 'El Roble'); insert into settlement(id, name) values(UUID_TO_BIN('cfd3b608-4a48-46b0-b98c-f74421e50187'), 'El Robledo'); insert into settlement(id, name) values(UUID_TO_BIN('79e2db6a-3228-4e57-ac5a-b2286bc78277'), 'El Rosario de Abajo'); insert into settlement(id, name) values(UUID_TO_BIN('8b7a1993-1c65-4125-9995-5fe688755393'), 'El Rosario de Arriba'); insert into settlement(id, name) values(UUID_TO_BIN('e2b1e841-3408-480d-83f7-273ad978f379'), 'El Rubí'); insert into settlement(id, name) values(UUID_TO_BIN('cf143f13-03f4-4a03-b693-5fe8b56e812f'), 'El Sahuaro'); insert into settlement(id, name) values(UUID_TO_BIN('78e72bf1-2fd1-4a6d-88e5-2c459f9cb972'), 'El Salitral'); insert into settlement(id, name) values(UUID_TO_BIN('d6868b99-6a12-4bcb-b310-bad1e0b0446f'), 'El Sauce'); insert into settlement(id, name) values(UUID_TO_BIN('66a4081c-79f4-47d0-a8f9-a44acf0b9a1b'), 'El Sauzal'); insert into settlement(id, name) values(UUID_TO_BIN('a81ed0f4-ee65-4396-ac37-d6a9f7d9e8d9'), 'El Seminario'); insert into settlement(id, name) values(UUID_TO_BIN('fb01dc34-0b1c-4b03-a327-75afa73cd6ae'), 'El Socorrito'); insert into settlement(id, name) values(UUID_TO_BIN('963723ca-a982-4f9e-925e-090c210da3de'), 'El Socorro'); insert into settlement(id, name) values(UUID_TO_BIN('76f30123-9e5e-4441-9ace-001f7d9ac1d1'), 'El Tecolote'); insert into settlement(id, name) values(UUID_TO_BIN('1311b103-bc19-4a58-83f3-dea1b1b86c70'), 'El Tepeyac'); insert into settlement(id, name) values(UUID_TO_BIN('0fbaa7c9-fc54-4892-988f-dc86ea590a8b'), 'El Testerazo'); insert into settlement(id, name) values(UUID_TO_BIN('d5b8f6bf-0596-4fd2-8bba-a174d8670257'), 'El Triunfo'); insert into settlement(id, name) values(UUID_TO_BIN('a6042909-91b2-4b25-b2a3-8593c85a7bd1'), 'El Valle'); insert into settlement(id, name) values(UUID_TO_BIN('baf865f5-2315-4127-851d-a37ec1cd1076'), 'El Vidrio'); insert into settlement(id, name) values(UUID_TO_BIN('b564b174-9b1b-43e5-81b9-637987a451d1'), 'El Vigía'); insert into settlement(id, name) values(UUID_TO_BIN('b6a92d00-ff12-401e-a63d-b4349c41f7cb'), 'El Vigía II'); insert into settlement(id, name) values(UUID_TO_BIN('cfca9f13-4896-470e-b88b-3df97c6ff9ae'), 'El Yaqui'); insert into settlement(id, name) values(UUID_TO_BIN('ef09d8f7-05d0-4b8e-81f8-27ee818131c3'), 'El Águila'); insert into settlement(id, name) values(UUID_TO_BIN('30605464-4b07-45c9-8987-5e9c673b0385'), 'El Único'); insert into settlement(id, name) values(UUID_TO_BIN('ebe88137-50bd-490b-b43d-6d0eb20b4106'), 'Electricistas'); insert into settlement(id, name) values(UUID_TO_BIN('a9552f87-9c98-4a2c-a096-854463eb212d'), 'El<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('3434ee24-f549-4801-95ed-0c2cada03125'), 'Elizaura'); insert into settlement(id, name) values(UUID_TO_BIN('76a212b9-3e16-4a23-9308-e4f874f8991c'), 'Elías'); insert into settlement(id, name) values(UUID_TO_BIN('d5b85911-7bb8-4f12-bc21-422f69edf73e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('1bde9207-4dbb-4fba-9415-f45fa071a839'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('1cb8a0c6-fd79-464d-902a-731caf77ec12'), 'Emperadores'); insert into settlement(id, name) values(UUID_TO_BIN('a509f3f2-498d-465f-a60b-2882d25e2749'), 'Empleado Postal'); insert into settlement(id, name) values(UUID_TO_BIN('06ad4725-6a7b-4a9e-8016-67044ab52eb3'), 'Empleados'); insert into settlement(id, name) values(UUID_TO_BIN('45ae9003-7981-4a43-86e0-9ca66c54ce75'), 'Empleados Federales'); insert into settlement(id, name) values(UUID_TO_BIN('b6f1806b-16fc-43dd-873c-6a039442f90a'), 'Encanto Norte'); insert into settlement(id, name) values(UUID_TO_BIN('aec96f73-ba41-4410-998a-5c618d7d09a9'), 'Encanto Sur'); insert into settlement(id, name) values(UUID_TO_BIN('36cc4790-39cd-4ec4-8505-01908cd3909e'), 'Eréndira'); insert into settlement(id, name) values(UUID_TO_BIN('4b46ff1c-c4db-4951-a1c5-51bbe152ac1b'), 'Escolar Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('7b882c01-e2a0-4c08-8746-47a5aae3a824'), 'Escritores'); insert into settlement(id, name) values(UUID_TO_BIN('4f58f3b3-bec2-4e97-8acb-9b27b906aa68'), 'Escudero'); insert into settlement(id, name) values(UUID_TO_BIN('e4fca42b-3294-4534-9dc2-b71e6278ce83'), 'Esperanza'); insert into settlement(id, name) values(UUID_TO_BIN('759b1439-857e-46a0-a0b4-7b15be356b84'), 'Espinoza'); insert into settlement(id, name) values(UUID_TO_BIN('18339e65-92d1-41f5-8b45-8dfb38174c14'), 'Esquer (Colonia Orive de Alba)'); insert into settlement(id, name) values(UUID_TO_BIN('c8cad433-51df-4f89-800d-ae72fb1e3b94'), 'Estación Pescaderos (Kilómetro Treinta y Nueve)'); insert into settlement(id, name) values(UUID_TO_BIN('27868790-caae-4876-b809-4819a780987d'), 'Estadio Potros'); insert into settlement(id, name) values(UUID_TO_BIN('a6ae3e77-54e0-4a89-b936-f9e2d7c8a39c'), 'Estado 29'); insert into settlement(id, name) values(UUID_TO_BIN('9907b5a8-da2f-4534-ab18-56ea4690449a'), 'Estado de México'); insert into settlement(id, name) values(UUID_TO_BIN('f9cb6e58-dafa-49cd-b612-62c6f94a6a0f'), 'Estatutos Jurídicos'); insert into settlement(id, name) values(UUID_TO_BIN('89a44d37-4bac-48ee-8974-128180a81a66'), 'Esteban Cantú'); insert into settlement(id, name) values(UUID_TO_BIN('d3c286cc-1771-4309-a335-f7052aec9d06'), 'Estrella del Pacífico'); insert into settlement(id, name) values(UUID_TO_BIN('8b8e2318-9f29-42c3-b2e5-e95d83d24221'), 'Estéban Cantú'); insert into settlement(id, name) values(UUID_TO_BIN('2dd0efd3-cc40-46a0-b7fc-2819c1986f1d'), 'Eucaliptos'); insert into settlement(id, name) values(UUID_TO_BIN('2d61d9eb-6a93-4960-83b0-e04195c25968'), 'Ex Ejido Coahuila'); insert into settlement(id, name) values(UUID_TO_BIN('99a2cbfb-de16-4fd8-8c0c-f96105d56597'), 'Ex Ejido Tampico'); insert into settlement(id, name) values(UUID_TO_BIN('7f417014-8697-4b08-8cad-8d3ca7eb7724'), 'FIDUZET'); insert into settlement(id, name) values(UUID_TO_BIN('494e12b2-02ce-4fb7-bd9a-d04319c919ef'), 'FONDEPORT'); insert into settlement(id, name) values(UUID_TO_BIN('096765b9-87b2-42bf-93d8-a631febe2d38'), 'FOVISSSTE'); insert into settlement(id, name) values(UUID_TO_BIN('62091852-04a7-4879-9402-7648c9b05c17'), 'FOVISSSTE 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('ddfeab6e-354c-4fbe-8ba8-6a1cce430d6b'), 'FOVISSSTE 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('c9b15d92-5cc4-44cf-bf48-19b162a12d02'), 'FOVISSSTE 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('09b19a79-3949-4767-8e3c-f94bc4257d37'), 'FOVISSSTE 4a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('e5b73099-cfe1-405e-b45c-41e40f60bbb6'), 'FOVISSSTE II'); insert into settlement(id, name) values(UUID_TO_BIN('c06b2f97-6cd0-4e0c-a360-3540d50e93c6'), 'FOVISSSTE Los Volcanes'); insert into settlement(id, name) values(UUID_TO_BIN('b7531250-5e7c-4bdb-8ece-64e9f9f91a71'), 'FOVISSSTE V'); insert into settlement(id, name) values(UUID_TO_BIN('d9b9006e-36d3-4708-bb54-9947c6bc4412'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('43c21db5-7303-4a70-bc73-88f6aec899f9'), 'Federal'); insert into settlement(id, name) values(UUID_TO_BIN('96a02da4-2464-4cd1-84e3-5ddde7033aa9'), 'Felipa Velázquez'); insert into settlement(id, name) values(UUID_TO_BIN('442a4a39-ba64-4ed9-9503-56431c03c89a'), 'Felipe Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('eb0d431f-2a52-45ca-9e37-6a944ad95656'), 'Fernández'); insert into settlement(id, name) values(UUID_TO_BIN('e7101b76-bffe-4b92-b73a-9d0163076651'), 'Ferrocarril'); insert into settlement(id, name) values(UUID_TO_BIN('cef63f99-e021-48ea-8b79-c4b508077af7'), 'Fideicomiso el Florido'); insert into settlement(id, name) values(UUID_TO_BIN('de038cb8-08f7-4cac-82c1-35ff0ffc7d21'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a5535fa3-13d6-48e3-b2dc-6c200c4c8c25'), 'Finca Los Jazminez'); insert into settlement(id, name) values(UUID_TO_BIN('c31c23e5-04cf-4c11-beca-f744df585518'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('9ca3e307-5053-480e-b0db-db0d59b77c76'), 'Florido Viejo'); insert into settlement(id, name) values(UUID_TO_BIN('81e580d9-b372-4935-8c90-a888e65429ef'), 'Fortín de las Flores'); insert into settlement(id, name) values(UUID_TO_BIN('02ba0f75-73af-4d5e-a175-94caa56f26b7'), 'Fortín de las Flores Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('dfba6c26-dff7-4bf1-a11a-41bd42e0ef7e'), 'Francisco I Madero'); insert into settlement(id, name) values(UUID_TO_BIN('311eccf6-06cf-46d5-8595-d0191267dfd2'), 'Francisco I. Madero'); insert into settlement(id, name) values(UUID_TO_BIN('da03d4ad-c420-4567-90ea-785b969700db'), 'Francisco Santana Peralta'); insert into settlement(id, name) values(UUID_TO_BIN('9491c128-a2b8-4de4-b548-1b29b1d1a74b'), 'Francisco Villa'); insert into settlement(id, name) values(UUID_TO_BIN('a33648c1-2dc3-460b-88bd-12c37ec67d96'), 'Francisco Villa (San Simón)'); insert into settlement(id, name) values(UUID_TO_BIN('290d1c9b-ae82-4ac7-aa2f-d7459374324c'), 'Francisco Villa I'); insert into settlement(id, name) values(UUID_TO_BIN('709c9f09-d58d-4d35-97d6-40e59cce9a36'), 'Francisco Villa II'); insert into settlement(id, name) values(UUID_TO_BIN('381f63b4-8079-45b9-bea7-15a6655d399f'), 'Fr<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d9cfa94d-92ab-4ef2-b2ad-8e89b7366772'), 'Frontera'); insert into settlement(id, name) values(UUID_TO_BIN('1ef262e4-819d-4a8a-a48c-63b108d40f1f'), 'Fronteriza'); insert into settlement(id, name) values(UUID_TO_BIN('ebfd136c-153c-4a15-bb54-45098b9e0de1'), 'Fuentes del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('95556451-53ac-4999-bdee-e42533c46388'), 'Fundadores'); insert into settlement(id, name) values(UUID_TO_BIN('04819735-e834-4522-bfc5-49b63c2dd2e9'), 'Gabilondo'); insert into settlement(id, name) values(UUID_TO_BIN('50120d85-8e05-4c9f-a191-8fbc69bcb3dc'), 'Gabriela Mistral'); insert into settlement(id, name) values(UUID_TO_BIN('10b9b99c-e7c0-4d9d-a5c6-9e2f6bd561db'), 'García'); insert into settlement(id, name) values(UUID_TO_BIN('d5fa05b5-a3df-4cd9-bdc7-a4cc94d321c5'), 'Garita Internacional'); insert into settlement(id, name) values(UUID_TO_BIN('c43eb67d-6bc1-494c-bee3-7f3763223a14'), 'Garita Otay'); insert into settlement(id, name) values(UUID_TO_BIN('05290e62-e219-4d7a-9556-5f72efb8ae7c'), 'Gas y Anexas'); insert into settlement(id, name) values(UUID_TO_BIN('62071ca1-65d5-4a7c-8692-0bcd5e8d61ad'), 'Gasca'); insert into settlement(id, name) values(UUID_TO_BIN('8c3f2bc8-0fe5-4ff7-ac1d-ed2554f988e9'), 'Genaro Vázquez'); insert into settlement(id, name) values(UUID_TO_BIN('a771e591-1b3f-41ae-99be-e2a01efca72e'), 'Genaro Vázquez Sección Tres'); insert into settlement(id, name) values(UUID_TO_BIN('64f8750f-97fc-4c5c-a264-9e3c3b983deb'), 'Generación 2000'); insert into settlement(id, name) values(UUID_TO_BIN('bda8cef9-8978-44fa-b87b-0637b82068fa'), 'General Felipe Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('17506d6b-4626-4e07-bd52-d8651ce28a11'), 'General Gertrudis García Sánchez'); insert into settlement(id, name) values(UUID_TO_BIN('0a983da4-d324-4c2d-ac95-5521020e9719'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a0026d46-baaa-4209-889b-0cbe792e52cd'), 'Generales de México'); insert into settlement(id, name) values(UUID_TO_BIN('1f18f0c0-5df4-46eb-9300-488a9149e29f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('832d7f89-8abb-46e6-8f96-db34263caf08'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7570e73f-3b46-486a-8785-3f432ec08c8a'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('32a02f87-c842-49c6-95a1-9f6e2dd350cc'), '<NAME> Desierto'); insert into settlement(id, name) values(UUID_TO_BIN('17f62d2c-ffa3-4bc5-9c04-5e72aceb7e5e'), 'González'); insert into settlement(id, name) values(UUID_TO_BIN('39f1a6b4-7a62-4a63-9b99-6165a08f6ba3'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('21ff30f6-c047-4511-9044-663ada3f6354'), 'González Ortega Norte'); insert into settlement(id, name) values(UUID_TO_BIN('ab67ab69-e2ae-428e-90e9-8b30367210ef'), 'González Ortega Poniente 1'); insert into settlement(id, name) values(UUID_TO_BIN('525f8524-8089-4a39-98cc-bc5d3c27b5c6'), 'González Ortega Poniente 2'); insert into settlement(id, name) values(UUID_TO_BIN('489ff12a-d1ff-4f26-9a96-15a6de4b133a'), 'González Ortega Poniente 3'); insert into settlement(id, name) values(UUID_TO_BIN('8be9e0b1-aebf-43a0-81d4-a1fd4694bb45'), 'Gral. <NAME> (Km. 49)'); insert into settlement(id, name) values(UUID_TO_BIN('2fd7565d-8225-49f3-9647-bea104f5caef'), 'Gral. <NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('fb1e2f23-cf50-4de1-b685-0c2d51fd4241'), 'Gran Hacienda'); insert into settlement(id, name) values(UUID_TO_BIN('8011a9a9-bc81-492f-89d8-db7fd418ae62'), 'Gran Segovia'); insert into settlement(id, name) values(UUID_TO_BIN('07ad30c0-8bfa-4e0f-8d96-df59faa2da90'), 'Gran Tenochtitlán'); insert into settlement(id, name) values(UUID_TO_BIN('eef50652-e355-48de-b997-4329f1f40ea3'), 'Gran Venecia'); insert into settlement(id, name) values(UUID_TO_BIN('53e2e41e-5e1f-4162-ba6d-54f2c52b92fe'), 'Granados'); insert into settlement(id, name) values(UUID_TO_BIN('cf2db788-785e-4e11-a6bd-694c49100fda'), 'Granja Puesta del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('dbb197cd-9002-450e-a375-813893f8c36d'), 'Granjas Arco Iris'); insert into settlement(id, name) values(UUID_TO_BIN('e79dc0de-cbbb-4157-b69d-54b4127068bb'), 'Granjas Buenos Aires Sección La Palma'); insert into settlement(id, name) values(UUID_TO_BIN('7b1984eb-a862-4fcf-b1cb-309c073de74e'), 'Granjas Chapingo'); insert into settlement(id, name) values(UUID_TO_BIN('b83f0d9a-6418-43e0-bc79-ae46470aff59'), 'Granjas División del Norte'); insert into settlement(id, name) values(UUID_TO_BIN('acff06d5-faba-4cf7-8f33-904f9bb7a756'), 'Granjas Familiares Unidas'); insert into settlement(id, name) values(UUID_TO_BIN('146ac507-af81-4675-b878-0246c8f28b2e'), 'Granjas Familiares de Matamoros'); insert into settlement(id, name) values(UUID_TO_BIN('c55e5093-b67e-496c-be25-c9c7d0c3b27d'), 'Granjas Nuevas'); insert into settlement(id, name) values(UUID_TO_BIN('577f7846-96cd-4de9-8014-a7a9f7c8329b'), 'Granjas Princesas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('a6918f81-6cf6-4e68-a7a4-89201bfd3292'), 'Granjas Santa Cecilia'); insert into settlement(id, name) values(UUID_TO_BIN('bdc19444-b551-49fb-aac7-41be31f2bfcd'), 'Granjas Valle Verde'); insert into settlement(id, name) values(UUID_TO_BIN('40e4f683-38cf-4d77-9ade-131e3aa32d19'), 'Granjas Virreyes'); insert into settlement(id, name) values(UUID_TO_BIN('0ed6e28b-447f-4d59-8e97-1e586d4a4f87'), 'Granjas el Gallo'); insert into settlement(id, name) values(UUID_TO_BIN('f820165a-1b66-4556-8cbc-e2b582ea0fa3'), 'Granjas el Tecolote'); insert into settlement(id, name) values(UUID_TO_BIN('bb7d75a3-4768-4b82-9e43-141950c72791'), 'Grlmo. Morelos'); insert into settlement(id, name) values(UUID_TO_BIN('2df4e57f-d108-466d-97d8-d7756891f423'), 'Guadalajara'); insert into settlement(id, name) values(UUID_TO_BIN('07ccf95a-7161-4960-8589-76b49d165fbc'), 'Guadalajara (La Mesa)'); insert into settlement(id, name) values(UUID_TO_BIN('84cf53ba-6e7e-477d-8af0-8d072d717326'), 'Guadalupe Victoria'); insert into settlement(id, name) values(UUID_TO_BIN('bea84dd0-9f92-492b-959d-96afa7dd8d44'), 'Guajardo'); insert into settlement(id, name) values(UUID_TO_BIN('338d4520-2dc7-4931-8762-ff3ca402ce82'), 'Guanajuato'); insert into settlement(id, name) values(UUID_TO_BIN('59f3f327-6075-49f3-a793-8f81cb283321'), 'Guarnición Militar'); insert into settlement(id, name) values(UUID_TO_BIN('fb45f601-71bb-4fca-873b-dfc7581f6f79'), 'Guayaquil'); insert into settlement(id, name) values(UUID_TO_BIN('55cbd9c7-b026-4083-b617-3cb080eb757b'), 'Guaycura'); insert into settlement(id, name) values(UUID_TO_BIN('5a3b3e31-7a0a-4e5b-8d92-beef8007f1c1'), 'Guerrero'); insert into settlement(id, name) values(UUID_TO_BIN('c5d7bb1c-5d4c-40a6-9b63-1260c5317acf'), 'Guillen'); insert into settlement(id, name) values(UUID_TO_BIN('02f35647-3714-4755-bdb6-7a6fbb659c0a'), 'Gutiérrez Ovalle'); insert into settlement(id, name) values(UUID_TO_BIN('2ebbd409-e12e-4f4d-8503-6275b2cf25c9'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('eeae9857-9016-43cc-8070-fed9eabda2fe'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b09e9e5f-6aae-4900-84a0-409ce6d8c5e7'), 'Hacienda Acueducto'); insert into settlement(id, name) values(UUID_TO_BIN('cfe92c91-d87c-4440-afaa-53a2f41a3cf0'), 'Hacienda Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('6477a73c-2265-49be-b07e-f7a5d3832152'), 'Hacienda Bilbao'); insert into settlement(id, name) values(UUID_TO_BIN('9e742374-905d-43ff-8878-eef6f1b8d5e6'), 'Hacienda Casa Grande'); insert into settlement(id, name) values(UUID_TO_BIN('3fe60960-22ff-42b3-97aa-5b733c1b2b97'), 'Hacienda Dorada'); insert into settlement(id, name) values(UUID_TO_BIN('fe759c64-aa69-4d68-b395-c9cf5382262b'), 'Hacienda Floresta'); insert into settlement(id, name) values(UUID_TO_BIN('5fb65690-1135-4a4a-9170-8469f1651834'), 'Hacienda La Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('bd30055f-a577-4e4f-8d61-fb3e509bb365'), 'Hacienda Las Delicias'); insert into settlement(id, name) values(UUID_TO_BIN('46b2d538-7916-43de-82bd-3ad1565d98f2'), 'Hacienda Linda Vista'); insert into settlement(id, name) values(UUID_TO_BIN('76ec8c3a-aff2-4719-85ba-41620f0e6e74'), 'Hacienda Málaga'); insert into settlement(id, name) values(UUID_TO_BIN('597487a9-39d0-4127-a17c-0fc118ebc426'), 'Hacienda Real'); insert into settlement(id, name) values(UUID_TO_BIN('f5d43991-7eb5-4048-bcfd-db8bff0ad488'), 'Hacienda San Fernando'); insert into settlement(id, name) values(UUID_TO_BIN('f0283873-a38e-4409-b2d2-ed0cfb9e7035'), 'Hacienda Santa María'); insert into settlement(id, name) values(UUID_TO_BIN('b1caee42-afef-4be7-9346-b7671f799cdc'), 'Hacienda Tecate'); insert into settlement(id, name) values(UUID_TO_BIN('972c123f-2ec0-418e-aa58-5bb58aadc7c8'), 'Hacienda de Castilla'); insert into settlement(id, name) values(UUID_TO_BIN('4478fdd8-3b2f-4f5a-b9ab-d72fa8b60beb'), 'Hacienda de Los Portales'); insert into settlement(id, name) values(UUID_TO_BIN('340a738d-4220-4f14-947f-3e8bb51320fd'), 'Hacienda de Los Portales 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('d88392be-061f-4ba5-9337-13ccea6b1911'), 'Hacienda de Los Portales 5a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('6d9242af-3d65-444b-bba1-2ffa1f276a46'), 'Hacienda de Lourdes'); insert into settlement(id, name) values(UUID_TO_BIN('df2a1d53-ca0e-4651-9c46-94a84ac86257'), 'Hacienda de Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('85cfc494-893f-49be-92b6-540f2c6e62d6'), 'Hacienda de las Torres'); insert into settlement(id, name) values(UUID_TO_BIN('c572edee-7112-4dc4-ae92-c0f8960bd0f4'), 'Hacienda de los Portales 2da Sección'); insert into settlement(id, name) values(UUID_TO_BIN('22e88d71-5954-4189-834b-731f3070ff6d'), 'Hacienda de los Portales 4a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('d103a50b-9517-45fa-a38f-9c9e0d5f35a8'), 'Hacienda del Bosque'); insert into settlement(id, name) values(UUID_TO_BIN('55cd0666-d399-4633-848f-938ab0d17756'), 'Hacienda del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('a45f0703-f886-4b68-91a8-4942b38e59b4'), 'Hacienda del Pacifico'); insert into settlement(id, name) values(UUID_TO_BIN('860d3616-faa0-4d1c-942b-06a22a93e416'), 'Hacienda del Real'); insert into settlement(id, name) values(UUID_TO_BIN('7a114421-522b-47f3-bfd6-7da145b9322a'), 'Hacienda del Río'); insert into settlement(id, name) values(UUID_TO_BIN('0393a9d0-e5db-4447-be85-d09a8eb8f5f3'), 'Hacienda del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('eb5b1402-9811-4a47-af6d-f76a3730db76'), 'Hacienda el Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('094a38cc-c6af-49e5-924e-db3686ece963'), 'Hacienda el Pilar'); insert into settlement(id, name) values(UUID_TO_BIN('1ea98030-db56-4a4b-be63-361f88ab6524'), 'Hacienda las Delicias III'); insert into settlement(id, name) values(UUID_TO_BIN('ab93c22f-377e-4acd-be32-9d1e1d2ca484'), 'Hacienda las Flores'); insert into settlement(id, name) values(UUID_TO_BIN('6b54b544-38af-4494-a4f8-de93349ac1fd'), 'Hacienda las Fuentes'); insert into settlement(id, name) values(UUID_TO_BIN('1b678ebe-2c21-41f2-8f8b-8b179f1e9676'), 'Hacienda las Palomas'); insert into settlement(id, name) values(UUID_TO_BIN('d4d9ff1d-ecef-4a7e-87d4-a7470991dd32'), 'Hacienda los Laureles'); insert into settlement(id, name) values(UUID_TO_BIN('1ae03acf-ac07-4fd2-8e75-cd73aa56356c'), 'Hacienda los Venados'); insert into settlement(id, name) values(UUID_TO_BIN('96243a29-8261-4fa5-9584-d3900e7bc0d0'), 'Haciendas Orizaba'); insert into settlement(id, name) values(UUID_TO_BIN('94c9f0a4-f87e-41cd-9544-8bc12cace529'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('cf1957c3-1bb4-4196-b07f-7a6b5951465e'), 'Hechicera Estación'); insert into settlement(id, name) values(UUID_TO_BIN('d9f7b315-ca72-489a-bc6a-37774eb90947'), 'Hega'); insert into settlement(id, name) values(UUID_TO_BIN('9d50ca5d-9310-477e-be06-97932b5ebac6'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('1cc6db08-9f13-4e88-ab1f-52281632d4f0'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('87f6ca52-296d-4821-9877-1a7b31524179'), 'Hermosillo'); insert into settlement(id, name) values(UUID_TO_BIN('353af67b-e05d-45e7-808e-39f712b03aa4'), 'Herradura'); insert into settlement(id, name) values(UUID_TO_BIN('0bb774ee-3b59-4b36-a3ad-15b834ed2b98'), 'Herradura Sur'); insert into settlement(id, name) values(UUID_TO_BIN('bec21109-8978-43bf-be43-b028943f6ac6'), 'Herrera'); insert into settlement(id, name) values(UUID_TO_BIN('a1f18ba3-ceb2-4c4b-ba77-e879eee33bef'), 'Hidalgo'); insert into settlement(id, name) values(UUID_TO_BIN('851fa5de-87f7-47b1-9f53-d9020cfaefc6'), 'Hindúes'); insert into settlement(id, name) values(UUID_TO_BIN('a641080d-bc17-461e-bb3d-f500e9866243'), 'Hipódromo'); insert into settlement(id, name) values(UUID_TO_BIN('9bfae277-47f3-4a8d-b6f9-4d54a92f27f2'), 'Hipódromo Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('bc2f5bd9-5f20-4b45-ae2b-838824e3699c'), 'Hipódromo Dos'); insert into settlement(id, name) values(UUID_TO_BIN('5f3f941e-2635-48a2-a517-eb37f1e1ce39'), 'Hipólito Rentería'); insert into settlement(id, name) values(UUID_TO_BIN('fa63a0c7-6507-4aa1-8e87-bea99f3df09d'), 'Hogares del Puerto'); insert into settlement(id, name) values(UUID_TO_BIN('5cb63e88-3241-4011-ae51-bf6c3af8a2f6'), 'Horóscopo'); insert into settlement(id, name) values(UUID_TO_BIN('4ff140fd-9cd1-40b3-928b-ea6c0ff29b71'), 'Huacatay'); insert into settlement(id, name) values(UUID_TO_BIN('c34539d6-3923-41c5-adc9-cfacfe220277'), 'Huertas 1a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('3a1f37c4-17d9-41a0-9d22-2e8f18cf4470'), 'Huertas 2a. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('26892b23-6d62-4d22-87b3-f7287ce2c293'), 'Huertas de La Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('49ec11ad-1443-41f9-8659-0930a861c5d6'), 'Huertas del Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('b2674791-b18b-487f-b87c-7bb8df548040'), 'Huertas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('90d53e43-8cd1-4343-b713-5311a678f5cc'), 'Hábitat Piedras Blancas'); insert into settlement(id, name) values(UUID_TO_BIN('1ef293d3-4524-4ae1-9370-abb31ab2a9a4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('6f0d3623-aa6d-4eff-852d-097797ac0251'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('9a3902f7-d5af-49b0-9529-ac1543833d7e'), 'Héroes de Independencia'); insert into settlement(id, name) values(UUID_TO_BIN('de77574b-707a-4328-9f8e-092da984c1b7'), 'Héroes de La Independencia (Llano Colorado)'); insert into settlement(id, name) values(UUID_TO_BIN('586e62c6-3275-4763-b727-72e4baa7163e'), 'I Ayuntamiento'); insert into settlement(id, name) values(UUID_TO_BIN('70f6df8d-2dca-4d3f-8b4d-13cde9715718'), 'IMAQ Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('be2cce78-c0ad-4657-b2ea-96e38704a783'), 'IMSS Siglo XXI'); insert into settlement(id, name) values(UUID_TO_BIN('f4b94259-fbdc-4dd5-b419-0e262e47083b'), 'INDECO Universidad'); insert into settlement(id, name) values(UUID_TO_BIN('5520d1c5-5057-4bbf-9ff0-e055bac738bb'), 'INFONAVIT Cachanillas'); insert into settlement(id, name) values(UUID_TO_BIN('cd2ed90a-e2d6-4f91-9afb-38d8dd50922b'), 'INFONAVIT Canaima'); insert into settlement(id, name) values(UUID_TO_BIN('c8cc1fc3-c5e5-421a-bd65-1f3f6c8b4f86'), 'INFONAVIT Industrial'); insert into settlement(id, name) values(UUID_TO_BIN('18daeede-313f-4d35-99d7-ba6848a71a76'), 'INFONAVIT La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('53d8d8cf-85bc-4524-a9c1-135b21e763df'), 'INFONAVIT Latinos'); insert into settlement(id, name) values(UUID_TO_BIN('9735d329-4b32-490f-b179-198bfd45c1d1'), 'INFONAVIT Loma Alta'); insert into settlement(id, name) values(UUID_TO_BIN('c7c4353b-1d75-48b2-b536-ff93b3da7606'), 'INFONAVIT Loma II'); insert into settlement(id, name) values(UUID_TO_BIN('590b6e91-cd5e-4711-bc99-593b079d9e5c'), 'INFONAVIT Lomas Verdes'); insert into settlement(id, name) values(UUID_TO_BIN('ff7ffb1e-16e1-40fa-9c6e-67e3770c25b4'), 'INFONAVIT Lomas del Porvenir'); insert into settlement(id, name) values(UUID_TO_BIN('83b937c4-75b6-41a3-9a3b-a3b73c787c8e'), 'INFONAVIT Nuevo Milenio'); insert into settlement(id, name) values(UUID_TO_BIN('2a7e907f-ddf4-42ed-ae03-c3635eadea20'), 'INFONAVIT Patrimonio'); insert into settlement(id, name) values(UUID_TO_BIN('adb0e0f7-728e-4ae2-b03a-54e32da3e347'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b4d86039-f4f5-4821-99af-06528ce11e8a'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bd409f17-d963-4046-861c-295a596e1939'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('760ac6d4-f5d0-4d1e-8afe-9fb5678daa4d'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a4ec1a44-332a-4f9a-93a1-aa92a737ac7b'), '<NAME>aragoza'); insert into settlement(id, name) values(UUID_TO_BIN('f611ef78-40ff-4270-b466-5ce749b4f8e5'), 'Ilusión'); insert into settlement(id, name) values(UUID_TO_BIN('06ee2f8f-cab5-43e3-b204-ed3068196222'), 'Imperial'); insert into settlement(id, name) values(UUID_TO_BIN('702d72b4-f12d-4946-8904-6eaca3d85410'), 'Indeco'); insert into settlement(id, name) values(UUID_TO_BIN('25141cba-d9fe-442c-8850-389c064aa0c7'), 'Indeco Anáhuac'); insert into settlement(id, name) values(UUID_TO_BIN('edf605b7-557c-4079-9c9f-bb63c7cd56b5'), 'Independencia'); insert into settlement(id, name) values(UUID_TO_BIN('babdde88-d8d3-4fc9-984e-b81afa8dcf34'), 'Industrial'); insert into settlement(id, name) values(UUID_TO_BIN('df6d571e-65f8-4a43-a030-05ce1d64379d'), 'Industrial Morelos'); insert into settlement(id, name) values(UUID_TO_BIN('5f9d1812-0e28-44f6-b577-8d289ebb170f'), 'Industrial Pacífico I'); insert into settlement(id, name) values(UUID_TO_BIN('97916871-3d42-40a5-a3d9-f78ecbcb6475'), 'Industrial Pacífico II'); insert into settlement(id, name) values(UUID_TO_BIN('8795af25-12ce-49ac-aad6-a5359b0e0197'), 'Industrial Pacífico III'); insert into settlement(id, name) values(UUID_TO_BIN('1adb2c87-b7a4-48cd-8693-a15ec844ef64'), 'Insurgentes'); insert into settlement(id, name) values(UUID_TO_BIN('61a15dad-b79a-4cd7-b3c1-4c6a0ec3bfa0'), 'Insurgentes Este'); insert into settlement(id, name) values(UUID_TO_BIN('14cfa037-a661-44c1-8048-794ab9febf6a'), 'Insurgentes Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('ea583c51-f7a6-4519-b178-40dc1ac33762'), 'Internacional'); insert into settlement(id, name) values(UUID_TO_BIN('ee88b9fa-51c1-4eae-bd91-f379567768f2'), 'Internacional Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('e2bdaa71-2373-4566-a698-b744ab8b1979'), 'Irapuato'); insert into settlement(id, name) values(UUID_TO_BIN('4981e01d-8a32-4ea1-bbde-39ed661e8653'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('e500f8f3-4de5-4a50-bfea-4e1c720084aa'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('533b656d-a364-4fe1-877f-b75f7e5ded83'), 'Isla Mujeres'); insert into settlement(id, name) values(UUID_TO_BIN('8e8f486d-273f-4a71-a894-516736e61499'), 'Isla de Cedros'); insert into settlement(id, name) values(UUID_TO_BIN('5bf66cd1-7622-41db-ba1b-db73127aac48'), 'Islas Agrarias A'); insert into settlement(id, name) values(UUID_TO_BIN('488811e9-d328-4953-82cf-f97924ec0c0d'), 'Islas Agrarias B'); insert into settlement(id, name) values(UUID_TO_BIN('713948bb-f728-490a-bbdb-ef22341ef407'), 'Jabonera'); insert into settlement(id, name) values(UUID_TO_BIN('31c7c115-d6dc-4e05-9753-32b825b7d4bc'), 'Jacume'); insert into settlement(id, name) values(UUID_TO_BIN('1133dcab-15cd-4fd9-a8eb-31ea3987c9ef'), 'Jalapa'); insert into settlement(id, name) values(UUID_TO_BIN('09534e06-1965-4376-aedf-105795697f6e'), 'Jalisco'); insert into settlement(id, name) values(UUID_TO_BIN('e19e7c84-987c-4e9b-91b2-61a25eae6a61'), 'Janitzio'); insert into settlement(id, name) values(UUID_TO_BIN('dff6e7d7-a1a5-47bf-80ae-826d2cf736e0'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('81d31633-f482-4fc5-a39d-6f7a03701959'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('862e0a0e-2518-4e2e-a4a5-4d7c98bd2450'), 'Jardines de Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('c3f44318-8782-40d4-bcf3-f63bc29f84e6'), 'Jardines de Chapultepec S-E'); insert into settlement(id, name) values(UUID_TO_BIN('aee634d8-391c-459d-bacb-b26abf3a5f9f'), 'Jardines de La Arboleda'); insert into settlement(id, name) values(UUID_TO_BIN('7738e21e-463b-4381-9ef6-321660f17522'), 'Jardines de La Gloria'); insert into settlement(id, name) values(UUID_TO_BIN('5b5c14d1-a38a-43a0-b166-041d2a70d82d'), 'Jardines de La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('e19418e8-157a-4286-9db9-594a3ed923bb'), 'Jardines de La Misión'); insert into settlement(id, name) values(UUID_TO_BIN('7c4b571e-cc26-4117-a61a-bb1b94be49c5'), 'Jardines de La Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('f176e70b-b6af-487f-a137-e8c54d56551e'), 'Jardines de Las Arboledas'); insert into settlement(id, name) values(UUID_TO_BIN('7a63be6c-e31e-401a-b694-42f1fa052f07'), 'Jardines de Loreto'); insert into settlement(id, name) values(UUID_TO_BIN('213af134-b664-47a5-a3c0-578a1eae4578'), 'Jardines de Mendoza'); insert into settlement(id, name) values(UUID_TO_BIN('4b1ff836-c6e2-4da6-8096-fe9ecb46043a'), 'Jardines de San Carlos'); insert into settlement(id, name) values(UUID_TO_BIN('116ad08d-eebd-44b9-bed3-0dae32d9b534'), 'Jardines de las Cruces'); insert into settlement(id, name) values(UUID_TO_BIN('a1f9b998-cb18-4546-82ba-4688389c6fae'), 'Jardines del Lago'); insert into settlement(id, name) values(UUID_TO_BIN('3556cd4a-5072-45c3-9517-949529e68f83'), 'Jardines del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('10bff1c6-fefa-4342-ba33-bb48cbc02892'), 'Jardines del Pedregal'); insert into settlement(id, name) values(UUID_TO_BIN('583a6b73-95d7-469e-8f5f-6b969955d74c'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('cd749586-38a0-4abd-8647-77cf109a54f8'), 'Jardines del Río'); insert into settlement(id, name) values(UUID_TO_BIN('8c43a6d6-d73a-47b4-bbfb-1d93c599646c'), 'Jardines del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('8b68fd5a-2fa8-4c4a-a526-86a168f900ee'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7efba348-8739-4426-bdce-81db2be3a722'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('937462df-3b1e-43e3-a56f-07b6ad9c2879'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c18ccff8-c571-4899-abef-97fcfdbef528'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b40b11aa-7441-4cbc-8dc0-cefd8974edee'), 'Jiquilpan'); insert into settlement(id, name) values(UUID_TO_BIN('dde07a9a-4222-401e-ac38-b9ed558d74a3'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('596cc0ac-cf70-4208-95f7-78a757094e1f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('3e0873c0-3c2e-40ad-9ea1-118619c5ae80'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('ec49c7bc-3880-4dd3-95d9-b23f29a4c284'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c70f7d82-a737-4c5c-9d72-172e7d55b81a'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('391ad444-21d8-4f37-80d0-1f04f1238f2d'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a31d0408-57bd-454a-a607-0412cb2133e8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('03105133-aff5-461f-b794-0e86a2e3ef89'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('4892992a-17db-40f4-a4f2-65647c2247a8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('1460a470-4f42-4193-8454-c2f435702c03'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a534d6da-df36-4542-b708-06aab166dd56'), 'Juventud Deportiva 2000'); insert into settlement(id, name) values(UUID_TO_BIN('9606207d-e0ad-47ef-aeee-6b42cef99298'), 'Juárez'); insert into settlement(id, name) values(UUID_TO_BIN('76cb27f6-79ad-45c8-be5a-8e492ab6e969'), 'Kennedy'); insert into settlement(id, name) values(UUID_TO_BIN('c004e153-b1ee-4c38-b307-da559b2bed70'), 'Kino'); insert into settlement(id, name) values(UUID_TO_BIN('e197c52c-bf54-4603-9128-7a23cfc2ade9'), 'Kino II'); insert into settlement(id, name) values(UUID_TO_BIN('adde39f1-4f39-49d8-b513-4f62720344e1'), 'La Antigua'); insert into settlement(id, name) values(UUID_TO_BIN('c8822655-2344-47e0-99b5-f94f74f0c7c0'), 'La Barca'); insert into settlement(id, name) values(UUID_TO_BIN('8b40641b-38a6-47d2-8f75-3618f153e5bb'), 'La Bodega ISSSTE'); insert into settlement(id, name) values(UUID_TO_BIN('1082fed1-b618-4c44-a4a8-d5958961f0d6'), 'La Bondad'); insert into settlement(id, name) values(UUID_TO_BIN('9c4649e2-9f46-4f77-b974-170002035573'), 'La Bufadora'); insert into settlement(id, name) values(UUID_TO_BIN('b2a7c411-3aef-4208-aff5-36ce3c57643f'), 'La Campiña'); insert into settlement(id, name) values(UUID_TO_BIN('4a90ea6d-4356-4d5f-90d2-ed8b060aaf6f'), 'La Capilla'); insert into settlement(id, name) values(UUID_TO_BIN('7f3fb183-0b93-4770-a180-02363a1da3a0'), 'La Cascada'); insert into settlement(id, name) values(UUID_TO_BIN('20b78886-01a8-4ed6-989e-fb4690b2d6ca'), 'La Ciénega'); insert into settlement(id, name) values(UUID_TO_BIN('b1d65104-970c-44f5-a3bc-427e2f477a27'), 'La Ciénega Poniente'); insert into settlement(id, name) values(UUID_TO_BIN('4702f52b-fded-4e1e-88d9-fffd51d01ecc'), 'La Ciénega Sur'); insert into settlement(id, name) values(UUID_TO_BIN('1e89c6c3-31c2-49ba-bfbe-9e3977bbc222'), 'La Condesa'); insert into settlement(id, name) values(UUID_TO_BIN('d5419d01-5df7-436e-b04d-0369d85cfe93'), 'La Cuestecita'); insert into settlement(id, name) values(UUID_TO_BIN('70ff9945-40af-4210-bf09-43fd33b67993'), 'La Cueva'); insert into settlement(id, name) values(UUID_TO_BIN('8b0ade90-d4e8-466c-b686-ecd1df4593ef'), 'La Curva'); insert into settlement(id, name) values(UUID_TO_BIN('49d6668f-262b-4e89-b770-9522b7684593'), 'La Cúspide'); insert into settlement(id, name) values(UUID_TO_BIN('22d54a6c-3f18-4a48-b6ca-656b85d102dd'), 'La División (Venustiano Carranza)'); insert into settlement(id, name) values(UUID_TO_BIN('69a1d432-3bb5-4e09-b49e-6da3bfa51c0c'), 'La Enramada'); insert into settlement(id, name) values(UUID_TO_BIN('c534c643-73f5-4091-a117-968ff30e57df'), 'La Escondida'); insert into settlement(id, name) values(UUID_TO_BIN('f45011ff-4160-4e88-abd5-7fa542e70a3b'), 'La Esmeralda'); insert into settlement(id, name) values(UUID_TO_BIN('81004cac-dae6-4581-b34f-8f00a2b7c67e'), 'La Esperanza'); insert into settlement(id, name) values(UUID_TO_BIN('4432f2f7-077c-455c-9c10-4093c7cfebdb'), 'La Esperanza [Granjas Familiares]'); insert into settlement(id, name) values(UUID_TO_BIN('97520d31-ccd5-4e3b-a60e-f445d91cd424'), 'La Estrella'); insert into settlement(id, name) values(UUID_TO_BIN('4f8579eb-1b43-47a2-8497-43d3c6c0e7db'), 'La Fuente'); insert into settlement(id, name) values(UUID_TO_BIN('c266a536-2435-4363-ba5c-da81715bf777'), 'La Gloria'); insert into settlement(id, name) values(UUID_TO_BIN('22101533-caf6-4ab2-9072-c8473d2db90f'), 'La Hacienda'); insert into settlement(id, name) values(UUID_TO_BIN('ad9ef3be-0007-462d-bce6-76cf64847259'), 'La Herradura'); insert into settlement(id, name) values(UUID_TO_BIN('4f2f0bad-4771-451b-b51c-da9c7bb97bf4'), 'La Huerta'); insert into settlement(id, name) values(UUID_TO_BIN('7f44be76-5077-4510-bce4-e939c3016349'), 'La Isla'); insert into settlement(id, name) values(UUID_TO_BIN('f29260ae-47c2-4fbe-a709-0f02767129ec'), 'La Jolla'); insert into settlement(id, name) values(UUID_TO_BIN('b3882c59-7c80-4416-b1d8-251d9123bf5b'), 'La Joya'); insert into settlement(id, name) values(UUID_TO_BIN('8317391c-e82e-443e-b53f-dbdda8e1eda9'), 'La Joya Este'); insert into settlement(id, name) values(UUID_TO_BIN('605e93ac-694b-4a6b-aada-14f11f928657'), 'La Joyita'); insert into settlement(id, name) values(UUID_TO_BIN('7eca3489-81ac-44f5-8dd5-b626bf8113fc'), 'La Luna'); insert into settlement(id, name) values(UUID_TO_BIN('82043613-5519-40e6-ba79-260e02604b31'), 'La Mariana'); insert into settlement(id, name) values(UUID_TO_BIN('cfd08870-ccd9-442c-867d-5e4f27b00a35'), 'La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('d189135b-64e6-4811-b80b-bbc3c0cfa57a'), 'La Mesa Sur'); insert into settlement(id, name) values(UUID_TO_BIN('732e674e-565d-4084-82c2-ec3437261b6b'), 'La Mina'); insert into settlement(id, name) values(UUID_TO_BIN('cdc90919-c6b1-4dd9-94f0-89d61b35143f'), 'La Misión'); insert into settlement(id, name) values(UUID_TO_BIN('d82d5477-cfd4-470d-a99b-93df304e0125'), 'La Morita'); insert into settlement(id, name) values(UUID_TO_BIN('16a427dd-1abd-4dc2-b721-4a3742c0a3c7'), 'La Morita (Ejido Tribu Kiliwas)'); insert into settlement(id, name) values(UUID_TO_BIN('01b030c4-e2a3-41d9-b340-6ce5a393943c'), 'La Morita 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('b808869c-9f92-47dd-93ea-a62a1db31400'), 'La Muralla'); insert into settlement(id, name) values(UUID_TO_BIN('b8ed0ae4-dcb1-4b6c-a10b-c7ae38a8a1b2'), 'La Paloma'); insert into settlement(id, name) values(UUID_TO_BIN('2542c6f8-38ca-4bc0-aebd-3c42be1afa9e'), 'La Pechuga'); insert into settlement(id, name) values(UUID_TO_BIN('6496b41f-a256-4ab3-840d-2bdcaaecddf5'), 'La Perla Bahía'); insert into settlement(id, name) values(UUID_TO_BIN('0b4e5977-7467-40bf-9972-b81e998dfee2'), 'La Perla Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('3325fb1a-7d81-46c4-bfc4-ac02b18abf93'), 'La Providencia'); insert into settlement(id, name) values(UUID_TO_BIN('ec25fa64-f68d-4ea3-8fb3-0d0546540301'), 'La Puerta'); insert into settlement(id, name) values(UUID_TO_BIN('d24a7f82-f4e3-4c88-b445-cbd3ce4aed14'), 'La Remosa'); insert into settlement(id, name) values(UUID_TO_BIN('c04084f9-618c-43fc-a5f6-8ac278ba5e53'), 'La Rioja'); insert into settlement(id, name) values(UUID_TO_BIN('19f27ecc-6a1b-4e18-86c3-2e1ca17f614e'), 'La Rioja Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('312e8c10-4520-494e-9dd9-551f9c485803'), 'La Rumorosa'); insert into settlement(id, name) values(UUID_TO_BIN('70a43d46-8cdc-4e4d-bf7e-eeed69105f88'), 'La Salina'); insert into settlement(id, name) values(UUID_TO_BIN('b7464921-c4a3-4995-9843-8fc424b5b048'), 'La Sierra'); insert into settlement(id, name) values(UUID_TO_BIN('ed161b1b-eff7-41ab-aaf4-6615e42c8946'), 'La Toscana Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('5ee2c051-7164-4e5c-82fe-db73184b5b72'), 'La Ventana Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('0e4a245a-5b56-4b5d-98f0-65ee7574ed85'), 'La Villa'); insert into settlement(id, name) values(UUID_TO_BIN('43344509-c5e7-4254-a3b7-99271eaf7ee2'), 'La Viñita'); insert into settlement(id, name) values(UUID_TO_BIN('e8b8bb94-4214-471c-b73f-515635e6a44a'), 'La Zorra'); insert into settlement(id, name) values(UUID_TO_BIN('1f54d575-9f95-4e8b-84c3-e932b198590a'), 'Laderas de Monterrey'); insert into settlement(id, name) values(UUID_TO_BIN('e9aae1be-9aef-404d-b83b-be0693615108'), 'Laderas de Otay'); insert into settlement(id, name) values(UUID_TO_BIN('50876832-d9d1-4cf3-adfc-afbf6989c7b3'), 'Laderas de Tecate'); insert into settlement(id, name) values(UUID_TO_BIN('ad92d0ad-b0b6-4d38-a18d-691d9b6e1dbe'), 'Laderas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('3f9bc051-0991-4665-821a-72198ac0f05a'), 'Ladrillera'); insert into settlement(id, name) values(UUID_TO_BIN('e6ff8c52-4283-41cd-bf07-f3493c9b1780'), 'Ladrillera Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('ef48fb41-727c-4715-8536-b6f22ae3e3a7'), 'Ladrillera Pescador'); insert into settlement(id, name) values(UUID_TO_BIN('4341d467-ce7c-4f9d-bbba-c9b1c6749e13'), 'Ladrilleros Santa Isabel'); insert into settlement(id, name) values(UUID_TO_BIN('72bf04a6-40aa-4196-b2be-d5db20f5bf78'), 'Lago Sur'); insert into settlement(id, name) values(UUID_TO_BIN('fab4b867-ae08-4957-b64a-337179be60ed'), 'Lago de Xochimilco'); insert into settlement(id, name) values(UUID_TO_BIN('4012701b-e144-4043-b77f-714ba38bf8ef'), 'Lago del Sol Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('a7645d01-67d1-489b-81e2-489e88b455c4'), 'Laguna Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('a937c98c-fc37-4eb4-b72d-d8c5a886b869'), 'Lagunitas'); insert into settlement(id, name) values(UUID_TO_BIN('1d012165-e20d-4bc3-b1de-2495713b39f9'), 'Lagunitas 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('13ee0e96-41e7-41c1-8035-cd1e427540b9'), 'Las 2 Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('676710a1-ddfa-49b3-9da2-90bb3ee89eac'), 'Las Abejas'); insert into settlement(id, name) values(UUID_TO_BIN('a079b1a9-a858-41da-8ff7-fb0e562dcd3d'), 'Las Américas'); insert into settlement(id, name) values(UUID_TO_BIN('5b059424-a9d0-4aba-a242-fb00a8d495b1'), 'Las Aves'); insert into settlement(id, name) values(UUID_TO_BIN('7be83b2c-ee5c-48a6-a28a-ece651d8bb3b'), 'Las Brisas'); insert into settlement(id, name) values(UUID_TO_BIN('7fe1db3d-a06b-4979-8e28-d23c191abff6'), 'Las Brisas Norte'); insert into settlement(id, name) values(UUID_TO_BIN('ee822680-f4d3-4b52-9377-0ed2641789a7'), 'Las Bugambilias Inn'); insert into settlement(id, name) values(UUID_TO_BIN('458c8451-5b5c-477b-8e4f-22d2efcb35b9'), 'Las Californias'); insert into settlement(id, name) values(UUID_TO_BIN('32fbb44c-05ba-4a00-9d39-567de2f5ca79'), 'Las Colonias'); insert into settlement(id, name) values(UUID_TO_BIN('18154dec-95ce-4db6-9db9-18eafa3010a9'), 'Las Cruces'); insert into settlement(id, name) values(UUID_TO_BIN('f8bb0bbf-3f14-45ab-b499-778d38db88fc'), 'Las Cumbres'); insert into settlement(id, name) values(UUID_TO_BIN('637ac63f-f27d-4550-b2e9-444383e7b621'), 'Las Delicias'); insert into settlement(id, name) values(UUID_TO_BIN('73968d4f-40e8-48bf-b2ee-72e52d7ada49'), 'Las Dunas'); insert into settlement(id, name) values(UUID_TO_BIN('db912762-1038-4d17-b49a-c66b86d536d2'), 'Las Fincas'); insert into settlement(id, name) values(UUID_TO_BIN('81e85c4a-0557-45ae-be26-0041cb75d2b8'), 'Las Flores'); insert into settlement(id, name) values(UUID_TO_BIN('0807862b-0d85-4fb0-8505-110585ef11b7'), 'Las Fuentes'); insert into settlement(id, name) values(UUID_TO_BIN('e060c1db-3076-4276-aef5-0c486f390a0b'), 'Las Garzas'); insert into settlement(id, name) values(UUID_TO_BIN('4ae4d2bd-658f-499f-8065-dc0f9fe9acaa'), 'Las Gaviotas'); insert into settlement(id, name) values(UUID_TO_BIN('b7cd614c-85e0-416b-95c5-ba7462896459'), 'Las Granjas Juan María Salvatierra'); insert into settlement(id, name) values(UUID_TO_BIN('d234f4e6-5b9d-4fc0-bfa3-ef8ad8506c6f'), 'Las Hadas'); insert into settlement(id, name) values(UUID_TO_BIN('e3d31ba9-a7b0-4586-9e0c-ba52d155ee7f'), 'Las Huertas'); insert into settlement(id, name) values(UUID_TO_BIN('697acebd-5e09-4d5f-95a1-fcac095b693d'), 'Las Huertas 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0140fb05-d5d8-43e0-a8b9-10af4127a4b6'), 'Las Huertas 4a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('4c1ccf20-d48c-45b4-915e-8ba3618cf201'), 'Las Huertas 5a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('2f86375c-94e9-4b72-9bbc-7547dfca2ba6'), 'Las Lilas'); insert into settlement(id, name) values(UUID_TO_BIN('ec74103c-ca77-43cc-9f1d-c08b6ece37a7'), 'Las Lomitas'); insert into settlement(id, name) values(UUID_TO_BIN('626a95a3-b177-46d4-90ca-7d00f3cfe7ef'), 'Las Magdalenas'); insert into settlement(id, name) values(UUID_TO_BIN('9c3a59ef-d517-40da-8693-c98ba6f07d16'), 'Las Minitas'); insert into settlement(id, name) values(UUID_TO_BIN('9bb56aaa-2ede-406c-a6ef-a2ac186e0a29'), 'Las Misiones'); insert into settlement(id, name) values(UUID_TO_BIN('5c7f768f-6d11-4ad0-89a7-3c4060af276f'), 'Las Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('ceb8581e-3288-4014-96e5-d46593510e91'), 'Las Palmas III'); insert into settlement(id, name) values(UUID_TO_BIN('0de58a7e-b5db-4912-934c-8a77b2ad6bfc'), 'Las Palmeras'); insert into settlement(id, name) values(UUID_TO_BIN('3a6e819b-0059-42da-bd86-e2b6f121ac2b'), 'Las Palomas'); insert into settlement(id, name) values(UUID_TO_BIN('14be18bf-33bd-48e0-a277-b519db8a4aef'), 'Las Peñitas'); insert into settlement(id, name) values(UUID_TO_BIN('952f4a94-f9af-4587-b584-f3fca1536e86'), 'Las Plazas'); insert into settlement(id, name) values(UUID_TO_BIN('3470b550-16f5-4ebc-96c0-2e42c676b6b2'), 'Las Praderas'); insert into settlement(id, name) values(UUID_TO_BIN('156e5f24-fb47-4f78-b1a0-57a212a25542'), 'Las Reinas'); insert into settlement(id, name) values(UUID_TO_BIN('dc87fcce-f493-42c6-86dc-d8db375a78b2'), 'Las Rosas'); insert into settlement(id, name) values(UUID_TO_BIN('6e509aaf-15ad-4683-bd86-304057de0103'), 'Las Tinajitas'); insert into settlement(id, name) values(UUID_TO_BIN('5eaf245e-c1ce-4aec-9ea3-ade143e374c9'), 'Las Torres'); insert into settlement(id, name) values(UUID_TO_BIN('ba979b56-448c-44f6-bf4e-06715c1f9fc1'), 'Las Torres de Matamoros'); insert into settlement(id, name) values(UUID_TO_BIN('c43d8250-5c75-44b5-8b04-2529b5d4968f'), 'Las Vegas'); insert into settlement(id, name) values(UUID_TO_BIN('790a013f-1d38-4abb-8e53-21125e83ecd8'), 'Las Villas Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('e8449cbc-44d0-43c1-a8a2-30ac0c3d1b94'), 'Las Villas Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('166d57a0-4bcb-47e8-a587-a070d597062b'), 'Leandro Valle'); insert into settlement(id, name) values(UUID_TO_BIN('e38f7aa1-3d4d-4f1a-b404-ac93f27845b1'), 'Leona Vicario'); insert into settlement(id, name) values(UUID_TO_BIN('22ebc912-4500-465c-af40-25dc077b7001'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b2bf547b-5885-47dc-b63e-e3a7cacd148c'), 'Leos Montoya'); insert into settlement(id, name) values(UUID_TO_BIN('d4969f73-9da1-4950-810e-523451e763eb'), 'Lepro'); insert into settlement(id, name) values(UUID_TO_BIN('cf933aeb-eeba-4672-928a-6c7c4fe3ab4f'), 'Ley del Servicio Civil'); insert into settlement(id, name) values(UUID_TO_BIN('6a6aadbd-2b9e-406f-ae4d-6afa9daa7a54'), 'Leyes de Reforma'); insert into settlement(id, name) values(UUID_TO_BIN('0b100833-c631-481f-8745-051c5a8c6218'), 'Liberal <NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('334c30c0-d97e-43b8-9509-d4e788ac2bc1'), 'Libertad'); insert into settlement(id, name) values(UUID_TO_BIN('a64b62a3-5b02-4e0f-8e06-46073a7b7ab3'), 'Libramiento (Zona AO)'); insert into settlement(id, name) values(UUID_TO_BIN('b8c59236-8fee-4409-ac99-748bfe0a1264'), 'Licenciado <NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('eae64546-0f6b-4d76-b8c6-72ef42372902'), 'Lienzo Charro'); insert into settlement(id, name) values(UUID_TO_BIN('d2a5e921-8d05-4d18-a4ef-d213c66f3ae7'), 'Linda Vista'); insert into settlement(id, name) values(UUID_TO_BIN('7b643b68-472c-4f51-b602-0602e044ca86'), 'Llamas Amaya'); insert into settlement(id, name) values(UUID_TO_BIN('2768973d-d4dc-43b6-bf67-32907b49c7c0'), 'Llano Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('9b72f838-291b-4730-b83a-0be105bed9d1'), 'Loma Alta'); insert into settlement(id, name) values(UUID_TO_BIN('fd4a67d9-a1e2-498a-a4a7-bf652835efcd'), 'Loma Alta II'); insert into settlement(id, name) values(UUID_TO_BIN('c4dd1489-22f1-4c8d-9164-4ffc5bfee304'), 'Loma Blanca'); insert into settlement(id, name) values(UUID_TO_BIN('a2fdee2e-f394-405b-8b60-2bd3d263fc2f'), 'Loma Bonita'); insert into settlement(id, name) values(UUID_TO_BIN('abc08ac4-03b3-4978-bd34-2cac032aada6'), 'Loma Bonita (NA)'); insert into settlement(id, name) values(UUID_TO_BIN('23084235-745f-4038-a4ef-3bd980c47b82'), 'Loma Bonita Norte'); insert into settlement(id, name) values(UUID_TO_BIN('b948c009-cde7-4101-92aa-fb26f97049de'), 'Loma Dorada'); insert into settlement(id, name) values(UUID_TO_BIN('d4114b84-dc90-4dd1-85c0-b4221b1ddb06'), 'Loma Dorada Campos'); insert into settlement(id, name) values(UUID_TO_BIN('d7979482-18b0-488c-bff5-4f20fafd9af0'), 'Loma Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('9e2794f3-d398-4bdd-8228-25928612ba4d'), 'Loma Linda'); insert into settlement(id, name) values(UUID_TO_BIN('bf776bf9-f8b3-4e39-a5b0-aa83e8927d61'), 'Loma Tova'); insert into settlement(id, name) values(UUID_TO_BIN('c2fbc61e-942c-48e3-b63c-e93331aa97d7'), 'Lomas Altas II'); insert into settlement(id, name) values(UUID_TO_BIN('04171243-cf2c-435c-a1e2-a7f1bcd88462'), 'Lomas Conjunto Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('4ac26ad9-967b-4a3a-b839-3a3d152a735a'), 'Lomas Doctores (Chapultepec Doctores)'); insert into settlement(id, name) values(UUID_TO_BIN('10c944ad-e3a7-4c7b-af46-1713ba00dab9'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('240cdf3a-ff4b-44c3-aae0-19ed45905d02'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('129c4bb6-3d90-42c3-b7a7-ef3d14728a0b'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d2d6351b-97c1-495e-bb4f-af8ecf1bdd7b'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('86058dcf-3f41-4777-82bf-92b98a3d0581'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('e6dfc6f1-9e35-4c26-9a67-8261bc9f3f93'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7fef2c55-b0cc-4030-a208-ae234b387b74'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f7722191-ab33-48dc-97e9-e11de0c9cde8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('2801fceb-3e69-4ca5-93a3-18853e8c72fc'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('73412000-0fd9-43fb-bbc8-1d07b701178e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('baedecb6-50ad-4bbd-bbf2-e131cf6d457a'), 'Lomas de Abasolo'); insert into settlement(id, name) values(UUID_TO_BIN('c7b2303a-edd2-4e06-8606-d19346f16b61'), 'Lomas de Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('ca03c26a-89c6-4ba1-b1ca-7c0970d41424'), 'Lomas de Agua Caliente 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('f26263f2-f2d2-45cd-9054-ff495d2fc9e4'), 'Lomas de Agua Caliente 5a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('9cb72dec-ca96-4182-803c-f5016d6c3af7'), 'Lomas de Agua Caliente 6a Sección (Lomas Altas)'); insert into settlement(id, name) values(UUID_TO_BIN('266d45c8-7fb8-4cfc-ab42-bf93bdd05730'), 'Lomas de Cantamar'); insert into settlement(id, name) values(UUID_TO_BIN('25ba9d30-b9b8-454e-92f2-67bbcb969cf4'), 'Lomas de Coronado'); insert into settlement(id, name) values(UUID_TO_BIN('6d3c473b-9fbd-4d9f-9c3e-2d855f5b4d97'), 'Lomas de La Amistad'); insert into settlement(id, name) values(UUID_TO_BIN('3bccc670-13d1-4758-bdb4-197b1355e294'), 'Lomas de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('9a175aaf-18b2-4042-82e8-405557c2d5ef'), 'Lomas de León'); insert into settlement(id, name) values(UUID_TO_BIN('b6c25d89-7501-441f-8674-28b032759cee'), 'Lomas de Matamoros'); insert into settlement(id, name) values(UUID_TO_BIN('07443b8a-f3bb-4d98-88ec-39aba6a2ecad'), 'Lomas de Montecarlo'); insert into settlement(id, name) values(UUID_TO_BIN('c1efdbcc-5460-457a-b982-17ea2eaa8733'), 'Lomas de Papalote'); insert into settlement(id, name) values(UUID_TO_BIN('a827fad6-233e-4b1a-91ac-1936baa04d53'), 'Lomas de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('f990c47f-0dcb-4b11-90eb-4b411c7ade87'), 'Lomas de San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('7c515ab5-5067-4dc5-b5bd-4f136403958f'), 'L<NAME> 1'); insert into settlement(id, name) values(UUID_TO_BIN('266e4e3b-62af-4572-8805-a0a366b61770'), '<NAME> 2'); insert into settlement(id, name) values(UUID_TO_BIN('db13308e-bacf-4ee4-b0e1-d7767ff28bf5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('46ce55d4-2e31-4505-bb21-f7cd8fcfd675'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('9fe1f884-3565-44e9-85f9-5a79a5527005'), '<NAME> (Triquis)'); insert into settlement(id, name) values(UUID_TO_BIN('f66f4972-e6df-4f5a-9b09-d73db6aca3c4'), 'Lomas de Santa Anita'); insert into settlement(id, name) values(UUID_TO_BIN('49570d24-3596-48ab-a5b9-efdd182f1be0'), 'Lomas de Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('2c9ef05c-af72-4f0f-b211-a870e9235953'), 'Lomas de Tlatelolco'); insert into settlement(id, name) values(UUID_TO_BIN('454825d6-60a8-4b6b-88ba-aca79312c756'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f0aa494b-548c-4403-85d1-03aac72ce306'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('60c53e21-03b2-4704-9098-f21b0a6962e5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('2fa40ed2-541a-4bd4-9450-d5bd476147f4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5d3d1c28-c0e5-4864-bf35-251d3be89c64'), 'Lomas del Pacifico'); insert into settlement(id, name) values(UUID_TO_BIN('8568ddc2-1cfb-48aa-8614-edf1e7806c89'), '<NAME> Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('a5deae54-fa12-461e-9b39-fea19fabdb60'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c61305f7-4c38-44e9-9593-590fe60a2f41'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('0d817267-3d49-4f30-91ec-a6d11101f10e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('84bda876-d476-4bb9-91f6-786b6fac3b1f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('06d5bc7e-a6cf-48f0-8e57-9e5ef56dc1eb'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('95d197c4-78d1-4486-bd37-7c2464c42b71'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d762744e-c2f0-4f4b-99f0-3d80fbd8d3ad'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('80521fbd-94b0-4988-add5-14402d066217'), 'Lomitas III'); insert into settlement(id, name) values(UUID_TO_BIN('15e27297-5e5f-46cf-9f4b-1a9248c63420'), 'Lomitas IV'); insert into settlement(id, name) values(UUID_TO_BIN('c98c68ac-3f73-4098-8260-b231ad8550f9'), 'Lomitas del Cuchuma'); insert into settlement(id, name) values(UUID_TO_BIN('a9ec70a8-bf8e-4288-89a1-d055b89148d6'), 'Loreto'); insert into settlement(id, name) values(UUID_TO_BIN('1597eb7f-7cdc-46a7-831b-f188a0aae3f0'), 'Los Altos (Ruíz Valencia)'); insert into settlement(id, name) values(UUID_TO_BIN('f71b583f-511b-4bf3-9f1e-f7aeee21a2ef'), 'Los Arcos'); insert into settlement(id, name) values(UUID_TO_BIN('578a408b-89ba-42fa-80d4-a6414099153b'), 'Los Arenales A'); insert into settlement(id, name) values(UUID_TO_BIN('08f54247-d224-478d-8b4e-094eaf0f459a'), 'Los Arroyos'); insert into settlement(id, name) values(UUID_TO_BIN('4fa407d7-0cc8-47c0-bb27-716d6d748aad'), 'Los Balcones'); insert into settlement(id, name) values(UUID_TO_BIN('08a7618d-467d-4abf-85e3-543999e38c70'), 'Los Cipreses'); insert into settlement(id, name) values(UUID_TO_BIN('f0f0e3c7-5709-468a-a85e-bb6a39828030'), 'Los Delfines'); insert into settlement(id, name) values(UUID_TO_BIN('6aca1940-7374-4047-a102-d03d0136e3c7'), 'Los Encinos'); insert into settlement(id, name) values(UUID_TO_BIN('37487a1e-94a7-4f25-b72c-8c9024b201db'), 'Los Españoles'); insert into settlement(id, name) values(UUID_TO_BIN('6abc0f8f-caa0-4b26-b556-0c8fd7adec9b'), 'Los Faisanes'); insert into settlement(id, name) values(UUID_TO_BIN('19a05a83-a5da-4d74-ae92-e5466875fa12'), 'Los Gavilanes Sección 3'); insert into settlement(id, name) values(UUID_TO_BIN('98bea588-c6e2-4e78-bd3f-f03e645de0f5'), 'Los Girasoles'); insert into settlement(id, name) values(UUID_TO_BIN('d9a164c8-ccbc-4049-a438-e4ad1315dad2'), 'Los Lagos'); insert into settlement(id, name) values(UUID_TO_BIN('104174c0-2f68-41f1-97f6-7a03c12ed51e'), 'Los Laureles'); insert into settlement(id, name) values(UUID_TO_BIN('ef61d268-f894-4600-8a51-6d631078f881'), 'Los Lobos'); insert into settlement(id, name) values(UUID_TO_BIN('91743af9-2c6b-4b31-985f-1b8a6595c559'), 'Los Maestros'); insert into settlement(id, name) values(UUID_TO_BIN('7bf316f2-d144-43d7-a6ec-bb00c83af904'), 'Los Manantiales'); insert into settlement(id, name) values(UUID_TO_BIN('eb0e7b5e-57ee-4ee0-9100-d6345d344ae9'), 'Los Milagros'); insert into settlement(id, name) values(UUID_TO_BIN('229dad0c-4027-4c85-8bb9-f76ca000725f'), 'Los Naranjos'); insert into settlement(id, name) values(UUID_TO_BIN('c355bbad-ec3e-4f03-9d62-587bd98d794c'), 'Los Olivos'); insert into settlement(id, name) values(UUID_TO_BIN('8a0642c0-9832-4465-b07e-ac895c6f2ea8'), 'Los Olivos Norte'); insert into settlement(id, name) values(UUID_TO_BIN('9c4530b1-6dbe-4597-9e95-9c9f0e29003f'), 'Los Pinos'); insert into settlement(id, name) values(UUID_TO_BIN('0bac097a-3c7e-4471-a92e-84066579194e'), 'Los Pinos (Limón)'); insert into settlement(id, name) values(UUID_TO_BIN('ad9abc4b-9ee1-4529-a62a-8e4f1a2fee48'), 'Los Pirules'); insert into settlement(id, name) values(UUID_TO_BIN('fcab5b95-ce2c-4a39-843b-473d70647828'), 'Los Prados'); insert into settlement(id, name) values(UUID_TO_BIN('b0880eef-8512-4a8c-a2bb-f09501afbcc2'), 'Los Pérez'); insert into settlement(id, name) values(UUID_TO_BIN('c77dd7f6-39ac-472b-83e4-ea37bc8529f4'), 'Los Ramos'); insert into settlement(id, name) values(UUID_TO_BIN('7c69a599-e58d-45b3-bcc0-d81fa8302246'), 'Los Reyes'); insert into settlement(id, name) values(UUID_TO_BIN('79575e13-8bcf-4e8a-8378-47d47638f9b5'), 'Los Santos'); insert into settlement(id, name) values(UUID_TO_BIN('f4633d7a-2a24-4c52-9d68-298eb17f9bc0'), 'Los Saucillos'); insert into settlement(id, name) values(UUID_TO_BIN('bc82363d-9c25-4691-9f26-e63a4c95f1c0'), 'Los Valles'); insert into settlement(id, name) values(UUID_TO_BIN('39c62850-71b4-41b0-af9e-5b1e0be4b4ae'), 'Los Venados'); insert into settlement(id, name) values(UUID_TO_BIN('dce6e7ec-166e-4ad7-867e-c32c8b00deb0'), 'Los Venados Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('9d5d0062-1220-4148-bb31-12e7480fb995'), 'Los Viñedos'); insert into settlement(id, name) values(UUID_TO_BIN('cd3892be-4b39-4f95-ba33-ec08840edc50'), 'Los Álamos'); insert into settlement(id, name) values(UUID_TO_BIN('3aa66a7a-d301-439f-8c75-541096717e85'), 'Los Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('cd1e3743-1aa3-490b-9a94-17cacb5c7a6d'), 'Los Árboles'); insert into settlement(id, name) values(UUID_TO_BIN('5874fa8c-c37a-4f8e-8f8c-c099ff4c0ad1'), 'Lucerna'); insert into settlement(id, name) values(UUID_TO_BIN('b5916eb7-8659-4a03-a5f9-b0604e276252'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('9f8a6795-88ef-4550-97e4-1a59be5cb3f8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('8670cb6c-d86d-4bf2-ad59-b103a8016ca2'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5e69f5bc-1fb2-4a51-8dbc-93e5b1127002'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('365319f0-7b6a-4469-acac-84301b1a8613'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('6439c889-02f0-48bf-bcaf-f41a380cf6bd'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('f2d87b22-3c4e-4881-a1ea-db5733bac35d'), '<NAME> (El Vergel)'); insert into settlement(id, name) values(UUID_TO_BIN('8c821a17-dbe5-4b77-aee6-9f204ebdc88d'), 'Luna Park'); insert into settlement(id, name) values(UUID_TO_BIN('a73880b0-198d-4654-bc7b-f7f0f83ff86d'), 'Luz Juárez'); insert into settlement(id, name) values(UUID_TO_BIN('dc7c3248-b3f4-4a54-b983-92e4eeb0922e'), 'Lázaro Cárdenas'); insert into settlement(id, name) values(UUID_TO_BIN('4ee7cbf8-bde6-42ac-9a1f-ead1dd980838'), 'Lázaro Cárdenas (La Veintiocho)'); insert into settlement(id, name) values(UUID_TO_BIN('7ade5e0e-e4b9-485c-ac42-9aa78b80eae7'), 'Lázaro Cárdenas 1'); insert into settlement(id, name) values(UUID_TO_BIN('6f8291a6-471b-4ef5-8957-4abc8ef23141'), 'Lázaro Cárdenas 2'); insert into settlement(id, name) values(UUID_TO_BIN('d121cb9a-3013-45fd-95d7-79816fa4f8cd'), 'Lázaro Cárdenas 3ra Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('fc80ea2f-a8a1-4528-8ea4-cab7412e9ec7'), 'López'); insert into settlement(id, name) values(UUID_TO_BIN('87bf6509-7e69-44c2-9201-0dee851b65ec'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5bfb7c3a-98b0-4a1f-ae63-39c9164ce7db'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d0b20edc-fe88-4942-a3af-eba8643bc882'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('ddcbd4a4-3420-43a5-98a7-a102d60fdb0c'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7e868c5a-a23d-4e7a-abc6-5e0ab8726c9a'), 'López Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('13d72ff4-50f9-4209-a9ce-63f6aa677dc3'), 'Machado'); insert into settlement(id, name) values(UUID_TO_BIN('6a274121-bdd4-4443-870b-b5b918605d2f'), 'Machado Norte'); insert into settlement(id, name) values(UUID_TO_BIN('421afb50-a2bb-4238-9813-e2d9afc730cb'), 'Machado Sur'); insert into settlement(id, name) values(UUID_TO_BIN('feacc64f-facf-4106-a383-f217169b5646'), '<NAME> (Colonia Aviación)'); insert into settlement(id, name) values(UUID_TO_BIN('0325dce8-093b-4a57-b8cd-1b1065b60670'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('21b929d6-62d4-4f69-8242-1cfd491251ca'), 'Madero'); insert into settlement(id, name) values(UUID_TO_BIN('6324419f-f28f-450c-8658-7b1d449edb3e'), 'Madero (Cacho)'); insert into settlement(id, name) values(UUID_TO_BIN('a691e83a-4fc2-4d31-97ee-115dbba66649'), 'Madero Sur'); insert into settlement(id, name) values(UUID_TO_BIN('bd910131-af31-4458-8f35-bc525807b23e'), 'Maestros Democráticos de La Base'); insert into settlement(id, name) values(UUID_TO_BIN('65309561-c83e-4141-87d1-568c343da78f'), 'Maestros Estatales'); insert into settlement(id, name) values(UUID_TO_BIN('f4406c25-addb-4b51-8bad-20bb70af2a26'), 'Maestros Universitarios'); insert into settlement(id, name) values(UUID_TO_BIN('0ffc5371-2767-4594-b211-031f1a24e513'), 'Magaña'); insert into settlement(id, name) values(UUID_TO_BIN('cddeae38-5f02-4dcb-8c20-0c2196d0b24c'), 'Magisterial'); insert into settlement(id, name) values(UUID_TO_BIN('73080c00-3595-4cf8-8e73-c17e2e384a76'), 'Magisterial La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('8a225e53-939a-47d2-b395-010634d2f2d7'), 'Manchuria'); insert into settlement(id, name) values(UUID_TO_BIN('6a8c0cf9-e162-4743-b9ef-4504137ea9cc'), 'Maneadero'); insert into settlement(id, name) values(UUID_TO_BIN('488e5035-3bef-4a07-87d1-b61dd31b34e9'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('085b13e0-18bc-47d0-8966-b90f8227f9fd'), '<NAME> 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('e7fd9ee7-a612-4da8-9036-617784697516'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('faa5aaee-8a6b-41bf-b65d-d13d38406251'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('765d8de1-70c5-4f6e-8a8b-8046bcfee7bf'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('742fc484-99fd-4e2d-a17f-3a691285bf47'), 'Mar'); insert into settlement(id, name) values(UUID_TO_BIN('bffdfaaa-71de-43e1-b8ec-2a540de65229'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7931009c-c640-4811-a40f-fcec338ff1fe'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a038a3e0-5e6c-4b96-8035-a5e50546835c'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('8f9852a4-6c07-470a-91d5-e2dfd344bd28'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('70dacc8e-3aaf-4c3e-a17d-f4ae96ec0337'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('96429743-dbeb-4833-b7a7-c651f41f3385'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('51817eb4-10f2-4779-8be1-9a6fa477cdc7'), '<NAME> Nuevo I'); insert into settlement(id, name) values(UUID_TO_BIN('4a042b78-7cfb-4355-b484-3befd5dbaea2'), 'Marbella'); insert into settlement(id, name) values(UUID_TO_BIN('63934bd8-d32e-40bb-8667-51675aefdf0b'), 'Marena Cove'); insert into settlement(id, name) values(UUID_TO_BIN('250356e9-49d0-42b2-b03c-d301f0ee14b5'), 'Margarita Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('31f9d3bd-1cb8-49e8-a5f9-41243244cf81'), 'Margaritas'); insert into settlement(id, name) values(UUID_TO_BIN('21e40ca7-f5ee-406c-8ac1-b688efbde0a7'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('08f73966-1db4-44c1-a8b4-a1c9d04e9434'), '<NAME> (Centro)'); insert into settlement(id, name) values(UUID_TO_BIN('f4e8948f-56c1-4b95-88d3-e31403f1830e'), '<NAME> (Norte)'); insert into settlement(id, name) values(UUID_TO_BIN('2f19e2f2-4114-4164-939b-25997a1fa4fd'), '<NAME> (Sur)'); insert into settlement(id, name) values(UUID_TO_BIN('4b2897c0-cb92-4d77-b7ec-d28208bb580e'), 'Marisol'); insert into settlement(id, name) values(UUID_TO_BIN('02b51c3a-b856-4f8d-a1aa-65adee0a98b8'), 'Marrón'); insert into settlement(id, name) values(UUID_TO_BIN('d373256e-5945-4a5c-aca5-5bb94154fe35'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('a0f0a03b-0d3e-415d-ad93-b47483870dfa'), 'Martínez'); insert into settlement(id, name) values(UUID_TO_BIN('b04fcf8d-fadf-4f1d-8bf3-b295f5edbd82'), 'Marán'); insert into settlement(id, name) values(UUID_TO_BIN('9b84d337-c01a-4047-8b63-d6acc5bd9a9e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('73ba372f-60fa-4be9-a0ab-7d80812c4f97'), 'Matajanil'); insert into settlement(id, name) values(UUID_TO_BIN('86f4c233-79c3-432f-b9e8-3e481d3c8c3e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d55b9ed2-04e7-490d-9aad-fa9c9f7631d8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('2304bf47-d058-438a-ab86-572c15e85c5d'), 'Mayakhan Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('8eb16aba-ed77-4c5c-ad56-7debb898f4c6'), 'Mayos'); insert into settlement(id, name) values(UUID_TO_BIN('10810d12-d473-467c-8d6f-6b6282a90feb'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('fc1e7c07-4ffa-4e7f-a534-f58ee8a181ea'), 'Mediterráneo'); insert into settlement(id, name) values(UUID_TO_BIN('3a152ea6-595b-416e-95e0-535127c31796'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('fa06b8d2-7399-4709-bb4e-bee05576335f'), 'Mesa Arenosa de Andrade (Villa Zapata)'); insert into settlement(id, name) values(UUID_TO_BIN('d1eb7e1a-b0a0-454a-b05d-75c17e55ff81'), 'Mesa de Otay'); insert into settlement(id, name) values(UUID_TO_BIN('666ab7b7-8fd1-40b1-bf5a-45a3ecb1de60'), 'Mesa de San Jacinto'); insert into settlement(id, name) values(UUID_TO_BIN('5e8845e4-8f4c-47c8-844f-a4c32a39021b'), 'Meseta del Chema'); insert into settlement(id, name) values(UUID_TO_BIN('6bbe205b-1d9b-42c5-beb7-d7f9bf816b78'), 'Mesetas del Guaycura'); insert into settlement(id, name) values(UUID_TO_BIN('f680e313-a43e-454e-a7ee-2c1d97ccc1a6'), 'Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('2b47ba6a-0d1a-477a-a8e7-053b3d800969'), 'Mexicali (Gral. <NAME>)'); insert into settlement(id, name) values(UUID_TO_BIN('ff3aef99-a1f9-41c4-b4d5-d3f592c69656'), 'Mexicali II'); insert into settlement(id, name) values(UUID_TO_BIN('df34896d-f3d3-4eca-99a9-d1d833a0ceca'), 'Mexicali Tianguis'); insert into settlement(id, name) values(UUID_TO_BIN('b95bd4bb-c769-4acf-a2b4-34d906e1eca5'), 'Mexicali del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('ce6fde42-673f-4b54-91f8-43281e78b85d'), 'Mezquital'); insert into settlement(id, name) values(UUID_TO_BIN('2e9002f9-d6d8-4e18-b351-7a9bc9ca97ca'), 'Mi Patrimonio'); insert into settlement(id, name) values(UUID_TO_BIN('292bae7a-dff1-4e9d-89ff-7e2050f93dfe'), 'Mi Ranchito (Chula Vista)'); insert into settlement(id, name) values(UUID_TO_BIN('7e1f5ae9-a9f6-4c0b-ba75-c62335b5433a'), 'Michoacán'); insert into settlement(id, name) values(UUID_TO_BIN('937744cf-75e6-424b-9f60-62e5fee47c62'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('53320279-888c-4def-ad10-1cfd4d9e189c'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('24cc7644-7769-40ae-a283-49370d7f889d'), 'Milenio 2000'); insert into settlement(id, name) values(UUID_TO_BIN('31912d75-3313-4036-a370-cb7d5bf90de7'), 'Militar'); insert into settlement(id, name) values(UUID_TO_BIN('37cde589-b332-45f4-9488-e6c8ed0b040c'), 'Militar (23 de Noviembre)'); insert into settlement(id, name) values(UUID_TO_BIN('25cf00e4-dd13-41be-ae65-b1a2efd40298'), 'Militar Elpidio Berlanga de León'); insert into settlement(id, name) values(UUID_TO_BIN('653743b6-197a-4476-bb3c-5481e5660c24'), 'Mineral de Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('11cb7792-ce6a-4442-ac95-052e713ccad6'), 'Mirador Capistrano'); insert into settlement(id, name) values(UUID_TO_BIN('5d30b2f0-d182-4e7d-8711-48fe58fd152d'), 'Miraflores'); insert into settlement(id, name) values(UUID_TO_BIN('f2b365d3-247e-4aa9-9047-418ee1269ff2'), 'Miramar'); insert into settlement(id, name) values(UUID_TO_BIN('65224379-fef9-48b1-bab3-98dbe7435318'), 'Mirasol'); insert into settlement(id, name) values(UUID_TO_BIN('f6ee629a-ee5b-4371-8b98-1c79cfd10edc'), 'Misiones de Alta Mar'); insert into settlement(id, name) values(UUID_TO_BIN('1f72efa5-1896-4690-a43e-0c818b061849'), 'Misiones de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('9fd5c806-549d-4ef1-9440-4c989dbbffd2'), 'Misiones de La Presa 1'); insert into settlement(id, name) values(UUID_TO_BIN('41a8e97d-17cb-43eb-94c7-9894c93b28c3'), 'Misiones de La Presa 2'); insert into settlement(id, name) values(UUID_TO_BIN('2be27415-6f2a-4065-a641-ac87645e58b5'), 'Misiones del Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('594be7e2-943d-4a27-bdc9-08838dfffc1d'), 'Misiones del Pedregal'); insert into settlement(id, name) values(UUID_TO_BIN('d63b49c8-d3bb-493a-9588-f290c46b42c5'), 'Misión'); insert into settlement(id, name) values(UUID_TO_BIN('4b1b5186-78f3-4943-a126-673cc0e1989d'), 'Misión Altamar'); insert into settlement(id, name) values(UUID_TO_BIN('4cee9abf-777d-4873-a235-6b51d6cd6b45'), 'Misión San Adrian'); insert into settlement(id, name) values(UUID_TO_BIN('72107f23-901e-46e3-93f6-aeb48b36878d'), 'Misión San Vizcaíno'); insert into settlement(id, name) values(UUID_TO_BIN('93e4ee20-6d89-4747-bdd9-87200eb2d950'), 'Misión Viejo'); insert into settlement(id, name) values(UUID_TO_BIN('de56a01e-5b93-455f-b859-fe72c114d972'), 'Misión Virreyes'); insert into settlement(id, name) values(UUID_TO_BIN('c5d64c21-36c3-4181-83ce-95037707bf8d'), 'Misión de Guadalupe'); insert into settlement(id, name) values(UUID_TO_BIN('218c36f7-5781-4fac-952a-3607ce42dc8a'), 'Misión de Loreto'); insert into settlement(id, name) values(UUID_TO_BIN('81124a6d-faa0-4758-9dd7-7e3b7070aa73'), 'Misión de Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('a2acf252-6b7a-4064-9952-018d055dd0ed'), 'Misión de San Andrés'); insert into settlement(id, name) values(UUID_TO_BIN('4a914794-9c96-41f4-af4e-9abbad7085f4'), 'Misión de San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('9def7283-58dc-4a06-8c82-e838ea8fcf59'), 'Misión de San Carlos'); insert into settlement(id, name) values(UUID_TO_BIN('47893ecf-880b-4fbf-bca6-889dfa51eb28'), 'Misión de San Diego de Alcalá'); insert into settlement(id, name) values(UUID_TO_BIN('31e97e36-dd9d-4dba-a9f7-350af2af9b87'), 'Misión de San Francisco Javier'); insert into settlement(id, name) values(UUID_TO_BIN('b8e87118-3220-4c9d-83b5-422c14fc917e'), 'Misión de San Ignacio'); insert into settlement(id, name) values(UUID_TO_BIN('4344f703-2cb8-4872-abfb-8b92a30040b4'), 'Misión de Santo Domingo'); insert into settlement(id, name) values(UUID_TO_BIN('cec4261b-3b0a-4ccc-ab47-d518c146a304'), 'Misión de Santo Domingo Ampliación'); insert into settlement(id, name) values(UUID_TO_BIN('a35a692a-dbbd-41f1-8087-98c3fed6f7f6'), 'Misión de las Américas'); insert into settlement(id, name) values(UUID_TO_BIN('c710d7b9-ebad-45b4-92e0-097e5696d021'), 'Misión de las Californias'); insert into settlement(id, name) values(UUID_TO_BIN('f6095046-1058-4071-ba57-43500cd91638'), 'Misión del Mar I'); insert into settlement(id, name) values(UUID_TO_BIN('067ae9e3-441f-4c63-add8-c6c2cec04bb9'), 'Misión del Mar II'); insert into settlement(id, name) values(UUID_TO_BIN('4c6b0ae8-f9f5-4af5-bf58-7e19f5c06f56'), 'Misión del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('aa528546-1a09-466c-9fc4-102f674b78dc'), 'Misión del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('a08a5ae4-06ab-419a-a147-39d68d424ede'), 'Misión del Ángel'); insert into settlement(id, name) values(UUID_TO_BIN('2cf4a75d-b83d-47db-8c4b-517a7aa5fba4'), 'Misión el Descanso'); insert into settlement(id, name) values(UUID_TO_BIN('d1a4f4bf-b9e2-4ab9-b2fa-2fa933235b2c'), 'Moctezuma'); insert into settlement(id, name) values(UUID_TO_BIN('0b29b813-93b1-467e-b38e-472bd6c9f918'), 'Moderna'); insert into settlement(id, name) values(UUID_TO_BIN('ef253417-257e-47b7-a6cc-c47a6c6d0de6'), 'Modesto Ponce'); insert into settlement(id, name) values(UUID_TO_BIN('88d4c406-aafb-462a-af37-e59828e4e93e'), 'Monarca'); insert into settlement(id, name) values(UUID_TO_BIN('2bc4f0c0-06c2-4e91-aee1-b5aa7b9fff22'), 'Monarcas Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('1ad492ed-da87-4156-836a-d832b5085295'), 'Monte Alban'); insert into settlement(id, name) values(UUID_TO_BIN('a0d12612-9652-41a4-8d64-9d3db6b5e23b'), 'Monte Bello'); insert into settlement(id, name) values(UUID_TO_BIN('845086aa-0c73-4134-accf-7d7ac3ab7dc0'), 'Monte Real'); insert into settlement(id, name) values(UUID_TO_BIN('b1d16913-bc63-45ac-ba0f-ddde20f3b9cb'), 'Monte San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('0d05c514-93a8-46da-a6ec-a32244ef391d'), 'Montecarlo'); insert into settlement(id, name) values(UUID_TO_BIN('0b6c820b-66e9-4057-a07f-fa9c64a446e4'), 'Montecarlo 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('13afd3c3-1af5-4019-805f-e1993020d294'), 'Montecarlo 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('9fff83f6-482e-4c41-8245-b78ff4ec41a4'), 'Montemar'); insert into settlement(id, name) values(UUID_TO_BIN('c5d8d43f-ea55-406e-838b-b60d67b201ee'), 'Monterrey'); insert into settlement(id, name) values(UUID_TO_BIN('ef3e3fc4-1a59-41b2-84bb-94832a4fad93'), 'Monterrey (Colonia Batáquez)'); insert into settlement(id, name) values(UUID_TO_BIN('31ec6bb0-28ad-4577-adcf-d085fce1322c'), 'Montes Olímpicos'); insert into settlement(id, name) values(UUID_TO_BIN('3b7d449a-7270-47e5-9853-648af694d4db'), 'Morelia'); insert into settlement(id, name) values(UUID_TO_BIN('57ecd504-3d99-43f5-a2dd-e7bd577dd94f'), 'Morelos'); insert into settlement(id, name) values(UUID_TO_BIN('8ec05ba4-6dfd-42e6-8b8f-7452e2575945'), 'Moreno'); insert into settlement(id, name) values(UUID_TO_BIN('e44828fd-000c-430c-8a12-a1a2f9ae4155'), 'Moreno 2da. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('42e9f44a-2fc9-489c-9f08-829b75f934db'), 'Municipio Libre'); insert into settlement(id, name) values(UUID_TO_BIN('5d2f59dc-f072-4d3f-8cb3-49de44f9af7e'), 'Murua Oriente'); insert into settlement(id, name) values(UUID_TO_BIN('cfb765a3-303d-4b45-88cc-e63904f25d02'), 'Murua Poniente'); insert into settlement(id, name) values(UUID_TO_BIN('fc1f5db7-521d-4725-a691-bdbd4020ec7b'), 'Mártires de 1906'); insert into settlement(id, name) values(UUID_TO_BIN('c8bddb5f-1050-4925-ad92-4fb55fd35907'), 'Mártires de La Democracia'); insert into settlement(id, name) values(UUID_TO_BIN('5beb3f15-f0ba-40d9-bc54-0f3ccdba01ce'), 'Mérida'); insert into settlement(id, name) values(UUID_TO_BIN('8de566d0-0a6c-4a02-9ae7-b40ee2ec71f0'), 'México'); insert into settlement(id, name) values(UUID_TO_BIN('d481d45a-bf04-4324-a1ce-cd020cb8f7df'), 'México Lindo'); insert into settlement(id, name) values(UUID_TO_BIN('00af4eeb-93f2-48e9-8299-096dd52e7f88'), 'NICOYA Desarrollo Industrial'); insert into settlement(id, name) values(UUID_TO_BIN('975c54b8-9d64-4d96-a31f-170251f3271e'), 'Nacozari'); insert into settlement(id, name) values(UUID_TO_BIN('7cc49370-9334-4e4c-a7f6-f01b3ef8aef8'), 'Natura Sección Amanecer'); insert into settlement(id, name) values(UUID_TO_BIN('a8bb2bfc-cb0e-4c33-b018-035a3caf7d44'), 'Natura Sección Arboledas'); insert into settlement(id, name) values(UUID_TO_BIN('06f7f0e5-27fa-4ae2-ba59-2db796580846'), 'Natura Sección Bosques'); insert into settlement(id, name) values(UUID_TO_BIN('4ef4fcd2-4cae-4a4e-9e47-908d503d22b0'), 'Natura Sección Vistas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('ec77cebb-a0d7-4ba0-ac4a-8943362f8737'), 'Naval San Felipe'); insert into settlement(id, name) values(UUID_TO_BIN('2a980793-2850-418f-a0a4-8acf85402fdc'), 'Nayarit'); insert into settlement(id, name) values(UUID_TO_BIN('88bf434e-5c35-48e9-9a3e-ed838f71c7dc'), 'Neidhart'); insert into settlement(id, name) values(UUID_TO_BIN('9b0dc7a9-eb20-4b3d-8da4-dbe1e9ae3002'), 'Neji'); insert into settlement(id, name) values(UUID_TO_BIN('4f6b929f-91f8-4a1e-b98d-2b54633ba26c'), 'Nelson'); insert into settlement(id, name) values(UUID_TO_BIN('4c000fdc-9cb9-4dfe-9305-9ead0951c0ff'), 'Netzahualcóyotl'); insert into settlement(id, name) values(UUID_TO_BIN('73ffcee2-5bb6-49d0-8eb7-d7d7e44663f1'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('dd7a7e52-55ce-4992-890f-d0a7f09b0bc1'), 'Nido de las Águilas'); insert into settlement(id, name) values(UUID_TO_BIN('1923307c-46c1-4300-8a6a-5d5c0df5b7f4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c858bbde-d6c8-4610-b399-a42c72b7e2f7'), 'Niños Héroes'); insert into settlement(id, name) values(UUID_TO_BIN('141b863a-252c-4606-85e9-7e735ae05728'), 'Niños Héroes (La Mesa)'); insert into settlement(id, name) values(UUID_TO_BIN('bea90769-b37e-4de6-95b4-95934bba2347'), 'Niños Héroes Este'); insert into settlement(id, name) values(UUID_TO_BIN('6a9eae51-e720-4596-a5e0-bc5e0d8cd5a9'), 'Nordika'); insert into settlement(id, name) values(UUID_TO_BIN('7bf0624a-e91b-423d-9778-fdbe707a8638'), 'Norte'); insert into settlement(id, name) values(UUID_TO_BIN('2c3965cb-80c4-4b4a-8d68-873a636899b4'), 'Nueva'); insert into settlement(id, name) values(UUID_TO_BIN('ea1f1622-4d94-421a-a368-feed0fa326e6'), 'Nueva 18 de Marzo'); insert into settlement(id, name) values(UUID_TO_BIN('10bb9e3d-5852-4662-8dfe-1d318e46144c'), 'Nueva Aurora'); insert into settlement(id, name) values(UUID_TO_BIN('e334360c-4845-4952-901c-d498a0a713d1'), 'Nueva Aurora Sur'); insert into settlement(id, name) values(UUID_TO_BIN('73810014-5538-4f94-8830-40eb84639297'), 'Nueva Colonia Hindú'); insert into settlement(id, name) values(UUID_TO_BIN('e1cdd94d-78de-4200-95f1-8262af6336b5'), 'Nueva Ensenada'); insert into settlement(id, name) values(UUID_TO_BIN('dced1c38-d5f7-4ae2-a7fc-4a52158f46d8'), 'Nueva Ensenada 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('f39418e8-49cb-4f0c-b11a-5c397d040fe2'), 'Nueva Era'); insert into settlement(id, name) values(UUID_TO_BIN('5b8458b6-8972-4bad-a205-d38cc6ff22d2'), 'Nueva España'); insert into settlement(id, name) values(UUID_TO_BIN('fa5bc5a9-ee24-4941-91ef-be116273be55'), 'Nueva Esperanza'); insert into settlement(id, name) values(UUID_TO_BIN('70d04a24-3afd-4e40-8502-599fa8b2c3e6'), 'Nueva Esperanza (La Cuesta)'); insert into settlement(id, name) values(UUID_TO_BIN('8a0061ea-5305-4d7d-912e-ade0cf5f5a9c'), 'Nueva Odisea (El Pabellón)'); insert into settlement(id, name) values(UUID_TO_BIN('02dd2646-6cda-410d-832d-3a0e026a2372'), 'Nueva Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('3b28d4eb-8752-4a32-be1b-a171ca414fd5'), 'Nuevo Amanecer'); insert into settlement(id, name) values(UUID_TO_BIN('271d01d4-3597-499c-8870-96479d68a806'), 'Nuevo Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('365d675e-dada-4d21-be46-19657c2e0e35'), 'Nuevo Ideal'); insert into settlement(id, name) values(UUID_TO_BIN('e50d3d9b-8e18-4848-9bb4-e4a88a66c8a9'), 'Nuevo León'); insert into settlement(id, name) values(UUID_TO_BIN('6d2df537-dac9-4a6a-bc08-bae714bce1da'), 'Nuevo Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('4cadfa17-250f-4bf2-aba3-f8a801ca3873'), 'Nuevo Milenio'); insert into settlement(id, name) values(UUID_TO_BIN('0436e1fd-8ac0-4e28-a580-f994a24b141c'), 'Nuevo Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('19659c4d-ec42-4052-aa9f-56da36abe403'), 'Nuevo Reforma'); insert into settlement(id, name) values(UUID_TO_BIN('69fa23fc-5492-4738-bbc3-8b9027aae6ff'), 'Nuevo Reforma II'); insert into settlement(id, name) values(UUID_TO_BIN('624cc8a7-8c8c-4088-9e86-e93c26931c2a'), 'Nuevo Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('c737a006-1835-460c-9d0e-fb6a0277e2bc'), 'Nuevo San Felipe'); insert into settlement(id, name) values(UUID_TO_BIN('97d514b4-4e60-406a-9a2e-6be511c3c57b'), 'Nuevo Santa Lucia'); insert into settlement(id, name) values(UUID_TO_BIN('8862f14f-e571-4d7e-8f92-fb9e448f73b7'), 'Nuevo Uruapan'); insert into settlement(id, name) values(UUID_TO_BIN('082760b8-ceef-46c6-9fe5-1eb0a817abdc'), 'Oaxaca (<NAME>)'); insert into settlement(id, name) values(UUID_TO_BIN('d3f47f6c-e5be-4dd2-84d9-a7e78853cd99'), 'Obrera'); insert into settlement(id, name) values(UUID_TO_BIN('367c5ab8-e925-49f4-908c-4abed5e6650d'), 'Obrera 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('baed0c50-378f-4b90-bbdb-dc411354ce1e'), 'Obrera 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('967b7a74-d4a2-4e12-a6a3-d5d87e505ac0'), 'Obrera 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('597f2856-908c-4566-b36e-d0fe97171d81'), 'Ojo de Agua'); insert into settlement(id, name) values(UUID_TO_BIN('18ef5140-e2a0-4897-84d4-dc8237e4ee2f'), 'Ojos Negros'); insert into settlement(id, name) values(UUID_TO_BIN('4744e2c4-72ec-44be-a39e-4aa45e286507'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('923640d6-9c67-492b-90c5-51f7ba66cbea'), 'Orizaba'); insert into settlement(id, name) values(UUID_TO_BIN('b9d64d2f-d391-4598-996a-69c0f08ced44'), 'Orquídea'); insert into settlement(id, name) values(UUID_TO_BIN('d50a0e89-3676-4629-9fe2-daef3cbe0788'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bdd5559d-85ab-40e3-a30f-79340835cbdf'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('bcb3fd29-11d2-4492-a107-efaf23b3d217'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d04a8c52-639b-46e8-a7e1-7cabd80d9ce4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7ccedac7-ebc5-4d36-8051-39e4699bcd4a'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c4bd9c7a-7c8a-4b13-b7c4-bc90846e519e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('74392068-3031-4741-94b9-355643536ff2'), 'Otay Insurgentes'); insert into settlement(id, name) values(UUID_TO_BIN('6121dc34-7ab4-454c-b8d2-1beebda5ba6f'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('400069f1-f694-4946-9870-997664379733'), 'Otay Jardín II'); insert into settlement(id, name) values(UUID_TO_BIN('81058602-3d80-4c9b-a18e-0132718da9bb'), 'Otay Universidad'); insert into settlement(id, name) values(UUID_TO_BIN('6c6de427-24d7-4a50-b086-615b524d7365'), 'Otay Vista'); insert into settlement(id, name) values(UUID_TO_BIN('8c21fa9f-3f29-4a3a-83b9-b872dac2c528'), 'PEMEX'); insert into settlement(id, name) values(UUID_TO_BIN('3161da51-cfe1-460b-9b67-5813433be361'), 'PIMSA IV'); insert into settlement(id, name) values(UUID_TO_BIN('01c1beff-a19a-4ccc-8af7-3ef639ef6a81'), 'Pabellón'); insert into settlement(id, name) values(UUID_TO_BIN('fe5afca6-d321-41f8-a844-6af6f04ffea5'), 'Pachuca'); insert into settlement(id, name) values(UUID_TO_BIN('ef971ab8-2711-489b-8cdb-4598c9636128'), 'Pacifico Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('1cc32894-5f6d-45c8-8d8e-23694f8e79f2'), 'Pacífica Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('3662e28f-ec7f-4ce0-b1d5-5243f57e6c0a'), 'Padre Kino'); insert into settlement(id, name) values(UUID_TO_BIN('a4c4361a-d93c-443d-86b9-e5398aabebf3'), 'Palaco'); insert into settlement(id, name) values(UUID_TO_BIN('769c7504-fbea-4b19-adcd-0807fd51fa6d'), 'Palma Real'); insert into settlement(id, name) values(UUID_TO_BIN('5dc717f2-4ab9-4da8-978e-3b056652b6c3'), 'Palmar de Orizaba'); insert into settlement(id, name) values(UUID_TO_BIN('2e92f0ca-0cd1-4cf7-8866-a55a97614bb3'), 'Palmar de Santa Anita'); insert into settlement(id, name) values(UUID_TO_BIN('8720224c-0437-4be0-a7c4-6a39397ed3df'), 'Palmillas'); insert into settlement(id, name) values(UUID_TO_BIN('77f8acfc-af36-41f3-bbc2-6c669b4b2a37'), 'Palo Verde'); insert into settlement(id, name) values(UUID_TO_BIN('fcd06f53-e957-4474-af91-d3c90fb790f4'), 'Panamericano'); insert into settlement(id, name) values(UUID_TO_BIN('8196793c-15c8-47c7-b15e-d79ce7c995b8'), 'Parajes de Oriente'); insert into settlement(id, name) values(UUID_TO_BIN('afbaec0e-8c8d-4ef5-bf92-0a25b2a4ac69'), 'Parajes de Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('533f002d-bf8a-474c-929e-e642ba03af7d'), 'Parajes del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('d3c8d956-e941-4438-a87a-f61acec54629'), 'Paralelo 28'); insert into settlement(id, name) values(UUID_TO_BIN('3e0ac81e-55eb-46a0-9749-be6772e19d6e'), 'Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('5bc5f0be-ffb0-45aa-bf9c-8a538a09663f'), 'Paraíso del Río'); insert into settlement(id, name) values(UUID_TO_BIN('b96fd54e-2d54-4ee1-a835-2db9d52510d8'), 'Parcela 36'); insert into settlement(id, name) values(UUID_TO_BIN('3ade883d-e39f-4bf8-a56a-ff6a5611383c'), 'Parcela 62'); insert into settlement(id, name) values(UUID_TO_BIN('9629b125-b85e-47c0-9f7e-066172173f2b'), 'Parcela del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('a4e5d7e8-f7bb-468f-9b85-3ec90fbab594'), 'Paredones'); insert into settlement(id, name) values(UUID_TO_BIN('1c9a2849-8040-435f-a692-2105973e0296'), 'Parque Industrial Cucapah'); insert into settlement(id, name) values(UUID_TO_BIN('0cae1c02-6b3b-495b-b8ed-c554e872b478'), 'Parque Industrial El Bajío'); insert into settlement(id, name) values(UUID_TO_BIN('373cbfb1-f57b-40e0-8e91-ca9d957b5bea'), 'Parque Industrial El Florido Sección La Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('f23a8ff7-2e37-4a7e-9aa4-6040941a1a8d'), 'Parque Industrial Ex-XXI'); insert into settlement(id, name) values(UUID_TO_BIN('6547af40-63df-43bb-a6de-1789deb041ae'), 'Parque Industrial La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('3f140025-86e2-4d73-b173-644227ac5a2d'), 'Parque Industrial Misiones de las Californias'); insert into settlement(id, name) values(UUID_TO_BIN('dd2188ab-c715-4f45-976d-a445766a4d42'), 'Parque Industrial Nelson II'); insert into settlement(id, name) values(UUID_TO_BIN('d0b18058-ca77-4bf7-9ede-e3884cf139e9'), 'Parque Industrial Pacífico IV'); insert into settlement(id, name) values(UUID_TO_BIN('2aeab9d1-ba27-4dc5-ae4e-655df5348e27'), 'Parque Industrial Quazar'); insert into settlement(id, name) values(UUID_TO_BIN('c3f31b52-6bad-4c58-b0c7-e739a6626146'), 'Parque Industrial del Desierto'); insert into settlement(id, name) values(UUID_TO_BIN('b08c2afa-4d59-413e-8fb4-1291dffc7460'), 'Parque Industrial el Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('3a99e37d-223c-4206-bbd9-4cd064932534'), 'Parque Industrial Álamo'); insert into settlement(id, name) values(UUID_TO_BIN('8ea671a4-5f04-44ee-b8ab-93141eeaa3d0'), 'Partido del Trabajo'); insert into settlement(id, name) values(UUID_TO_BIN('b67ad932-6955-4049-ac11-854ac0274162'), 'Pasadina'); insert into settlement(id, name) values(UUID_TO_BIN('5d248ecf-53f9-4d2a-b202-023a9a81bd3a'), 'Paseo Santa María'); insert into settlement(id, name) values(UUID_TO_BIN('9f790a0e-cab1-4411-96fe-e66dcd72ae9f'), 'Paseo las Flores'); insert into settlement(id, name) values(UUID_TO_BIN('9ae3d1af-c90b-45e7-93e4-5fd5564a8d70'), 'Paseos de Guaycura'); insert into settlement(id, name) values(UUID_TO_BIN('89327cec-394f-4693-9081-4d5cb3dffbf9'), 'Paseos de Xochimilco'); insert into settlement(id, name) values(UUID_TO_BIN('73eaea77-5cf7-44e1-83fe-1c2f622def16'), 'Paseos del Florido'); insert into settlement(id, name) values(UUID_TO_BIN('987adee5-68b7-4e4e-8bad-70eefd36eb17'), 'Paseos del Pacífico'); insert into settlement(id, name) values(UUID_TO_BIN('30858751-d702-45a4-9f56-dfbc027073ba'), 'Paseos del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('bebf8b1c-7b5f-4ed3-8c0f-fd85e23f5931'), 'Paseos del Vergel'); insert into settlement(id, name) values(UUID_TO_BIN('60da4f77-75f2-41c8-8ed2-79646784b491'), 'Paso del Águila'); insert into settlement(id, name) values(UUID_TO_BIN('7c29766f-0647-4cbe-ae5b-dbf47cb745fd'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('0fe32e19-1346-4ecc-94c0-707f11b99228'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('8006d9d7-2e6a-4455-817e-c728a16ad606'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('5dd43b82-e183-491f-b6cb-a638e2b6b9ef'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7355d790-f6dd-46db-ab71-70876f3012cb'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c71194ad-5371-4a39-bc7b-a3e0eddc82bd'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('b5d2127d-3557-46a4-ad7f-b7814be58f18'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('537c35be-fa26-49d8-af6a-95dcf1583d8c'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('02793b89-f3cc-4dd8-a50b-81f2013d59b0'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('13c3d8ae-8043-4d6d-aca9-dafce836b685'), 'Pegaso I'); insert into settlement(id, name) values(UUID_TO_BIN('600e2c47-67d5-4902-9720-82a498201e8e'), 'Pegaso II'); insert into settlement(id, name) values(UUID_TO_BIN('e7572c4a-900f-4dfc-a55b-9d7aa3ea3279'), 'Perimetral Norte'); insert into settlement(id, name) values(UUID_TO_BIN('94fa7e70-a182-4c3e-aea8-f7251e0f9b6e'), 'Periodista'); insert into settlement(id, name) values(UUID_TO_BIN('71af5762-e20c-401a-a6ce-445c250c45d3'), 'Perla del Pacífico'); insert into settlement(id, name) values(UUID_TO_BIN('a57a076a-256c-4151-84f9-3127c6444c3f'), 'Pescaderos (Campo la Catorce)'); insert into settlement(id, name) values(UUID_TO_BIN('803ea9a4-f334-49e0-af5c-aba346d42b3e'), 'Pi Calafia'); insert into settlement(id, name) values(UUID_TO_BIN('e76e52c7-1462-4a17-8313-b0e679582a01'), 'Piedra Angular (Las Torres)'); insert into settlement(id, name) values(UUID_TO_BIN('6350db13-0e80-4d0b-8f93-dd4a2534cab3'), 'Piedras Negras'); insert into settlement(id, name) values(UUID_TO_BIN('0db4f55e-5f0e-45c3-8d5e-47107ff84e2f'), 'Pimsa I'); insert into settlement(id, name) values(UUID_TO_BIN('3e09e1c4-4843-4202-aff2-b0f8ba31f7c2'), 'Pimsa II'); insert into settlement(id, name) values(UUID_TO_BIN('f44d531c-1947-4fc3-b7d6-ff6c5240143b'), 'Pimsa III'); insert into settlement(id, name) values(UUID_TO_BIN('31153622-e02b-489c-945b-e93048659f55'), 'Pinos de Narez'); insert into settlement(id, name) values(UUID_TO_BIN('6616dbac-3b46-4a0a-863d-4689c5622837'), 'Pinos del Agüero'); insert into settlement(id, name) values(UUID_TO_BIN('30751c44-40e2-4e54-848b-898f0e3ed9ad'), 'Pioneros de La Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('fca718d0-3b1d-4d52-a33f-ccc12017ced3'), 'Plan Libertador'); insert into settlement(id, name) values(UUID_TO_BIN('62a52f19-f722-4c88-a0d6-6985fe23dd4b'), 'Plan Nacional Agrario'); insert into settlement(id, name) values(UUID_TO_BIN('b0df7ea5-3873-403b-80a8-a89c67f51ad7'), 'Plan de Ayala'); insert into settlement(id, name) values(UUID_TO_BIN('132c67e5-ca84-437d-aa50-a3cc745c6bf2'), 'Plan de Barranquitas'); insert into settlement(id, name) values(UUID_TO_BIN('9a598e44-d5a9-4b51-b061-2e2c2b92fd4c'), 'Plan de Iguala'); insert into settlement(id, name) values(UUID_TO_BIN('c5e12688-749c-457e-9c8d-5026699dfc75'), 'Planetario'); insert into settlement(id, name) values(UUID_TO_BIN('4e1e69db-e217-4fc1-b87f-25fa55db8288'), 'Planicie'); insert into settlement(id, name) values(UUID_TO_BIN('8d5ccc92-5c99-428f-bf38-d8b94a0f8e8a'), 'Playa Blanca'); insert into settlement(id, name) values(UUID_TO_BIN('d648abd8-7f84-4d3d-b785-01ee5ad7b84c'), 'Playa Diamante'); insert into settlement(id, name) values(UUID_TO_BIN('148069a8-db1f-4d3e-bd38-34c7c664ebfc'), 'Playa Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('4c92264c-090e-49a2-98c1-bd4728f7a01d'), 'Playa Hermosa'); insert into settlement(id, name) values(UUID_TO_BIN('c877411c-93d5-4566-abe1-ab2f2d8294f1'), 'Playa Todos Santos'); insert into settlement(id, name) values(UUID_TO_BIN('a67b3e07-52f4-414d-a42d-f875ce607edb'), 'Playa de Ensenada'); insert into settlement(id, name) values(UUID_TO_BIN('92e1326c-d607-4127-98a6-5f92147b2c52'), 'Playas de Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('77f9cf7b-d7b3-445b-8b4a-0fd68836b001'), 'Playas de San Felipe'); insert into settlement(id, name) values(UUID_TO_BIN('2c548e83-4589-4a1c-aa5c-61bd73ebb930'), 'Playas de Santander'); insert into settlement(id, name) values(UUID_TO_BIN('75839c61-7458-42a0-a2a2-e96148ff0e5c'), 'Playas de Tijuana Sección Costa'); insert into settlement(id, name) values(UUID_TO_BIN('9b8cefa6-5584-418f-8c97-a74a59dfe197'), 'Playas de Tijuana Sección Costa Azul'); insert into settlement(id, name) values(UUID_TO_BIN('575e2972-096a-4461-b858-eb52417aae05'), 'Playas de Tijuana Sección Costa Hermosa'); insert into settlement(id, name) values(UUID_TO_BIN('dcce978e-2b69-408c-860c-dc638bd312c4'), 'Playas de Tijuana Sección Costa de Oro'); insert into settlement(id, name) values(UUID_TO_BIN('89055634-d148-4402-889d-b559fdd65052'), 'Playas de Tijuana Sección Jardincitos'); insert into settlement(id, name) values(UUID_TO_BIN('b3a6929d-0cfc-4bf4-a57c-c52067737587'), 'Playas de Tijuana Sección Jardines'); insert into settlement(id, name) values(UUID_TO_BIN('6446d066-c6f8-4119-b44c-b1ba620c950a'), 'Playas de Tijuana Sección Jardines del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('f2daa996-ee10-48c4-9f28-9910e9ca6e27'), 'Playas de Tijuana Sección La Riviera'); insert into settlement(id, name) values(UUID_TO_BIN('f78a7fde-c7d3-4512-8dbd-9b15106144a9'), 'Playas de Tijuana Sección Monumental'); insert into settlement(id, name) values(UUID_TO_BIN('6cf8a0d8-5df1-4851-b278-3083849af4bd'), 'Playas de Tijuana Sección Playas Coronado'); insert into settlement(id, name) values(UUID_TO_BIN('c393a666-0d15-4fba-832f-6d9273e3c38d'), 'Playas de Tijuana Sección Terrazas'); insert into settlement(id, name) values(UUID_TO_BIN('c02c90db-c18e-419e-8d2f-d955e4a4a728'), 'Playas de Tijuana Sección Triangulo de Oro'); insert into settlement(id, name) values(UUID_TO_BIN('5258a2ee-1c64-4280-aa6c-e59f8c397fc8'), 'Playas de Tijuana Sección el Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('0b6ba73b-35b5-4907-877d-235446c5461f'), 'Playas de la Vicente Guerrero'); insert into settlement(id, name) values(UUID_TO_BIN('ab2f30bf-b3da-4a2c-8127-2fc3f12db334'), 'Playas la Misión'); insert into settlement(id, name) values(UUID_TO_BIN('f65b8a81-e55d-449a-bb58-4831f98fd908'), 'Plaza España'); insert into settlement(id, name) values(UUID_TO_BIN('59198b0d-033c-4bb0-90e3-1c949daf3009'), 'Plaza Otay'); insert into settlement(id, name) values(UUID_TO_BIN('d4a7d3b1-e8fc-4347-8f87-4523b169e382'), 'Plaza San Marcos'); insert into settlement(id, name) values(UUID_TO_BIN('391e24b7-6d3d-4dc3-987a-a369a044523a'), 'Plaza Universidad'); insert into settlement(id, name) values(UUID_TO_BIN('d1ee2ce9-e973-406e-859f-d82945d1a74b'), 'Plaza del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('674fbfab-48e9-47c6-a642-0ed58759cb11'), 'Plazas'); insert into settlement(id, name) values(UUID_TO_BIN('6ba7f45c-5db8-4839-b0a3-1b9e0d2db870'), 'Pliego'); insert into settlement(id, name) values(UUID_TO_BIN('2c7c2787-be9f-43eb-930b-f0f62015baf0'), 'Plutarco El<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('dee826ce-2563-4747-b9de-32d4e8fa2ff0'), 'Poblano Chula Vista'); insert into settlement(id, name) values(UUID_TO_BIN('96bb836e-1a0f-4385-b728-bd19f5e61b85'), 'Pontevedra'); insert into settlement(id, name) values(UUID_TO_BIN('512d9eaf-b211-4385-947e-9eb5fe6c550c'), 'Popotla'); insert into settlement(id, name) values(UUID_TO_BIN('eaa9d8de-4e70-4e5a-82dc-6c6f33170755'), 'Popular 6 de Enero'); insert into settlement(id, name) values(UUID_TO_BIN('8f6f9d42-044e-44e2-a86a-7f0cf3ea5e4c'), 'Popular 89'); insert into settlement(id, name) values(UUID_TO_BIN('bb804dec-b18d-4af0-acb0-03b443f47af9'), 'Popular Centinela'); insert into settlement(id, name) values(UUID_TO_BIN('f4d536d7-d9c0-4b5d-a3cf-00fc37b596ad'), 'Popular Emiliano Zapata'); insert into settlement(id, name) values(UUID_TO_BIN('b7bc58b0-4067-4936-a9d1-f8c4ae0d4bd1'), 'Popular Leandro Valle'); insert into settlement(id, name) values(UUID_TO_BIN('e5c40d8a-080d-479b-852b-75cdd9252988'), 'Popular Nacionalistas'); insert into settlement(id, name) values(UUID_TO_BIN('eef55415-5a23-42c1-b2fc-b5cf791afb6e'), 'Popular San Quintín'); insert into settlement(id, name) values(UUID_TO_BIN('091bf9e7-5a7d-4eef-a7be-ffb39950459c'), 'Popular Valle Verde 1'); insert into settlement(id, name) values(UUID_TO_BIN('965ff9cf-6d94-4ce9-927a-0d3774dee528'), 'Popular Valle Verde 2'); insert into settlement(id, name) values(UUID_TO_BIN('51039306-2fff-4080-9277-aa928ac18d77'), 'Porto Bello'); insert into settlement(id, name) values(UUID_TO_BIN('c7a719e4-a5f1-49b2-af32-ada59c1e58a2'), 'Praderas de La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('cf4b52fc-1ebc-4302-a5f0-405ff55b856f'), 'Praderas de La Mesa Sección Valle de las Flores'); insert into settlement(id, name) values(UUID_TO_BIN('0fba13fe-7242-4ca1-a963-db03f0632c43'), 'Praderas de la Gloria'); insert into settlement(id, name) values(UUID_TO_BIN('696449d2-3521-4db7-94f2-320a94d463c9'), 'Praderas del Ciprés Sección 2'); insert into settlement(id, name) values(UUID_TO_BIN('4c47cde7-1a3e-4337-9888-63e09baff1a0'), 'Praderas del Ciprés Sección I'); insert into settlement(id, name) values(UUID_TO_BIN('6d79a440-4dbf-463b-9cc8-c1cd97a6f1a0'), 'Praderas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('fd453cbb-59b5-44e0-8bac-211da951d1ad'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('1865d24b-ad35-4808-bd13-889626a3305a'), 'Presidentes'); insert into settlement(id, name) values(UUID_TO_BIN('9f6a3721-86d6-469c-b2e3-f4005e91a362'), 'Primavera'); insert into settlement(id, name) values(UUID_TO_BIN('9e5461e8-5649-4ef3-ae01-5398d7760680'), 'Primera Sección'); insert into settlement(id, name) values(UUID_TO_BIN('313708e9-371b-4489-b7f0-fb71dfecc3a5'), 'Primo Tapia parte Alta'); insert into settlement(id, name) values(UUID_TO_BIN('0ed9e84e-e224-4814-9404-2fb24650912b'), 'Primo Tapia parte Baja'); insert into settlement(id, name) values(UUID_TO_BIN('0699cff1-170d-406f-bcfd-c1a2de01d537'), 'Privada Catalana'); insert into settlement(id, name) values(UUID_TO_BIN('c1bbb843-cef1-4558-a4e9-8bb05bc03253'), 'Privada Coahuila'); insert into settlement(id, name) values(UUID_TO_BIN('646fa39e-e135-4ae4-9779-117ab1f59efa'), 'Privada Hacienda Córdoba'); insert into settlement(id, name) values(UUID_TO_BIN('5633c256-a1b1-427b-895d-59f76671f310'), 'Privada Juárez'); insert into settlement(id, name) values(UUID_TO_BIN('19cd331b-1892-406f-8309-201c9ccc4e27'), 'Privada Rústica'); insert into settlement(id, name) values(UUID_TO_BIN('38e04d0a-2804-4f3a-95cf-fcf78eff5ade'), 'Privada San Miguel'); insert into settlement(id, name) values(UUID_TO_BIN('866f5072-73cf-43bc-858b-c3b839b3805a'), 'Privada San Miguel 3a Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('c62e50bd-e4eb-44a4-a557-8481960d018e'), 'Privada Vistahermosa'); insert into settlement(id, name) values(UUID_TO_BIN('112e7745-2767-4b69-8f83-40562e7c33d7'), 'Privadas Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('b44bcc24-4930-4b90-8f59-226bcf2684d0'), 'Pro-hogar'); insert into settlement(id, name) values(UUID_TO_BIN('2cccb112-fd0d-4869-a34b-fde0cc0b7485'), 'Profesor <NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('d68b3be4-9aa1-4081-b42f-3612cf66bde8'), 'Profesores Federales'); insert into settlement(id, name) values(UUID_TO_BIN('c4186503-b6ff-4d8a-b4a1-921583596110'), 'Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('cf8259cd-c358-462c-9cee-6534596a56a1'), 'Prohogar'); insert into settlement(id, name) values(UUID_TO_BIN('17bbcccb-ec41-4223-8e7c-cd64ea041769'), 'Prolongación Alamitos'); insert into settlement(id, name) values(UUID_TO_BIN('54c83cb0-82b8-425b-9e9e-3cbc91ace703'), 'Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('e93307e9-334c-4bb3-8d2a-37e0d7c568a7'), 'Pueblo Bonito'); insert into settlement(id, name) values(UUID_TO_BIN('f05cd75f-b369-4011-bf2f-9040351267dd'), 'Pueblo Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('df99fd05-4e18-4085-b717-22263ac262c1'), 'Puente Calabazas'); insert into settlement(id, name) values(UUID_TO_BIN('e0b32e6d-0d59-4a37-b176-2186df58f9fc'), 'Puente La Joya'); insert into settlement(id, name) values(UUID_TO_BIN('b03e2335-dae4-4a46-8856-c4b08d40acf6'), 'Puente Treviño'); insert into settlement(id, name) values(UUID_TO_BIN('10d6f3c8-d779-49c8-806b-83b828389356'), 'Puerta Plata'); insert into settlement(id, name) values(UUID_TO_BIN('af5a2038-7cfd-43fa-bc44-29149cad1e1f'), 'Puerta Trampa'); insert into settlement(id, name) values(UUID_TO_BIN('918390d9-b85e-487f-89fc-565d02be1010'), 'Puerta de Hierro'); insert into settlement(id, name) values(UUID_TO_BIN('fbec1a1d-7b90-4233-bd23-b317a44fcc40'), 'Puerta del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('8602226e-eb4f-4d10-99a2-65f397688ab4'), 'Puerta del Mar II'); insert into settlement(id, name) values(UUID_TO_BIN('ef613949-8c10-4d49-b070-9b6f404ba732'), 'Puerta del Río'); insert into settlement(id, name) values(UUID_TO_BIN('b31e1a6e-7338-4770-b1b4-d3fd18eef803'), 'Puerta del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('1e26c2ce-0b52-4f53-a453-051fd3bf37be'), 'Puerta del Sol 2da Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('feca4691-939c-4160-8b6e-ddae9eb89472'), 'Puerto Azul'); insert into settlement(id, name) values(UUID_TO_BIN('1d42669a-95dd-4387-883c-3153b19977a3'), 'Puerto Escondido'); insert into settlement(id, name) values(UUID_TO_BIN('819b6aa2-aeb0-4438-a010-4189dca6a1af'), 'Puerto Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('c809f0a9-1c10-4a6b-9b4d-7f1fe657fcf9'), 'Puerto Salina La Marina'); insert into settlement(id, name) values(UUID_TO_BIN('83e332fd-dd3a-4111-ab7d-ef630bd1aab9'), 'Puesta de Sol'); insert into settlement(id, name) values(UUID_TO_BIN('544b47ec-5d5d-4552-b4b8-0de73179d795'), 'Puesta de Sol Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('abb96964-9832-4748-adeb-517e14044dca'), 'Puesta del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('aeef2c32-7bc3-4fd2-a1e1-0b5f8584919c'), 'Punta Azul'); insert into settlement(id, name) values(UUID_TO_BIN('3d3e1b4b-7a1d-4d46-83a6-8887fe5fbe0c'), 'Punta Banda'); insert into settlement(id, name) values(UUID_TO_BIN('0e1ffdb7-19fc-4913-a2b1-6520307d1561'), 'Punta Banda II'); insert into settlement(id, name) values(UUID_TO_BIN('fc980506-c8cd-4b0a-a8c9-438be324445b'), 'Punta Bandera'); insert into settlement(id, name) values(UUID_TO_BIN('ec92578d-8fae-4509-a17f-aaea1012d525'), 'Punta Colonet'); insert into settlement(id, name) values(UUID_TO_BIN('8d0e7721-e8d9-4a71-8ca5-d3a761eb9166'), 'Punta Piedra'); insert into settlement(id, name) values(UUID_TO_BIN('2185a63e-b12b-4c5d-b983-7f75d71f2952'), 'Punta Prieta'); insert into settlement(id, name) values(UUID_TO_BIN('2e13d525-6884-4436-abcc-997a36abba18'), 'Punta de Estrella'); insert into settlement(id, name) values(UUID_TO_BIN('3f7c7c16-405f-4a35-aa67-f0235fd99672'), 'Punta del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('79dcd3d6-fa2d-496f-9c87-c0261ac79079'), 'Pátzcuaro'); insert into settlement(id, name) values(UUID_TO_BIN('dee9bc1f-13a4-4c04-a997-26667b3c3902'), 'Pólvora'); insert into settlement(id, name) values(UUID_TO_BIN('26ff9579-e1f0-4b9f-a9c9-3bc297359bad'), 'Pórticos de La Mesa'); insert into settlement(id, name) values(UUID_TO_BIN('f872802c-d7be-4530-b8a8-ca3356758cbf'), 'Pórticos de San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('3ab92278-d88a-419e-8631-6b52a4e9f51b'), 'Pórticos de Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('2c671e70-49d1-42ae-89d7-1c809796dcf2'), 'Pórticos del Lago'); insert into settlement(id, name) values(UUID_TO_BIN('e91b77da-71f1-4642-a96f-e253373143b8'), 'Pórticos del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('fbc267a5-6648-408c-b791-0f8183d51d6e'), 'Pórticos del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('cddc2ad7-776d-4267-9305-0a85a2bd3895'), 'Querétaro'); insert into settlement(id, name) values(UUID_TO_BIN('ffc4ba26-0a6a-4831-9ced-9dc85da9794c'), 'Quinta Alcázar de Toledo'); insert into settlement(id, name) values(UUID_TO_BIN('d2b987a0-1850-4e84-8bbb-271e5750ba70'), 'Quinta Alta'); insert into settlement(id, name) values(UUID_TO_BIN('646bce5d-e815-4364-aaf9-607b55000d23'), 'Quinta Granada'); insert into settlement(id, name) values(UUID_TO_BIN('d02c3325-6967-45b6-8eb3-77a896fa25e6'), 'Quinta María Luisa'); insert into settlement(id, name) values(UUID_TO_BIN('84e42afd-4fe6-4892-8181-9608510f8874'), 'Quinta Montecarlo'); insert into settlement(id, name) values(UUID_TO_BIN('0461b4d4-c96b-4662-b924-4660207e865f'), 'Quinta Roma (Quinta Córdova)'); insert into settlement(id, name) values(UUID_TO_BIN('2ac5225c-efdb-4ea4-b414-bd3e82ddc600'), 'Quinta Versalles'); insert into settlement(id, name) values(UUID_TO_BIN('bae7c09b-abcc-41ac-9781-19e4ab7a7ec7'), 'Quinta del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('8d03e1c0-01bd-437f-a684-e408bcf93e25'), 'Quinta del Rey'); insert into settlement(id, name) values(UUID_TO_BIN('5b72468e-130b-4804-9cd4-bccee295b291'), 'Quintana Roo'); insert into settlement(id, name) values(UUID_TO_BIN('44f4e63d-5f1f-4ec6-bdbc-80b697c0f1c5'), 'Quintas Campestre El Refugio'); insert into settlement(id, name) values(UUID_TO_BIN('87b76e94-11a0-49cf-a4aa-0e8196a43f6c'), 'Quintas Papagayo'); insert into settlement(id, name) values(UUID_TO_BIN('6405bddb-8c14-4380-8406-0e58da9c96fd'), 'Ramos'); insert into settlement(id, name) values(UUID_TO_BIN('f05ad234-b1a4-4fee-8d12-6d90f0f22ac1'), 'Ramos Sur'); insert into settlement(id, name) values(UUID_TO_BIN('61163173-79c5-487b-a67b-8b380169090f'), 'Ramírez'); insert into settlement(id, name) values(UUID_TO_BIN('6c8699c2-f4de-4d97-a377-857654830de9'), 'Rancho Altamira'); insert into settlement(id, name) values(UUID_TO_BIN('58bd8689-b7b6-48ec-9518-a64d8e3bae6e'), 'Rancho Chula Vista'); insert into settlement(id, name) values(UUID_TO_BIN('fd1c3f43-324b-4bd1-8324-64e5064c450d'), 'Rancho Contento'); insert into settlement(id, name) values(UUID_TO_BIN('3cba0dd9-ebf2-40b4-9b80-4681abf43f72'), 'Rancho El Mirador'); insert into settlement(id, name) values(UUID_TO_BIN('b5146f63-914f-4175-bef0-93872548e541'), 'Rancho Escondido'); insert into settlement(id, name) values(UUID_TO_BIN('bd48498d-32a6-4b8e-84d4-2308c56ca7b3'), 'Rancho Gandul'); insert into settlement(id, name) values(UUID_TO_BIN('5334554f-dc75-4da2-bfd8-b42f54938222'), 'Rancho La Bodega'); insert into settlement(id, name) values(UUID_TO_BIN('96040cc4-8198-4555-9b5c-38402c3db2fd'), 'Rancho La Cima'); insert into settlement(id, name) values(UUID_TO_BIN('131bdd41-9021-4af4-b772-2a28c435a4c0'), 'Rancho Macías'); insert into settlement(id, name) values(UUID_TO_BIN('9e8bf29c-c554-4b8a-a6c5-34acc72efee2'), 'Rancho Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('72d7ad43-a56b-4566-bbf6-db6d1cdbb795'), 'Rancho Reynoso'); insert into settlement(id, name) values(UUID_TO_BIN('284285b0-ad96-4759-8973-e89d68aea01c'), 'Rancho Rivera'); insert into settlement(id, name) values(UUID_TO_BIN('d52cee55-3b9a-406a-ab8a-8193ea30941b'), 'Rancho Santa Cruz'); insert into settlement(id, name) values(UUID_TO_BIN('cd2c2aa2-1ddd-4d64-9856-468925bf050a'), 'Rancho Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('6167aec4-037a-4692-aeb0-518d3aca0828'), 'Rancho Tres Piedras'); insert into settlement(id, name) values(UUID_TO_BIN('3c0e75bf-d5ed-44db-8773-abdafa832757'), 'Rancho Viejo'); insert into settlement(id, name) values(UUID_TO_BIN('4466df59-2b2f-4076-8bf5-3d8c94878046'), 'Rancho del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('46f08978-64c0-4f36-ba95-d535343a6ffa'), 'Rancho del Sol (El Dorado)'); insert into settlement(id, name) values(UUID_TO_BIN('9a5d2759-9045-46ba-b1ce-9f78e54207c7'), 'Rancho el Descanso'); insert into settlement(id, name) values(UUID_TO_BIN('be1eeb51-5754-4f78-b623-ba4d0987811c'), 'Rancho el Grande'); insert into settlement(id, name) values(UUID_TO_BIN('087294bc-b9fe-473c-b47e-fde4495f943f'), 'Rancho el Águila'); insert into settlement(id, name) values(UUID_TO_BIN('3cd38664-99fe-4316-a90f-f92979542726'), 'Rancho las Flores 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('2fb133eb-3c92-43ad-a16e-fba9108a05aa'), 'Rancho las Flores 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('03c94a9a-3853-4a6c-8d43-d11028385d02'), 'Rancho los Olivos'); insert into settlement(id, name) values(UUID_TO_BIN('dfb9c326-fad6-4bbb-b83d-f6d9f18a6f29'), 'Raza'); insert into settlement(id, name) values(UUID_TO_BIN('cd49249e-f39a-4ffd-ab43-24ddd14820d9'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('9b05f75d-963b-4bfa-a11d-067359e246d9'), 'Reacomodo Lomitas'); insert into settlement(id, name) values(UUID_TO_BIN('23500c69-733f-4d1d-b6b3-9e1a57616cca'), 'Reacomodo Obras Publicas'); insert into settlement(id, name) values(UUID_TO_BIN('e1783d0c-1c36-4f87-9116-465ca70443ef'), 'Reacomodo Río Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('93f10bb5-0f08-4a44-9b28-263629216ce2'), 'Reacomodo San Fernando'); insert into settlement(id, name) values(UUID_TO_BIN('6c155156-a54e-4379-84e3-2023ce8cf169'), 'Real Virreyes'); insert into settlement(id, name) values(UUID_TO_BIN('a1409ab2-a4e4-4e3f-849a-3c1c39ff6d62'), 'Real de La Frontera'); insert into settlement(id, name) values(UUID_TO_BIN('4b1603ac-dbfc-4e2f-9613-76a822f23e28'), 'Real de La Gloria'); insert into settlement(id, name) values(UUID_TO_BIN('99198c5a-2a7f-444a-923c-dea4396120db'), 'Real de Loma Bonita'); insert into settlement(id, name) values(UUID_TO_BIN('18d59bbd-2b1b-41fe-b4d2-3a6206db209a'), 'Real de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('1c8dbb9a-35a5-40e1-9188-bb92fbdd5ffc'), 'Real de Rosarito II'); insert into settlement(id, name) values(UUID_TO_BIN('c56e83f8-255f-4e8c-b896-d80db834a858'), 'Real de San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('e62bdf67-390a-496c-98ff-636dfaa0070c'), 'Real de San Felipe'); insert into settlement(id, name) values(UUID_TO_BIN('4929ff22-1ebd-4874-ac19-b4719e62e08d'), 'Real de San Fernando'); insert into settlement(id, name) values(UUID_TO_BIN('89db7897-a4c6-43c6-9062-3f6c03f6f91c'), 'Real de San Francisco'); insert into settlement(id, name) values(UUID_TO_BIN('9d4f17db-a7b2-4a69-acb2-25abcd95285a'), 'Real del Castillo'); insert into settlement(id, name) values(UUID_TO_BIN('55c2cda9-ea57-4e76-9d36-55bde273094d'), 'Real del Castillo Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('6f9f7970-ad3e-4a21-ba5d-bf076dcb67af'), 'Real del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('df604abb-3018-4b06-8816-d4e81232476c'), 'Real del Monte'); insert into settlement(id, name) values(UUID_TO_BIN('98c2a14b-51e8-49e7-8d4f-175b099a0d32'), 'Real del Río'); insert into settlement(id, name) values(UUID_TO_BIN('6c8f5f04-9f7d-4959-a3fc-33b7b8fe3323'), 'Real del Río Residencial 2da Sección'); insert into settlement(id, name) values(UUID_TO_BIN('81020573-8540-4590-a99c-7e2aca2ae9d2'), 'Real del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('ab4af7ee-5a42-4fd5-bcd6-7c92ac586133'), 'Recinto Portuario'); insert into settlement(id, name) values(UUID_TO_BIN('0e88d767-818e-4f45-a204-13e753b329de'), 'Reforma'); insert into settlement(id, name) values(UUID_TO_BIN('efe34c50-9e19-469d-a0e9-512a3a2dbbf4'), 'Relotifica (lomita)'); insert into settlement(id, name) values(UUID_TO_BIN('9e0f891b-ba5e-4203-b239-78288b46ca5d'), 'Renes'); insert into settlement(id, name) values(UUID_TO_BIN('88b85aa1-404d-4725-9d63-a5321fc31319'), 'República Mexicana'); insert into settlement(id, name) values(UUID_TO_BIN('3058468a-460a-4a08-9d03-17bbfa154158'), 'Reserva Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('d2252949-64d6-4f7f-af79-e4416e59c4e0'), 'Reserva San Fernando'); insert into settlement(id, name) values(UUID_TO_BIN('7fe8f87b-cb89-4a83-adb2-ba36fb1002d2'), 'Residencial Agua Caliente'); insert into settlement(id, name) values(UUID_TO_BIN('50a6b741-5ecd-4a7c-a039-75cd01b63113'), 'Residencial Alameda'); insert into settlement(id, name) values(UUID_TO_BIN('cad60eed-34d1-49b7-ab8d-29259dffc9ea'), 'Residencial Argentina'); insert into settlement(id, name) values(UUID_TO_BIN('e87b0a7e-ee78-4f7c-9176-a6c49d70203b'), 'Residencial Barcelona'); insert into settlement(id, name) values(UUID_TO_BIN('52b599d7-e488-412c-a252-80db0dbb9681'), 'Residencial Barcelona II'); insert into settlement(id, name) values(UUID_TO_BIN('632273f5-6501-49aa-82fe-95cffccb474e'), 'Residencial Barcelona III'); insert into settlement(id, name) values(UUID_TO_BIN('ccc52728-5edb-429f-af9a-c7e0ab414b16'), 'Residencial Casa Maya'); insert into settlement(id, name) values(UUID_TO_BIN('c7673950-7667-480a-9903-fe82f104e51e'), 'Residencial Casa Maya II'); insert into settlement(id, name) values(UUID_TO_BIN('ab9bddc0-3a86-4dfb-a5f3-f059d1dd89b1'), 'Residencial Cerrada del Parque'); insert into settlement(id, name) values(UUID_TO_BIN('d151d775-633b-4a0f-9819-386b649f22a0'), 'Residencial Coronado'); insert into settlement(id, name) values(UUID_TO_BIN('2a25d637-156d-43cc-8c6d-18df6a407a60'), 'Residencial Coronado Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('411405b7-37d9-47dd-bd93-3d51a50437db'), 'Residencial El Fuerte'); insert into settlement(id, name) values(UUID_TO_BIN('fcbc342b-501b-4011-8aff-3d5d7733bf61'), 'Residencial Frontera'); insert into settlement(id, name) values(UUID_TO_BIN('1bf42075-b9a0-4b29-8469-bcab4fc0d199'), 'Residencial Hípico'); insert into settlement(id, name) values(UUID_TO_BIN('49884b93-50aa-4148-aafa-da3c7558c54f'), 'Residencial Ibiza'); insert into settlement(id, name) values(UUID_TO_BIN('e137dbe6-569c-4ebd-84f7-b7b10b2e70bb'), 'Residencial Isla Cedros'); insert into settlement(id, name) values(UUID_TO_BIN('fcce02fc-e700-4c0e-86f0-022fffd4ddde'), 'Residencial La Esmeralda'); insert into settlement(id, name) values(UUID_TO_BIN('b9efd92b-6e29-4b16-b0c3-376448d3e712'), 'Residencial La Esperanza'); insert into settlement(id, name) values(UUID_TO_BIN('bcf7fb06-6359-44c4-a294-25ebe558db2a'), 'Residencial Las Cascadas'); insert into settlement(id, name) values(UUID_TO_BIN('d6bcc206-c3ba-4a31-8b0b-90a85442215e'), 'Residencial Lomas'); insert into settlement(id, name) values(UUID_TO_BIN('2b4dfa2e-b896-49d8-a580-2ec3724fb4d9'), 'Residencial Los Abedules'); insert into settlement(id, name) values(UUID_TO_BIN('2fae8fb7-d3db-4454-a85e-c1121bfa6b02'), 'Residencial Los Leones'); insert into settlement(id, name) values(UUID_TO_BIN('b9b9cf97-ca31-4f73-9ce6-146ca7da7666'), 'Residencial Los Álamos'); insert into settlement(id, name) values(UUID_TO_BIN('bc0572d2-994e-4de1-83e0-951dd3adf530'), 'Residencial Los Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('bf1e7393-3864-4718-801d-52ab644f7bee'), 'Residencial Madrid'); insert into settlement(id, name) values(UUID_TO_BIN('c74846b5-978a-4fea-99ac-cd0b3488f5f9'), 'Residencial Madrid 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('7abf8387-6743-43df-8da1-accff646ac22'), 'Residencial Marsella'); insert into settlement(id, name) values(UUID_TO_BIN('0e0f0f62-178d-487f-8795-787d4ed09cbe'), 'Residencial Misiones'); insert into settlement(id, name) values(UUID_TO_BIN('ca9f5922-7730-491f-a3bd-6a511e539428'), 'Residencial Natura'); insert into settlement(id, name) values(UUID_TO_BIN('3907bee6-afa6-450c-836a-d2ca68e302dd'), 'Residencial Puerta de Alcalá'); insert into settlement(id, name) values(UUID_TO_BIN('c52c0858-9bce-42b8-bd7c-41df308a8a7e'), 'Residencial Quinta del Centro'); insert into settlement(id, name) values(UUID_TO_BIN('7c33a04e-aac2-4c8b-8f84-dae6d55842e1'), 'Residencial Quinta del Rey 2a Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('aca26b72-7b21-4604-a3bb-8bdedd740e45'), 'Residencial Quinta del Rey 3era. Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('17dbdd0c-a769-4749-9cce-a5dce15131cb'), 'Residencial San Andrés'); insert into settlement(id, name) values(UUID_TO_BIN('3f7cd8de-7c03-40ec-a3c8-dfd2f804a3da'), 'Residencial San Francisco'); insert into settlement(id, name) values(UUID_TO_BIN('a815af46-eec6-4dfc-a33c-1bddfe6b33e0'), 'Residencial San Jorge'); insert into settlement(id, name) values(UUID_TO_BIN('6b7b8c1f-981a-4633-b1a5-6a013a4ee81b'), 'Residencial San Marino'); insert into settlement(id, name) values(UUID_TO_BIN('56a4c2b7-f0c1-41a1-a92a-7f27c119b96c'), 'Residencial San Sebastián'); insert into settlement(id, name) values(UUID_TO_BIN('d1e5a6f4-4be4-4c35-a178-2f444a9e846f'), 'Residencial Segovia'); insert into settlement(id, name) values(UUID_TO_BIN('2deabf5e-fba8-457a-b239-5f0f26362c07'), 'Residencial Sevilla 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('cc0b97ab-4890-4fb7-9b5d-d2e734d072c3'), 'Residencial Villaflores'); insert into settlement(id, name) values(UUID_TO_BIN('8a013eed-9c50-43d5-aa74-c7c9e3fffb50'), 'Residencial del Prado Dos'); insert into settlement(id, name) values(UUID_TO_BIN('ed9f3de1-acc9-47d8-b1c1-e4f309b33536'), 'Residencial del Río'); insert into settlement(id, name) values(UUID_TO_BIN('32d5a1b9-7625-4874-a9ca-854d35760628'), 'Residencial del Sol I'); insert into settlement(id, name) values(UUID_TO_BIN('54e62086-a28f-4369-9697-5860de0c8d83'), 'Residencial del Sol II'); insert into settlement(id, name) values(UUID_TO_BIN('9626200e-b857-413b-b650-dffdb079bc15'), 'Residencial el Lienzo'); insert into settlement(id, name) values(UUID_TO_BIN('88ee1f57-d6eb-4212-8937-815fd2d6612c'), 'Residencias'); insert into settlement(id, name) values(UUID_TO_BIN('d88e4b2f-7d33-4e65-94fb-7836c4028183'), 'Residencias Imperiales'); insert into settlement(id, name) values(UUID_TO_BIN('7c6b4b34-d95e-4993-a18e-c2fc3cfe54ff'), 'Revolución'); insert into settlement(id, name) values(UUID_TO_BIN('553c69c3-7e67-4ba1-967d-e1d0e8253216'), 'Reynoso'); insert into settlement(id, name) values(UUID_TO_BIN('9c6a0a6f-cd9a-490d-af2e-3918f613dbdb'), 'Reynoso Parcela 162'); insert into settlement(id, name) values(UUID_TO_BIN('b1422cf5-d54b-49a4-a627-5fdb2dc2479e'), 'Ribera del Bosque'); insert into settlement(id, name) values(UUID_TO_BIN('bb4dde56-d896-4cc6-85db-cbfd109905e9'), 'Riberas del Alamar'); insert into settlement(id, name) values(UUID_TO_BIN('d5a71898-6214-4198-8fb2-5f0a27fa19c4'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('7d5c9a21-9cd3-4d7a-9254-b1741d2b2405'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('3f8d97fd-54ec-460b-894e-7701c4f11bac'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('af53bc18-d2d8-49eb-a3a3-5b7c0dbe8a6c'), 'Rinconada 1'); insert into settlement(id, name) values(UUID_TO_BIN('67f72674-0b52-43fc-b06f-e046af6a791f'), 'Rinconada 2'); insert into settlement(id, name) values(UUID_TO_BIN('74aaf913-56d0-4fef-ab02-828b3d54c979'), 'Rinconada Escudero'); insert into settlement(id, name) values(UUID_TO_BIN('2032169c-4b78-4f65-8edc-2712cc7f1a4c'), 'Rinconada de Otay'); insert into settlement(id, name) values(UUID_TO_BIN('e4a1f0b9-f6d2-4ce0-89cf-9ca775dfddc9'), 'Rinconada de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('edd13d23-58fb-4a2f-be28-998acb953597'), 'Rinconada del Pedregal'); insert into settlement(id, name) values(UUID_TO_BIN('eacd7d1a-bf69-4cf6-9e7b-847d97870d38'), 'Rincones de Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('a17f862a-8dfe-4b6f-80ae-16883865d58e'), 'Rincones de Puebla Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('1bd4f5e6-a31a-428c-bc84-b2be2af323f9'), 'Rincón Colonial Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('79eb28a5-25f6-46c4-8102-1c043f66dd36'), 'Rincón Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('1934776d-cbd1-4893-b8a7-cc91911a3c7c'), 'Rincón Punta Banda (Rincón de Ballenas)'); insert into settlement(id, name) values(UUID_TO_BIN('628c12d6-2eb2-4bc7-b64c-9e76bd22c312'), 'Rincón Tecate'); insert into settlement(id, name) values(UUID_TO_BIN('06d9745d-24bd-445e-9b5c-1ae084095a20'), 'Rincón Tecate 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('52e128c9-36c7-4931-98b7-5e04cb890bf9'), 'Rincón Tecate 3a Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('7465657d-170c-4ae5-a5f4-c9b759439254'), 'Rincón Toscano'); insert into settlement(id, name) values(UUID_TO_BIN('40cd547c-a6d3-4fc6-9dba-7bb5e07052ff'), 'Rincón de Otay'); insert into settlement(id, name) values(UUID_TO_BIN('031025f5-0ed3-4245-92de-388f3f22a7b3'), 'Rincón del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('5387b603-7b07-4f9e-aa2d-37a56416e5a6'), 'Rivera'); insert into settlement(id, name) values(UUID_TO_BIN('a4d17c9d-d408-4f70-9a14-326400ca5bbf'), 'Rivera Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('bc87693b-a930-4593-8358-43e807b3ed42'), 'Rivera Maya Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('a2f1bd97-1e65-49aa-bc38-1275b5982b2a'), 'Rivera de la Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('0e721540-8080-493e-8bc1-a328001a12b2'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('e654ddbd-9ac8-4b94-9777-3142bc80ef13'), 'Roberto de La Madrid'); insert into settlement(id, name) values(UUID_TO_BIN('3f6b339e-7c65-414d-ae98-f5e83ef916aa'), 'Rodeo'); insert into settlement(id, name) values(UUID_TO_BIN('faf659ab-8d10-47ba-9ae3-0dc89558c6ff'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('dd299088-e624-4cad-9e2c-923609fc9a8e'), 'Roma'); insert into settlement(id, name) values(UUID_TO_BIN('ae06eb05-24a4-45ca-bb29-bf72a106f662'), 'Romero'); insert into settlement(id, name) values(UUID_TO_BIN('c189cafb-f9ad-4aac-872e-b734b5f4979d'), 'Rosa de Castilla'); insert into settlement(id, name) values(UUID_TO_BIN('644c2eb0-3264-4e32-a78a-626908e63535'), 'Rosamar'); insert into settlement(id, name) values(UUID_TO_BIN('22de3552-4ea9-4e8e-9bf8-a148a9ccfeb9'), 'Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('851cf00d-d8a2-4c83-8976-bcfa0aef6e98'), 'Rosarito Centro'); insert into settlement(id, name) values(UUID_TO_BIN('77a2d7ba-5f34-4d1f-9204-1bfce8d1104b'), 'Rosarito Este'); insert into settlement(id, name) values(UUID_TO_BIN('e22204f2-aa03-4f0a-b07e-a79859d811d5'), 'Rubio'); insert into settlement(id, name) values(UUID_TO_BIN('5acd693e-4ff7-400f-b076-5b3e09c51de5'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('0008725c-731f-4c68-b265-4e8e201ad415'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('ebd3c656-de61-4659-b424-94c2f31de624'), 'Ruiz Cortines'); insert into settlement(id, name) values(UUID_TO_BIN('8da1e9f1-3ad3-473e-a4aa-d795bcff8b1b'), 'Río Hardy'); insert into settlement(id, name) values(UUID_TO_BIN('f8e6590d-05da-4847-81c4-d36107636df7'), 'Río Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('319474a1-2f1a-4873-967c-997404f33ce7'), 'Río Tijuana 2a. Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('2f4d012a-dc92-4be2-bb72-37af734ceb95'), 'Río Tijuana 3a Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('a9b2234f-ff40-4aaf-aad8-37ecb6b825a1'), 'Río Vista'); insert into settlement(id, name) values(UUID_TO_BIN('d2cfbf37-85b9-40ff-a151-e56ffc6a2989'), 'SEPANAL'); insert into settlement(id, name) values(UUID_TO_BIN('09732430-bace-483f-9eb0-51f54c8224f3'), 'Salamandra'); insert into settlement(id, name) values(UUID_TO_BIN('658e6302-2860-4af2-97bf-3a3943ab8ec8'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('74268ffb-ce97-43da-86ca-e1d90751a4f1'), 'Saltillo'); insert into settlement(id, name) values(UUID_TO_BIN('94734984-b55a-4731-9e5a-c8e487027796'), 'Salvador Ros<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('522a88d1-1cf6-4f10-a768-c94e4e9f47e7'), 'Salvatierra'); insert into settlement(id, name) values(UUID_TO_BIN('b3e77690-033e-4f90-83c0-fe899caba7ec'), 'San Agustin'); insert into settlement(id, name) values(UUID_TO_BIN('1c03b912-5f6c-416b-bbc1-f3d378a6a623'), 'San Agustin de las Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('22ba53a1-685c-449d-88a7-be22186aebe3'), 'San Andrés'); insert into settlement(id, name) values(UUID_TO_BIN('736fae9f-937c-499f-8108-96e0c711b9cf'), 'San Angel'); insert into settlement(id, name) values(UUID_TO_BIN('71407232-3332-40be-81e3-9481c9ba652d'), 'San Antonio'); insert into settlement(id, name) values(UUID_TO_BIN('72793c82-9949-4bde-ba93-31404223f3cf'), 'San Antonio Club Hípico y de Golf'); insert into settlement(id, name) values(UUID_TO_BIN('fa5e0674-4c40-47b3-a6fe-24cbf66d32d1'), 'San Antonio Necua'); insert into settlement(id, name) values(UUID_TO_BIN('c69a45fa-dc29-4330-8549-e40a44b0ba5d'), 'San Antonio Oeste'); insert into settlement(id, name) values(UUID_TO_BIN('bb12576b-9bc8-4a40-8401-7a92c875d79b'), 'San Antonio de Las Minas'); insert into settlement(id, name) values(UUID_TO_BIN('a7a5e532-7db6-4849-84a0-3ba87a3ba184'), 'San Antonio del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('61f6f35c-789b-4fd3-b96d-a4a11f4bbb0d'), 'San Bernardo (Terrazas de San Bernardo)'); insert into settlement(id, name) values(UUID_TO_BIN('4788d78a-9a7c-4142-8447-6529b9a566dd'), 'San Borja Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('8a8ba347-0641-49b5-b081-2cfaa88dd527'), 'San Carlos'); insert into settlement(id, name) values(UUID_TO_BIN('6fbc0073-f45d-4db1-9ca9-723f7d0f0aea'), 'San Clemente'); insert into settlement(id, name) values(UUID_TO_BIN('e2722547-8d74-4f28-977f-34e328a70834'), 'San Esteban'); insert into settlement(id, name) values(UUID_TO_BIN('f86cf29b-b6b6-4eda-834a-c0283f8916a4'), 'San Fernando'); insert into settlement(id, name) values(UUID_TO_BIN('52e91b04-72a1-4b29-a32f-82f20df3bb86'), 'San Fernando Regularización Corett'); insert into settlement(id, name) values(UUID_TO_BIN('c0e1b388-39df-4e77-a9f2-6850c25281e2'), 'San Francisco'); insert into settlement(id, name) values(UUID_TO_BIN('c1e07f2a-bf2b-4dfd-b52e-b10a21058111'), 'San Gabriel'); insert into settlement(id, name) values(UUID_TO_BIN('5da7aeca-3671-475d-8e0b-a1e84158616a'), 'San Isidro'); insert into settlement(id, name) values(UUID_TO_BIN('90f661f9-07db-4bb3-a40c-f809b2007f76'), 'San Jacinto'); insert into settlement(id, name) values(UUID_TO_BIN('51ce10ea-8a42-4828-9590-56ab0515bb76'), 'San Jerónimo'); insert into settlement(id, name) values(UUID_TO_BIN('d643688b-d2ea-459d-b677-613019f3e6a3'), 'San José'); insert into settlement(id, name) values(UUID_TO_BIN('d71b68a1-9b3a-495d-89fe-09067d203da3'), 'San José de las Palomas'); insert into settlement(id, name) values(UUID_TO_BIN('3030fe23-e59d-49cb-8f5a-107269071ecf'), 'San José del Alto'); insert into settlement(id, name) values(UUID_TO_BIN('d465ec4a-489e-43b0-83a9-a134b9d566d9'), 'San Luis'); insert into settlement(id, name) values(UUID_TO_BIN('2621efc0-1a11-4d5b-80ee-68ee710d1935'), 'San Luis Potosí'); insert into settlement(id, name) values(UUID_TO_BIN('46028a9b-e6f1-4b3c-8a03-f292172c1f08'), 'San Marcos'); insert into settlement(id, name) values(UUID_TO_BIN('598febeb-70e4-47b2-a5ac-442d3453fd8f'), 'San Marino'); insert into settlement(id, name) values(UUID_TO_BIN('94379fb1-d1ed-4986-8941-e661fd3083f1'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('3430ee4b-dedc-44d7-be36-09a1c5611d4e'), 'San Mateo'); insert into settlement(id, name) values(UUID_TO_BIN('f46a2384-b2aa-4b1b-b81c-64cebdebc3a2'), 'San Miguel'); insert into settlement(id, name) values(UUID_TO_BIN('8499b445-e8fc-4f0f-b01b-fdfda0339ecc'), 'San Miguel 2da Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('daafa630-2b91-4b99-a709-de8e554591e8'), 'San Pablo'); insert into settlement(id, name) values(UUID_TO_BIN('4c3f2a3a-756d-49b6-9988-ab72349aff6a'), 'San Pedro Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('c35b7859-f264-438e-a298-e736d7b762c5'), 'San Pedro Residencial Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('ee7eb448-ba60-4f5d-ab4a-e1151fd68cc3'), 'San Quintín'); insert into settlement(id, name) values(UUID_TO_BIN('f4ee257f-006b-4a81-a82f-e1adf4d04914'), 'San Rafael'); insert into settlement(id, name) values(UUID_TO_BIN('531aeec9-3774-4ddd-bd67-6b3250f4f0cf'), 'San Sebastián'); insert into settlement(id, name) values(UUID_TO_BIN('04e84a09-dfbe-4459-9d6e-b7f0955104d1'), 'San Telmo'); insert into settlement(id, name) values(UUID_TO_BIN('fff94a32-cde5-4c53-84a6-e27a58983405'), 'San Vicente'); insert into settlement(id, name) values(UUID_TO_BIN('ce29dc47-93da-4a55-81b4-40fd414def7f'), 'Sanchez Taboada'); insert into settlement(id, name) values(UUID_TO_BIN('edf91793-c3d4-4a0f-b3f9-f69b5ed58c88'), 'Sanchez Taboada II'); insert into settlement(id, name) values(UUID_TO_BIN('5ddcb130-7512-4244-8602-44b91bc2f2fc'), 'Sanchez Taboada III'); insert into settlement(id, name) values(UUID_TO_BIN('4a3661b8-70b5-42e9-90c6-0752c78667c7'), 'Sanchez Taboada IV'); insert into settlement(id, name) values(UUID_TO_BIN('e9c1db1f-a6c4-4798-874c-bf9dba532a0b'), 'Sanchez Taboada Produtsa'); insert into settlement(id, name) values(UUID_TO_BIN('9ad9de5e-0895-4bf4-a9c9-7a7aa1c35df8'), 'Sandoval'); insert into settlement(id, name) values(UUID_TO_BIN('76a950ad-c689-46ab-88d7-0b30ae5c7c35'), 'Santa Anita'); insert into settlement(id, name) values(UUID_TO_BIN('0c25df9c-6898-499f-ab3f-b801fa437a58'), 'Santa Anita del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('af32172e-94fc-4c93-a791-245dfd5a7223'), 'Santa Bárbara'); insert into settlement(id, name) values(UUID_TO_BIN('fe83e2ba-02b6-4398-895b-c36c5d5e7a9a'), 'Santa Candelaria'); insert into settlement(id, name) values(UUID_TO_BIN('09f08871-3808-45d9-9bb7-41e1229b8851'), 'Santa Catarina'); insert into settlement(id, name) values(UUID_TO_BIN('899a3b32-e669-46ec-b2ee-f4851c337310'), 'Santa Cecilia'); insert into settlement(id, name) values(UUID_TO_BIN('6b78b7b3-53c9-42ec-953d-523fd7b68078'), 'Santa Clara'); insert into settlement(id, name) values(UUID_TO_BIN('30fe362b-540f-4981-93db-618070090392'), 'Santa Cruz'); insert into settlement(id, name) values(UUID_TO_BIN('814c2d10-5342-4e38-821c-ee2fa8fda553'), 'Santa Elena'); insert into settlement(id, name) values(UUID_TO_BIN('5dbda449-f840-42e5-91a5-7994a42d36f1'), 'Santa Fe'); insert into settlement(id, name) values(UUID_TO_BIN('92a70667-177a-4fdf-97d7-b5ae5d424c7d'), 'Santa Fe de Braulio Maldonado'); insert into settlement(id, name) values(UUID_TO_BIN('c3ef9897-e6a3-4993-b32e-17d71c010628'), 'Santa Inés'); insert into settlement(id, name) values(UUID_TO_BIN('b3b647c9-6e90-4a52-807c-63a77243e03f'), 'Santa Isabel'); insert into settlement(id, name) values(UUID_TO_BIN('ec9eb7cc-9baf-4aec-baa3-4b4e0c583fab'), 'Santa Isabel del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('fbdc02a0-5219-4ce1-9392-8649c997f624'), 'Santa Lorena'); insert into settlement(id, name) values(UUID_TO_BIN('263ec342-2143-4b9b-ac1c-6c4b98311569'), 'Santa Lucia'); insert into settlement(id, name) values(UUID_TO_BIN('0063ef92-de41-4621-86ef-95379d44659c'), 'Santa Lucía'); insert into settlement(id, name) values(UUID_TO_BIN('f97a4f68-622b-4b5b-a057-8ae746504b9f'), 'Santa Maria'); insert into settlement(id, name) values(UUID_TO_BIN('9e76d980-46b5-4c29-b02a-70f27be7ee90'), 'Santa María'); insert into settlement(id, name) values(UUID_TO_BIN('0c6cc242-e018-4b3f-ba36-da015bc07b08'), 'Santa María (Los Pinos)'); insert into settlement(id, name) values(UUID_TO_BIN('336d8864-f2fd-4022-89dc-9aa7a317da80'), 'Santa Mónica'); insert into settlement(id, name) values(UUID_TO_BIN('6514c1e5-9364-4167-9a60-9efd6c7c380c'), 'Santa Paula'); insert into settlement(id, name) values(UUID_TO_BIN('fc9ba0ae-dd75-450c-99fb-27fe95b7dab6'), 'Santa Rosa'); insert into settlement(id, name) values(UUID_TO_BIN('d544651e-bd18-4aee-922e-c7a3503fabdf'), 'Santa Rosa (Ciudad)'); insert into settlement(id, name) values(UUID_TO_BIN('19bb99b5-238b-4338-b570-8c1fd2367ba8'), 'Santa Rosalía'); insert into settlement(id, name) values(UUID_TO_BIN('b079054c-686b-4bbc-8790-30e2948be527'), 'Santa Sofía'); insert into settlement(id, name) values(UUID_TO_BIN('cfa69a5c-3b63-4e30-81af-5654d8e27002'), 'Santa Teresa'); insert into settlement(id, name) values(UUID_TO_BIN('adad24bd-8532-4b5f-95c6-8b9b67cbcfff'), 'Santa Veronica'); insert into settlement(id, name) values(UUID_TO_BIN('b5cee2dd-226c-4484-902e-a2971db1fbb6'), 'Santa Verónica'); insert into settlement(id, name) values(UUID_TO_BIN('f8862f58-ec77-4189-b066-5650c845e333'), 'Santini'); insert into settlement(id, name) values(UUID_TO_BIN('e74a4d0b-a2fa-4bc1-86a5-b194ef44c006'), 'Santo Domingo'); insert into settlement(id, name) values(UUID_TO_BIN('1524e50d-07e7-4902-ab10-515531edf888'), 'Santo Domingo Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('d3bff895-1d06-4047-9291-bf475d87234c'), 'Santo Niño'); insert into settlement(id, name) values(UUID_TO_BIN('1d22a001-b9d8-4642-b50d-2a3d6b767991'), 'Santo Tomas'); insert into settlement(id, name) values(UUID_TO_BIN('218dfc8b-ec49-4595-8076-6c29b2625b0f'), 'Saturno (Abasolo)'); insert into settlement(id, name) values(UUID_TO_BIN('96e6aacf-2bbf-41b5-88bb-04aaf8370267'), 'Satélite'); insert into settlement(id, name) values(UUID_TO_BIN('d2934f24-9a3b-473a-adca-df91741734bc'), 'Sección Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('2aba96c7-8913-4c9a-91dc-1c88a61fd711'), 'Sección Primera'); insert into settlement(id, name) values(UUID_TO_BIN('977c5776-f368-42a2-b2c9-ecc25f31b85c'), 'Segunda Parte del Soler'); insert into settlement(id, name) values(UUID_TO_BIN('5ef5271c-e874-4926-9446-d08d7e19ddd4'), 'Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('403aa699-b948-40da-a952-38d7a40646da'), 'Sesvania'); insert into settlement(id, name) values(UUID_TO_BIN('68ee8ee1-53aa-483d-aa4f-8eae26f3f04a'), 'Sevilla'); insert into settlement(id, name) values(UUID_TO_BIN('06fd7ba0-865a-4f02-9314-aa0d250330c4'), 'Sevilla Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('9206ea26-149c-4064-8533-db336961c394'), 'Sexta Sección'); insert into settlement(id, name) values(UUID_TO_BIN('b25bd3fb-1273-47ec-b1cd-410f7c2059c3'), 'Sexto Ayuntamiento'); insert into settlement(id, name) values(UUID_TO_BIN('4ed92bad-ee19-4ca2-9f32-bde0d907a697'), 'Siena Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('d3781aac-eb52-448a-91af-09d5b0e15153'), 'Silva'); insert into settlement(id, name) values(UUID_TO_BIN('7c97691c-5b69-4f35-9ace-90475b05216c'), 'Simental'); insert into settlement(id, name) values(UUID_TO_BIN('ca00ac16-7709-4671-8397-5ee232383f3e'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('60b28757-cb81-471e-8276-2d05c64b8c03'), 'Sinaloa'); insert into settlement(id, name) values(UUID_TO_BIN('2d5d425a-b6c7-48be-8814-7b099d1fd436'), 'Sindicalista'); insert into settlement(id, name) values(UUID_TO_BIN('3c8de4d7-758a-4c31-aec9-dfef09d84e0d'), 'Sirak M Baloyan'); insert into settlement(id, name) values(UUID_TO_BIN('22042f1b-ce9b-4bb4-855e-346ecf34b9fc'), 'Sol de Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('d3d33696-9caf-4c11-b5ff-c664235fda3b'), 'Sol de Reyes'); insert into settlement(id, name) values(UUID_TO_BIN('12b286ca-0e7a-4b32-9f02-0e7f252a4e69'), 'Sol del Amanecer'); insert into settlement(id, name) values(UUID_TO_BIN('5d384ce6-bf6b-4de7-853f-8d635fa2c955'), 'Soler'); insert into settlement(id, name) values(UUID_TO_BIN('380be764-f30e-4fb5-b2dd-24832459de4f'), 'Solidaridad'); insert into settlement(id, name) values(UUID_TO_BIN('6ed85ab6-6328-4cea-8374-a868b41db82c'), 'Solidaridad INFONAVIT'); insert into settlement(id, name) values(UUID_TO_BIN('6d2f2cbe-dae5-4650-9579-4151e0f298f5'), 'Solidaridad INFONAVIT II'); insert into settlement(id, name) values(UUID_TO_BIN('a2cb5dbe-7fd5-4494-bf5f-37a5c1064c1d'), 'Solidaridad Mexicali'); insert into settlement(id, name) values(UUID_TO_BIN('0db7f4a4-9fc5-4840-8df4-2eeb865ea86c'), 'Solidaridad Social'); insert into settlement(id, name) values(UUID_TO_BIN('a1c9c777-6496-451a-853c-e6542169c697'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('c410986f-d0d5-4a3b-8d87-ef8b96a40cf0'), 'Sombrerete'); insert into settlement(id, name) values(UUID_TO_BIN('b29d11f1-e910-45f7-bc5a-44455fcf922d'), 'Sonoita'); insert into settlement(id, name) values(UUID_TO_BIN('48113ef6-0666-4e14-a849-4ec1c680aa73'), 'Sonora'); insert into settlement(id, name) values(UUID_TO_BIN('972e44dd-67bd-486c-b0d8-0c64c3d426f4'), 'Sterling (Francisco Villa)'); insert into settlement(id, name) values(UUID_TO_BIN('b9b07abf-5c12-44a8-b600-5e3a5975136d'), 'Stokers'); insert into settlement(id, name) values(UUID_TO_BIN('1afa39d0-f91d-4c62-b60d-14eb82713d34'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('2922f80a-e3dc-4e10-9507-a19b7c565adb'), 'TECNOMEX'); insert into settlement(id, name) values(UUID_TO_BIN('d2abd331-55e7-49a8-a8b9-93b1f7075740'), 'Tabasco'); insert into settlement(id, name) values(UUID_TO_BIN('09807ab2-82ad-4804-86f0-e8a0d8cc4b9e'), 'Tamaulipas'); insert into settlement(id, name) values(UUID_TO_BIN('e5360dce-a845-42db-9b13-2a6c15bdb13a'), 'Tavizan Silva'); insert into settlement(id, name) values(UUID_TO_BIN('dfa508cf-5cfc-441d-94d6-df9b0dd1240a'), 'Tecate'); insert into settlement(id, name) values(UUID_TO_BIN('0f457a80-6893-4c47-9397-528690add6b4'), 'Tecate Centro'); insert into settlement(id, name) values(UUID_TO_BIN('c1948fd5-e5d8-4de1-80ce-722c380fd9fb'), 'Tecnológico'); insert into settlement(id, name) values(UUID_TO_BIN('7bc29b38-0a4a-4e66-9807-a142ae1a4099'), 'Tecolote Bataques'); insert into settlement(id, name) values(UUID_TO_BIN('d81a0214-be35-4ae4-8daa-0131026c786e'), 'Tehuantepec (Santa Rosa)'); insert into settlement(id, name) values(UUID_TO_BIN('42a09aba-7353-4ff0-a572-68a3fdf0edcb'), 'Tejamen'); insert into settlement(id, name) values(UUID_TO_BIN('26d2d5e5-4c3d-43be-afb5-80a4d95f557e'), 'Televisora'); insert into settlement(id, name) values(UUID_TO_BIN('a070384d-519d-42ad-a184-d0eb1b549557'), 'Tepeyac'); insert into settlement(id, name) values(UUID_TO_BIN('ef7df39d-0e04-4279-9d0f-080358a1c3b0'), 'Tepic'); insert into settlement(id, name) values(UUID_TO_BIN('bbcedfc8-fc2c-4cda-b778-e84691b98440'), 'Tercer Ayuntamiento'); insert into settlement(id, name) values(UUID_TO_BIN('5628a830-5416-41ee-88cb-715c397645ac'), 'Termoeléctrica'); insert into settlement(id, name) values(UUID_TO_BIN('746f5eb5-c3d6-41bc-b3eb-58bc01b01c91'), 'Terra Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('b41242f3-a11a-4e60-b639-ade28883fa3d'), 'Terrazas La Morita'); insert into settlement(id, name) values(UUID_TO_BIN('d1abbf5b-02fa-430c-8fef-e65332fdd698'), 'Terrazas de La Presa'); insert into settlement(id, name) values(UUID_TO_BIN('70d1c59d-b3c3-4673-9e7d-587065db096c'), 'Terrazas de San Angel'); insert into settlement(id, name) values(UUID_TO_BIN('5afc62da-357c-4c8e-a058-6e69862cac49'), 'Terrazas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('f57d9cd5-58a0-410a-b719-189839f23665'), 'Terrazas del Pacífico'); insert into settlement(id, name) values(UUID_TO_BIN('eb6b69e0-4e27-4fe8-af52-0f385d642fe9'), 'Terrazas del Río'); insert into settlement(id, name) values(UUID_TO_BIN('a2d9eb40-43fa-4af7-a1aa-f41c5400786d'), 'Terrazas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('95455c69-a2c3-49b5-a900-0c4b5d3a9b45'), 'Terrazas del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('0b676eb9-1679-4396-8297-02db332d8f67'), 'Terrazas del Valle 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('9fcb6291-1d1b-4c81-aae7-90a51d3ba664'), 'Terrazas el Gallo'); insert into settlement(id, name) values(UUID_TO_BIN('6d137e86-1a40-4176-b239-ed1c810a32c2'), 'Terrenos Indios'); insert into settlement(id, name) values(UUID_TO_BIN('290f99d8-b81b-4bed-942c-8d5e68eb562f'), 'Territorio Sur'); insert into settlement(id, name) values(UUID_TO_BIN('b565037b-fb7f-4fed-b768-2fdce6706968'), 'Tierra y Libertad'); insert into settlement(id, name) values(UUID_TO_BIN('cfcb737e-fa0b-4e38-9235-36d5cef24b90'), 'Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('b1cc6e76-57fa-4201-b72e-181b1d188d57'), 'Tijuana (Gral. Abelardo L. Rodríguez)'); insert into settlement(id, name) values(UUID_TO_BIN('c8a561ae-1dae-4816-a0b2-cc69469526f7'), 'Tlaxcala'); insert into settlement(id, name) values(UUID_TO_BIN('b798c11c-babc-49c4-92f9-57e1ea282615'), 'Todos los Santos'); insert into settlement(id, name) values(UUID_TO_BIN('88d3bb88-04a5-4a91-83f3-01ed487a4942'), 'Toluca'); insert into settlement(id, name) values(UUID_TO_BIN('f8c53d08-6538-457d-b415-d7c68d3d19c0'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('05a634a8-8efa-429b-aa2e-d2c595bb1aa7'), '<NAME>'); insert into settlement(id, name) values(UUID_TO_BIN('2e1fb71a-bc1e-44be-956c-2ef64c5ec8b0'), 'Tona'); insert into settlement(id, name) values(UUID_TO_BIN('b1d9dc4d-f442-4afb-ad8b-96960e099863'), 'Torremolinos'); insert into settlement(id, name) values(UUID_TO_BIN('09b99c7c-06bf-45b4-abf6-31d6dcb72b64'), 'Trece Ayuntamiento'); insert into settlement(id, name) values(UUID_TO_BIN('7026deb2-4637-4dec-acc6-2df62c5a1720'), 'Tula'); insert into settlement(id, name) values(UUID_TO_BIN('68574407-c1cc-4072-8bc4-817b1bce0815'), 'Ulbrich'); insert into settlement(id, name) values(UUID_TO_BIN('66db7842-4d4d-4be0-92c2-05aa81887487'), 'Unanua'); insert into settlement(id, name) values(UUID_TO_BIN('74f46047-b675-4f00-a153-00169ceebd75'), 'Unidad Industrial Paccar México'); insert into settlement(id, name) values(UUID_TO_BIN('4b9f0558-9552-49aa-9481-4c9505ed6d81'), 'Unidad Patria'); insert into settlement(id, name) values(UUID_TO_BIN('bda53387-17dd-4eab-946d-b769707e7fed'), 'Unidad Pioneros'); insert into settlement(id, name) values(UUID_TO_BIN('8f9fde9c-b120-4032-9926-f84b7a66e546'), 'Universidad Autónoma Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('441c41dd-d739-4358-84c4-07ece28e0a4d'), 'Universidad Autónoma de Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('f4a24171-f829-4a26-9472-ad694ba7216b'), 'Universidad Sur'); insert into settlement(id, name) values(UUID_TO_BIN('643c5fcd-8737-40de-a4a3-89070ef2d87a'), 'Universitario'); insert into settlement(id, name) values(UUID_TO_BIN('0c8eb1bb-4647-4d3f-831e-e10f72e61e06'), 'Unión'); insert into settlement(id, name) values(UUID_TO_BIN('3e9d818a-434a-40c0-898c-dd5b3de10341'), 'Unión de Residentes Lázaro Cárdenas'); insert into settlement(id, name) values(UUID_TO_BIN('e55a70db-9c6e-4d98-8cc2-698b2eb6cea4'), 'Urbi Quinta del Cedro'); insert into settlement(id, name) values(UUID_TO_BIN('ef9c84f0-a50d-48da-9475-4979225c7238'), 'Urbi Quinta del Cedro Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('4773da8a-99c9-41c7-9b3b-27d690c060ef'), 'Urbiquinta Marsella'); insert into settlement(id, name) values(UUID_TO_BIN('491dd82b-e605-48e4-9491-fd4b7918ff31'), 'Uruapan'); insert into settlement(id, name) values(UUID_TO_BIN('29363617-3eda-4eed-832f-cbe799bb7c95'), 'Urías'); insert into settlement(id, name) values(UUID_TO_BIN('41421bdf-a0d2-4691-9f11-202cf3c132fa'), 'VIllarreal'); insert into settlement(id, name) values(UUID_TO_BIN('3c81f7d7-5e60-4e89-9814-d64100b3b98f'), 'Vaim'); insert into settlement(id, name) values(UUID_TO_BIN('55ae935a-bc91-4efc-9d27-804e69a5cf06'), 'Valencia'); insert into settlement(id, name) values(UUID_TO_BIN('6b4c7028-1368-4557-8422-8173d487321c'), 'Vallarta'); insert into settlement(id, name) values(UUID_TO_BIN('4b960061-e5e1-4ed3-aecb-22bedd14e30e'), 'Valle Bonito'); insert into settlement(id, name) values(UUID_TO_BIN('7a8e64cd-e6ca-41d2-98c3-21a301d46ace'), 'Valle Delicias'); insert into settlement(id, name) values(UUID_TO_BIN('22bce98d-cf02-4dc5-897e-ce0ccc2edcc3'), 'Valle Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('00867037-7f9e-41c8-bf4f-928b0220bc3f'), 'Valle Dorado Sección Lagos'); insert into settlement(id, name) values(UUID_TO_BIN('42fa3e25-1803-488e-98b6-4a9bf7570277'), 'Valle Imperial'); insert into settlement(id, name) values(UUID_TO_BIN('19a6f1a0-3e8c-4df4-bd01-a9632d69b5ba'), 'Valle Nuevo'); insert into settlement(id, name) values(UUID_TO_BIN('96b6b098-912d-4bfb-a506-1cca6c05a20f'), 'Valle Redondo'); insert into settlement(id, name) values(UUID_TO_BIN('b6ed4e24-4d96-4519-bc3f-0da5726dc874'), 'Valle Sur'); insert into settlement(id, name) values(UUID_TO_BIN('05047511-6e90-487f-b3e3-eb2a6278234c'), 'Valle Tranquilo'); insert into settlement(id, name) values(UUID_TO_BIN('bdded793-51c4-4c3b-bf1f-a74beb8190ed'), 'Valle Verde'); insert into settlement(id, name) values(UUID_TO_BIN('6ddefb79-b72b-4191-9553-b8c894d806b5'), 'Valle Vista 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('9609641e-8d5d-4e69-b3b1-1667c3965664'), 'Valle Vista 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('28bb6f96-c69d-48fa-847f-b2b5cc13e535'), 'Valle de Chapultepec'); insert into settlement(id, name) values(UUID_TO_BIN('3fdfe6b6-40ad-4fdd-8160-49bd47037bc9'), 'Valle de Guadalupe'); insert into settlement(id, name) values(UUID_TO_BIN('9e017083-3e3a-42ef-a690-37a4cbec13f1'), 'Valle de La Plata'); insert into settlement(id, name) values(UUID_TO_BIN('ccd999bd-39cc-4544-9877-1ba948af88e0'), 'Valle de La Trinidad'); insert into settlement(id, name) values(UUID_TO_BIN('9cafc95c-52c1-42d6-81b9-2c4d19927463'), 'Valle de Puebla'); insert into settlement(id, name) values(UUID_TO_BIN('83c62817-de97-4ebc-b728-d0ed2cba2ffd'), 'Valle de San Telmo'); insert into settlement(id, name) values(UUID_TO_BIN('fcf3903b-7abc-4c6b-b0c4-1da3d1833887'), 'Valle de las Misiones'); insert into settlement(id, name) values(UUID_TO_BIN('ee1e53c3-1c1f-4958-8f29-e814c48a1c71'), 'Valle de las Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('ed1dabec-75b0-48ca-ad0e-6a2319995eec'), 'Valle de los Ángeles'); insert into settlement(id, name) values(UUID_TO_BIN('bff5ee44-573c-4103-acb7-93c12a915c90'), 'Valle de Álamo'); insert into settlement(id, name) values(UUID_TO_BIN('0c98f3e0-61ba-4614-9899-2792e2ddc269'), 'Valle del Alamar II'); insert into settlement(id, name) values(UUID_TO_BIN('beadcd9e-31a4-4b56-84c5-d08d17b69bda'), 'Valle del Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('420c2ebc-fd93-41b7-9a80-20b47a55e97e'), 'Valle del Diamante'); insert into settlement(id, name) values(UUID_TO_BIN('82d956ad-e706-4adf-acf3-09d3ec5adc92'), 'Valle del Pedregal'); insert into settlement(id, name) values(UUID_TO_BIN('4852fb71-cb3a-4aea-8cba-23f091e355fe'), 'Valle del Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('6ea320e4-e039-49d0-b64a-6d530fc1a540'), 'Valle del Rubí Sección Lomas'); insert into settlement(id, name) values(UUID_TO_BIN('323d489d-ec21-42e2-9aae-06def210ba3a'), 'Valle del Rubí Sección Terrazas'); insert into settlement(id, name) values(UUID_TO_BIN('db160421-2ae1-4273-8271-12ecb5ced37e'), 'Valle del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('2b640576-c5d6-4992-8981-b255a9cef21d'), 'Valle del Sur'); insert into settlement(id, name) values(UUID_TO_BIN('70d71494-1dbb-4944-a4e0-24de1351d138'), 'Valle del Sur 1'); insert into settlement(id, name) values(UUID_TO_BIN('9475c14b-54ed-4bbb-b5ff-fcc55b7cfbd2'), 'Valle del Sur 2'); insert into settlement(id, name) values(UUID_TO_BIN('ac372d07-7baf-47d3-8d85-dd9f8959b14a'), 'Valparaíso Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('6de0df88-b0ce-4e0f-ac2b-c18a308762b7'), 'Venustiano Carranza'); insert into settlement(id, name) values(UUID_TO_BIN('e21b1eaa-4756-487a-a1c4-a4e0152cb2f9'), 'Venustiano Carranza (Estación Coahuila Km. 57)'); insert into settlement(id, name) values(UUID_TO_BIN('bc8bb2b8-f322-4c19-97a8-3a2e4be34512'), 'Venustiano Carranza (Santa María)'); insert into settlement(id, name) values(UUID_TO_BIN('01e3c112-86c7-4bc2-ab73-37f31219699a'), 'Veracruz'); insert into settlement(id, name) values(UUID_TO_BIN('ae640cb0-6436-4ab5-99ee-f9d5cca67d30'), 'Veracruz Dos'); insert into settlement(id, name) values(UUID_TO_BIN('7eb34eee-7ac0-41f5-a47b-bd7782ef208e'), 'Veracruz Uno'); insert into settlement(id, name) values(UUID_TO_BIN('74ab2757-1a72-4a46-9704-d3e0fb50e3be'), 'Verdugo'); insert into settlement(id, name) values(UUID_TO_BIN('5d8543da-096c-4762-8c12-e918f02f01a8'), 'Veredas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('140e545e-61d5-4216-8690-eaf8e6f46f60'), 'Verona'); insert into settlement(id, name) values(UUID_TO_BIN('d1c6a252-0a7b-4109-b083-15dfd6b2d73d'), 'Verona Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('cb8b6161-abac-4b2d-a7f0-fd7a9a5047f9'), 'Versalles Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('8915bd4b-8144-4b6c-87c3-ed4b491fc71d'), 'Vicente Guerrero'); insert into settlement(id, name) values(UUID_TO_BIN('e4ae0f86-5808-40d6-a289-c0935e480fac'), 'Vicente Guerrero (Algodones)'); insert into settlement(id, name) values(UUID_TO_BIN('2cc4665a-a44c-4c8e-a088-9b2d05fbe9f1'), 'Victoria'); insert into settlement(id, name) values(UUID_TO_BIN('4e5f3170-e214-4f52-8a06-005398390c17'), 'Victoria Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('bf35ded3-a178-4d48-9b06-4a59f6456a0d'), 'Villa Bonita'); insert into settlement(id, name) values(UUID_TO_BIN('6f543fcc-da67-4d5e-ba96-591a8da64c85'), 'Villa Campestre'); insert into settlement(id, name) values(UUID_TO_BIN('4a56a65d-8867-4053-a02b-332b3d810f53'), 'Villa Colonial'); insert into settlement(id, name) values(UUID_TO_BIN('e040a76a-353b-45a1-b4bb-bdcf11e33813'), 'Villa Corona del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('9f99ebab-ad1e-4b16-800d-7e9b8c02dd7e'), 'Villa Cortez'); insert into settlement(id, name) values(UUID_TO_BIN('689f2aaa-ac3d-406f-b966-d94b39dbfa9d'), 'Villa Cruz'); insert into settlement(id, name) values(UUID_TO_BIN('5cc1b7b9-135a-4e25-8702-8b0c8e04efda'), 'Villa Esperanza 2000'); insert into settlement(id, name) values(UUID_TO_BIN('0f93fbe1-b85c-4be2-b44a-64cc3f10ec77'), 'Villa Flor'); insert into settlement(id, name) values(UUID_TO_BIN('067a5e3c-0db8-418d-bbe6-072c15fdf7a5'), 'Villa Floresta'); insert into settlement(id, name) values(UUID_TO_BIN('35593d61-6120-44b8-9302-87a72b3bf3b5'), 'Villa Florida'); insert into settlement(id, name) values(UUID_TO_BIN('09639d7b-cde2-4284-915d-b622e974be94'), 'Villa Fontana I'); insert into settlement(id, name) values(UUID_TO_BIN('e86e3f1b-2653-48fa-bdc4-d0e6e9053f81'), 'Villa Fontana II'); insert into settlement(id, name) values(UUID_TO_BIN('bb7af45e-dac7-450e-83c5-1aeeeed3bd09'), 'Villa Fontana III'); insert into settlement(id, name) values(UUID_TO_BIN('c83d9425-5388-4b16-9f14-1f0eac39b6ae'), 'Villa Fontana IV'); insert into settlement(id, name) values(UUID_TO_BIN('aa4a9f81-a296-4d3a-a00b-2e21202c83cf'), 'Villa Fontana IX'); insert into settlement(id, name) values(UUID_TO_BIN('e545c412-966a-44a0-9275-62bb7a091f2d'), 'Villa Fontana V'); insert into settlement(id, name) values(UUID_TO_BIN('30414d1b-ecaf-4f14-9402-6b159f089364'), 'Villa Fontana VI'); insert into settlement(id, name) values(UUID_TO_BIN('dc50f124-b6c9-4b4c-8bf1-d1827c48047a'), 'Villa Fontana VII'); insert into settlement(id, name) values(UUID_TO_BIN('beb9ac16-e4eb-4ad1-ad70-df10091d03ff'), 'Villa Fontana VIII'); insert into settlement(id, name) values(UUID_TO_BIN('78498134-e0ce-4782-8fa4-79b585eab39c'), 'Villa Fontana X'); insert into settlement(id, name) values(UUID_TO_BIN('1160b106-f2ff-4a48-993d-6fd68f86eeec'), 'Villa Fontana XI'); insert into settlement(id, name) values(UUID_TO_BIN('7a885ae5-483c-4efc-865d-2a5660892409'), 'Villa Fontana XII'); insert into settlement(id, name) values(UUID_TO_BIN('848cf8cc-df52-439f-a229-01f6f5524f93'), 'Villa Fontana XIII'); insert into settlement(id, name) values(UUID_TO_BIN('0ad70347-d0c9-4d77-9931-25a2ae3f551a'), 'Villa Fontana XIV'); insert into settlement(id, name) values(UUID_TO_BIN('2a9ccb82-bd0c-4169-946c-8e25fcddb070'), 'Villa Fontana XVI'); insert into settlement(id, name) values(UUID_TO_BIN('0d3104cb-2cab-4a01-b09f-72f8d357c50e'), 'Villa Fontana XVIII'); insert into settlement(id, name) values(UUID_TO_BIN('f8a0f0a0-3b3c-4574-8987-f3a0aa373500'), 'Villa Italiana'); insert into settlement(id, name) values(UUID_TO_BIN('b5116659-fc2a-4f12-8f7f-f91f405d57e5'), 'Villa Jesús María'); insert into settlement(id, name) values(UUID_TO_BIN('acf28a87-7fe2-43fc-a2d6-3961e8ea7346'), 'Villa Lomas'); insert into settlement(id, name) values(UUID_TO_BIN('447f67a5-4742-4dbc-a169-4e15730d5a3f'), 'Villa Lomas Altas'); insert into settlement(id, name) values(UUID_TO_BIN('3922354d-8f86-404b-a8a4-35242088e48f'), 'Villa Lomas Altas 2a Secc.'); insert into settlement(id, name) values(UUID_TO_BIN('bd7e1e4b-a7df-4cb0-8172-fbad412672b4'), 'Villa Lomas Altas 3era. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('734f1dec-0259-4002-9fd6-2cb48e1ac037'), 'Villa Mar'); insert into settlement(id, name) values(UUID_TO_BIN('887488e4-f540-451b-84a7-6019af484a2d'), 'Villa Margarita Residencial'); insert into settlement(id, name) values(UUID_TO_BIN('df803e67-d330-4e60-ba30-97bafd0e19a2'), 'Villa Mediterránea Cuarta Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('47faa817-3918-4749-8a19-e53615840b14'), 'Villa Mediterránea Primera Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('d276b576-5352-46c3-9aff-2b20fa7cbb3d'), 'Villa Mediterránea Segunda Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('7e071eec-270e-46d6-8f69-c1070dde7a66'), 'Villa Mediterránea Tercera Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('dbd7cbd4-d7f0-42e6-81ae-fe022fedf983'), 'Villa Morelos'); insert into settlement(id, name) values(UUID_TO_BIN('b319e263-ca1d-4734-91d0-f7b94c1a30df'), 'Villa Residencial Santa Fe 1a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('b84eb0a2-2a61-47cc-8bca-ff07686ed63c'), 'Villa Residencial Santa Fe 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('65cdf4a1-bb5f-421d-99cc-f4697e7620d0'), 'Villa Residencial Santa Fe 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('cfc81e59-ca3d-4a89-a9f5-c8adfa511c7b'), 'Villa Residencial Santa Fe 5a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('70e52bea-26a4-4faa-bc00-4c3bae4f1f52'), 'Villa Residencial Venecia'); insert into settlement(id, name) values(UUID_TO_BIN('9093e903-4d40-4289-ae67-52c6104d9cc1'), 'Villa Residencial Venecia 2da Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('70df97f3-29f1-4392-8f1d-c1aac4c00d47'), 'Villa Residencial del Bosque'); insert into settlement(id, name) values(UUID_TO_BIN('6e976c0d-db1f-41ca-84dc-30415ecb3e52'), 'Villa Residencial del Prado'); insert into settlement(id, name) values(UUID_TO_BIN('59aeb294-5ca4-4626-a2d6-def9127ed655'), 'Villa Residencial del Prado Segunda Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('bd5c787b-ca31-4d0d-965e-8e0c5fd30863'), 'Villa Residencial del Rey'); insert into settlement(id, name) values(UUID_TO_BIN('32bc4519-d07c-4962-90a8-25520ab6453d'), 'Villa Toledo'); insert into settlement(id, name) values(UUID_TO_BIN('01d4d674-f748-4582-abf5-5996fc4cedfb'), 'Villa Turística'); insert into settlement(id, name) values(UUID_TO_BIN('c2a1a47c-3cc8-4664-abf8-a8c0a2e6b67b'), 'Villa Urrutia'); insert into settlement(id, name) values(UUID_TO_BIN('5e35561c-0246-4da2-a3b0-2d34d40929bd'), 'Villa Verde'); insert into settlement(id, name) values(UUID_TO_BIN('e4f83cca-496c-4d93-abf8-582b476128f8'), 'Villa de Alarcón'); insert into settlement(id, name) values(UUID_TO_BIN('cb6c313f-0722-4cc8-aa7c-ea9e6471377a'), 'Villa de Alarcón Segunda Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('ab4f5e50-9946-4edf-9fbb-726ecc23cf9f'), 'Villa de Alcázar'); insert into settlement(id, name) values(UUID_TO_BIN('a07bd141-446f-4986-849e-91fa65bf5fe2'), 'Villa de Cortés'); insert into settlement(id, name) values(UUID_TO_BIN('55afe9ff-6436-4e3e-af1e-0351eccbe760'), 'Villa de Juárez (San Antonio de las Minas)'); insert into settlement(id, name) values(UUID_TO_BIN('c3c4ee71-95d2-4e13-adff-d90c616a23e8'), 'Villa de las Palmas'); insert into settlement(id, name) values(UUID_TO_BIN('0dde3b9b-dbda-4524-922a-dd6fc1eb7995'), 'Villa del Campo'); insert into settlement(id, name) values(UUID_TO_BIN('b3188d3f-7cc9-4a15-a7b0-70908af55843'), 'Villa del Cedro'); insert into settlement(id, name) values(UUID_TO_BIN('a5706597-fdb2-4744-b823-8701e2a803f8'), 'Villa del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('07573527-eaa3-40e7-ab5b-eca675bab1c2'), 'Villa del Prado'); insert into settlement(id, name) values(UUID_TO_BIN('b964326e-d85b-4548-acda-16de8b5eb100'), 'Villa del Prado Segunda Sección'); insert into settlement(id, name) values(UUID_TO_BIN('7b5721be-597f-4088-b929-0ab54b2516fe'), 'Villa del Real'); insert into settlement(id, name) values(UUID_TO_BIN('3c8b262b-1d13-47cf-85d8-9ed5fc22e21d'), 'Villa del Real I'); insert into settlement(id, name) values(UUID_TO_BIN('10c79baa-bcfd-44c3-abca-8f298d1c1b9a'), 'Villa del Real II'); insert into settlement(id, name) values(UUID_TO_BIN('aac5eafc-e233-42c3-a503-3745b5994563'), 'Villa del Real III'); insert into settlement(id, name) values(UUID_TO_BIN('869957bd-efea-4c2a-be9f-36392cccf09c'), 'Villa del Real IV'); insert into settlement(id, name) values(UUID_TO_BIN('4705e22d-465a-4788-b23e-ee5cd842125a'), 'Villa del Real V'); insert into settlement(id, name) values(UUID_TO_BIN('011479d0-0d56-489c-b77e-eee566a817c7'), 'Villa del Real VI'); insert into settlement(id, name) values(UUID_TO_BIN('9b816123-3851-45fc-8840-0efe17ee0c8a'), 'Villa del Real VII'); insert into settlement(id, name) values(UUID_TO_BIN('bb52ace1-631c-45fb-ada6-319eb2f99d83'), 'Villa del Real VIII'); insert into settlement(id, name) values(UUID_TO_BIN('d8a7f5d7-9b47-4509-b33f-30a3d4c04657'), 'Villa del Real X'); insert into settlement(id, name) values(UUID_TO_BIN('6e6823b1-4303-46e4-b2f7-210981140850'), 'Villa del Real XI'); insert into settlement(id, name) values(UUID_TO_BIN('ff52eb0d-3aef-46f3-b1bd-e811078ddd96'), 'Villa del Rey Cuarta Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('c76e7a8c-dc64-4932-afdc-d6073cd0b5f8'), 'Villa del Rey Primera Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('0e25be86-19f8-4d4c-a42b-8f0c462cfa3e'), 'Villa del Rey Quinta Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('bd81dad6-4b90-4eda-af4c-d842bf4d99e2'), 'Villa del Rey Segunda Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('932674a4-c45d-4048-948f-4fb7ab8b0e3f'), 'Villa del Rey Tercera Etapa'); insert into settlement(id, name) values(UUID_TO_BIN('c517f132-8a1f-423f-914c-e99a1dd289e0'), 'Villa del Roble'); insert into settlement(id, name) values(UUID_TO_BIN('e08b3954-3a79-4238-b4f5-c7b1d7b90c44'), 'Villa del Sol I'); insert into settlement(id, name) values(UUID_TO_BIN('f0223fe6-5075-49a7-af17-47cedb8e06cc'), 'Villa del Sol II'); insert into settlement(id, name) values(UUID_TO_BIN('afeb0935-93d3-4201-b0e7-88032c175317'), 'Villa del Sol III'); insert into settlement(id, name) values(UUID_TO_BIN('67909c4c-7fb5-4398-9604-5a385df28895'), 'Villa del Sol INFONAVIT'); insert into settlement(id, name) values(UUID_TO_BIN('0daffe9c-bab6-410f-90a7-559ec6cf9550'), 'Villa del Sol IV'); insert into settlement(id, name) values(UUID_TO_BIN('2c68cfb8-50a6-4d1c-9109-b9f286133178'), 'Villa del Sol V'); insert into settlement(id, name) values(UUID_TO_BIN('f7d22a87-9c5e-46e2-817a-bf207dd0ed76'), 'Villa del Álamo'); insert into settlement(id, name) values(UUID_TO_BIN('833291f0-db69-4735-99de-2e26101ead10'), 'Villa las Lomas'); insert into settlement(id, name) values(UUID_TO_BIN('4a971b63-0a6b-45c4-bf98-c1762adada54'), 'Villafontana'); insert into settlement(id, name) values(UUID_TO_BIN('008c04c7-41ac-4bac-bf5c-43e4cedaef9d'), 'Villahermosa'); insert into settlement(id, name) values(UUID_TO_BIN('c549ec05-5588-4040-b863-3402a8bd10f8'), 'Villanova'); insert into settlement(id, name) values(UUID_TO_BIN('e28ea7d2-8db0-47dd-a3b4-7c0edd7d3474'), 'Villas Cachanillas'); insert into settlement(id, name) values(UUID_TO_BIN('12cb3700-e943-4ae3-86a9-4fecd3032106'), 'Villas California'); insert into settlement(id, name) values(UUID_TO_BIN('805dc323-efcc-4ccf-8554-4bd91cb25ffd'), 'Villas Coahuila'); insert into settlement(id, name) values(UUID_TO_BIN('b3856751-6033-49d8-b333-5caedb069ffa'), 'Villas Cíbola del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('f6ed8f91-3223-4d1b-b5eb-1abe31e29fe4'), 'Villas Galicia'); insert into settlement(id, name) values(UUID_TO_BIN('ce6bb056-c560-49b0-aad1-292dc6d1aadc'), 'Villas Otay'); insert into settlement(id, name) values(UUID_TO_BIN('0c55b339-fb87-4ce0-b1ff-040022d1b1bd'), 'Villas Residencial del Real'); insert into settlement(id, name) values(UUID_TO_BIN('b9008dd6-3839-4035-9101-036829ce60b0'), 'Villas Residencial del Real IV 2da. Sección'); insert into settlement(id, name) values(UUID_TO_BIN('2d4be24f-6557-4291-96ff-4f74187447e4'), 'Villas San Francisco'); insert into settlement(id, name) values(UUID_TO_BIN('3f5e1e61-4c7f-483b-87ea-90a7890307e4'), 'Villas San Ángel'); insert into settlement(id, name) values(UUID_TO_BIN('fcf8d9df-4586-44e1-b926-8a1848d6c40c'), 'Villas Siboney'); insert into settlement(id, name) values(UUID_TO_BIN('ed37c3e1-de74-48bb-bf17-95a6a5393382'), 'Villas de Baja California'); insert into settlement(id, name) values(UUID_TO_BIN('1d5de938-781f-4fc4-8140-77e5bc6baddf'), 'Villas de La República'); insert into settlement(id, name) values(UUID_TO_BIN('642a5044-bebc-41b0-b634-9cfedb553b22'), 'Villas de Rosarito'); insert into settlement(id, name) values(UUID_TO_BIN('e2e12217-6651-431f-b2f8-c910afc1e17c'), 'Villas de San Pedro'); insert into settlement(id, name) values(UUID_TO_BIN('fae4bd34-9fb0-4f75-9cdd-ad6de2b25c1f'), 'Villas de San Ángel'); insert into settlement(id, name) values(UUID_TO_BIN('719f2e12-f94b-4a2d-879a-c264c188607b'), 'Villas del Campo'); insert into settlement(id, name) values(UUID_TO_BIN('2b821a60-8042-495f-bf5c-f682f8202685'), 'Villas del Cedro I'); insert into settlement(id, name) values(UUID_TO_BIN('1ba465b5-debb-40a3-9ccd-097b55816a8d'), 'Villas del Cedro II'); insert into settlement(id, name) values(UUID_TO_BIN('687b6de2-374d-434b-a0da-0ae0ce950f57'), 'Villas del Cedro III'); insert into settlement(id, name) values(UUID_TO_BIN('89e82776-038a-4461-90c6-3b9b3f9021e4'), 'Villas del Colorado'); insert into settlement(id, name) values(UUID_TO_BIN('82596d16-d0cc-4a2f-a217-969b76121f09'), 'Villas del Dorado'); insert into settlement(id, name) values(UUID_TO_BIN('2ee97eff-f78c-49f8-9dcf-a6cc95a56789'), 'Villas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('e182f9c9-7fd8-49dc-b71e-a330a46efe77'), 'Villas del Palmar'); insert into settlement(id, name) values(UUID_TO_BIN('61c67cc7-0dd2-44c1-a37d-187ad6bb9458'), 'Villas del Paraíso'); insert into settlement(id, name) values(UUID_TO_BIN('3031f817-cc7a-4684-888a-9307c23c0f89'), 'Villas del Real'); insert into settlement(id, name) values(UUID_TO_BIN('e663ee39-cad4-4265-95a5-cf7e4493c4c7'), 'Villas del Real 2a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0405b423-3aaa-4f27-818d-e1598beb8810'), 'Villas del Real 3a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('0133ab3f-8a74-4cc8-96d0-2f15f01550e8'), 'Villas del Real 4a Sección'); insert into settlement(id, name) values(UUID_TO_BIN('59ea3a77-fee3-4772-9705-bc797b1a19e2'), 'Villas del Roble'); insert into settlement(id, name) values(UUID_TO_BIN('5b381b55-d25e-43bf-a881-2d4bdcb9104d'), 'Villas del Rosario'); insert into settlement(id, name) values(UUID_TO_BIN('cdf121ed-06f9-4ca2-a250-6ed440c89f95'), 'Villas del Río'); insert into settlement(id, name) values(UUID_TO_BIN('86235ebe-7d97-4d0c-84dc-441c6fdd95fa'), 'Villas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('43acf800-a5d2-41a8-bc26-16d9d03ff8da'), 'Villas del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('358f8beb-2edb-420a-8df5-3d802a9b13b0'), 'Villegas'); insert into settlement(id, name) values(UUID_TO_BIN('f623d546-998f-4674-828b-25a30e501be0'), 'Visión'); insert into settlement(id, name) values(UUID_TO_BIN('30ec3e98-46e5-42e5-a099-6dfb0ebfd59c'), 'Vista Alamar'); insert into settlement(id, name) values(UUID_TO_BIN('da441919-ff5e-4642-9444-7364a7254d2c'), 'Vista Azul'); insert into settlement(id, name) values(UUID_TO_BIN('6c3b6003-e513-4bda-983c-91653d898ca8'), 'Vista Bella'); insert into settlement(id, name) values(UUID_TO_BIN('b7f93464-ba73-45df-9ebf-ab9531121c6b'), 'Vista Dorada'); insert into settlement(id, name) values(UUID_TO_BIN('2b65057c-108c-4b39-856d-c89807035b5e'), 'Vista Encantada'); insert into settlement(id, name) values(UUID_TO_BIN('4e38c816-966e-4981-85b6-382366916d64'), 'Vista Hermosa'); insert into settlement(id, name) values(UUID_TO_BIN('010caaa6-3d89-4498-9616-98bd07724ea1'), 'Vista Lago'); insert into settlement(id, name) values(UUID_TO_BIN('abd2d754-5950-4c4a-952e-49b3ea552c60'), 'Vista Marina'); insert into settlement(id, name) values(UUID_TO_BIN('a14a33c5-b86f-4f29-895b-1686927b420a'), 'Vista al Mar'); insert into settlement(id, name) values(UUID_TO_BIN('846c39b4-9791-432f-9727-81f0c53cb4e3'), 'Vista al Sol'); insert into settlement(id, name) values(UUID_TO_BIN('c47178ea-ed13-41a5-aef4-a255a7effece'), 'Vista del Llano'); insert into settlement(id, name) values(UUID_TO_BIN('d92c668d-1190-4af1-8e13-8acff17ca3be'), 'Vista del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('8cb084eb-61ed-4380-aa34-3676ca949ccd'), 'Vista del Pacifico'); insert into settlement(id, name) values(UUID_TO_BIN('1fcfb337-87f1-45c2-b30d-af18a0ed88e6'), 'Vista del Río'); insert into settlement(id, name) values(UUID_TO_BIN('a76150ff-b85d-4922-b198-1cbcef02d9c0'), 'Vista del Valle'); insert into settlement(id, name) values(UUID_TO_BIN('cab7f2b5-d582-4ec9-b7a9-5a2bbae5da95'), 'Vistas de Palmillas'); insert into settlement(id, name) values(UUID_TO_BIN('d99732fc-58ba-4775-a989-7f756883d622'), 'Vivienda Magisterial'); insert into settlement(id, name) values(UUID_TO_BIN('a67f84df-9384-4069-ae70-4047686d1fd6'), 'Vivienda Magisterial 37'); insert into settlement(id, name) values(UUID_TO_BIN('dd0fda8a-7a46-4eca-ba7f-b87714c14e24'), 'Vivienda Popular'); insert into settlement(id, name) values(UUID_TO_BIN('640f4d24-00a2-4566-ad36-4f427516a2ae'), 'Viñas del Mar'); insert into settlement(id, name) values(UUID_TO_BIN('3a6a978b-7ba4-4e4d-b176-dbf9c9005a37'), 'Viñas del Mar II'); insert into settlement(id, name) values(UUID_TO_BIN('249ca45d-23b2-40f0-aa32-dffe410c6358'), 'Viñas del Sol'); insert into settlement(id, name) values(UUID_TO_BIN('c82e741b-9cf8-4d9f-aad1-06fcd5fda898'), 'Viñedos Casa Blanca'); insert into settlement(id, name) values(UUID_TO_BIN('c4aadf22-62e3-43b4-831a-94a2970ef0c4'), 'Voluntad'); insert into settlement(id, name) values(UUID_TO_BIN('03c80f0c-7473-410e-988e-c38ab5c09e46'), 'Vulcano'); insert into settlement(id, name) values(UUID_TO_BIN('df9cf0b9-def4-4bc9-8b51-adbe15255f5e'), 'XVIII Ayuntamiento'); insert into settlement(id, name) values(UUID_TO_BIN('73d74cdd-2295-4be6-8af9-345c324c0164'), 'Xicotencatl Leyva'); insert into settlement(id, name) values(UUID_TO_BIN('2c55419c-77dc-4625-91b3-bd9518800822'), 'Xicotencatl Leyva Alemán'); insert into settlement(id, name) values(UUID_TO_BIN('660eaee9-6f53-443e-ba47-d2046da6a459'), 'Xicoténcatl Dos'); insert into settlement(id, name) values(UUID_TO_BIN('d81227e0-7d0b-4746-bcf2-97c1e6fbb31e'), 'Xicoténcatl Leyva (OE)'); insert into settlement(id, name) values(UUID_TO_BIN('2037910d-376c-4aae-8725-95154f3c05b9'), 'Xochicalli'); insert into settlement(id, name) values(UUID_TO_BIN('6d39e9a3-0803-467b-a195-8ea154ba40b2'), 'Xochimilco'); insert into settlement(id, name) values(UUID_TO_BIN('8299293d-516c-4556-b41c-63553d10a1dc'), 'Xochimilco Solidaridad'); insert into settlement(id, name) values(UUID_TO_BIN('33df7db5-52cb-4374-95b9-b3c2d1ab46b2'), 'Yamille'); insert into settlement(id, name) values(UUID_TO_BIN('42e17a84-9c04-4087-a31e-7e0560cf00d1'), 'Yucatán'); insert into settlement(id, name) values(UUID_TO_BIN('cc623363-faf9-4827-ba48-463f905c4a20'), 'Zacatecas'); insert into settlement(id, name) values(UUID_TO_BIN('c80e1884-8bf5-49fa-9edb-1456e7d83c3a'), 'Zaragoza'); insert into settlement(id, name) values(UUID_TO_BIN('3796277e-f50b-403d-93a0-84547342a822'), 'Zarahemla'); insert into settlement(id, name) values(UUID_TO_BIN('6bb79bb6-0028-4dc3-9d63-8fba14299e50'), 'Zermeño (Mérida)'); insert into settlement(id, name) values(UUID_TO_BIN('ae46582b-d892-415a-b748-344ef8f606c6'), 'Zona Centro'); insert into settlement(id, name) values(UUID_TO_BIN('ecb18bd8-17e5-41a4-859c-7c00e3db4d79'), 'Zona Este'); insert into settlement(id, name) values(UUID_TO_BIN('e0a82aca-8c27-4af1-b024-16f13b02f347'), 'Zona Industrial'); insert into settlement(id, name) values(UUID_TO_BIN('e5133b97-76d6-4559-9da2-042fc2ec296b'), 'Zona Norte'); insert into settlement(id, name) values(UUID_TO_BIN('96b84a5d-50c2-40fd-9137-f3ce5df1ae27'), 'Zona Progreso'); insert into settlement(id, name) values(UUID_TO_BIN('92717935-8c15-4d2e-973f-a8e029e6139f'), 'Zona Urbana Río Tijuana'); insert into settlement(id, name) values(UUID_TO_BIN('021b18b4-9211-4ac5-9bfb-7310618fcc58'), 'Zona Urbana del Ejido Xochimilco'); insert into settlement(id, name) values(UUID_TO_BIN('97edd9cf-3d73-4121-aadf-ae5bb1148b40'), 'Zorrilla'); insert into settlement(id, name) values(UUID_TO_BIN('bd6b6503-0f93-4572-a3f6-f429e3bd7011'), 'Álamo'); insert into settlement(id, name) values(UUID_TO_BIN('4b79add7-45ad-4ed2-959d-d8a2abd9f2d3'), 'Álvaro Obregón'); insert into settlement(id, name) values(UUID_TO_BIN('00b5618b-17fa-40c9-b11a-fbdf8ac68456'), 'Ángeles de Puebla');
--liquibase formatted sql --changeset liquidbase:V_1.0.0_ms_ss_00 create TABLE application( id INTEGER NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, type VARCHAR(100) NOT NULL, state integer NOT NULL, CONSTRAINT application PRIMARY KEY (id) )
-- Revert ovid:dates-to-sequences from sqlite BEGIN; DROP TABLE articles; CREATE TABLE articles ( article_id INTEGER PRIMARY KEY, title VARCHAR(100) NOT NULL UNIQUE, slug VARCHAR(100) NOT NULL UNIQUE, directory VARCHAR(200) NOT NULL, created TEXT NOT NULL ); INSERT INTO articles (title , slug , directory , created) VALUES ('Case Study: 500 TPS' , 'project-500' , '/articles' , '2019-09-18 05:36:05'); INSERT INTO articles (title , slug , directory , created) VALUES ('Moving from Oracle to PostgreSQL' , 'moving-from-oracle-to-postgresql' , '/articles' , '2019-07-20 09:35:55'); INSERT INTO articles (title , slug , directory , created) VALUES ('Managing a Remote Team' , 'managing-a-remote-team' , '/articles' , '2019-07-17 10:01:24'); INSERT INTO articles (title , slug , directory , created) VALUES ('Project Management in Three Numbers' , 'project-management-in-three-numbers' , '/articles' , '2019-06-05 10:27:30'); INSERT INTO articles (title , slug , directory , created) VALUES ('Alan Kay and Missing Messages (a follow-up)' , 'alan-kay-and-missing-messages-a-follow-up' , '/articles' , '2019-05-22 09:54:46'); INSERT INTO articles (title , slug , directory , created) VALUES ('Alan Kay and OO Programming' , 'alan-kay-and-oo-programming' , '/articles' , '2019-05-17 13:29:22'); INSERT INTO articles (title , slug , directory , created) VALUES ('The Worst Job Offer' , 'the-worst-job-offer' , '/articles' , '2019-05-17 09:40:47'); INSERT INTO articles (title , slug , directory , created) VALUES ('Software Projects as Used Cars' , 'the-tyranny-of-budgets' , '/articles' , '2019-05-14 16:48:39'); INSERT INTO articles (title , slug , directory , created) VALUES ('How to Defeat Facebook' , 'how-to-defeat-facebook' , '/articles' , '2019-04-28 10:37:13'); INSERT INTO articles (title , slug , directory , created) VALUES ('Fixing MVC in Web Applications' , 'fixing-mvc-in-web-applications' , '/articles' , '2019-04-17 11:41:02'); INSERT INTO articles (title , slug , directory , created) VALUES ('Avoid Common Software Project Mistakes' , 'avoid-common-software-project-mistakes' , '/articles' , '2019-04-11 13:11:11'); INSERT INTO articles (title , slug , directory , created) VALUES ('Estimating Development Costs is Almost Useless' , 'estimating-development-costs-is-almost-useless' , '/articles' , '2019-02-01 09:04:23'); INSERT INTO articles (title , slug , directory , created) VALUES ('The Surprises of A/B Testing' , 'the-surprises-of-ab-testing' , '/articles' , '2019-01-22 15:17:36'); INSERT INTO articles (title , slug , directory , created) VALUES ('GDPR and Bankruptcy' , 'gdpr-and-bankruptcy' , '/articles' , '2018-11-23 12:24:51'); INSERT INTO articles (title , slug , directory , created) VALUES ('Death by Database' , 'death-by-database' , '/articles' , '2018-09-19 18:34:09'); INSERT INTO articles (title , slug , directory , created) VALUES ('The Zen of test suites' , 'zen-of-test-suites' , '/articles' , '2018-09-16 23:46:07'); INSERT INTO articles (title , slug , directory , created) VALUES ('How the database can hurt your startup' , 'how-databases-can-hurt-your-startup' , '/articles' , '2018-09-16 23:16:25'); INSERT INTO articles (title , slug , directory , created) VALUES ('A simple way to fix legacy code' , 'a-simple-way-to-fix-legacy-code' , '/articles' , '2018-09-16 22:47:29'); INSERT INTO articles (title , slug , directory , created) VALUES ('When to choose agile' , 'when-to-choose-agile' , '/articles' , '2018-09-16 20:57:22'); INSERT INTO articles (title , slug , directory , created) VALUES ('When going agile can hurt your company' , 'going-agile-can-hurt-your-company' , '/articles' , '2018-09-16 20:57:22'); COMMIT;
-- -- Author: <NAME> -- Date: 2020-08-06 18:07:25 +0100 (Thu, 06 Aug 2020) -- -- vim:ts=2:sts=2:sw=2:et:filetype=sql -- -- https://github.com/harisekhon/sql -- -- License: see accompanying Hari Sekhon LICENSE file -- -- If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish -- -- https://www.linkedin.com/in/harisekhon -- -- Show PostgreSQL client connection default settings -- -- eg. client_min_messages, transaction_isolation / default_transaction_isolation, statement_timeout, lock_timeout, TimeZone, lc_ctype, server_encoding, search_path -- -- Requires PostgreSQL 9.5+ -- -- Tested on PostgreSQL 9.5, 9.6, 10.x 11.x, 12.x, 13.0 -- https://www.postgresql.org/docs/12/runtime-config-client.html SELECT name, setting, -- category, vartype, short_desc, enumvals, source, min_val, max_val, boot_val, reset_val, -- not available on PostgreSQL < 9.5 pending_restart FROM pg_settings WHERE -- Client Connection Defaults / Statement Behavior -- Client Connection Defaults / Locale and Formatting -- Client Connection Defaults / Other Defaults -- Client Connection Defaults / Shared Library Preloading category ILIKE '%Client Connection Defaults%';
-- file:timestamptz.sql ln:54 expect:true INSERT INTO TIMESTAMPTZ_TBL VALUES ('undefined')
-- 2017-07-11T17:34:30.833 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-11 17:34:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543634 ; -- 2017-07-11T17:34:47.868 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-11 17:34:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543635 ; -- 2017-07-11T17:34:56.881 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-11 17:34:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543640 ; -- 2017-07-11T17:35:17.686 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-07-11 17:35:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543641 ; -- 2017-07-11T17:36:06.738 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-07-11 17:36:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543652 ; -- 2017-07-11T17:36:12.218 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-07-11 17:36:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543650 ; -- 2017-07-11T17:36:18.180 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-07-11 17:36:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543651 ; -- 2017-07-11T17:36:24.742 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-07-11 17:36:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543645 ; -- 2017-07-11T17:36:31.387 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-07-11 17:36:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543646 ; -- 2017-07-11T17:36:36.051 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-07-11 17:36:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543649 ; -- 2017-07-11T17:36:39.298 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-07-11 17:36:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543648 ; -- 2017-07-11T17:36:43.163 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-07-11 17:36:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543647 ; -- 2017-07-11T17:37:00.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=35,Updated=TO_TIMESTAMP('2017-07-11 17:37:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543644 ; -- 2017-07-11T17:37:42.306 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-07-11 17:37:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543639 ; -- 2017-07-11T17:37:51.418 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-07-11 17:37:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543636 ; -- 2017-07-11T17:37:55.388 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2017-07-11 17:37:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543637 ; -- 2017-07-11T17:38:01.443 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2017-07-11 17:38:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543638 ; -- 2017-07-11T17:38:16.373 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-11 17:38:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543653 ; -- 2017-07-11T17:38:21.853 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2017-07-11 17:38:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543633 ; -- 2017-07-11T17:38:29.829 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2017-07-11 17:38:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543632 ; -- 2017-07-11T17:38:32.236 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2017-07-11 17:38:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543631 ; -- 2017-07-11T17:38:32.648 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2017-07-11 17:38:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543642 ; -- 2017-07-11T17:38:34.688 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2017-07-11 17:38:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543643 ; -- 2017-07-11T17:43:25.569 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543631 ; -- 2017-07-11T17:43:25.573 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543643 ; -- 2017-07-11T17:43:25.575 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543642 ; -- 2017-07-11T17:43:25.577 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543634 ; -- 2017-07-11T17:43:25.579 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543635 ; -- 2017-07-11T17:43:25.580 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543640 ; -- 2017-07-11T17:43:25.582 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543653 ; -- 2017-07-11T17:43:25.583 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543644 ; -- 2017-07-11T17:43:25.585 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543641 ; -- 2017-07-11T17:43:25.586 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543652 ; -- 2017-07-11T17:43:25.588 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543650 ; -- 2017-07-11T17:43:25.589 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543651 ; -- 2017-07-11T17:43:25.591 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543645 ; -- 2017-07-11T17:43:25.592 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543646 ; -- 2017-07-11T17:43:25.593 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543649 ; -- 2017-07-11T17:43:25.594 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543648 ; -- 2017-07-11T17:43:25.595 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543647 ; -- 2017-07-11T17:43:25.596 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543639 ; -- 2017-07-11T17:43:25.598 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543636 ; -- 2017-07-11T17:43:25.599 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543637 ; -- 2017-07-11T17:43:25.600 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543638 ; -- 2017-07-11T17:43:25.601 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543633 ; -- 2017-07-11T17:43:25.602 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=200,Updated=TO_TIMESTAMP('2017-07-11 17:43:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543632 ; -- 2017-07-11T17:45:24.666 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=10,Updated=TO_TIMESTAMP('2017-07-11 17:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543640 ; -- 2017-07-11T17:45:24.671 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=20,Updated=TO_TIMESTAMP('2017-07-11 17:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543644 ; -- 2017-07-11T17:45:24.678 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=30,Updated=TO_TIMESTAMP('2017-07-11 17:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543634 ; -- 2017-07-11T17:45:24.682 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=40,Updated=TO_TIMESTAMP('2017-07-11 17:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543652 ; -- 2017-07-11T17:51:39.658 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:51:39','YYYY-MM-DD HH24:MI:SS'),Name='Active',Description='',Help='' WHERE AD_Field_ID=551418 AND AD_Language='en_US' ; -- 2017-07-11T17:52:34.493 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:52:34','YYYY-MM-DD HH24:MI:SS'),Name='eMail counter' WHERE AD_Field_ID=551352 AND AD_Language='en_US' ; -- 2017-07-11T17:53:29.837 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:53:29','YYYY-MM-DD HH24:MI:SS'),Name='Via EDI' WHERE AD_Field_ID=555168 AND AD_Language='en_US' ; -- 2017-07-11T17:54:07.030 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:54:07','YYYY-MM-DD HH24:MI:SS'),Name='Print counter' WHERE AD_Field_ID=551351 AND AD_Language='en_US' ; -- 2017-07-11T17:54:16.340 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:54:16','YYYY-MM-DD HH24:MI:SS'),Name='PDF counter' WHERE AD_Field_ID=551737 AND AD_Language='en_US' ; -- 2017-07-11T17:55:54.485 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:55:54','YYYY-MM-DD HH24:MI:SS'),Name='Last printed' WHERE AD_Field_ID=551362 AND AD_Language='en_US' ; -- 2017-07-11T17:56:14.202 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-11 17:56:14','YYYY-MM-DD HH24:MI:SS'),Name='Last eMailed' WHERE AD_Field_ID=551363 AND AD_Language='en_US' ;
/* Project file: S01_01_APP_CRT_ADMIN_AREA_V2_LOV_dml */ /* Project name: Capital Rehabilitation Tracking Reporting */ /* Author: <NAME> */ /* Script type: Database creation script */ /* Created on: 2021-01-14 03:03 */ /* ---------------------------------------------------------------------- */ USE [CRT_DEV]; GO --IDEMPOTENCY --CRT_REGION_DISTRICT DELETE [dbo].[CRT_REGION_DISTRICT] WHERE EXISTS ( SELECT * FROM [dbo].[CRT_REGION_DISTRICT] ) --CRT_SERVICE_AREA DELETE [dbo].[CRT_SERVICE_AREA] WHERE EXISTS ( SELECT * FROM [dbo].[CRT_SERVICE_AREA] ) --CRT_DISTRICT DELETE [dbo].[CRT_DISTRICT] WHERE EXISTS ( SELECT * FROM [dbo].[CRT_DISTRICT] ) --CRT_REGION DELETE [dbo].[CRT_REGION] WHERE EXISTS ( SELECT * FROM [dbo].[CRT_REGION] ) --POPULATE --CRT_REGION INSERT INTO [dbo].[CRT_REGION] (REGION_NUMBER, REGION_NAME) VALUES (0,'Headquarters'); INSERT INTO [dbo].[CRT_REGION] (REGION_NUMBER, REGION_NAME) VALUES (1,'South Coast'); INSERT INTO [dbo].[CRT_REGION] (REGION_NUMBER, REGION_NAME) VALUES (2,'Southern Interior'); INSERT INTO [dbo].[CRT_REGION] (REGION_NUMBER, REGION_NAME) VALUES (3,'Northern'); --CRT_DISTRICT INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (1, 'Lower Mainland'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (2, 'Vancouver Island'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (3, 'Rocky Mountain'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (4, 'West Kootenay'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (5, 'Okanagan-Shuswap'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (6, 'Thompson-Nicola'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (7, 'Cariboo'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (8, 'Peace'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (9, 'Fort George'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (10, 'Bulkley-Stikine'); INSERT INTO [dbo].[CRT_DISTRICT] (DISTRICT_NUMBER, DISTRICT_NAME) VALUES (11, 'Skeena'); --CRT_REGION_DISTRICT INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =1),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =1)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =1),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =2)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =2),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =3)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =2),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =4)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =2),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =5)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =2),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =6)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =2),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =7)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =3),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =8)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =3),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =9)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =3),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =10)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =3),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =11)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =1)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =2)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =3)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =4)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =5)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =6)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =7)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =8)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =9)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =10)); INSERT INTO [dbo].[CRT_REGION_DISTRICT] (REGION_ID, DISTRICT_ID) VALUES ((SELECT REGION_ID FROM [dbo].[CRT_REGION] WHERE REGION_NUMBER =0),(SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER =11)); --CRT_SERVICE_AREA INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (1, 'South Island', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 2)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (2, 'Central Island', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 2)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (3, 'North Island', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 2)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (4, 'Howe Sound', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 1)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (5, 'Sunshine Coast', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 1)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (6, 'Lower Mainland', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 1)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (7, 'Fraser Valley', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 1)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (8, 'South Okanagan', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 5)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (9, 'Kootenay Boundary', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 4)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (10, 'Central Kootenay', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 4)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (11, 'East Kootenay', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 3)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (12, 'Selkirk', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 3)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (13, 'Okanagan-Shuswap', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 5)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (14, 'Nicola', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 6)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (15, 'Thompson', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 6)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (16, 'South Cariboo', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 7)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (17, 'Central Cariboo', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 7)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (18, 'North Cariboo', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 7)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (19, 'Fort George', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 9)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (20, 'Robson', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 9)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (21, 'South Peace', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 8)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (22, 'North Peace', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 8)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (23, 'Nechako', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 9)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (24, 'Lakes', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 10)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (25, 'Bulkley Nass', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 10)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (26, 'Skeena', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 11)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (27, 'North Coast', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 11)); INSERT INTO [dbo].[CRT_SERVICE_AREA] (SERVICE_AREA_NUMBER, SERVICE_AREA_NAME, DISTRICT_ID) VALUES (28, 'Stikine', (SELECT DISTRICT_ID FROM [dbo].[CRT_DISTRICT] WHERE DISTRICT_NUMBER = 10));
<reponame>jefking/Sql-Geo CREATE TABLE [Geo].[Country] ( [IsoCode] CHAR (2) NOT NULL, [Name] VARCHAR (200) NOT NULL, [Position] [sys].[geography] NOT NULL, PRIMARY KEY CLUSTERED ([IsoCode] ASC) ); GO CREATE SPATIAL INDEX [SPATIAL_Country_Position] ON [Geo].[Country] ([Position]) USING GEOGRAPHY_GRID WITH ( GRIDS = (LEVEL_1 = MEDIUM, LEVEL_2 = MEDIUM, LEVEL_3 = MEDIUM, LEVEL_4 = MEDIUM) );
-- /* -- * Licensed to the Apache Software Foundation (ASF) under one or more -- * contributor license agreements. See the NOTICE file distributed with -- * this work for additional information regarding copyright ownership. -- * The ASF licenses this file to You under the Apache License, Version 2.0 -- * (the "License"); you may not use this file except in compliance with -- * the License. You may obtain a copy of the License at -- * -- * http://www.apache.org/licenses/LICENSE-2.0 -- * -- * Unless required by applicable law or agreed to in writing, software -- * distributed under the License is distributed on an "AS IS" BASIS, -- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- * See the License for the specific language governing permissions and -- * limitations under the License. -- * -- */ -- application framework metadata CREATE TABLE IF NOT EXISTS applications ( uuid varchar(50) PRIMARY KEY, appid varchar(100) DEFAULT NULL, siteid varchar(100) DEFAULT NULL, apptype varchar(30) DEFAULT NULL, appmode varchar(10) DEFAULT NULL, jarpath varchar(255) DEFAULT NULL, appstatus varchar(20) DEFAULT NULL, configuration mediumtext DEFAULT NULL, context mediumtext DEFAULT NULL, createdtime bigint(20) DEFAULT NULL, modifiedtime bigint(20) DEFAULT NULL ); CREATE TABLE IF NOT EXISTS sites ( uuid varchar(50) PRIMARY KEY, siteid varchar(100) DEFAULT NULL, sitename varchar(100) DEFAULT NULL, description varchar(255) DEFAULT NULL, createdtime bigint(20) DEFAULT NULL, modifiedtime bigint(20) DEFAULT NULL, UNIQUE (siteid) ); -- eagle security module metadata CREATE TABLE IF NOT EXISTS hdfs_sensitivity_entity ( site varchar(20) NOT NULL, filedir varchar(100) NOT NULL, sensitivity_type varchar(20) DEFAULT NULL, primary key (site, filedir) ); CREATE TABLE IF NOT EXISTS ip_securityzone ( iphost varchar(100) NOT NULL, security_zone varchar(100) DEFAULT NULL, primary key (iphost) ); CREATE TABLE IF NOT EXISTS hbase_sensitivity_entity ( site varchar(20) NOT NULL, hbase_resource varchar(100) NOT NULL, sensitivity_type varchar(20) DEFAULT NULL, primary key (site, hbase_resource) ); -- alert engine metadata CREATE TABLE IF NOT EXISTS stream_cluster ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS stream_definition ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS kafka_tuple_metadata ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS policy_definition ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS publishment ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS schedule_state ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS policy_assignment ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS topology ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS publishment_type ( id VARCHAR (50) PRIMARY KEY, content longtext DEFAULT NULL ); CREATE TABLE IF NOT EXISTS policy_publishment ( policyId VARCHAR(50), publishmentName VARCHAR(50), PRIMARY KEY(policyId, publishmentName), CONSTRAINT `policy_id_fk` FOREIGN KEY (`policyId`) REFERENCES `policy_definition` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `publishment_id_fk` FOREIGN KEY (`publishmentName`) REFERENCES `publishment` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ); CREATE TABLE IF NOT EXISTS alert_event ( alertId VARCHAR (50) PRIMARY KEY, siteId VARCHAR (50) DEFAULT NULL, appIds VARCHAR (255) DEFAULT NULL, policyId VARCHAR (50) DEFAULT NULL, alertTimestamp bigint(20) DEFAULT NULL, policyValue mediumtext DEFAULT NULL, alertData mediumtext DEFAULT NULL ); INSERT INTO publishment_type(id, content) VALUES ('Kafka', '{"name":"Kafka","type":"org.apache.eagle.alert.engine.publisher.impl.AlertKafkaPublisher","description":null,"fields":[{"name":"kafka_broker","value":"sandbox.hortonworks.com:6667"},{"name":"topic"}]}'), ('Email', '{"name":"Email","type":"org.apache.eagle.alert.engine.publisher.impl.AlertEmailPublisher","description":null,"fields":[{"name":"subject"},{"name":"sender"}, {"name":"recipients"}]}'), ('Slack', '{"name":"Slack","type":"org.apache.eagle.alert.engine.publisher.impl.AlertSlackPublisher","description":null,"fields":[{"name":"token"},{"name":"channels"}, {"name":"severitys"}, {"name":"urltemplate"}]}'), ('HBaseStorage', '{"name":"HBaseStorage","type":"org.apache.eagle.alert.app.AlertEagleStorePlugin","description":null,"fields":[]}'), ('JDBCStorage', '{"name":"JDBCStorage","type":"org.apache.eagle.alert.engine.publisher.impl.AlertEagleStorePlugin","description":null,"fields":[]}');
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS "job" ( "id" BIGSERIAL PRIMARY KEY, "app_name" TEXT NOT NULL, "state" TEXT NOT NULL, "attributes" HSTORE NULL DEFAULT NULL, created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(), updated_at TIMESTAMP WITHOUT TIME ZONE NULL DEFAULT NULL ); CREATE TABLE IF NOT EXISTS "item" ( "id" TEXT NOT NULL, "job_id" BIGINT NOT NULL REFERENCES job(id) ON DELETE CASCADE, "status" TEXT NOT NULL, "attributes" HSTORE NULL DEFAULT NULL, created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(), updated_at TIMESTAMP WITHOUT TIME ZONE NULL DEFAULT NULL, PRIMARY KEY("id", "job_id") );
# standardSQL # Detailed upgrade headers for 20.04, 20.05 and 20.06 SELECT client, firstHtml, JSON_EXTRACT_SCALAR(payload, '$._protocol') AS protocol, IF(url LIKE 'https://%', 'https', 'http') AS http_or_https, regexp_extract(regexp_extract(respOtherHeaders, r'(?is)Upgrade = (.*)'), r'(?im)^([^=]*?)(?:, [a-z-]+ = .*)') IS NOT NULL AS upgrade, COUNT(0) AS num_requests, SUM(COUNT(0)) OVER (PARTITION BY client) AS total, COUNT(0) / SUM(COUNT(0)) OVER (PARTITION BY client) AS pct FROM `httparchive.almanac.requests` WHERE date = '2020-08-01' GROUP BY client, firstHtml, protocol, http_or_https, upgrade HAVING num_requests >= 100 ORDER BY num_requests DESC
create table recipetagsrelations ( id bigserial not null constraint recipetagsrelations_pkey primary key, recipe_id bigint not null constraint fk_recipetagsrelations_recipe_id_id references recipes on update cascade on delete cascade, tag_id bigint not null constraint fk_recipetagsrelations_tag_id_id references tags on update cascade on delete cascade, created_at timestamp not null, updated_at timestamp not null );
<reponame>majacQ/sharkey<gh_stars>100-1000 -- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE github_user_mappings( sso_identity VARCHAR(255) PRIMARY KEY NOT NULL UNIQUE, github_username VARCHAR(255) NOT NULL UNIQUE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- +goose Down -- SQL in this section is executed when the migration is rolled back. DROP TABLE github_user_mappings;
DROP TABLE IF EXISTS `tb_misc`; CREATE TABLE `tb_misc` ( `ID` BIGINT NOT NULL AUTO_INCREMENT, `M_Name` VARCHAR(64) NOT NULL DEFAULT '', `M_Value` VARCHAR(64) NOT NULL DEFAULT '', `M_Type` VARCHAR(64) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_misc ADD INDEX tb_misc_id (ID); ALTER TABLE tb_misc ADD INDEX tb_misc_name (M_Name); DROP TABLE IF EXISTS `tb_account`; CREATE TABLE `tb_account` ( `ID` VARCHAR(36) NOT NULL DEFAULT '', `U_State` TINYINT NOT NULL DEFAULT '1' COMMENT '1: OK, 0: Bad', `U_Type` INTEGER NOT NULL DEFAULT '7' COMMENT '0x1: super,0x10 admin,0x100 audit', `U_LastLogin` BIGINT NOT NULL DEFAULT '0', `U_CreateTime` BIGINT NOT NULL DEFAULT '0', `U_LastSync` BIGINT NOT NULL DEFAULT '0', `U_Name` VARCHAR(128) NOT NULL DEFAULT '', `U_Email` VARCHAR(128) NOT NULL DEFAULT '', `U_PhoneNumber` VARCHAR(32) NOT NULL DEFAULT '', `U_Password` VARCHAR(128) NOT NULL DEFAULT '', `U_Description` VARCHAR(1024) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_account ADD INDEX tb_account_id (ID); ALTER TABLE tb_account ADD INDEX tb_account_state (U_State); ALTER TABLE tb_account ADD INDEX tb_account_name (U_Name); ALTER TABLE tb_account ADD INDEX tb_account_type (U_Type); ALTER TABLE tb_account ADD INDEX tb_account_email (U_Email); ALTER TABLE tb_account ADD INDEX tb_account_phonenumber (U_PhoneNumber); ALTER TABLE tb_account ADD INDEX tb_account_password (U_Password); ALTER TABLE tb_account ADD INDEX tb_account_createtime (U_CreateTime); ALTER TABLE tb_account ADD INDEX tb_account_lastlogin (U_LastLogin); ALTER TABLE tb_account ADD INDEX tb_account_lastsync (U_LastSync); DROP TABLE IF EXISTS `tb_relusergroup`; CREATE TABLE `tb_relusergroup` ( `ID` BIGINT NOT NULL AUTO_INCREMENT, `RUG_GroupId` VARCHAR(36) NOT NULL DEFAULT '', `RUG_UserId` VARCHAR(36) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_relusergroup ADD INDEX tb_relusergroup_id (ID); ALTER TABLE tb_relusergroup ADD INDEX tb_relusergroup_groupid (RUG_GroupId); ALTER TABLE tb_relusergroup ADD INDEX tb_relusergroup_userid (RUG_UserId); DROP TABLE IF EXISTS `tb_usergroup`; CREATE TABLE `tb_usergroup` ( `ID` VARCHAR(36) NOT NULL DEFAULT '', `UG_Name` VARCHAR(128) NOT NULL DEFAULT '', `UG_AccountId` VARCHAR(36) NOT NULL DEFAULT '', `UG_CreateTime` BIGINT NOT NULL DEFAULT '0', `UG_LastSync` BIGINT NOT NULL DEFAULT '0', `UG_Description` VARCHAR(1024) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_usergroup ADD INDEX tb_usergroup_id (ID); ALTER TABLE tb_usergroup ADD INDEX tb_usergroup_name (UG_Name); ALTER TABLE tb_usergroup ADD INDEX tb_usergroup_accountid (UG_AccountId); ALTER TABLE tb_usergroup ADD INDEX tb_usergroup_createtime (UG_CreateTime); ALTER TABLE tb_usergroup ADD INDEX tb_usergroup_lastsync (UG_LastSync); DROP TABLE IF EXISTS `tb_user`; CREATE TABLE `tb_user` ( `ID` VARCHAR(36) NOT NULL DEFAULT '', `U_Name` VARCHAR(128) NOT NULL DEFAULT '', `U_State` TINYINT NOT NULL DEFAULT '1' COMMENT '1: OK, 0: Bad', `U_Type` INTEGER NOT NULL DEFAULT '0' COMMENT 'terminal user', `U_LastLogin` BIGINT NOT NULL DEFAULT '0', `U_LastSync` BIGINT NOT NULL DEFAULT '0', `U_CreateTime` BIGINT NOT NULL DEFAULT '0', `U_Password` VARCHAR(128) NOT NULL DEFAULT '', `U_Email` VARCHAR(128) NOT NULL DEFAULT '', `U_PhoneNumber` VARCHAR(32) NOT NULL DEFAULT '', `U_Description` VARCHAR(1024) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_user ADD INDEX tb_user_id (ID); ALTER TABLE tb_user ADD INDEX tb_user_state (U_State); ALTER TABLE tb_user ADD INDEX tb_user_name (U_Name); ALTER TABLE tb_user ADD INDEX tb_user_type (U_Type); ALTER TABLE tb_user ADD INDEX tb_user_email (U_Email); ALTER TABLE tb_user ADD INDEX tb_user_phonenumber (U_PhoneNumber); ALTER TABLE tb_user ADD INDEX tb_user_password (U_Password); ALTER TABLE tb_user ADD INDEX tb_user_createtime (U_CreateTime); ALTER TABLE tb_user ADD INDEX tb_user_lastlogin (U_LastLogin); ALTER TABLE tb_user ADD INDEX tb_user_lastsync (U_LastSync); DROP TABLE IF EXISTS `tb_session`; CREATE TABLE `tb_session` ( `ID` VARCHAR(36) NOT NULL DEFAULT '', `S_UserId` VARCHAR(36) NOT NULL DEFAULT '', `S_UserName` VARCHAR(128) NOT NULL DEFAULT '', `S_Cookie` VARCHAR(1024) NOT NULL DEFAULT '', `S_CreateTime` BIGINT NOT NULL DEFAULT '0', `S_LastSync` BIGINT NOT NULL DEFAULT '0', `S_ExpireTime` BIGINT NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_session ADD INDEX tb_session_id (ID); ALTER TABLE tb_session ADD INDEX tb_session_userid (S_UserId); ALTER TABLE tb_session ADD INDEX tb_session_username (S_UserName); ALTER TABLE tb_session ADD INDEX tb_session_createtime (S_CreateTime); ALTER TABLE tb_session ADD INDEX tb_session_lastsync (S_LastSync); ALTER TABLE tb_session ADD INDEX tb_session_expiretime (S_ExpireTime);
-- Could not auto-generate a down migration. -- Please write an appropriate down migration for the SQL below: -- alter table "schedule"."Event" add column "automaticParticipationSurvey" boolean -- not null default 'false';
PRAGMA journal_mode=WAL; BEGIN; CREATE TABLE rooms ( id INTEGER NOT NULL PRIMARY KEY, /* internal database id of the room */ token TEXT NOT NULL UNIQUE COLLATE NOCASE, /* case-insensitive room identifier used in URLs, etc. */ name TEXT NOT NULL, /* Publicly visible room name */ description TEXT, /* Publicly visible room description */ image INTEGER REFERENCES files(id) ON DELETE SET NULL, created FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ updates INTEGER NOT NULL DEFAULT 0, /* +1 for each new message, edit or deletion */ info_updates INTEGER NOT NULL DEFAULT 0, /* +1 for any room metadata update (name/desc/image/pinned/mods) */ read BOOLEAN NOT NULL DEFAULT TRUE, /* Whether users can read by default */ write BOOLEAN NOT NULL DEFAULT TRUE, /* Whether users can post by default */ upload BOOLEAN NOT NULL DEFAULT TRUE, /* Whether file uploads are allowed */ CHECK(token NOT GLOB '*[^a-zA-Z0-9_-]*') ); CREATE INDEX rooms_token ON rooms(token); -- Trigger to expire an old room image attachment when the room image is changed CREATE TRIGGER room_image_expiry AFTER UPDATE ON rooms FOR EACH ROW WHEN NEW.image IS NOT OLD.image AND OLD.image IS NOT NULL BEGIN UPDATE files SET expiry = 0.0 WHERE id = OLD.image; END; CREATE TABLE messages ( id INTEGER NOT NULL PRIMARY KEY, room INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, user INTEGER NOT NULL REFERENCES users(id), posted FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ edited FLOAT, updated INTEGER NOT NULL DEFAULT 0, /* set to the room's `updates` counter when posted/edited/deleted */ data BLOB, /* Actual message content, not including trailing padding; set to null to delete a message */ data_size INTEGER, /* The message size, including trailing padding (needed because the signature is over the padded data) */ signature BLOB, /* Signature of `data` by `public_key`; set to null when deleting a message */ whisper INTEGER REFERENCES users(id), /* If set: this is a whisper meant for the given user */ whisper_mods BOOLEAN NOT NULL DEFAULT FALSE /* If true: this is a whisper that all mods should see (may or may not have a `whisper` target) */ ); CREATE INDEX messages_room ON messages(room, posted); CREATE INDEX messages_updated ON messages(room, updated); CREATE INDEX messages_id ON messages(room, id); CREATE TABLE message_history ( message INTEGER NOT NULL REFERENCES messages(id) ON DELETE CASCADE, replaced FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch when this historic value was replaced by an edit or deletion */ data TEXT NOT NULL, /* the content prior to the update/delete */ signature BLOB NOT NULL /* signature prior to the update/delete */ ); CREATE INDEX message_history_message ON message_history(message); CREATE INDEX message_history_replaced ON message_history(replaced); -- Trigger to increment a room's `updates` counter and assign it to the messages `updated` field for -- new messages. CREATE TRIGGER messages_insert_counter AFTER INSERT ON messages FOR EACH ROW BEGIN UPDATE rooms SET updates = updates + 1 WHERE id = NEW.room; UPDATE messages SET updated = (SELECT updates FROM rooms WHERE id = NEW.room) WHERE id = NEW.id; END; -- Trigger to do various tasks needed when a message is edited/deleted: -- * record the old value into message_history -- * update the room's `updates` counter (so that clients can learn about the update) -- * update the message's `updated` value to that new counter -- * update the message's `edit` timestamp CREATE TRIGGER messages_insert_history AFTER UPDATE OF data ON messages FOR EACH ROW WHEN NEW.data IS NOT OLD.data BEGIN INSERT INTO message_history (message, data, signature) VALUES (NEW.id, OLD.data, OLD.signature); UPDATE rooms SET updates = updates + 1 WHERE id = NEW.room; UPDATE messages SET updated = (SELECT updates FROM rooms WHERE id = NEW.room), edited = (julianday('now') - 2440587.5)*86400.0 WHERE id = NEW.id; END; CREATE TABLE pinned_messages ( room INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, message INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, updated INTEGER NOT NULL DEFAULT 0, /* set to the room's `info_updated` counter when pinned (used for ordering). */ PRIMARY KEY(room, message) ); -- Trigger to handle moving a message from one room to another; we reset the posted time to now, and -- reset the updated value to the new room's value so that the moved message is treated as a brand new message in -- the new room. We also clear the message as the pinned message from the moved-from room. -- FIXME TODO: this isn't right because the old room won't have any record of it being moved, and so -- clients won't know that they should remove it. Perhaps instead we should implement moving as a -- delete + reinsert, via a INSTEAD OF trigger. /* CREATE TRIGGER message_mover AFTER UPDATE OF room ON messages FOR EACH ROW WHEN NEW.room != OLD.room BEGIN UPDATE messages SET posted = ((julianday('now') - 2440587.5)*86400.0), updated = FALSE WHERE messages.id = NEW.id; UPDATE rooms SET pinned = NULL WHERE id = OLD.room AND pinned = OLD.id; END; */ CREATE TABLE files ( id INTEGER NOT NULL PRIMARY KEY, room INTEGER REFERENCES rooms(id) ON DELETE SET NULL, uploader INTEGER REFERENCES users(id), size INTEGER NOT NULL, uploaded FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ expiry FLOAT DEFAULT ((julianday('now') - 2440587.5 + 15.0)*86400.0), /* unix epoch */ filename TEXT, /* user-provided filename */ path TEXT NOT NULL /* path on disk */ ); CREATE INDEX files_room ON files(room); CREATE INDEX files_expiry ON files(expiry); -- When we delete a room all its files will have room set to NULL but we *also* need to mark them -- for immediate expiry so that the file pruner finds them to clean them up at the next cleanup -- check. CREATE TRIGGER room_expire_roomless AFTER UPDATE OF room ON files FOR EACH ROW WHEN NEW.room IS NULL BEGIN UPDATE files SET expiry = 0.0 WHERE id = NEW.id; END; CREATE TABLE users ( id INTEGER NOT NULL PRIMARY KEY, session_id TEXT NOT NULL UNIQUE, created FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ last_active FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ banned BOOLEAN NOT NULL DEFAULT FALSE, /* true = globally banned from all rooms */ moderator BOOLEAN NOT NULL DEFAULT FALSE, /* true = moderator of all rooms, and can add global bans */ admin BOOLEAN NOT NULL DEFAULT FALSE, /* true = admin of all rooms, and can appoint global bans/mod/admins */ visible_mod BOOLEAN NOT NULL DEFAULT FALSE, /* if true this user's moderator status is viewable by regular room users of all rooms */ CHECK(NOT (banned AND (moderator OR admin))) /* someone cannot be banned *and* a moderator at the same time */ ); CREATE INDEX users_last_active ON users(last_active); -- Create a trigger to maintain the implication "admin implies moderator" CREATE TRIGGER user_update_admins_are_mods AFTER UPDATE OF moderator, admin ON users FOR EACH ROW WHEN NEW.admin AND NOT NEW.moderator BEGIN UPDATE users SET moderator = TRUE WHERE id = NEW.id; END; CREATE TRIGGER user_insert_admins_are_mods AFTER INSERT ON users FOR EACH ROW WHEN NEW.admin AND NOT NEW.moderator BEGIN UPDATE users SET moderator = TRUE WHERE id = NEW.id; END; -- Effectively the same as `messages` except that it also includes the `session_id` from the users -- table of the user who posted it, and the session id of the whisper recipient (as `whisper_to`) if -- a directed whisper. CREATE VIEW message_details AS SELECT messages.*, uposter.session_id, uwhisper.session_id AS whisper_to FROM messages JOIN users uposter ON messages.user = uposter.id LEFT JOIN users uwhisper ON messages.whisper = uwhisper.id; -- Delete trigger on message_details which lets us use a DELETE that gets transformed into an UPDATE -- that sets data, size, signature to NULL on the matched messages. CREATE TRIGGER message_details_deleter INSTEAD OF DELETE ON message_details FOR EACH ROW WHEN OLD.data IS NOT NULL BEGIN UPDATE messages SET data = NULL, data_size = NULL, signature = NULL WHERE id = OLD.id; END; -- View of `messages` that is useful for manually inspecting table contents by only returning the -- length (rather than raw bytes) for data/signature. CREATE VIEW message_metadata AS SELECT id, room, user, session_id, posted, edited, updated, whisper_to, length(data) AS data_unpadded, data_size, length(signature) as signature_length FROM message_details; CREATE TABLE room_users ( room INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, user INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, last_active FLOAT NOT NULL DEFAULT ((julianday('now') - 2440587.5)*86400.0), /* unix epoch */ PRIMARY KEY(room, user) ) WITHOUT ROWID; CREATE INDEX room_users_room_activity ON room_users(room, last_active); CREATE INDEX room_users_activity ON room_users(last_active); -- Stores permissions or restrictions on a user. Null values (for read/write) mean "user the room's -- default". CREATE TABLE user_permission_overrides ( room INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, user INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, banned BOOLEAN NOT NULL DEFAULT FALSE, /* If true the user is banned */ read BOOLEAN, /* If false the user may not fetch messages; null uses room default; true allows reading */ write BOOLEAN, /* If false the user may not post; null uses room default; true allows posting */ upload BOOLEAN, /* If false the user may not upload files; null uses room default; true allows uploading */ moderator BOOLEAN NOT NULL DEFAULT FALSE, /* If true the user may moderate non-moderators */ admin BOOLEAN NOT NULL DEFAULT FALSE, /* If true the user may moderate anyone (including other moderators and admins) */ visible_mod BOOLEAN NOT NULL DEFAULT TRUE, /* If true then this user (if a moderator) is included in the list of a room's public moderators */ PRIMARY KEY(room, user), CHECK(NOT (banned AND (moderator OR admin))) /* Mods/admins cannot be banned */ ) WITHOUT ROWID; CREATE INDEX user_permission_overrides_public_mods ON user_permission_overrides(room) WHERE moderator OR admin; -- Create a trigger to maintain the implication "admin implies moderator" CREATE TRIGGER user_perms_update_admins_are_mods AFTER UPDATE OF moderator, admin ON user_permission_overrides FOR EACH ROW WHEN NEW.admin AND NOT NEW.moderator BEGIN UPDATE user_permission_overrides SET moderator = TRUE WHERE room = NEW.room AND user = NEW.user; END; CREATE TRIGGER user_perms_insert_admins_are_mods AFTER INSERT ON user_permission_overrides FOR EACH ROW WHEN NEW.admin AND NOT NEW.moderator BEGIN UPDATE user_permission_overrides SET moderator = TRUE WHERE room = NEW.room AND user = NEW.user; END; -- Trigger that removes useless empty permission override rows (e.g. after a ban gets removed, and -- no other permissions roles are set). CREATE TRIGGER user_perms_empty_cleanup AFTER UPDATE ON user_permission_overrides FOR EACH ROW WHEN NOT (NEW.banned OR NEW.moderator OR NEW.admin) AND COALESCE(NEW.read, NEW.write, NEW.upload) IS NULL BEGIN DELETE from user_permission_overrides WHERE room = NEW.room AND user = NEW.user; END; -- Triggers than remove a user from `room_users` when they are banned from the room CREATE TRIGGER room_users_remove_banned AFTER UPDATE OF banned ON user_permission_overrides FOR EACH ROW WHEN NEW.banned BEGIN DELETE FROM room_users WHERE room = NEW.room AND user = NEW.user; END; -- Triggers to update `rooms.info_updates` on metadata column changes CREATE TRIGGER room_metadata_update AFTER UPDATE ON rooms FOR EACH ROW WHEN NEW.name IS NOT OLD.name OR NEW.description IS NOT OLD.description OR NEW.image IS NOT OLD.image BEGIN UPDATE rooms SET updates = updates + 1, info_updates = info_updates + 1 WHERE id = NEW.id; END; -- Triggers to update `info_updates` when the mod list changes: CREATE TRIGGER room_metadata_mods_insert AFTER INSERT ON user_permission_overrides FOR EACH ROW WHEN NEW.moderator OR NEW.admin BEGIN UPDATE rooms SET info_updates = info_updates + 1 WHERE id = NEW.room; END; CREATE TRIGGER room_metadata_mods_update AFTER UPDATE ON user_permission_overrides FOR EACH ROW WHEN NEW.moderator != OLD.moderator OR NEW.admin != OLD.admin BEGIN UPDATE rooms SET info_updates = info_updates + 1 WHERE id = NEW.room; END; CREATE TRIGGER room_metadata_mods_delete AFTER DELETE ON user_permission_overrides FOR EACH ROW WHEN OLD.moderator OR OLD.admin BEGIN UPDATE rooms SET info_updates = info_updates + 1 WHERE id = OLD.room; END; -- Trigger to update `info_updates` of all rooms whenever we add/remove a global moderator/admin -- because global mod settings affect the permissions of all rooms (and polling clients need to pick -- up on this). CREATE TRIGGER room_metadata_global_mods_insert AFTER INSERT ON users FOR EACH ROW WHEN (NEW.admin OR NEW.moderator) AND NEW.visible_mod BEGIN UPDATE rooms SET info_updates = info_updates + 1; -- WHERE everything! END; CREATE TRIGGER room_metadata_global_mods_update AFTER UPDATE ON users FOR EACH ROW WHEN (NEW.moderator != OLD.moderator OR NEW.admin != OLD.admin) AND (NEW.visible_mod OR OLD.visible_mod) BEGIN UPDATE rooms SET info_updates = info_updates + 1; -- WHERE everything! END; CREATE TRIGGER room_metadata_global_mods_delete AFTER DELETE ON users FOR EACH ROW WHEN (OLD.moderator OR OLD.admin) AND OLD.visible_mod BEGIN UPDATE rooms SET info_updates = info_updates + 1; -- WHERE everything! END; -- Triggers for change to pinned messages CREATE TRIGGER room_metadata_pinned_add AFTER INSERT ON pinned_messages FOR EACH ROW BEGIN UPDATE rooms SET info_updates = info_updates + 1 WHERE id = NEW.room; UPDATE pinned_messages SET updated = (SELECT info_updates FROM rooms WHERE id = NEW.room) WHERE id = NEW.id; END; CREATE TRIGGER room_metadata_pinned_remove AFTER DELETE ON pinned_messages FOR EACH ROW BEGIN UPDATE rooms SET info_updates = info_updates + 1 WHERE id = OLD.room; END; -- View of permissions; for users with an entry in user_permissions we use those values; for null -- values or no user_permissions entry we return the room's default read/write values (and false for -- the other fields). CREATE VIEW user_permissions AS SELECT rooms.id AS room, users.id AS user, users.session_id, CASE WHEN users.banned THEN TRUE ELSE COALESCE(user_permission_overrides.banned, FALSE) END AS banned, COALESCE(user_permission_overrides.read, rooms.read) AS read, COALESCE(user_permission_overrides.write, rooms.write) AS write, COALESCE(user_permission_overrides.upload, rooms.upload) AS upload, CASE WHEN users.moderator THEN TRUE ELSE COALESCE(user_permission_overrides.moderator, FALSE) END AS moderator, CASE WHEN users.admin THEN TRUE ELSE COALESCE(user_permission_overrides.admin, FALSE) END AS admin, -- room_moderator will be TRUE if the user is specifically listed as a moderator of the room COALESCE(user_permission_overrides.moderator OR user_permission_overrides.admin, FALSE) AS room_moderator, -- global_moderator will be TRUE if the user is a global moderator/admin (note that this is -- *not* exclusive of room_moderator: a moderator/admin could be listed in both). COALESCE(users.moderator OR users.admin, FALSE) as global_moderator, -- visible_mod will be TRUE if this mod is a publicly viewable moderator of the room CASE WHEN user_permission_overrides.moderator OR user_permission_overrides.admin THEN user_permission_overrides.visible_mod WHEN users.moderator OR users.admin THEN users.visible_mod ELSE FALSE END AS visible_mod FROM users JOIN rooms LEFT OUTER JOIN user_permission_overrides ON users.id = user_permission_overrides.user AND rooms.id = user_permission_overrides.room; -- Scheduled changes to user permissions. For example, to implement a 2-day timeout you would set -- their user_permissions.write to false, then set a `write = true` entry with a +2d timestamp here. -- Or to implement a join delay you could set room defaults to false then insert a value here to be -- applied after a delay. CREATE TABLE user_permission_futures ( room INTEGER NOT NULL REFERENCES rooms(id) ON DELETE CASCADE, user INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, at FLOAT NOT NULL, /* when the change should take effect (unix epoch) */ read BOOLEAN, /* Set this value @ at, if non-null */ write BOOLEAN, /* Set this value @ at, if non-null */ upload BOOLEAN, /* Set this value @ at, if non-null */ banned BOOLEAN, /* Set this value @ at, if non-null */ PRIMARY KEY(room, user) ) WITHOUT ROWID; CREATE INDEX user_permissions_future_at ON user_permission_futures(at); COMMIT;
CREATE TABLE user_profile ( user_id SERIAL, user_email VARCHAR(255) NOT NULL, user_name VARCHAR(255) DEFAULT NULL, login_token VARCHAR(255) NOT NULL, profile_img BYTEA DEFAULT NULL, gender VARCHAR(20) DEFAULT NULL, birthday VARCHAR(20) DEFAULT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT NULL, date_modified TIMESTAMP WITH TIME ZONE DEFAULT NULL, PRIMARY KEY (user_id) ); CREATE TABLE chat_list ( user_id BIGINT NOT NULL, chat_id integer[] DEFAULT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT NULL, date_modified TIMESTAMP WITH TIME ZONE DEFAULT NULL, PRIMARY KEY (user_id) ); CREATE TABLE contact_list ( user_id BIGINT NOT NULL, friend_id integer[] DEFAULT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT NULL, date_modified TIMESTAMP WITH TIME ZONE DEFAULT NULL, PRIMARY KEY (user_id) ); CREATE TABLE chat_members ( chat_id SERIAL, member_id bigint[] DEFAULT NULL, date_added TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL, date_modified TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY (chat_id) ); CREATE TABLE friend_token ( user_id BIGINT NOT NULL, token BIGINT DEFAULT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT NULL, PRIMARY KEY (user_id) ); create table chat ( id SERIAL, chat_id text not null, user_id BIGINT not null, user_name text DEFAULT null, user_email text not null, message text DEFAULT null, media bytea DEFAULT null, message_type integer DEFAULT 0, date_added TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL, date_modified TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY (id) );
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-12-2017 a las 05:38:53 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `revista` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `categoria` -- CREATE TABLE `categoria` ( `idcategoria` int(11) NOT NULL, `nombrecategoria` varchar(100) NOT NULL, `descripcioncategoria` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documento` -- CREATE TABLE `documento` ( `iddocumento` int(11) NOT NULL, `autor` text NOT NULL, `titulo` text NOT NULL, `palabrasclave` text NOT NULL, `fechapublicacion` date NOT NULL, `editorial` varchar(100) NOT NULL, `resumen` text NOT NULL, `ruta` varchar(100) NOT NULL, `idcategoria` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE `usuario` ( `idusuario` int(11) NOT NULL, `nombre` varchar(50) NOT NULL, `login` varchar(20) NOT NULL, `clave` varchar(50) NOT NULL, `estado` char(1) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`idusuario`, `nombre`, `login`, `clave`, `estado`) VALUES (1, 'Jefferson', 'Jefferson', '7834', 'A'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `categoria` -- ALTER TABLE `categoria` ADD PRIMARY KEY (`idcategoria`); -- -- Indices de la tabla `documento` -- ALTER TABLE `documento` ADD PRIMARY KEY (`iddocumento`), ADD KEY `idcategoria` (`idcategoria`); -- -- Indices de la tabla `usuario` -- ALTER TABLE `usuario` ADD PRIMARY KEY (`idusuario`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `categoria` -- ALTER TABLE `categoria` MODIFY `idcategoria` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `documento` -- ALTER TABLE `documento` MODIFY `iddocumento` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `usuario` -- ALTER TABLE `usuario` MODIFY `idusuario` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>commular/commular-bb-generate CREATE TABLE `CONTENT_STREAM` (`id` BIGINT AUTO_INCREMENT NOT NULL, `CONTENT` LONGBLOB NOT NULL, CONSTRAINT `PK_CONTENT_STREAM` PRIMARY KEY (`id`)); ALTER TABLE `OBJECT_DATA` ADD `CS_ID` BIGINT; ALTER TABLE `RENDITION` ADD `CS_ID` BIGINT UNIQUE; ALTER TABLE `OBJECT_DATA` DROP COLUMN `STREAMID`; ALTER TABLE `OBJECT_DATA` ADD CONSTRAINT `OBJECT_DATA_CONTENT_STREAM_FK` FOREIGN KEY (`CS_ID`) REFERENCES `CONTENT_STREAM` (`id`); ALTER TABLE `RENDITION` ADD CONSTRAINT `RENDITION_CONTENT_STREAM_FK` FOREIGN KEY (`CS_ID`) REFERENCES `CONTENT_STREAM` (`id`); CREATE INDEX FK_PD_IDX_OBJECTID ON PROPERTY_DATA(OBJECTID);
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 21, 2020 at 08:43 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 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: `po-system` -- DELIMITER $$ -- -- Procedures -- DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `jns_website` -- CREATE TABLE `jns_website` ( `id` int(10) UNSIGNED NOT NULL, `jenis_website` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `jns_website` -- INSERT INTO `jns_website` (`id`, `jenis_website`) VALUES (1, 'Web Sewa'), (2, 'Web Portal dealermobil.info'), (3, 'Web Portal infomobilbaru.id'); -- -------------------------------------------------------- -- -- Table structure for table `level` -- CREATE TABLE `level` ( `id` int(10) UNSIGNED NOT NULL, `nama_level` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `level` -- INSERT INTO `level` (`id`, `nama_level`) VALUES (1, 'Administrator'), (2, 'Admin'), (3, 'Pelanggan'); -- -------------------------------------------------------- -- -- Table structure for table `list_website` -- CREATE TABLE `list_website` ( `id` int(10) UNSIGNED NOT NULL, `id_pelanggan` int(10) UNSIGNED NOT NULL, `nama_website` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `url_website` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `merk` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `wilayah` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_aktif` date NOT NULL, `tgl_selesai` date NOT NULL, `periode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `id_jenis_website` int(10) UNSIGNED NOT NULL, `expired_at` 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 `list_website` -- INSERT INTO `list_website` (`id`, `id_pelanggan`, `nama_website`, `url_website`, `merk`, `wilayah`, `tgl_aktif`, `tgl_selesai`, `periode`, `status`, `id_jenis_website`, `expired_at`, `created_at`, `updated_at`) VALUES (2, 3, 'suzuki solo', 'suzukisolo.info', 'SUZUKI', 'SOLO', '2020-07-26', '2020-08-24', '1 bulan', 'sewa', 1, '3', '2020-07-27 13:46:23', '2020-08-19 10:37:55'), (3, 1, 'dealer toyota malang', 'dealermobil.info/dealer-toyota-malang', 'toyota', 'malang', '2020-07-27', '2020-08-26', '1 bulan', 'sewa', 2, '5', '2020-07-28 01:16:16', '2020-08-05 23:44:03'), (14, 3, 'wuling madiun', 'wulingmadiun.net', 'wuling', 'madiun', '2020-07-29', '2020-08-29', '1 bulan', 'sewa', 1, '8', '2020-07-29 12:54:33', '2020-08-05 23:44:03'), (15, 3, 'mitsubishi solo', 'mitsubishisolo.id', 'mitsubishi', 'solo', '2020-07-29', '2020-08-29', '1 bulan', 'sewa', 1, '8', '2020-07-29 13:02:26', '2020-08-05 23:44:03'), (16, 3, 'suzuki madiun', 'suzukimadiun.net', 'suzuki', 'madiun', '2020-07-28', '2020-08-29', '1 bulan', 'sewa', 1, '8', '2020-07-29 13:10:46', '2020-08-05 23:44:03'), (17, 1, 'suzuki solo', 'suzukisolo.id', 'suzuki', 'solo', '2020-07-29', '2020-08-29', '1 bulan', 'sewa', 1, '8', '2020-07-29 13:11:31', '2020-08-05 23:44:03'), (18, 1, 'daihatsu surabaya', 'daihatsusurabaya.net', 'daihatsu', 'surabaya', '2020-07-30', '2020-09-10', '2 bulan', 'sewa', 1, '89', '2020-07-30 06:41:30', '2020-08-05 23:44:03'), (19, 3, 'suzukisolo', 'suzukisolo.net', 'suzuki', 'solo', '2020-07-30', '2020-09-30', '2 bulan', 'sewa', 1, '109', '2020-07-30 06:47:38', '2020-08-05 23:44:03'), (20, 3, 'wuling solo', 'wulingsolo.com', 'wuling', 'solo', '2020-07-30', '2020-09-30', '2 bulan', 'sewa', 1, '109', '2020-07-30 07:02:10', '2020-08-19 10:41:39'), (21, 3, 'suzuki medan', 'suzukimedan.id', 'suzuki', 'medan', '2020-08-03', '2020-08-24', '1 bulan', 'sewa', 1, '3', '2020-08-03 08:58:53', '2020-08-05 23:44:03'); -- -------------------------------------------------------- -- -- 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, '2020_07_16_005857_create_jns_website_table', 1), (4, '2020_07_16_042604_create_list_website_table', 1), (5, '2020_07_27_200558_create_web_expired_table', 1); -- -------------------------------------------------------- -- -- 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 `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `bio` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `id_level` int(10) UNSIGNED NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `bio`, `id_level`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Admin', '<EMAIL>', <PASSWORD>', 'admin 1', 1, NULL, NULL, '2020-07-27 13:43:58'), (3, 'pelanggan1', '<EMAIL>', '123456', 'pelanggan', 3, NULL, '2020-07-28 07:51:07', '2020-07-28 07:51:07'); -- -------------------------------------------------------- -- -- Table structure for table `web_expired` -- CREATE TABLE `web_expired` ( `id` int(10) UNSIGNED NOT NULL, `id_pelanggan` int(10) UNSIGNED NOT NULL, `id_website` int(10) UNSIGNED NOT NULL, `expired` 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; -- -- Indexes for dumped tables -- -- -- Indexes for table `jns_website` -- ALTER TABLE `jns_website` ADD PRIMARY KEY (`id`); -- -- Indexes for table `level` -- ALTER TABLE `level` ADD PRIMARY KEY (`id`); -- -- Indexes for table `list_website` -- ALTER TABLE `list_website` ADD PRIMARY KEY (`id`), ADD KEY `list_website_id_pelanggan_foreign` (`id_pelanggan`), ADD KEY `list_website_id_jenis_website_foreign` (`id_jenis_website`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `users_id_level_foreign` (`id_level`); -- -- Indexes for table `web_expired` -- ALTER TABLE `web_expired` ADD PRIMARY KEY (`id`), ADD KEY `web_expired_id_pelanggan_foreign` (`id_pelanggan`), ADD KEY `web_expired_id_website_foreign` (`id_website`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `jns_website` -- ALTER TABLE `jns_website` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `level` -- ALTER TABLE `level` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `list_website` -- ALTER TABLE `list_website` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `web_expired` -- ALTER TABLE `web_expired` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `list_website` -- ALTER TABLE `list_website` ADD CONSTRAINT `list_website_id_jenis_website_foreign` FOREIGN KEY (`id_jenis_website`) REFERENCES `jns_website` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `list_website_id_pelanggan_foreign` FOREIGN KEY (`id_pelanggan`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_id_level_foreign` FOREIGN KEY (`id_level`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `web_expired` -- ALTER TABLE `web_expired` ADD CONSTRAINT `web_expired_id_pelanggan_foreign` FOREIGN KEY (`id_pelanggan`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `web_expired_id_website_foreign` FOREIGN KEY (`id_website`) REFERENCES `list_website` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE locked_currency( locked_currency_id SERIAL PRIMARY KEY, character_name TEXT NOT NULL, type TEXT NOT NULL, amount INTEGER NOT NULL )
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2020 at 06:09 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 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: `loji_tourism` -- -- -------------------------------------------------------- -- -- Table structure for table `booking` -- CREATE TABLE `booking` ( `id` int(11) NOT NULL, `token` int(11) NOT NULL, `kd_kamar` int(11) NOT NULL, `num_adult` int(11) NOT NULL, `num_kids` int(11) NOT NULL, `check_in` int(11) NOT NULL, `check_out` int(11) NOT NULL, `booking_status` int(1) NOT NULL, `created_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `penginapan` -- CREATE TABLE `penginapan` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `nama_penginapan` varchar(255) NOT NULL, `description` varchar(255) NOT NULL, `alamat` varchar(255) DEFAULT NULL, `is_active` int(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `penginapan` -- INSERT INTO `penginapan` (`id`, `user_id`, `nama_penginapan`, `description`, `alamat`, `is_active`) VALUES (24, 58, '<NAME>', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has su', 'Jl. Rhs Saca kusuma, Kp.Lengo RT.03/14', 1), (28, 62, 'vodonusa Villa Resort', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', 'Jl. Rhs Saca kusuma, Kp.Lengo RT.03/14', 1); -- -------------------------------------------------------- -- -- Table structure for table `penginapan_image` -- CREATE TABLE `penginapan_image` ( `id` int(11) NOT NULL, `penginapan_id` int(11) DEFAULT NULL, `image` varchar(255) NOT NULL, `upload_at` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `penginapan_image` -- INSERT INTO `penginapan_image` (`id`, `penginapan_id`, `image`, `upload_at`) VALUES (39, 28, 'penginapan-aff2987c5816.jpg', '2020-02-15'), (40, 24, 'penginapan-2d1cca77a827.jpg', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `penginapan_kamar` -- CREATE TABLE `penginapan_kamar` ( `id` int(11) NOT NULL, `penginapan_id` int(11) DEFAULT NULL, `kd_kamar` varchar(255) NOT NULL, `nama_kamar` varchar(255) NOT NULL, `description` text DEFAULT NULL, `image` varchar(255) DEFAULT NULL, `capacity` int(1) DEFAULT NULL, `type_id` int(1) DEFAULT NULL, `harga` int(11) NOT NULL, `upload_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `penginapan_kamar` -- INSERT INTO `penginapan_kamar` (`id`, `penginapan_id`, `kd_kamar`, `nama_kamar`, `description`, `image`, `capacity`, `type_id`, `harga`, `upload_at`) VALUES (143, 28, 'ffda7390b786a5809f56283b6e649aa5', 'Deluxe Rooms A1', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', '1970974c1f18bbe1e83c01622b40342f.jpg', 2, 1, 450000, 1582578411), (144, 28, '85e80b7d2eed63b507ea428182327945', 'Deluxe Rooms A2', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', 'dbbcbc42dc68ce10074f4780376ceea1.jpg', 4, 1, 5000000, 1582578454), (145, 28, '9973baf6be1721b9cbc3a12eb175cb99', 'Junior Suite Rooms A1', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.', 'ccde5ae60798e1156e194a2af9159c0d.jpg', 4, 4, 450000, 1582578561), (146, 24, 'f0dca24d3b68c560c6119b0329ab090d', 'Standard Rooms A1', '1', '19d67a0d5694761443ed626a60815fd9.png', 2, 1, 450000, 1582578715), (147, 28, 'cd40c7e50a7bd0fc24315f5800e02d9a', 'Kamar A1', 'test', 'bead7206574b366edc97914268f507b3.jpg', 4, 1, 450000, 1583337551); -- -------------------------------------------------------- -- -- Table structure for table `penginapan_kamar_fasilitas` -- CREATE TABLE `penginapan_kamar_fasilitas` ( `id` int(11) NOT NULL, `kamar_id` varchar(255) DEFAULT NULL, `type_bed` varchar(128) NOT NULL, `ac` int(1) DEFAULT NULL, `tv` int(1) NOT NULL, `break_fast` int(1) NOT NULL, `luas_ruangan` varchar(128) NOT NULL, `ruang_tamu` int(1) DEFAULT NULL, `kamar_mandi` int(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `penginapan_kamar_fasilitas` -- INSERT INTO `penginapan_kamar_fasilitas` (`id`, `kamar_id`, `type_bed`, `ac`, `tv`, `break_fast`, `luas_ruangan`, `ruang_tamu`, `kamar_mandi`) VALUES (8, 'ffda7390b786a5809f56283b6e649aa5', 'Double bed', 1, 1, 1, '5*5', 0, 1), (9, '85e80b7d2eed63b507ea428182327945', 'Double bed', 1, 1, 1, '10*10', 1, 1), (10, '9973baf6be1721b9cbc3a12eb175cb99', 'Double bed', 1, 1, 1, '4*4', 0, 1), (11, 'f0dca24d3b68c560c6119b0329ab090d', 'Twin bed', 0, 1, 1, '4*4', 0, 0), (12, 'cd40c7e50a7bd0fc24315f5800e02d9a', 'Twin bed', 1, 0, 1, '4*4', 0, 1); -- -------------------------------------------------------- -- -- Table structure for table `penginapan_kamar_type` -- CREATE TABLE `penginapan_kamar_type` ( `id` int(11) NOT NULL, `type` varchar(128) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `penginapan_kamar_type` -- INSERT INTO `penginapan_kamar_type` (`id`, `type`) VALUES (1, 'Premium'), (2, 'Superior'), (3, 'Deluxe'), (4, 'Junior Suite'), (5, 'Suite'), (6, 'Presidential'), (7, 'Standard Room'), (8, 'Run Of House'); -- -------------------------------------------------------- -- -- Table structure for table `penginapan_ruangan` -- CREATE TABLE `penginapan_ruangan` ( `id` int(11) NOT NULL, `ruang_tamu` varchar(255) NOT NULL, `dapur` varchar(255) NOT NULL, `kamar_mandi` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `penginapan_transaksi` -- CREATE TABLE `penginapan_transaksi` ( `id` int(11) NOT NULL, `kd_invoice` varchar(255) NOT NULL, `kd_kamar` varchar(255) NOT NULL, `kd_makanan` varchar(255) NOT NULL, `tgl_sewa` date NOT NULL, `lama_menginap` varchar(255) NOT NULL, `total_pembayaran` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `firstname` varchar(128) DEFAULT NULL, `lastname` varchar(128) DEFAULT NULL, `email` varchar(128) DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `image` varchar(128) DEFAULT NULL, `role_id` int(1) NOT NULL, `is_active` int(1) NOT NULL, `created_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `firstname`, `lastname`, `email`, `password`, `image`, `role_id`, `is_active`, `created_at`) VALUES (58, 'vodonesia', 'id', '<EMAIL>', <PASSWORD>', 'profile-1627f9b5c898.png', 4, 1, 1581307292), (60, '<NAME>', 'subagja', '<EMAIL>', <PASSWORD>', 'profile-d2a8c2eb1abd.png', 3, 1, 1581420087), (61, 'Mochamad', 'Yudi', '<EMAIL>', <PASSWORD>', 'profile-694deb1e54ae.png', 1, 1, 1581435345), (62, '<NAME>', 'Sobari', '<EMAIL>', <PASSWORD>$10$FTfj0KOHmYTkRTGtmghSrOl4LtnK6DQluzI7W0giWDe8QU3QNNBh.', 'profile-aded52f02cc5.jpg', 4, 1, 1581765946); -- -------------------------------------------------------- -- -- Table structure for table `user_access_menu` -- CREATE TABLE `user_access_menu` ( `id` int(11) NOT NULL, `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_access_menu` -- INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES (1, 1, 1), (2, 1, 2), (5, 2, 2), (6, 3, 2), (7, 4, 2), (13, 3, 3), (14, 4, 4), (15, 2, 3), (16, 2, 4); -- -------------------------------------------------------- -- -- Table structure for table `user_detail` -- CREATE TABLE `user_detail` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `jk` varchar(128) DEFAULT NULL, `alamat` varchar(255) DEFAULT NULL, `no_hp` varchar(128) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_detail` -- INSERT INTO `user_detail` (`id`, `user_id`, `jk`, `alamat`, `no_hp`) VALUES (82, 58, 'Laki-Laki', 'Jl. Rhs Saca kusuma, Kp.Lengo RT.03/14', '085695190267'), (83, 61, 'Laki-Laki', 'Jl. Rhs Saca kusuma, Kp.Lengo RT.03/14', '085695190268'), (84, 62, 'Laki-Laki', 'TANJUNG PURA', '085695190267'), (86, 60, 'Laki-Laki', 'Karawang', '085695190268'); -- -------------------------------------------------------- -- -- Table structure for table `user_menu` -- CREATE TABLE `user_menu` ( `id` int(11) NOT NULL, `menu` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_menu` -- INSERT INTO `user_menu` (`id`, `menu`) VALUES (1, 'administrator'), (2, 'user'), (3, 'wisata'), (4, 'penginapan'); -- -------------------------------------------------------- -- -- Table structure for table `user_role` -- CREATE TABLE `user_role` ( `id` int(11) NOT NULL, `role` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_role` -- INSERT INTO `user_role` (`id`, `role`) VALUES (1, 'super admin'), (2, 'admin'), (3, 'karyawan'), (4, 'pemilik'), (5, 'user'); -- -------------------------------------------------------- -- -- Table structure for table `user_sub_menu` -- CREATE TABLE `user_sub_menu` ( `id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `url` varchar(128) NOT NULL, `icon` varchar(128) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user_sub_menu` -- INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES (1, 1, 'Dashboard', 'Administrator/dashboard', 'mdi mdi-home menu-icon', 1), (2, 2, 'My Profile', 'User', 'mdi mdi-face menu-icon', 1), (6, 2, 'Edit Profile', 'user/editProfile', 'mdi mdi-settings menu-icon', 1), (7, 2, 'Change Password', 'user/changepassword', 'mdi mdi-lock menu-icon', 1), (8, 4, 'Dashboard', 'Penginapan/Dashboard', 'mdi mdi-palette menu-icon', 1), (9, 3, 'Wisata', 'Wisata/', 'mdi mdi-earth menu-icon', 1), (10, 1, 'Penginapan', 'Administrator/Penginapan', 'mdi mdi-terrain menu-icon', 1), (11, 1, 'Pariwisata', 'Administrator/Pariwisata', 'mdi mdi-earth menu-icon', 1), (12, 4, 'Profile Penginapan', 'Penginapan/penginapanProfile', 'mdi mdi-home menu-icon', 1), (13, 4, 'Data kamar', 'Penginapan/kamar', 'mdi mdi-store menu-icon', 1), (14, 4, 'Booking', 'Booking/', 'mdi mdi-chart-bar menu-icon', 1), (15, 4, 'Data Booking', 'Booking/detail', 'mdi mdi-database menu-icon', 1), (16, 4, 'Transaksi', 'Penginapan/Transaksi', 'mdi mdi-cash-usd menu-icon', 1), (17, 4, 'Log Transaksi', 'Penginapan/logTransaksi', 'mdi mdi-chart-bar menu-icon', 1); -- -------------------------------------------------------- -- -- Table structure for table `user_token` -- CREATE TABLE `user_token` ( `id` int(11) NOT NULL, `email` varchar(128) NOT NULL, `token` varchar(128) NOT NULL, `created_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `wisata` -- CREATE TABLE `wisata` ( `id` int(11) NOT NULL, `nama` varchar(128) NOT NULL, `deskripsi` varchar(128) NOT NULL, `sejarah` text NOT NULL, `harga` int(11) NOT NULL, `last_update` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `wisata_image` -- CREATE TABLE `wisata_image` ( `id` int(11) NOT NULL, `wisata_id` int(11) NOT NULL, `image` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indexes for table `booking` -- ALTER TABLE `booking` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan` -- ALTER TABLE `penginapan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_image` -- ALTER TABLE `penginapan_image` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_kamar` -- ALTER TABLE `penginapan_kamar` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_kamar_fasilitas` -- ALTER TABLE `penginapan_kamar_fasilitas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_kamar_type` -- ALTER TABLE `penginapan_kamar_type` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_ruangan` -- ALTER TABLE `penginapan_ruangan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `penginapan_transaksi` -- ALTER TABLE `penginapan_transaksi` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_access_menu` -- ALTER TABLE `user_access_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_detail` -- ALTER TABLE `user_detail` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_menu` -- ALTER TABLE `user_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_role` -- ALTER TABLE `user_role` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_sub_menu` -- ALTER TABLE `user_sub_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user_token` -- ALTER TABLE `user_token` ADD PRIMARY KEY (`id`); -- -- Indexes for table `wisata` -- ALTER TABLE `wisata` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `booking` -- ALTER TABLE `booking` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `penginapan` -- ALTER TABLE `penginapan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `penginapan_image` -- ALTER TABLE `penginapan_image` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `penginapan_kamar` -- ALTER TABLE `penginapan_kamar` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=148; -- -- AUTO_INCREMENT for table `penginapan_kamar_fasilitas` -- ALTER TABLE `penginapan_kamar_fasilitas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `penginapan_kamar_type` -- ALTER TABLE `penginapan_kamar_type` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `penginapan_ruangan` -- ALTER TABLE `penginapan_ruangan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `penginapan_transaksi` -- ALTER TABLE `penginapan_transaksi` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63; -- -- AUTO_INCREMENT for table `user_access_menu` -- ALTER TABLE `user_access_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `user_detail` -- ALTER TABLE `user_detail` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=89; -- -- AUTO_INCREMENT for table `user_menu` -- ALTER TABLE `user_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `user_role` -- ALTER TABLE `user_role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `user_sub_menu` -- ALTER TABLE `user_sub_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `user_token` -- ALTER TABLE `user_token` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT for table `wisata` -- ALTER TABLE `wisata` MODIFY `id` int(11) 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 PROCEDURE down4 AS BEGIN ALTER TABLE Player DROP CONSTRAINT DF_playerAge END GO
<gh_stars>0 INSERT INTO "public"."exchange"("id", "t_username", "name", "total_mention", "url", "created_at", "updated_at", "image_url") VALUES (E'a67b7708-096d-4adb-8376-57780fc4cbdc', E'@MyvoteEOS', E'MyvoteEOS DAO', 0, null, E'2022-02-21T23:21:17.556691+00:00', E'2022-02-21T23:21:17.556691+00:00', null);
<filename>C#-DB-Fundamentals/01_Databases_Basic_MS_SQL_Server/06_Table_Relations/Exercise.sql<gh_stars>1-10 --01. ONE TO ONE --UNIQUE FORGOTTEN CREATE TABLE Passports( PassportID INT PRIMARY KEY, PassportNumber VARCHAR(50) ) CREATE TABLE Persons( PersonID INT PRIMARY KEY IDENTITY, FirstName VARCHAR(50), Salary DECIMAL(7,2), PassportID INT UNIQUE, CONSTRAINT FK_Persons_Passports FOREIGN KEY (PassportID) REFERENCES Passports(PassportID) ) INSERT INTO Passports(PassportID,PassportNumber) VALUES (101,'N34FG21B'), (102,'K65LO4R7'), (103,'ZE657QP2') SELECT * FROM Passports SELECT * FROM Persons INSERT INTO Persons(FirstName,Salary,PassportID) VALUES ('Roberto',43300.00,102), ('Tom',56100,103), ('Yana',60200,101) SELECT * FROM Persons JOIN Passports ON Passports.PassportID = Persons.PassportID --02. ONE TO MANY CREATE TABLE Manufacturers( ManufacturerID INT PRIMARY KEY IDENTITY, Name VARCHAR(50), EstablishedOn DATE ) CREATE TABLE Models( ModelID INT PRIMARY KEY, Name VARCHAR(50), ManufacturerID INT, CONSTRAINT FK_Models_Manufacturers FOREIGN KEY (ManufacturerID) REFERENCES Manufacturers(ManufacturerID) ) INSERT INTO Manufacturers(Name,EstablishedOn) VALUES ('Audi','07/03/1909'), ('Tesla','01/01/2003'), ('Lada','01/05/1966') INSERT INTO Models (ModelID,Name,ManufacturerID) VALUES (101,'Q7',1), (102,'A6',1), (103,'Model S',2), (104,'Nova',3) SELECT * FROM Manufacturers SELECT * FROM Models SELECT * FROM Models JOIN Manufacturers ON Models.ManufacturerID = Manufacturers.ManufacturerID --MANY TO MANY CREATE TABLE Students( StudentID INT PRIMARY KEY IDENTITY, Name VARCHAR(50) ) CREATE TABLE Exams( ExamID INT PRIMARY KEY, Name VARCHAR(50) ) CREATE TABLE StudentsExams( StudentID INT, ExamID INT, CONSTRAINT PK_StudentsExams PRIMARY KEY(StudentID, ExamID), CONSTRAINT FK_StudentsExams_Students FOREIGN KEY (StudentID) REFERENCES Students(StudentID), CONSTRAINT FK_StudentsExams_Exams FOREIGN KEY (ExamID) REFERENCES Exams(ExamID) ) INSERT INTO Students (Name) VALUES ('Mila'), ('Toni'), ('Ron') INSERT INTO Exams (ExamID,Name) VALUES (101,'SpringMVC'), (102,'Neo4j'), (103,'Oracle 11g') INSERT INTO StudentsExams (StudentID,ExamID) VALUES (1,101), (1,102), (1,103), (2,101), (3,101), (2,103) SELECT * FROM Students SELECT * FROM Exams SELECT * FROM StudentsExams --4. SELF REFERENCING CREATE TABLE Teachers( TeacherID INT PRIMARY KEY, Name VARCHAR(50) ManagerID INT, CONSTRAINT FK_ManagerID_TeacherID FOREIGN KEY (ManagerID) REFERENCES Teachers(TeacherID) ) --9. Peaks in Rila SELECT * FROM Peaks SELECT * FROM Mountains SELECT MountainRange,PeakName,Elevation FROM Mountains JOIN Peaks ON Mountains.Id = Peaks.MountainId WHERE MountainRange = 'Rila' ORDER BY Elevation DESC
SELECT pid, locktype, datname, relation::regclass, page, tuple, virtualxid transactionid, classid::regclass, objid, objsubid, virtualtransaction, mode, granted, fastpath FROM pg_locks l LEFT OUTER JOIN pg_database d ON (l.database = d.oid) {% if did %}WHERE datname = (SELECT datname FROM pg_database WHERE oid = {{ did }}){% endif %} ORDER BY pid, locktype
<gh_stars>1-10 CREATE TABLE `sap_bill_of_material_header_data` ( `BillOfMaterial` varchar(8) NOT NULL, `BillOfMaterialCategory` varchar(1) NOT NULL, `BillOfMaterialVariant` varchar(2) NOT NULL, `BillOfMaterialVersion` varchar(4) NOT NULL, `EngineeringChangeDocument` varchar(12) NOT NULL, `Material` varchar(40) DEFAULT NULL, `Plant` varchar(4) DEFAULT NULL, `BillOfMaterialHeaderUUID` varchar(36) DEFAULT NULL, `BillOfMaterialVariantUsage` varchar(1) DEFAULT NULL, `EngineeringChangeDocForEdit` varchar(12) DEFAULT NULL, `IsMultipleBOMAlt` tinyint(1) DEFAULT NULL, `BOMHeaderInternalChangeCount` varchar(8) DEFAULT NULL, `BOMUsagePriority` varchar(2) DEFAULT NULL, `BillOfMaterialAuthsnGrp` varchar(4) DEFAULT NULL, `BOMVersionStatus` varchar(2) DEFAULT NULL, `IsVersionBillOfMaterial` tinyint(1) DEFAULT NULL, `IsLatestBOMVersion` tinyint(1) DEFAULT NULL, `IsConfiguredMaterial` tinyint(1) DEFAULT NULL, `BOMTechnicalType` varchar(1) DEFAULT NULL, `BOMGroup` varchar(18) DEFAULT NULL, `BOMHeaderText` varchar(40) DEFAULT NULL, `BOMAlternativeText` varchar(40) DEFAULT NULL, `BillOfMaterialStatus` varchar(2) DEFAULT NULL, `HeaderValidityStartDate` varchar(80) DEFAULT NULL, `HeaderValidityEndDate` varchar(80) DEFAULT NULL, `ChgToEngineeringChgDocument` varchar(12) DEFAULT NULL, `IsMarkedForDeletion` tinyint(1) DEFAULT NULL, `IsALE` tinyint(1) DEFAULT NULL, `MatFromLotSizeQuantity` varchar(15) DEFAULT NULL, `MaterialToLotSizeQuantity` varchar(15) DEFAULT NULL, `BOMHeaderBaseUnit` varchar(3) DEFAULT NULL, `BOMHeaderQuantityInBaseUnit` varchar(15) DEFAULT NULL, `RecordCreationDate` varchar(80) DEFAULT NULL, `LastChangeDate` varchar(80) DEFAULT NULL, `BOMIsToBeDeleted` varchar(1) DEFAULT NULL, `DocumentIsCreatedByCAD` tinyint(1) DEFAULT NULL, `LaboratoryOrDesignOffice` varchar(3) DEFAULT NULL, `LastChangeDateTime` varchar(80) DEFAULT NULL, `ProductDescription` varchar(40) DEFAULT NULL, `PlantName` varchar(30) DEFAULT NULL, `BillOfMaterialHdrDetailsText` varchar(255) DEFAULT NULL, `SelectedBillOfMaterialVersion` varchar(4) DEFAULT NULL, PRIMARY KEY (`BillOfMaterial`, `BillOfMaterialCategory`, `BillOfMaterialVariant`, `BillOfMaterialVersion`, `EngineeringChangeDocument`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
-- file:numeric.sql ln:402 expect:true INSERT INTO num_exp_mul VALUES (9,4,'-194415646271340.1815956522980')
-- file:plpgsql.sql ln:948 expect:false mytype char(2)
<reponame>jmarca/postgraphile_extensions<gh_stars>0 -- Revert postgraphile_extensions:pgcrypto from pg BEGIN; drop extension pgcrypto; COMMIT;
DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `email` TEXT NOT NULL UNIQUE ); CREATE TABLE `premieres` ( `id` INTEGER NOT NULL, `released_at` INTEGER NOT NULL, `title` TEXT, `poster_url` TEXT, `details_url` TEXT, PRIMARY KEY(id) ); DROP TABLE IF EXISTS `notifications`; CREATE TABLE `notifications` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `user_id` INTEGER NOT NULL, `premiere_id` INTEGER NOT NULL, UNIQUE(`user_id`, `premiere_id`) );
<gh_stars>0 SELECT date(time) as dt, (100.0 * error_log.qtd / request_log.qtd) AS perc FROM log JOIN (select date(time) AS de, count(*) AS qtd FROM log WHERE status != '200 OK' GROUP BY de) AS error_log ON date(log.time) = error_log.de JOIN (SELECT date(time) AS ds, count(*) AS qtd FROM log GROUP BY ds) AS request_log ON date(log.time) = request_log.ds WHERE ((100.0 * error_log.qtd) / request_log.qtd) > 1.0 GROUP BY dt, perc;
<reponame>handharbeni/trackmenuapi -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.57-0ubuntu0.14.04.1 - (Ubuntu) -- Server OS: debian-linux-gnu -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for burger_tahu DROP DATABASE IF EXISTS `burger_tahu`; CREATE DATABASE IF NOT EXISTS `burger_tahu` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `burger_tahu`; -- Dumping structure for table burger_tahu.m_admin DROP TABLE IF EXISTS `m_admin`; CREATE TABLE IF NOT EXISTS `m_admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_outlet` int(11) unsigned DEFAULT NULL, `username` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `key` varchar(250) DEFAULT NULL, `tanggal` date NOT NULL DEFAULT '0000-00-00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_admin: ~5 rows (approximately) /*!40000 ALTER TABLE `m_admin` DISABLE KEYS */; INSERT INTO `m_admin` (`id`, `id_outlet`, `username`, `password`, `key`, `tanggal`) VALUES (1, 0, 'superuser', '<PASSWORD>', 'superuserkey', '2017-08-26'); /*!40000 ALTER TABLE `m_admin` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_kurir DROP TABLE IF EXISTS `m_kurir`; CREATE TABLE IF NOT EXISTS `m_kurir` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(50) DEFAULT NULL, `username` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `foto_profil` text, `no_hp` varchar(15) DEFAULT NULL, `no_plat` varchar(20) DEFAULT NULL, `key` varchar(255) DEFAULT NULL, `tanggal` datetime DEFAULT NULL, `deleted` int(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_kurir: ~4 rows (approximately) /*!40000 ALTER TABLE `m_kurir` DISABLE KEYS */; /*!40000 ALTER TABLE `m_kurir` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_menu DROP TABLE IF EXISTS `m_menu`; CREATE TABLE IF NOT EXISTS `m_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(50) DEFAULT NULL, `gambar` varchar(255) DEFAULT 'http://s3.amazonaws.com/37assets/svn/765-default-avatar.png', `harga` varchar(50) DEFAULT NULL, `kategori` enum('Makanan','Minuman') DEFAULT NULL, `sha` varchar(50) DEFAULT NULL, `deleted` int(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_menu: ~8 rows (approximately) /*!40000 ALTER TABLE `m_menu` DISABLE KEYS */; /*!40000 ALTER TABLE `m_menu` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_order DROP TABLE IF EXISTS `m_order`; CREATE TABLE IF NOT EXISTS `m_order` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) DEFAULT NULL, `id_kurir` int(11) DEFAULT NULL, `id_outlet` int(11) DEFAULT NULL, `alamat` varchar(100) DEFAULT NULL, `latitude` varchar(50) DEFAULT NULL, `longitude` varchar(50) DEFAULT NULL, `tanggal_waktu` datetime DEFAULT '0000-00-00 00:00:00', `status` int(11) DEFAULT '1' COMMENT '1:new order, 2:accept by kurir, 3:current pengiriman, 4:pengiriman selese, 5:cancel by admin or user', `keterangan` text, `delivery_fee` varchar(50) DEFAULT NULL, `sha` varchar(50) DEFAULT NULL, `deleted` int(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_order: ~3 rows (approximately) /*!40000 ALTER TABLE `m_order` DISABLE KEYS */; /*!40000 ALTER TABLE `m_order` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_outlet DROP TABLE IF EXISTS `m_outlet`; CREATE TABLE IF NOT EXISTS `m_outlet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_resto` int(11) DEFAULT NULL, `outlet` varchar(50) DEFAULT NULL, `alamat` varchar(50) DEFAULT NULL, `lat` varchar(50) DEFAULT NULL, `long` varchar(50) DEFAULT NULL, `tanggal_waktu` datetime DEFAULT NULL, `sha` varchar(50) DEFAULT NULL, `deleted` int(11) DEFAULT '0', PRIMARY KEY (`id`), KEY `FK_m_outlet_m_resto` (`id_resto`), CONSTRAINT `FK_m_outlet_m_resto` FOREIGN KEY (`id_resto`) REFERENCES `m_resto` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_outlet: ~4 rows (approximately) /*!40000 ALTER TABLE `m_outlet` DISABLE KEYS */; /*!40000 ALTER TABLE `m_outlet` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_resto DROP TABLE IF EXISTS `m_resto`; CREATE TABLE IF NOT EXISTS `m_resto` ( `id` int(11) NOT NULL AUTO_INCREMENT, `resto` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_resto: ~1 rows (approximately) /*!40000 ALTER TABLE `m_resto` DISABLE KEYS */; INSERT INTO `m_resto` (`id`, `resto`) VALUES (1, 'Burger Tahu'); /*!40000 ALTER TABLE `m_resto` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_stok DROP TABLE IF EXISTS `m_stok`; CREATE TABLE IF NOT EXISTS `m_stok` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_menu` int(11) DEFAULT NULL, `date_add` datetime DEFAULT NULL, `jumlah` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_m_stok_m_menu` (`id_menu`), CONSTRAINT `FK_m_stok_m_menu` FOREIGN KEY (`id_menu`) REFERENCES `m_menu` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_stok: ~1 rows (approximately) /*!40000 ALTER TABLE `m_stok` DISABLE KEYS */; INSERT INTO `m_stok` (`id`, `id_menu`, `date_add`, `jumlah`) VALUES (1, 1, '2017-08-26 22:15:00', 3); /*!40000 ALTER TABLE `m_stok` ENABLE KEYS */; -- Dumping structure for table burger_tahu.m_user DROP TABLE IF EXISTS `m_user`; CREATE TABLE IF NOT EXISTS `m_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(50) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `no_hp` varchar(15) DEFAULT NULL, `alamat` varchar(50) DEFAULT NULL, `location` varchar(255) DEFAULT NULL, `key` varchar(150) DEFAULT NULL, `tanggal_buat` datetime DEFAULT '0000-00-00 00:00:00', `blacklist` int(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.m_user: ~1 rows (approximately) /*!40000 ALTER TABLE `m_user` DISABLE KEYS */; /*!40000 ALTER TABLE `m_user` ENABLE KEYS */; -- Dumping structure for table burger_tahu.tools_value DROP TABLE IF EXISTS `tools_value`; CREATE TABLE IF NOT EXISTS `tools_value` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` varchar(255) DEFAULT NULL, `value` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.tools_value: ~1 rows (approximately) /*!40000 ALTER TABLE `tools_value` DISABLE KEYS */; INSERT INTO `tools_value` (`id`, `key`, `value`) VALUES (1, 'km', '6000'); /*!40000 ALTER TABLE `tools_value` ENABLE KEYS */; -- Dumping structure for table burger_tahu.t_banner DROP TABLE IF EXISTS `t_banner`; CREATE TABLE IF NOT EXISTS `t_banner` ( `id` int(11) NOT NULL AUTO_INCREMENT, `position` int(5) DEFAULT '0', `nama` varchar(50) DEFAULT NULL, `keterangan` text NOT NULL, `gambar` text NOT NULL, `link` tinytext, `sha` tinytext, `added_by` varchar(50) DEFAULT NULL, `added_datetime` datetime DEFAULT NULL, `modified_by` varchar(50) DEFAULT NULL, `modified_datetime` datetime DEFAULT NULL, `deleted` int(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.t_banner: ~3 rows (approximately) /*!40000 ALTER TABLE `t_banner` DISABLE KEYS */; /*!40000 ALTER TABLE `t_banner` ENABLE KEYS */; -- Dumping structure for table burger_tahu.t_order DROP TABLE IF EXISTS `t_order`; CREATE TABLE IF NOT EXISTS `t_order` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_order` int(11) DEFAULT NULL, `id_menu` int(11) DEFAULT NULL, `jumlah` int(11) DEFAULT NULL, `harga` int(11) DEFAULT NULL, `total_harga` int(11) DEFAULT NULL, `keterangan` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.t_order: ~4 rows (approximately) /*!40000 ALTER TABLE `t_order` DISABLE KEYS */; /*!40000 ALTER TABLE `t_order` ENABLE KEYS */; -- Dumping structure for table burger_tahu.t_pemakaian_stok DROP TABLE IF EXISTS `t_pemakaian_stok`; CREATE TABLE IF NOT EXISTS `t_pemakaian_stok` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_order` int(11) DEFAULT NULL, `id_menu` int(11) DEFAULT NULL, `jumlah` int(11) DEFAULT NULL, `date_add` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_t_pemakaian_stok_m_order` (`id_order`), KEY `FK_t_pemakaian_stok_m_menu` (`id_menu`), CONSTRAINT `FK_t_pemakaian_stok_m_menu` FOREIGN KEY (`id_menu`) REFERENCES `m_menu` (`id`), CONSTRAINT `FK_t_pemakaian_stok_m_order` FOREIGN KEY (`id_order`) REFERENCES `m_order` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.t_pemakaian_stok: ~2 rows (approximately) /*!40000 ALTER TABLE `t_pemakaian_stok` DISABLE KEYS */; /*!40000 ALTER TABLE `t_pemakaian_stok` ENABLE KEYS */; -- Dumping structure for table burger_tahu.t_rating DROP TABLE IF EXISTS `t_rating`; CREATE TABLE IF NOT EXISTS `t_rating` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_menu` int(11) NOT NULL DEFAULT '0', `id_user` int(11) NOT NULL DEFAULT '0', `id_outlet` int(11) NOT NULL DEFAULT '0', `id_kurir` int(11) NOT NULL DEFAULT '0', `tipe` enum('MENU','OUTLET','KURIR') DEFAULT NULL, `rating` int(1) NOT NULL DEFAULT '0', `keterangan` text, `datetime` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.t_rating: ~0 rows (approximately) /*!40000 ALTER TABLE `t_rating` DISABLE KEYS */; /*!40000 ALTER TABLE `t_rating` ENABLE KEYS */; -- Dumping structure for table burger_tahu.t_tracking DROP TABLE IF EXISTS `t_tracking`; CREATE TABLE IF NOT EXISTS `t_tracking` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_kurir` int(11) DEFAULT NULL, `latitude` varchar(150) DEFAULT 'nothing', `longitude` varchar(150) DEFAULT 'nothing', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table burger_tahu.t_tracking: ~4 rows (approximately) /*!40000 ALTER TABLE `t_tracking` DISABLE KEYS */; /*!40000 ALTER TABLE `t_tracking` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;