sql
stringlengths
6
1.05M
<filename>db/1 drop tables.sql DROP TABLE IF EXISTS stop_times; DROP TABLE IF EXISTS trips; DROP TABLE IF EXISTS stops; DROP TABLE IF EXISTS shapes; DROP TABLE IF EXISTS routes;
CREATE PROCEDURE [dbo].[LogServerComplete] @serverName NVARCHAR(1023) AS -- Update the servers table that this server is done UPDATE [Servers] SET [ServerComplete] = 1 WHERE [ServerName] = @serverName
CREATE ROLE ${referenceownername} WITH CREATEROLE LOGIN ENCRYPTED PASSWORD '${<PASSWORD>}'; GRANT ${referenceownername} TO ${masteruser}; CREATE DATABASE ${referencedbname} OWNER ${referenceownername};
CREATE OR REPLACE FUNCTION ti.getvariablesbytaxagroupidlist(_taxagrouplist character varying) RETURNS SETOF ndb.variables LANGUAGE sql AS $function$ SELECT vr.* FROM ndb.variables AS vr INNER JOIN ndb.taxa AS tx ON vr.taxonid = tx.taxonid WHERE tx.taxagroupid IN (SELECT unnest(string_to_array(_taxagrouplist,'$'))) $function$
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS lending.repay ( project text NOT NULL, version text, block_time timestamptz NOT NULL, block_number numeric NOT NULL, tx_hash bytea, evt_index integer, trace_address integer[], borrower bytea, tx_from bytea, asset_address bytea, asset_symbol text, token_amount numeric, usd_value numeric ); CREATE OR REPLACE FUNCTION lending.insert_repays(start_ts timestamptz, end_ts timestamptz=now(), start_block numeric=0, end_block numeric=9e18) RETURNS integer LANGUAGE plpgsql AS $function$ DECLARE r integer; BEGIN WITH repays AS ( SELECT project, version, repay.block_number, repay.block_time, tx_hash, evt_index, trace_address, tx."from" as tx_from, borrower, t.symbol AS asset_symbol, asset_address, asset_amount / 10^t.decimals AS token_amount, asset_amount / 10^t.decimals*p.price AS usd_value FROM ( -- Venus SELECT 'Venus' AS project, '1' AS version, evt_block_number AS block_number, evt_block_time AS block_time, evt_tx_hash AS tx_hash, evt_index, NULL::integer[] as trace_address, borrower, c."underlying_token_address" AS asset_address, "repayAmount" AS asset_amount FROM ( SELECT "evt_block_number","evt_block_time","evt_tx_hash","evt_index","borrower","repayAmount","contract_address" FROM venus."VBNB_evt_RepayBorrow" WHERE evt_block_time >= start_ts AND evt_block_time < end_ts UNION ALL SELECT "evt_block_number","evt_block_time","evt_tx_hash","evt_index","borrower","repayAmount","contract_address" FROM venus."VBep20Delegate_evt_RepayBorrow" WHERE evt_block_time >= start_ts AND evt_block_time < end_ts UNION ALL SELECT "evt_block_number","evt_block_time","evt_tx_hash","evt_index","borrower","repayVAIAmount","contract_address" FROM venus."VAIController_evt_RepayVAI" WHERE evt_block_time >= start_ts AND evt_block_time < end_ts ) events LEFT JOIN venus.view_vtokens c ON events.contract_address = c.contract_address ) repay INNER JOIN bsc."transactions" tx ON repay.tx_hash = tx.hash AND tx.block_number >= start_block AND tx.block_number < end_block AND tx.block_time >= start_ts AND tx.block_time < end_ts LEFT JOIN bep20.tokens t ON t.contract_address = repay.asset_address LEFT JOIN prices.usd p ON p.minute = date_trunc('minute', repay.block_time) AND p.contract_address = repay.asset_address AND p.minute >= start_ts AND p.minute < end_ts ), rows AS ( INSERT INTO lending.repay ( project, version, block_time, block_number, tx_hash, evt_index, trace_address, tx_from, borrower, asset_address, asset_symbol, token_amount, usd_value ) SELECT project, version, block_time, block_number, tx_hash, evt_index, trace_address, tx_from, borrower, asset_address, asset_symbol, token_amount, usd_value FROM repays ON CONFLICT DO NOTHING RETURNING 1 ) SELECT count(*) INTO r from rows; RETURN r; END $function$; CREATE UNIQUE INDEX IF NOT EXISTS lending_repays_tr_addr_uniq_idx ON lending.repay (tx_hash, trace_address); CREATE UNIQUE INDEX IF NOT EXISTS lending_repays_evt_index_uniq_idx ON lending.repay (tx_hash, evt_index); CREATE INDEX IF NOT EXISTS lending_repays_block_time_idx ON lending.repay USING BRIN (block_time); SELECT lending.insert_repays('2021-01-01', (SELECT now()), (SELECT max(number) FROM bsc.blocks WHERE time < '2021-01-01'), (SELECT MAX(number) FROM bsc.blocks where time < now() - interval '20 minutes')) WHERE NOT EXISTS (SELECT * FROM lending.repay LIMIT 1); INSERT INTO cron.job (schedule, command) VALUES ('14 2 * * *', $$SELECT lending.insert_repays((SELECT max(block_time) - interval '2 days' FROM lending.repay), (SELECT now() - interval '20 minutes'), (SELECT max(number) FROM bsc.blocks WHERE time < (SELECT max(block_time) - interval '2 days' FROM lending.repay)), (SELECT MAX(number) FROM bsc.blocks where time < now() - interval '20 minutes'));$$) ON CONFLICT (command) DO UPDATE SET schedule=EXCLUDED.schedule;
INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (3, 1, 'Coventry City', 'Coventry'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (5, 1, 'Luton Town', 'Luton'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (6, 2, 'Lincoln City', 'Lincoln'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (7, 3, 'Carlisle United', 'Carlisle'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (9, 2, 'Rotherham United', 'Rotherham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (10, 1, 'Millwall', 'Millwall'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (11, 2, '<NAME>', 'Wycombe'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (13, 3, 'Scunthorpe United', 'Scunthorpe'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (14, 1, 'Preston North End', 'Preston'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (15, 3, 'Bradford City', 'Bradford'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (16, 2, '<NAME>', 'Bolton'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (18, 1, 'Blackburn Rovers', 'Blackburn'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (19, 3, '<NAME>', 'Oldham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (20, 2, 'Portsmouth', 'Portsmouth'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (21, 2, 'AFC Wimbledon', 'AFC Wimbledon'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (22, 1, 'Fulham', 'Fulham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (24, 2, '<NAME>', 'Charlton'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (25, 3, 'Stevenage', 'Stevenage'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (26, 1, 'Barnsley', 'Barnsley'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (27, 1, 'Peterborough United', 'Peterborough'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (28, 2, 'Wigan Athletic', 'Wigan'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (30, 3, 'Forest Green Rovers', 'Forest Green'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (31, 2, '<NAME>', '<NAME>'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (32, 3, 'Bristol Rovers', 'Bristol Rovers'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (33, 1, 'Derby County', 'Derby'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (34, 1, 'Cardiff City', 'Cardiff'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (35, 2, '<NAME>', 'Crewe'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (36, 2, 'Cambridge United', 'Cambridge'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (37, 3, 'Crawley Town', 'Crawley'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (38, 3, 'Port Vale', 'Port Vale'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (39, 2, 'Plymouth Argyle', 'Plymouth'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (41, 1, 'Reading', 'Reading'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (42, 1, 'Bristol City', 'Bristol City'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (44, 1, 'Nottingham Forest', 'Nottm Forest'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (45, 1, 'Sheffield United', 'Sheff Utd'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (46, 2, 'Sheffield Wednesday', 'Sheff Wed'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (47, 3, 'Sutton United', 'Sutton Utd'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (48, 1, 'Hull City', 'Hull City'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (49, 1, 'Birmingham City', 'Birmingham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (50, 1, 'Queens Park Rangers', 'QPR'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (52, 2, 'Gillingham', 'Gillingham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (53, 2, '<NAME>', 'Accrington'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (54, 3, 'Northampton Town', 'Northampton'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (55, 2, 'Fleetwood Town', 'Fleetwood'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (56, 3, 'Colchester United', 'Colchester'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (57, 3, 'Hartlepool United', 'Hartlepool'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (58, 3, 'Rochdale', 'Rochdale'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (59, 2, 'Shrewsbury Town', 'Shrewsbury'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (60, 3, 'Exeter City', 'Exeter'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (61, 3, 'Swindon Town', 'Swindon'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (62, 2, 'Cheltenham Town', 'Cheltenham'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (63, 1, 'Blackpool', 'Blackpool'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (64, 2, '<NAME>', 'Doncaster'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (65, 2, 'Sunderland', 'Sunderland'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (66, 1, 'Middlesbrough', 'Middlesbrough'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (67, 3, 'Newport County', 'Newport Co'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (68, 2, 'Burton Albion', 'Burton'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (69, 2, 'Morecambe', 'Morecambe'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (70, 3, 'Mansfield Town', 'Mansfield'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (71, 3, 'Walsall', 'Walsall'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (73, 2, 'Ipswich Town', 'Ipswich'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (74, 2, 'Oxford United', 'Oxford'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (75, 4, 'Unattached', 'Unattached'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (76, 1, 'Stoke City', 'Stoke'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (78, 1, 'Swansea City', 'Swansea'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (80, 3, 'Tranmere Rovers', 'Tranmere'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (83, 1, 'Huddersfield Town', 'Huddersfield'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (84, 3, 'Salford City', 'Salford'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (85, 3, 'Leyton Orient', 'Leyton Orient'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (86, 1, 'Bournemouth', 'Bournemouth'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (87, 1, 'West Bromich Albion', 'West Brom'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (88, 3, 'Barrow', 'Barrow'); INSERT INTO "teams" ("teamId", "divisionId", "name", "alias") VALUES (89, 3, 'Harrogate Town', 'Harrogate');
-- file:create_table.sql ln:656 expect:true COMMENT ON COLUMN parted_col_comment.a IS 'Partition key'
-- file:collate.icu.utf8.sql ln:405 expect:true CREATE INDEX collate_dep_test4i ON collate_dep_test4t (b COLLATE test0)
DROP INDEX IF EXISTS servicerepair_old_shipped_hu_serialNo ; CREATE INDEX servicerepair_old_shipped_hu_serialNo ON servicerepair_old_shipped_hu (serialno) ;
----------------------------------------------------------------------------- -- ACTIVEMQ_ACKS ----------------------------------------------------------------------------- DROP TABLE ACTIVEMQ_ACKS CASCADE CONSTRAINTS; CREATE TABLE ACTIVEMQ_ACKS ( CONTAINER VARCHAR2(250) NOT NULL, SUB_DEST VARCHAR2(250), CLIENT_ID VARCHAR2(250) NOT NULL, SUB_NAME VARCHAR2(250) NOT NULL, SELECTOR VARCHAR2(250), LAST_ACKED_ID NUMBER(22) ); ALTER TABLE ACTIVEMQ_ACKS ADD CONSTRAINT ACTIVEMQ_ACKS_PK PRIMARY KEY (CONTAINER,CLIENT_ID,SUB_NAME); ----------------------------------------------------------------------------- -- ACTIVEMQ_LOCK ----------------------------------------------------------------------------- DROP TABLE ACTIVEMQ_LOCK CASCADE CONSTRAINTS; CREATE TABLE ACTIVEMQ_LOCK ( ID NUMBER(22) NOT NULL, TIME NUMBER(22), BROKER_NAME VARCHAR2(250) ); ALTER TABLE ACTIVEMQ_LOCK ADD CONSTRAINT ACTIVEMQ_LOCK_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- ACTIVEMQ_MSGS ----------------------------------------------------------------------------- DROP TABLE ACTIVEMQ_MSGS CASCADE CONSTRAINTS; CREATE TABLE ACTIVEMQ_MSGS ( ID NUMBER(22) NOT NULL, CONTAINER VARCHAR2(250), MSGID_PROD VARCHAR2(250), MSGID_SEQ NUMBER(22), EXPIRATION NUMBER(22), MSG BLOB ); ALTER TABLE ACTIVEMQ_MSGS ADD CONSTRAINT ACTIVEMQ_MSGS_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- CC_TRIG_MSG ----------------------------------------------------------------------------- DROP TABLE CC_TRIG_MSG CASCADE CONSTRAINTS; CREATE TABLE CC_TRIG_MSG ( RECORD_ID VARCHAR2(50), OPERATE_FLAG CHAR(1), REMARK VARCHAR2(255), TABNAME VARCHAR2(64) ); ----------------------------------------------------------------------------- -- DEMO ----------------------------------------------------------------------------- DROP TABLE DEMO CASCADE CONSTRAINTS; CREATE TABLE DEMO ( USER_NAME VARCHAR2(50), USER_PWD VARCHAR2(50) ); ----------------------------------------------------------------------------- -- ESB_PARAMS ----------------------------------------------------------------------------- DROP TABLE ESB_PARAMS CASCADE CONSTRAINTS; CREATE TABLE ESB_PARAMS ( NODE_ID NUMBER(10) NOT NULL, NAME VARCHAR2(100) NOT NULL, VALUE VARCHAR2(100), PARAM_TYPE VARCHAR2(200) NOT NULL ); ALTER TABLE ESB_PARAMS ADD CONSTRAINT ESB_PARAMS_PK PRIMARY KEY (NODE_ID,NAME,PARAM_TYPE); ----------------------------------------------------------------------------- -- GROUP_USERS ----------------------------------------------------------------------------- DROP TABLE GROUP_USERS CASCADE CONSTRAINTS; CREATE TABLE GROUP_USERS ( USER_ID NUMBER(10) NOT NULL, GROUP_ID NUMBER(10) NOT NULL ); ALTER TABLE GROUP_USERS ADD CONSTRAINT GROUP_USERS_PK PRIMARY KEY (USER_ID,GROUP_ID); ----------------------------------------------------------------------------- -- J3_ADDRESS ----------------------------------------------------------------------------- DROP TABLE J3_ADDRESS CASCADE CONSTRAINTS; CREATE TABLE J3_ADDRESS ( ID NUMBER(19) NOT NULL, SORT_CODE VARCHAR2(20), TMODEL_KEY VARCHAR2(510), USE_TYPE VARCHAR2(510), ADDRESS_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_ADDRESS ADD CONSTRAINT J3_ADDRESS_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_ADDRESS_LINE ----------------------------------------------------------------------------- DROP TABLE J3_ADDRESS_LINE CASCADE CONSTRAINTS; CREATE TABLE J3_ADDRESS_LINE ( ID NUMBER(19) NOT NULL, KEY_NAME VARCHAR2(510), KEY_VALUE VARCHAR2(510), LINE VARCHAR2(160) NOT NULL, ADDRESS_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_ADDRESS_LINE ADD CONSTRAINT J3_ADDRESS_LINE_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_AUTH_TOKEN ----------------------------------------------------------------------------- DROP TABLE J3_AUTH_TOKEN CASCADE CONSTRAINTS; CREATE TABLE J3_AUTH_TOKEN ( AUTH_TOKEN VARCHAR2(102) NOT NULL, AUTHORIZED_NAME VARCHAR2(40) NOT NULL, CREATED TIMESTAMP NOT NULL, LAST_USED TIMESTAMP NOT NULL, NUMBER_OF_USES NUMBER(10) NOT NULL, PUBLISHER_NAME VARCHAR2(510), TOKEN_STATE NUMBER(10) NOT NULL ); ALTER TABLE J3_AUTH_TOKEN ADD CONSTRAINT J3_AUTH_TOKEN_PK PRIMARY KEY (AUTH_TOKEN); ----------------------------------------------------------------------------- -- J3_BINDING_CATEGORY_BAG ----------------------------------------------------------------------------- DROP TABLE J3_BINDING_CATEGORY_BAG CASCADE CONSTRAINTS; CREATE TABLE J3_BINDING_CATEGORY_BAG ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BINDING_CATEGORY_BAG ADD CONSTRAINT J3_BINDING_CATEGORY_BAG_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BINDING_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_BINDING_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_BINDING_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BINDING_DESCR ADD CONSTRAINT J3_BINDING_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BINDING_TEMPLATE ----------------------------------------------------------------------------- DROP TABLE J3_BINDING_TEMPLATE CASCADE CONSTRAINTS; CREATE TABLE J3_BINDING_TEMPLATE ( ENTITY_KEY VARCHAR2(510) NOT NULL, ACCESS_POINT_TYPE VARCHAR2(40), ACCESS_POINT_URL VARCHAR2(4000), HOSTING_REDIRECTOR VARCHAR2(510), SERVICE_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BINDING_TEMPLATE ADD CONSTRAINT J3_BINDING_TEMPLATE_PK PRIMARY KEY (ENTITY_KEY); ----------------------------------------------------------------------------- -- J3_BUSINESS_CATEGORY_BAG ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_CATEGORY_BAG CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_CATEGORY_BAG ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_CATEGORY_BAG ADD CONSTRAINT J3_BUSINESS_CATEGORY_BAG_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BUSINESS_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_DESCR ADD CONSTRAINT J3_BUSINESS_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BUSINESS_ENTITY ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_ENTITY CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_ENTITY ( ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_ENTITY ADD CONSTRAINT J3_BUSINESS_ENTITY_PK PRIMARY KEY (ENTITY_KEY); ----------------------------------------------------------------------------- -- J3_BUSINESS_IDENTIFIER ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_IDENTIFIER CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_IDENTIFIER ( ID NUMBER(19) NOT NULL, KEY_NAME VARCHAR2(510), KEY_VALUE VARCHAR2(510) NOT NULL, TMODEL_KEY_REF VARCHAR2(510), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_IDENTIFIER ADD CONSTRAINT J3_BUSINESS_IDENTIFIER_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BUSINESS_NAME ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_NAME CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_NAME ( ID NUMBER(19) NOT NULL, LANG_CODE VARCHAR2(10), NAME VARCHAR2(510) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_NAME ADD CONSTRAINT J3_BUSINESS_NAME_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_BUSINESS_SERVICE ----------------------------------------------------------------------------- DROP TABLE J3_BUSINESS_SERVICE CASCADE CONSTRAINTS; CREATE TABLE J3_BUSINESS_SERVICE ( ENTITY_KEY VARCHAR2(510) NOT NULL, BUSINESS_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_BUSINESS_SERVICE ADD CONSTRAINT J3_BUSINESS_SERVICE_PK PRIMARY KEY (ENTITY_KEY); ----------------------------------------------------------------------------- -- J3_CATEGORY_BAG ----------------------------------------------------------------------------- DROP TABLE J3_CATEGORY_BAG CASCADE CONSTRAINTS; CREATE TABLE J3_CATEGORY_BAG ( ID NUMBER(19) NOT NULL ); ALTER TABLE J3_CATEGORY_BAG ADD CONSTRAINT J3_CATEGORY_BAG_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_CLERK ----------------------------------------------------------------------------- DROP TABLE J3_CLERK CASCADE CONSTRAINTS; CREATE TABLE J3_CLERK ( CLERK_NAME VARCHAR2(510) NOT NULL, CRED VARCHAR2(510), PUBLISHER_ID VARCHAR2(510) NOT NULL, NODE_NAME VARCHAR2(510) ); ALTER TABLE J3_CLERK ADD CONSTRAINT J3_CLERK_PK PRIMARY KEY (CLERK_NAME); ----------------------------------------------------------------------------- -- J3_CLIENT_SUBSCRIPTIONINFO ----------------------------------------------------------------------------- DROP TABLE J3_CLIENT_SUBSCRIPTIONINFO CASCADE CONSTRAINTS; CREATE TABLE J3_CLIENT_SUBSCRIPTIONINFO ( SUBSCRIPTION_KEY VARCHAR2(510) NOT NULL, LAST_NOTIFIED TIMESTAMP, TOCLERK_CLERK_NAME VARCHAR2(510), FROMCLERK_CLERK_NAME VARCHAR2(510) ); ALTER TABLE J3_CLIENT_SUBSCRIPTIONINFO ADD CONSTRAINT J3_CLIENT_SUBSCRIPTIONINFO_PK PRIMARY KEY (SUBSCRIPTION_KEY); ----------------------------------------------------------------------------- -- J3_CONTACT ----------------------------------------------------------------------------- DROP TABLE J3_CONTACT CASCADE CONSTRAINTS; CREATE TABLE J3_CONTACT ( ID NUMBER(19) NOT NULL, USE_TYPE VARCHAR2(510), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_CONTACT ADD CONSTRAINT J3_CONTACT_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_CONTACT_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_CONTACT_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_CONTACT_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), CONTACT_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_CONTACT_DESCR ADD CONSTRAINT J3_CONTACT_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_DISCOVERY_URL ----------------------------------------------------------------------------- DROP TABLE J3_DISCOVERY_URL CASCADE CONSTRAINTS; CREATE TABLE J3_DISCOVERY_URL ( ID NUMBER(19) NOT NULL, URL VARCHAR2(510) NOT NULL, USE_TYPE VARCHAR2(510) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_DISCOVERY_URL ADD CONSTRAINT J3_DISCOVERY_URL_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_EMAIL ----------------------------------------------------------------------------- DROP TABLE J3_EMAIL CASCADE CONSTRAINTS; CREATE TABLE J3_EMAIL ( ID NUMBER(19) NOT NULL, EMAIL_ADDRESS VARCHAR2(510) NOT NULL, USE_TYPE VARCHAR2(510), CONTACT_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_EMAIL ADD CONSTRAINT J3_EMAIL_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_INSTANCE_DETAILS_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_INSTANCE_DETAILS_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_INSTANCE_DETAILS_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), TMODEL_INSTANCE_INFO_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_INSTANCE_DETAILS_DESCR ADD CONSTRAINT J3_INSTANCE_DETAILS_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_INSTANCE_DETAILS_DOC_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_INSTANCE_DETAILS_DOC_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_INSTANCE_DETAILS_DOC_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), TMODEL_INSTANCE_INFO_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_INSTANCE_DETAILS_DOC_DESCR ADD CONSTRAINT J3_INSTANCE_DETAILS_DOC_DES_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_KEYED_REFERENCE ----------------------------------------------------------------------------- DROP TABLE J3_KEYED_REFERENCE CASCADE CONSTRAINTS; CREATE TABLE J3_KEYED_REFERENCE ( ID NUMBER(19) NOT NULL, KEY_NAME VARCHAR2(510), KEY_VALUE VARCHAR2(510) NOT NULL, TMODEL_KEY_REF VARCHAR2(510), KEYED_REFERENCE_GROUP_ID NUMBER(19), CATEGORY_BAG_ID NUMBER(19) ); ALTER TABLE J3_KEYED_REFERENCE ADD CONSTRAINT J3_KEYED_REFERENCE_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_KEYED_REFERENCE_GROUP ----------------------------------------------------------------------------- DROP TABLE J3_KEYED_REFERENCE_GROUP CASCADE CONSTRAINTS; CREATE TABLE J3_KEYED_REFERENCE_GROUP ( ID NUMBER(19) NOT NULL, TMODEL_KEY VARCHAR2(510), CATEGORY_BAG_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_KEYED_REFERENCE_GROUP ADD CONSTRAINT J3_KEYED_REFERENCE_GROUP_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_NODE ----------------------------------------------------------------------------- DROP TABLE J3_NODE CASCADE CONSTRAINTS; CREATE TABLE J3_NODE ( NAME VARCHAR2(510) NOT NULL, CUSTODY_TRANSFER_URL VARCHAR2(510) NOT NULL, FACTORY_INITIAL VARCHAR2(510), FACTORY_NAMING_PROVIDER VARCHAR2(510), FACTORY_URL_PKGS VARCHAR2(510), INQUIRY_URL VARCHAR2(510) NOT NULL, JUDDI_API_URL VARCHAR2(510), PROXY_TRANSPORT VARCHAR2(510) NOT NULL, PUBLISH_URL VARCHAR2(510) NOT NULL, SECURITY_URL VARCHAR2(510) NOT NULL, SUBSCRIPTION_URL VARCHAR2(510) NOT NULL ); ALTER TABLE J3_NODE ADD CONSTRAINT J3_NODE_PK PRIMARY KEY (NAME); ----------------------------------------------------------------------------- -- J3_OVERVIEW_DOC ----------------------------------------------------------------------------- DROP TABLE J3_OVERVIEW_DOC CASCADE CONSTRAINTS; CREATE TABLE J3_OVERVIEW_DOC ( ID NUMBER(19) NOT NULL, OVERVIEW_URL VARCHAR2(510) NOT NULL, OVERVIEW_URL_USE_TYPE VARCHAR2(510), TOMODEL_INSTANCE_INFO_ID NUMBER(19), ENTITY_KEY VARCHAR2(510) ); ALTER TABLE J3_OVERVIEW_DOC ADD CONSTRAINT J3_OVERVIEW_DOC_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_OVERVIEW_DOC_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_OVERVIEW_DOC_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_OVERVIEW_DOC_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), OVERVIEW_DOC_ID NUMBER(19) ); ALTER TABLE J3_OVERVIEW_DOC_DESCR ADD CONSTRAINT J3_OVERVIEW_DOC_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_PERSON_NAME ----------------------------------------------------------------------------- DROP TABLE J3_PERSON_NAME CASCADE CONSTRAINTS; CREATE TABLE J3_PERSON_NAME ( ID NUMBER(19) NOT NULL, LANG_CODE VARCHAR2(10), NAME VARCHAR2(510) NOT NULL, CONTACT_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_PERSON_NAME ADD CONSTRAINT J3_PERSON_NAME_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_PHONE ----------------------------------------------------------------------------- DROP TABLE J3_PHONE CASCADE CONSTRAINTS; CREATE TABLE J3_PHONE ( ID NUMBER(19) NOT NULL, PHONE_NUMBER VARCHAR2(100) NOT NULL, USE_TYPE VARCHAR2(510), CONTACT_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_PHONE ADD CONSTRAINT J3_PHONE_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_PUBLISHER ----------------------------------------------------------------------------- DROP TABLE J3_PUBLISHER CASCADE CONSTRAINTS; CREATE TABLE J3_PUBLISHER ( AUTHORIZED_NAME VARCHAR2(510) NOT NULL, EMAIL_ADDRESS VARCHAR2(510), IS_ADMIN VARCHAR2(10), IS_ENABLED VARCHAR2(10), MAX_BINDINGS_PER_SERVICE NUMBER(10), MAX_BUSINESSES NUMBER(10), MAX_SERVICES_PER_BUSINESS NUMBER(10), MAX_TMODELS NUMBER(10), PUBLISHER_NAME VARCHAR2(510) NOT NULL ); ALTER TABLE J3_PUBLISHER ADD CONSTRAINT J3_PUBLISHER_PK PRIMARY KEY (AUTHORIZED_NAME); ----------------------------------------------------------------------------- -- J3_PUBLISHER_ASSERTION ----------------------------------------------------------------------------- DROP TABLE J3_PUBLISHER_ASSERTION CASCADE CONSTRAINTS; CREATE TABLE J3_PUBLISHER_ASSERTION ( FROM_KEY VARCHAR2(510) NOT NULL, TO_KEY VARCHAR2(510) NOT NULL, FROM_CHECK VARCHAR2(10) NOT NULL, KEY_NAME VARCHAR2(510) NOT NULL, KEY_VALUE VARCHAR2(510) NOT NULL, TMODEL_KEY VARCHAR2(510) NOT NULL, TO_CHECK VARCHAR2(10) NOT NULL ); ALTER TABLE J3_PUBLISHER_ASSERTION ADD CONSTRAINT J3_PUBLISHER_ASSERTION_PK PRIMARY KEY (FROM_KEY,TO_KEY); ----------------------------------------------------------------------------- -- J3_SERVICE_CATEGORY_BAG ----------------------------------------------------------------------------- DROP TABLE J3_SERVICE_CATEGORY_BAG CASCADE CONSTRAINTS; CREATE TABLE J3_SERVICE_CATEGORY_BAG ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SERVICE_CATEGORY_BAG ADD CONSTRAINT J3_SERVICE_CATEGORY_BAG_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_SERVICE_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_SERVICE_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_SERVICE_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SERVICE_DESCR ADD CONSTRAINT J3_SERVICE_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_SERVICE_NAME ----------------------------------------------------------------------------- DROP TABLE J3_SERVICE_NAME CASCADE CONSTRAINTS; CREATE TABLE J3_SERVICE_NAME ( ID NUMBER(19) NOT NULL, LANG_CODE VARCHAR2(10), NAME VARCHAR2(510) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SERVICE_NAME ADD CONSTRAINT J3_SERVICE_NAME_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_SERVICE_PROJECTION ----------------------------------------------------------------------------- DROP TABLE J3_SERVICE_PROJECTION CASCADE CONSTRAINTS; CREATE TABLE J3_SERVICE_PROJECTION ( BUSINESS_KEY VARCHAR2(510) NOT NULL, SERVICE_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SERVICE_PROJECTION ADD CONSTRAINT J3_SERVICE_PROJECTION_PK PRIMARY KEY (BUSINESS_KEY,SERVICE_KEY); ----------------------------------------------------------------------------- -- J3_SUBSCRIPTION ----------------------------------------------------------------------------- DROP TABLE J3_SUBSCRIPTION CASCADE CONSTRAINTS; CREATE TABLE J3_SUBSCRIPTION ( SUBSCRIPTION_KEY VARCHAR2(510) NOT NULL, AUTHORIZED_NAME VARCHAR2(510) NOT NULL, BINDING_KEY VARCHAR2(510), BRIEF NUMBER(1), CREATE_DATE TIMESTAMP NOT NULL, EXPIRES_AFTER TIMESTAMP, LAST_NOTIFIED TIMESTAMP, MAX_ENTITIES NUMBER(10), NOTIFICATION_INTERVAL VARCHAR2(510), SUBSCRIPTION_FILTER CLOB NOT NULL ); ALTER TABLE J3_SUBSCRIPTION ADD CONSTRAINT J3_SUBSCRIPTION_PK PRIMARY KEY (SUBSCRIPTION_KEY); ----------------------------------------------------------------------------- -- J3_SUBSCRIPTION_CHUNK_TOKEN ----------------------------------------------------------------------------- DROP TABLE J3_SUBSCRIPTION_CHUNK_TOKEN CASCADE CONSTRAINTS; CREATE TABLE J3_SUBSCRIPTION_CHUNK_TOKEN ( CHUNK_TOKEN VARCHAR2(510) NOT NULL, DATA NUMBER(10) NOT NULL, END_POINT TIMESTAMP, EXPIRES_AFTER TIMESTAMP NOT NULL, START_POINT TIMESTAMP, SUBSCRIPTION_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SUBSCRIPTION_CHUNK_TOKEN ADD CONSTRAINT J3_SUBSCRIPTION_CHUNK_TOKEN_PK PRIMARY KEY (CHUNK_TOKEN); ----------------------------------------------------------------------------- -- J3_SUBSCRIPTION_MATCH ----------------------------------------------------------------------------- DROP TABLE J3_SUBSCRIPTION_MATCH CASCADE CONSTRAINTS; CREATE TABLE J3_SUBSCRIPTION_MATCH ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL, SUBSCRIPTION_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_SUBSCRIPTION_MATCH ADD CONSTRAINT J3_SUBSCRIPTION_MATCH_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TMODEL ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL ( ENTITY_KEY VARCHAR2(510) NOT NULL, DELETED NUMBER(1), LANG_CODE VARCHAR2(10), NAME VARCHAR2(510) NOT NULL ); ALTER TABLE J3_TMODEL ADD CONSTRAINT J3_TMODEL_PK PRIMARY KEY (ENTITY_KEY); ----------------------------------------------------------------------------- -- J3_TMODEL_CATEGORY_BAG ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL_CATEGORY_BAG CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL_CATEGORY_BAG ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_TMODEL_CATEGORY_BAG ADD CONSTRAINT J3_TMODEL_CATEGORY_BAG_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TMODEL_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_TMODEL_DESCR ADD CONSTRAINT J3_TMODEL_DESCR_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TMODEL_IDENTIFIER ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL_IDENTIFIER CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL_IDENTIFIER ( ID NUMBER(19) NOT NULL, KEY_NAME VARCHAR2(510), KEY_VALUE VARCHAR2(510) NOT NULL, TMODEL_KEY_REF VARCHAR2(510), ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_TMODEL_IDENTIFIER ADD CONSTRAINT J3_TMODEL_IDENTIFIER_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TMODEL_INSTANCE_INFO ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL_INSTANCE_INFO CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL_INSTANCE_INFO ( ID NUMBER(19) NOT NULL, INSTANCE_PARMS VARCHAR2(1024), TMODEL_KEY VARCHAR2(510) NOT NULL, ENTITY_KEY VARCHAR2(510) NOT NULL ); ALTER TABLE J3_TMODEL_INSTANCE_INFO ADD CONSTRAINT J3_TMODEL_INSTANCE_INFO_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TMODEL_INSTANCE_INFO_DESCR ----------------------------------------------------------------------------- DROP TABLE J3_TMODEL_INSTANCE_INFO_DESCR CASCADE CONSTRAINTS; CREATE TABLE J3_TMODEL_INSTANCE_INFO_DESCR ( ID NUMBER(19) NOT NULL, DESCR VARCHAR2(2048) NOT NULL, LANG_CODE VARCHAR2(10), TMODEL_INSTANCE_INFO_ID NUMBER(19) NOT NULL ); ALTER TABLE J3_TMODEL_INSTANCE_INFO_DESCR ADD CONSTRAINT J3_TMODEL_INSTANCE_INFO_DES_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_TRANSFER_TOKEN ----------------------------------------------------------------------------- DROP TABLE J3_TRANSFER_TOKEN CASCADE CONSTRAINTS; CREATE TABLE J3_TRANSFER_TOKEN ( TRANSFER_TOKEN VARCHAR2(102) NOT NULL, EXPIRATION_DATE TIMESTAMP NOT NULL ); ALTER TABLE J3_TRANSFER_TOKEN ADD CONSTRAINT J3_TRANSFER_TOKEN_PK PRIMARY KEY (TRANSFER_TOKEN); ----------------------------------------------------------------------------- -- J3_TRANSFER_TOKEN_KEYS ----------------------------------------------------------------------------- DROP TABLE J3_TRANSFER_TOKEN_KEYS CASCADE CONSTRAINTS; CREATE TABLE J3_TRANSFER_TOKEN_KEYS ( ID NUMBER(19) NOT NULL, ENTITY_KEY VARCHAR2(510), TRANSFER_TOKEN VARCHAR2(102) NOT NULL ); ALTER TABLE J3_TRANSFER_TOKEN_KEYS ADD CONSTRAINT J3_TRANSFER_TOKEN_KEYS_PK PRIMARY KEY (ID); ----------------------------------------------------------------------------- -- J3_UDDI_ENTITY ----------------------------------------------------------------------------- DROP TABLE J3_UDDI_ENTITY CASCADE CONSTRAINTS; CREATE TABLE J3_UDDI_ENTITY ( ENTITY_KEY VARCHAR2(510) NOT NULL, AUTHORIZED_NAME VARCHAR2(510) NOT NULL, CREATED TIMESTAMP, MODIFIED TIMESTAMP NOT NULL, MODIFIED_INCLUDING_CHILDREN TIMESTAMP, NODE_ID VARCHAR2(510) ); ALTER TABLE J3_UDDI_ENTITY ADD CONSTRAINT J3_UDDI_ENTITY_PK PRIMARY KEY (ENTITY_KEY); ----------------------------------------------------------------------------- -- LOG217 ----------------------------------------------------------------------------- DROP TABLE LOG217 CASCADE CONSTRAINTS; CREATE TABLE LOG217 ( ID_BATCH NUMBER(22), TRANSNAME VARCHAR2(255), STATUS VARCHAR2(15), LINES_READ NUMBER(22), LINES_WRITTEN NUMBER(22), LINES_UPDATED NUMBER(22), LINES_INPUT NUMBER(22), LINES_OUTPUT NUMBER(22), ERRORS NUMBER(22), STARTDATE DATE, ENDDATE DATE, LOGDATE DATE, DEPDATE DATE, REPLAYDATE DATE ); ----------------------------------------------------------------------------- -- MQ_BIG_LOB ----------------------------------------------------------------------------- DROP TABLE MQ_BIG_LOB CASCADE CONSTRAINTS; CREATE TABLE MQ_BIG_LOB ( LOB_ID NUMBER(10) NOT NULL, LOB_CONTENT BLOB, LOB_NAME VARCHAR2(100) ); ALTER TABLE MQ_BIG_LOB ADD CONSTRAINT MQ_BIG_LOB_PK PRIMARY KEY (LOB_ID); ----------------------------------------------------------------------------- -- MQ_BROKER ----------------------------------------------------------------------------- DROP TABLE MQ_BROKER CASCADE CONSTRAINTS; CREATE TABLE MQ_BROKER ( CA_DATE DATE, BROKER_ID NUMBER(10) NOT NULL, BROKER_NAME VARCHAR2(32), IS_PERSISTENT NUMBER(1) default 0, IS_USEMIRRQ NUMBER(1) default 1, MEM_MAXLIMIT VARCHAR2(50) default '200 mb', STORE_LIMITE VARCHAR2(50) default '500 mb', STORE_NAME VARCHAR2(50), TEMP_LIMITE VARCHAR2(250) default '200 mb', SERVER_IP VARCHAR2(100), JMX_PORT VARCHAR2(10) default '1099', JMX_CREATECON NUMBER(1) default 1, JMX_CREMBSERVER NUMBER(1) default 0, USE_CLUSTER NUMBER(1) default 0, NC_NAME VARCHAR2(32) default 'default_nc', NC_URI VARCHAR2(1000), DATADIRECTORY VARCHAR2(128), PA_DATASOURCE VARCHAR2(255), USE_SSL NUMBER(1) default 0, SSL_KS NUMBER(10), SSL_KSPASSWORD VARCHAR2(64), SSL_TS NUMBER(10), SSL_DIRECTORY VARCHAR2(200), SSL_TSPASSWORD VARCHAR2(64), IS_USEJMX NUMBER(1) default 1, USE_AUTH NUMBER(1) default 0, NEEDSUPDATE NUMBER(1) default 1, USE_PERMISSION NUMBER(1) default 0, USE_LOG NUMBER(1) default 0, PERSISTENT_TYPE NUMBER(1) default 0, MAXFILELENGTH VARCHAR2(50) default '20m', SYNCONWRITE NUMBER(1) default 0, CONDUITSUBSCRIPTIONS NUMBER(1) default 0 ); ALTER TABLE MQ_BROKER ADD CONSTRAINT MQ_BROKER_PK PRIMARY KEY (BROKER_ID); ----------------------------------------------------------------------------- -- MQ_CLIENT_CA ----------------------------------------------------------------------------- DROP TABLE MQ_CLIENT_CA CASCADE CONSTRAINTS; CREATE TABLE MQ_CLIENT_CA ( CA_ID NUMBER(10) NOT NULL, CA_NAME VARCHAR2(50), TS_FILE NUMBER(10), KS_FILE NUMBER(10), CA_DATE DATE, CA_DIRECTORY VARCHAR2(200) default 'd:/keystore', CA_TSORIN_NAME VARCHAR2(200), CA_KSORIN_NAME VARCHAR2(200), TS_PASSWORD VARCHAR2(50), KS_PASSWORD VARCHAR2(50), NEEDSUPDATE NUMBER(1) default 1 ); ALTER TABLE MQ_CLIENT_CA ADD CONSTRAINT MQ_CLIENT_CA_PK PRIMARY KEY (CA_ID); ----------------------------------------------------------------------------- -- MQ_CONNECTORS ----------------------------------------------------------------------------- DROP TABLE MQ_CONNECTORS CASCADE CONSTRAINTS; CREATE TABLE MQ_CONNECTORS ( BROKER_ID NUMBER(10), CONNECTOR_ID NUMBER(10) NOT NULL, CONNECTOR_URI VARCHAR2(255), CONNECTOR_NAME VARCHAR2(50), CON_PROTOCOL VARCHAR2(50), CLUSTER_URI VARCHAR2(255) ); ALTER TABLE MQ_CONNECTORS ADD CONSTRAINT MQ_CONNECTORS_PK PRIMARY KEY (CONNECTOR_ID); ----------------------------------------------------------------------------- -- MQ_CON_PARAMS ----------------------------------------------------------------------------- DROP TABLE MQ_CON_PARAMS CASCADE CONSTRAINTS; CREATE TABLE MQ_CON_PARAMS ( NODE_ID NUMBER(10) NOT NULL, NAME VARCHAR2(100) NOT NULL, VALUE VARCHAR2(100) ); ALTER TABLE MQ_CON_PARAMS ADD CONSTRAINT MQ_CON_PARAMS_PK PRIMARY KEY (NODE_ID,NAME); ----------------------------------------------------------------------------- -- MQ_GROUP ----------------------------------------------------------------------------- DROP TABLE MQ_GROUP CASCADE CONSTRAINTS; CREATE TABLE MQ_GROUP ( BROKER_ID NUMBER(10), GROUP_ID NUMBER(10) NOT NULL, GROUP_NAME VARCHAR2(100) ); ALTER TABLE MQ_GROUP ADD CONSTRAINT MQ_GROUP_PK PRIMARY KEY (GROUP_ID); ----------------------------------------------------------------------------- -- MQ_HUGEMESSAGE_SCHEDULE ----------------------------------------------------------------------------- DROP TABLE MQ_HUGEMESSAGE_SCHEDULE CASCADE CONSTRAINTS; CREATE TABLE MQ_HUGEMESSAGE_SCHEDULE ( TASK_ID NUMBER(10) NOT NULL, SCHEDULE_ID VARCHAR2(50) NOT NULL, STATES CLOB, FILE_PATH VARCHAR2(500), FILE_SIZE NUMBER(22), SEGMENT_SIZE NUMBER(22), DEST_NAME VARCHAR2(30), FINISHED VARCHAR2(2) default '0', REG_DATE TIMESTAMP default 'SYSTIMESTAMP', ISBROKE NUMBER(1) default 1, USEPARREL NUMBER(1) default 1, TASKTYPE NUMBER(1) default 0 NOT NULL, SENDPATH VARCHAR2(500), MACHINE_UUID VARCHAR2(100), BUSSINESS_ID VARCHAR2(255) ); ALTER TABLE MQ_HUGEMESSAGE_SCHEDULE ADD CONSTRAINT MQ_HUGEMESSAGE_SCHEDULE_PK PRIMARY KEY (TASK_ID); ----------------------------------------------------------------------------- -- MQ_HUGEMESSAGE_SCHEDULECHECK ----------------------------------------------------------------------------- DROP TABLE MQ_HUGEMESSAGE_SCHEDULECHECK CASCADE CONSTRAINTS; CREATE TABLE MQ_HUGEMESSAGE_SCHEDULECHECK ( TASK_ID NUMBER(10) NOT NULL, SCHEDULE_ID VARCHAR2(50) NOT NULL, STATES CLOB, FILE_PATH VARCHAR2(500), FILE_SIZE NUMBER(22), SEGMENT_SIZE NUMBER(22), DEST_NAME VARCHAR2(30), FINISHED VARCHAR2(2) default '0', REG_DATE TIMESTAMP default 'SYSTIMESTAMP', ISBROKE NUMBER(1) default 1, USEPARREL NUMBER(1) default 1, TASKTYPE NUMBER(1) default 0 NOT NULL, SENDPATH VARCHAR2(500), MACHINE_UUID VARCHAR2(100), BUSSINESS_ID VARCHAR2(255) ); ----------------------------------------------------------------------------- -- MQ_MEM_CONF ----------------------------------------------------------------------------- DROP TABLE MQ_MEM_CONF CASCADE CONSTRAINTS; CREATE TABLE MQ_MEM_CONF ( CONFIG_ID NUMBER(10) NOT NULL, BROKER_ID NUMBER(10), OBJECT_TYPE NUMBER(1) default 0, OBJECT_NAME VARCHAR2(100), MEM_LIMIT VARCHAR2(100) default '5 mb', DEAD_PREFIX VARCHAR2(100), PRODUCERFLOWCONTROL NUMBER(1) default 0 ); ALTER TABLE MQ_MEM_CONF ADD CONSTRAINT MQ_MEM_CONF_PK PRIMARY KEY (CONFIG_ID); ----------------------------------------------------------------------------- -- MQ_MIRROR_TABLE ----------------------------------------------------------------------------- DROP TABLE MQ_MIRROR_TABLE CASCADE CONSTRAINTS; CREATE TABLE MQ_MIRROR_TABLE ( MIRROR_NAME VARCHAR2(255), MIRROR_ID NUMBER(10) NOT NULL, BROKER_ID NUMBER(10), REMARK VARCHAR2(500), MIRROR_PREFIX VARCHAR2(100), COPYMESSAGE NUMBER(1) default 0 ); ALTER TABLE MQ_MIRROR_TABLE ADD CONSTRAINT MQ_MIRROR_TABLE_PK PRIMARY KEY (MIRROR_ID); ----------------------------------------------------------------------------- -- MQ_MON_TABLE ----------------------------------------------------------------------------- DROP TABLE MQ_MON_TABLE CASCADE CONSTRAINTS; CREATE TABLE MQ_MON_TABLE ( MONITOR_ID NUMBER(10) NOT NULL, MQ_MONITOR_IP VARCHAR2(100), MQ_MONITOR_PORT VARCHAR2(10), MQ_JMXMON_PORT VARCHAR2(10), MQ_TCP_PORT VARCHAR2(10), MQ_USER VARCHAR2(50), MQ_PASSWORD VARCHAR2(50), MONITOR_NAME VARCHAR2(100) ); ALTER TABLE MQ_MON_TABLE ADD CONSTRAINT MQ_MON_TABLE_PK PRIMARY KEY (MONITOR_ID); ----------------------------------------------------------------------------- -- MQ_NODE ----------------------------------------------------------------------------- DROP TABLE MQ_NODE CASCADE CONSTRAINTS; CREATE TABLE MQ_NODE ( NODE_ID NUMBER(10) NOT NULL, NODE_FACTORY_ID NUMBER(10), NODE_NAME VARCHAR2(64), DEST_TYPE NUMBER(1) default 0, DESTINATION VARCHAR2(32), REMARK VARCHAR2(256), ISVALIDATE NUMBER(1) default 0, ISPERSISTENT NUMBER(1) default 0, PRIORITY NUMBER(2) default 1, EXPIRATION VARCHAR2(100) default '0' ); ALTER TABLE MQ_NODE ADD CONSTRAINT MQ_NODE_PK PRIMARY KEY (NODE_ID); ----------------------------------------------------------------------------- -- MQ_NODE_FACTORY ----------------------------------------------------------------------------- DROP TABLE MQ_NODE_FACTORY CASCADE CONSTRAINTS; CREATE TABLE MQ_NODE_FACTORY ( NODE_FACTORY_ID NUMBER(10) NOT NULL, NODE_FACTORY_NAME VARCHAR2(100), SERVER_URL VARCHAR2(4000), USE_AUTH NUMBER(1) default 0, USER_NAME VARCHAR2(50), USER_PASSWORD VARCHAR2(50), CA_ID NUMBER(10), USE_SSL NUMBER(1) default 0, USE_FAILOVER NUMBER(1) default 1, RECONNECTDELAY NUMBER(22) default 10, MAXRECONNECTDELAY NUMBER(22) default 30000, USEEXPONENTIALBACKOFF NUMBER(1) default 1, BACKOFFMUTIPLER NUMBER(10) default 2, MAXRECONNECTTIMES NUMBER(4) default 5, RANDOMIZE NUMBER(1) default 1, CON_COLLISIONAVOIDANCEPERCENT NUMBER(4) default 15, CON_MAXIMUMREDELIVERIES NUMBER(4) default 6, CON_INITIALREDELIVERYDELAY NUMBER(22) default 1000, CON_USECOLLISIONAVOIDANCE NUMBER(1) default 0, CON_USEEXPONENTIALBACKOFF NUMBER(1) default 0, CON_BACKOFFMULTIPLIER NUMBER(4) default 5 ); ALTER TABLE MQ_NODE_FACTORY ADD CONSTRAINT MQ_NODE_FACTORY_PK PRIMARY KEY (NODE_FACTORY_ID); ----------------------------------------------------------------------------- -- MQ_PERMISSIONS ----------------------------------------------------------------------------- DROP TABLE MQ_PERMISSIONS CASCADE CONSTRAINTS; CREATE TABLE MQ_PERMISSIONS ( RESOURCE_TYPE VARCHAR2(100) default 'queue' NOT NULL, RES_NAME VARCHAR2(100) NOT NULL, RES_OP VARCHAR2(50) NOT NULL, GROUP_TYPE VARCHAR2(50) default 'group' NOT NULL, GROUP_NAME VARCHAR2(100) NOT NULL, BROKER_ID NUMBER(10) NOT NULL, AUTHOR VARCHAR2(100) default 'admin', AUTH_DATE DATE ); ALTER TABLE MQ_PERMISSIONS ADD CONSTRAINT MQ_PERMISSIONS_PK PRIMARY KEY (RESOURCE_TYPE,RES_NAME,RES_OP,GROUP_TYPE,GROUP_NAME,BROKER_ID); ----------------------------------------------------------------------------- -- MQ_POLICY_TABLE ----------------------------------------------------------------------------- DROP TABLE MQ_POLICY_TABLE CASCADE CONSTRAINTS; CREATE TABLE MQ_POLICY_TABLE ( BROKER_ID NUMBER(10), POLICY_ID NUMBER(10) ); ----------------------------------------------------------------------------- -- MQ_PROPERTIES ----------------------------------------------------------------------------- DROP TABLE MQ_PROPERTIES CASCADE CONSTRAINTS; CREATE TABLE MQ_PROPERTIES ( PRO_ID NUMBER(10) NOT NULL, TASK_ID NUMBER(10), PRO_NAME VARCHAR2(100) NOT NULL, PRO_TYPE VARCHAR2(20) default 'string', STRING_VALUE CLOB, VALUE_NUMBER NUMBER(22), VALUE_OBJECT BLOB, VALUE_BOOLEAN NUMBER(1) default 0 ); ALTER TABLE MQ_PROPERTIES ADD CONSTRAINT MQ_PROPERTIES_PK PRIMARY KEY (PRO_ID); ----------------------------------------------------------------------------- -- MQ_REAL_NODES ----------------------------------------------------------------------------- DROP TABLE MQ_REAL_NODES CASCADE CONSTRAINTS; CREATE TABLE MQ_REAL_NODES ( VIRTUAL_NODEID NUMBER(10), REAL_NODE_ID NUMBER(10) NOT NULL, DESTINATION_TYPE NUMBER(1) default 0, DESTINATION_NAME VARCHAR2(100) NOT NULL ); ALTER TABLE MQ_REAL_NODES ADD CONSTRAINT MQ_REAL_NODES_PK PRIMARY KEY (REAL_NODE_ID); ----------------------------------------------------------------------------- -- MQ_ROUTENODE ----------------------------------------------------------------------------- DROP TABLE MQ_ROUTENODE CASCADE CONSTRAINTS; CREATE TABLE MQ_ROUTENODE ( BROKER_ID NUMBER(10), NODE_ID NUMBER(10) ); ----------------------------------------------------------------------------- -- MQ_ROUTERS ----------------------------------------------------------------------------- DROP TABLE MQ_ROUTERS CASCADE CONSTRAINTS; CREATE TABLE MQ_ROUTERS ( ROUTER_ID NUMBER(10) NOT NULL, BROKER_ID NUMBER(10), ROUTER_NAME VARCHAR2(64), ROUTER_REGULAR CLOB, ISVALID NUMBER(1) default 1, IMPORTCLASS CLOB, ORDERBY NUMBER(5) ); ALTER TABLE MQ_ROUTERS ADD CONSTRAINT MQ_ROUTERS_PK PRIMARY KEY (ROUTER_ID); ----------------------------------------------------------------------------- -- MQ_RULES_TPL ----------------------------------------------------------------------------- DROP TABLE MQ_RULES_TPL CASCADE CONSTRAINTS; CREATE TABLE MQ_RULES_TPL ( RULE_TPL_ID NUMBER(10) NOT NULL, RULES CLOB, RULES_NAME VARCHAR2(200), MODIFIABLE NUMBER(1) default 1, TPL_AUTH VARCHAR2(50) default 'admin', TPL_DESC CLOB, IMPORTCLASS CLOB, ORDERBY NUMBER(4), RUTE_IMAGE VARCHAR2(255), TPL_TYPE NUMBER(1) default null ); ALTER TABLE MQ_RULES_TPL ADD CONSTRAINT MQ_RULES_TPL_PK PRIMARY KEY (RULE_TPL_ID); ----------------------------------------------------------------------------- -- MQ_SEGMENT_RECV_CACHE ----------------------------------------------------------------------------- DROP TABLE MQ_SEGMENT_RECV_CACHE CASCADE CONSTRAINTS; CREATE TABLE MQ_SEGMENT_RECV_CACHE ( SEGMENT_ID VARCHAR2(500) NOT NULL, CONTENT BLOB, OFFSET NUMBER(22), FILENAME VARCHAR2(500), SCHEDULEID VARCHAR2(50), FILESIZE NUMBER(22), SEGMENTSIZE NUMBER(22), REG_DATE TIMESTAMP default 'SYSTIMESTAMP', SEND_DESTINCTION VARCHAR2(200) NOT NULL ); ALTER TABLE MQ_SEGMENT_RECV_CACHE ADD CONSTRAINT MQ_SEGMENT_RECV_CACHE_PK PRIMARY KEY (SEGMENT_ID,SEND_DESTINCTION); ----------------------------------------------------------------------------- -- MQ_SEGMENT_RECV_CACHECHECK ----------------------------------------------------------------------------- DROP TABLE MQ_SEGMENT_RECV_CACHECHECK CASCADE CONSTRAINTS; CREATE TABLE MQ_SEGMENT_RECV_CACHECHECK ( SEGMENT_ID VARCHAR2(500) NOT NULL, CONTENT BLOB, OFFSET NUMBER(22), FILENAME VARCHAR2(500), SCHEDULEID VARCHAR2(50), FILESIZE NUMBER(22), SEGMENTSIZE NUMBER(22), REG_DATE TIMESTAMP default 'SYSTIMESTAMP', SEND_DESTINCTION VARCHAR2(200) NOT NULL ); ----------------------------------------------------------------------------- -- MQ_USERS ----------------------------------------------------------------------------- DROP TABLE MQ_USERS CASCADE CONSTRAINTS; CREATE TABLE MQ_USERS ( BROKER_ID NUMBER(10), USER_ID NUMBER(10) NOT NULL, USER_NAME VARCHAR2(50), USER_PASSWORD VARCHAR2(50) ); ALTER TABLE MQ_USERS ADD CONSTRAINT MQ_USERS_PK PRIMARY KEY (USER_ID); ----------------------------------------------------------------------------- -- MQ_VIRTUAL_NODES ----------------------------------------------------------------------------- DROP TABLE MQ_VIRTUAL_NODES CASCADE CONSTRAINTS; CREATE TABLE MQ_VIRTUAL_NODES ( BROKER_ID NUMBER(10), NODE_NAME VARCHAR2(100) NOT NULL, VIRTUAL_NODEID NUMBER(10) NOT NULL, NODE_TYPE NUMBER(1) default 0, COPYMESSAGE NUMBER(1) default 1, FORWARDONLY NUMBER(1) default 1 ); ALTER TABLE MQ_VIRTUAL_NODES ADD CONSTRAINT MQ_VIRTUAL_NODES_PK PRIMARY KEY (VIRTUAL_NODEID); ----------------------------------------------------------------------------- -- R_CLUSTER ----------------------------------------------------------------------------- DROP TABLE R_CLUSTER CASCADE CONSTRAINTS; CREATE TABLE R_CLUSTER ( ID_CLUSTER NUMBER(22) NOT NULL, NAME VARCHAR2(255), BASE_PORT VARCHAR2(255), SOCKETS_BUFFER_SIZE VARCHAR2(255), SOCKETS_FLUSH_INTERVAL VARCHAR2(255), SOCKETS_COMPRESSED CHAR(1), DYNAMIC_CLUSTER CHAR(1) ); ALTER TABLE R_CLUSTER ADD CONSTRAINT R_CLUSTER_PK PRIMARY KEY (ID_CLUSTER); ----------------------------------------------------------------------------- -- R_CLUSTER_SLAVE ----------------------------------------------------------------------------- DROP TABLE R_CLUSTER_SLAVE CASCADE CONSTRAINTS; CREATE TABLE R_CLUSTER_SLAVE ( ID_CLUSTER_SLAVE NUMBER(22) NOT NULL, ID_CLUSTER NUMBER(22), ID_SLAVE NUMBER(22) ); ALTER TABLE R_CLUSTER_SLAVE ADD CONSTRAINT R_CLUSTER_SLAVE_PK PRIMARY KEY (ID_CLUSTER_SLAVE); ----------------------------------------------------------------------------- -- R_CONDITION ----------------------------------------------------------------------------- DROP TABLE R_CONDITION CASCADE CONSTRAINTS; CREATE TABLE R_CONDITION ( ID_CONDITION NUMBER(22) NOT NULL, ID_CONDITION_PARENT NUMBER(22), NEGATED CHAR(1), OPERATOR VARCHAR2(255), LEFT_NAME VARCHAR2(255), CONDITION_FUNCTION VARCHAR2(255), RIGHT_NAME VARCHAR2(255), ID_VALUE_RIGHT NUMBER(22) ); ALTER TABLE R_CONDITION ADD CONSTRAINT R_CONDITION_PK PRIMARY KEY (ID_CONDITION); ----------------------------------------------------------------------------- -- R_DATABASE ----------------------------------------------------------------------------- DROP TABLE R_DATABASE CASCADE CONSTRAINTS; CREATE TABLE R_DATABASE ( ID_DATABASE NUMBER(22) NOT NULL, NAME VARCHAR2(255), ID_DATABASE_TYPE NUMBER(22), ID_DATABASE_CONTYPE NUMBER(22), HOST_NAME VARCHAR2(255), DATABASE_NAME VARCHAR2(255), PORT NUMBER(22), USERNAME VARCHAR2(255), PASSWORD VARCHAR2(255), SERVERNAME VARCHAR2(255), DATA_TBS VARCHAR2(255), INDEX_TBS VARCHAR2(255) ); ALTER TABLE R_DATABASE ADD CONSTRAINT R_DATABASE_PK PRIMARY KEY (ID_DATABASE); ----------------------------------------------------------------------------- -- R_DATABASE_ATTRIBUTE ----------------------------------------------------------------------------- DROP TABLE R_DATABASE_ATTRIBUTE CASCADE CONSTRAINTS; CREATE TABLE R_DATABASE_ATTRIBUTE ( ID_DATABASE_ATTRIBUTE NUMBER(22) NOT NULL, ID_DATABASE NUMBER(22), CODE VARCHAR2(255), VALUE_STR CLOB ); ALTER TABLE R_DATABASE_ATTRIBUTE ADD CONSTRAINT R_DATABASE_ATTRIBUTE_PK PRIMARY KEY (ID_DATABASE_ATTRIBUTE); ----------------------------------------------------------------------------- -- R_DATABASE_CONTYPE ----------------------------------------------------------------------------- DROP TABLE R_DATABASE_CONTYPE CASCADE CONSTRAINTS; CREATE TABLE R_DATABASE_CONTYPE ( ID_DATABASE_CONTYPE NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_DATABASE_CONTYPE ADD CONSTRAINT R_DATABASE_CONTYPE_PK PRIMARY KEY (ID_DATABASE_CONTYPE); ----------------------------------------------------------------------------- -- R_DATABASE_TYPE ----------------------------------------------------------------------------- DROP TABLE R_DATABASE_TYPE CASCADE CONSTRAINTS; CREATE TABLE R_DATABASE_TYPE ( ID_DATABASE_TYPE NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_DATABASE_TYPE ADD CONSTRAINT R_DATABASE_TYPE_PK PRIMARY KEY (ID_DATABASE_TYPE); ----------------------------------------------------------------------------- -- R_DEPENDENCY ----------------------------------------------------------------------------- DROP TABLE R_DEPENDENCY CASCADE CONSTRAINTS; CREATE TABLE R_DEPENDENCY ( ID_DEPENDENCY NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_DATABASE NUMBER(22), TABLE_NAME VARCHAR2(255), FIELD_NAME VARCHAR2(255) ); ALTER TABLE R_DEPENDENCY ADD CONSTRAINT R_DEPENDENCY_PK PRIMARY KEY (ID_DEPENDENCY); ----------------------------------------------------------------------------- -- R_DIRECTORY ----------------------------------------------------------------------------- DROP TABLE R_DIRECTORY CASCADE CONSTRAINTS; CREATE TABLE R_DIRECTORY ( ID_DIRECTORY NUMBER(22) NOT NULL, ID_DIRECTORY_PARENT NUMBER(22), DIRECTORY_NAME VARCHAR2(255) ); ALTER TABLE R_DIRECTORY ADD CONSTRAINT R_DIRECTORY_PK PRIMARY KEY (ID_DIRECTORY); ----------------------------------------------------------------------------- -- R_JOB ----------------------------------------------------------------------------- DROP TABLE R_JOB CASCADE CONSTRAINTS; CREATE TABLE R_JOB ( ID_JOB NUMBER(22) NOT NULL, ID_DIRECTORY NUMBER(22), NAME VARCHAR2(255), DESCRIPTION CLOB, EXTENDED_DESCRIPTION CLOB, JOB_VERSION VARCHAR2(255), JOB_STATUS NUMBER(22), ID_DATABASE_LOG NUMBER(22), TABLE_NAME_LOG VARCHAR2(255), CREATED_USER VARCHAR2(255), CREATED_DATE DATE, MODIFIED_USER VARCHAR2(255), MODIFIED_DATE DATE, USE_BATCH_ID CHAR(1), PASS_BATCH_ID CHAR(1), USE_LOGFIELD CHAR(1), SHARED_FILE VARCHAR2(255) ); ALTER TABLE R_JOB ADD CONSTRAINT R_JOB_PK PRIMARY KEY (ID_JOB); ----------------------------------------------------------------------------- -- R_JOBENTRY ----------------------------------------------------------------------------- DROP TABLE R_JOBENTRY CASCADE CONSTRAINTS; CREATE TABLE R_JOBENTRY ( ID_JOBENTRY NUMBER(22) NOT NULL, ID_JOB NUMBER(22), ID_JOBENTRY_TYPE NUMBER(22), NAME VARCHAR2(255), DESCRIPTION CLOB ); ALTER TABLE R_JOBENTRY ADD CONSTRAINT R_JOBENTRY_PK PRIMARY KEY (ID_JOBENTRY); ----------------------------------------------------------------------------- -- R_JOBENTRY_ATTRIBUTE ----------------------------------------------------------------------------- DROP TABLE R_JOBENTRY_ATTRIBUTE CASCADE CONSTRAINTS; CREATE TABLE R_JOBENTRY_ATTRIBUTE ( ID_JOBENTRY_ATTRIBUTE NUMBER(22) NOT NULL, ID_JOB NUMBER(22), ID_JOBENTRY NUMBER(22), NR NUMBER(22), CODE VARCHAR2(255), VALUE_NUM NUMBER(13,2), VALUE_STR CLOB ); ALTER TABLE R_JOBENTRY_ATTRIBUTE ADD CONSTRAINT R_JOBENTRY_ATTRIBUTE_PK PRIMARY KEY (ID_JOBENTRY_ATTRIBUTE); ----------------------------------------------------------------------------- -- R_JOBENTRY_COPY ----------------------------------------------------------------------------- DROP TABLE R_JOBENTRY_COPY CASCADE CONSTRAINTS; CREATE TABLE R_JOBENTRY_COPY ( ID_JOBENTRY_COPY NUMBER(22) NOT NULL, ID_JOBENTRY NUMBER(22), ID_JOB NUMBER(22), ID_JOBENTRY_TYPE NUMBER(22), NR NUMBER(22), GUI_LOCATION_X NUMBER(22), GUI_LOCATION_Y NUMBER(22), GUI_DRAW CHAR(1), PARALLEL CHAR(1) ); ALTER TABLE R_JOBENTRY_COPY ADD CONSTRAINT R_JOBENTRY_COPY_PK PRIMARY KEY (ID_JOBENTRY_COPY); ----------------------------------------------------------------------------- -- R_JOBENTRY_TYPE ----------------------------------------------------------------------------- DROP TABLE R_JOBENTRY_TYPE CASCADE CONSTRAINTS; CREATE TABLE R_JOBENTRY_TYPE ( ID_JOBENTRY_TYPE NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_JOBENTRY_TYPE ADD CONSTRAINT R_JOBENTRY_TYPE_PK PRIMARY KEY (ID_JOBENTRY_TYPE); ----------------------------------------------------------------------------- -- R_JOB_ATTRIBUTE ----------------------------------------------------------------------------- DROP TABLE R_JOB_ATTRIBUTE CASCADE CONSTRAINTS; CREATE TABLE R_JOB_ATTRIBUTE ( ID_JOB_ATTRIBUTE NUMBER(22) NOT NULL, ID_JOB NUMBER(22), NR NUMBER(22), CODE VARCHAR2(255), VALUE_NUM NUMBER(22), VALUE_STR CLOB ); ALTER TABLE R_JOB_ATTRIBUTE ADD CONSTRAINT R_JOB_ATTRIBUTE_PK PRIMARY KEY (ID_JOB_ATTRIBUTE); ----------------------------------------------------------------------------- -- R_JOB_HOP ----------------------------------------------------------------------------- DROP TABLE R_JOB_HOP CASCADE CONSTRAINTS; CREATE TABLE R_JOB_HOP ( ID_JOB_HOP NUMBER(22) NOT NULL, ID_JOB NUMBER(22), ID_JOBENTRY_COPY_FROM NUMBER(22), ID_JOBENTRY_COPY_TO NUMBER(22), ENABLED CHAR(1), EVALUATION CHAR(1), UNCONDITIONAL CHAR(1) ); ALTER TABLE R_JOB_HOP ADD CONSTRAINT R_JOB_HOP_PK PRIMARY KEY (ID_JOB_HOP); ----------------------------------------------------------------------------- -- R_JOB_NOTE ----------------------------------------------------------------------------- DROP TABLE R_JOB_NOTE CASCADE CONSTRAINTS; CREATE TABLE R_JOB_NOTE ( ID_JOB NUMBER(22), ID_NOTE NUMBER(22) ); ----------------------------------------------------------------------------- -- R_LOG ----------------------------------------------------------------------------- DROP TABLE R_LOG CASCADE CONSTRAINTS; CREATE TABLE R_LOG ( ID_LOG NUMBER(22) NOT NULL, NAME VARCHAR2(255), ID_LOGLEVEL NUMBER(22), LOGTYPE VARCHAR2(255), FILENAME VARCHAR2(255), FILEEXTENTION VARCHAR2(255), ADD_DATE CHAR(1), ADD_TIME CHAR(1), ID_DATABASE_LOG NUMBER(22), TABLE_NAME_LOG VARCHAR2(255) ); ALTER TABLE R_LOG ADD CONSTRAINT R_LOG_PK PRIMARY KEY (ID_LOG); ----------------------------------------------------------------------------- -- R_LOGLEVEL ----------------------------------------------------------------------------- DROP TABLE R_LOGLEVEL CASCADE CONSTRAINTS; CREATE TABLE R_LOGLEVEL ( ID_LOGLEVEL NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_LOGLEVEL ADD CONSTRAINT R_LOGLEVEL_PK PRIMARY KEY (ID_LOGLEVEL); ----------------------------------------------------------------------------- -- R_NOTE ----------------------------------------------------------------------------- DROP TABLE R_NOTE CASCADE CONSTRAINTS; CREATE TABLE R_NOTE ( ID_NOTE NUMBER(22) NOT NULL, VALUE_STR CLOB, GUI_LOCATION_X NUMBER(22), GUI_LOCATION_Y NUMBER(22), GUI_LOCATION_WIDTH NUMBER(22), GUI_LOCATION_HEIGHT NUMBER(22) ); ALTER TABLE R_NOTE ADD CONSTRAINT R_NOTE_PK PRIMARY KEY (ID_NOTE); ----------------------------------------------------------------------------- -- R_PARTITION ----------------------------------------------------------------------------- DROP TABLE R_PARTITION CASCADE CONSTRAINTS; CREATE TABLE R_PARTITION ( ID_PARTITION NUMBER(22) NOT NULL, ID_PARTITION_SCHEMA NUMBER(22), PARTITION_ID VARCHAR2(255) ); ALTER TABLE R_PARTITION ADD CONSTRAINT R_PARTITION_PK PRIMARY KEY (ID_PARTITION); ----------------------------------------------------------------------------- -- R_PARTITION_SCHEMA ----------------------------------------------------------------------------- DROP TABLE R_PARTITION_SCHEMA CASCADE CONSTRAINTS; CREATE TABLE R_PARTITION_SCHEMA ( ID_PARTITION_SCHEMA NUMBER(22) NOT NULL, NAME VARCHAR2(255), DYNAMIC_DEFINITION CHAR(1), PARTITIONS_PER_SLAVE VARCHAR2(255) ); ALTER TABLE R_PARTITION_SCHEMA ADD CONSTRAINT R_PARTITION_SCHEMA_PK PRIMARY KEY (ID_PARTITION_SCHEMA); ----------------------------------------------------------------------------- -- R_PERMISSION ----------------------------------------------------------------------------- DROP TABLE R_PERMISSION CASCADE CONSTRAINTS; CREATE TABLE R_PERMISSION ( ID_PERMISSION NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_PERMISSION ADD CONSTRAINT R_PERMISSION_PK PRIMARY KEY (ID_PERMISSION); ----------------------------------------------------------------------------- -- R_PROFILE ----------------------------------------------------------------------------- DROP TABLE R_PROFILE CASCADE CONSTRAINTS; CREATE TABLE R_PROFILE ( ID_PROFILE NUMBER(22) NOT NULL, NAME VARCHAR2(255), DESCRIPTION VARCHAR2(255) ); ALTER TABLE R_PROFILE ADD CONSTRAINT R_PROFILE_PK PRIMARY KEY (ID_PROFILE); ----------------------------------------------------------------------------- -- R_PROFILE_PERMISSION ----------------------------------------------------------------------------- DROP TABLE R_PROFILE_PERMISSION CASCADE CONSTRAINTS; CREATE TABLE R_PROFILE_PERMISSION ( ID_PROFILE NUMBER(22), ID_PERMISSION NUMBER(22) ); ----------------------------------------------------------------------------- -- R_REPOSITORY_LOG ----------------------------------------------------------------------------- DROP TABLE R_REPOSITORY_LOG CASCADE CONSTRAINTS; CREATE TABLE R_REPOSITORY_LOG ( ID_REPOSITORY_LOG NUMBER(22) NOT NULL, REP_VERSION VARCHAR2(255), LOG_DATE DATE, LOG_USER VARCHAR2(255), OPERATION_DESC CLOB ); ALTER TABLE R_REPOSITORY_LOG ADD CONSTRAINT R_REPOSITORY_LOG_PK PRIMARY KEY (ID_REPOSITORY_LOG); ----------------------------------------------------------------------------- -- R_SLAVE ----------------------------------------------------------------------------- DROP TABLE R_SLAVE CASCADE CONSTRAINTS; CREATE TABLE R_SLAVE ( ID_SLAVE NUMBER(22) NOT NULL, NAME VARCHAR2(255), HOST_NAME VARCHAR2(255), PORT VARCHAR2(255), USERNAME VARCHAR2(255), PASSWORD VARCHAR2(255), PROXY_HOST_NAME VARCHAR2(255), PROXY_PORT VARCHAR2(255), NON_PROXY_HOSTS VARCHAR2(255), MASTER CHAR(1) ); ALTER TABLE R_SLAVE ADD CONSTRAINT R_SLAVE_PK PRIMARY KEY (ID_SLAVE); ----------------------------------------------------------------------------- -- R_STEP ----------------------------------------------------------------------------- DROP TABLE R_STEP CASCADE CONSTRAINTS; CREATE TABLE R_STEP ( ID_STEP NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), NAME VARCHAR2(255), DESCRIPTION CLOB, ID_STEP_TYPE NUMBER(22), DISTRIBUTE CHAR(1), COPIES NUMBER(22), GUI_LOCATION_X NUMBER(22), GUI_LOCATION_Y NUMBER(22), GUI_DRAW CHAR(1) ); ALTER TABLE R_STEP ADD CONSTRAINT R_STEP_PK PRIMARY KEY (ID_STEP); ----------------------------------------------------------------------------- -- R_STEP_ATTRIBUTE ----------------------------------------------------------------------------- DROP TABLE R_STEP_ATTRIBUTE CASCADE CONSTRAINTS; CREATE TABLE R_STEP_ATTRIBUTE ( ID_STEP_ATTRIBUTE NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_STEP NUMBER(22), NR NUMBER(22), CODE VARCHAR2(255), VALUE_NUM NUMBER(22), VALUE_STR CLOB ); ALTER TABLE R_STEP_ATTRIBUTE ADD CONSTRAINT R_STEP_ATTRIBUTE_PK PRIMARY KEY (ID_STEP_ATTRIBUTE); ----------------------------------------------------------------------------- -- R_STEP_DATABASE ----------------------------------------------------------------------------- DROP TABLE R_STEP_DATABASE CASCADE CONSTRAINTS; CREATE TABLE R_STEP_DATABASE ( ID_TRANSFORMATION NUMBER(22), ID_STEP NUMBER(22), ID_DATABASE NUMBER(22) ); ----------------------------------------------------------------------------- -- R_STEP_TYPE ----------------------------------------------------------------------------- DROP TABLE R_STEP_TYPE CASCADE CONSTRAINTS; CREATE TABLE R_STEP_TYPE ( ID_STEP_TYPE NUMBER(22) NOT NULL, CODE VARCHAR2(255), DESCRIPTION VARCHAR2(255), HELPTEXT VARCHAR2(255) ); ALTER TABLE R_STEP_TYPE ADD CONSTRAINT R_STEP_TYPE_PK PRIMARY KEY (ID_STEP_TYPE); ----------------------------------------------------------------------------- -- R_TRANSFORMATION ----------------------------------------------------------------------------- DROP TABLE R_TRANSFORMATION CASCADE CONSTRAINTS; CREATE TABLE R_TRANSFORMATION ( ID_TRANSFORMATION NUMBER(22) NOT NULL, ID_DIRECTORY NUMBER(22), NAME VARCHAR2(255), DESCRIPTION CLOB, EXTENDED_DESCRIPTION CLOB, TRANS_VERSION VARCHAR2(255), TRANS_STATUS NUMBER(22), ID_STEP_READ NUMBER(22), ID_STEP_WRITE NUMBER(22), ID_STEP_INPUT NUMBER(22), ID_STEP_OUTPUT NUMBER(22), ID_STEP_UPDATE NUMBER(22), ID_DATABASE_LOG NUMBER(22), TABLE_NAME_LOG VARCHAR2(255), USE_BATCHID CHAR(1), USE_LOGFIELD CHAR(1), ID_DATABASE_MAXDATE NUMBER(22), TABLE_NAME_MAXDATE VARCHAR2(255), FIELD_NAME_MAXDATE VARCHAR2(255), OFFSET_MAXDATE NUMBER(12,2), DIFF_MAXDATE NUMBER(12,2), CREATED_USER VARCHAR2(255), CREATED_DATE DATE, MODIFIED_USER VARCHAR2(255), MODIFIED_DATE DATE, SIZE_ROWSET NUMBER(22) ); ALTER TABLE R_TRANSFORMATION ADD CONSTRAINT R_TRANSFORMATION_PK PRIMARY KEY (ID_TRANSFORMATION); ----------------------------------------------------------------------------- -- R_TRANS_ATTRIBUTE ----------------------------------------------------------------------------- DROP TABLE R_TRANS_ATTRIBUTE CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_ATTRIBUTE ( ID_TRANS_ATTRIBUTE NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), NR NUMBER(22), CODE VARCHAR2(255), VALUE_NUM NUMBER(22), VALUE_STR CLOB ); ALTER TABLE R_TRANS_ATTRIBUTE ADD CONSTRAINT R_TRANS_ATTRIBUTE_PK PRIMARY KEY (ID_TRANS_ATTRIBUTE); ----------------------------------------------------------------------------- -- R_TRANS_CLUSTER ----------------------------------------------------------------------------- DROP TABLE R_TRANS_CLUSTER CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_CLUSTER ( ID_TRANS_CLUSTER NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_CLUSTER NUMBER(22) ); ALTER TABLE R_TRANS_CLUSTER ADD CONSTRAINT R_TRANS_CLUSTER_PK PRIMARY KEY (ID_TRANS_CLUSTER); ----------------------------------------------------------------------------- -- R_TRANS_HOP ----------------------------------------------------------------------------- DROP TABLE R_TRANS_HOP CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_HOP ( ID_TRANS_HOP NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_STEP_FROM NUMBER(22), ID_STEP_TO NUMBER(22), ENABLED CHAR(1), CONDITION_ VARCHAR2(64) ); ALTER TABLE R_TRANS_HOP ADD CONSTRAINT R_TRANS_HOP_PK PRIMARY KEY (ID_TRANS_HOP); ----------------------------------------------------------------------------- -- R_TRANS_NOTE ----------------------------------------------------------------------------- DROP TABLE R_TRANS_NOTE CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_NOTE ( ID_TRANSFORMATION NUMBER(22), ID_NOTE NUMBER(22) ); ----------------------------------------------------------------------------- -- R_TRANS_PARTITION_SCHEMA ----------------------------------------------------------------------------- DROP TABLE R_TRANS_PARTITION_SCHEMA CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_PARTITION_SCHEMA ( ID_TRANS_PARTITION_SCHEMA NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_PARTITION_SCHEMA NUMBER(22) ); ALTER TABLE R_TRANS_PARTITION_SCHEMA ADD CONSTRAINT R_TRANS_PARTITION_SCHEMA_PK PRIMARY KEY (ID_TRANS_PARTITION_SCHEMA); ----------------------------------------------------------------------------- -- R_TRANS_SLAVE ----------------------------------------------------------------------------- DROP TABLE R_TRANS_SLAVE CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_SLAVE ( ID_TRANS_SLAVE NUMBER(22) NOT NULL, ID_TRANSFORMATION NUMBER(22), ID_SLAVE NUMBER(22) ); ALTER TABLE R_TRANS_SLAVE ADD CONSTRAINT R_TRANS_SLAVE_PK PRIMARY KEY (ID_TRANS_SLAVE); ----------------------------------------------------------------------------- -- R_TRANS_STEP_CONDITION ----------------------------------------------------------------------------- DROP TABLE R_TRANS_STEP_CONDITION CASCADE CONSTRAINTS; CREATE TABLE R_TRANS_STEP_CONDITION ( ID_TRANSFORMATION NUMBER(22), ID_STEP NUMBER(22), ID_CONDITION NUMBER(22) ); ----------------------------------------------------------------------------- -- R_USER ----------------------------------------------------------------------------- DROP TABLE R_USER CASCADE CONSTRAINTS; CREATE TABLE R_USER ( ID_USER NUMBER(22) NOT NULL, ID_PROFILE NUMBER(22), LOGIN VARCHAR2(255), PASSWORD VARCHAR2(255), NAME VARCHAR2(255), DESCRIPTION VARCHAR2(255), ENABLED CHAR(1) ); ALTER TABLE R_USER ADD CONSTRAINT R_USER_PK PRIMARY KEY (ID_USER); ----------------------------------------------------------------------------- -- R_VALUE ----------------------------------------------------------------------------- DROP TABLE R_VALUE CASCADE CONSTRAINTS; CREATE TABLE R_VALUE ( ID_VALUE NUMBER(22) NOT NULL, NAME VARCHAR2(255), VALUE_TYPE VARCHAR2(255), VALUE_STR VARCHAR2(255), IS_NULL CHAR(1) ); ALTER TABLE R_VALUE ADD CONSTRAINT R_VALUE_PK PRIMARY KEY (ID_VALUE); ----------------------------------------------------------------------------- -- R_VERSION ----------------------------------------------------------------------------- DROP TABLE R_VERSION CASCADE CONSTRAINTS; CREATE TABLE R_VERSION ( ID_VERSION NUMBER(22) NOT NULL, MAJOR_VERSION NUMBER(22), MINOR_VERSION NUMBER(22), UPGRADE_DATE DATE, IS_UPGRADE CHAR(1) ); ALTER TABLE R_VERSION ADD CONSTRAINT R_VERSION_PK PRIMARY KEY (ID_VERSION); ----------------------------------------------------------------------------- -- TABLEINFO ----------------------------------------------------------------------------- DROP TABLE TABLEINFO CASCADE CONSTRAINTS; CREATE TABLE TABLEINFO ( TABLE_NAME VARCHAR2(255) NOT NULL, TABLE_ID_NAME VARCHAR2(255), TABLE_ID_INCREMENT NUMBER(5) default 1, TABLE_ID_VALUE NUMBER(20) default 0, TABLE_ID_GENERATOR VARCHAR2(255), TABLE_ID_TYPE VARCHAR2(255), TABLE_ID_PREFIX VARCHAR2(255) ); ALTER TABLE TABLEINFO ADD CONSTRAINT TABLEINFO_PK PRIMARY KEY (TABLE_NAME); ALTER TABLE GROUP_USERS ADD CONSTRAINT GROUP_USERS_FK_1 FOREIGN KEY (USER_ID) REFERENCES MQ_USERS (USER_ID) ; ALTER TABLE J3_ADDRESS ADD CONSTRAINT J3_ADDRESS_FK_1 FOREIGN KEY (ADDRESS_ID) REFERENCES J3_CONTACT (ID) ; ALTER TABLE J3_ADDRESS_LINE ADD CONSTRAINT J3_ADDRESS_LINE_FK_1 FOREIGN KEY (ADDRESS_ID) REFERENCES J3_ADDRESS (ID) ; ALTER TABLE J3_BINDING_CATEGORY_BAG ADD CONSTRAINT J3_BINDING_CATEGORY_BAG_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BINDING_TEMPLATE (ENTITY_KEY) ; ALTER TABLE J3_BINDING_CATEGORY_BAG ADD CONSTRAINT J3_BINDING_CATEGORY_BAG_FK_2 FOREIGN KEY (ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_BINDING_DESCR ADD CONSTRAINT J3_BINDING_DESCR_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BINDING_TEMPLATE (ENTITY_KEY) ; ALTER TABLE J3_BINDING_TEMPLATE ADD CONSTRAINT J3_BINDING_TEMPLATE_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_UDDI_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BINDING_TEMPLATE ADD CONSTRAINT J3_BINDING_TEMPLATE_FK_2 FOREIGN KEY (SERVICE_KEY) REFERENCES J3_BUSINESS_SERVICE (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_CATEGORY_BAG ADD CONSTRAINT J3_BUSINESS_CATEGORY_BAG_FK_1 FOREIGN KEY (ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_BUSINESS_CATEGORY_BAG ADD CONSTRAINT J3_BUSINESS_CATEGORY_BAG_FK_2 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_DESCR ADD CONSTRAINT J3_BUSINESS_DESCR_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_ENTITY ADD CONSTRAINT J3_BUSINESS_ENTITY_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_UDDI_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_IDENTIFIER ADD CONSTRAINT J3_BUSINESS_IDENTIFIER_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_NAME ADD CONSTRAINT J3_BUSINESS_NAME_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_SERVICE ADD CONSTRAINT J3_BUSINESS_SERVICE_FK_1 FOREIGN KEY (BUSINESS_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_BUSINESS_SERVICE ADD CONSTRAINT J3_BUSINESS_SERVICE_FK_2 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_UDDI_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_CLERK ADD CONSTRAINT J3_CLERK_FK_1 FOREIGN KEY (NODE_NAME) REFERENCES J3_NODE (NAME) ; ALTER TABLE J3_CLIENT_SUBSCRIPTIONINFO ADD CONSTRAINT J3_CLIENT_SUBSCRIPTIONINF_FK_1 FOREIGN KEY (FROMCLERK_CLERK_NAME) REFERENCES J3_CLERK (CLERK_NAME) ; ALTER TABLE J3_CLIENT_SUBSCRIPTIONINFO ADD CONSTRAINT J3_CLIENT_SUBSCRIPTIONINF_FK_2 FOREIGN KEY (TOCLERK_CLERK_NAME) REFERENCES J3_CLERK (CLERK_NAME) ; ALTER TABLE J3_CONTACT ADD CONSTRAINT J3_CONTACT_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_CONTACT_DESCR ADD CONSTRAINT J3_CONTACT_DESCR_FK_1 FOREIGN KEY (CONTACT_ID) REFERENCES J3_CONTACT (ID) ; ALTER TABLE J3_DISCOVERY_URL ADD CONSTRAINT J3_DISCOVERY_URL_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_EMAIL ADD CONSTRAINT J3_EMAIL_FK_1 FOREIGN KEY (CONTACT_ID) REFERENCES J3_CONTACT (ID) ; ALTER TABLE J3_INSTANCE_DETAILS_DESCR ADD CONSTRAINT J3_INSTANCE_DETAILS_DESCR_FK_1 FOREIGN KEY (TMODEL_INSTANCE_INFO_ID) REFERENCES J3_TMODEL_INSTANCE_INFO (ID) ; ALTER TABLE J3_INSTANCE_DETAILS_DOC_DESCR ADD CONSTRAINT J3_INSTANCE_DETAILS_DOC_D_FK_1 FOREIGN KEY (TMODEL_INSTANCE_INFO_ID) REFERENCES J3_TMODEL_INSTANCE_INFO (ID) ; ALTER TABLE J3_KEYED_REFERENCE ADD CONSTRAINT J3_KEYED_REFERENCE_FK_1 FOREIGN KEY (KEYED_REFERENCE_GROUP_ID) REFERENCES J3_KEYED_REFERENCE_GROUP (ID) ; ALTER TABLE J3_KEYED_REFERENCE ADD CONSTRAINT J3_KEYED_REFERENCE_FK_2 FOREIGN KEY (CATEGORY_BAG_ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_KEYED_REFERENCE_GROUP ADD CONSTRAINT J3_KEYED_REFERENCE_GROUP_FK_1 FOREIGN KEY (CATEGORY_BAG_ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_OVERVIEW_DOC ADD CONSTRAINT J3_OVERVIEW_DOC_FK_1 FOREIGN KEY (TOMODEL_INSTANCE_INFO_ID) REFERENCES J3_TMODEL_INSTANCE_INFO (ID) ; ALTER TABLE J3_OVERVIEW_DOC ADD CONSTRAINT J3_OVERVIEW_DOC_FK_2 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_TMODEL (ENTITY_KEY) ; ALTER TABLE J3_OVERVIEW_DOC_DESCR ADD CONSTRAINT J3_OVERVIEW_DOC_DESCR_FK_1 FOREIGN KEY (OVERVIEW_DOC_ID) REFERENCES J3_OVERVIEW_DOC (ID) ; ALTER TABLE J3_PERSON_NAME ADD CONSTRAINT J3_PERSON_NAME_FK_1 FOREIGN KEY (CONTACT_ID) REFERENCES J3_CONTACT (ID) ; ALTER TABLE J3_PHONE ADD CONSTRAINT J3_PHONE_FK_1 FOREIGN KEY (CONTACT_ID) REFERENCES J3_CONTACT (ID) ; ALTER TABLE J3_PUBLISHER_ASSERTION ADD CONSTRAINT J3_PUBLISHER_ASSERTION_FK_1 FOREIGN KEY (TO_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_PUBLISHER_ASSERTION ADD CONSTRAINT J3_PUBLISHER_ASSERTION_FK_2 FOREIGN KEY (FROM_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_SERVICE_CATEGORY_BAG ADD CONSTRAINT J3_SERVICE_CATEGORY_BAG_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_SERVICE (ENTITY_KEY) ; ALTER TABLE J3_SERVICE_CATEGORY_BAG ADD CONSTRAINT J3_SERVICE_CATEGORY_BAG_FK_2 FOREIGN KEY (ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_SERVICE_DESCR ADD CONSTRAINT J3_SERVICE_DESCR_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_SERVICE (ENTITY_KEY) ; ALTER TABLE J3_SERVICE_NAME ADD CONSTRAINT J3_SERVICE_NAME_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BUSINESS_SERVICE (ENTITY_KEY) ; ALTER TABLE J3_SERVICE_PROJECTION ADD CONSTRAINT J3_SERVICE_PROJECTION_FK_1 FOREIGN KEY (BUSINESS_KEY) REFERENCES J3_BUSINESS_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_SERVICE_PROJECTION ADD CONSTRAINT J3_SERVICE_PROJECTION_FK_2 FOREIGN KEY (SERVICE_KEY) REFERENCES J3_BUSINESS_SERVICE (ENTITY_KEY) ; ALTER TABLE J3_SUBSCRIPTION_MATCH ADD CONSTRAINT J3_SUBSCRIPTION_MATCH_FK_1 FOREIGN KEY (SUBSCRIPTION_KEY) REFERENCES J3_SUBSCRIPTION (SUBSCRIPTION_KEY) ; ALTER TABLE J3_TMODEL ADD CONSTRAINT J3_TMODEL_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_UDDI_ENTITY (ENTITY_KEY) ; ALTER TABLE J3_TMODEL_CATEGORY_BAG ADD CONSTRAINT J3_TMODEL_CATEGORY_BAG_FK_1 FOREIGN KEY (ID) REFERENCES J3_CATEGORY_BAG (ID) ; ALTER TABLE J3_TMODEL_CATEGORY_BAG ADD CONSTRAINT J3_TMODEL_CATEGORY_BAG_FK_2 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_TMODEL (ENTITY_KEY) ; ALTER TABLE J3_TMODEL_DESCR ADD CONSTRAINT J3_TMODEL_DESCR_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_TMODEL (ENTITY_KEY) ; ALTER TABLE J3_TMODEL_IDENTIFIER ADD CONSTRAINT J3_TMODEL_IDENTIFIER_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_TMODEL (ENTITY_KEY) ; ALTER TABLE J3_TMODEL_INSTANCE_INFO ADD CONSTRAINT J3_TMODEL_INSTANCE_INFO_FK_1 FOREIGN KEY (ENTITY_KEY) REFERENCES J3_BINDING_TEMPLATE (ENTITY_KEY) ; ALTER TABLE J3_TMODEL_INSTANCE_INFO_DESCR ADD CONSTRAINT J3_TMODEL_INSTANCE_INFO_D_FK_1 FOREIGN KEY (TMODEL_INSTANCE_INFO_ID) REFERENCES J3_TMODEL_INSTANCE_INFO (ID) ; ALTER TABLE J3_TRANSFER_TOKEN_KEYS ADD CONSTRAINT J3_TRANSFER_TOKEN_KEYS_FK_1 FOREIGN KEY (TRANSFER_TOKEN) REFERENCES J3_TRANSFER_TOKEN (TRANSFER_TOKEN) ; ALTER TABLE MQ_CLIENT_CA ADD CONSTRAINT MQ_CLIENT_CA_FK_1 FOREIGN KEY (KS_FILE) REFERENCES MQ_BIG_LOB (LOB_ID) ; ALTER TABLE MQ_CLIENT_CA ADD CONSTRAINT MQ_CLIENT_CA_FK_2 FOREIGN KEY (TS_FILE) REFERENCES MQ_BIG_LOB (LOB_ID) ; ALTER TABLE MQ_CONNECTORS ADD CONSTRAINT MQ_CONNECTORS_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_GROUP ADD CONSTRAINT MQ_GROUP_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_MEM_CONF ADD CONSTRAINT MQ_MEM_CONF_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_MIRROR_TABLE ADD CONSTRAINT MQ_MIRROR_TABLE_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_NODE ADD CONSTRAINT MQ_NODE_FK_1 FOREIGN KEY (NODE_FACTORY_ID) REFERENCES MQ_NODE_FACTORY (NODE_FACTORY_ID) ; ALTER TABLE MQ_NODE_FACTORY ADD CONSTRAINT MQ_NODE_FACTORY_FK_1 FOREIGN KEY (CA_ID) REFERENCES MQ_CLIENT_CA (CA_ID) ; ALTER TABLE MQ_PERMISSIONS ADD CONSTRAINT MQ_PERMISSIONS_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_POLICY_TABLE ADD CONSTRAINT MQ_POLICY_TABLE_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_PROPERTIES ADD CONSTRAINT MQ_PROPERTIES_FK_1 FOREIGN KEY (TASK_ID) REFERENCES MQ_HUGEMESSAGE_SCHEDULE (TASK_ID) ; ALTER TABLE MQ_REAL_NODES ADD CONSTRAINT MQ_REAL_NODES_FK_1 FOREIGN KEY (VIRTUAL_NODEID) REFERENCES MQ_VIRTUAL_NODES (VIRTUAL_NODEID) ; ALTER TABLE MQ_ROUTENODE ADD CONSTRAINT MQ_ROUTENODE_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_ROUTERS ADD CONSTRAINT MQ_ROUTERS_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_USERS ADD CONSTRAINT MQ_USERS_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ; ALTER TABLE MQ_VIRTUAL_NODES ADD CONSTRAINT MQ_VIRTUAL_NODES_FK_1 FOREIGN KEY (BROKER_ID) REFERENCES MQ_BROKER (BROKER_ID) ;
CREATE TABLE [dbo].[Groups] ( [Id] UNIQUEIDENTIFIER DEFAULT (newsequentialid()) NOT NULL, [Name] NVARCHAR (100) NOT NULL, [GroupID] NVARCHAR (100) NOT NULL, [Description] NVARCHAR (500) NULL, [ParentId] UNIQUEIDENTIFIER NULL, CONSTRAINT [PK_Groups] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_Groups_ToGroups] FOREIGN KEY ([ParentId]) REFERENCES [dbo].[Groups] ([Id]) ); GO CREATE NONCLUSTERED INDEX [IX_Groups_ParentId] ON [dbo].[Groups]([ParentId] ASC);
create or replace package body test_user is procedure global_setup is begin ut3.ut_coverage.set_develop_mode(true); --improve performance of test execution by disabling all compiler optimizations ut3_tester_helper.main_helper.execute_autonomous('ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=0'); end; end; /
DROP TABLE IF EXISTS `creator_content`;
SET SCAN OFF SET LINESIZE 132 SET SQLBLANKLINES ON CREATE OR REPLACE PACKAGE aws_rds_to_s3_pkg AS /* --------------------------------------------------------------------------------------------------------------------------------- File Name: AWS_S3_PKG.PKB Author: <NAME> Date: 11/03/2018 ------------------------------------------------------------------------------------------------------------------------------------ Revision History Push Down List ------------------------------------------------------------------------------------------------------------------------------------ Date | Name | Description ------------+------------+---------------------------------------------------------------------------------------------------------- 30/07/2018 | <NAME> | Add copy routine to allow files to be copied between Oracle Directoris and S3 buckets 13/04/2018 | <NAME> | Update S3 bucket regions with latest region names 11/03/2018 | <NAME> | Initial Version ------------+------------+---------------------------------------------------------------------------------------------------------- Function: To provide an interface between AWS RDS Oracle and AWS S3 Buckets */ HELP_TEXT CONSTANT VARCHAR2(4096) := ' +----------------------------------------------------------------------------------------------------------------------------------+ | The program is devided into two sections | | o Routines that are used to setup the environment | | Package body variables that are set via the setup routine only persist for the duration of the Oracle session. | | | | o The S3 interface routines, of which there are five S3 commands, one file copy command and one help message. | | When using the optional prefix with put or copy commands, if the prefix does not exist it will be automatically created | | Removing the last object from a prefix within a bucket will remove the prefix from that bucket. | | | | o S3 Commands | | o Delete Object Removes an object from a named bucket, with an optional prefix | | o Get Bucket List Gets a list of all buckts to which the user has access | | o Get Object List Gets a list of all objects in a named bucket, with an optional prefix | | o Get Object Blob Gets the contents of an object from a named bucket, with an optional prefix | | o Put Object Blob Writes the contents of an object to a named bucket, with an optional prefix | | | | o Copy Command | | o Copy File Copies files between an Oracle directory and an S3 bucket. | | The copy moves the file from the first location to the second location | | The command automatically determins of the source is an S3 bucket or Oracle Directory | | You can optionally provide a prefix, which will only be applied to the S3 bucket | | | | o Help Message | | o awsHelp This message | | o Requires | | o SET SERVEROUTPUT ON size 4096 | | o SET LINESIZE 132 | +----------------------------------------------------------------------------------------------------------------------------------+ ';/* Documenation: ------------- Oracle Documentation o https://oracle-base.com/articles/misc/apex_web_service-consuming-soap-and-rest-web-services AWS Documenation o http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticatINg-requests.html Useful Reference Data o https://github.com/cmoore-sp/plsql-aws-s3/tree/master o http://czak.pl/2015/09/15/s3-rest-api-with-curl.html Purpose: -------- Challenges: ----------- S3 security has been updated to use SHA-2 with AES256 bit encryption, this is much more sensitive to format and less forgiving of syntactical variances Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------------- */ -- S E C T I O N -- -- GLOBAL DATA TYPES -- ----------------- TYPE tBucket IS RECORD ( bucket_name VARCHAR2(255), creation_date DATE ); TYPE tObject IS RECORD ( key VARCHAR2(4000), size_bytes NUMBER, last_modified DATE, version_id VARCHAR2(4000) ); TYPE tGrantee IS RECORD ( grantee_type VARCHAR2(20), -- CanonicalUser or Group user_id VARCHAR2(200), -- for users user_name VARCHAR2(200), -- for users group_uri VARCHAR2(200), -- for groups permission VARCHAR2(20) -- FULL_CONTROL, WRITE, READ_ACP ); TYPE BUCKET_TABLE IS TABLE OF tBucket; TYPE BUCKET_LIST IS TABLE OF tBucket INDEX BY BINARY_INTEGER; TYPE OBJECT_LIST IS TABLE OF tObject INDEX BY BINARY_INTEGER; AWS_S3_EXCEPTION NUMBER := -20600; AWS_NO_MISSING_EXCEPTION NUMBER := -20601; -------------------------------------------------------------------------------- -- S E C T I O N -- -- GLOBAL VARIABLES -- ---------------- -- -- Debug Codes -------------------------------------------------------------------------------- DEBUG_OFF CONSTANT BINARY_INTEGER := 0; -- No Debug DEBUG_ON CONSTANT BINARY_INTEGER := 1; -- Shows exposed functions only DEBUG_CONN CONSTANT BINARY_INTEGER := 2; -- Adds Connection String Data DEBUG_VERBOSE CONSTANT BINARY_INTEGER := 3; -- Full Verbose Mode -- bucket regions -- see http://aws.amazon.com/articles/3912?_encoding=UTF8-jiveRedirect=1#s3 -- see http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region -------------------------------------------------------------------------------- REGION_ASIA_PACIFIC_SINGAPORE CONSTANT VARCHAR2(16) := 'ap-southeast-1'; REGION_ASIA_PACIFIC_SYDNEY CONSTANT VARCHAR2(16) := 'ap-southeast-2'; REGION_ASIA_PACIFIC_TOKYO CONSTANT VARCHAR2(16) := 'ap-northeast-1'; REGION_EU_IRELAND CONSTANT VARCHAR2(16) := 'eu-west-1'; REGION_STH_AMERICA_SAO_PAULO CONSTANT VARCHAR2(16) := 'sa-east-1'; REGION_US_EAST_VIRGINIA CONSTANT VARCHAR2(16) := 'us-east-1'; REGION_US_STANDARD CONSTANT VARCHAR2(16) := 'us-east-1'; REGION_US_WEST_CALIFORNIA CONSTANT VARCHAR2(16) := 'us-west-1'; REGION_US_WEST_OREGON CONSTANT VARCHAR2(16) := 'us-west-2'; -- The following sites are AWS Version 4 only REGION_US_EAST_OHIO CONSTANT VARCHAR2(16) := 'us-east-2'; REGION_CANADA_CENTRAL_1 CONSTANT VARCHAR2(16) := 'ca-central-1'; REGION_ASIA_PACIFIC_MUMBAI CONSTANT VARCHAR2(16) := 'ap-south-1'; REGION_ASIA_PACIFIC_SEOUL CONSTANT VARCHAR2(16) := 'ap-northeast-2'; REGION_ASIA_PACIFIC_OSAKA CONSTANT VARCHAR2(16) := 'ap-northeast-3'; REGION_CHINA_BEIJING CONSTANT VARCHAR2(16) := 'cn-north-1'; REGION_CHINA_NINGXIA CONSTANT VARCHAR2(16) := 'cn-northwest-1'; REGION_EU_FRANKFURT CONSTANT VARCHAR2(16) := 'eu-central-1'; REGION_EU_LONDON CONSTANT VARCHAR2(16) := 'eu-west-2'; REGION_EU_PARIS CONSTANT VARCHAR2(16) := 'eu-west-3'; -------------------------------------------------------------------------------- -- S E C T I O N -- -- M A N A G E M E N T S E C T I O N -- -- These should be kept alphabetized -------------------------------------------------------------------------------- PROCEDURE setAwsKeys ( pAwsID IN VARCHAR2, pAwsKey IN VARCHAR2 ); PROCEDURE setAwsRegion ( pAwsRegion IN VARCHAR2 ); PROCEDURE setDebugOff; PROCEDURE setDebugOn ( bMode IN BINARY_INTEGER DEFAULT DEBUG_ON ); PROCEDURE setTimeZone ( pTimeZone IN VARCHAR2 ); PROCEDURE setWalletPassword ( pWalletPwd IN VARCHAR2 ); -------------------------------------------------------------------------------- -- S E C T I O N -- -- P R O G R A M M E S E C T I O N -- -- These should be kept alphabetized -------------------------------------------------------------------------------- PROCEDURE awsHelp; PROCEDURE copyFile ( pSource IN VARCHAR2, pFileName IN VARCHAR2, pDestination IN VARCHAR2, pPrefix IN VARCHAR2 DEFAULT NULL ); PROCEDURE deleteObject ( pBucket IN VARCHAR2, pObjectName IN VARCHAR2, pPrefix IN VARCHAR2 DEFAULT NULL ); FUNCTION getBucketList RETURN BUCKET_LIST; FUNCTION getObjectBlob ( pBucket IN VARCHAR2, pObjectName IN VARCHAR2, pPrefix IN VARCHAR2 DEFAULT NULL ) RETURN BLOB; PROCEDURE getObjectList ( pBucket IN VARCHAR2, pPrefix IN VARCHAR2 DEFAULT NULL, pObjectName IN VARCHAR2 DEFAULT NULL, pFilesRemaining OUT BOOLEAN, pObjectList OUT OBJECT_LIST ); PROCEDURE putObjectBlob ( pBucket IN VARCHAR2, pBlob IN BLOB, pObjectKey IN VARCHAR2, pPrefix IN VARCHAR2 DEFAULT NULL ); end aws_rds_to_s3_pkg; / SET SCAN ON SET SQLBLANKLINES OFF
<reponame>DICE-UNC/iRODS-FUSE-Mod<gh_stars>1-10 /* As initialized by via this file, all objects, including tokens, have a unique ID. Each type has its own range of values. The IDs inserted via this file have values less than 10,000 and IDs generated by the code, via the sql 'sequence R_ObjectId', start at 10,000. The value '1170000000' is the Unix time (seconds since 1970, quasi-universal time) for an arbitrary recent past time (2007-01-28 08:00:00). */ insert into R_TOKN_MAIN values ('token_namespace',0,'zone_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',1,'user_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',2,'data_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',3,'resc_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',4,'action_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',5,'rulexec_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',6,'access_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',7,'object_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',8,'resc_class','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',9,'coll_map','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('token_namespace',10,'auth_scheme_type','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('zone_type',100,'local','','native zone of this RCAT','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('zone_type',101,'remote','','foreign zone','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',200,'rodsgroup','','rods group users','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',201,'rodsadmin','','rods administrators','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',202,'rodsuser','','normal rods user','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',203,'domainadmin','','user domain administrators','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',204,'groupadmin','','user group administrators','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',205,'storageadmin','','storage system administrators','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('user_type',206,'rodscurators','','data collection curators at RODS level','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',300,'data','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',301,'resource','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',302,'user','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',303,'rule','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',304,'metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',305,'zone','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',306,'collection','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('object_type',307,'token','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_type',400,'unix file system','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_type',401,'hpss file system','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_type',402,'windows file system','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_type',403,'s3','','','','','1250100000','1250100000'); insert into R_TOKN_MAIN values ('resc_type',404,'MSS universal driver','','','','','1250100000','1250100000'); insert into R_TOKN_MAIN values ('resc_type',405,'database','','','','','1288631300','1288631300'); insert into R_TOKN_MAIN values ('resc_type',406,'mso','','','','','1312910000','1312910000'); insert into R_TOKN_MAIN values ('resc_type',407,'direct access file system','','','','','1311740184','1311740184'); insert into R_TOKN_MAIN values ('resc_type',408,'ooici','','','','','1347482000','1347482000'); insert into R_TOKN_MAIN values ('resc_type',409,'opendap','','','','','1347482000','1347482000'); insert into R_TOKN_MAIN values ('resc_type',410,'pydap','','','','','1347482000','1347482000'); insert into R_TOKN_MAIN values ('resc_type',411,'erddap','','','','','1347482000','1347482000'); insert into R_TOKN_MAIN values ('resc_type',412,'tds','','','','','1347482000','1347482000'); insert into R_TOKN_MAIN values ('resc_class',500,'cache','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_class',501,'archive','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_class',502,'compound','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_class',503,'bundle','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('resc_class',504,'postgresql','','','','','1288631300','1288631300'); insert into R_TOKN_MAIN values ('resc_class',505,'mysql','','','','','1288631300','1288631300'); insert into R_TOKN_MAIN values ('resc_class',506,'oracle','','','','','1288631300','1288631300'); insert into R_TOKN_MAIN values ('rulexec_type',600,'immediate','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('rulexec_type',601,'delayed','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('rulexec_type',602,'queued','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('rulexec_type',603,'before','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('rulexec_type',604,'after','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('rulexec_type',605,'concurrent','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1000,'null','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1010,'execute','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1020,'read annotation','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1030,'read system metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1040,'read metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1050,'read object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1060,'write annotation','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1070,'create metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1080,'modify metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1090,'delete metadata','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1100,'administer object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1110,'create object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1120,'modify object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1130,'delete object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1140,'create token','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1150,'delete token','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1160,'curate','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('access_type',1200,'own','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('coll_map',1400,'generic','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('coll_map',1401,'direct','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('coll_map',1402,'hard link','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('coll_map',1403,'soft link','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('auth_scheme_type',1500,'SPASSWORD','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('auth_scheme_type',1501,'GSI','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1600,'generic','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1601,'text','text/text','|.txt|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1602,'ascii text','text/text','|.txt|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1603,'ascii compressed Lempel-Ziv','','|.z|.zip|.gz|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1604,'ascii compressed Huffman','','|.z|.zip|.gz|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1605,'ebcdic text','text/text','|.txt|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1606,'ebcdic compressed Lempel-Ziv','','|.z|.zip|.gz|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1607,'ebcdic compressed Huffman','','|.z|.zip|.gz|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1608,'image','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1609,'tiff image','image/tiff','|.tif|.tiff|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1610,'uuencoded tiff','text/text','|.uu|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1611,'gif image','image/gif','|.gif|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1612,'jpeg image','image/jpeg','|.jpeg|.jpg|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1613,'pbm image','image/pbm','|.pbm|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1614,'fig image','image/fig','|.fig|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1615,'FITS image','application/x-fits','|.fits|.fit|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1616,'DICOM image','application/dicom','|.IMA|.ima|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1617,'print-format','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1618,'LaTeX format','text/text','|.tex|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1619,'Troff format','text/text','|.trf|.trof|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1620,'Postscript format','application/postscript','|.ps|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1621,'DVI format','application/dvi','|.dvi|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1622,'Word format','application/msword','|.doc|.rtf|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1623,'program code','text/text','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1624,'SQL script','text/text','|.sql|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1625,'C code','text/text','|.c|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1626,'C include file','text/text','|.c|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1627,'fortran code','text/text','|.f|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1628,'object code','','|.o|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1629,'library code','','|.a|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1630,'data file','','|.dat|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1631,'html','text/html','|.htm|.html|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1632,'SGML File','text/sgml','|.sgm|.sgml|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1633,'Wave Audio','audio/x-wav','|.wav|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1634,'tar file','text/text','|.tar|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1635,'compressed tar file','|.tz|.tgz|.zip|','','','','1170000000','1170000000' ); insert into R_TOKN_MAIN values ('data_type',1636,'java code','text/text','|.jav|.java|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1637,'perl script','text/text','|.pl|','','','1170000000','1170000000' ); insert into R_TOKN_MAIN values ('data_type',1638,'tcl script','text/text','|.tcl|','','','1170000000','1170000000' ); insert into R_TOKN_MAIN values ('data_type',1639,'link code','','|.o|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1640,'shadow object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1641,'database shadow object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1642,'directory shadow object','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1643,'database','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1644,'streams','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1645,'audio streams','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1646,'realAudio','audio/x-pn-realaudio','|.ra|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1647,'video streams','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1648,'realVideo','audio/x-pn-realaudio','|.rv|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1649,'MPEG','video/mpeg','|.mpeg|.mpg|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1650,'AVI','video/msvideo','|.avi|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1651,'PNG-Portable Network Graphics','image/png','|.png|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1652,'MP3 - MPEG Audio','audio/x-mpeg','|.mp3|.mpa|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1653,'WMV-Windows Media Video','video/x-wmv','|.wmv|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1654,'BMP -Bit Map','image/bmp','|.bmp|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1655,'CSS-Cascading Style Sheet','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1656,'xml','text/xml','|.xml|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1657,'Slide','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1658,'Power Point Slide','application/vnd.ms-powerpoint','|.ppt|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1659,'Spread Sheet','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1660,'Excel Spread Sheet','application/x-msexcel','|.xls|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1661,'Document','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1622,'MSWord Document','application/msword','|.doc|.rtf|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1663,'PDF Document','application/pdf','|.pdf|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1664,'Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1665,'NT Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1666,'Solaris Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1667,'AIX Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1668,'Mac Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1669,'Mac OSX Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1670,'Cray Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1671,'SGI Executable','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1672,'DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1673,'NT DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1674,'Solaris DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1675,'AIX DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1676,'Mac DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1677,'Cray DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1678,'SGI DLL','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1679,'Movie','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1680,'MPEG Movie','video/mpeg','|.mpeg|.mpg|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1681,'MPEG 3 Movie','video/mpeg','|.mpeg|.mpg|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1682,'Quicktime Movie','video/quicktime','|.mov|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1683,'compressed file','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1684,'compressed mmCIF file','','|.cif|.mmcif|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1685,'compressed PDB file','','|.pdb|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1686,'binary file','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1687,'URL','text/html','|.htm|.html|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1688,'NSF Award Abstracts','text/text','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1689,'email','text/text','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1690,'orb data','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1691,'datascope data','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1692,'DICOM header','','','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1693,'XML Schema','text/xml','|.xsd|','','','1170000000','1170000000'); insert into R_TOKN_MAIN values ('data_type',1694,'tar bundle','','','','','1250100000','1250100000'); insert into R_TOKN_MAIN values ('data_type',1695,'database object','text','','','','1288631300','1288631300'); insert into R_TOKN_MAIN values ('data_type',1696,'mso','','','','','1312910000','1312910000'); insert into R_TOKN_MAIN values ('data_type',1697,'gzipTar','','|.tar.gz|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1698,'bzip2Tar','','|.tar.bz2|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1699,'gzipFile','','|.gz|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1700,'bzip2File','','|.bz2|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1701,'zipFile','','|.zip|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1702,'gzipTar bundle','','','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1703,'bzip2Tar bundle','','','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1704,'zipFile bundle','','','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('data_type',1705,'netcdf','','','','','1348000000','1348000000'); insert into R_TOKN_MAIN values ('data_type',1706,'hdf5','','','','','1348000000','1348000000'); insert into R_TOKN_MAIN values ('data_type',1707,'msso file','','|.mss|','','','1324000000','1324000000'); insert into R_TOKN_MAIN values ('action_type',1800,'generic','','','','','1170000000','1170000000'); insert into R_ZONE_MAIN values (9000,'tempZone','local','','','1170000000','1170000000'); insert into R_USER_MAIN values (9001,'rodsadmin','rodsgroup','tempZone','','','1170000000','1170000000'); insert into R_USER_MAIN values (9002,'rodsBoot','rodsadmin','tempZone','','','1170000000','1170000000'); insert into R_USER_GROUP values (9001,9002,'1170000000','1170000000'); insert into R_USER_GROUP values (9002,9002,'1170000000','1170000000'); insert into R_USER_PASSWORD values (9002,'RODS','9999-12-31-23.59.00','1170000000','1170000000'); insert into R_COLL_MAIN values (9003,'/','/','rods','tempZone',0,'','','','','','','1170000000','1170000000'); insert into R_OBJT_ACCESS values (9003,9001,1130,'1170000000','1170000000'); insert into R_OBJT_ACCESS values (9003,9002,1200,'1170000000','1170000000'); insert into R_RESC_MAIN (resc_id, resc_name, zone_name, resc_type_name, resc_class_name, resc_net, resc_def_path, free_space, free_space_ts, resc_info, r_comment, resc_status, create_ts, modify_ts) values (9100, 'bundleResc', 'tempZone', 'unix file system', 'bundle', 'localhost', '/bundle', '', '', '', '', '', '1250100000','1250100000'); insert into R_SPECIFIC_QUERY (alias, sqlStr, create_ts) values ('ls', 'select alias,sqlStr from R_SPECIFIC_QUERY', '01292940000'); insert into R_SPECIFIC_QUERY (alias, sqlStr, create_ts) values ('lsl', 'select alias,sqlStr from R_SPECIFIC_QUERY where sqlStr like ?', '01292940000'); insert into R_SPECIFIC_QUERY (alias, sqlStr, create_ts) values ('ShowCollAcls', 'select distinct R_USER_MAIN.user_name ,R_USER_MAIN.zone_name, R_TOKN_MAIN.token_name, R_USER_MAIN.user_type_name from R_USER_MAIN , R_TOKN_MAIN, R_OBJT_ACCESS, R_COLL_MAIN where R_OBJT_ACCESS.object_id = R_COLL_MAIN.coll_id AND R_COLL_MAIN.coll_name = ? AND R_TOKN_MAIN.token_namespace = ''access_type'' AND R_USER_MAIN.user_id = R_OBJT_ACCESS.user_id AND R_OBJT_ACCESS.access_type_id = R_TOKN_MAIN.token_id', '01342019000');
SELECT _allelepair_key, _genotype_key, _allele_key_1, _allele_key_2, allele1, allele2, allelestate FROM gxd_allelepair_view
<gh_stars>0 -- @testpoint: extract(field from timestamp)从给定的时间戳里获取小时的值 --(field的取值范围:hour) select extract(hour from timestamp '2001-02-16 20:38:40') from sys_dummy;
-- upgrade -- ALTER TABLE "user" ALTER COLUMN "roles" TYPE VARCHAR(17) USING "roles"::VARCHAR(17); ALTER TABLE "user" ALTER COLUMN "date_of_birth" SET DEFAULT '2021-11-11'; -- downgrade -- ALTER TABLE "user" ALTER COLUMN "roles" TYPE VARCHAR(13) USING "roles"::VARCHAR(13); ALTER TABLE "user" ALTER COLUMN "date_of_birth" SET DEFAULT '2021-10-25';
<gh_stars>0 INSERT INTO users (id, name, email, role, password, active, plan) VALUES (1, 'picasso', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$OSN6RcjBoh1/AkQbtOkh8elkaSs.GueaU9l5tzPHl9eecv2jheRri', true, 'ARTIST'), (2, 'remby', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$DXZDfdbiTgfozb8pKEsyQu/22BoPYXX0hGD55B3/ldljBybqs3kYS', true, 'ARTIST'), (3, 'munch', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$3va09Cg7BXDqIa9uTxoPreqCE4nR6ZKXn8BUaSBpnR8GvDS9Y9iEO', true, 'ARTIST'), (4, 'da.vinci', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$pDf6M4aQbgwLNRYAGppuKOA8eHPIiZWOZOD9eL0SPHF.3QFdJzn1S', true, 'ARTIST'), (5, 'van.gogh', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$d7n7Im5OXW1XfAXwMM6.Ru9P7bL1aRx.g1vjpgHEp2EpAvmJCkhNq', true, 'ARTIST'), (6, 'bosch', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$.I4U7lkafnZJDoQGKaEb6OO2MoQ0aiuh3fTv60faEw3zAlVBqW3Fm', true, 'ARTIST'), (7, 'seurat', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$naMlMbjSMsqtmCE3YS4Ale5g5ypXom8MY3iW1V4UIpVCOkBJ32sWS', true, 'ARTIST'), (8, 'botticeli', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$hbBxZnk.MDA51xdpqCzRWO68QIP1BnYCPktiXPiSaHY8INUqDGxm.', true, 'ARTIST'), (9, 'verm33r', '<EMAIL>', 'ROLE_USER', '{bcrypt}$2y$10$eVKa2Gq8P3B.F/yRdeuf0efsk4EJtLFharvQJKYwT03OKsb2vg4Nm', true, 'ARTIST'), (10, 'admin', '<EMAIL>', 'ROLE_ADMIN', '{bcrypt}$2y$10$1h7VDDIWWTk7jnnF19.UC.iHcfv2h0FfTbwKq/aJlpVRIgJ6nZ5Ou', true, 'BUYER'); INSERT INTO photo (id, path, thumbnail, title, description, size, digital_price, painting_price, uploaded, user_id) VALUES (1, 'demo_afa34a6e-2c9f-44c0-823b-44b9d0b27751.jpg', 'th_demo_afa34a6e-2c9f-44c0-823b-44b9d0b27751.jpg', 'A Sunday Afternoon on Le Grande Jatte', 'I''ve sat in the park, creating numerous sketches of the various figures in order to perfect their form. I''ve concentrated on issues of colour, light, and form. The painting is approximately 2 by 3 metres in size.I''ve contrasted miniature dots or small brushstrokes of colors that when unified optically in the human eye are perceived as a single shade or hue. I believed that this form of painting would make the colors more brilliant and powerful than standard brushstrokes.', 2724, 120.55, 35740, '2020-01-01 15:21:12.41', 7), (2, 'demo_8547faea-b736-4fef-81fe-24024b00b085.jpg', 'th_demo_8547faea-b736-4fef-81fe-24024b00b085.jpg', 'The Birth of Venus', 'In the center the newly-born goddess Venus stands nude in a giant scallop shell. The size of the shell is purely imaginary, and is also found in classical depictions of the subject. At the left the wind god Zephyr blows at her, with the wind shown by lines radiating from his mouth. He is in the air, and carries a young female, who is also blowing, but less forcefully. Both have wings. Their joint efforts are blowing Venus towards the shore.', 699, 853.77, 80799, '2020-05-13 12:37:24.12', 8), (3, 'demo_d37d306d-13cc-4fba-ad0f-31567b586529.jpg', 'th_demo_d37d306d-13cc-4fba-ad0f-31567b586529.jpg', 'Guernica', 'The scene occurs within a room where, on the left, a wide-eyed bull stands over a grieving woman holding a dead child in her arms. A horse falls in agony in the center of the room, with a large gaping hole in its side, as if it had just been run through by a spear or javelin. The horse appears to be wearing chain mail armor, decorated with vertical tally marks arranged in rows. A dead and dismembered soldier lies under the horse.', 297, 1470.30, 105000, '2020-04-17 16:56:33.07', 1), (4, 'demo_29014dff-836e-4213-9388-faa8cad1aeab.jpg', 'th_demo_29014dff-836e-4213-9388-faa8cad1aeab.jpg', 'The Starry Night', 'I''ve depicted the view at different times of the day and under various weather conditions, such as the sunrise, moon rise, sunshine days, windy days, and one day with rain. It''s the view from the east-facing window of asylum room at Saint-Remy-de-Provence, just before sunrise, with the addition of an imaginary village. The pigment of the sky is painted with ultramarine and cobalt blue, and for the stars and the moon, I''ve employed the rare pigment Indian yellow together with zinc yellow.', 1843, 503.00, 50202, '2020-02-10 13:17:56.56', 5), (5, 'demo_833680bf-ff24-485d-8c73-a17aa43b86af.jpg', 'th_demo_833680bf-ff24-485d-8c73-a17aa43b86af.jpg', 'Horses', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 724, 245, 20078, '2019-03-05 07:22:46.13', 3), (6, 'demo_940a28a9-df41-4aca-808c-007d20e646af.jpg', 'th_demo_940a28a9-df41-4aca-808c-007d20e646af.jpg', 'Horses', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 336, 210, 21303, '2019-12-23 06:12:37.22', 1), (7, 'demo_27e4ce7b-a193-40c6-8b41-cbbca55b7d4b.jpg', 'th_demo_27e4ce7b-a193-40c6-8b41-cbbca55b7d4b.jpg', 'The Scream', 'I was walking along the road with two friends – the sun was setting – suddenly the sky turned blood red – I paused, feeling exhausted, and leaned on the fence – there was blood and tongues of fire above the blue-black fjord and the city – my friends walked on, and I stood there trembling with anxiety – and I sensed an infinite scream passing through nature. I painted this picture, painted the clouds as actual blood. The color shrieked. This became The Scream.', 1341, 730, 77302.55, '2020-02-22 21:02:22.41', 3), (8, 'demo_56d923c2-fe21-446b-a9f7-d5d1c3994413.jpg', 'th_demo_56d923c2-fe21-446b-a9f7-d5d1c3994413.jpg', '<NAME>', 'Portrait of <NAME> wife. The woman sits markedly upright in a pozzetto armchair with her arms folded, a sign of her reserved posture. Her gaze is fixed on the observer. The woman appears alive to an unusual extent, which I''ve achieved by this method of not drawing outlines (sfumato). The soft blending creates an ambiguous mood mainly in two features: the corners of the mouth, and the corners of the eyes.', 801, 1770.23, 145700, '2020-03-17 17:52:17.07', 4), (9, 'demo_67ef8361-0f72-49cf-92ae-891fc8ee52ab.jpg', 'th_demo_67ef8361-0f72-49cf-92ae-891fc8ee52ab.jpg', 'Couple', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 712, 250, 22700, '2019-11-08 15:41:01.03', 1), (10, 'demo_fb95c3a5-5bd4-4901-a12b-300859901004.jpg', 'th_demo_fb95c3a5-5bd4-4901-a12b-300859901004.jpg', 'Girl with a Pearl Earring', 'The painting is a tronie, the Dutch description of a head that was not meant to be a portrait. It depicts a European girl wearing an exotic dress, an oriental turban, and a very large pearl as an earring. The work is oil on canvas and is 44.5 cm high and 39 cm wide. The dark background is a deep enamel-like green. This effect is produced by applying a thin transparent layer of paint—a glaze—over the black background.', 99, 1600, 128600, '2019-10-12 09:31:05.00', 9), (11, 'demo_21cc0692-a1c0-4e34-b780-4e73d551a31b.jpg', 'th_demo_21cc0692-a1c0-4e34-b780-4e73d551a31b.jpg', 'The Storm on the Sea of Galilee', 'The painting, in vertical format, shows a close-up view of Christ''s disciples struggling frantically against the heavy storm to regain control of their fishing boat. A huge wave beats the bow and rips the sail. One of the disciples is seen vomiting over the side. Another one, looking directly out at the viewer, is a self-portrait of the artist. Only Christ, depicted on the right, remains calm.', 206, 700, 65890, '2020-05-12 09:31:05.00', 2), (12, 'demo_133b0b62-053b-4712-a9b6-8a774860e0da.jpg', 'th_demo_133b0b62-053b-4712-a9b6-8a774860e0da.jpg', 'The Conspiracy of <NAME>', 'The painting follows Tacitus''s Histories in depicting an episode from the Batavian rebellion (69–70 AD), led by the one-eyed chieftain <NAME> (actually called <NAME>ivilis by Tacitus), in which he collected at one of the sacred groves, ostensibly for a banquet, the chiefs of the nation and the boldest spirits of the lower class, convinced them to join his rebellion, and then bound the whole assembly with barbarous rites and strange forms of oath.', 216, 670, 63500, '2020-01-12 19:27:07.00', 2), (13, 'demo_a529d11c-5aeb-4eec-9faa-e4bd31a3dc0b.jpg', 'th_demo_a529d11c-5aeb-4eec-9faa-e4bd31a3dc0b.jpg', 'The Garden of Earthly Delights', 'Many of the numerous human figures revel in an innocent, self-absorbed joy as they engage in a wide range of activities; some appear to enjoy sensory pleasures, others play unselfconsciously in the water, and yet others cavort in meadows with a variety of animals, seemingly at one with nature. In the middle of the background, a large blue globe resembling a fruit pod rises in the middle of a lake.', 1608, 999.99, 100500, '2020-02-12 09:31:05.00', 6); INSERT INTO photo_owner (user_id, photo_id) VALUES (1, 8); INSERT INTO hashtag (id, name) VALUES (1, 'people'), (2, 'park'), (3, 'nature'), (4, 'female'), (5, 'war'), (6, 'night'), (7, 'city'), (8, 'sky'), (9, 'horse'), (10, 'river'), (11, 'tree'), (12, 'boat'), (13, 'man'), (14, 'village'), (15, 'crop'), (16, 'field'), (17, 'colorful'), (18, 'scream'), (19, 'water'), (20, 'coastline'), (21, 'portrait'), (22, 'mountains'), (23, 'hug'), (24, 'ship'), (25, 'sea'), (26, 'waves'), (27, 'table'), (28, 'dinner'), (29, 'king'), (30, 'sword'), (31, 'drink'); INSERT INTO hashtag_photo (photo_id, hashtag_id) VALUES (1, 1), (1, 2), (1, 3), (1, 10), (1, 11), (1, 12), (2, 3), (2, 4), (3, 1), (3, 11), (4, 6), (4, 7), (4, 8), (4, 11), (5, 9), (5, 13), (5, 14), (5, 15), (5, 16), (6, 9), (6, 17), (7, 13), (7, 18), (7, 19), (7, 20), (8, 21), (8, 22), (8, 4), (9, 4), (9, 13), (9, 23), (10, 21), (10, 4), (11, 24), (11, 19), (11, 12), (11, 25), (11, 26), (12, 27), (12, 28), (12, 29), (12, 30), (12, 31), (13, 1), (13, 3), (13, 11), (13, 19);
<gh_stars>0 -- CreateTable CREATE TABLE "Webhook" ( "id" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "name" TEXT NOT NULL, "slug" TEXT NOT NULL, "endpoint" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Payload" ( "id" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "webhookId" TEXT NOT NULL, "body" JSONB NOT NULL, PRIMARY KEY ("id") ); -- CreateIndex CREATE UNIQUE INDEX "Webhook.slug_unique" ON "Webhook"("slug"); -- AddForeignKey ALTER TABLE "Payload" ADD FOREIGN KEY ("webhookId") REFERENCES "Webhook"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 192.168.1.105 -- Erstellungszeit: 08. Aug 2019 um 12:07 -- Server-Version: 10.1.38-MariaDB-0+deb9u1 -- PHP-Version: 7.0.33-0+deb9u3 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 */; -- -- Datenbank: `nxn_esocket` -- -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `dip_list` -- CREATE TABLE `dip_list` ( `id` int(11) NOT NULL, `housecode` varchar(5) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `dip_list` -- INSERT INTO `dip_list` (`id`, `housecode`) VALUES (1, '10011'), (2, '10111'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `icons` -- CREATE TABLE `icons` ( `id` int(11) NOT NULL, `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `icons` -- INSERT INTO `icons` (`id`, `icon`) VALUES (1, '3dprinter'), (2, 'amp'), (3, 'brunnen'), (7, 'ceiling_light'), (14, 'ceiling_light1'), (15, 'ceiling_light2'), (11, 'cupboard'), (4, 'ex5000'), (5, 'extern_hdd'), (10, 'fan'), (8, 'mouse'), (9, 'pc'), (6, 'socket'), (16, 'standlamp_light'), (12, 'wii0'), (13, 'wii1'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `nodes` -- CREATE TABLE `nodes` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ip` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `port` varchar(11) COLLATE utf8_unicode_ci NOT NULL, `is_inUse` tinyint(1) NOT NULL DEFAULT '0', `is_active` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `nodes` -- INSERT INTO `nodes` (`id`, `name`, `location`, `ip`, `port`, `is_inUse`, `is_active`) VALUES (1, 'node1', 'NAS', '192.168.1.105', '13337', 1, 1), (3, 'nxn-nodeMCU-107', 'Büro', '192.168.1.107', '13337', 1, 1), (4, 'nxn-nodeMCU-108', NULL, '192.168.1.108', '13337', 0, 0); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `socketcodes` -- CREATE TABLE `socketcodes` ( `id` int(11) NOT NULL, `socketcode` varchar(5) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `socketcodes` -- INSERT INTO `socketcodes` (`id`, `socketcode`) VALUES (1, '00000'), (2, '00001'), (3, '00011'), (4, '00100'), (5, '00101'), (6, '00110'), (7, '00111'), (8, '01000'), (9, '01001'), (10, '01010'), (11, '01011'), (12, '01100'), (13, '01101'), (14, '01110'), (15, '01111'), (16, '10000'), (17, '10001'), (18, '10010'), (19, '10011'), (20, '10100'), (21, '10101'), (22, '10110'), (23, '10111'), (24, '11000'), (25, '11001'), (26, '11010'), (27, '11011'), (28, '11100'), (29, '11101'), (30, '11110'), (31, '11111'); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `sockets` -- CREATE TABLE `sockets` ( `id` int(11) NOT NULL, `housecode` varchar(5) COLLATE utf8_unicode_ci NOT NULL, `socketcode` varchar(5) COLLATE utf8_unicode_ci NOT NULL, `controlled_device` varchar(24) COLLATE utf8_unicode_ci NOT NULL, `hardware_active` tinyint(1) NOT NULL DEFAULT '1', `state` tinyint(1) NOT NULL DEFAULT '0', `needs_permit` tinyint(1) NOT NULL DEFAULT '0', `needs_confirmation` tinyint(1) NOT NULL DEFAULT '0', `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `displayOrder` int(11) NOT NULL DEFAULT '99' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `sockets` -- INSERT INTO `sockets` (`id`, `housecode`, `socketcode`, `controlled_device`, `hardware_active`, `state`, `needs_permit`, `needs_confirmation`, `icon`, `displayOrder`) VALUES (1, '10011', '00000', 'Mosquito EX-5000', 1, 0, 0, 1, 'ex5000', 1), (2, '10011', '00001', 'Nintendo Wii', 1, 0, 0, 0, 'wii0', 4), (3, '10011', '00011', 'Brunnen', 1, 0, 0, 0, 'brunnen', 99), (4, '10011', '00100', 'Schranklicht', 1, 0, 0, 0, 'cupboard', 99), (5, '10011', '00101', 'Laptop', 1, 0, 0, 0, NULL, 3), (6, '10011', '00110', 'Festplatte Extern', 1, 0, 0, 1, 'extern_hdd', 99), (7, '10011', '00111', 'Schlafzimmer', 1, 0, 0, 0, 'ceiling_light1', 2), (8, '10011', '01000', 'Empty', 0, 0, 0, 0, NULL, 99), (9, '10011', '01001', 'Empty', 0, 0, 0, 0, NULL, 99), (10, '10011', '01010', 'Empty', 0, 0, 0, 0, NULL, 99), (11, '10011', '01011', 'Empty', 0, 0, 0, 0, NULL, 99), (12, '10011', '01100', 'Empty', 0, 0, 0, 0, NULL, 99), (13, '10011', '01101', 'Empty', 0, 0, 0, 0, NULL, 99), (14, '10011', '01110', 'Empty', 0, 0, 0, 0, NULL, 99); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(120) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '<PASSWORD> SALT', `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `last_login` int(10) UNSIGNED NOT NULL, `show_raspinfo` tinyint(1) NOT NULL DEFAULT '0', `login_timeout` int(10) UNSIGNED NOT NULL DEFAULT '60' COMMENT 'In Minutes', `allow_terminal` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `users` -- INSERT INTO `users` (`id`, `username`, `password`, `<PASSWORD>`, `last_login`, `show_raspinfo`, `login_timeout`, `allow_terminal`) VALUES (1, 'SpReeD', '<PASSWORD>$UNs2YbHr/rdAsX/VsO2./mFVQoQ/H12U8wY9/SPLS2l8WwITimKdx7DKeybZ3phNqGfMckvEUm4Js65oPTwN./', '<PASSWORD>', 1565240197, 1, 120, 1); -- -- Indizes der exportierten Tabellen -- -- -- Indizes für die Tabelle `dip_list` -- ALTER TABLE `dip_list` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `dip_main` (`housecode`); -- -- Indizes für die Tabelle `icons` -- ALTER TABLE `icons` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `icon` (`icon`); -- -- Indizes für die Tabelle `nodes` -- ALTER TABLE `nodes` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `socketcodes` -- ALTER TABLE `socketcodes` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `socketcode` (`socketcode`); -- -- Indizes für die Tabelle `sockets` -- ALTER TABLE `sockets` ADD PRIMARY KEY (`id`), ADD KEY `constraint_icon` (`icon`), ADD KEY `controlled_device` (`controlled_device`), ADD KEY `constraint_socketcode` (`socketcode`), ADD KEY `constraint_housecode` (`housecode`); -- -- Indizes für die Tabelle `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`) USING BTREE; -- -- AUTO_INCREMENT für exportierte Tabellen -- -- -- AUTO_INCREMENT für Tabelle `dip_list` -- ALTER TABLE `dip_list` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT für Tabelle `icons` -- ALTER TABLE `icons` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT für Tabelle `nodes` -- ALTER TABLE `nodes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT für Tabelle `socketcodes` -- ALTER TABLE `socketcodes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT für Tabelle `sockets` -- ALTER TABLE `sockets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT für Tabelle `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints der exportierten Tabellen -- -- -- Constraints der Tabelle `sockets` -- ALTER TABLE `sockets` ADD CONSTRAINT `constraint_housecode` FOREIGN KEY (`housecode`) REFERENCES `dip_list` (`housecode`) ON UPDATE CASCADE, ADD CONSTRAINT `constraint_icon` FOREIGN KEY (`icon`) REFERENCES `icons` (`icon`) ON UPDATE CASCADE, ADD CONSTRAINT `constraint_socketcode` FOREIGN KEY (`socketcode`) REFERENCES `socketcodes` (`socketcode`) 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 account_types ( id tinyint unsigned primary key auto_increment, name varchar(32), unique(name), class varchar(32) comment 'css class for this type of account, which determines the icon used' );
<reponame>quocchienit/wambi-project CREATE TABLE IF NOT EXISTS `permission_role` ( `role_id` int(10) unsigned NOT NULL, `permission_id` int(10) unsigned NOT NULL, PRIMARY KEY (`permission_id`,`role_id`), KEY `permission_role_role_id_foreign` (`role_id`), CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
<filename>BDD/TP6/unicode_schema.sql DROP TABLE IF EXISTS unicode_sans CASCADE; DROP TABLE IF EXISTS unicode_btree CASCADE; DROP TABLE IF EXISTS unicode_hash CASCADE; DROP TABLE IF EXISTS unicode_both CASCADE; CREATE TABLE unicode_sans ( codepoint character varying(6) PRIMARY KEY, charname text NOT NULL, category character(2) NOT NULL, combining integer NOT NULL, bidi character varying(3) NOT NULL, decomposition text, "decimal" integer, digit integer, "numeric" text, mirrored character(1) NOT NULL, oldname text, comment text, uppercase character varying(6) REFERENCES unicode_sans(codepoint), lowercase character varying(6) REFERENCES unicode_sans(codepoint), titlecase character varying(6) REFERENCES unicode_sans(codepoint) ); \copy unicode_sans FROM UnicodeData.txt DELIMITER ';' NULL '' -- 1/ -- uppercase donne le codepoint du caractère en majuscule si c'est une minuscule -- 2/ -- L'index est créé quand on utilise une clé primaire car il ne faut pas de doublon ANALYZE unicode_sans; SELECT relname, reltuples, relpages FROM pg_catalog.pg_class WHERE 'unicode_sans'=relname OR 'unicode_sans_pkey'=relname; -- La table et son index on autant d'enregistrements mais l'index prend moins de pages CREATE TABLE unicode_btree ( codepoint character varying(6) PRIMARY KEY, charname text NOT NULL, category character(2) NOT NULL, combining integer NOT NULL, bidi character varying(3) NOT NULL, decomposition text, "decimal" integer, digit integer, "numeric" text, mirrored character(1) NOT NULL, oldname text, comment text, uppercase character varying(6) REFERENCES unicode_btree(codepoint), lowercase character varying(6) REFERENCES unicode_btree(codepoint), titlecase character varying(6) REFERENCES unicode_btree(codepoint) ); CREATE INDEX charname_btree_seq ON unicode_btree USING btree (charname); CREATE INDEX numeric_btree_seq ON unicode_btree USING btree (numeric); \copy unicode_btree FROM UnicodeData.txt DELIMITER ';' NULL '' CREATE TABLE unicode_hash ( codepoint character varying(6) PRIMARY KEY, charname text NOT NULL, category character(2) NOT NULL, combining integer NOT NULL, bidi character varying(3) NOT NULL, decomposition text, "decimal" integer, digit integer, "numeric" text, mirrored character(1) NOT NULL, oldname text, comment text, uppercase character varying(6) REFERENCES unicode_hash(codepoint), lowercase character varying(6) REFERENCES unicode_hash(codepoint), titlecase character varying(6) REFERENCES unicode_hash(codepoint) ); CREATE INDEX charname_hash_seq ON unicode_hash USING hash (charname); CREATE INDEX numeric_hash_seq ON unicode_hash USING hash (numeric); \copy unicode_hash FROM UnicodeData.txt DELIMITER ';' NULL '' -- 3/ -- btree>hash>sans_index -- car l'algo pour faire un btree est plus complexe qu'une table de hash -- 4/ ANALYZE unicode_sans; ANALYZE unicode_btree; ANALYZE unicode_hash; SELECT relname, reltuples, relpages FROM pg_catalog.pg_class WHERE 'unicode_sans_pkey'=relname OR 'charname_btree_seq'=relname OR 'numeric_btree_seq'=relname OR 'charname_hash_seq'=relname OR 'numeric_hash_seq'=relname; -- btree prend plus de blocs que hash car le codage est plus lourd -- charname prend plus de blocs que numeric car numeric ne contient que les chiffre de 0 a 9 -- alors que charname contient le nom de tous les caractères ---- Exo 2: CREATE TABLE unicode_both ( codepoint character varying(6) PRIMARY KEY, charname text NOT NULL, category character(2) NOT NULL, combining integer NOT NULL, bidi character varying(3) NOT NULL, decomposition text, "decimal" integer, digit integer, "numeric" text, mirrored character(1) NOT NULL, oldname text, comment text, uppercase character varying(6) REFERENCES unicode_both(codepoint), lowercase character varying(6) REFERENCES unicode_both(codepoint), titlecase character varying(6) REFERENCES unicode_both(codepoint) ); CREATE INDEX charname_btree_both_seq ON unicode_both USING btree (charname); CREATE INDEX numeric_btree_both_seq ON unicode_both USING btree (numeric); CREATE INDEX charname_hash_both_seq ON unicode_both USING hash (charname); CREATE INDEX numeric_hash_both_seq ON unicode_both USING hash (numeric); \copy unicode_both FROM UnicodeData.txt DELIMITER ';' NULL '' NULL -- 5/ ANALYZE unicode_sans; ANALYZE unicode_btree; ANALYZE unicode_hash; ANALYZE unicode_both; EXPLAIN SELECT * FROM unicode_sans WHERE numeric='1'; EXPLAIN SELECT * FROM unicode_both WHERE numeric='1'; EXPLAIN SELECT * FROM unicode_btree WHERE numeric='1'; EXPLAIN SELECT * FROM unicode_hash WHERE numeric='1'; -- cost : temps avant le renvoi du premier enregistrement puis temps total pour tout renvoyer -- rows : nombres de lignes renvoyées -- width : largeur (nombre de caractères) par ligne -- Pour la table unicode_both il utilise la méthode de hash car moins couteux. -- 7/ SELECT count(*) FROM unicode_sans; EXPLAIN SELECT * FROM unicode_both; EXPLAIN SELECT * FROM unicode_sans; EXPLAIN SELECT * FROM unicode_btree; EXPLAIN SELECT * FROM unicode_hash; -- C'est les mêmes temps. -- Il n'utilise pas les indexs pour un select * -- 8.1/ SELECT count(*) FROM unicode_sans WHERE charname='NABLA'; EXPLAIN SELECT * FROM unicode_both WHERE charname='NABLA'; EXPLAIN SELECT * FROM unicode_sans WHERE charname='NABLA'; EXPLAIN SELECT * FROM unicode_btree WHERE charname='NABLA'; EXPLAIN SELECT * FROM unicode_hash WHERE charname='NABLA'; -- Il y a qu'un tuple correspondant à cette requete donc pas de méthode spéciale. -- 9.1/ SELECT count(*) FROM unicode_sans WHERE numeric<'12'; EXPLAIN SELECT * FROM unicode_both WHERE numeric<'12'; EXPLAIN SELECT * FROM unicode_sans WHERE numeric<'12'; EXPLAIN SELECT * FROM unicode_btree WHERE numeric<'12'; EXPLAIN SELECT * FROM unicode_hash WHERE numeric<'12'; -- unicod_both utilise un index scan btree car plus rapide que de chercher les valeurs dans la HashTable -- 8.2/ SELECT count(*) FROM unicode_sans WHERE charname<'ADULT'; SELECT count(*) FROM unicode_sans WHERE charname>'ADULT'; EXPLAIN SELECT * FROM unicode_both WHERE charname<'ADULT'; EXPLAIN SELECT * FROM unicode_both WHERE charname>'ADULT'; EXPLAIN SELECT * FROM unicode_sans WHERE charname<'ADULT'; EXPLAIN SELECT * FROM unicode_sans WHERE charname>'ADULT'; EXPLAIN SELECT * FROM unicode_btree WHERE charname<'ADULT'; EXPLAIN SELECT * FROM unicode_btree WHERE charname>'ADULT'; EXPLAIN SELECT * FROM unicode_hash WHERE charname<'ADULT'; EXPLAIN SELECT * FROM unicode_hash WHERE charname>'ADULT'; -- -- 9.2/ SELECT count(*) FROM unicode_sans WHERE numeric IS NULL; SELECT count(*) FROM unicode_sans WHERE numeric IS NOT NULL; EXPLAIN SELECT * FROM unicode_both WHERE numeric IS NULL; EXPLAIN SELECT * FROM unicode_both WHERE numeric IS NOT NULL; EXPLAIN SELECT * FROM unicode_sans WHERE numeric IS NULL; EXPLAIN SELECT * FROM unicode_sans WHERE numeric IS NOT NULL; EXPLAIN SELECT * FROM unicode_btree WHERE numeric IS NULL; EXPLAIN SELECT * FROM unicode_btree WHERE numeric IS NOT NULL; EXPLAIN SELECT * FROM unicode_hash WHERE numeric IS NULL; EXPLAIN SELECT * FROM unicode_hash WHERE numeric IS NOT NULL; -- -- 10/ SELECT count(*) FROM unicode_sans WHERE charname IS NULL; SELECT count(*) FROM unicode_sans WHERE charname IS NOT NULL; EXPLAIN SELECT * FROM unicode_both WHERE charname IS NULL; EXPLAIN SELECT * FROM unicode_both WHERE charname IS NOT NULL; EXPLAIN SELECT * FROM unicode_sans WHERE charname IS NULL; EXPLAIN SELECT * FROM unicode_sans WHERE charname IS NOT NULL; EXPLAIN SELECT * FROM unicode_btree WHERE charname IS NULL; EXPLAIN SELECT * FROM unicode_btree WHERE charname IS NOT NULL; EXPLAIN SELECT * FROM unicode_hash WHERE charname IS NULL; EXPLAIN SELECT * FROM unicode_hash WHERE charname IS NOT NULL; -- 11/ -- EXPLAIN SELECT * FROM unicode_both WHERE charname='ADULT'; -- EXPLAIN SELECT * FROM unicode_both WHERE charname='CONTROL'; -- mauvais temps de recherche sur interval avec des hash
<filename>Database_Basics_MySQL_Exam_13_February_2022/Table_Design_01.sql<gh_stars>0 CREATE TABLE `customers` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `first_name` VARCHAR(20) NOT NULL, `last_name` VARCHAR(20) NOT NULL, `phone` VARCHAR(30) UNIQUE NOT NULL, `address` VARCHAR(60) NOT NULL, `discount_card` BIT(1) NOT NULL DEFAULT FALSE ); CREATE TABLE `orders` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `order_datetime` DATETIME NOT NULL, `customer_id` INT NOT NULL, CONSTRAINT fk_orders_customers FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ); CREATE TABLE `reviews` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `content` TEXT, `rating` DECIMAL(10 , 2 ) NOT NULL, `picture_url` VARCHAR(80) NOT NULL, `published_at` DATETIME NOT NULL ); CREATE TABLE `brands` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(40) UNIQUE NOT NULL ); CREATE TABLE `categories` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(40) UNIQUE NOT NULL ); CREATE TABLE `products` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(40) NOT NULL, `price` DECIMAL(19 , 2 ) NOT NULL, `quantity_in_stock` INT, `description` TEXT, `brand_id` INT NOT NULL, `category_id` INT NOT NULL, `review_id` INT, CONSTRAINT fk_products_brands FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`), CONSTRAINT fk_products_categories FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`), CONSTRAINT fk_products_reviews FOREIGN KEY (`review_id`) REFERENCES `reviews` (`id`) ); CREATE TABLE `orders_products` ( `order_id` INT, `product_id` INT, CONSTRAINT fk_orders_products_orders FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`), CONSTRAINT fk_orders_products_products FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) );
DROP TABLE IF EXISTS `loggers`; CREATE TABLE `loggers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `create_at` varchar(45) NOT NULL, `action` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; DROP TABLE IF EXISTS `rols`; CREATE TABLE `rols` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rol` varchar(30) NOT NULL, `slug` varchar(30) NOT NULL, `active` tinyint(4) NOT NULL DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `rolUQ` (`rol`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; LOCK TABLES `rols` WRITE; INSERT INTO `rols` VALUES (1,'Administrador','administrador','1'),(2,'Supervisor','supervisor','1'),(3,'Operador','operador','1'); UNLOCK TABLES; DROP TABLE IF EXISTS `setting`; CREATE TABLE `setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rucEmproy` varchar(18) NOT NULL, `nameEmproy` varchar(150) NOT NULL, `addrEmproy` varchar(255) DEFAULT NULL, `phoneEmproy` varchar(25) DEFAULT NULL, `otherPhoneEmproy` varchar(25) DEFAULT NULL, `emailEmproy` varchar(50) NOT NULL, `logoEmproy` blob, `tockenEmproy` varchar(255) DEFAULT NULL, `dbEmproy` varchar(30) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rucEmproyUQ` (`rucEmproy`), UNIQUE KEY `dbEmproyUQ` (`dbEmproy`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_rol` int(11) NOT NULL, `username` varchar(25) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(50) DEFAULT NULL, `nombres` varchar(100) NOT NULL, `apellidos` varchar(100) NOT NULL, `foto` varchar(200) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `active` tinyint(4) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; LOCK TABLES `users` WRITE; INSERT INTO `users` VALUES (1,1,'admin','<PASSWORD>','<EMAIL>','Administrador','RekutuPHP','','d<PASSWORD>a39010350657716ad8b8ecc<PASSWORD>2ac09c<PASSWORD>',1); UNLOCK TABLES;
ALTER TABLE `SaleLeap`.`users` RENAME TO `SaleLeap`.`buyers` ;
ALTER TABLE egpt_basic_property ALTER COLUMN regd_doc_no DROP NOT NULL; ALTER TABLE egpt_basic_property ALTER COLUMN regd_doc_date DROP NOT NULL;
<filename>Data_Extraction/mimic_aline_data.sql<gh_stars>1-10 /* Created on : Dec 2012 by <NAME> Last updated : nov 2014 Extract data for echo project and aline project */ --SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY()); --explain plan for -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Data Extraction ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- --drop table aline_mimic_data_march14; --create table aline_mimic_data_march14 as --create table aline_mimic_data_apr14 as --drop table aline_mimic_data_may15; --create table aline_mimic_data_may15 as with population_1 as (select * from mornin.aline_mimic_COHORT_feb14 --where icustay_id<10 --where initial_aline_flg = 0 ) --select count(distinct icustay_id) from population; --select * from population_1; --23455 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Demographic and basic data ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- , population_2 as (select distinct pop.* , round(icud.icustay_los/60/24, 2) as icu_los_day , round(icud.hospital_los/60/24,2) as hospital_los_day , case when icud.icustay_admit_age>120 then 91.4 else icud.icustay_admit_age end as age --, icud.gender as gender , case when icud.gender is null then null when icud.gender = 'M' then 1 else 0 end as gender_num , icud.gender as gender , case when dd.ETHNICITY_DESCR like '%WHITE%' then 'WHITE' when dd.ETHNICITY_DESCR like '%ASIAN%' then 'ASIAN' when dd.ETHNICITY_DESCR like '%HISPANIC%' or dd.ETHNICITY_DESCR='SOUTH AMERICAN' then 'HISPANIC' when dd.ETHNICITY_DESCR like '%WHITE%' or dd.ETHNICITY_DESCR='PORTUGUESE' then 'WHITE' when dd.ETHNICITY_DESCR like '%BLACK%' then 'BLACK' when dd.ETHNICITY_DESCR like '%NATIVE%' then 'NATIVE' when dd.ETHNICITY_DESCR in ('UNKNOWN/NOT SPECIFIED', 'PATIENT DECLINED TO ANSWER', 'UNABLE TO OBTAIN') then 'UNKNOWN' else 'OTHER' end as ETHNIC_GROUP --, dd.ETHNICITY_DESCR as ethnic_group , icud.WEIGHT_FIRST , bmi.bmi , icud.SAPSI_FIRST , icud.SOFA_FIRST , icud.ICUSTAY_FIRST_SERVICE as service_unit , case when ICUSTAY_FIRST_SERVICE='SICU' then 1 when ICUSTAY_FIRST_SERVICE='CCU' then 2 when ICUSTAY_FIRST_SERVICE='CSRU' then 3 else 0 --MICU & FICU end as service_num --, icud.icustay_intime , icud.icustay_outtime , to_char(icud.ICUSTAY_INTIME, 'Day') as day_icu_intime , to_number(to_char(icud.ICUSTAY_INTIME, 'D')) as day_icu_intime_num , extract(hour from icud.ICUSTAY_INTIME) as hour_icu_intime , case when icud.hospital_expire_flg='Y' then 1 else 0 end as hosp_exp_flg , case when icud.icustay_expire_flg='Y' then 1 else 0 end as icu_exp_flg , round((extract(day from d.dod-icud.icustay_intime)+extract(hour from d.dod-icud.icustay_intime)/24),2) as mort_day from population_1 pop left join mimic2v26.icustay_detail icud on pop.icustay_id = icud.icustay_id left join mimic2devel.obesity_bmi bmi on bmi.icustay_id=pop.icustay_id left join MIMIC2DEVEL.d_patients d on d.subject_id=pop.subject_id left join mimic2v26.demographic_detail dd on dd.subject_id=pop.subject_id ) --select distinct service_unit from population_2; --select max(hour_icu_intime) from population_2; --select * from population_2; , population as (select p.* , case when hour_icu_intime >= 7 and hour_icu_intime<19 then 1 else 0 end as icu_hour_flg , case when p.mort_day<=28 then 1 else 0 end as day_28_flg , coalesce(p.mort_day, 731) as mort_day_censored , case when p.mort_day<=730 then 0 else 1 end as censor_flg from population_2 p where icu_los_day>=0.5 --- stayed in icu for more than 12 hours --and icustay_id<100 ) --select * from population; --6517 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Aline Duration ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- , aline_duration1 as (select distinct p.icustay_id , first_value(ch.charttime) over (partition by p.icustay_id order by ch.charttime asc) as aline_begintime , first_value(ch.charttime) over (partition by p.icustay_id order by ch.charttime desc) as aline_endtime --, ch.charttime , p.icustay_intime , p.icu_los_day from population p join mimic2v26.chartevents ch on p.icustay_id=ch.icustay_id and ch.itemid in (51,52) and (ch.value1num is not null or ch.value2num is not null) --order by 1 ) , aline_duration as (select icustay_id , round((extract(day from (aline_endtime-aline_begintime)) +extract(hour from (aline_endtime-aline_begintime))/24 +extract(minute from (aline_endtime-aline_begintime))/24/60)/icu_los_day,2) as aline_duration , icu_los_day from aline_duration1 ) --select * from aline_duration; -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Vent patients ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- ,vent_group_1 as (select distinct --pop.hadm_id pop.icustay_id , 1 as flg --, icud.icustay_id --, vent.end_time --, vent.begin_time , min(vent.begin_time) as vent_start_time , max(vent.end_time) as vent_end_time , sum(round((extract(day from (vent.end_time-vent.begin_time))+ extract(hour from (vent.end_time-vent.begin_time))/24+1/24+ extract(minute from (vent.end_time-vent.begin_time))/60/24), 3)) as vent_day , pop.icustay_outtime , pop.icustay_intime , pop.INITIAL_ALINE_FLG , pop.ALINE_FLG , pop.ALINE_TIME_DAY from population pop --join mimic2v26.icustay_detail icud on icud.icustay_id = pop.icustay_id join mimic2devel.ventilation vent on vent.icustay_id = pop.icustay_id group by pop.icustay_id, pop.icustay_outtime, pop.icustay_intime, pop.INITIAL_ALINE_FLG, pop.ALINE_FLG, pop.ALINE_TIME_DAY order by 1 ) --select * from vent_group_1; ---4161 --select * from vent_group where hadm_id=2798; , vent_group_2 as (select v.* , round(extract(day from (vent_start_time-icustay_intime)) + extract(hour from (vent_start_time-icustay_intime))/24 + extract(minute from (vent_start_time-icustay_intime))/24/60,2) as vent_start_day , round(extract(day from (icustay_outtime-vent_end_time)) + extract(hour from (icustay_outtime-vent_end_time))/24 + extract(minute from (icustay_outtime-vent_end_time))/24/60,2) as vent_free_day , case when vent_day>=1 then 1 else 0 end as vent_1day_flg --no of days under vent , case when vent_day>=0.5 then 1 else 0 end as vent_12hr_flg , case when vent_day>=0.25 then 1 else 0 end as vent_6hr_flg --, case when vent_start_day<=0.125 then 1 else 0 as vent_1st_3hr_flg --, case when vent_start_day<=0.25 then 1 else 0 as vent_1st_6hr_flg --case when vent_start_day<=0.5 then 1 else 0 as vent_1st_12hr_flg from vent_group_1 v ) , vent_group as (select v.* , case when v.vent_start_day<=(2/24) then 1 else 0 end as vent_1st_2hr_flg , case when v.vent_start_day<=0.125 then 1 else 0 end as vent_1st_3hr_flg , case when v.vent_start_day<=0.25 then 1 else 0 end as vent_1st_6hr_flg , case when v.vent_start_day<=0.5 then 1 else 0 end as vent_1st_12hr_flg , case when v.vent_start_day<=1 then 1 else 0 end as vent_1st_24hr_flg , case when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and vent_start_day<=ALINE_TIME_DAY then 1 when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and vent_start_day>ALINE_TIME_DAY then 0 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and v.vent_start_day<=(2/24) then 1 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and v.vent_start_day>(2/24) then 0 else NULL end as vent_b4_aline from vent_group_2 v ) --select * from vent_group; --select count(*) from vent_group where vent_b4_aline=1; --6008 --select median(vent_start_day) from vent_group; --select count(*) from vent_group where vent_1st_3hr_flg=1; --11760 --first 3 hour started vent 7662 --select * from vent_group order by vent_free_day asc; -------------- label vent patients at 1st 12 hour------------------------------- --,vent_12hr_group as --(select distinct ----pop.hadm_id --pop.icustay_id --, 1 as flg ----, vent.begin_time ----, icud.icustay_intime --from population pop ----join mimic2v26.icustay_detail icud on icud.hadm_id = pop.hadm_id and icud.icustay_seq=1 --join mimic2devel.ventilation vent -- on vent.icustay_id = pop.icustay_id -- --and vent.seq=1 -- and vent.begin_time<=pop.icustay_intime+12/24 --order by 1 --) --select * from vent_12hr_group; --3488 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Mediaction Dat: vasopressor & Anesthetic ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- ------------------------------------------- label vaso patients ---------------------------- --- a more accurate calculation of vaso time may be necessary!!!!! , vaso_group_1 as (select distinct --pop.hadm_id pop.icustay_id , pop.icustay_intime , pop.icustay_outtime --, pop.icustay_outtime-pop.icustay_intime as temp , pop.icu_los_day , first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime asc) as begin_time , first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime desc) as end_time , 1 as flg , pop.INITIAL_ALINE_FLG , pop.ALINE_FLG , pop.ALINE_TIME_DAY from population pop --join mimic2v26.icustay_detail icud on icud.hadm_id = pop.hadm_id join mimic2v26.medevents med on med.icustay_id=pop.icustay_id and med.itemid in (46,47,120,43,307,44,119,309,51,127,128) where med.charttime is not null ) --select extract(day from temp) as temp_day from vaso_group_1 where icustay_id=2613; --select count(distinct icustay_id) from vaso_group; , vaso_group_2 as (select distinct --hadm_id --icustay_id v.* , round(extract(day from (begin_time-icustay_intime)) + extract(hour from (begin_time-icustay_intime))/24 + extract(minute from (begin_time-icustay_intime))/24/60,2) as vaso_start_day , round(extract(day from (icustay_outtime-end_time)) + extract(hour from (icustay_outtime-end_time))/24 + extract(minute from (icustay_outtime-end_time))/60/24, 2) as vaso_free_day , round(extract(day from (end_time-begin_time)) + extract(hour from (end_time-begin_time))/24 +1/24 --- add additional 1 hour + extract(minute from (end_time-begin_time))/60/24, 2) as vaso_day --, icu_los_day --, round(extract(day from (icustay_outtime-icustay_intime)) -- + extract(hour from (icustay_outtime-icustay_intime))/24 -- + extract(minute from (icustay_outtime-icustay_intime))/60/24, 2) as temp --, flg from vaso_group_1 v ) , vaso_group as (select v.* --, case when , case when v.vaso_start_day<=0.125 then 1 else 0 end as vaso_1st_3hr_flg , case when v.vaso_start_day<=0.25 then 1 else 0 end as vaso_1st_6hr_flg , case when v.vaso_start_day<=0.5 then 1 else 0 end as vaso_1st_12hr_flg , case when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and vaso_start_day<=ALINE_TIME_DAY then 1 when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and vaso_start_day>ALINE_TIME_DAY then 0 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and v.vaso_start_day<=(2/24) then 1 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and v.vaso_start_day>(2/24) then 0 else NULL end as vaso_b4_aline from vaso_group_2 v ) --select median(vaso_start_day) from vaso_group; --select * from vaso_group; --select count(*) from vaso_group where vaso_b4_aline=0;--7886 -3895 --select * from vaso_group_2 where icustay_id=2613; --, vaso_group as --(select distinct --icustay_id --, flg --, vaso_day --, icu_los_day --, case when (icu_los_day-vaso_day)<0 then 0 else (icu_los_day-vaso_day) end as vaso_free_Day --from vaso_group_2 --) --select * from vaso_group order by vaso_free_day; ---2915 -------------- label vaso patients for 1st 12 hours ---------------------------- --, vaso_group_12_hr_1 as --(select --distinct ----pop.hadm_id --pop.icustay_id --, first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime asc) as begin_time --, pop.ICUSTAY_INTIME --from population pop ----join mimic2v26.icustay_detail icud on icud.hadm_id = pop.hadm_id and ICUSTAY_SEQ =1 --join mimic2v26.medevents med on med.icustay_id=pop.icustay_id and med.itemid in (46,47,120,43,307,44,119,309,51,127,128) --where med.charttime is not null --order by 1 --) --select count(distinct hadm_id) from vaso_group_12_hr_1; --select * from vaso_group_12_hr_1; --2991 --, vaso_12hr_group as --(select distinct icustay_id --, 1 as flg --from vaso_group_1 --where begin_time <= ICUSTAY_INTIME+12/24 --) --select * from vaso_12hr_group; --2016 ------------------------------------------- label Anesthetic patients ---------------------------- , anes_group_1 as (select distinct --pop.hadm_id pop.icustay_id , pop.icustay_intime , pop.icustay_outtime --, pop.icustay_outtime-pop.icustay_intime as temp , pop.icu_los_day , first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime asc) as begin_time , first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime desc) as end_time , case when med.itemid in (118,149,150,308) then 'Fentanyl' when med.itemid = 124 then 'Midazolam' when med.itemid= 131 then 'Propofol' when med.itemid= 163 then 'Dilaudid' end as label , 1 as flg , pop.INITIAL_ALINE_FLG , pop.ALINE_FLG , pop.ALINE_TIME_DAY from population pop --join mimic2v26.icustay_detail icud on icud.hadm_id = pop.hadm_id join mimic2v26.medevents med on med.icustay_id=pop.icustay_id and med.itemid in (124,118,149,150,308,163,131) where med.charttime is not null ) --select * from anes_group_1; , anes_group_2 as (select distinct --hadm_id --icustay_id a.* , round(extract(day from (begin_time-icustay_intime)) + extract(hour from (begin_time-icustay_intime))/24 + extract(minute from (begin_time-icustay_intime))/24/60,2) as anes_start_day , round(extract(day from (icustay_outtime-end_time)) + extract(hour from (icustay_outtime-end_time))/24 + extract(minute from (icustay_outtime-end_time))/60/24, 2) as anes_free_day , round(extract(day from (end_time-begin_time)) + extract(hour from (end_time-begin_time))/24 + 1/24 -- add additional 1 hour for edge consideration + extract(minute from (end_time-begin_time))/60/24, 2) as anes_day --, icu_los_day --, round(extract(day from (icustay_outtime-icustay_intime)) -- + extract(hour from (icustay_outtime-icustay_intime))/24 -- + extract(minute from (icustay_outtime-icustay_intime))/60/24, 2) as temp --, flg from anes_group_1 a ) --select * from anes_group; , anes_group as (select a.* --, case when --, case when anes_start_day<=0.125 then 1 else 0 end as anes_1st_3hr_flg --, case when anes_start_day<=0.25 then 1 else 0 end as anes_1st_6hr_flg --, case when anes_start_day<=0.5 then 1 else 0 end as anes_1st_12hr_flg , case when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and anes_start_day<=ALINE_TIME_DAY then 1 when ALINE_FLG=1 and INITIAL_ALINE_FLG =0 and anes_start_day>ALINE_TIME_DAY then 0 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and anes_start_day<=(6/24) then 1 when ALINE_FLG=0 and INITIAL_ALINE_FLG =0 and anes_start_day>(6/24) then 0 else NULL end as anes_b4_aline from anes_group_2 a ) --select median(anes_start_day) from anes_group; --select * from anes_group; , sedative_drug as ( select * from ( select icustay_id,flg,label from anes_group ) pivot ( max(flg) for label in ('Fentanyl' as Fentanyl, 'Midazolam' as Midazolam, 'Propofol' as Propofol, 'Dilaudid' as Dilaudid) ) ) --select * from sedative_drug; ------------------------------------- dobutamine medication group (can be excluded) ------------------- , dabu_group_1 as (select distinct --pop.hadm_id pop.icustay_id , pop.icustay_intime --, pop.icustay_outtime --, pop.icustay_outtime-pop.icustay_intime as temp , pop.icu_los_day , first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime asc) as begin_time --, first_value(med.charttime) over (partition by pop.icustay_id order by med.charttime desc) as end_time , 1 as flg from population pop --join mimic2v26.icustay_detail icud on icud.hadm_id = pop.hadm_id join mimic2v26.medevents med on med.icustay_id=pop.icustay_id and med.itemid in (306,42) where med.charttime is not null ) , dabu_12hr_group as (select distinct icustay_id , 1 as flg from dabu_group_1 where begin_time <= ICUSTAY_INTIME+12/24 ) --select * from dabu_12hr_group; --123 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- commorbidity variables ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- , sepsis_group as (select distinct pop.icustay_id, pop.hadm_id, 1 as flg from population pop join sepsis_angus sep on pop.hadm_id = sep.hadm_id ) --select * from sepsis_group; --6339 , icd9code as (select pop.icustay_id , pop.hadm_id , regexp_substr(code,'^\D') AS icd9_alpha , to_number(regexp_substr(code,'\d+$|\d+\.\d+$')) AS icd9_numeric from population pop join mimic2v26.icd9 icd on pop.hadm_id=icd.hadm_id ) --select * from icd9code; --endocarditis diagnosis group , endocarditis_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg from population pop join mimic2v26.icd9 icd on pop.hadm_id=icd.hadm_id where icd.code in ('036.42','074.22','093.20','093.21','093.22','093.23','093.24','098.84','112.81','115.04','115.14','115.94','391.1','421.0','421.1','421.9','424.90','424.91','424.99') ) --select count(*) from endocarditis_group; --113 --select adm.subject_id, adm.hadm_id, adm.admit_dt,dpat.dod from mimic2v26.admissions adm, mimic2devel.d_patients dpat where adm.subject_id=dpat.subject_id and adm.hadm_id = 9679; , chf_group as (select distinct pop.hadm_id,pop.icustay_id, 1 as flg from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93', '428.0', '428.1', '428.20', '428.21', '428.22', '428.23', '428.30', '428.31', '428.32', '428.33', '428.40', '428.41', '428.42', '428.43', '428.9', '428', '428.2', '428.3', '428.4') order by 1 ) --select * from chf_group; --2518 , afib_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code like '427.3%' order by 1 ) --select count(*) from population; --6517 --select count(*) from afib_group; --1896 , renal_group as -- end stage or chronic renal disease (select distinct pop.hadm_id, pop.icustay_id, 1 as flg from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code like '585.%%' order by 1 ) --select count(*) from renal_group; --539 , liver_group as -- end stage liver disease (select distinct pop.hadm_id, pop.icustay_id, 1 as flg from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code like '571.%%' order by 1 ) --select count(*) from liver_group; --478 , copd_group as --- following definition of PQI5 paper (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.code from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code in ('466.0', '490', '491.0', '491.1', '491.20', '491.21', '491.8', '491.9', '492.0', '492.8', '494', '494.0', '494.1', '496') order by 1 ) --select * from copd_group; --1091 , cad_group as -- coronary artery disease (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.code from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code like '414.%' order by 1 ) --select * from cad_group; --1289 , stroke_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.code --, icd9.code from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id --where icd9.code in ('398.91','402.01','402.91','404.91', '404.13', '404.93','428.0','428.1','428.9') where icd9.code like '430%%%' or icd9.code like '431%%%' or icd9.code like '432%%%' or icd9.code like '433%%%' or icd9.code like '434%%%' order by 1 ) --select * from stroke_group; --616 , malignancy_group as (select distinct icustay_id , hadm_id , 1 as flg --, icd9_alpha --, icd9_numeric from icd9code where icd9_alpha is null and icd9_numeric between 140 and 239 ) --select * from malignancy_group; --1865 , resp_failure_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.code from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id where icd9.code like '518.%' order by 1 ) --select * from resp_failure_group; , ards_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.code from population pop join mimic2v26.icd9 icd9 on icd9.hadm_id=pop.hadm_id where icd9.code = '518.82' or icd9.code = '518.5' order by 1 ) --select * from ards; --1434 , pneumonia_group as (select distinct pop.hadm_id, pop.icustay_id, 1 as flg --, icd9.icd9_numeric as code from population pop join icd9code icd9 on icd9.hadm_id=pop.hadm_id where (icd9.icd9_numeric between 486 and 488.81) or (icd9.icd9_numeric>= 480 and icd9.icd9_numeric<481) or (icd9.icd9_numeric>= 482 and icd9.icd9_numeric<483) or (icd9.icd9_numeric between 506 and 507.8) order by 1 ) --select distinct code from pneumonia_group; --select * from pneumonia_group; --4807 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- vital signs variables ----------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- ---- MAP ---- , map_group_1 as (select pop.icustay_id , pop.icustay_intime , ch.charttime , ch.value1num as bp from population pop left join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid in (52,456) --and ch.charttime <= pop.icustay_intime+3/24 order by ch.charttime ) --select count(*) from map_group_1; , map_group as (select distinct icustay_id , first_value(bp) over (partition by icustay_id order by charttime asc) as map_1st --, first_value(bp) over (partition by icustay_id order by bp asc) as map_lowest --, first_value(bp) over (partition by icustay_id order by bp desc) as map_highest from map_group_1 where bp is not null ) --select count(*) from map_group; --22021 -------- Temperature ------------- , t_group_1 as (select pop.icustay_id , ch.charttime , ch.value1num as temp from population pop left join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid in (678,679) --and ch.charttime <= pop.icustay_intime+3/24 ) --select * from map_group; , t_group as (select distinct icustay_id , first_value(temp) over (partition by icustay_id order by charttime asc) as temp_1st -- , first_value(temp) over (partition by icustay_id order by temp asc) as temp_lowest -- , first_value(temp) over (partition by icustay_id order by temp desc) as temp_highest from t_group_1 where temp is not null ) --select count(*) from t_group; --22007 -------- HR ------------- , hr_group_1 as (select pop.icustay_id , ch.charttime , ch.value1num as hr from population pop left join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid =211 --and ch.charttime <= pop.icustay_intime+3/24 ) , hr_group as (select distinct icustay_id , first_value(hr) over (partition by icustay_id order by charttime asc) as hr_1st --, first_value(hr) over (partition by icustay_id order by hr asc) as hr_lowest --, first_value(hr) over (partition by icustay_id order by hr desc) as hr_highest from hr_group_1 where hr is not null ) --select count(*) from hr_group; --22022 --select * from hr_group where hr_1st is not null; -------- CVP ------------- ,cvp_group_1 as (select pop.icustay_id , ch.charttime , ch.value1num as cvp from population pop left join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid =113 --and ch.charttime <= pop.icustay_intime+3/24 ) , cvp_group as (select distinct icustay_id , first_value(cvp) over (partition by icustay_id order by charttime asc) as cvp_1st -- , first_value(cvp) over (partition by icustay_id order by cvp asc) as cvp_lowest -- , first_value(cvp) over (partition by icustay_id order by cvp desc) as cvp_highest from cvp_group_1 where cvp is not null ) ---select * from cvp_group where cvp_1st is not null; --2176 excluded -------- spo2 ------------- ,spo2_group_1 as (select pop.icustay_id , ch.charttime , ch.value1num as spo2 from population pop left join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid =646 --and ch.charttime <= pop.icustay_intime+3/24 ) , spo2_group as (select distinct icustay_id , first_value(spo2) over (partition by icustay_id order by charttime asc) as spo2_1st -- , first_value(spo2) over (partition by icustay_id order by spo2 asc) as spo2_lowest -- , first_value(spo2) over (partition by icustay_id order by spo2 desc) as spo2_highest from spo2_group_1 where spo2 is not null ) --select * from spo2_group; -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Lab data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- --------------- abg test count -------------------- , abg_lab as( select distinct pop.icustay_id , lab.charttime , count(*) as labcount from population pop join mimic2v26.labevents lab on lab.icustay_id=pop.icustay_id and lab.itemid in (50016,50018,50019) and lab.value is not null group by pop.icustay_id, lab.charttime ) --select * from abg_lab; , abg_count as (select icustay_id , count(*) as abg_count from abg_lab where labcount=3 group by icustay_id ) --select * from abg_count; --------------- vbg test count -------------------- , vbg_lab as( select distinct pop.icustay_id , ch.charttime , count(*) as labcount from population pop join mimic2v26.chartevents ch on ch.icustay_id=pop.icustay_id and ch.itemid in (858,859,860) and ch.value1 is not null group by pop.icustay_id, ch.charttime ) --select * from vbg_lab; , vbg_count as (select icustay_id , count(*) as vbg_count from vbg_lab where labcount=3 group by icustay_id ) --select * from vbg_count; --- HCT --- , lab_hct_1 as (select pop.hadm_id , pop.icustay_id , pop.icustay_intime , lab.charttime , lab.valuenum as hct , case when pop.gender_num=1 and lab.valuenum between 44.7 and 50.3 then 0 when pop.gender_num=0 and lab.valuenum between 36.1 and 44.3 then 0 else 1 end as abnormal_flg from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50029,50383) and lab.valuenum is not null order by lab.charttime ) --select * from lab_hct_1; , lab_hct as (select distinct icustay_id --, first_value(wbc) over (partition by hadm_id order by charttime asc) as wbc_first --, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg , median(hct) over (partition by hadm_id) as hct_med , first_value(hct) over (partition by hadm_id order by hct asc) as hct_lowest , first_value(hct) over (partition by hadm_id order by hct desc) as hct_highest , first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) hct_abnormal_flg from lab_hct_1 order by 1 ) --select * from lab_hct; --6399 --- WBC --- , lab_wbc_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime --, lab.valuenum as wbc , first_value(lab.valuenum) over (partition by pop.hadm_id order by lab.charttime asc) as wbc_first --, case when lab.valuenum between 4.5 and 10 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50316,50468) and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 order by 1 ) --select * from lab_wbc_1; , lab_wbc as (select distinct icustay_id --, first_value(wbc) over (partition by hadm_id order by charttime asc) as wbc_first --, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(wbc) over (partition by hadm_id order by wbc asc) as wbc_lowest --, first_value(wbc) over (partition by hadm_id order by wbc desc) as wbc_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) wbc_abnormal_flg , wbc_first , case when wbc_first between 4.5 and 10 then 0 else 1 end as wbc_abnormal_flg from lab_wbc_1 order by 1 ) --select count(*) from lab_wbc; --22364 --- hemoglobin ---- , lab_hgb_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , pop.gender_num , lab.charttime --, lab.valuenum as hgb , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as hgb_first --, case when pop.gender_num=1 and lab.valuenum between 13.8 and 17.2 then 0 -- when pop.gender_num=0 and lab.valuenum between 12.1 and 15.1 then 0 -- --when pop.gender_num is null then null -- else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50386,50007,50184) --(50377,50386,50388,50391,50411,50454,50054,50003,50007,50011,50184,50183,50387,50389,50390,50412) and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 --and pop.gender_num is not null order by 1 ) --select * from lab_hgb_1; , lab_hgb as (select distinct icustay_id --, first_value(hgb) over (partition by hadm_id order by charttime asc) as hgb_first --, first_value(hgb) over (partition by hadm_id order by hgb asc) as hgb_lowest --, first_value(hgb) over (partition by hadm_id order by hgb desc) as hgb_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) hgb_abnormal_flg , hgb_first , case when gender_num=1 and hgb_first between 13.8 and 17.2 then 0 when gender_num=0 and hgb_first between 12.1 and 15.1 then 0 --when pop.gender_num is null then null else 1 end as hgb_abnormal_flg from lab_hgb_1 order by 1 ) --select * from lab_hgb; ---- platelets --- , lab_platelet_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.itemid --, lab.valueuom --, lab.valuenum as platelet , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as platelet_first --, case when lab.valuenum between 150 and 400 then 0 -- else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50428 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select distinct itemid from lab_platelet_1; --select * from lab_platelet_1; , lab_platelet as (select distinct icustay_id --, first_value(platelet) over (partition by hadm_id order by charttime asc) as platelet_first --, first_value(platelet) over (partition by hadm_id order by platelet asc) as platelet_lowest --, first_value(platelet) over (partition by hadm_id order by platelet desc) as platelet_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) platelet_abnormal_flg , platelet_first , case when platelet_first between 150 and 400 then 0 else 1 end as platelet_abnormal_flg from lab_platelet_1 order by 1 ) --select * from lab_platelet; --- sodium --- , lab_sodium_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.itemid , lab.valueuom --, lab.valuenum as sodium , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as sodium_first --, case when lab.valuenum between 135 and 145 then 0 -- else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50159, 50012) ---- 50012 is for blood gas and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select distinct valueuom from lab_sodium_1; --select * from lab_sodium_1 where valueuom is null; , lab_sodium as (select distinct icustay_id --, first_value(sodium) over (partition by hadm_id order by charttime asc) as sodium_first --, first_value(sodium) over (partition by hadm_id order by sodium asc) as sodium_lowest --, first_value(sodium) over (partition by hadm_id order by sodium desc) as sodium_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) sodium_abnormal_flg , sodium_first , case when sodium_first between 135 and 145 then 0 else 1 end as sodium_abnormal_flg from lab_sodium_1 order by 1 ) --select * from lab_sodium; --17542 --- potassium --- , lab_potassium_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.itemid , lab.valueuom --, lab.valuenum as potassium , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as potassium_first --, case when lab.valuenum between 3.7 and 5.2 then 0 -- else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50149, 50009) ---- 50009 is from blood gas and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select distinct valueuom from lab_potassium_1; --select * from lab_potassium_1 where valueuom is null; , lab_potassium as (select distinct icustay_id --, first_value(potassium) over (partition by hadm_id order by charttime asc) as potassium_first --, first_value(potassium) over (partition by hadm_id order by potassium asc) as potassium_lowest --, first_value(potassium) over (partition by hadm_id order by potassium desc) as potassium_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) potassium_abnormal_flg , potassium_first , case when potassium_first between 3.7 and 5.2 then 0 else 1 end as potassium_abnormal_flg from lab_potassium_1 order by 1 ) --select * from lab_potassium; --20665 --- bicarbonate --- , lab_tco2_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime --, lab.itemid , lab.valueuom --, lab.valuenum as tco2 , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as tco2_first --, case when lab.valuenum between 22 and 28 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50172, 50025,50022) --- (50025,50022,50172) the rest are from blood gas and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select distinct valueuom from lab_tco2_1; --select * from lab_tco2_1 where valueuom is null; , lab_tco2 as (select distinct icustay_id --, first_value(tco2) over (partition by hadm_id order by charttime asc) as tco2_first --, first_value(tco2) over (partition by hadm_id order by tco2 asc) as tco2_lowest --, first_value(tco2) over (partition by hadm_id order by tco2 desc) as tco2_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) tco2_abnormal_flg , tco2_first , case when tco2_first between 22 and 28 then 0 else 1 end as tco2_abnormal_flg from lab_tco2_1 order by 1 ) --select * from lab_tco2; --11367 --- chloride --- , lab_chloride_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.itemid , lab.valueuom , lab.valuenum as chloride , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as chloride_first --, case when lab.valuenum between 96 and 106 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50083,50004) --- 50004 is from blood gas and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select distinct valueuom from lab_chloride_1; --select * from lab_chloride_1 where valueuom is null; , lab_chloride as (select distinct icustay_id --, first_value(chloride) over (partition by hadm_id order by charttime asc) as chloride_first --, first_value(chloride) over (partition by hadm_id order by chloride asc) as chloride_lowest --, first_value(chloride) over (partition by hadm_id order by chloride desc) as chloride_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) chloride_abnormal_flg , chloride_first , case when chloride_first between 96 and 106 then 0 else 1 end as chloride_abnormal_flg from lab_chloride_1 order by 1 ) --select * from lab_chloride; --19461 --- bun --- , lab_bun_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime --, lab.itemid , lab.valueuom --, lab.valuenum as bun , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as bun_first --, case when lab.valuenum between 6 and 20 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50177 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select * from lab_bun_1; , lab_bun as (select distinct icustay_id --, first_value(bun) over (partition by hadm_id order by charttime asc) as bun_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(bun) over (partition by hadm_id order by bun asc) as bun_lowest --, first_value(bun) over (partition by hadm_id order by bun desc) as bun_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) bun_abnormal_flg , bun_first , case when bun_first between 6 and 20 then 0 else 1 end as bun_abnormal_flg from lab_bun_1 order by 1 ) --select * from lab_bun; --19027 --- creatinine --- , lab_creatinine_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , pop.gender_num , lab.charttime , lab.valueuom --, lab.valuenum as creatinine , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as creatinine_first --, case when pop.gender_num=1 and lab.valuenum <= 1.3 then 0 -- when pop.gender_num=0 and lab.valuenum <= 1.1 then 0 -- else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50090 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 --and pop.gender_num is not null order by 1 ) --select * from lab_creatinine_1; , lab_creatinine as (select distinct icustay_id --, first_value(creatinine) over (partition by hadm_id order by charttime asc) as creatinine_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(creatinine) over (partition by hadm_id order by creatinine asc) as creatinine_lowest --, first_value(creatinine) over (partition by hadm_id order by creatinine desc) as creatinine_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) creatinine_abnormal_flg , creatinine_first , case when gender_num=1 and creatinine_first <= 1.3 then 0 when gender_num=0 and creatinine_first <= 1.1 then 0 else 1 end as creatinine_abnormal_flg from lab_creatinine_1 order by 1 ) --select * from lab_creatinine; --19027 --- glucose --- , lab_glucose as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as glucose_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid in (50006,50112) and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_glucose; --- calcium --- , lab_calcium as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as calcium_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50079 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_calcium; --- magnesium --- , lab_magnesium as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as magnesium_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50140 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_magnesium; --- phosphate --- , lab_phosphate as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as phosphate_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50148 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_phosphate; --- AST --- , lab_AST as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as AST_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50073 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_AST; --- ALT --- , lab_ALT as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as ALT_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50062 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_ALT; --- LDH --- , lab_LDH as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as LDH_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50134 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_LDH; --- bilirubin --- , lab_bilirubin as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as bilirubin_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50170 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_bilirubin; -- ALP --- , lab_ALP as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as ALP_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50061 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_ALP; -- albumin --- , lab_albumin as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as albumin_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50060 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_albumin; -- troponin_t --- , lab_troponin_t as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as troponin_t_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50189 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_troponin_t; -- CK --- , lab_CK as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as CK_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50087 and lab.valuenum is not null --and pop.gender_num is not null order by 1 ) --select * from lab_CK; -- BNP --- , lab_BNP as (select distinct pop.hadm_id , pop.icustay_id , lab.valueuom --, lab.value , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as BNP_first from population pop join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50195 --and lab.valuenum is not null order by 1 ) --select * from lab_BNP; --- Lactate --- , lab_lactate_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.valueuom --, lab.valuenum as lactate , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as lactate_first --, case when lab.valuenum between 0.5 and 2.2 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50010 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select * from lab_lactate_1; , lab_lactate as (select distinct icustay_id --, first_value(lactate) over (partition by hadm_id order by charttime asc) as lactate_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(lactate) over (partition by hadm_id order by lactate asc) as lactate_lowest --, first_value(lactate) over (partition by hadm_id order by lactate desc) as lactate_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) lactate_abnormal_flg , lactate_first --, case when lactate_first between 0.5 and 2.2 then 0 else 1 end as lactate_abnormal_flg from lab_lactate_1 order by 1 ) --select * from lab_lactate; --9747 --- PH --- , lab_ph_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.valueuom --, lab.valuenum as ph , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as ph_first --, case when lab.valuenum between 7.38 and 7.42 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50018 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select * from lab_ph_1; , lab_ph as (select distinct icustay_id --, first_value(ph) over (partition by hadm_id order by charttime asc) as ph_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(ph) over (partition by hadm_id order by ph asc) as ph_lowest --, first_value(ph) over (partition by hadm_id order by ph desc) as ph_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) ph_abnormal_flg , ph_first , case when ph_first between 7.38 and 7.42 then 0 else 1 end as ph_abnormal_flg from lab_ph_1 order by 1 ) --select * from lab_ph; --13266 ----- SVO2 --- , lab_svo2 as (select distinct pop.icustay_id --, icud.ICUSTAY_INTIME --, ch.charttime , first_value(ch.value1num) over (partition by pop.icustay_id order by ch.charttime asc) as svo2_first --, case when ch.value1num between 60 and 80 then 0 else 1 end as abnormal_flg from population pop join mimic2v26.chartevents ch on pop.icustay_id=ch.icustay_id and ch.itemid in (664,838) and ch.value1num is not null --and ch.charttime<=icud.ICUSTAY_INTIME+12/24 order by 1 ) --select * from lab_svo2_1; --, lab_svo2 as --(select distinct hadm_id --, first_value(svo2) over (partition by hadm_id order by svo2 asc) as svo2_lowest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_svo2_1 --order by 1 --) --select * from lab_svo2; --471 (not to be included) --- po2 --- , lab_po2_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.valueuom --, lab.valuenum as po2 , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as po2_first --, case when lab.valuenum between 75 and 100 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50019 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select * from lab_po2_1; , lab_po2 as (select distinct icustay_id --, first_value(po2) over (partition by hadm_id order by charttime asc) as po2_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(po2) over (partition by hadm_id order by po2 asc) as po2_lowest --, first_value(po2) over (partition by hadm_id order by po2 desc) as po2_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) po2_abnormal_flg , po2_first , case when po2_first between 75 and 100 then 0 else 1 end as po2_abnormal_flg from lab_po2_1 order by 1 ) --select * from lab_po2; --12784 --- paco2 --- , lab_pco2_1 as (select pop.hadm_id , pop.icustay_id , pop.ICUSTAY_INTIME , lab.charttime , lab.valueuom --, lab.valuenum as pco2 , first_value(lab.valuenum) over (partition by pop.hadm_id order by charttime asc) as pco2_first --, case when lab.valuenum between 35 and 45 then 0 else 1 end as abnormal_flg from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 join mimic2v26.labevents lab on pop.hadm_id=lab.hadm_id and lab.itemid = 50016 and lab.valuenum is not null --and lab.charttime<=pop.ICUSTAY_INTIME+3/24 ----and pop.gender_num is not null order by 1 ) --select * from lab_pco2_1; , lab_pco2 as (select distinct icustay_id --, first_value(pco2) over (partition by hadm_id order by charttime asc) as pco2_first ----, first_value(abnormal_flg) over (partition by hadm_id order by chartime asc) as wbs_first_abn_flg --, first_value(pco2) over (partition by hadm_id order by pco2 asc) as pco2_lowest --, first_value(pco2) over (partition by hadm_id order by pco2 desc) as pco2_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) pco2_abnormal_flg , pco2_first , case when pco2_first between 35 and 45 then 0 else 1 end as pco2_abnormal_flg from lab_pco2_1 order by 1 ) --select * from lab_pco2; --12782 --- Troponin T--- --, lab_troponin_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, lab.charttime --, lab.valuenum as troponin --, case when lab.valuenum <= 0.1 then 0 -- else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud -- on pop.hadm_id=icud.hadm_id -- and icud.ICUSTAY_SEQ =1 ---- and icud.gender is not null --join mimic2v26.labevents lab -- on pop.hadm_id=lab.hadm_id -- and lab.itemid in (50189) -- and lab.valuenum is not null -- and lab.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) --select * from lab_troponin_t; --2124 ----- SVO2 --- --, lab_svo2_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, ch.charttime --, ch.value1num as svo2 --, case when ch.value1num between 60 and 80 then 0 else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud on pop.hadm_id=icud.hadm_id and ICUSTAY_SEQ =1 --join mimic2v26.chartevents ch -- on icud.icustay_id=ch.icustay_id -- and ch.itemid in (664,838) -- and ch.value1num is not null -- and ch.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) -- ----select * from lab_svo2_1; -- --, lab_svo2 as --(select distinct hadm_id --, first_value(svo2) over (partition by hadm_id order by svo2 asc) as svo2_lowest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_svo2_1 --order by 1 --) -- ----select * from lab_svo2; --471 (not to be included) ----- BNP --- should be excluded --, lab_bnp_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, lab.charttime --, lab.valuenum as bnp --, case when lab.valuenum <= 100 then 0 -- else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud -- on pop.hadm_id=icud.hadm_id -- and icud.ICUSTAY_SEQ =1 ---- and icud.gender is not null --join mimic2v26.labevents lab -- on pop.hadm_id=lab.hadm_id -- and lab.itemid in (50195) -- and lab.valuenum is not null -- and lab.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) -- ----select * from lab_bnp_1; -- --, lab_bnp as --(select distinct hadm_id --, first_value(bnp) over (partition by hadm_id order by bnp desc) as bnp_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_bnp_1 --order by 1 --) -- ----select * from lab_bnp; --346 ----- Troponin T--- --, lab_troponin_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, lab.charttime --, lab.valuenum as troponin --, case when lab.valuenum <= 0.1 then 0 -- else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud -- on pop.hadm_id=icud.hadm_id -- and icud.ICUSTAY_SEQ =1 ---- and icud.gender is not null --join mimic2v26.labevents lab -- on pop.hadm_id=lab.hadm_id -- and lab.itemid in (50189) -- and lab.valuenum is not null -- and lab.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) -- ----select * from lab_troponin_1; -- --, lab_troponin_t as --(select distinct hadm_id --, first_value(troponin) over (partition by hadm_id order by troponin desc) as troponin_t_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_troponin_1 --order by 1 --) -- ----select * from lab_troponin_t; --2124 -- ----- Troponin I--- --, lab_troponin_i_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, lab.charttime --, lab.valuenum as troponin --, case when lab.valuenum <= 10 then 0 -- else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud -- on pop.hadm_id=icud.hadm_id -- and icud.ICUSTAY_SEQ =1 ---- and icud.gender is not null --join mimic2v26.labevents lab -- on pop.hadm_id=lab.hadm_id -- and lab.itemid in (50188) -- and lab.valuenum is not null -- and lab.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) -- ----select * from lab_troponin_1; -- --, lab_troponin_i as --(select distinct hadm_id --, first_value(troponin) over (partition by hadm_id order by troponin desc) as troponin_i_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_troponin_i_1 --order by 1 --) -- ----select distinct hadm_id from ( ----select * from lab_troponin_i ----union ----select * from lab_troponin_t); --2552 -- ----- CK test--- --, lab_ck_1 as --(select pop.hadm_id --, icud.ICUSTAY_INTIME --, lab.charttime --, lab.valuenum as ck --, case when lab.valuenum <= 120 then 0 -- else 1 end as abnormal_flg --from population pop --join mimic2v26.icustay_detail icud -- on pop.hadm_id=icud.hadm_id -- and icud.ICUSTAY_SEQ =1 ---- and icud.gender is not null --join mimic2v26.labevents lab -- on pop.hadm_id=lab.hadm_id -- and lab.itemid in (50087) -- and lab.valuenum is not null -- and lab.charttime<=icud.ICUSTAY_INTIME+12/24 --order by 1 --) -- ----select * from lab_ck_1; -- --, lab_ck as --(select distinct hadm_id --, first_value(ck) over (partition by hadm_id order by ck desc) as ck_highest --, first_value(abnormal_flg) over (partition by hadm_id order by abnormal_flg desc) as abnormal_flg --from lab_ck_1 --order by 1 --) -- ----select * from lab_ck; --2948 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Procedure data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- ---- use of restraints and reasons ---- , restraint_group as (select distinct pop.icustay_id --, ch.charttime --, ch.value1 , 1 as flg from population pop join mimic2v26.chartevents ch on ch.icustay_id=pop.icustay_id and ch.itemid=605 and ch.value1='Ext/TXInterfere' ) --select * from restraint_group; --11719 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Care code data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- ---- care code ---- , code_adm as (select distinct pop.icustay_id , first_value(ch.value1) over (partition by ch.icustay_id order by ch.charttime asc) as first_code from population pop join mimic2v26.chartevents ch on ch.icustay_id=pop.icustay_id and ch.itemid=128 and ch.value1 is not null --and lower(value1) like '%resuscita%' ) --select * from dnr_adm_1; , dnr_adm as (select distinct icustay_id --, first_code , 1 as flg from code_adm where lower(first_code) like '%resuscita%' ) --select * from dnr_adm;--961 , dnr as (select distinct pop.icustay_id , 1 as flg from population pop join mimic2v26.chartevents ch on ch.icustay_id=pop.icustay_id and ch.itemid=128 and lower(value1) like '%resuscita%' ) --select count(*) from dnr; --2561 , dnr_switch as (select * from dnr minus select * from dnr_adm ) --select * from dnr_switch; --1600 , cmo as (select distinct pop.icustay_id --, value1 , 1 as flg from population pop join mimic2v26.chartevents ch on ch.icustay_id=pop.icustay_id and ch.itemid=128 and lower(value1) like '%comfort%' ) --select * from cmo; --910 , cmo_adm as (select distinct icustay_id --, first_code , 1 as flg from code_adm where lower(first_code) like '%comfort%' ) --select * from cmo_adm; --15 , cmo_switch as (select * from cmo minus select * from cmo_adm ) --select * from cmo_switch; --895 , dnr_cmo_switch as (select distinct icustay_id, flg from ( select * from cmo_switch union select * from dnr_switch ) ) --select * from dnr_cmo_switch; --2053 -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Fluid data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- --- fluid in for the first 3 days --- , fluid_in_1 as (select distinct pop.icustay_id , bal.charttime --, first_value(bal.cumvolume) over (partition by pop.icustay_id order by bal.charttime asc) as fluid_day_1 , bal.cumvolume as fluid_day_1 , lead(bal.cumvolume,1) over (partition by pop.icustay_id order by bal.charttime asc) as fluid_day_2 , lead(bal.cumvolume,2) over (partition by pop.icustay_id order by bal.charttime asc) as fluid_day_3 from population pop join mimic2v26.TOTALBALEVENTS bal on pop.icustay_id=bal.icustay_id and bal.itemid in (1,3151) -- total 24 hour fluid in (1,3151) order by 1 ) --select * from fluid_in_1; , fluid_in_2 as (select distinct icustay_id , first_value(fluid_day_1) over (partition by icustay_id order by charttime asc) as fluid_day_1 , first_value(fluid_day_2) over (partition by icustay_id order by charttime asc) as fluid_day_2 , first_value(fluid_day_3) over (partition by icustay_id order by charttime asc) as fluid_day_3 --, first_value(rownum) over (partition by icustay_id order by icustay_id, charttime asc) as first_rownum from fluid_in_1 f order by 1 ) --select * from fluid_in_2; --, fluid_in as --(select icustay_id, fluid_day_1, fluid_day_2, fluid_day_3, (fluid_day_1+fluid_day_2+fluid_day_3) as fluid_3days --from -- (select icustay_id -- , coalesce(fluid_day_1,0) as fluid_day_1 -- , coalesce(fluid_day_2,0) as fluid_day_2 -- , coalesce(fluid_day_3,0) as fluid_day_3 -- --, (fluid_day_1+fluid_day_2+fluid_day_3) as fluid_3days -- from fluid_in_2 -- ) --) ----select * from fluid_in; , fluid_in as (select f.* , fluid_day_1+fluid_day_2+fluid_day_3 as fluid_3days_raw , coalesce(fluid_day_1,0)+coalesce(fluid_day_2,0)+coalesce(fluid_day_3,0) as fluid_3days_clean from fluid_in_2 f ) --select * from fluid_in; ------------ IV infusion ------------ , IV_in_1 as (select distinct pop.icustay_id , bal.charttime --, first_value(bal.cumvolume) over (partition by pop.icustay_id order by bal.charttime asc) as fluid_day_1 , bal.cumvolume as IV_day_1 , lead(bal.cumvolume,1) over (partition by pop.icustay_id order by bal.charttime asc) as IV_day_2 , lead(bal.cumvolume,2) over (partition by pop.icustay_id order by bal.charttime asc) as IV_day_3 from population pop join mimic2v26.TOTALBALEVENTS bal on pop.icustay_id=bal.icustay_id and bal.itemid in (18,3155) -- total 24 hour fluid in (1,3151) order by 1 ) --select * from fluid_in_1; , IV_in_2 as (select distinct icustay_id , first_value(IV_day_1) over (partition by icustay_id order by charttime asc) as IV_day_1 , first_value(IV_day_2) over (partition by icustay_id order by charttime asc) as IV_day_2 , first_value(IV_day_3) over (partition by icustay_id order by charttime asc) as IV_day_3 --, first_value(rownum) over (partition by icustay_id order by icustay_id, charttime asc) as first_rownum from IV_in_1 f order by 1 ) --select * from fluid_in_2; --, IV_in as --(select icustay_id, IV_day_1, IV_day_2, IV_day_3, (IV_day_1+IV_day_2+IV_day_3) as IV_3days --from -- (select icustay_id -- , coalesce(IV_day_1,0) as IV_day_1 -- , coalesce(IV_day_2,0) as IV_day_2 -- , coalesce(IV_day_3,0) as IV_day_3 -- --, (fluid_day_1+fluid_day_2+fluid_day_3) as fluid_3days -- from IV_in_2 -- ) --) --select * from IV_in; , IV_in as (select v.* , IV_day_1+IV_day_2+IV_day_3 as IV_3days_raw , coalesce(IV_day_1,0)+coalesce(IV_day_2,0)+coalesce(IV_day_3,0) as IV_3days_clean from IV_in_2 v ) --select * from IV_in; --------- rbc package -------------- , rbc_day_1 as (select distinct pop.icustay_id , sum(io.volume) as rbc_day_1 from population pop join MIMIC2V26.ioevents io on pop.icustay_id=io.icustay_id and io.charttime<=pop.icustay_intime+1 and io.volume is not null join MIMIC2V26.d_ioitems d on io.itemid=d.itemid and lower(d.label) like '%rbc%' and lower(d.category) like '%infusions%' group by pop.icustay_id ) , rbc_total as (select distinct pop.icustay_id , sum(io.volume) as rbc_total from population pop join MIMIC2V26.ioevents io on pop.icustay_id=io.icustay_id --and io.charttime<=pop.icustay_intime+1 and io.volume is not null join MIMIC2V26.d_ioitems d on io.itemid=d.itemid and lower(d.label) like '%rbc%' and lower(d.category) like '%infusions%' group by pop.icustay_id ) --select * from rbc_total; --select * from rbc_in; -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Combined data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- , aline_data as (select distinct pop.* , coalesce(vent.flg,0) as vent_flg --, coalesce(vent.vent_1day_flg,0) as vent_1day_flg , coalesce(vent.vent_1st_12hr_flg,0) as vent_1st_12hr , coalesce(vent.vent_1st_24hr_flg,0) as vent_1st_24hr , coalesce(vent.vent_b4_aline,0) as vent_b4_aline , case when vent.vent_day is null then 0 else vent.vent_day end as vent_day , case when vent.vent_free_day is null then pop.icu_los_day else vent.vent_free_day end as vent_free_day --, coalesce(vent12.flg,0) as vent_12hr_flg , coalesce(vaso.flg,0) as vaso_flg , case when vaso.vaso_day is null then 0 else vaso.vaso_day end as vaso_day , case when vaso.vaso_free_day is null then pop.icu_los_day else vaso.vaso_free_day end as vaso_free_day --, coalesce(vaso12.flg,0) as vaso_12hr_flg , coalesce(vaso.vaso_b4_aline,0) as vaso_b4_aline , coalesce(anes.flg,0) as anes_flg , case when anes.anes_day is null then 0 else anes.anes_day end as anes_day , case when anes.anes_free_day is null then pop.icu_los_day else anes.anes_free_day end as anes_free_day --, coalesce(anes12.flg,0) as anes_12hr_flg , coalesce(anes.anes_b4_aline,0) as anes_b4_aline , coalesce(sed.fentanyl,0) as fentanyl_flg , coalesce(sed.midazolam,0) as midazolam_flg , coalesce(sed.propofol,0) as propofol_flg , coalesce(sed.dilaudid,0) as dilaudid_flg , coalesce(sep.flg,0) as sepsis_flg , coalesce(chf.flg,0) as chf_flg , coalesce(afib.flg,0) as afib_flg , coalesce(renal.flg,0) as renal_flg , coalesce(liver.flg,0) as liver_flg , coalesce(copd.flg,0) as copd_flg , coalesce(cad.flg,0) as cad_flg , coalesce(stroke.flg,0) as stroke_flg , coalesce(mal.flg,0) as mal_flg , coalesce(resp.flg,0) as resp_flg , coalesce(ards.flg,0) as ards_flg , coalesce(pne.flg,0) as pneumonia_flg -- , m.map_1st --, m.map_lowest --, m.map_highest , hr.hr_1st --, hr.hr_lowest --, hr.hr_highest , t.temp_1st --, t.temp_lowest --, t.temp_highest , spo2.spo2_1st --, spo2.spo2_lowest --, spo2.spo2_highest , cvp.cvp_1st ----, cvp.cvp_lowest ----, cvp.cvp_highest -- , coalesce(abg.abg_count,0) as abg_count , coalesce(vbg.vbg_count,0) as vbg_count , coalesce(abg.abg_count,0)+coalesce(vbg.vbg_count,0) as bg_total , hct.hct_med , hct.hct_lowest , hct.hct_highest , hct.hct_abnormal_flg , wbc.wbc_first , hgb.hgb_first , platelet.platelet_first , sodium.sodium_first , potassium.potassium_first , tco2.tco2_first , chloride.chloride_first , bun.bun_first , creatinine.creatinine_first , glucose.glucose_first , calcium.calcium_first , magnesium.magnesium_first , phosphate.phosphate_first , AST.AST_first , ALT.ALT_first , LDH.LDH_first , bilirubin.bilirubin_first , ALP.ALP_first , albumin.albumin_first , troponin_t.troponin_t_first , CK.CK_first , BNP.BNP_first , lactate.lactate_first , ph.ph_first , svo2.svo2_first , po2.po2_first , pco2.pco2_first --, wbc.wbc_first --, coalesce(wbc.wbc_first,0) as wbc_first_coded ----, wbc.wbc_lowest ----, wbc.wbc_highest --, wbc.wbc_abnormal_flg --, hgb.hgb_first --, coalesce(hgb.hgb_first, 0) as hgb_first_coded ----, hgb.hgb_lowest ----, hgb.hgb_highest --, hgb.hgb_abnormal_flg --, platelet.platelet_first --, coalesce(platelet.platelet_first, 0) as platelet_first_coded ----, platelet.platelet_lowest ----, platelet.platelet_highest --, platelet.platelet_abnormal_flg --, sodium.sodium_first --, coalesce(sodium.sodium_first, 0) as sodium_first_coded ----, sodium.sodium_lowest ----, sodium.sodium_highest --, sodium.sodium_abnormal_flg --, potassium.potassium_first --, coalesce(potassium.potassium_first, 0) as potassium_first_coded ----, potassium.potassium_lowest ----, potassium.potassium_highest --, potassium.potassium_abnormal_flg --, tco2.tco2_first --, coalesce(tco2.tco2_first, 0) as tco2_first_coded ----, tco2.tco2_lowest ----, tco2.tco2_highest --, tco2.tco2_abnormal_flg --, chloride.chloride_first --, coalesce(chloride.chloride_first, 0) as chloride_first_coded ----, chloride.chloride_lowest ----, chloride.chloride_highest --, chloride.chloride_abnormal_flg --, bun.bun_first --, coalesce(bun.bun_first, 0) as bun_first_coded ----, bun.bun_lowest ----, bun.bun_highest --, bun.bun_abnormal_flg --, creatinine.creatinine_first --, coalesce(creatinine.creatinine_first, 0) as creatinine_first_coded ----, creatinine.creatinine_lowest ----, creatinine.creatinine_highest --, creatinine.creatinine_abnormal_flg --, po2.po2_first --, coalesce(po2.po2_first, 0) as po2_first_coded ----, po2.po2_lowest ----, po2.po2_highest --, po2.po2_abnormal_flg --, pco2.pco2_first --, coalesce(pco2.pco2_first, 0) as pco2_first_coded ----, pco2.pco2_lowest ----, pco2.pco2_highest --, pco2.pco2_abnormal_flg -- -- --, coalesce(res.flg,0) as restraint_flg -- , fluid.fluid_day_1 , fluid.fluid_day_2 , fluid.fluid_day_3 , fluid.fluid_3days_raw , fluid.fluid_3days_clean , IV.IV_day_1 , IV.IV_day_2 , IV.IV_day_3 , IV.IV_3days_raw , IV.IV_3days_clean , rbc1.rbc_day_1 , rbct.rbc_total , coalesce(da.flg,0) as dnr_adm_flg , coalesce(ds.flg,0) as dnr_switch_flg , coalesce(cs.flg,0) as cmo_switch_flg , coalesce(dcs.flg,0) as dnr_cmo_switch_flg , case when dur.aline_duration is null then 0 when dur.aline_duration >1 then 1 else dur.aline_duration end as aline_duration , 1 as dummy from population pop left join vent_group vent on vent.icustay_id=pop.icustay_id --left join vent_12hr_group vent12 on vent12.icustay_id=pop.icustay_id left join vaso_group vaso on vaso.icustay_id=pop.icustay_id --left join vaso_12hr_group vaso12 on vaso12.icustay_id=pop.icustay_id left join anes_group anes on anes.icustay_id=pop.icustay_id --left join anes_12hr_group anes12 on anes12.icustay_id=pop.icustay_id left join sedative_drug sed on sed.icustay_id=pop.icustay_id left join sepsis_group sep on sep.hadm_id=pop.hadm_id left join chf_group chf on chf.hadm_id=pop.hadm_id left join afib_group afib on afib.hadm_id=pop.hadm_id left join renal_group renal on renal.hadm_id=pop.hadm_id left join liver_group liver on liver.hadm_id=pop.hadm_id left join copd_group copd on copd.hadm_id=pop.hadm_id left join cad_group cad on cad.hadm_id=pop.hadm_id left join stroke_group stroke on stroke.hadm_id=pop.hadm_id left join malignancy_group mal on mal.hadm_id=pop.hadm_id left join resp_failure_group resp on resp.hadm_id=pop.hadm_id left join ards_group ards on ards.hadm_id=pop.hadm_id left join pneumonia_group pne on pne.hadm_id=pop.hadm_id -- left join map_group m on m.icustay_id=pop.icustay_id left join hr_group hr on hr.icustay_id=pop.icustay_id left join t_group t on t.icustay_id=pop.icustay_id left join spo2_group spo2 on spo2.icustay_id=pop.icustay_id left join cvp_group cvp on cvp.icustay_id=pop.icustay_id left join abg_count abg on abg.icustay_id=pop.icustay_id left join vbg_count vbg on vbg.icustay_id=pop.icustay_id left join lab_hct hct on hct.icustay_id=pop.icustay_id left join lab_wbc wbc on wbc.icustay_id=pop.icustay_id left join lab_hgb hgb on hgb.icustay_id=pop.icustay_id left join lab_platelet platelet on platelet.icustay_id=pop.icustay_id left join lab_sodium sodium on sodium.icustay_id=pop.icustay_id left join lab_potassium potassium on potassium.icustay_id=pop.icustay_id left join lab_tco2 tco2 on tco2.icustay_id=pop.icustay_id left join lab_chloride chloride on chloride.icustay_id=pop.icustay_id left join lab_bun bun on bun.icustay_id=pop.icustay_id left join lab_creatinine creatinine on creatinine.icustay_id=pop.icustay_id left join lab_glucose glucose on glucose.icustay_id=pop.icustay_id left join lab_calcium calcium on calcium.icustay_id=pop.icustay_id left join lab_magnesium magnesium on magnesium.icustay_id=pop.icustay_id left join lab_phosphate phosphate on phosphate.icustay_id=pop.icustay_id left join lab_AST AST on AST.icustay_id=pop.icustay_id left join lab_ALT ALT on ALT.icustay_id=pop.icustay_id left join lab_LDH LDH on LDH.icustay_id=pop.icustay_id left join lab_bilirubin bilirubin on bilirubin.icustay_id=pop.icustay_id left join lab_ALP ALP on ALP.icustay_id=pop.icustay_id left join lab_albumin albumin on albumin.icustay_id=pop.icustay_id left join lab_troponin_t troponin_t on troponin_t.icustay_id=pop.icustay_id left join lab_CK CK on CK.icustay_id=pop.icustay_id left join lab_BNP BNP on BNP.icustay_id=pop.icustay_id left join lab_lactate lactate on lactate.icustay_id=pop.icustay_id left join lab_ph ph on ph.icustay_id=pop.icustay_id left join lab_svo2 svo2 on svo2.icustay_id=pop.icustay_id left join lab_po2 po2 on po2.icustay_id=pop.icustay_id left join lab_pco2 pco2 on pco2.icustay_id=pop.icustay_id -- -- --left join restraint_group res on res.icustay_id=pop.icustay_id -- left join fluid_in fluid on fluid.icustay_id=pop.icustay_id left join IV_in IV on IV.icustay_id=pop.icustay_id left join rbc_day_1 rbc1 on rbc1.icustay_id=pop.icustay_id left join rbc_total rbct on rbct.icustay_id=pop.icustay_id left join dnr_adm da on da.icustay_id=pop.icustay_id left join dnr_switch ds on ds.icustay_id=pop.icustay_id left join cmo_switch cs on cs.icustay_id=pop.icustay_id left join dnr_cmo_switch dcs on dcs.icustay_id=pop.icustay_id left join aline_duration dur on dur.icustay_id=pop.icustay_id ) select * from aline_data; -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- Clean version of the data ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- create table aline_cohort_data_june15 as select a.*, coalesce(m.treated, -1) as matched_flg from aline_mimic_data_april15 a left join aline_match m on m.icustay_id=a.icustay_id where initial_aline_flg=0 and vent_1st_24hr=1 and sepsis_flg=0 and vaso_flg=0 and service_num<=1; -------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- -------------------------- PS score matching ------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------
INSERT INTO department (name) VALUES ('Sales'), ('Engineering'), ('Finance'), ('Legal'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Leader', 10000, 1), ('Salesman', 20000, 1), ('Engineer', 50000, 2), ('Software Engineer', 70000, 2), ('Account Lead', 80000, 3), ('Accountant', 60000, 3), ('Lawyer', 100000, 4), ('Lawyer Assistant', 90000, 4); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('John', 'Smith', 1, null), ('Sarah', 'Connor', 2, 1), ('Horus', 'Lupercal', 3, null), ('Angron', 'Angry', 4, 3), ('Fulgrim', 'Fall', 5, null), ('Erebos', 'Worst', 6, 5), ('Kharn', 'Betrayer', 7, null), ('Gork', 'Kunnin', 8, 7), ('Mork', 'Brutal', 2, null), ('Emperor', 'OfMankind', 4, 3);
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.27 - MySQL Community Server (GPL) -- Server OS: Win64 -- 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 structure for table ecom.brands CREATE TABLE IF NOT EXISTS `brands` ( `brand_id` int(100) NOT NULL AUTO_INCREMENT, `brand_title` text NOT NULL, PRIMARY KEY (`brand_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.brands: ~6 rows (approximately) /*!40000 ALTER TABLE `brands` DISABLE KEYS */; INSERT INTO `brands` (`brand_id`, `brand_title`) VALUES (1, 'HP'), (2, 'Samsung'), (3, 'Apple'), (4, 'Sony'), (5, 'LG'), (6, 'Cloth Brand'); /*!40000 ALTER TABLE `brands` ENABLE KEYS */; -- Dumping structure for table ecom.cart CREATE TABLE IF NOT EXISTS `cart` ( `id` int(10) NOT NULL AUTO_INCREMENT, `p_id` int(10) NOT NULL, `ip_add` varchar(250) NOT NULL, `user_id` int(10) DEFAULT NULL, `qty` int(10) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.cart: ~3 rows (approximately) /*!40000 ALTER TABLE `cart` DISABLE KEYS */; INSERT INTO `cart` (`id`, `p_id`, `ip_add`, `user_id`, `qty`) VALUES (1, 1, '::1', 3, 1), (2, 2, '::1', 3, 1), (3, 8, '::1', 4, 1); /*!40000 ALTER TABLE `cart` ENABLE KEYS */; -- Dumping structure for table ecom.categories CREATE TABLE IF NOT EXISTS `categories` ( `cat_id` int(100) NOT NULL AUTO_INCREMENT, `cat_title` text NOT NULL, PRIMARY KEY (`cat_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.categories: ~7 rows (approximately) /*!40000 ALTER TABLE `categories` DISABLE KEYS */; INSERT INTO `categories` (`cat_id`, `cat_title`) VALUES (1, 'Electronics'), (2, 'Ladies Wears'), (3, 'Mens Wear'), (4, 'Kids Wear'), (5, 'Furnitures'), (6, 'Home Appliances'), (7, 'Electronics Gadgets'); /*!40000 ALTER TABLE `categories` ENABLE KEYS */; -- Dumping structure for table ecom.orders CREATE TABLE IF NOT EXISTS `orders` ( `order_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `qty` int(11) NOT NULL, `trx_id` varchar(255) NOT NULL, `p_status` varchar(20) NOT NULL, PRIMARY KEY (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.orders: ~2 rows (approximately) /*!40000 ALTER TABLE `orders` DISABLE KEYS */; INSERT INTO `orders` (`order_id`, `user_id`, `product_id`, `qty`, `trx_id`, `p_status`) VALUES (1, 2, 7, 1, '07M47684BS5725041', 'Completed'), (2, 2, 2, 1, '07M47684BS5725041', 'Completed'); /*!40000 ALTER TABLE `orders` ENABLE KEYS */; -- Dumping structure for table ecom.products CREATE TABLE IF NOT EXISTS `products` ( `product_id` int(100) NOT NULL AUTO_INCREMENT, `product_cat` int(100) NOT NULL, `product_brand` int(100) NOT NULL, `product_title` varchar(255) NOT NULL, `product_price` int(100) NOT NULL, `product_desc` text NOT NULL, `product_image` text NOT NULL, `product_keywords` text NOT NULL, PRIMARY KEY (`product_id`) ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.products: ~37 rows (approximately) /*!40000 ALTER TABLE `products` DISABLE KEYS */; INSERT INTO `products` (`product_id`, `product_cat`, `product_brand`, `product_title`, `product_price`, `product_desc`, `product_image`, `product_keywords`) VALUES (1, 1, 2, 'Samsung Dous 2', 5000, 'Samsung Dous 2 sgh ', 'samsung mobile.jpg', 'samsung mobile electronics'), (2, 1, 3, 'iPhone 5s', 25000, 'iphone 5s', 'iphone mobile.jpg', 'mobile iphone apple'), (3, 1, 3, 'iPad', 30000, 'ipad apple brand', 'ipad.jpg', 'apple ipad tablet'), (4, 1, 3, 'iPhone 6s', 32000, 'Apple iPhone ', 'iphone.jpg', 'iphone apple mobile'), (5, 1, 2, 'iPad 2', 10000, 'samsung ipad', 'ipad 2.jpg', 'ipad tablet samsung'), (6, 1, 1, 'Hp Laptop r series', 35000, 'Hp Red and Black combination Laptop', 'k2-_ed8b8f8d-e696-4a96-8ce9-d78246f10ed1.v1.jpg-bc204bdaebb10e709a997a8bb4518156dfa6e3ed-optim-450x450.jpg', 'hp laptop '), (7, 1, 1, 'Laptop Pavillion', 50000, 'Laptop Hp Pavillion', '12039452_525963140912391_6353341236808813360_n.png', 'Laptop Hp Pavillion'), (8, 1, 4, 'Sony', 40000, 'Sony Mobile', 'sony mobile.jpg', 'sony mobile'), (9, 1, 3, 'iPhone New', 12000, 'iphone', 'white iphone.png', 'iphone apple mobile'), (10, 2, 6, 'Red Ladies dress', 1000, 'red dress for girls', 'red dress.jpg', 'red dress '), (11, 2, 6, 'Blue Heave dress', 1200, 'Blue dress', 'images.jpg', 'blue dress cloths'), (12, 2, 6, 'Ladies Casual Cloths', 1500, 'ladies casual summer two colors pleted', '7475-ladies-casual-dresses-summer-two-colors-pleated.jpg', 'girl dress cloths casual'), (13, 2, 6, 'SpringAutumnDress', 1200, 'girls dress', 'Spring-Autumn-Winter-Young-Ladies-Casual-Wool-Dress-Women-s-One-Piece-Dresse-Dating-Clothes-Medium.jpg_640x640.jpg', 'girl dress'), (14, 2, 6, 'Casual Dress', 1400, 'girl dress', 'download.jpg', 'ladies cloths girl'), (15, 2, 6, 'Formal Look', 1500, 'girl dress', 'shutterstock_203611819.jpg', 'ladies wears dress girl'), (16, 3, 6, 'Sweter for men', 600, '2012-Winter-Sweater-for-Men-for-better-outlook', '2012-Winter-Sweater-for-Men-for-better-outlook.jpg', 'black sweter cloth winter'), (17, 3, 6, 'Gents formal', 1000, 'gents formal look', 'gents-formal-250x250.jpg', 'gents wear cloths'), (19, 3, 6, 'Formal Coat', 3000, 'ad', 'images (1).jpg', 'coat blazer gents'), (20, 3, 6, 'Mens Sweeter', 1600, 'jg', 'Winter-fashion-men-burst-sweater.png', 'sweeter gents '), (21, 3, 6, 'T shirt', 800, 'ssds', 'IN-Mens-Apparel-Voodoo-Tiles-09._V333872612_.jpg', 'formal t shirt black'), (22, 4, 6, 'Yellow T shirt ', 1300, 'yello t shirt with pant', '1.0x0.jpg', 'kids yellow t shirt'), (23, 4, 6, 'Girls cloths', 1900, 'sadsf', 'GirlsClothing_Widgets.jpg', 'formal kids wear dress'), (24, 4, 6, 'Blue T shirt', 700, 'g', 'images.jpg', 'kids dress'), (25, 4, 6, 'Yellow girls dress', 750, 'as', 'images (3).jpg', 'yellow kids dress'), (26, 4, 6, 'Skyblue dress', 650, 'nbk', 'kids-wear-121.jpg', 'skyblue kids dress'), (27, 4, 6, 'Formal look', 690, 'sd', 'image28.jpg', 'formal kids dress'), (32, 5, 0, 'Book Shelf', 2500, 'book shelf', 'furniture-book-shelf-250x250.jpg', 'book shelf furniture'), (33, 6, 2, 'Refrigerator', 35000, 'Refrigerator', 'CT_WM_BTS-BTC-AppliancesHome_20150723.jpg', 'refrigerator samsung'), (34, 6, 4, 'Emergency Light', 1000, 'Emergency Light', 'emergency light.JPG', 'emergency light'), (35, 6, 0, 'Vaccum Cleaner', 6000, 'Vaccum Cleaner', 'images (2).jpg', 'Vaccum Cleaner'), (36, 6, 5, 'Iron', 1500, 'gj', 'iron.JPG', 'iron'), (37, 6, 5, 'LED TV', 20000, 'LED TV', 'images (4).jpg', 'led tv lg'), (38, 6, 4, 'Microwave Oven', 3500, 'Microwave Oven', 'images.jpg', '<NAME>'), (39, 6, 5, 'Mixer Grinder', 2500, 'Mixer Grinder', 'singer-mixer-grinder-mg-46-medium_4bfa018096c25dec7ba0af40662856ef.jpg', 'Mixer Grinder'), (40, 2, 6, 'Formal girls dress', 3000, 'Formal girls dress', 'girl-walking.jpg', 'ladies'), (45, 1, 2, 'Samsung Galaxy Note 3', 10000, '0', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galaxy Note 3 neo'), (46, 1, 2, 'Samsung Galaxy Note 3', 10000, '', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galxaxy note 3 neo'); /*!40000 ALTER TABLE `products` ENABLE KEYS */; -- Dumping structure for table ecom.user_info CREATE TABLE IF NOT EXISTS `user_info` ( `user_id` int(10) NOT NULL AUTO_INCREMENT, `first_name` varchar(100) NOT NULL, `last_name` varchar(100) NOT NULL, `email` varchar(300) NOT NULL, `password` varchar(300) NOT NULL, `mobile` varchar(10) NOT NULL, `address1` varchar(300) NOT NULL, `address2` varchar(11) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- Dumping data for table ecom.user_info: ~1 rows (approximately) /*!40000 ALTER TABLE `user_info` DISABLE KEYS */; INSERT INTO `user_info` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`, `address2`) VALUES (4, 'Kesara', 'Wimal', '<EMAIL>', '<PASSWORD>', '0784336852', 'Nugegoda', 'Colombo'); /*!40000 ALTER TABLE `user_info` 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 */;
CREATE OR REPLACE FUNCTION <%= functionName %>( entity TEXT, state_name TEXT ) RETURNS INTEGER AS $$ DECLARE statesMap JSON; BEGIN -- This is an auto-generated function -- Template (get_state_id.tpl.sql) statesMap := '<%= statesMap %>'; IF (statesMap->entity IS NOT NULL) THEN IF (statesMap->entity->state_name IS NOT NULL) THEN RETURN statesMap->entity->state_name; ELSE RAISE EXCEPTION 'Unknown state name used in <%= functionName %>(): %.%', entity, state_name; END IF; ELSE RAISE EXCEPTION 'Unknown entity name used in <%= functionName %>(): %', entity; END IF; END; $$ LANGUAGE plpgsql STRICT IMMUTABLE;
-- file:publication.sql ln:112 expect:true SET ROLE regress_publication_user
-- file:rangefuncs.sql ln:259 expect:true SELECT * FROM (VALUES (1),(2),(3)) v(r) LEFT JOIN unnest(array[10,20,30]) WITH ORDINALITY AS f(i,o) ON (r+i)<100
-- file:arrays.sql ln:354 expect:true select 33 = all ('{1,2,33}')
<reponame>VU-libtech/OLE-INST # ----------------------------------------------------------------------- # KRAD_MSG_T # ----------------------------------------------------------------------- drop table if exists KRAD_MSG_T / CREATE TABLE KRAD_MSG_T ( NMSPC_CD VARCHAR(20) , CMPNT_CD VARCHAR(100) , MSG_KEY VARCHAR(100) , LOC VARCHAR(80) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , MSG_DESC VARCHAR(255) , TXT VARCHAR(4000) , CONSTRAINT KRAD_MSG_TP1 PRIMARY KEY(NMSPC_CD,CMPNT_CD,MSG_KEY,LOC) , CONSTRAINT KRAD_MSG_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_CMPNT_SET_T # ----------------------------------------------------------------------- drop table if exists KRCR_CMPNT_SET_T / CREATE TABLE KRCR_CMPNT_SET_T ( CMPNT_SET_ID VARCHAR(40) , LAST_UPDT_TS DATETIME NOT NULL , CHKSM VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRCR_CMPNT_SET_TP1 PRIMARY KEY(CMPNT_SET_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_CMPNT_T # ----------------------------------------------------------------------- drop table if exists KRCR_CMPNT_T / CREATE TABLE KRCR_CMPNT_T ( NMSPC_CD VARCHAR(20) , CMPNT_CD VARCHAR(100) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(255) , ACTV_IND CHAR(1) default 'Y' NOT NULL , CONSTRAINT KRCR_CMPNT_TP1 PRIMARY KEY(NMSPC_CD,CMPNT_CD) , CONSTRAINT KRNS_PARM_DTL_TYP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_DRVD_CMPNT_T # ----------------------------------------------------------------------- drop table if exists KRCR_DRVD_CMPNT_T / CREATE TABLE KRCR_DRVD_CMPNT_T ( NMSPC_CD VARCHAR(20) , CMPNT_CD VARCHAR(100) , NM VARCHAR(255) , CMPNT_SET_ID VARCHAR(40) NOT NULL , CONSTRAINT KRCR_DRVD_CMPNT_TP1 PRIMARY KEY(NMSPC_CD,CMPNT_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_NMSPC_T # ----------------------------------------------------------------------- drop table if exists KRCR_NMSPC_T / CREATE TABLE KRCR_NMSPC_T ( NMSPC_CD VARCHAR(20) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND CHAR(1) default 'Y' NOT NULL , APPL_ID VARCHAR(255) , CONSTRAINT KRCR_NMSPC_TP1 PRIMARY KEY(NMSPC_CD) , CONSTRAINT KRNS_NMSPC_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_PARM_T # ----------------------------------------------------------------------- drop table if exists KRCR_PARM_T / CREATE TABLE KRCR_PARM_T ( NMSPC_CD VARCHAR(20) , CMPNT_CD VARCHAR(100) , PARM_NM VARCHAR(255) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PARM_TYP_CD VARCHAR(5) NOT NULL , VAL VARCHAR(4000) , PARM_DESC_TXT VARCHAR(4000) , EVAL_OPRTR_CD VARCHAR(1) , APPL_ID VARCHAR(255) default 'KUALI' , CONSTRAINT KRCR_PARM_TP1 PRIMARY KEY(NMSPC_CD,CMPNT_CD,PARM_NM,APPL_ID) , CONSTRAINT KRNS_PARM_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_PARM_TYP_T # ----------------------------------------------------------------------- drop table if exists KRCR_PARM_TYP_T / CREATE TABLE KRCR_PARM_TYP_T ( PARM_TYP_CD VARCHAR(5) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND CHAR(1) default 'Y' NOT NULL , CONSTRAINT KRCR_PARM_TYP_TP1 PRIMARY KEY(PARM_TYP_CD) , CONSTRAINT KRNS_PARM_TYP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRCR_STYLE_T # ----------------------------------------------------------------------- drop table if exists KRCR_STYLE_T / CREATE TABLE KRCR_STYLE_T ( STYLE_ID VARCHAR(40) , NM VARCHAR(200) NOT NULL , XML LONGTEXT NOT NULL , ACTV_IND DECIMAL(1) NOT NULL , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KRCR_STYLE_TP1 PRIMARY KEY(STYLE_ID) , CONSTRAINT KRCR_STYLE_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_CHNL_PRODCR_T # ----------------------------------------------------------------------- drop table if exists KREN_CHNL_PRODCR_T / CREATE TABLE KREN_CHNL_PRODCR_T ( CHNL_ID DECIMAL(8) , PRODCR_ID DECIMAL(8) , CONSTRAINT KREN_CHNL_PRODCR_TP1 PRIMARY KEY(CHNL_ID,PRODCR_ID) , INDEX KREN_CHNL_PRODCR_TI1 (CHNL_ID ) , INDEX KREN_CHNL_PRODCR_TI2 (PRODCR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_CHNL_SUBSCRP_T # ----------------------------------------------------------------------- drop table if exists KREN_CHNL_SUBSCRP_T / CREATE TABLE KREN_CHNL_SUBSCRP_T ( CHNL_SUBSCRP_ID DECIMAL(8) , CHNL_ID DECIMAL(8) NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) , VER_NBR DECIMAL(8) , CONSTRAINT KREN_CHNL_SUBSCRP_TP1 PRIMARY KEY(CHNL_SUBSCRP_ID) , CONSTRAINT KREN_CHNL_SUBSCRP_TC0 UNIQUE (CHNL_ID, PRNCPL_ID) , INDEX KREN_CHNL_SUBSCRP_TI1 (CHNL_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_CHNL_T # ----------------------------------------------------------------------- drop table if exists KREN_CHNL_T / CREATE TABLE KREN_CHNL_T ( CHNL_ID DECIMAL(8) , NM VARCHAR(200) NOT NULL , DESC_TXT VARCHAR(4000) NOT NULL , SUBSCRB_IND CHAR(1) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_CHNL_TP1 PRIMARY KEY(CHNL_ID) , CONSTRAINT KREN_CHNL_TC0 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_CNTNT_TYP_T # ----------------------------------------------------------------------- drop table if exists KREN_CNTNT_TYP_T / CREATE TABLE KREN_CNTNT_TYP_T ( CNTNT_TYP_ID DECIMAL(8) , NM VARCHAR(200) NOT NULL , CUR_IND CHAR(1) default 'T' NOT NULL , CNTNT_TYP_VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(1000) NOT NULL , NMSPC_CD VARCHAR(1000) NOT NULL , XSD LONGTEXT NOT NULL , XSL LONGTEXT NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_CNTNT_TYP_TP1 PRIMARY KEY(CNTNT_TYP_ID) , CONSTRAINT KREN_CNTNT_TYP_TC0 UNIQUE (NM, CNTNT_TYP_VER_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_MSG_DELIV_T # ----------------------------------------------------------------------- drop table if exists KREN_MSG_DELIV_T / CREATE TABLE KREN_MSG_DELIV_T ( MSG_DELIV_ID DECIMAL(8) , MSG_ID DECIMAL(8) NOT NULL , TYP_NM VARCHAR(200) NOT NULL , SYS_ID VARCHAR(300) , STAT_CD VARCHAR(15) NOT NULL , PROC_CNT DECIMAL(4) default 0 NOT NULL , LOCKD_DTTM DATETIME , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREN_MSG_DELIV_TP1 PRIMARY KEY(MSG_DELIV_ID) , CONSTRAINT KREN_MSG_DELIV_TC0 UNIQUE (MSG_ID, TYP_NM) , INDEX KREN_MSG_DELIV_TI1 (MSG_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_MSG_T # ----------------------------------------------------------------------- drop table if exists KREN_MSG_T / CREATE TABLE KREN_MSG_T ( MSG_ID DECIMAL(8) , ORGN_ID VARCHAR(128) , DELIV_TYP VARCHAR(500) NOT NULL , CRTE_DTTM DATETIME NOT NULL , TTL VARCHAR(255) , CHNL VARCHAR(300) NOT NULL , PRODCR VARCHAR(300) , CNTNT LONGTEXT NOT NULL , CNTNT_TYP VARCHAR(128) , URL VARCHAR(512) , RECIP_ID VARCHAR(300) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREN_MSG_TP1 PRIMARY KEY(MSG_ID) , CONSTRAINT KREN_MSG_TC0 UNIQUE (ORGN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_NTFCTN_MSG_DELIV_T # ----------------------------------------------------------------------- drop table if exists KREN_NTFCTN_MSG_DELIV_T / CREATE TABLE KREN_NTFCTN_MSG_DELIV_T ( NTFCTN_MSG_DELIV_ID DECIMAL(8) , NTFCTN_ID DECIMAL(8) NOT NULL , RECIP_ID VARCHAR(40) NOT NULL , STAT_CD VARCHAR(15) NOT NULL , SYS_ID VARCHAR(300) , LOCKD_DTTM DATETIME , VER_NBR DECIMAL(8) default 0 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_NTFCTN_MSG_DELIV_TP1 PRIMARY KEY(NTFCTN_MSG_DELIV_ID) , CONSTRAINT KREN_NTFCTN_MSG_DELIV_TC0 UNIQUE (NTFCTN_ID, RECIP_ID) , INDEX KREN_MSG_DELIVSI1 (NTFCTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_NTFCTN_T # ----------------------------------------------------------------------- drop table if exists KREN_NTFCTN_T / CREATE TABLE KREN_NTFCTN_T ( NTFCTN_ID DECIMAL(8) , DELIV_TYP VARCHAR(3) NOT NULL , CRTE_DTTM DATETIME NOT NULL , SND_DTTM DATETIME , AUTO_RMV_DTTM DATETIME , PRIO_ID DECIMAL(8) NOT NULL , TTL VARCHAR(255) , CNTNT LONGTEXT NOT NULL , CNTNT_TYP_ID DECIMAL(8) NOT NULL , CHNL_ID DECIMAL(8) NOT NULL , PRODCR_ID DECIMAL(8) NOT NULL , PROCESSING_FLAG VARCHAR(15) NOT NULL , LOCKD_DTTM DATETIME , VER_NBR DECIMAL(8) default 0 NOT NULL , OBJ_ID VARCHAR(36) , DOC_TYP_NM VARCHAR(64) , CONSTRAINT KREN_NTFCTN_TP1 PRIMARY KEY(NTFCTN_ID) , INDEX KREN_NTFCTN_I1 (CNTNT_TYP_ID ) , INDEX KREN_NTFCTN_I2 (PRIO_ID ) , INDEX KREN_NTFCTN_I3 (PRODCR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_PRIO_T # ----------------------------------------------------------------------- drop table if exists KREN_PRIO_T / CREATE TABLE KREN_PRIO_T ( PRIO_ID DECIMAL(8) , NM VARCHAR(40) NOT NULL , DESC_TXT VARCHAR(500) NOT NULL , PRIO_ORD DECIMAL(4) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_PRIO_TP1 PRIMARY KEY(PRIO_ID) , CONSTRAINT KREN_PRIO_TC0 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_PRODCR_T # ----------------------------------------------------------------------- drop table if exists KREN_PRODCR_T / CREATE TABLE KREN_PRODCR_T ( PRODCR_ID DECIMAL(8) , NM VARCHAR(200) NOT NULL , DESC_TXT VARCHAR(1000) NOT NULL , CNTCT_INFO VARCHAR(1000) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_PRODCR_TP1 PRIMARY KEY(PRODCR_ID) , CONSTRAINT KREN_PRODCR_TC0 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_RECIP_DELIV_T # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_DELIV_T / CREATE TABLE KREN_RECIP_DELIV_T ( RECIP_DELIV_ID DECIMAL(8) , RECIP_ID VARCHAR(40) NOT NULL , CHNL VARCHAR(300) NOT NULL , NM VARCHAR(200) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREN_RECIP_DELIV_TP1 PRIMARY KEY(RECIP_DELIV_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_RECIP_LIST_T # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_LIST_T / CREATE TABLE KREN_RECIP_LIST_T ( RECIP_LIST_ID DECIMAL(8) , CHNL_ID DECIMAL(8) NOT NULL , RECIP_TYP_CD VARCHAR(10) NOT NULL , RECIP_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) , VER_NBR DECIMAL(8) , CONSTRAINT KREN_RECIP_LIST_TP1 PRIMARY KEY(RECIP_LIST_ID) , CONSTRAINT KREN_RECIP_LIST_TC0 UNIQUE (CHNL_ID, RECIP_TYP_CD, RECIP_ID) , INDEX KREN_RECIP_LIST_TI1 (CHNL_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_RECIP_PREFS_T # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_PREFS_T / CREATE TABLE KREN_RECIP_PREFS_T ( RECIP_PREFS_ID DECIMAL(8) , RECIP_ID VARCHAR(40) NOT NULL , PROP VARCHAR(200) NOT NULL , VAL VARCHAR(1000) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREN_RECIP_PREFS_TP1 PRIMARY KEY(RECIP_PREFS_ID) , CONSTRAINT KREN_RECIP_PREFS_TC0 UNIQUE (RECIP_ID, PROP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_RECIP_T # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_T / CREATE TABLE KREN_RECIP_T ( RECIP_ID DECIMAL(8) , NTFCTN_ID DECIMAL(8) NOT NULL , RECIP_TYP_CD VARCHAR(10) NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) , VER_NBR DECIMAL(8) , CONSTRAINT KREN_RECIP_TP1 PRIMARY KEY(RECIP_ID) , CONSTRAINT KREN_RECIP_TC0 UNIQUE (NTFCTN_ID, RECIP_TYP_CD, PRNCPL_ID) , INDEX KREN_RECIP_TI1 (NTFCTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_RVWER_T # ----------------------------------------------------------------------- drop table if exists KREN_RVWER_T / CREATE TABLE KREN_RVWER_T ( RVWER_ID DECIMAL(8) , CHNL_ID DECIMAL(8) NOT NULL , TYP VARCHAR(10) NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) , CONSTRAINT KREN_RVWER_TP1 PRIMARY KEY(RVWER_ID) , CONSTRAINT KREN_RVWER_TC0 UNIQUE (CHNL_ID, TYP, PRNCPL_ID) , INDEX KREN_RVWER_TI1 (CHNL_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREN_SNDR_T # ----------------------------------------------------------------------- drop table if exists KREN_SNDR_T / CREATE TABLE KREN_SNDR_T ( SNDR_ID DECIMAL(8) , NTFCTN_ID DECIMAL(8) NOT NULL , NM VARCHAR(200) NOT NULL , OBJ_ID VARCHAR(36) , VER_NBR DECIMAL(8) , CONSTRAINT KREN_SNDR_TP1 PRIMARY KEY(SNDR_ID) , CONSTRAINT KREN_SNDR_TC0 UNIQUE (NTFCTN_ID, NM) , INDEX KREN_SNDR_TI1 (NTFCTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_ACTN_ITM_T # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_ITM_T / CREATE TABLE KREW_ACTN_ITM_T ( ACTN_ITM_ID VARCHAR(40) , PRNCPL_ID VARCHAR(40) NOT NULL , ASND_DT DATETIME NOT NULL , RQST_CD CHAR(1) NOT NULL , ACTN_RQST_ID VARCHAR(40) NOT NULL , DOC_HDR_ID VARCHAR(40) NOT NULL , ROLE_NM VARCHAR(2000) , DLGN_PRNCPL_ID VARCHAR(40) , DOC_HDR_TTL VARCHAR(255) , DOC_TYP_LBL VARCHAR(128) NOT NULL , DOC_HDLR_URL VARCHAR(255) NOT NULL , DOC_TYP_NM VARCHAR(64) NOT NULL , RSP_ID VARCHAR(40) NOT NULL , DLGN_TYP VARCHAR(1) , VER_NBR DECIMAL(8) default 0 , DTYPE VARCHAR(50) , GRP_ID VARCHAR(40) , DLGN_GRP_ID VARCHAR(40) , RQST_LBL VARCHAR(255) , CONSTRAINT KREW_ACTN_ITM_TP1 PRIMARY KEY(ACTN_ITM_ID) , INDEX KREW_ACTN_ITM_T1 (PRNCPL_ID ) , INDEX KREW_ACTN_ITM_TI2 (DOC_HDR_ID ) , INDEX KREW_ACTN_ITM_TI3 (ACTN_RQST_ID ) , INDEX KREW_ACTN_ITM_TI5 (PRNCPL_ID , DLGN_TYP , DOC_HDR_ID ) , INDEX KREW_ACTN_ITM_TI6 (DLGN_TYP , DLGN_PRNCPL_ID , DLGN_GRP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_ACTN_RQST_T # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_RQST_T / CREATE TABLE KREW_ACTN_RQST_T ( ACTN_RQST_ID VARCHAR(40) , PARNT_ID VARCHAR(40) , ACTN_RQST_CD CHAR(1) NOT NULL , DOC_HDR_ID VARCHAR(40) NOT NULL , RULE_ID VARCHAR(40) , STAT_CD CHAR(1) NOT NULL , RSP_ID VARCHAR(40) NOT NULL , PRNCPL_ID VARCHAR(40) , ROLE_NM VARCHAR(2000) , QUAL_ROLE_NM VARCHAR(2000) , QUAL_ROLE_NM_LBL_TXT VARCHAR(2000) , RECIP_TYP_CD CHAR(1) , PRIO_NBR DECIMAL(8) NOT NULL , RTE_TYP_NM VARCHAR(255) , RTE_LVL_NBR DECIMAL(8) NOT NULL , RTE_NODE_INSTN_ID VARCHAR(40) , ACTN_TKN_ID VARCHAR(40) , DOC_VER_NBR DECIMAL(8) NOT NULL , CRTE_DT DATETIME NOT NULL , RSP_DESC_TXT VARCHAR(200) , FRC_ACTN DECIMAL(1) default 0 , ACTN_RQST_ANNOTN_TXT VARCHAR(2000) , DLGN_TYP CHAR(1) , APPR_PLCY CHAR(1) , CUR_IND DECIMAL(1) default 1 , VER_NBR DECIMAL(8) default 0 , GRP_ID VARCHAR(40) , RQST_LBL VARCHAR(255) , CONSTRAINT KREW_ACTN_RQST_TP1 PRIMARY KEY(ACTN_RQST_ID) , INDEX KREW_ACTN_RQST_T11 (DOC_HDR_ID ) , INDEX KREW_ACTN_RQST_T12 (PRNCPL_ID ) , INDEX KREW_ACTN_RQST_T13 (ACTN_TKN_ID ) , INDEX KREW_ACTN_RQST_T14 (PARNT_ID ) , INDEX KREW_ACTN_RQST_T15 (RSP_ID ) , INDEX KREW_ACTN_RQST_T16 (STAT_CD , RSP_ID ) , INDEX KREW_ACTN_RQST_T17 (RTE_NODE_INSTN_ID ) , INDEX KREW_ACTN_RQST_T19 (STAT_CD , DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_ACTN_TKN_T # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_TKN_T / CREATE TABLE KREW_ACTN_TKN_T ( ACTN_TKN_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , DLGTR_PRNCPL_ID VARCHAR(40) , ACTN_CD CHAR(1) NOT NULL , ACTN_DT DATETIME NOT NULL , DOC_VER_NBR DECIMAL(8) NOT NULL , ANNOTN VARCHAR(2000) , CUR_IND DECIMAL(1) default 1 , VER_NBR DECIMAL(8) default 0 , DLGTR_GRP_ID VARCHAR(40) , CONSTRAINT KREW_ACTN_TKN_TP1 PRIMARY KEY(ACTN_TKN_ID) , INDEX KREW_ACTN_TKN_TI1 (DOC_HDR_ID , PRNCPL_ID ) , INDEX KREW_ACTN_TKN_TI2 (DOC_HDR_ID , PRNCPL_ID , ACTN_CD ) , INDEX KREW_ACTN_TKN_TI3 (PRNCPL_ID ) , INDEX KREW_ACTN_TKN_TI4 (DLGTR_PRNCPL_ID ) , INDEX KREW_ACTN_TKN_TI5 (DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_APP_DOC_STAT_TRAN_T # ----------------------------------------------------------------------- drop table if exists KREW_APP_DOC_STAT_TRAN_T / CREATE TABLE KREW_APP_DOC_STAT_TRAN_T ( APP_DOC_STAT_TRAN_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) , APP_DOC_STAT_FROM VARCHAR(64) , APP_DOC_STAT_TO VARCHAR(64) , STAT_TRANS_DATE DATETIME , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_APP_DOC_STAT_TRAN_TP1 PRIMARY KEY(APP_DOC_STAT_TRAN_ID) , CONSTRAINT KREW_APP_DOC_STAT_TRAN_TC0 UNIQUE (OBJ_ID) , INDEX KREW_APP_DOC_STAT_TI1 (DOC_HDR_ID , STAT_TRANS_DATE ) , INDEX KREW_APP_DOC_STAT_TI2 (DOC_HDR_ID , APP_DOC_STAT_FROM ) , INDEX KREW_APP_DOC_STAT_TI3 (DOC_HDR_ID , APP_DOC_STAT_TO ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_ATTR_DEFN_T # ----------------------------------------------------------------------- drop table if exists KREW_ATTR_DEFN_T / CREATE TABLE KREW_ATTR_DEFN_T ( ATTR_DEFN_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , LBL VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , CMPNT_NM VARCHAR(100) , VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(40) , CONSTRAINT KREW_ATTR_DEFN_TP1 PRIMARY KEY(ATTR_DEFN_ID) , CONSTRAINT KREW_ATTR_DEFN_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_ATT_T # ----------------------------------------------------------------------- drop table if exists KREW_ATT_T / CREATE TABLE KREW_ATT_T ( ATTACHMENT_ID VARCHAR(40) , NTE_ID VARCHAR(40) , FILE_NM VARCHAR(255) NOT NULL , FILE_LOC VARCHAR(255) NOT NULL , MIME_TYP VARCHAR(255) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_ATT_TP1 PRIMARY KEY(ATTACHMENT_ID) , INDEX KREW_ATT_TI1 (NTE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DLGN_RSP_T # ----------------------------------------------------------------------- drop table if exists KREW_DLGN_RSP_T / CREATE TABLE KREW_DLGN_RSP_T ( DLGN_RULE_ID VARCHAR(40) , RSP_ID VARCHAR(40) NOT NULL , DLGN_RULE_BASE_VAL_ID VARCHAR(40) NOT NULL , DLGN_TYP VARCHAR(20) NOT NULL , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_DLGN_RSP_TP1 PRIMARY KEY(DLGN_RULE_ID) , CONSTRAINT KREW_DLGN_RSP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_CNTNT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_CNTNT_T / CREATE TABLE KREW_DOC_HDR_CNTNT_T ( DOC_HDR_ID VARCHAR(40) , DOC_CNTNT_TXT LONGTEXT , CONSTRAINT KREW_DOC_HDR_CNTNT_TP1 PRIMARY KEY(DOC_HDR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_EXT_DT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_EXT_DT_T / CREATE TABLE KREW_DOC_HDR_EXT_DT_T ( DOC_HDR_EXT_DT_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(256) NOT NULL , VAL DATETIME , CONSTRAINT KREW_DOC_HDR_EXT_DT_TP1 PRIMARY KEY(DOC_HDR_EXT_DT_ID) , INDEX KREW_DOC_HDR_EXT_DT_TI1 (KEY_CD (255), VAL ) , INDEX KREW_DOC_HDR_EXT_DT_TI2 (DOC_HDR_ID ) , INDEX KREW_DOC_HDR_EXT_DT_TI3 (VAL ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_EXT_FLT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_EXT_FLT_T / CREATE TABLE KREW_DOC_HDR_EXT_FLT_T ( DOC_HDR_EXT_FLT_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(256) NOT NULL , VAL DECIMAL(30,15) , CONSTRAINT KREW_DOC_HDR_EXT_FLT_TP1 PRIMARY KEY(DOC_HDR_EXT_FLT_ID) , INDEX KREW_DOC_HDR_EXT_FLT_TI1 (KEY_CD (255), VAL ) , INDEX KREW_DOC_HDR_EXT_FLT_TI2 (DOC_HDR_ID ) , INDEX KREW_DOC_HDR_EXT_FLT_TI3 (VAL ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_EXT_LONG_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_EXT_LONG_T / CREATE TABLE KREW_DOC_HDR_EXT_LONG_T ( DOC_HDR_EXT_LONG_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(256) NOT NULL , VAL DECIMAL(22) , CONSTRAINT KREW_DOC_HDR_EXT_LONG_TP1 PRIMARY KEY(DOC_HDR_EXT_LONG_ID) , INDEX KREW_DOC_HDR_EXT_LONG_TI1 (KEY_CD (255), VAL ) , INDEX KREW_DOC_HDR_EXT_LONG_TI2 (DOC_HDR_ID ) , INDEX KREW_DOC_HDR_EXT_LONG_TI3 (VAL ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_EXT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_EXT_T / CREATE TABLE KREW_DOC_HDR_EXT_T ( DOC_HDR_EXT_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(256) NOT NULL , VAL VARCHAR(2000) , CONSTRAINT KREW_DOC_HDR_EXT_TP1 PRIMARY KEY(DOC_HDR_EXT_ID) , INDEX KREW_DOC_HDR_EXT_TI1 (KEY_CD (255), VAL (255)) , INDEX KREW_DOC_HDR_EXT_TI2 (DOC_HDR_ID ) , INDEX KREW_DOC_HDR_EXT_TI3 (VAL (255)) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_HDR_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_T / CREATE TABLE KREW_DOC_HDR_T ( DOC_HDR_ID VARCHAR(40) , DOC_TYP_ID VARCHAR(40) , DOC_HDR_STAT_CD CHAR(1) NOT NULL , RTE_LVL DECIMAL(8) NOT NULL , STAT_MDFN_DT DATETIME NOT NULL , CRTE_DT DATETIME NOT NULL , APRV_DT DATETIME , FNL_DT DATETIME , RTE_STAT_MDFN_DT DATETIME , TTL VARCHAR(255) , APP_DOC_ID VARCHAR(255) , DOC_VER_NBR DECIMAL(8) NOT NULL , INITR_PRNCPL_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 , RTE_PRNCPL_ID VARCHAR(40) , DTYPE VARCHAR(50) , OBJ_ID VARCHAR(36) NOT NULL , APP_DOC_STAT VARCHAR(64) , APP_DOC_STAT_MDFN_DT DATETIME , CONSTRAINT KREW_DOC_HDR_TP1 PRIMARY KEY(DOC_HDR_ID) , CONSTRAINT KREW_DOC_HDR_TC0 UNIQUE (OBJ_ID) , INDEX KREW_DOC_HDR_T10 (APP_DOC_STAT ) , INDEX KREW_DOC_HDR_T12 (APP_DOC_STAT_MDFN_DT ) , INDEX KREW_DOC_HDR_TI1 (DOC_TYP_ID ) , INDEX KREW_DOC_HDR_TI2 (INITR_PRNCPL_ID ) , INDEX KREW_DOC_HDR_TI3 (DOC_HDR_STAT_CD ) , INDEX KREW_DOC_HDR_TI4 (TTL ) , INDEX KREW_DOC_HDR_TI5 (CRTE_DT ) , INDEX KREW_DOC_HDR_TI6 (RTE_STAT_MDFN_DT ) , INDEX KREW_DOC_HDR_TI7 (APRV_DT ) , INDEX KREW_DOC_HDR_TI8 (FNL_DT ) , INDEX KREW_DOC_HDR_TI9 (APP_DOC_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_LNK_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_LNK_T / CREATE TABLE KREW_DOC_LNK_T ( DOC_LNK_ID VARCHAR(40) , ORGN_DOC_ID VARCHAR(40) NOT NULL , DEST_DOC_ID VARCHAR(40) NOT NULL , CONSTRAINT KREW_DOC_LNK_TP1 PRIMARY KEY(DOC_LNK_ID) , INDEX KREW_DOC_LNK_TI1 (ORGN_DOC_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_NTE_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_NTE_T / CREATE TABLE KREW_DOC_NTE_T ( DOC_NTE_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , AUTH_PRNCPL_ID VARCHAR(40) NOT NULL , CRT_DT DATETIME NOT NULL , TXT VARCHAR(4000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_DOC_NTE_TP1 PRIMARY KEY(DOC_NTE_ID) , INDEX KREW_DOC_NTE_TI1 (DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_APP_DOC_STAT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_APP_DOC_STAT_T / CREATE TABLE KREW_DOC_TYP_APP_DOC_STAT_T ( DOC_TYP_ID VARCHAR(40) , DOC_STAT_NM VARCHAR(64) , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CAT_NM VARCHAR(64) , SEQ_NO DECIMAL(5) , CONSTRAINT KREW_DOC_TYP_APP_DOC_STAT_TP1 PRIMARY KEY(DOC_TYP_ID,DOC_STAT_NM) , CONSTRAINT KREW_DOC_TYP_APP_DOC_STAT_TC0 UNIQUE (OBJ_ID) , INDEX KREW_DOC_TYP_APP_DOC_STAT_T1 (DOC_TYP_ID ) , INDEX KREW_DOC_TYP_APP_DOC_STAT_T2 (DOC_TYP_ID , CAT_NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_APP_STAT_CAT_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_APP_STAT_CAT_T / CREATE TABLE KREW_DOC_TYP_APP_STAT_CAT_T ( DOC_TYP_ID VARCHAR(40) , CAT_NM VARCHAR(64) , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_DOC_TYP_APP_STAT_CAT_TP1 PRIMARY KEY(DOC_TYP_ID,CAT_NM) , CONSTRAINT KREW_DOC_TYP_APP_STAT_CAT_TC1 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_ATTR_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_ATTR_T / CREATE TABLE KREW_DOC_TYP_ATTR_T ( DOC_TYP_ATTRIB_ID VARCHAR(40) , DOC_TYP_ID VARCHAR(40) NOT NULL , RULE_ATTR_ID VARCHAR(40) NOT NULL , ORD_INDX DECIMAL(4) default 0 , CONSTRAINT KREW_DOC_TYP_ATTR_TP1 PRIMARY KEY(DOC_TYP_ATTRIB_ID) , INDEX KREW_DOC_TYP_ATTR_TI1 (DOC_TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_PLCY_RELN_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_PLCY_RELN_T / CREATE TABLE KREW_DOC_TYP_PLCY_RELN_T ( DOC_TYP_ID VARCHAR(40) , DOC_PLCY_NM VARCHAR(255) , PLCY_NM DECIMAL(1) NOT NULL , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , PLCY_VAL VARCHAR(1024) , CONSTRAINT KREW_DOC_TYP_PLCY_RELN_TP1 PRIMARY KEY(DOC_TYP_ID,DOC_PLCY_NM) , CONSTRAINT KREW_DOC_TYP_PLCY_RELN_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_PROC_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_PROC_T / CREATE TABLE KREW_DOC_TYP_PROC_T ( DOC_TYP_PROC_ID VARCHAR(40) , DOC_TYP_ID VARCHAR(40) NOT NULL , INIT_RTE_NODE_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , INIT_IND DECIMAL(1) default 0 NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_DOC_TYP_PROC_TP1 PRIMARY KEY(DOC_TYP_PROC_ID) , INDEX KREW_DOC_TYP_PROC_TI1 (DOC_TYP_ID ) , INDEX KREW_DOC_TYP_PROC_TI2 (INIT_RTE_NODE_ID ) , INDEX KREW_DOC_TYP_PROC_TI3 (NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_DOC_TYP_T # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_T / CREATE TABLE KREW_DOC_TYP_T ( DOC_TYP_ID VARCHAR(40) , PARNT_ID VARCHAR(40) , DOC_TYP_NM VARCHAR(64) , DOC_TYP_VER_NBR DECIMAL(10) default 0 , ACTV_IND DECIMAL(1) , CUR_IND DECIMAL(1) , LBL VARCHAR(128) NOT NULL , PREV_DOC_TYP_VER_NBR VARCHAR(40) , DOC_TYP_DESC VARCHAR(4000) , DOC_HDLR_URL VARCHAR(255) , POST_PRCSR VARCHAR(255) , JNDI_URL VARCHAR(255) , BLNKT_APPR_PLCY VARCHAR(10) , ADV_DOC_SRCH_URL VARCHAR(255) , RTE_VER_NBR VARCHAR(2) default '1' , NOTIFY_ADDR VARCHAR(255) , APPL_ID VARCHAR(255) , EMAIL_XSL VARCHAR(255) , SEC_XML LONGTEXT , VER_NBR DECIMAL(8) default 0 , BLNKT_APPR_GRP_ID VARCHAR(40) , RPT_GRP_ID VARCHAR(40) , GRP_ID VARCHAR(40) , HELP_DEF_URL VARCHAR(4000) , OBJ_ID VARCHAR(36) NOT NULL , DOC_SEARCH_HELP_URL VARCHAR(4000) , DOC_HDR_ID VARCHAR(40) , AUTHORIZER VARCHAR(255) , CONSTRAINT KREW_DOC_TYP_TP1 PRIMARY KEY(DOC_TYP_ID) , CONSTRAINT KREW_DOC_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KREW_DOC_TYP_TI1 UNIQUE (DOC_TYP_NM, DOC_TYP_VER_NBR) , INDEX KREW_DOC_TYP_TI2 (PARNT_ID ) , INDEX KREW_DOC_TYP_TI3 (DOC_TYP_ID , PARNT_ID ) , INDEX KREW_DOC_TYP_TI4 (PREV_DOC_TYP_VER_NBR ) , INDEX KREW_DOC_TYP_TI5 (CUR_IND ) , INDEX KREW_DOC_TYP_TI6 (DOC_TYP_NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_EDL_ASSCTN_T # ----------------------------------------------------------------------- drop table if exists KREW_EDL_ASSCTN_T / CREATE TABLE KREW_EDL_ASSCTN_T ( EDOCLT_ASSOC_ID DECIMAL(19) , DOC_TYP_NM VARCHAR(64) NOT NULL , EDL_DEF_NM VARCHAR(200) , STYLE_NM VARCHAR(200) , ACTV_IND DECIMAL(1) NOT NULL , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_EDL_ASSCTN_TP1 PRIMARY KEY(EDOCLT_ASSOC_ID) , CONSTRAINT KREW_EDL_ASSCTN_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_EDL_DEF_T # ----------------------------------------------------------------------- drop table if exists KREW_EDL_DEF_T / CREATE TABLE KREW_EDL_DEF_T ( EDOCLT_DEF_ID DECIMAL(19) , NM VARCHAR(200) NOT NULL , XML LONGTEXT NOT NULL , ACTV_IND DECIMAL(1) NOT NULL , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_EDL_DEF_TP1 PRIMARY KEY(EDOCLT_DEF_ID) , CONSTRAINT KREW_EDL_DEF_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_EDL_DMP_T # ----------------------------------------------------------------------- drop table if exists KREW_EDL_DMP_T / CREATE TABLE KREW_EDL_DMP_T ( DOC_HDR_ID VARCHAR(40) , DOC_TYP_NM VARCHAR(64) NOT NULL , DOC_HDR_STAT_CD CHAR(1) NOT NULL , DOC_HDR_MDFN_DT DATETIME NOT NULL , DOC_HDR_CRTE_DT DATETIME NOT NULL , DOC_HDR_TTL VARCHAR(255) , DOC_HDR_INITR_PRNCPL_ID VARCHAR(40) NOT NULL , CRNT_NODE_NM VARCHAR(30) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_EDL_DMP_TP1 PRIMARY KEY(DOC_HDR_ID) , INDEX KREW_EDL_DMP_TI1 (DOC_TYP_NM , DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_EDL_FLD_DMP_T # ----------------------------------------------------------------------- drop table if exists KREW_EDL_FLD_DMP_T / CREATE TABLE KREW_EDL_FLD_DMP_T ( EDL_FIELD_DMP_ID DECIMAL(14) , DOC_HDR_ID VARCHAR(40) NOT NULL , FLD_NM VARCHAR(255) NOT NULL , FLD_VAL VARCHAR(4000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_EDL_FLD_DMP_TP1 PRIMARY KEY(EDL_FIELD_DMP_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_INIT_RTE_NODE_INSTN_T # ----------------------------------------------------------------------- drop table if exists KREW_INIT_RTE_NODE_INSTN_T / CREATE TABLE KREW_INIT_RTE_NODE_INSTN_T ( DOC_HDR_ID VARCHAR(40) , RTE_NODE_INSTN_ID VARCHAR(40) , CONSTRAINT KREW_INIT_RTE_NODE_INSTN_TP1 PRIMARY KEY(DOC_HDR_ID,RTE_NODE_INSTN_ID) , INDEX KREW_INIT_RTE_NODE_INSTN_TI1 (DOC_HDR_ID ) , INDEX KREW_INIT_RTE_NODE_INSTN_TI2 (RTE_NODE_INSTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_OUT_BOX_ITM_T # ----------------------------------------------------------------------- drop table if exists KREW_OUT_BOX_ITM_T / CREATE TABLE KREW_OUT_BOX_ITM_T ( ACTN_ITM_ID VARCHAR(40) , PRNCPL_ID VARCHAR(40) NOT NULL , ASND_DT DATETIME NOT NULL , RQST_CD CHAR(1) NOT NULL , ACTN_RQST_ID VARCHAR(40) NOT NULL , DOC_HDR_ID VARCHAR(40) NOT NULL , ROLE_NM VARCHAR(2000) , DLGN_PRNCPL_ID VARCHAR(40) , DOC_HDR_TTL VARCHAR(255) , DOC_TYP_LBL VARCHAR(128) NOT NULL , DOC_HDLR_URL VARCHAR(255) NOT NULL , DOC_TYP_NM VARCHAR(64) NOT NULL , RSP_ID VARCHAR(40) NOT NULL , DLGN_TYP VARCHAR(1) , VER_NBR DECIMAL(8) default 0 , GRP_ID VARCHAR(40) , DLGN_GRP_ID VARCHAR(40) , RQST_LBL VARCHAR(255) , CONSTRAINT KREW_OUT_BOX_ITM_TP1 PRIMARY KEY(ACTN_ITM_ID) , INDEX KREW_OUT_BOX_ITM_TI1 (PRNCPL_ID ) , INDEX KREW_OUT_BOX_ITM_TI2 (DOC_HDR_ID ) , INDEX KREW_OUT_BOX_ITM_TI3 (ACTN_RQST_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_PPL_FLW_ATTR_T # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_ATTR_T / CREATE TABLE KREW_PPL_FLW_ATTR_T ( PPL_FLW_ATTR_ID VARCHAR(40) , PPL_FLW_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREW_PPL_FLW_ATTR_TP1 PRIMARY KEY(PPL_FLW_ATTR_ID) , INDEX KREW_PPL_FLW_ATTR_TI1 (PPL_FLW_ID ) , INDEX KREW_PPL_FLW_ATTR_TI2 (ATTR_DEFN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_PPL_FLW_DLGT_T # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_DLGT_T / CREATE TABLE KREW_PPL_FLW_DLGT_T ( PPL_FLW_DLGT_ID VARCHAR(40) , PPL_FLW_MBR_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) NOT NULL , MBR_TYP_CD VARCHAR(1) NOT NULL , DLGN_TYP_CD VARCHAR(1) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , ACTN_RQST_PLCY_CD VARCHAR(1) , RSP_ID VARCHAR(40) NOT NULL , CONSTRAINT KREW_PPL_FLW_DLGT_TP1 PRIMARY KEY(PPL_FLW_DLGT_ID) , INDEX KREW_PPL_FLW_DLGT_TI1 (PPL_FLW_MBR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_PPL_FLW_MBR_T # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_MBR_T / CREATE TABLE KREW_PPL_FLW_MBR_T ( PPL_FLW_MBR_ID VARCHAR(40) , PPL_FLW_ID VARCHAR(40) NOT NULL , MBR_TYP_CD VARCHAR(1) NOT NULL , MBR_ID VARCHAR(40) NOT NULL , PRIO DECIMAL(8) , VER_NBR DECIMAL(8) default 0 NOT NULL , ACTN_RQST_PLCY_CD VARCHAR(1) , RSP_ID VARCHAR(40) NOT NULL , CONSTRAINT KREW_PPL_FLW_MBR_TP1 PRIMARY KEY(PPL_FLW_MBR_ID) , INDEX KREW_PPL_FLW_MBR_TI1 (PPL_FLW_ID ) , INDEX KREW_PPL_FLW_MBR_TI2 (PPL_FLW_ID , PRIO ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_PPL_FLW_T # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_T / CREATE TABLE KREW_PPL_FLW_T ( PPL_FLW_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , TYP_ID VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(4000) , CONSTRAINT KREW_PPL_FLW_TP1 PRIMARY KEY(PPL_FLW_ID) , CONSTRAINT KREW_PPL_FLW_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KREW_PPL_FLW_FK1 (TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_BRCH_PROTO_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_BRCH_PROTO_T / CREATE TABLE KREW_RTE_BRCH_PROTO_T ( RTE_BRCH_PROTO_ID VARCHAR(40) , BRCH_NM VARCHAR(255) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RTE_BRCH_PROTO_TP1 PRIMARY KEY(RTE_BRCH_PROTO_ID) , INDEX KREW_RTE_BRCH_PROTO_TI1 (BRCH_NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_BRCH_ST_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_BRCH_ST_T / CREATE TABLE KREW_RTE_BRCH_ST_T ( RTE_BRCH_ST_ID VARCHAR(40) , RTE_BRCH_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(255) NOT NULL , VAL VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RTE_BRCH_ST_TP1 PRIMARY KEY(RTE_BRCH_ST_ID) , INDEX KREW_RTE_BRCH_ST_TI1 (RTE_BRCH_ID , KEY_CD ) , INDEX KREW_RTE_BRCH_ST_TI2 (RTE_BRCH_ID ) , INDEX KREW_RTE_BRCH_ST_TI3 (KEY_CD , VAL (255)) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_BRCH_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_BRCH_T / CREATE TABLE KREW_RTE_BRCH_T ( RTE_BRCH_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , PARNT_ID VARCHAR(40) , INIT_RTE_NODE_INSTN_ID VARCHAR(40) , SPLT_RTE_NODE_INSTN_ID VARCHAR(40) , JOIN_RTE_NODE_INSTN_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RTE_BRCH_TP1 PRIMARY KEY(RTE_BRCH_ID) , INDEX KREW_RTE_BRCH_TI1 (NM ) , INDEX KREW_RTE_BRCH_TI2 (PARNT_ID ) , INDEX KREW_RTE_BRCH_TI3 (INIT_RTE_NODE_INSTN_ID ) , INDEX KREW_RTE_BRCH_TI4 (SPLT_RTE_NODE_INSTN_ID ) , INDEX KREW_RTE_BRCH_TI5 (JOIN_RTE_NODE_INSTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_CFG_PARM_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_CFG_PARM_T / CREATE TABLE KREW_RTE_NODE_CFG_PARM_T ( RTE_NODE_CFG_PARM_ID VARCHAR(40) , RTE_NODE_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(255) NOT NULL , VAL VARCHAR(4000) , CONSTRAINT KREW_RTE_NODE_CFG_PARM_TP1 PRIMARY KEY(RTE_NODE_CFG_PARM_ID) , INDEX KREW_RTE_NODE_CFG_PARM_TI1 (RTE_NODE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_INSTN_LNK_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_INSTN_LNK_T / CREATE TABLE KREW_RTE_NODE_INSTN_LNK_T ( FROM_RTE_NODE_INSTN_ID VARCHAR(40) , TO_RTE_NODE_INSTN_ID VARCHAR(40) , CONSTRAINT KREW_RTE_NODE_INSTN_LNK_TP1 PRIMARY KEY(FROM_RTE_NODE_INSTN_ID,TO_RTE_NODE_INSTN_ID) , INDEX KREW_RTE_NODE_INSTN_LNK_TI1 (FROM_RTE_NODE_INSTN_ID ) , INDEX KREW_RTE_NODE_INSTN_LNK_TI2 (TO_RTE_NODE_INSTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_INSTN_ST_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_INSTN_ST_T / CREATE TABLE KREW_RTE_NODE_INSTN_ST_T ( RTE_NODE_INSTN_ST_ID VARCHAR(40) , RTE_NODE_INSTN_ID VARCHAR(40) NOT NULL , KEY_CD VARCHAR(255) NOT NULL , VAL VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RTE_NODE_INSTN_ST_TP1 PRIMARY KEY(RTE_NODE_INSTN_ST_ID) , INDEX KREW_RTE_NODE_INSTN_ST_TI1 (RTE_NODE_INSTN_ID , KEY_CD ) , INDEX KREW_RTE_NODE_INSTN_ST_TI2 (RTE_NODE_INSTN_ID ) , INDEX KREW_RTE_NODE_INSTN_ST_TI3 (KEY_CD , VAL (255)) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_INSTN_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_INSTN_T / CREATE TABLE KREW_RTE_NODE_INSTN_T ( RTE_NODE_INSTN_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(40) NOT NULL , RTE_NODE_ID VARCHAR(40) NOT NULL , BRCH_ID VARCHAR(40) , PROC_RTE_NODE_INSTN_ID VARCHAR(40) , ACTV_IND DECIMAL(1) default 0 NOT NULL , CMPLT_IND DECIMAL(1) default 0 NOT NULL , INIT_IND DECIMAL(1) default 0 NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RTE_NODE_INSTN_TP1 PRIMARY KEY(RTE_NODE_INSTN_ID) , INDEX KREW_RTE_NODE_INSTN_TI1 (DOC_HDR_ID , ACTV_IND , CMPLT_IND ) , INDEX KREW_RTE_NODE_INSTN_TI2 (RTE_NODE_ID ) , INDEX KREW_RTE_NODE_INSTN_TI3 (BRCH_ID ) , INDEX KREW_RTE_NODE_INSTN_TI4 (PROC_RTE_NODE_INSTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_LNK_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_LNK_T / CREATE TABLE KREW_RTE_NODE_LNK_T ( FROM_RTE_NODE_ID VARCHAR(40) , TO_RTE_NODE_ID VARCHAR(40) , CONSTRAINT KREW_RTE_NODE_LNK_TP1 PRIMARY KEY(FROM_RTE_NODE_ID,TO_RTE_NODE_ID) , INDEX KREW_RTE_NODE_LNK_TI1 (FROM_RTE_NODE_ID ) , INDEX KREW_RTE_NODE_LNK_TI2 (TO_RTE_NODE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RTE_NODE_T # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_T / CREATE TABLE KREW_RTE_NODE_T ( RTE_NODE_ID VARCHAR(40) , DOC_TYP_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , TYP VARCHAR(255) NOT NULL , RTE_MTHD_NM VARCHAR(255) , RTE_MTHD_CD VARCHAR(2) , FNL_APRVR_IND DECIMAL(1) , MNDTRY_RTE_IND DECIMAL(1) , ACTVN_TYP VARCHAR(1) , BRCH_PROTO_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 0 , CONTENT_FRAGMENT VARCHAR(4000) , GRP_ID VARCHAR(40) , NEXT_DOC_STAT VARCHAR(64) , CONSTRAINT KREW_RTE_NODE_TP1 PRIMARY KEY(RTE_NODE_ID) , INDEX KREW_RTE_NODE_TI1 (NM , DOC_TYP_ID ) , INDEX KREW_RTE_NODE_TI2 (DOC_TYP_ID , FNL_APRVR_IND ) , INDEX KREW_RTE_NODE_TI3 (BRCH_PROTO_ID ) , INDEX KREW_RTE_NODE_TI4 (DOC_TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_ATTR_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_ATTR_T / CREATE TABLE KREW_RULE_ATTR_T ( RULE_ATTR_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , LBL VARCHAR(2000) NOT NULL , RULE_ATTR_TYP_CD VARCHAR(2000) NOT NULL , DESC_TXT VARCHAR(2000) , CLS_NM VARCHAR(2000) , XML LONGTEXT , VER_NBR DECIMAL(8) default 0 , APPL_ID VARCHAR(255) , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_RULE_ATTR_TP1 PRIMARY KEY(RULE_ATTR_ID) , CONSTRAINT KREW_RULE_ATTR_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KREW_RULE_ATTR_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_EXPR_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_EXPR_T / CREATE TABLE KREW_RULE_EXPR_T ( RULE_EXPR_ID VARCHAR(40) , TYP VARCHAR(256) NOT NULL , RULE_EXPR VARCHAR(4000) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RULE_EXPR_TP1 PRIMARY KEY(RULE_EXPR_ID) , CONSTRAINT KREW_RULE_EXPR_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_EXT_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_EXT_T / CREATE TABLE KREW_RULE_EXT_T ( RULE_EXT_ID VARCHAR(40) , RULE_TMPL_ATTR_ID VARCHAR(40) NOT NULL , RULE_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RULE_EXT_TP1 PRIMARY KEY(RULE_EXT_ID) , INDEX KREW_RULE_EXT_T1 (RULE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_EXT_VAL_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_EXT_VAL_T / CREATE TABLE KREW_RULE_EXT_VAL_T ( RULE_EXT_VAL_ID VARCHAR(40) , RULE_EXT_ID VARCHAR(40) NOT NULL , VAL VARCHAR(2000) NOT NULL , KEY_CD VARCHAR(2000) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RULE_EXT_VAL_TP1 PRIMARY KEY(RULE_EXT_VAL_ID) , INDEX KREW_RULE_EXT_VAL_T1 (RULE_EXT_ID ) , INDEX KREW_RULE_EXT_VAL_T2 (RULE_EXT_VAL_ID , KEY_CD (255)) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_RSP_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_RSP_T / CREATE TABLE KREW_RULE_RSP_T ( RULE_RSP_ID VARCHAR(40) , RSP_ID VARCHAR(40) NOT NULL , RULE_ID VARCHAR(40) NOT NULL , PRIO DECIMAL(5) , ACTN_RQST_CD VARCHAR(2000) , NM VARCHAR(200) , TYP VARCHAR(1) , APPR_PLCY CHAR(1) , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_RULE_RSP_TP1 PRIMARY KEY(RULE_RSP_ID) , CONSTRAINT KREW_RULE_RSP_TC0 UNIQUE (OBJ_ID) , INDEX KREW_RULE_RSP_TI1 (RULE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_T / CREATE TABLE KREW_RULE_T ( RULE_ID VARCHAR(40) , NM VARCHAR(256) , RULE_TMPL_ID VARCHAR(40) , RULE_EXPR_ID VARCHAR(40) , ACTV_IND DECIMAL(1) NOT NULL , RULE_BASE_VAL_DESC VARCHAR(2000) , FRC_ACTN DECIMAL(1) NOT NULL , DOC_TYP_NM VARCHAR(64) NOT NULL , DOC_HDR_ID VARCHAR(40) , TMPL_RULE_IND DECIMAL(1) , FRM_DT DATETIME , TO_DT DATETIME , DACTVN_DT DATETIME , CUR_IND DECIMAL(1) default 0 , RULE_VER_NBR DECIMAL(8) default 0 , DLGN_IND DECIMAL(1) , PREV_VER_RULE_ID VARCHAR(40) , ACTVN_DT DATETIME , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_RULE_TP1 PRIMARY KEY(RULE_ID) , CONSTRAINT KREW_RULE_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_TMPL_ATTR_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_TMPL_ATTR_T / CREATE TABLE KREW_RULE_TMPL_ATTR_T ( RULE_TMPL_ATTR_ID VARCHAR(40) , RULE_TMPL_ID VARCHAR(40) NOT NULL , RULE_ATTR_ID VARCHAR(40) NOT NULL , REQ_IND DECIMAL(1) NOT NULL , ACTV_IND DECIMAL(1) NOT NULL , DSPL_ORD DECIMAL(5) NOT NULL , DFLT_VAL VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_RULE_TMPL_ATTR_TP1 PRIMARY KEY(RULE_TMPL_ATTR_ID) , CONSTRAINT KREW_RULE_TMPL_ATTR_TC0 UNIQUE (OBJ_ID) , INDEX KREW_RULE_TMPL_ATTR_TI1 (RULE_TMPL_ID ) , INDEX KREW_RULE_TMPL_ATTR_TI2 (RULE_ATTR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_TMPL_OPTN_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_TMPL_OPTN_T / CREATE TABLE KREW_RULE_TMPL_OPTN_T ( RULE_TMPL_OPTN_ID VARCHAR(40) , RULE_TMPL_ID VARCHAR(40) , KEY_CD VARCHAR(250) , VAL VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_RULE_TMPL_OPTN_TP1 PRIMARY KEY(RULE_TMPL_OPTN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_RULE_TMPL_T # ----------------------------------------------------------------------- drop table if exists KREW_RULE_TMPL_T / CREATE TABLE KREW_RULE_TMPL_T ( RULE_TMPL_ID VARCHAR(40) , NM VARCHAR(250) NOT NULL , RULE_TMPL_DESC VARCHAR(2000) , DLGN_RULE_TMPL_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 0 , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KREW_RULE_TMPL_TP1 PRIMARY KEY(RULE_TMPL_ID) , CONSTRAINT KREW_RULE_TMPL_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KREW_RULE_TMPL_TI1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_TYP_ATTR_T # ----------------------------------------------------------------------- drop table if exists KREW_TYP_ATTR_T / CREATE TABLE KREW_TYP_ATTR_T ( TYP_ATTR_ID VARCHAR(40) , SEQ_NO DECIMAL(5) NOT NULL , TYP_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(255) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREW_TYP_ATTR_TP1 PRIMARY KEY(TYP_ATTR_ID) , CONSTRAINT KREW_TYP_ATTR_TC1 UNIQUE (TYP_ID, ATTR_DEFN_ID) , INDEX KREW_TYP_ATTR_TI1 (ATTR_DEFN_ID ) , INDEX KREW_TYP_ATTR_TI2 (TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_TYP_T # ----------------------------------------------------------------------- drop table if exists KREW_TYP_T / CREATE TABLE KREW_TYP_T ( TYP_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , SRVC_NM VARCHAR(200) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KREW_TYP_TP1 PRIMARY KEY(TYP_ID) , CONSTRAINT KREW_TYP_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KREW_USR_OPTN_T # ----------------------------------------------------------------------- drop table if exists KREW_USR_OPTN_T / CREATE TABLE KREW_USR_OPTN_T ( PRNCPL_ID VARCHAR(40) , PRSN_OPTN_ID VARCHAR(200) , VAL VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KREW_USR_OPTN_TP1 PRIMARY KEY(PRNCPL_ID,PRSN_OPTN_ID) , INDEX KREW_USR_OPTN_TI1 (PRNCPL_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ADDR_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ADDR_TYP_T / CREATE TABLE KRIM_ADDR_TYP_T ( ADDR_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ADDR_TYP_TP1 PRIMARY KEY(ADDR_TYP_CD) , CONSTRAINT KRIM_ADDR_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ADDR_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_AFLTN_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_AFLTN_TYP_T / CREATE TABLE KRIM_AFLTN_TYP_T ( AFLTN_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , EMP_AFLTN_TYP_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_AFLTN_TYP_TP1 PRIMARY KEY(AFLTN_TYP_CD) , CONSTRAINT KRIM_AFLTN_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_AFLTN_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ATTR_DEFN_T # ----------------------------------------------------------------------- drop table if exists KRIM_ATTR_DEFN_T / CREATE TABLE KRIM_ATTR_DEFN_T ( KIM_ATTR_DEFN_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(100) , LBL VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , NMSPC_CD VARCHAR(40) , CMPNT_NM VARCHAR(100) , CONSTRAINT KRIM_ATTR_DEFN_TP1 PRIMARY KEY(KIM_ATTR_DEFN_ID) , CONSTRAINT KRIM_ATTR_DEFN_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_CTZNSHP_STAT_T # ----------------------------------------------------------------------- drop table if exists KRIM_CTZNSHP_STAT_T / CREATE TABLE KRIM_CTZNSHP_STAT_T ( CTZNSHP_STAT_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_CTZNSHP_STAT_TP1 PRIMARY KEY(CTZNSHP_STAT_CD) , CONSTRAINT KRIM_CTZNSHP_STAT_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_CTZNSHP_STAT_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_DLGN_MBR_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_DLGN_MBR_ATTR_DATA_T / CREATE TABLE KRIM_DLGN_MBR_ATTR_DATA_T ( ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DLGN_MBR_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , CONSTRAINT KRIM_DLGN_MBR_ATTR_DATA_TP1 PRIMARY KEY(ATTR_DATA_ID) , CONSTRAINT KRIM_DLGN_MBR_ATTR_DATA_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_DLGN_MBR_T # ----------------------------------------------------------------------- drop table if exists KRIM_DLGN_MBR_T / CREATE TABLE KRIM_DLGN_MBR_T ( DLGN_MBR_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , DLGN_ID VARCHAR(40) , MBR_ID VARCHAR(40) , MBR_TYP_CD CHAR(1) default 'P' , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , LAST_UPDT_DT DATETIME , ROLE_MBR_ID VARCHAR(40) , CONSTRAINT KRIM_DLGN_MBR_TP1 PRIMARY KEY(DLGN_MBR_ID) , CONSTRAINT KRIM_DLGN_MBR_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_DLGN_T # ----------------------------------------------------------------------- drop table if exists KRIM_DLGN_T / CREATE TABLE KRIM_DLGN_T ( DLGN_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , ROLE_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , KIM_TYP_ID VARCHAR(40) NOT NULL , DLGN_TYP_CD VARCHAR(1) , CONSTRAINT KRIM_DLGN_TP1 PRIMARY KEY(DLGN_ID) , CONSTRAINT KRIM_DLGN_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_EMAIL_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_EMAIL_TYP_T / CREATE TABLE KRIM_EMAIL_TYP_T ( EMAIL_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_EMAIL_TYP_TP1 PRIMARY KEY(EMAIL_TYP_CD) , CONSTRAINT KRIM_EMAIL_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_EMAIL_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_EMP_STAT_T # ----------------------------------------------------------------------- drop table if exists KRIM_EMP_STAT_T / CREATE TABLE KRIM_EMP_STAT_T ( EMP_STAT_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_EMP_STAT_TP1 PRIMARY KEY(EMP_STAT_CD) , CONSTRAINT KRIM_EMP_STAT_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_EMP_STAT_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_EMP_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_EMP_TYP_T / CREATE TABLE KRIM_EMP_TYP_T ( EMP_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_EMP_TYP_TP1 PRIMARY KEY(EMP_TYP_CD) , CONSTRAINT KRIM_EMP_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_EMP_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_ADDR_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ADDR_T / CREATE TABLE KRIM_ENTITY_ADDR_T ( ENTITY_ADDR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , ENT_TYP_CD VARCHAR(40) , ADDR_TYP_CD VARCHAR(40) , ADDR_LINE_1 VARCHAR(45) , ADDR_LINE_2 VARCHAR(45) , ADDR_LINE_3 VARCHAR(45) , CITY VARCHAR(30) , STATE_PVC_CD VARCHAR(2) , POSTAL_CD VARCHAR(20) , POSTAL_CNTRY_CD VARCHAR(2) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , ATTN_LINE VARCHAR(45) , ADDR_FMT VARCHAR(256) , MOD_DT DATETIME , VALID_DT DATETIME , VALID_IND VARCHAR(1) , NOTE_MSG VARCHAR(1024) , CONSTRAINT KRIM_ENTITY_ADDR_TP1 PRIMARY KEY(ENTITY_ADDR_ID) , CONSTRAINT KRIM_ENTITY_ADDR_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_ADDR_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_AFLTN_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_AFLTN_T / CREATE TABLE KRIM_ENTITY_AFLTN_T ( ENTITY_AFLTN_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , AFLTN_TYP_CD VARCHAR(40) , CAMPUS_CD VARCHAR(2) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_AFLTN_TP1 PRIMARY KEY(ENTITY_AFLTN_ID) , CONSTRAINT KRIM_ENTITY_AFLTN_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_AFLTN_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_BIO_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_BIO_T / CREATE TABLE KRIM_ENTITY_BIO_T ( ENTITY_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , BIRTH_DT DATETIME , GNDR_CD VARCHAR(1) NOT NULL , LAST_UPDT_DT DATETIME , DECEASED_DT DATETIME , MARITAL_STATUS VARCHAR(40) , PRIM_LANG_CD VARCHAR(40) , SEC_LANG_CD VARCHAR(40) , BIRTH_CNTRY_CD VARCHAR(2) , BIRTH_STATE_PVC_CD VARCHAR(2) , BIRTH_CITY VARCHAR(30) , GEO_ORIGIN VARCHAR(100) , NOTE_MSG VARCHAR(1024) , GNDR_CHG_CD VARCHAR(20) , CONSTRAINT KRIM_ENTITY_BIO_TP1 PRIMARY KEY(ENTITY_ID) , CONSTRAINT KRIM_ENTITY_BIO_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_CACHE_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_CACHE_T / CREATE TABLE KRIM_ENTITY_CACHE_T ( ENTITY_ID VARCHAR(40) , PRNCPL_ID VARCHAR(40) NOT NULL , PRNCPL_NM VARCHAR(40) , ENTITY_TYP_CD VARCHAR(40) , FIRST_NM VARCHAR(40) , MIDDLE_NM VARCHAR(40) , LAST_NM VARCHAR(40) , PRSN_NM VARCHAR(255) , CAMPUS_CD VARCHAR(40) , PRMRY_DEPT_CD VARCHAR(40) , EMP_ID VARCHAR(40) , LAST_UPDT_TS DATETIME , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KRIM_ENTITY_CACHE_TP1 PRIMARY KEY(ENTITY_ID) , CONSTRAINT KRIM_ENTITY_CACHE_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ENTITY_CACHE_TC1 UNIQUE (PRNCPL_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_CTZNSHP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_CTZNSHP_T / CREATE TABLE KRIM_ENTITY_CTZNSHP_T ( ENTITY_CTZNSHP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , POSTAL_CNTRY_CD VARCHAR(2) , CTZNSHP_STAT_CD VARCHAR(40) , STRT_DT DATETIME , END_DT DATETIME , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_CTZNSHP_TP1 PRIMARY KEY(ENTITY_CTZNSHP_ID) , CONSTRAINT KRIM_ENTITY_CTZNSHP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_EMAIL_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EMAIL_T / CREATE TABLE KRIM_ENTITY_EMAIL_T ( ENTITY_EMAIL_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , ENT_TYP_CD VARCHAR(40) , EMAIL_TYP_CD VARCHAR(40) , EMAIL_ADDR VARCHAR(200) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_EMAIL_TP1 PRIMARY KEY(ENTITY_EMAIL_ID) , CONSTRAINT KRIM_ENTITY_EMAIL_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_EMAIL_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_EMP_INFO_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EMP_INFO_T / CREATE TABLE KRIM_ENTITY_EMP_INFO_T ( ENTITY_EMP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , ENTITY_AFLTN_ID VARCHAR(40) , EMP_STAT_CD VARCHAR(40) , EMP_TYP_CD VARCHAR(40) , BASE_SLRY_AMT DECIMAL(15,2) , PRMRY_IND VARCHAR(1) , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , PRMRY_DEPT_CD VARCHAR(40) , EMP_ID VARCHAR(40) , EMP_REC_ID VARCHAR(40) , CONSTRAINT KRIM_ENTITY_EMP_INFO_TP1 PRIMARY KEY(ENTITY_EMP_ID) , CONSTRAINT KRIM_ENTITY_EMP_INFO_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_EMP_INFO_TI1 (ENTITY_ID ) , INDEX KRIM_ENTITY_EMP_INFO_TI2 (ENTITY_AFLTN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_ENT_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ENT_TYP_T / CREATE TABLE KRIM_ENTITY_ENT_TYP_T ( ENT_TYP_CD VARCHAR(40) , ENTITY_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_ENT_TYP_TP1 PRIMARY KEY(ENT_TYP_CD,ENTITY_ID) , CONSTRAINT KRIM_ENTITY_ENT_TYP_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_ENT_TYP_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_ETHNIC_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ETHNIC_T / CREATE TABLE KRIM_ENTITY_ETHNIC_T ( ID VARCHAR(40) , ENTITY_ID VARCHAR(40) , ETHNCTY_CD VARCHAR(40) , SUB_ETHNCTY_CD VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KRIM_ENTITY_ETHNIC_TP1 PRIMARY KEY(ID) , CONSTRAINT KRIM_ENTITY_ETHNIC_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_EXT_ID_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EXT_ID_T / CREATE TABLE KRIM_ENTITY_EXT_ID_T ( ENTITY_EXT_ID_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , EXT_ID_TYP_CD VARCHAR(40) , EXT_ID VARCHAR(100) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_EXT_ID_TP1 PRIMARY KEY(ENTITY_EXT_ID_ID) , CONSTRAINT KRIM_ENTITY_EXT_ID_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_EXT_ID_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_NM_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_NM_T / CREATE TABLE KRIM_ENTITY_NM_T ( ENTITY_NM_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , NM_TYP_CD VARCHAR(40) , FIRST_NM VARCHAR(40) , MIDDLE_NM VARCHAR(40) , LAST_NM VARCHAR(80) , SUFFIX_NM VARCHAR(20) , PREFIX_NM VARCHAR(20) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , TITLE_NM VARCHAR(20) , NOTE_MSG VARCHAR(1024) , NM_CHNG_DT DATETIME , CONSTRAINT KRIM_ENTITY_NM_TP1 PRIMARY KEY(ENTITY_NM_ID) , CONSTRAINT KRIM_ENTITY_NM_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_NM_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_PHONE_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_PHONE_T / CREATE TABLE KRIM_ENTITY_PHONE_T ( ENTITY_PHONE_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_ID VARCHAR(40) , ENT_TYP_CD VARCHAR(40) , PHONE_TYP_CD VARCHAR(40) , PHONE_NBR VARCHAR(20) , PHONE_EXTN_NBR VARCHAR(8) , POSTAL_CNTRY_CD VARCHAR(2) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_PHONE_TP1 PRIMARY KEY(ENTITY_PHONE_ID) , CONSTRAINT KRIM_ENTITY_PHONE_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ENTITY_PHONE_TI1 (ENTITY_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_PRIV_PREF_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_PRIV_PREF_T / CREATE TABLE KRIM_ENTITY_PRIV_PREF_T ( ENTITY_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , SUPPRESS_NM_IND VARCHAR(1) default 'N' , SUPPRESS_EMAIL_IND VARCHAR(1) default 'Y' , SUPPRESS_ADDR_IND VARCHAR(1) default 'Y' , SUPPRESS_PHONE_IND VARCHAR(1) default 'Y' , SUPPRESS_PRSNL_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_PRIV_PREF_TP1 PRIMARY KEY(ENTITY_ID) , CONSTRAINT KRIM_ENTITY_PRIV_PREF_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_RESIDENCY_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_RESIDENCY_T / CREATE TABLE KRIM_ENTITY_RESIDENCY_T ( ID VARCHAR(40) , ENTITY_ID VARCHAR(40) , DETERMINATION_METHOD VARCHAR(40) , IN_STATE VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KRIM_ENTITY_RESIDENCY_TP1 PRIMARY KEY(ID) , CONSTRAINT KRIM_ENTITY_RESIDENCY_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_T / CREATE TABLE KRIM_ENTITY_T ( ENTITY_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENTITY_TP1 PRIMARY KEY(ENTITY_ID) , CONSTRAINT KRIM_ENTITY_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENTITY_VISA_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_VISA_T / CREATE TABLE KRIM_ENTITY_VISA_T ( ID VARCHAR(40) , ENTITY_ID VARCHAR(40) , VISA_TYPE_KEY VARCHAR(40) , VISA_ENTRY VARCHAR(40) , VISA_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , CONSTRAINT KRIM_ENTITY_VISA_TP1 PRIMARY KEY(ID) , CONSTRAINT KRIM_ENTITY_VISA_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENT_NM_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENT_NM_TYP_T / CREATE TABLE KRIM_ENT_NM_TYP_T ( ENT_NM_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ENT_NM_TYP_TP1 PRIMARY KEY(ENT_NM_TYP_CD) , CONSTRAINT KRIM_ENT_NM_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ENT_NM_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ENT_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ENT_TYP_T / CREATE TABLE KRIM_ENT_TYP_T ( ENT_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , DISPLAY_SORT_CD VARCHAR(2) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_ENT_TYP_TP1 PRIMARY KEY(ENT_TYP_CD) , CONSTRAINT KRIM_ENT_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ENT_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_EXT_ID_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_EXT_ID_TYP_T / CREATE TABLE KRIM_EXT_ID_TYP_T ( EXT_ID_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(40) , ENCR_REQ_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_EXT_ID_TYP_TP1 PRIMARY KEY(EXT_ID_TYP_CD) , CONSTRAINT KRIM_EXT_ID_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_EXT_ID_TYP_TC1 UNIQUE (NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_GRP_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_ATTR_DATA_T / CREATE TABLE KRIM_GRP_ATTR_DATA_T ( ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , GRP_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , CONSTRAINT KRIM_GRP_ATTR_DATA_TP1 PRIMARY KEY(ATTR_DATA_ID) , CONSTRAINT KRIM_GRP_ATTR_DATA_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_GRP_DOCUMENT_T # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_DOCUMENT_T / CREATE TABLE KRIM_GRP_DOCUMENT_T ( FDOC_NBR VARCHAR(14) , GRP_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , KIM_TYP_ID VARCHAR(40) NOT NULL , GRP_NMSPC VARCHAR(100) NOT NULL , GRP_NM VARCHAR(400) , GRP_DESC VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_GRP_DOCUMENT_TP1 PRIMARY KEY(FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_GRP_MBR_T # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_MBR_T / CREATE TABLE KRIM_GRP_MBR_T ( GRP_MBR_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , GRP_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) NOT NULL , MBR_TYP_CD CHAR(1) default 'P' NOT NULL , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_GRP_MBR_TP1 PRIMARY KEY(GRP_MBR_ID) , CONSTRAINT KRIM_GRP_MBR_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_GRP_MBR_TI1 (MBR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_GRP_T # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_T / CREATE TABLE KRIM_GRP_T ( GRP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , GRP_NM VARCHAR(80) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , GRP_DESC VARCHAR(4000) , KIM_TYP_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_GRP_TP1 PRIMARY KEY(GRP_ID) , CONSTRAINT KRIM_GRP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_GRP_TC1 UNIQUE (GRP_NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PERM_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_ATTR_DATA_T / CREATE TABLE KRIM_PERM_ATTR_DATA_T ( ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PERM_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , CONSTRAINT KRIM_PERM_ATTR_DATA_TP1 PRIMARY KEY(ATTR_DATA_ID) , CONSTRAINT KRIM_PERM_ATTR_DATA_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_PERM_ATTR_DATA_TI1 (PERM_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PERM_T # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_T / CREATE TABLE KRIM_PERM_T ( PERM_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PERM_TMPL_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PERM_TP1 PRIMARY KEY(PERM_ID) , CONSTRAINT KRIM_PERM_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_PERM_T_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KRIM_PERM_TI1 (PERM_TMPL_ID ) , INDEX KRIM_PERM_TI2 (PERM_TMPL_ID , ACTV_IND ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PERM_TMPL_T # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_TMPL_T / CREATE TABLE KRIM_PERM_TMPL_T ( PERM_TMPL_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(400) , KIM_TYP_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PERM_TMPL_TP1 PRIMARY KEY(PERM_TMPL_ID) , CONSTRAINT KRIM_PERM_TMPL_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_PERM_TMPL_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KRIM_PERM_TMPL_TI1 (NMSPC_CD , NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PERSON_DOCUMENT_T # ----------------------------------------------------------------------- drop table if exists KRIM_PERSON_DOCUMENT_T / CREATE TABLE KRIM_PERSON_DOCUMENT_T ( FDOC_NBR VARCHAR(14) , ENTITY_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , PRNCPL_NM VARCHAR(100) NOT NULL , PRNCPL_PSWD VARCHAR(400) , UNIV_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PERSON_DOCUMENT_TP1 PRIMARY KEY(FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PHONE_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_PHONE_TYP_T / CREATE TABLE KRIM_PHONE_TYP_T ( PHONE_TYP_CD VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PHONE_TYP_NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , DISPLAY_SORT_CD VARCHAR(2) , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_PHONE_TYP_TP1 PRIMARY KEY(PHONE_TYP_CD) , CONSTRAINT KRIM_PHONE_TYP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_PHONE_TYP_TC1 UNIQUE (PHONE_TYP_NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ADDR_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ADDR_MT / CREATE TABLE KRIM_PND_ADDR_MT ( FDOC_NBR VARCHAR(14) , ADDR_TYP_CD VARCHAR(40) , ADDR_LINE_1 VARCHAR(50) , ADDR_LINE_2 VARCHAR(50) , ADDR_LINE_3 VARCHAR(50) , CITY VARCHAR(30) , STATE_PVC_CD VARCHAR(2) , POSTAL_CD VARCHAR(20) , POSTAL_CNTRY_CD VARCHAR(2) , DISPLAY_SORT_CD VARCHAR(2) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , ENTITY_ADDR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , EDIT_FLAG VARCHAR(1) default 'N' , ATTN_LINE VARCHAR(45) , ADDR_FMT VARCHAR(256) , MOD_DT DATETIME , VALID_DT DATETIME , VALID_IND VARCHAR(1) , NOTE_MSG VARCHAR(1024) , CONSTRAINT KRIM_PND_ADDR_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_ADDR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_AFLTN_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_AFLTN_MT / CREATE TABLE KRIM_PND_AFLTN_MT ( FDOC_NBR VARCHAR(14) , ENTITY_AFLTN_ID VARCHAR(40) , AFLTN_TYP_CD VARCHAR(40) , CAMPUS_CD VARCHAR(2) , EDIT_FLAG VARCHAR(1) default 'N' , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , CONSTRAINT KRIM_PND_AFLTN_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_AFLTN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_CTZNSHP_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_CTZNSHP_MT / CREATE TABLE KRIM_PND_CTZNSHP_MT ( FDOC_NBR VARCHAR(14) , ENTITY_CTZNSHP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , POSTAL_CNTRY_CD VARCHAR(2) , CTZNSHP_STAT_CD VARCHAR(40) , STRT_DT DATETIME , END_DT DATETIME , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_CTZNSHP_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_CTZNSHP_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_DLGN_MBR_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_DLGN_MBR_ATTR_DATA_T / CREATE TABLE KRIM_PND_DLGN_MBR_ATTR_DATA_T ( FDOC_NBR VARCHAR(14) , ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DLGN_MBR_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_DLGN_MBR_ATTR_DATAP1 PRIMARY KEY(FDOC_NBR,ATTR_DATA_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_DLGN_MBR_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_DLGN_MBR_T / CREATE TABLE KRIM_PND_DLGN_MBR_T ( FDOC_NBR VARCHAR(14) , DLGN_MBR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DLGN_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) , MBR_NM VARCHAR(40) , MBR_TYP_CD VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , ROLE_MBR_ID VARCHAR(40) , CONSTRAINT KRIM_PND_DLGN_MBR_TP1 PRIMARY KEY(FDOC_NBR,DLGN_MBR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_DLGN_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_DLGN_T / CREATE TABLE KRIM_PND_DLGN_T ( FDOC_NBR VARCHAR(14) , DLGN_ID VARCHAR(40) , ROLE_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , KIM_TYP_ID VARCHAR(40) , DLGN_TYP_CD VARCHAR(100) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PND_DLGN_TP1 PRIMARY KEY(FDOC_NBR,DLGN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_EMAIL_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_EMAIL_MT / CREATE TABLE KRIM_PND_EMAIL_MT ( FDOC_NBR VARCHAR(14) , ENTITY_EMAIL_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENT_TYP_CD VARCHAR(40) , EMAIL_TYP_CD VARCHAR(40) , EMAIL_ADDR VARCHAR(200) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_EMAIL_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_EMAIL_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_EMP_INFO_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_EMP_INFO_MT / CREATE TABLE KRIM_PND_EMP_INFO_MT ( FDOC_NBR VARCHAR(14) , PRMRY_DEPT_CD VARCHAR(40) , ENTITY_EMP_ID VARCHAR(40) , EMP_ID VARCHAR(40) , EMP_REC_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENTITY_AFLTN_ID VARCHAR(40) , EMP_STAT_CD VARCHAR(40) , EMP_TYP_CD VARCHAR(40) , BASE_SLRY_AMT DECIMAL(15,2) , PRMRY_IND VARCHAR(1) , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_EMP_INFO_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_EMP_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_GRP_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_GRP_ATTR_DATA_T / CREATE TABLE KRIM_PND_GRP_ATTR_DATA_T ( FDOC_NBR VARCHAR(14) , ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , GRP_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_GRP_ATTR_DATA_TP1 PRIMARY KEY(FDOC_NBR,ATTR_DATA_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_GRP_MBR_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_GRP_MBR_T / CREATE TABLE KRIM_PND_GRP_MBR_T ( FDOC_NBR VARCHAR(14) , GRP_MBR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , GRP_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) , MBR_NM VARCHAR(100) , MBR_TYP_CD VARCHAR(40) NOT NULL , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , CONSTRAINT KRIM_PND_GRP_MBR_TP1 PRIMARY KEY(FDOC_NBR,GRP_MBR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_GRP_PRNCPL_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_GRP_PRNCPL_MT / CREATE TABLE KRIM_PND_GRP_PRNCPL_MT ( GRP_MBR_ID VARCHAR(40) , FDOC_NBR VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , GRP_ID VARCHAR(40) NOT NULL , PRNCPL_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , GRP_NM VARCHAR(80) NOT NULL , GRP_TYPE VARCHAR(80) , KIM_TYP_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_GRP_PRNCPL_MTP1 PRIMARY KEY(GRP_MBR_ID,FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_NM_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_NM_MT / CREATE TABLE KRIM_PND_NM_MT ( FDOC_NBR VARCHAR(14) , ENTITY_NM_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM_TYP_CD VARCHAR(40) , FIRST_NM VARCHAR(40) , MIDDLE_NM VARCHAR(40) , LAST_NM VARCHAR(80) , SUFFIX_NM VARCHAR(20) , PREFIX_NM VARCHAR(20) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , TITLE_NM VARCHAR(20) , NOTE_MSG VARCHAR(1024) , NM_CHNG_DT DATETIME , CONSTRAINT KRIM_PND_NM_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_NM_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_PHONE_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_PHONE_MT / CREATE TABLE KRIM_PND_PHONE_MT ( FDOC_NBR VARCHAR(14) , ENTITY_PHONE_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ENT_TYP_CD VARCHAR(40) , PHONE_TYP_CD VARCHAR(40) , PHONE_NBR VARCHAR(20) , PHONE_EXTN_NBR VARCHAR(8) , POSTAL_CNTRY_CD VARCHAR(2) , DFLT_IND VARCHAR(1) default 'N' , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_PHONE_MTP1 PRIMARY KEY(FDOC_NBR,ENTITY_PHONE_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_PRIV_PREF_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_PRIV_PREF_MT / CREATE TABLE KRIM_PND_PRIV_PREF_MT ( FDOC_NBR VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , SUPPRESS_NM_IND VARCHAR(1) default 'N' , SUPPRESS_EMAIL_IND VARCHAR(1) default 'Y' , SUPPRESS_ADDR_IND VARCHAR(1) default 'Y' , SUPPRESS_PHONE_IND VARCHAR(1) default 'Y' , SUPPRESS_PRSNL_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_PRIV_PREF_MTP1 PRIMARY KEY(FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_MBR_ATTR_DATA_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_MBR_ATTR_DATA_MT / CREATE TABLE KRIM_PND_ROLE_MBR_ATTR_DATA_MT ( FDOC_NBR VARCHAR(14) , ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_MBR_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_ROLE_MBR_ATTR_DATAP1 PRIMARY KEY(FDOC_NBR,ATTR_DATA_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_MBR_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_MBR_MT / CREATE TABLE KRIM_PND_ROLE_MBR_MT ( FDOC_NBR VARCHAR(14) , ROLE_MBR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) , MBR_TYP_CD VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_ROLE_MBR_MTP1 PRIMARY KEY(FDOC_NBR,ROLE_MBR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_MT / CREATE TABLE KRIM_PND_ROLE_MT ( FDOC_NBR VARCHAR(14) , ROLE_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_NM VARCHAR(100) NOT NULL , KIM_TYP_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , NMSPC_CD VARCHAR(40) , EDIT_FLAG VARCHAR(1) default 'N' , CONSTRAINT KRIM_PND_ROLE_MTP1 PRIMARY KEY(FDOC_NBR,ROLE_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_PERM_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_PERM_T / CREATE TABLE KRIM_PND_ROLE_PERM_T ( FDOC_NBR VARCHAR(14) , ROLE_PERM_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_ID VARCHAR(40) NOT NULL , PERM_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PND_ROLE_PERM_TP1 PRIMARY KEY(FDOC_NBR,ROLE_PERM_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_RSP_ACTN_MT # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_RSP_ACTN_MT / CREATE TABLE KRIM_PND_ROLE_RSP_ACTN_MT ( ROLE_RSP_ACTN_ID VARCHAR(40) , FDOC_NBR VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTN_TYP_CD VARCHAR(40) , PRIORITY_NBR DECIMAL(3) , ACTN_PLCY_CD VARCHAR(40) , ROLE_MBR_ID VARCHAR(40) , ROLE_RSP_ID VARCHAR(40) , EDIT_FLAG VARCHAR(1) default 'N' , FRC_ACTN VARCHAR(1) , CONSTRAINT KRIM_PND_ROLE_RSP_ACTN_MTP1 PRIMARY KEY(ROLE_RSP_ACTN_ID,FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PND_ROLE_RSP_T # ----------------------------------------------------------------------- drop table if exists KRIM_PND_ROLE_RSP_T / CREATE TABLE KRIM_PND_ROLE_RSP_T ( FDOC_NBR VARCHAR(14) , ROLE_RSP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_ID VARCHAR(40) NOT NULL , RSP_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_PND_ROLE_RSP_TP1 PRIMARY KEY(FDOC_NBR,ROLE_RSP_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_PRNCPL_T # ----------------------------------------------------------------------- drop table if exists KRIM_PRNCPL_T / CREATE TABLE KRIM_PRNCPL_T ( PRNCPL_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PRNCPL_NM VARCHAR(100) NOT NULL , ENTITY_ID VARCHAR(40) , PRNCPL_PSWD VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_PRNCPL_TP1 PRIMARY KEY(PRNCPL_ID) , CONSTRAINT KRIM_PRNCPL_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_PRNCPL_TC1 UNIQUE (PRNCPL_NM) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_DOCUMENT_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_DOCUMENT_T / CREATE TABLE KRIM_ROLE_DOCUMENT_T ( FDOC_NBR VARCHAR(14) , ROLE_ID VARCHAR(40) NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_TYP_ID VARCHAR(40) NOT NULL , ROLE_NMSPC VARCHAR(100) NOT NULL , ROLE_NM VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , DESC_TXT VARCHAR(4000) , CONSTRAINT KRIM_ROLE_DOCUMENT_TP1 PRIMARY KEY(FDOC_NBR) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_MBR_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_MBR_ATTR_DATA_T / CREATE TABLE KRIM_ROLE_MBR_ATTR_DATA_T ( ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_MBR_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , CONSTRAINT KRIM_ROLE_MBR_ATTR_DATA_TP1 PRIMARY KEY(ATTR_DATA_ID) , CONSTRAINT KRIM_ROLE_MBR_ATTR_DATA_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ROLE_MBR_ATTR_DATA_TI1 (ROLE_MBR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_MBR_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_MBR_T / CREATE TABLE KRIM_ROLE_MBR_T ( ROLE_MBR_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 1 NOT NULL , OBJ_ID VARCHAR(36) NOT NULL , ROLE_ID VARCHAR(40) NOT NULL , MBR_ID VARCHAR(40) NOT NULL , MBR_TYP_CD CHAR(1) default 'P' NOT NULL , ACTV_FRM_DT DATETIME , ACTV_TO_DT DATETIME , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ROLE_MBR_TP1 PRIMARY KEY(ROLE_MBR_ID) , CONSTRAINT KRIM_ROLE_MBR_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ROLE_MBR_TI1 (MBR_ID ) , INDEX KRIM_ROLE_MBR_TI2 (ROLE_ID , MBR_ID , MBR_TYP_CD ) , INDEX KRIM_ROLE_MBR_TI3 (MBR_ID , MBR_TYP_CD ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_PERM_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_PERM_T / CREATE TABLE KRIM_ROLE_PERM_T ( ROLE_PERM_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_ID VARCHAR(40) NOT NULL , PERM_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_ROLE_PERM_TP1 PRIMARY KEY(ROLE_PERM_ID) , CONSTRAINT KRIM_ROLE_PERM_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ROLE_PERM_TI1 (PERM_ID ) , INDEX KRIM_ROLE_PERM_TI2 (PERM_ID , ACTV_IND ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_RSP_ACTN_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_RSP_ACTN_T / CREATE TABLE KRIM_ROLE_RSP_ACTN_T ( ROLE_RSP_ACTN_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTN_TYP_CD VARCHAR(40) , PRIORITY_NBR DECIMAL(3) , ACTN_PLCY_CD VARCHAR(40) , ROLE_MBR_ID VARCHAR(40) , ROLE_RSP_ID VARCHAR(40) , FRC_ACTN VARCHAR(1) default 'N' , CONSTRAINT KRIM_ROLE_RSP_ACTN_TP1 PRIMARY KEY(ROLE_RSP_ACTN_ID) , CONSTRAINT KRIM_ROLE_RSP_ACTN_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ROLE_RSP_ACTN_TC1 UNIQUE (ROLE_RSP_ID, ROLE_MBR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_RSP_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_RSP_T / CREATE TABLE KRIM_ROLE_RSP_T ( ROLE_RSP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_ID VARCHAR(40) , RSP_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_ROLE_RSP_TP1 PRIMARY KEY(ROLE_RSP_ID) , CONSTRAINT KRIM_ROLE_RSP_TC0 UNIQUE (OBJ_ID) , INDEX KRIM_ROLE_RSP_TI1 (RSP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_ROLE_T # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_T / CREATE TABLE KRIM_ROLE_T ( ROLE_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ROLE_NM VARCHAR(80) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , DESC_TXT VARCHAR(4000) , KIM_TYP_ID VARCHAR(40) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' , LAST_UPDT_DT DATETIME , CONSTRAINT KRIM_ROLE_TP1 PRIMARY KEY(ROLE_ID) , CONSTRAINT KRIM_ROLE_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_ROLE_TC1 UNIQUE (ROLE_NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_RSP_ATTR_DATA_T # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_ATTR_DATA_T / CREATE TABLE KRIM_RSP_ATTR_DATA_T ( ATTR_DATA_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , RSP_ID VARCHAR(40) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ATTR_VAL VARCHAR(400) , CONSTRAINT KRIM_RSP_ATTR_DATA_TP1 PRIMARY KEY(ATTR_DATA_ID) , CONSTRAINT KRIM_RSP_ATTR_DATA_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_RSP_T # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_T / CREATE TABLE KRIM_RSP_T ( RSP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , RSP_TMPL_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_RSP_TP1 PRIMARY KEY(RSP_ID) , CONSTRAINT KRIM_RSP_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_RSP_T_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_RSP_TMPL_T # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_TMPL_T / CREATE TABLE KRIM_RSP_TMPL_T ( RSP_TMPL_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , KIM_TYP_ID VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(400) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_RSP_TMPL_TP1 PRIMARY KEY(RSP_TMPL_ID) , CONSTRAINT KRIM_RSP_TMPL_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_RSP_TMPL_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_TYP_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRIM_TYP_ATTR_T / CREATE TABLE KRIM_TYP_ATTR_T ( KIM_TYP_ATTR_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , SORT_CD VARCHAR(2) , KIM_TYP_ID VARCHAR(40) NOT NULL , KIM_ATTR_DEFN_ID VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' , CONSTRAINT KRIM_TYP_ATTR_TP1 PRIMARY KEY(KIM_TYP_ATTR_ID) , CONSTRAINT KRIM_TYP_ATTR_TC0 UNIQUE (OBJ_ID) , CONSTRAINT KRIM_TYP_ATTR_TC1 UNIQUE (SORT_CD, KIM_TYP_ID, KIM_ATTR_DEFN_ID, ACTV_IND) , INDEX KRIM_TYP_ATTRIBUTE_TI1 (KIM_TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_TYP_T # ----------------------------------------------------------------------- drop table if exists KRIM_TYP_T / CREATE TABLE KRIM_TYP_T ( KIM_TYP_ID VARCHAR(40) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , NM VARCHAR(100) , SRVC_NM VARCHAR(200) , ACTV_IND VARCHAR(1) default 'Y' , NMSPC_CD VARCHAR(40) , CONSTRAINT KRIM_TYP_TP1 PRIMARY KEY(KIM_TYP_ID) , CONSTRAINT KRIM_TYP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_CMP_T # ----------------------------------------------------------------------- drop table if exists KRLC_CMP_T / CREATE TABLE KRLC_CMP_T ( CAMPUS_CD VARCHAR(2) , CAMPUS_NM VARCHAR(250) , CAMPUS_SHRT_NM VARCHAR(250) , CAMPUS_TYP_CD VARCHAR(1) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTV_IND VARCHAR(1) default 'Y' NOT NULL , CONSTRAINT KRLC_CMP_TP1 PRIMARY KEY(CAMPUS_CD) , CONSTRAINT KRNS_CAMPUS_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_CMP_TYP_T # ----------------------------------------------------------------------- drop table if exists KRLC_CMP_TYP_T / CREATE TABLE KRLC_CMP_TYP_T ( CAMPUS_TYP_CD VARCHAR(1) , CMP_TYP_NM VARCHAR(250) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , ACTV_IND VARCHAR(1) default 'Y' NOT NULL , CONSTRAINT KRLC_CMP_TYP_TP1 PRIMARY KEY(CAMPUS_TYP_CD) , CONSTRAINT KRNS_CMP_TYP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_CNTRY_T # ----------------------------------------------------------------------- drop table if exists KRLC_CNTRY_T / CREATE TABLE KRLC_CNTRY_T ( POSTAL_CNTRY_CD VARCHAR(2) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , POSTAL_CNTRY_NM VARCHAR(255) , PSTL_CNTRY_RSTRC_IND VARCHAR(1) NOT NULL , ACTV_IND VARCHAR(1) default 'Y' NOT NULL , ALT_POSTAL_CNTRY_CD VARCHAR(3) , CONSTRAINT KRLC_CNTRY_TP1 PRIMARY KEY(POSTAL_CNTRY_CD) , CONSTRAINT KR_COUNTRY_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_CNTY_T # ----------------------------------------------------------------------- drop table if exists KRLC_CNTY_T / CREATE TABLE KRLC_CNTY_T ( COUNTY_CD VARCHAR(10) , STATE_CD VARCHAR(2) , POSTAL_CNTRY_CD VARCHAR(2) default 'US' , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , COUNTY_NM VARCHAR(100) , ACTV_IND VARCHAR(1) , CONSTRAINT KRLC_CNTY_TP1 PRIMARY KEY(COUNTY_CD,STATE_CD,POSTAL_CNTRY_CD) , CONSTRAINT KR_COUNTY_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_PSTL_CD_T # ----------------------------------------------------------------------- drop table if exists KRLC_PSTL_CD_T / CREATE TABLE KRLC_PSTL_CD_T ( POSTAL_CD VARCHAR(20) , POSTAL_CNTRY_CD VARCHAR(2) default 'US' , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , POSTAL_STATE_CD VARCHAR(2) , COUNTY_CD VARCHAR(10) , POSTAL_CITY_NM VARCHAR(30) , ACTV_IND VARCHAR(1) default 'Y' NOT NULL , CONSTRAINT KRLC_PSTL_CD_TP1 PRIMARY KEY(POSTAL_CD,POSTAL_CNTRY_CD) , CONSTRAINT KR_POSTAL_CODE_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRLC_ST_T # ----------------------------------------------------------------------- drop table if exists KRLC_ST_T / CREATE TABLE KRLC_ST_T ( POSTAL_STATE_CD VARCHAR(2) , POSTAL_CNTRY_CD VARCHAR(2) default 'US' , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , POSTAL_STATE_NM VARCHAR(40) , ACTV_IND VARCHAR(1) default 'Y' NOT NULL , CONSTRAINT KRLC_ST_TP1 PRIMARY KEY(POSTAL_STATE_CD,POSTAL_CNTRY_CD) , CONSTRAINT KR_STATE_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_ACTN_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_ACTN_ATTR_T / CREATE TABLE KRMS_ACTN_ATTR_T ( ACTN_ATTR_DATA_ID VARCHAR(40) , ACTN_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_ACTN_ATTR_TP1 PRIMARY KEY(ACTN_ATTR_DATA_ID) , INDEX KRMS_ACTN_ATTR_TI1 (ACTN_ID ) , INDEX KRMS_ACTN_ATTR_TI2 (ATTR_DEFN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_ACTN_T # ----------------------------------------------------------------------- drop table if exists KRMS_ACTN_T / CREATE TABLE KRMS_ACTN_T ( ACTN_ID VARCHAR(40) , NM VARCHAR(40) , DESC_TXT VARCHAR(4000) , TYP_ID VARCHAR(40) NOT NULL , RULE_ID VARCHAR(40) , SEQ_NO DECIMAL(5) , VER_NBR DECIMAL(8) default 0 NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , CONSTRAINT KRMS_ACTN_TP1 PRIMARY KEY(ACTN_ID) , CONSTRAINT KRMS_ACTN_TC2 UNIQUE (ACTN_ID, RULE_ID, SEQ_NO) , INDEX KRMS_ACTN_TI1 (TYP_ID ) , INDEX KRMS_ACTN_TI2 (RULE_ID ) , INDEX KRMS_ACTN_TI3 (RULE_ID , SEQ_NO ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_AGENDA_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_ATTR_T / CREATE TABLE KRMS_AGENDA_ATTR_T ( AGENDA_ATTR_ID VARCHAR(40) , AGENDA_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , ATTR_DEFN_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_AGENDA_ATTR_TP1 PRIMARY KEY(AGENDA_ATTR_ID) , INDEX KRMS_AGENDA_ATTR_T12 (ATTR_DEFN_ID ) , INDEX KRMS_AGENDA_ATTR_TI1 (AGENDA_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_AGENDA_ITM_T # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_ITM_T / CREATE TABLE KRMS_AGENDA_ITM_T ( AGENDA_ITM_ID VARCHAR(40) , RULE_ID VARCHAR(40) , SUB_AGENDA_ID VARCHAR(40) , AGENDA_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , WHEN_TRUE VARCHAR(40) , WHEN_FALSE VARCHAR(40) , ALWAYS VARCHAR(40) , CONSTRAINT KRMS_AGENDA_ITM_TP1 PRIMARY KEY(AGENDA_ITM_ID) , INDEX KRMS_AGENDA_ITM_TI1 (RULE_ID ) , INDEX KRMS_AGENDA_ITM_TI2 (AGENDA_ID ) , INDEX KRMS_AGENDA_ITM_TI3 (SUB_AGENDA_ID ) , INDEX KRMS_AGENDA_ITM_TI4 (WHEN_TRUE ) , INDEX KRMS_AGENDA_ITM_TI5 (WHEN_FALSE ) , INDEX KRMS_AGENDA_ITM_TI6 (ALWAYS ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_AGENDA_T # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_T / CREATE TABLE KRMS_AGENDA_T ( AGENDA_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , CNTXT_ID VARCHAR(40) NOT NULL , INIT_AGENDA_ITM_ID VARCHAR(40) , TYP_ID VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_AGENDA_TP1 PRIMARY KEY(AGENDA_ID) , CONSTRAINT KRMS_AGENDA_TC1 UNIQUE (NM, CNTXT_ID) , INDEX KRMS_AGENDA_TI1 (CNTXT_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_ATTR_DEFN_T # ----------------------------------------------------------------------- drop table if exists KRMS_ATTR_DEFN_T / CREATE TABLE KRMS_ATTR_DEFN_T ( ATTR_DEFN_ID VARCHAR(255) , NM VARCHAR(100) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , LBL VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , CMPNT_NM VARCHAR(100) , VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(255) default 'null' , CONSTRAINT KRMS_ATTR_DEFN_TP1 PRIMARY KEY(ATTR_DEFN_ID) , CONSTRAINT KRMS_ATTR_DEFN_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CMPND_PROP_PROPS_T # ----------------------------------------------------------------------- drop table if exists KRMS_CMPND_PROP_PROPS_T / CREATE TABLE KRMS_CMPND_PROP_PROPS_T ( CMPND_PROP_ID VARCHAR(40) , PROP_ID VARCHAR(40) , CONSTRAINT KRMS_CMPND_PROP_PROPS_TP1 PRIMARY KEY(CMPND_PROP_ID,PROP_ID) , INDEX KRMS_CMPND_PROP_PROPS_FK2 (CMPND_PROP_ID ) , INDEX KRMS_CMPND_PROP_PROPS_TI1 (PROP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_ATTR_T / CREATE TABLE KRMS_CNTXT_ATTR_T ( CNTXT_ATTR_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , ATTR_DEFN_ID VARCHAR(40) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_CNTXT_ATTR_TP1 PRIMARY KEY(CNTXT_ATTR_ID) , INDEX KRMS_CNTXT_ATTR_TI1 (CNTXT_ID ) , INDEX KRMS_CNTXT_ATTR_TI2 (ATTR_DEFN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_T / CREATE TABLE KRMS_CNTXT_T ( CNTXT_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , TYP_ID VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(255) default 'null' , CONSTRAINT KRMS_CNTXT_TP1 PRIMARY KEY(CNTXT_ID) , CONSTRAINT KRMS_CNTXT_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_ACTN_TYP_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_ACTN_TYP_T / CREATE TABLE KRMS_CNTXT_VLD_ACTN_TYP_T ( CNTXT_VLD_ACTN_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , ACTN_TYP_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_CNTXT_VLD_ACTN_TYP_TP1 PRIMARY KEY(CNTXT_VLD_ACTN_ID) , INDEX KRMS_CNTXT_VLD_ACTN_TYP_TI1 (CNTXT_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_AGENDA_TYP_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_AGENDA_TYP_T / CREATE TABLE KRMS_CNTXT_VLD_AGENDA_TYP_T ( CNTXT_VLD_AGENDA_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , AGENDA_TYP_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_CNTXT_VLD_AGENDA_TYP_TP1 PRIMARY KEY(CNTXT_VLD_AGENDA_ID) , INDEX KRMS_CNTXT_VLD_AGENDA_TYP_TI1 (CNTXT_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_FUNC_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_FUNC_T / CREATE TABLE KRMS_CNTXT_VLD_FUNC_T ( CNTXT_VLD_FUNC_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , FUNC_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_CNTXT_VLD_FUNC_TP1 PRIMARY KEY(CNTXT_VLD_FUNC_ID) , INDEX KRMS_CNTXT_VLD_FUNC_TI1 (CNTXT_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_RULE_TYP_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_RULE_TYP_T / CREATE TABLE KRMS_CNTXT_VLD_RULE_TYP_T ( CNTXT_VLD_RULE_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , RULE_TYP_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_CNTXT_VLD_RULE_TYP_TP1 PRIMARY KEY(CNTXT_VLD_RULE_ID) , INDEX KRMS_CNTXT_VLD_RULE_TYP_TI1 (CNTXT_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_TERM_SPEC_T # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_TERM_SPEC_T / CREATE TABLE KRMS_CNTXT_VLD_TERM_SPEC_T ( CNTXT_TERM_SPEC_PREREQ_ID VARCHAR(40) , CNTXT_ID VARCHAR(40) NOT NULL , TERM_SPEC_ID VARCHAR(40) NOT NULL , PREREQ VARCHAR(1) default 'n' , CONSTRAINT KRMS_CNTXT_VLD_TERM_SPEC_TP1 PRIMARY KEY(CNTXT_TERM_SPEC_PREREQ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_CTGRY_T # ----------------------------------------------------------------------- drop table if exists KRMS_CTGRY_T / CREATE TABLE KRMS_CTGRY_T ( CTGRY_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KRMS_CTGRY_TP1 PRIMARY KEY(CTGRY_ID) , CONSTRAINT KRMS_CTGRY_TC0 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_FUNC_CTGRY_T # ----------------------------------------------------------------------- drop table if exists KRMS_FUNC_CTGRY_T / CREATE TABLE KRMS_FUNC_CTGRY_T ( FUNC_ID VARCHAR(40) , CTGRY_ID VARCHAR(40) , CONSTRAINT KRMS_FUNC_CTGRY_TP1 PRIMARY KEY(FUNC_ID,CTGRY_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_FUNC_PARM_T # ----------------------------------------------------------------------- drop table if exists KRMS_FUNC_PARM_T / CREATE TABLE KRMS_FUNC_PARM_T ( FUNC_PARM_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(255) , TYP VARCHAR(255) NOT NULL , FUNC_ID VARCHAR(40) NOT NULL , SEQ_NO DECIMAL(5) NOT NULL , CONSTRAINT KRMS_FUNC_PARM_TP1 PRIMARY KEY(FUNC_PARM_ID) , INDEX KRMS_FUNC_PARM_TI1 (FUNC_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_FUNC_T # ----------------------------------------------------------------------- drop table if exists KRMS_FUNC_T / CREATE TABLE KRMS_FUNC_T ( FUNC_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , DESC_TXT VARCHAR(255) , RTRN_TYP VARCHAR(255) NOT NULL , TYP_ID VARCHAR(40) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_FUNC_TP1 PRIMARY KEY(FUNC_ID) , CONSTRAINT KRMS_FUNC_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KRMS_FUNC_TI1 (TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_NL_TMPL_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_NL_TMPL_ATTR_T / CREATE TABLE KRMS_NL_TMPL_ATTR_T ( NL_TMPL_ATTR_ID VARCHAR(40) , NL_TMPL_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_NL_TMPL_ATTR_TP1 PRIMARY KEY(NL_TMPL_ATTR_ID) , CONSTRAINT KRMS_NL_TMPL_ATTR_TC1 UNIQUE (NL_TMPL_ID, ATTR_DEFN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_NL_TMPL_T # ----------------------------------------------------------------------- drop table if exists KRMS_NL_TMPL_T / CREATE TABLE KRMS_NL_TMPL_T ( NL_TMPL_ID VARCHAR(40) , LANG_CD VARCHAR(2) NOT NULL , NL_USAGE_ID VARCHAR(40) NOT NULL , TYP_ID VARCHAR(40) NOT NULL , TMPL VARCHAR(4000) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_NL_TMPL_TP1 PRIMARY KEY(NL_TMPL_ID) , CONSTRAINT KRMS_NL_TMPL_TC1 UNIQUE (LANG_CD, NL_USAGE_ID, TYP_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_NL_USAGE_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_NL_USAGE_ATTR_T / CREATE TABLE KRMS_NL_USAGE_ATTR_T ( NL_USAGE_ATTR_ID VARCHAR(40) , NL_USAGE_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_NL_USAGE_ATTR_TP1 PRIMARY KEY(NL_USAGE_ATTR_ID) , CONSTRAINT KRMS_NL_USAGE_ATTR_TC1 UNIQUE (NL_USAGE_ID, ATTR_DEFN_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_NL_USAGE_T # ----------------------------------------------------------------------- drop table if exists KRMS_NL_USAGE_T / CREATE TABLE KRMS_NL_USAGE_T ( NL_USAGE_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , DESC_TXT VARCHAR(255) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_NL_USAGE_TP1 PRIMARY KEY(NL_USAGE_ID) , CONSTRAINT KRMS_NL_USAGE_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_PROP_PARM_T # ----------------------------------------------------------------------- drop table if exists KRMS_PROP_PARM_T / CREATE TABLE KRMS_PROP_PARM_T ( PROP_PARM_ID VARCHAR(40) , PROP_ID VARCHAR(40) NOT NULL , PARM_VAL VARCHAR(255) , PARM_TYP_CD VARCHAR(1) NOT NULL , SEQ_NO DECIMAL(5) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_PROP_PARM_TP1 PRIMARY KEY(PROP_PARM_ID) , INDEX KRMS_PROP_PARM_TI1 (PROP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_PROP_T # ----------------------------------------------------------------------- drop table if exists KRMS_PROP_T / CREATE TABLE KRMS_PROP_T ( PROP_ID VARCHAR(40) , DESC_TXT VARCHAR(100) , TYP_ID VARCHAR(40) , DSCRM_TYP_CD VARCHAR(10) NOT NULL , CMPND_OP_CD VARCHAR(40) , RULE_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CMPND_SEQ_NO DECIMAL(5) default null , CONSTRAINT KRMS_PROP_TP1 PRIMARY KEY(PROP_ID) , INDEX KRMS_PROP_FK2 (TYP_ID ) , INDEX KRMS_PROP_TI1 (RULE_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_REF_OBJ_KRMS_OBJ_T # ----------------------------------------------------------------------- drop table if exists KRMS_REF_OBJ_KRMS_OBJ_T / CREATE TABLE KRMS_REF_OBJ_KRMS_OBJ_T ( REF_OBJ_KRMS_OBJ_ID VARCHAR(40) , COLLECTION_NM VARCHAR(40) , KRMS_OBJ_ID VARCHAR(40) NOT NULL , KRMS_DSCR_TYP VARCHAR(40) NOT NULL , REF_OBJ_ID VARCHAR(255) NOT NULL , REF_DSCR_TYP VARCHAR(255) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_REF_OBJ_KRMS_OBJ_TP1 PRIMARY KEY(REF_OBJ_KRMS_OBJ_ID) , CONSTRAINT KRMS_REF_OBJ_KRMS_OBJ_TC1 UNIQUE (COLLECTION_NM, KRMS_OBJ_ID, KRMS_DSCR_TYP, REF_OBJ_ID, REF_DSCR_TYP, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_RULE_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_RULE_ATTR_T / CREATE TABLE KRMS_RULE_ATTR_T ( RULE_ATTR_ID VARCHAR(40) , RULE_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_RULE_ATTR_TP1 PRIMARY KEY(RULE_ATTR_ID) , INDEX KRMS_RULE_ATTR_TI1 (RULE_ID ) , INDEX KRMS_RULE_ATTR_TI2 (ATTR_DEFN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_RULE_T # ----------------------------------------------------------------------- drop table if exists KRMS_RULE_T / CREATE TABLE KRMS_RULE_T ( RULE_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , TYP_ID VARCHAR(40) , PROP_ID VARCHAR(40) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , DESC_TXT VARCHAR(4000) , CONSTRAINT KRMS_RULE_TP1 PRIMARY KEY(RULE_ID) , CONSTRAINT KRMS_RULE_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KRMS_RULE_TI1 (PROP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_PARM_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_PARM_T / CREATE TABLE KRMS_TERM_PARM_T ( TERM_PARM_ID VARCHAR(40) , TERM_ID VARCHAR(40) NOT NULL , NM VARCHAR(255) NOT NULL , VAL VARCHAR(255) , VER_NBR DECIMAL(8) NOT NULL , CONSTRAINT KRMS_TERM_PARM_TP1 PRIMARY KEY(TERM_PARM_ID) , INDEX KRMS_TERM_PARM_TI1 (TERM_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_ATTR_T / CREATE TABLE KRMS_TERM_RSLVR_ATTR_T ( TERM_RSLVR_ATTR_ID VARCHAR(40) , TERM_RSLVR_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(40) NOT NULL , ATTR_VAL VARCHAR(400) , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_TERM_RSLVR_ATTR_TP1 PRIMARY KEY(TERM_RSLVR_ATTR_ID) , INDEX KRMS_TERM_RSLVR_ATTR_TI1 (TERM_RSLVR_ID ) , INDEX KRMS_TERM_RSLVR_ATTR_TI2 (ATTR_DEFN_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_INPUT_SPEC_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_INPUT_SPEC_T / CREATE TABLE KRMS_TERM_RSLVR_INPUT_SPEC_T ( TERM_SPEC_ID VARCHAR(40) , TERM_RSLVR_ID VARCHAR(40) , CONSTRAINT KRMS_TERM_RSLVR_INPUT_SPEC_P1 PRIMARY KEY(TERM_SPEC_ID,TERM_RSLVR_ID) , INDEX KRMS_INPUT_ASSET_TI1 (TERM_SPEC_ID ) , INDEX KRMS_INPUT_ASSET_TI2 (TERM_RSLVR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_PARM_SPEC_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_PARM_SPEC_T / CREATE TABLE KRMS_TERM_RSLVR_PARM_SPEC_T ( TERM_RSLVR_PARM_SPEC_ID VARCHAR(40) , TERM_RSLVR_ID VARCHAR(40) NOT NULL , NM VARCHAR(45) NOT NULL , VER_NBR DECIMAL(8) NOT NULL , CONSTRAINT KRMS_TERM_RSLVR_PARM_SPEC_TP1 PRIMARY KEY(TERM_RSLVR_PARM_SPEC_ID) , INDEX KRMS_TERM_RESLV_PARM_FK1 (TERM_RSLVR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_T / CREATE TABLE KRMS_TERM_RSLVR_T ( TERM_RSLVR_ID VARCHAR(40) , NMSPC_CD VARCHAR(40) NOT NULL , NM VARCHAR(100) NOT NULL , TYP_ID VARCHAR(40) NOT NULL , OUTPUT_TERM_SPEC_ID VARCHAR(40) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_TERM_RSLVR_TP1 PRIMARY KEY(TERM_RSLVR_ID) , CONSTRAINT KRMS_TERM_RSLVR_TC1 UNIQUE (NM, NMSPC_CD) , INDEX KRMS_TERM_RSLVR_TI2 (TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_SPEC_CTGRY_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_SPEC_CTGRY_T / CREATE TABLE KRMS_TERM_SPEC_CTGRY_T ( TERM_SPEC_ID VARCHAR(40) , CTGRY_ID VARCHAR(40) , CONSTRAINT KRMS_TERM_SPEC_CTGRY_TP1 PRIMARY KEY(TERM_SPEC_ID,CTGRY_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_SPEC_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_SPEC_T / CREATE TABLE KRMS_TERM_SPEC_T ( TERM_SPEC_ID VARCHAR(40) , NM VARCHAR(255) NOT NULL , TYP VARCHAR(255) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) NOT NULL , DESC_TXT VARCHAR(255) default 'null' , NMSPC_CD VARCHAR(40) NOT NULL , CONSTRAINT KRMS_TERM_SPEC_TP1 PRIMARY KEY(TERM_SPEC_ID) , CONSTRAINT KRMS_TERM_SPEC_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TERM_T # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_T / CREATE TABLE KRMS_TERM_T ( TERM_ID VARCHAR(40) , TERM_SPEC_ID VARCHAR(40) NOT NULL , VER_NBR DECIMAL(8) NOT NULL , DESC_TXT VARCHAR(255) default 'null' , CONSTRAINT KRMS_TERM_TP1 PRIMARY KEY(TERM_ID) , INDEX KRMS_TERM_TI1 (TERM_SPEC_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TYP_ATTR_T # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_ATTR_T / CREATE TABLE KRMS_TYP_ATTR_T ( TYP_ATTR_ID VARCHAR(40) , SEQ_NO DECIMAL(5) NOT NULL , TYP_ID VARCHAR(40) NOT NULL , ATTR_DEFN_ID VARCHAR(255) NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_TYP_ATTR_TP1 PRIMARY KEY(TYP_ATTR_ID) , CONSTRAINT KRMS_TYP_ATTR_TC1 UNIQUE (TYP_ID, ATTR_DEFN_ID) , INDEX KRMS_TYP_ATTR_TI1 (ATTR_DEFN_ID ) , INDEX KRMS_TYP_ATTR_TI2 (TYP_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TYP_RELN_T # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_RELN_T / CREATE TABLE KRMS_TYP_RELN_T ( TYP_RELN_ID VARCHAR(40) , FROM_TYP_ID VARCHAR(40) NOT NULL , TO_TYP_ID VARCHAR(40) NOT NULL , RELN_TYP VARCHAR(40) NOT NULL , SEQ_NO DECIMAL(5) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , ACTV VARCHAR(1) default 'Y' NOT NULL , CONSTRAINT KRMS_TYP_RELN_TP1 PRIMARY KEY(TYP_RELN_ID) , CONSTRAINT KRMS_TYP_RELN_TC1 UNIQUE (FROM_TYP_ID, TO_TYP_ID, RELN_TYP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRMS_TYP_T # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_T / CREATE TABLE KRMS_TYP_T ( TYP_ID VARCHAR(40) , NM VARCHAR(100) NOT NULL , NMSPC_CD VARCHAR(40) NOT NULL , SRVC_NM VARCHAR(200) , ACTV VARCHAR(1) default 'Y' NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRMS_TYP_TP1 PRIMARY KEY(TYP_ID) , CONSTRAINT KRMS_TYP_TC1 UNIQUE (NM, NMSPC_CD) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_ADHOC_RTE_ACTN_RECIP_T # ----------------------------------------------------------------------- drop table if exists KRNS_ADHOC_RTE_ACTN_RECIP_T / CREATE TABLE KRNS_ADHOC_RTE_ACTN_RECIP_T ( RECIP_TYP_CD DECIMAL(1) , ACTN_RQST_CD VARCHAR(30) , ACTN_RQST_RECIP_ID VARCHAR(70) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DOC_HDR_ID VARCHAR(14) , CONSTRAINT KRNS_ADHOC_RTE_ACTN_RECIP_TP1 PRIMARY KEY(RECIP_TYP_CD,ACTN_RQST_CD,ACTN_RQST_RECIP_ID,DOC_HDR_ID) , CONSTRAINT KRNS_ADHOC_RTE_ACTN_RECIP_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_ADHOC_RTE_ACTN_RECIP_T2 (DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_ATT_T # ----------------------------------------------------------------------- drop table if exists KRNS_ATT_T / CREATE TABLE KRNS_ATT_T ( NTE_ID DECIMAL(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , MIME_TYP VARCHAR(255) , FILE_NM VARCHAR(250) , ATT_ID VARCHAR(36) , FILE_SZ DECIMAL(14) , ATT_TYP_CD VARCHAR(40) , CONSTRAINT KRNS_ATT_TP1 PRIMARY KEY(NTE_ID) , CONSTRAINT KRNS_ATT_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_DOC_HDR_T # ----------------------------------------------------------------------- drop table if exists KRNS_DOC_HDR_T / CREATE TABLE KRNS_DOC_HDR_T ( DOC_HDR_ID VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , FDOC_DESC VARCHAR(255) , ORG_DOC_HDR_ID VARCHAR(10) , TMPL_DOC_HDR_ID VARCHAR(14) , EXPLANATION VARCHAR(400) , CONSTRAINT KRNS_DOC_HDR_TP1 PRIMARY KEY(DOC_HDR_ID) , CONSTRAINT KRNS_DOC_HDR_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_DOC_HDR_TI3 (ORG_DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_LOOKUP_RSLT_T # ----------------------------------------------------------------------- drop table if exists KRNS_LOOKUP_RSLT_T / CREATE TABLE KRNS_LOOKUP_RSLT_T ( LOOKUP_RSLT_ID VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , LOOKUP_DT DATETIME NOT NULL , SERIALZD_RSLTS LONGTEXT , CONSTRAINT KRNS_LOOKUP_RSLT_TP1 PRIMARY KEY(LOOKUP_RSLT_ID) , CONSTRAINT KRNS_LOOKUP_RSLT_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_LOOKUP_SEL_T # ----------------------------------------------------------------------- drop table if exists KRNS_LOOKUP_SEL_T / CREATE TABLE KRNS_LOOKUP_SEL_T ( LOOKUP_RSLT_ID VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , LOOKUP_DT DATETIME NOT NULL , SEL_OBJ_IDS LONGTEXT , CONSTRAINT KRNS_LOOKUP_SEL_TP1 PRIMARY KEY(LOOKUP_RSLT_ID) , CONSTRAINT KRNS_LOOKUP_SEL_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_MAINT_DOC_ATT_LST_T # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_DOC_ATT_LST_T / CREATE TABLE KRNS_MAINT_DOC_ATT_LST_T ( ATT_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(14) NOT NULL , ATT_CNTNT LONGBLOB NOT NULL , FILE_NM VARCHAR(150) , CNTNT_TYP VARCHAR(255) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRNS_MAINT_DOC_ATT_LST_TP1 PRIMARY KEY(ATT_ID) , CONSTRAINT KRNS_MAINT_DOC_ATT_LST_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_MAINT_DOC_ATT_LST_TI1 (DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_MAINT_DOC_ATT_T # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_DOC_ATT_T / CREATE TABLE KRNS_MAINT_DOC_ATT_T ( DOC_HDR_ID VARCHAR(14) , ATT_CNTNT LONGBLOB NOT NULL , FILE_NM VARCHAR(150) , CNTNT_TYP VARCHAR(255) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , CONSTRAINT KRNS_MAINT_DOC_ATT_TP1 PRIMARY KEY(DOC_HDR_ID) , CONSTRAINT KRNS_MAINT_DOC_ATT_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_MAINT_DOC_T # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_DOC_T / CREATE TABLE KRNS_MAINT_DOC_T ( DOC_HDR_ID VARCHAR(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DOC_CNTNT LONGTEXT , CONSTRAINT KRNS_MAINT_DOC_TP1 PRIMARY KEY(DOC_HDR_ID) , CONSTRAINT KRNS_MAINT_DOC_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_MAINT_LOCK_T # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_LOCK_T / CREATE TABLE KRNS_MAINT_LOCK_T ( MAINT_LOCK_REP_TXT VARCHAR(500) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , DOC_HDR_ID VARCHAR(14) NOT NULL , MAINT_LOCK_ID VARCHAR(14) , CONSTRAINT KRNS_MAINT_LOCK_TP1 PRIMARY KEY(MAINT_LOCK_ID) , CONSTRAINT KRNS_MAINT_LOCK_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_MAINT_LOCK_TI2 (DOC_HDR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_NTE_T # ----------------------------------------------------------------------- drop table if exists KRNS_NTE_T / CREATE TABLE KRNS_NTE_T ( NTE_ID DECIMAL(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , RMT_OBJ_ID VARCHAR(36) NOT NULL , AUTH_PRNCPL_ID VARCHAR(40) NOT NULL , POST_TS DATETIME NOT NULL , NTE_TYP_CD VARCHAR(4) NOT NULL , TXT VARCHAR(800) , PRG_CD VARCHAR(1) , TPC_TXT VARCHAR(40) , CONSTRAINT KRNS_NTE_TP1 PRIMARY KEY(NTE_ID) , CONSTRAINT KRNS_NTE_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_NTE_TI1 (RMT_OBJ_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_NTE_TYP_T # ----------------------------------------------------------------------- drop table if exists KRNS_NTE_TYP_T / CREATE TABLE KRNS_NTE_TYP_T ( NTE_TYP_CD VARCHAR(4) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , TYP_DESC_TXT VARCHAR(100) , ACTV_IND VARCHAR(1) , CONSTRAINT KRNS_NTE_TYP_TP1 PRIMARY KEY(NTE_TYP_CD) , CONSTRAINT KRNS_NTE_TYP_TC0 UNIQUE (OBJ_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_PESSIMISTIC_LOCK_T # ----------------------------------------------------------------------- drop table if exists KRNS_PESSIMISTIC_LOCK_T / CREATE TABLE KRNS_PESSIMISTIC_LOCK_T ( PESSIMISTIC_LOCK_ID DECIMAL(14) , OBJ_ID VARCHAR(36) NOT NULL , VER_NBR DECIMAL(8) default 1 NOT NULL , LOCK_DESC_TXT VARCHAR(4000) , DOC_HDR_ID VARCHAR(14) NOT NULL , GNRT_DT DATETIME NOT NULL , PRNCPL_ID VARCHAR(40) NOT NULL , SESN_ID VARCHAR(40) default 'undefined' NOT NULL , CONSTRAINT KRNS_PESSIMISTIC_LOCK_TP1 PRIMARY KEY(PESSIMISTIC_LOCK_ID) , CONSTRAINT KRNS_PESSIMISTIC_LOCK_TC0 UNIQUE (OBJ_ID) , INDEX KRNS_PESSIMISTIC_LOCK_TI1 (DOC_HDR_ID ) , INDEX KRNS_PESSIMISTIC_LOCK_TI2 (PRNCPL_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRNS_SESN_DOC_T # ----------------------------------------------------------------------- drop table if exists KRNS_SESN_DOC_T / CREATE TABLE KRNS_SESN_DOC_T ( SESN_DOC_ID VARCHAR(40) , DOC_HDR_ID VARCHAR(14) , PRNCPL_ID VARCHAR(40) , IP_ADDR VARCHAR(60) , SERIALZD_DOC_FRM LONGBLOB , LAST_UPDT_DT DATETIME , CONTENT_ENCRYPTED_IND CHAR(1) default 'N' , OBJ_ID VARCHAR(36) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KRNS_SESN_DOC_TP1 PRIMARY KEY(SESN_DOC_ID,DOC_HDR_ID,PRNCPL_ID,IP_ADDR) , INDEX KRNS_SESN_DOC_TI1 (LAST_UPDT_DT ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_BAM_PARM_T # ----------------------------------------------------------------------- drop table if exists KRSB_BAM_PARM_T / CREATE TABLE KRSB_BAM_PARM_T ( BAM_PARM_ID DECIMAL(14) , BAM_ID DECIMAL(14) NOT NULL , PARM LONGTEXT NOT NULL , CONSTRAINT KRSB_BAM_PARM_TP1 PRIMARY KEY(BAM_PARM_ID) , INDEX KREW_BAM_PARM_TI1 (BAM_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_BAM_T # ----------------------------------------------------------------------- drop table if exists KRSB_BAM_T / CREATE TABLE KRSB_BAM_T ( BAM_ID DECIMAL(14) , SVC_NM VARCHAR(255) NOT NULL , SVC_URL VARCHAR(500) NOT NULL , MTHD_NM VARCHAR(2000) NOT NULL , THRD_NM VARCHAR(500) NOT NULL , CALL_DT DATETIME NOT NULL , TGT_TO_STR VARCHAR(2000) NOT NULL , SRVR_IND DECIMAL(1) NOT NULL , EXCPN_TO_STR VARCHAR(2000) , EXCPN_MSG LONGTEXT , CONSTRAINT KRSB_BAM_TP1 PRIMARY KEY(BAM_ID) , INDEX KRSB_BAM_TI1 (SVC_NM , MTHD_NM (255)) , INDEX KRSB_BAM_TI2 (SVC_NM ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_MSG_PYLD_T # ----------------------------------------------------------------------- drop table if exists KRSB_MSG_PYLD_T / CREATE TABLE KRSB_MSG_PYLD_T ( MSG_QUE_ID DECIMAL(14) , MSG_PYLD LONGTEXT NOT NULL , CONSTRAINT KRSB_MSG_PYLD_TP1 PRIMARY KEY(MSG_QUE_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_MSG_QUE_T # ----------------------------------------------------------------------- drop table if exists KRSB_MSG_QUE_T / CREATE TABLE KRSB_MSG_QUE_T ( MSG_QUE_ID DECIMAL(14) , DT DATETIME NOT NULL , EXP_DT DATETIME , PRIO DECIMAL(8) NOT NULL , STAT_CD CHAR(1) NOT NULL , RTRY_CNT DECIMAL(8) NOT NULL , IP_NBR VARCHAR(2000) NOT NULL , SVC_NM VARCHAR(255) , APPL_ID VARCHAR(255) NOT NULL , SVC_MTHD_NM VARCHAR(2000) , APP_VAL_ONE VARCHAR(2000) , APP_VAL_TWO VARCHAR(2000) , VER_NBR DECIMAL(8) default 0 , CONSTRAINT KRSB_MSG_QUE_TP1 PRIMARY KEY(MSG_QUE_ID) , INDEX KRSB_MSG_QUE_TI1 (SVC_NM , SVC_MTHD_NM (255)) , INDEX KRSB_MSG_QUE_TI2 (APPL_ID , STAT_CD , IP_NBR (255), DT ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_BLOB_TRIGGERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_BLOB_TRIGGERS / CREATE TABLE KRSB_QRTZ_BLOB_TRIGGERS ( TRIGGER_NAME VARCHAR(80) , TRIGGER_GROUP VARCHAR(80) , BLOB_DATA LONGBLOB , CONSTRAINT KRSB_QRTZ_BLOB_TRIGGERSP1 PRIMARY KEY(TRIGGER_NAME,TRIGGER_GROUP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_CALENDARS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_CALENDARS / CREATE TABLE KRSB_QRTZ_CALENDARS ( CALENDAR_NAME VARCHAR(80) , CALENDAR LONGBLOB NOT NULL , CONSTRAINT KRSB_QRTZ_CALENDARSP1 PRIMARY KEY(CALENDAR_NAME) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_CRON_TRIGGERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_CRON_TRIGGERS / CREATE TABLE KRSB_QRTZ_CRON_TRIGGERS ( TRIGGER_NAME VARCHAR(80) , TRIGGER_GROUP VARCHAR(80) , CRON_EXPRESSION VARCHAR(80) NOT NULL , TIME_ZONE_ID VARCHAR(80) , CONSTRAINT KRSB_QRTZ_CRON_TRIGGERSP1 PRIMARY KEY(TRIGGER_NAME,TRIGGER_GROUP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_FIRED_TRIGGERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_FIRED_TRIGGERS / CREATE TABLE KRSB_QRTZ_FIRED_TRIGGERS ( ENTRY_ID VARCHAR(95) , TRIGGER_NAME VARCHAR(80) NOT NULL , TRIGGER_GROUP VARCHAR(80) NOT NULL , IS_VOLATILE VARCHAR(1) NOT NULL , INSTANCE_NAME VARCHAR(80) NOT NULL , FIRED_TIME DECIMAL(13) NOT NULL , PRIORITY DECIMAL(13) NOT NULL , STATE VARCHAR(16) NOT NULL , JOB_NAME VARCHAR(80) , JOB_GROUP VARCHAR(80) , IS_STATEFUL VARCHAR(1) , REQUESTS_RECOVERY VARCHAR(1) , CONSTRAINT KRSB_QRTZ_FIRED_TRIGGERSP1 PRIMARY KEY(ENTRY_ID) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI1 (JOB_GROUP ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI2 (JOB_NAME ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI3 (REQUESTS_RECOVERY ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI4 (IS_STATEFUL ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI5 (TRIGGER_GROUP ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI6 (INSTANCE_NAME ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI7 (TRIGGER_NAME ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI8 (TRIGGER_NAME , TRIGGER_GROUP ) , INDEX KRSB_QRTZ_FIRED_TRIGGERS_TI9 (IS_VOLATILE ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_JOB_DETAILS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_JOB_DETAILS / CREATE TABLE KRSB_QRTZ_JOB_DETAILS ( JOB_NAME VARCHAR(80) , JOB_GROUP VARCHAR(80) , DESCRIPTION VARCHAR(120) , JOB_CLASS_NAME VARCHAR(128) NOT NULL , IS_DURABLE VARCHAR(1) NOT NULL , IS_VOLATILE VARCHAR(1) NOT NULL , IS_STATEFUL VARCHAR(1) NOT NULL , REQUESTS_RECOVERY VARCHAR(1) NOT NULL , JOB_DATA LONGBLOB , CONSTRAINT KRSB_QRTZ_JOB_DETAILSP1 PRIMARY KEY(JOB_NAME,JOB_GROUP) , INDEX KRSB_QRTZ_JOB_DETAILS_TI1 (REQUESTS_RECOVERY ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_JOB_LISTENERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_JOB_LISTENERS / CREATE TABLE KRSB_QRTZ_JOB_LISTENERS ( JOB_NAME VARCHAR(80) , JOB_GROUP VARCHAR(80) , JOB_LISTENER VARCHAR(80) , CONSTRAINT KRSB_QRTZ_JOB_LISTENERSP1 PRIMARY KEY(JOB_NAME,JOB_GROUP,JOB_LISTENER) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_LOCKS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_LOCKS / CREATE TABLE KRSB_QRTZ_LOCKS ( LOCK_NAME VARCHAR(40) , CONSTRAINT KRSB_QRTZ_LOCKSP1 PRIMARY KEY(LOCK_NAME) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_PAUSED_TRIGGER_GRPS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_PAUSED_TRIGGER_GRPS / CREATE TABLE KRSB_QRTZ_PAUSED_TRIGGER_GRPS ( TRIGGER_GROUP VARCHAR(80) , CONSTRAINT KRSB_QRTZ_PAUSED_TRIGGER_GRP1 PRIMARY KEY(TRIGGER_GROUP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_SCHEDULER_STATE # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_SCHEDULER_STATE / CREATE TABLE KRSB_QRTZ_SCHEDULER_STATE ( INSTANCE_NAME VARCHAR(80) , LAST_CHECKIN_TIME DECIMAL(13) NOT NULL , CHECKIN_INTERVAL DECIMAL(13) NOT NULL , CONSTRAINT KRSB_QRTZ_SCHEDULER_STATEP1 PRIMARY KEY(INSTANCE_NAME) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_SIMPLE_TRIGGERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_SIMPLE_TRIGGERS / CREATE TABLE KRSB_QRTZ_SIMPLE_TRIGGERS ( TRIGGER_NAME VARCHAR(80) , TRIGGER_GROUP VARCHAR(80) , REPEAT_COUNT DECIMAL(7) NOT NULL , REPEAT_INTERVAL DECIMAL(12) NOT NULL , TIMES_TRIGGERED DECIMAL(7) NOT NULL , CONSTRAINT KRSB_QRTZ_SIMPLE_TRIGGERSP1 PRIMARY KEY(TRIGGER_NAME,TRIGGER_GROUP) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_TRIGGERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_TRIGGERS / CREATE TABLE KRSB_QRTZ_TRIGGERS ( TRIGGER_NAME VARCHAR(80) , TRIGGER_GROUP VARCHAR(80) , JOB_NAME VARCHAR(80) NOT NULL , JOB_GROUP VARCHAR(80) NOT NULL , IS_VOLATILE VARCHAR(1) NOT NULL , DESCRIPTION VARCHAR(120) , NEXT_FIRE_TIME DECIMAL(13) , PREV_FIRE_TIME DECIMAL(13) , PRIORITY DECIMAL(13) , TRIGGER_STATE VARCHAR(16) NOT NULL , TRIGGER_TYPE VARCHAR(8) NOT NULL , START_TIME DECIMAL(13) NOT NULL , END_TIME DECIMAL(13) , CALENDAR_NAME VARCHAR(80) , MISFIRE_INSTR DECIMAL(2) , JOB_DATA LONGBLOB , CONSTRAINT KRSB_QRTZ_TRIGGERSP1 PRIMARY KEY(TRIGGER_NAME,TRIGGER_GROUP) , INDEX KRSB_QRTZ_TRIGGERS_TI1 (NEXT_FIRE_TIME ) , INDEX KRSB_QRTZ_TRIGGERS_TI2 (NEXT_FIRE_TIME , TRIGGER_STATE ) , INDEX KRSB_QRTZ_TRIGGERS_TI3 (TRIGGER_STATE ) , INDEX KRSB_QRTZ_TRIGGERS_TI4 (IS_VOLATILE ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_QRTZ_TRIGGER_LISTENERS # ----------------------------------------------------------------------- drop table if exists KRSB_QRTZ_TRIGGER_LISTENERS / CREATE TABLE KRSB_QRTZ_TRIGGER_LISTENERS ( TRIGGER_NAME VARCHAR(80) , TRIGGER_GROUP VARCHAR(80) , TRIGGER_LISTENER VARCHAR(80) , CONSTRAINT KRSB_QRTZ_TRIGGER_LISTENERSP1 PRIMARY KEY(TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_LISTENER) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_SVC_DEF_T # ----------------------------------------------------------------------- drop table if exists KRSB_SVC_DEF_T / CREATE TABLE KRSB_SVC_DEF_T ( SVC_DEF_ID VARCHAR(40) , SVC_NM VARCHAR(255) NOT NULL , SVC_URL VARCHAR(500) NOT NULL , INSTN_ID VARCHAR(255) NOT NULL , APPL_ID VARCHAR(255) NOT NULL , SRVR_IP VARCHAR(40) NOT NULL , TYP_CD VARCHAR(40) NOT NULL , SVC_VER VARCHAR(40) NOT NULL , STAT_CD VARCHAR(1) NOT NULL , SVC_DSCRPTR_ID VARCHAR(40) NOT NULL , CHKSM VARCHAR(30) NOT NULL , VER_NBR DECIMAL(8) default 0 NOT NULL , CONSTRAINT KRSB_SVC_DEF_TP1 PRIMARY KEY(SVC_DEF_ID) , INDEX KRSB_SVC_DEF_TI1 (INSTN_ID ) , INDEX KRSB_SVC_DEF_TI2 (SVC_NM , STAT_CD ) , INDEX KRSB_SVC_DEF_TI3 (STAT_CD ) , INDEX KRSB_SVC_DEF_TI4 (SVC_DSCRPTR_ID ) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRSB_SVC_DSCRPTR_T # ----------------------------------------------------------------------- drop table if exists KRSB_SVC_DSCRPTR_T / CREATE TABLE KRSB_SVC_DSCRPTR_T ( SVC_DSCRPTR_ID VARCHAR(40) , DSCRPTR LONGTEXT NOT NULL , CONSTRAINT KRSB_SVC_DSCRPTR_TP1 PRIMARY KEY(SVC_DSCRPTR_ID) ) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin / # ----------------------------------------------------------------------- # KRIM_GRP_MBR_V # ----------------------------------------------------------------------- drop view if exists KRIM_GRP_MBR_V / CREATE VIEW KRIM_GRP_MBR_V AS SELECT g.NMSPC_CD , g.grp_nm , g.GRP_ID , p.PRNCPL_NM , p.PRNCPL_ID , mg.GRP_NM AS mbr_grp_nm , mg.GRP_ID AS mbr_grp_id FROM KRIM_GRP_MBR_T gm LEFT JOIN krim_grp_t g ON g.GRP_ID = gm.GRP_ID LEFT OUTER JOIN krim_grp_t mg ON mg.GRP_ID = gm.MBR_ID AND gm.MBR_TYP_CD = 'G' LEFT OUTER JOIN krim_prncpl_t p ON p.PRNCPL_ID = gm.MBR_ID AND gm.MBR_TYP_CD = 'P' LEFT OUTER JOIN krim_entity_nm_t en ON en.ENTITY_ID = p.ENTITY_ID AND en.DFLT_IND = 'Y' AND en.ACTV_IND = 'Y' ORDER BY nmspc_cd, grp_nm, prncpl_nm / # ----------------------------------------------------------------------- # KRIM_GRP_V # ----------------------------------------------------------------------- drop view if exists KRIM_GRP_V / CREATE VIEW KRIM_GRP_V AS SELECT g.NMSPC_CD , g.grp_nm , g.GRP_ID , t.NM AS grp_typ_nm , a.NM AS attr_nm , d.ATTR_VAL AS attr_val FROM krim_grp_t g LEFT OUTER JOIN KRIM_GRP_ATTR_DATA_T d ON d.grp_id = g.GRP_ID LEFT OUTER JOIN KRIM_ATTR_DEFN_T a ON a.KIM_ATTR_DEFN_ID = d.KIM_ATTR_DEFN_ID LEFT OUTER JOIN KRIM_TYP_T t ON g.KIM_TYP_ID = t.KIM_TYP_ID / # ----------------------------------------------------------------------- # KRIM_PERM_ATTR_V # ----------------------------------------------------------------------- drop view if exists KRIM_PERM_ATTR_V / CREATE VIEW KRIM_PERM_ATTR_V AS SELECT t.nmspc_cd AS tmpl_nmspc_cd , t.NM AS tmpl_nm , t.PERM_TMPL_ID , p.nmspc_cd AS perm_nmspc_cd , p.NM AS perm_nm , p.PERM_ID , a.NM AS attr_nm , ad.ATTR_VAL AS attr_val FROM KRIM_PERM_T p LEFT JOIN KRIM_PERM_TMPL_T t ON p.PERM_TMPL_ID = t.PERM_TMPL_ID LEFT OUTER JOIN KRIM_PERM_ATTR_DATA_T ad ON p.PERM_ID = ad.perm_id LEFT OUTER JOIN KRIM_ATTR_DEFN_T a ON ad.KIM_ATTR_DEFN_ID = a.KIM_ATTR_DEFN_ID ORDER BY tmpl_nmspc_cd, tmpl_nm, perm_nmspc_cd, perm_id, attr_nm / # ----------------------------------------------------------------------- # KRIM_PERM_V # ----------------------------------------------------------------------- drop view if exists KRIM_PERM_V / CREATE VIEW KRIM_PERM_V AS SELECT t.nmspc_cd AS tmpl_nmspc_cd , t.NM AS tmpl_nm , t.PERM_TMPL_ID , p.nmspc_cd AS perm_nmspc_cd , p.NM AS perm_nm , p.PERM_ID , typ.NM AS perm_typ_nm , typ.SRVC_NM FROM KRIM_PERM_T p INNER JOIN KRIM_PERM_TMPL_T t ON p.PERM_TMPL_ID = t.PERM_TMPL_ID LEFT OUTER JOIN KRIM_TYP_T typ ON t.KIM_TYP_ID = typ.KIM_TYP_ID / # ----------------------------------------------------------------------- # KRIM_PRNCPL_V # ----------------------------------------------------------------------- drop view if exists KRIM_PRNCPL_V / CREATE VIEW KRIM_PRNCPL_V AS SELECT p.PRNCPL_ID ,p.PRNCPL_NM ,en.FIRST_NM ,en.LAST_NM ,ea.AFLTN_TYP_CD ,ea.CAMPUS_CD ,eei.EMP_STAT_CD ,eei.EMP_TYP_CD FROM krim_prncpl_t p LEFT OUTER JOIN krim_entity_emp_info_t eei ON eei.ENTITY_ID = p.ENTITY_ID LEFT OUTER JOIN krim_entity_afltn_t ea ON ea.ENTITY_ID = p.ENTITY_ID LEFT OUTER JOIN krim_entity_nm_t en ON p.ENTITY_ID = en.ENTITY_ID AND 'Y' = en.DFLT_IND / # ----------------------------------------------------------------------- # KRIM_ROLE_GRP_V # ----------------------------------------------------------------------- drop view if exists KRIM_ROLE_GRP_V / CREATE VIEW KRIM_ROLE_GRP_V AS SELECT r.NMSPC_CD , r.ROLE_NM , r.role_id , g.NMSPC_CD AS grp_nmspc_cd , g.GRP_NM , rm.ROLE_MBR_ID , a.NM AS attr_nm , d.ATTR_VAL AS attr_val FROM KRIM_ROLE_MBR_T rm LEFT JOIN KRIM_ROLE_T r ON r.ROLE_ID = rm.ROLE_ID LEFT JOIN KRIM_GRP_T g ON g.GRP_ID = rm.MBR_ID LEFT OUTER JOIN KRIM_ROLE_MBR_ATTR_DATA_T d ON d.role_mbr_id = rm.ROLE_MBR_ID LEFT OUTER JOIN KRIM_ATTR_DEFN_T a ON a.KIM_ATTR_DEFN_ID = d.KIM_ATTR_DEFN_ID WHERE rm.MBR_TYP_CD = 'G' ORDER BY nmspc_cd, role_nm, grp_nmspc_cd, grp_nm, role_mbr_id, attr_nm / # ----------------------------------------------------------------------- # KRIM_ROLE_PERM_V # ----------------------------------------------------------------------- drop view if exists KRIM_ROLE_PERM_V / CREATE VIEW KRIM_ROLE_PERM_V AS SELECT r.NMSPC_CD , r.ROLE_NM , r.role_id , pt.NMSPC_CD AS tmpl_nmspc_cd , pt.NM AS tmpl_nm , pt.PERM_TMPL_ID , p.NMSPC_CD AS perm_nmpsc_cd , p.NM AS perm_nm , p.PERM_ID , a.NM AS attr_nm , ad.ATTR_VAL AS attr_val FROM KRIM_PERM_T p LEFT JOIN KRIM_PERM_TMPL_T pt ON p.PERM_TMPL_ID = pt.PERM_TMPL_ID LEFT OUTER JOIN KRIM_PERM_ATTR_DATA_T ad ON p.PERM_ID = ad.perm_id LEFT OUTER JOIN KRIM_ATTR_DEFN_T a ON ad.KIM_ATTR_DEFN_ID = a.KIM_ATTR_DEFN_ID LEFT OUTER JOIN KRIM_ROLE_PERM_T rp ON rp.PERM_ID = p.PERM_ID LEFT OUTER JOIN KRIM_ROLE_T r ON rp.ROLE_ID = r.ROLE_ID ORDER BY NMSPC_CD, role_nm, tmpl_nmspc_cd, tmpl_nm, perm_id, attr_nm / # ----------------------------------------------------------------------- # KRIM_ROLE_PRNCPL_V # ----------------------------------------------------------------------- drop view if exists KRIM_ROLE_PRNCPL_V / CREATE VIEW KRIM_ROLE_PRNCPL_V AS SELECT r.NMSPC_CD , r.ROLE_NM , r.ROLE_ID , p.PRNCPL_NM , p.PRNCPL_ID , en.FIRST_NM , en.LAST_NM , rm.ROLE_MBR_ID , ad.NM AS attr_nm , rmad.ATTR_VAL AS attr_val FROM KRIM_ROLE_T r LEFT OUTER JOIN KRIM_ROLE_MBR_T rm ON r.ROLE_ID = rm.ROLE_ID LEFT OUTER JOIN KRIM_ROLE_MBR_ATTR_DATA_T rmad ON rm.ROLE_MBR_ID = rmad.role_mbr_id LEFT OUTER JOIN KRIM_ATTR_DEFN_T ad ON rmad.KIM_ATTR_DEFN_ID = ad.KIM_ATTR_DEFN_ID LEFT OUTER JOIN KRIM_PRNCPL_T p ON rm.MBR_ID = p.PRNCPL_ID AND rm.mbr_typ_cd = 'P' LEFT OUTER JOIN KRIM_ENTITY_NM_T en ON p.ENTITY_ID = en.ENTITY_ID WHERE (en.DFLT_IND = 'Y') ORDER BY nmspc_cd, role_nm, prncpl_nm, rm.ROLE_MBR_ID, attr_nm / # ----------------------------------------------------------------------- # KRIM_ROLE_ROLE_V # ----------------------------------------------------------------------- drop view if exists KRIM_ROLE_ROLE_V / CREATE VIEW KRIM_ROLE_ROLE_V AS SELECT r.NMSPC_CD , r.ROLE_NM , r.role_id , mr.NMSPC_CD AS mbr_role_nmspc_cd , mr.role_NM AS mbr_role_nm , mr.role_id AS mbr_role_id , rm.role_mbr_id , a.NM AS attr_nm , d.ATTR_VAL AS attr_val FROM KRIM_ROLE_MBR_T rm LEFT JOIN KRIM_ROLE_T r ON r.ROLE_ID = rm.ROLE_ID LEFT JOIN KRIM_role_T mr ON mr.role_ID = rm.MBR_ID LEFT OUTER JOIN KRIM_ROLE_MBR_ATTR_DATA_T d ON d.role_mbr_id = rm.ROLE_MBR_ID LEFT OUTER JOIN KRIM_ATTR_DEFN_T a ON a.KIM_ATTR_DEFN_ID = d.KIM_ATTR_DEFN_ID WHERE rm.MBR_TYP_CD = 'R' ORDER BY nmspc_cd, role_nm, mbr_role_nmspc_cd, mbr_role_nm, role_mbr_id, attr_nm / # ----------------------------------------------------------------------- # KRIM_ROLE_V # ----------------------------------------------------------------------- drop view if exists KRIM_ROLE_V / CREATE VIEW KRIM_ROLE_V AS SELECT r.NMSPC_CD , r.ROLE_NM , r.ROLE_ID , t.nm AS role_typ_nm , t.SRVC_NM , t.KIM_TYP_ID FROM KRIM_ROLE_T r , KRIM_TYP_T t WHERE t.KIM_TYP_ID = r.KIM_TYP_ID AND r.ACTV_IND = 'Y' ORDER BY nmspc_cd , role_nm / # ----------------------------------------------------------------------- # KRIM_RSP_ATTR_V # ----------------------------------------------------------------------- drop view if exists KRIM_RSP_ATTR_V / CREATE VIEW KRIM_RSP_ATTR_V AS SELECT krim_typ_t.NM AS responsibility_type_name , KRIM_rsp_TMPL_T.NM AS rsp_TEMPLATE_NAME , KRIM_rsp_T.nmspc_cd AS rsp_namespace_code , KRIM_rsp_T.NM AS rsp_NAME , krim_rsp_t.RSP_ID AS rsp_id , KRIM_ATTR_DEFN_T.NM AS attribute_name , KRIM_rsp_ATTR_DATA_T.ATTR_VAL AS attribute_value FROM KRIM_rsp_T KRIM_rsp_T INNER JOIN KRIM_rsp_ATTR_DATA_T KRIM_rsp_ATTR_DATA_T ON KRIM_rsp_T.rsp_ID = KRIM_rsp_ATTR_DATA_T.rsp_id INNER JOIN KRIM_ATTR_DEFN_T KRIM_ATTR_DEFN_T ON KRIM_rsp_ATTR_DATA_T.KIM_ATTR_DEFN_ID = KRIM_ATTR_DEFN_T.KIM_ATTR_DEFN_ID INNER JOIN KRIM_rsp_TMPL_T KRIM_rsp_TMPL_T ON KRIM_rsp_T.rsp_TMPL_ID = KRIM_rsp_TMPL_T.rsp_TMPL_ID INNER JOIN KRIM_TYP_T KRIM_TYP_T ON KRIM_rsp_TMPL_T.KIM_TYP_ID = KRIM_TYP_T.KIM_TYP_ID ORDER BY rsp_TEMPLATE_NAME, rsp_NAME, attribute_name / # ----------------------------------------------------------------------- # KRIM_RSP_ROLE_ACTN_V # ----------------------------------------------------------------------- drop view if exists KRIM_RSP_ROLE_ACTN_V / CREATE VIEW KRIM_RSP_ROLE_ACTN_V AS select rsp.nmspc_cd as rsp_nmspc_cd , rsp.rsp_id , r.NMSPC_CD , r.ROLE_NM , rr.ROLE_ID , rm.MBR_ID , rm.MBR_TYP_CD , rm.ROLE_MBR_ID , actn.ACTN_TYP_CD , actn.ACTN_PLCY_CD , actn.FRC_ACTN , actn.PRIORITY_NBR from krim_rsp_t rsp left join krim_rsp_tmpl_t rspt on rsp.rsp_tmpl_id = rspt.rsp_tmpl_id left outer join krim_role_rsp_t rr on rr.rsp_id = rsp.rsp_id left outer join KRIM_ROLE_MBR_T rm ON rm.ROLE_ID = rr.ROLE_ID left outer join KRIM_ROLE_RSP_ACTN_T actn ON actn.ROLE_RSP_ID = rr.ROLE_RSP_ID AND (actn.ROLE_MBR_ID = rm.ROLE_MBR_ID OR actn.ROLE_MBR_ID = '*') left outer join krim_role_t r on rr.role_id = r.role_id order by rsp_nmspc_cd , rsp_id , role_id , role_mbr_id / # ----------------------------------------------------------------------- # KRIM_RSP_ROLE_V # ----------------------------------------------------------------------- drop view if exists KRIM_RSP_ROLE_V / CREATE VIEW KRIM_RSP_ROLE_V AS select rspt.nmspc_cd as rsp_tmpl_nmspc_cd , rspt.nm as rsp_tmpl_nm , rsp.nmspc_cd as rsp_nmspc_cd , rsp.nm as rsp_nm , rsp.rsp_id , a.nm as attr_nm , d.attr_val , r.NMSPC_CD , r.ROLE_NM , rr.ROLE_ID from krim_rsp_t rsp left join krim_rsp_tmpl_t rspt on rsp.rsp_tmpl_id = rspt.rsp_tmpl_id left outer join krim_rsp_attr_data_t d on rsp.rsp_id = d.rsp_id left outer join krim_attr_defn_t a on d.kim_attr_defn_id = a.kim_attr_defn_id left outer join krim_role_rsp_t rr on rr.rsp_id = rsp.rsp_id left outer join krim_role_t r on rr.role_id = r.role_id order by rsp_tmpl_nmspc_cd, rsp_tmpl_nm, rsp_nmspc_cd, rsp_nm, rsp_id, attr_nm, attr_val / # ----------------------------------------------------------------------- # KREN_CHNL_S # ----------------------------------------------------------------------- drop table if exists KREN_CHNL_S / CREATE TABLE KREN_CHNL_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_CHNL_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_CHNL_SUBSCRP_S # ----------------------------------------------------------------------- drop table if exists KREN_CHNL_SUBSCRP_S / CREATE TABLE KREN_CHNL_SUBSCRP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_CHNL_SUBSCRP_S auto_increment = 1020 / # ----------------------------------------------------------------------- # KREN_CNTNT_TYP_S # ----------------------------------------------------------------------- drop table if exists KREN_CNTNT_TYP_S / CREATE TABLE KREN_CNTNT_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_CNTNT_TYP_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_MSG_DELIV_S # ----------------------------------------------------------------------- drop table if exists KREN_MSG_DELIV_S / CREATE TABLE KREN_MSG_DELIV_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_MSG_DELIV_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_MSG_S # ----------------------------------------------------------------------- drop table if exists KREN_MSG_S / CREATE TABLE KREN_MSG_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_MSG_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_NTFCTN_MSG_DELIV_S # ----------------------------------------------------------------------- drop table if exists KREN_NTFCTN_MSG_DELIV_S / CREATE TABLE KREN_NTFCTN_MSG_DELIV_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_NTFCTN_MSG_DELIV_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_NTFCTN_S # ----------------------------------------------------------------------- drop table if exists KREN_NTFCTN_S / CREATE TABLE KREN_NTFCTN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_NTFCTN_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_PRIO_S # ----------------------------------------------------------------------- drop table if exists KREN_PRIO_S / CREATE TABLE KREN_PRIO_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_PRIO_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_PRODCR_S # ----------------------------------------------------------------------- drop table if exists KREN_PRODCR_S / CREATE TABLE KREN_PRODCR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_PRODCR_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_RECIP_DELIV_S # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_DELIV_S / CREATE TABLE KREN_RECIP_DELIV_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_RECIP_DELIV_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_RECIP_LIST_S # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_LIST_S / CREATE TABLE KREN_RECIP_LIST_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_RECIP_LIST_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_RECIP_PREF_S # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_PREF_S / CREATE TABLE KREN_RECIP_PREF_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_RECIP_PREF_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_RECIP_S # ----------------------------------------------------------------------- drop table if exists KREN_RECIP_S / CREATE TABLE KREN_RECIP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_RECIP_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_RVWER_S # ----------------------------------------------------------------------- drop table if exists KREN_RVWER_S / CREATE TABLE KREN_RVWER_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_RVWER_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREN_SNDR_S # ----------------------------------------------------------------------- drop table if exists KREN_SNDR_S / CREATE TABLE KREN_SNDR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREN_SNDR_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KREW_ACTN_ITM_S # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_ITM_S / CREATE TABLE KREW_ACTN_ITM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_ACTN_ITM_S auto_increment = 10226 / # ----------------------------------------------------------------------- # KREW_ACTN_LIST_OPTN_S # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_LIST_OPTN_S / CREATE TABLE KREW_ACTN_LIST_OPTN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_ACTN_LIST_OPTN_S auto_increment = 1269 / # ----------------------------------------------------------------------- # KREW_ACTN_RQST_S # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_RQST_S / CREATE TABLE KREW_ACTN_RQST_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_ACTN_RQST_S auto_increment = 2369 / # ----------------------------------------------------------------------- # KREW_ACTN_TKN_S # ----------------------------------------------------------------------- drop table if exists KREW_ACTN_TKN_S / CREATE TABLE KREW_ACTN_TKN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_ACTN_TKN_S auto_increment = 2329 / # ----------------------------------------------------------------------- # KREW_ATTR_DEFN_S # ----------------------------------------------------------------------- drop table if exists KREW_ATTR_DEFN_S / CREATE TABLE KREW_ATTR_DEFN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_ATTR_DEFN_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_DOC_HDR_S # ----------------------------------------------------------------------- drop table if exists KREW_DOC_HDR_S / CREATE TABLE KREW_DOC_HDR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_DOC_HDR_S auto_increment = 3010 / # ----------------------------------------------------------------------- # KREW_DOC_LNK_S # ----------------------------------------------------------------------- drop table if exists KREW_DOC_LNK_S / CREATE TABLE KREW_DOC_LNK_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_DOC_LNK_S auto_increment = 2000 / # ----------------------------------------------------------------------- # KREW_DOC_NTE_S # ----------------------------------------------------------------------- drop table if exists KREW_DOC_NTE_S / CREATE TABLE KREW_DOC_NTE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_DOC_NTE_S auto_increment = 2020 / # ----------------------------------------------------------------------- # KREW_DOC_TYP_ATTR_S # ----------------------------------------------------------------------- drop table if exists KREW_DOC_TYP_ATTR_S / CREATE TABLE KREW_DOC_TYP_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_DOC_TYP_ATTR_S auto_increment = 2010 / # ----------------------------------------------------------------------- # KREW_EDL_FLD_DMP_S # ----------------------------------------------------------------------- drop table if exists KREW_EDL_FLD_DMP_S / CREATE TABLE KREW_EDL_FLD_DMP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_EDL_FLD_DMP_S auto_increment = 5000 / # ----------------------------------------------------------------------- # KREW_EDL_S # ----------------------------------------------------------------------- drop table if exists KREW_EDL_S / CREATE TABLE KREW_EDL_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_EDL_S auto_increment = 2022 / # ----------------------------------------------------------------------- # KREW_OUT_BOX_ITM_S # ----------------------------------------------------------------------- drop table if exists KREW_OUT_BOX_ITM_S / CREATE TABLE KREW_OUT_BOX_ITM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_OUT_BOX_ITM_S auto_increment = 10043 / # ----------------------------------------------------------------------- # KREW_PPL_FLW_ATTR_S # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_ATTR_S / CREATE TABLE KREW_PPL_FLW_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_PPL_FLW_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_PPL_FLW_DLGT_S # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_DLGT_S / CREATE TABLE KREW_PPL_FLW_DLGT_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_PPL_FLW_DLGT_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_PPL_FLW_MBR_S # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_MBR_S / CREATE TABLE KREW_PPL_FLW_MBR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_PPL_FLW_MBR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_PPL_FLW_S # ----------------------------------------------------------------------- drop table if exists KREW_PPL_FLW_S / CREATE TABLE KREW_PPL_FLW_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_PPL_FLW_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_RSP_S # ----------------------------------------------------------------------- drop table if exists KREW_RSP_S / CREATE TABLE KREW_RSP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RSP_S auto_increment = 2065 / # ----------------------------------------------------------------------- # KREW_RTE_NODE_CFG_PARM_S # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_CFG_PARM_S / CREATE TABLE KREW_RTE_NODE_CFG_PARM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RTE_NODE_CFG_PARM_S auto_increment = 2485 / # ----------------------------------------------------------------------- # KREW_RTE_NODE_S # ----------------------------------------------------------------------- drop table if exists KREW_RTE_NODE_S / CREATE TABLE KREW_RTE_NODE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RTE_NODE_S auto_increment = 2923 / # ----------------------------------------------------------------------- # KREW_RTE_TMPL_S # ----------------------------------------------------------------------- drop table if exists KREW_RTE_TMPL_S / CREATE TABLE KREW_RTE_TMPL_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RTE_TMPL_S auto_increment = 1645 / # ----------------------------------------------------------------------- # KREW_RULE_EXPR_S # ----------------------------------------------------------------------- drop table if exists KREW_RULE_EXPR_S / CREATE TABLE KREW_RULE_EXPR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RULE_EXPR_S auto_increment = 2002 / # ----------------------------------------------------------------------- # KREW_RULE_TMPL_OPTN_S # ----------------------------------------------------------------------- drop table if exists KREW_RULE_TMPL_OPTN_S / CREATE TABLE KREW_RULE_TMPL_OPTN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_RULE_TMPL_OPTN_S auto_increment = 2020 / # ----------------------------------------------------------------------- # KREW_SRCH_ATTR_S # ----------------------------------------------------------------------- drop table if exists KREW_SRCH_ATTR_S / CREATE TABLE KREW_SRCH_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_SRCH_ATTR_S auto_increment = 2060 / # ----------------------------------------------------------------------- # KREW_TYP_ATTR_S # ----------------------------------------------------------------------- drop table if exists KREW_TYP_ATTR_S / CREATE TABLE KREW_TYP_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_TYP_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_TYP_S # ----------------------------------------------------------------------- drop table if exists KREW_TYP_S / CREATE TABLE KREW_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_TYP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KREW_USR_S # ----------------------------------------------------------------------- drop table if exists KREW_USR_S / CREATE TABLE KREW_USR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KREW_USR_S auto_increment = 100000000000 / # ----------------------------------------------------------------------- # KRIM_ATTR_DATA_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ATTR_DATA_ID_S / CREATE TABLE KRIM_ATTR_DATA_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ATTR_DATA_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ATTR_DEFN_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ATTR_DEFN_ID_S / CREATE TABLE KRIM_ATTR_DEFN_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ATTR_DEFN_ID_S auto_increment = 10003 / # ----------------------------------------------------------------------- # KRIM_DLGN_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_DLGN_ID_S / CREATE TABLE KRIM_DLGN_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_DLGN_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_DLGN_MBR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_DLGN_MBR_ID_S / CREATE TABLE KRIM_DLGN_MBR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_DLGN_MBR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_ADDR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ADDR_ID_S / CREATE TABLE KRIM_ENTITY_ADDR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_ADDR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_AFLTN_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_AFLTN_ID_S / CREATE TABLE KRIM_ENTITY_AFLTN_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_AFLTN_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_CTZNSHP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_CTZNSHP_ID_S / CREATE TABLE KRIM_ENTITY_CTZNSHP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_CTZNSHP_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_EMAIL_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EMAIL_ID_S / CREATE TABLE KRIM_ENTITY_EMAIL_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_EMAIL_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_EMP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EMP_ID_S / CREATE TABLE KRIM_ENTITY_EMP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_EMP_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_ETHNIC_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ETHNIC_ID_S / CREATE TABLE KRIM_ENTITY_ETHNIC_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_ETHNIC_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_EXT_ID_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_EXT_ID_ID_S / CREATE TABLE KRIM_ENTITY_EXT_ID_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_EXT_ID_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_ID_S / CREATE TABLE KRIM_ENTITY_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_NM_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_NM_ID_S / CREATE TABLE KRIM_ENTITY_NM_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_NM_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_PHONE_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_PHONE_ID_S / CREATE TABLE KRIM_ENTITY_PHONE_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_PHONE_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_RESIDENCY_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_RESIDENCY_ID_S / CREATE TABLE KRIM_ENTITY_RESIDENCY_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_RESIDENCY_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ENTITY_VISA_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ENTITY_VISA_ID_S / CREATE TABLE KRIM_ENTITY_VISA_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ENTITY_VISA_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_GRP_ATTR_DATA_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_ATTR_DATA_ID_S / CREATE TABLE KRIM_GRP_ATTR_DATA_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_GRP_ATTR_DATA_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_GRP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_ID_S / CREATE TABLE KRIM_GRP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_GRP_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_GRP_MBR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_GRP_MBR_ID_S / CREATE TABLE KRIM_GRP_MBR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_GRP_MBR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_PERM_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_ID_S / CREATE TABLE KRIM_PERM_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_PERM_ID_S auto_increment = 10003 / # ----------------------------------------------------------------------- # KRIM_PERM_RQRD_ATTR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_RQRD_ATTR_ID_S / CREATE TABLE KRIM_PERM_RQRD_ATTR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_PERM_RQRD_ATTR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_PERM_TMPL_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_PERM_TMPL_ID_S / CREATE TABLE KRIM_PERM_TMPL_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_PERM_TMPL_ID_S auto_increment = 10002 / # ----------------------------------------------------------------------- # KRIM_PRNCPL_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_PRNCPL_ID_S / CREATE TABLE KRIM_PRNCPL_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_PRNCPL_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ROLE_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_ID_S / CREATE TABLE KRIM_ROLE_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ROLE_ID_S auto_increment = 10003 / # ----------------------------------------------------------------------- # KRIM_ROLE_MBR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_MBR_ID_S / CREATE TABLE KRIM_ROLE_MBR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ROLE_MBR_ID_S auto_increment = 10003 / # ----------------------------------------------------------------------- # KRIM_ROLE_PERM_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_PERM_ID_S / CREATE TABLE KRIM_ROLE_PERM_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ROLE_PERM_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ROLE_RSP_ACTN_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_RSP_ACTN_ID_S / CREATE TABLE KRIM_ROLE_RSP_ACTN_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ROLE_RSP_ACTN_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_ROLE_RSP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_ROLE_RSP_ID_S / CREATE TABLE KRIM_ROLE_RSP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_ROLE_RSP_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_RSP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_ID_S / CREATE TABLE KRIM_RSP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_RSP_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_RSP_RQRD_ATTR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_RQRD_ATTR_ID_S / CREATE TABLE KRIM_RSP_RQRD_ATTR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_RSP_RQRD_ATTR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_RSP_TMPL_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_RSP_TMPL_ID_S / CREATE TABLE KRIM_RSP_TMPL_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_RSP_TMPL_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_TYP_ATTR_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_TYP_ATTR_ID_S / CREATE TABLE KRIM_TYP_ATTR_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_TYP_ATTR_ID_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRIM_TYP_ID_S # ----------------------------------------------------------------------- drop table if exists KRIM_TYP_ID_S / CREATE TABLE KRIM_TYP_ID_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRIM_TYP_ID_S auto_increment = 10002 / # ----------------------------------------------------------------------- # KRMS_ACTN_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_ACTN_ATTR_S / CREATE TABLE KRMS_ACTN_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_ACTN_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_ACTN_S # ----------------------------------------------------------------------- drop table if exists KRMS_ACTN_S / CREATE TABLE KRMS_ACTN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_ACTN_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_AGENDA_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_ATTR_S / CREATE TABLE KRMS_AGENDA_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_AGENDA_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_AGENDA_ITM_S # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_ITM_S / CREATE TABLE KRMS_AGENDA_ITM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_AGENDA_ITM_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_AGENDA_S # ----------------------------------------------------------------------- drop table if exists KRMS_AGENDA_S / CREATE TABLE KRMS_AGENDA_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_AGENDA_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_ATTR_DEFN_S # ----------------------------------------------------------------------- drop table if exists KRMS_ATTR_DEFN_S / CREATE TABLE KRMS_ATTR_DEFN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_ATTR_DEFN_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CMPND_PROP_PROPS_S # ----------------------------------------------------------------------- drop table if exists KRMS_CMPND_PROP_PROPS_S / CREATE TABLE KRMS_CMPND_PROP_PROPS_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CMPND_PROP_PROPS_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_ATTR_S / CREATE TABLE KRMS_CNTXT_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_S / CREATE TABLE KRMS_CNTXT_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_ACTN_TYP_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_ACTN_TYP_S / CREATE TABLE KRMS_CNTXT_VLD_ACTN_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_VLD_ACTN_TYP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_AGENDA_TYP_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_AGENDA_TYP_S / CREATE TABLE KRMS_CNTXT_VLD_AGENDA_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_VLD_AGENDA_TYP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_FUNC_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_FUNC_S / CREATE TABLE KRMS_CNTXT_VLD_FUNC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_VLD_FUNC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_RULE_TYP_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_RULE_TYP_S / CREATE TABLE KRMS_CNTXT_VLD_RULE_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_VLD_RULE_TYP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CNTXT_VLD_TERM_SPEC_S # ----------------------------------------------------------------------- drop table if exists KRMS_CNTXT_VLD_TERM_SPEC_S / CREATE TABLE KRMS_CNTXT_VLD_TERM_SPEC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CNTXT_VLD_TERM_SPEC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_CTGRY_S # ----------------------------------------------------------------------- drop table if exists KRMS_CTGRY_S / CREATE TABLE KRMS_CTGRY_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_CTGRY_S auto_increment = 1 / # ----------------------------------------------------------------------- # KRMS_FUNC_PARM_S # ----------------------------------------------------------------------- drop table if exists KRMS_FUNC_PARM_S / CREATE TABLE KRMS_FUNC_PARM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_FUNC_PARM_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_FUNC_S # ----------------------------------------------------------------------- drop table if exists KRMS_FUNC_S / CREATE TABLE KRMS_FUNC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_FUNC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_NL_TMPL_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_NL_TMPL_ATTR_S / CREATE TABLE KRMS_NL_TMPL_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_NL_TMPL_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_NL_TMPL_S # ----------------------------------------------------------------------- drop table if exists KRMS_NL_TMPL_S / CREATE TABLE KRMS_NL_TMPL_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_NL_TMPL_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_NL_USAGE_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_NL_USAGE_ATTR_S / CREATE TABLE KRMS_NL_USAGE_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_NL_USAGE_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_NL_USAGE_S # ----------------------------------------------------------------------- drop table if exists KRMS_NL_USAGE_S / CREATE TABLE KRMS_NL_USAGE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_NL_USAGE_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_PROP_PARM_S # ----------------------------------------------------------------------- drop table if exists KRMS_PROP_PARM_S / CREATE TABLE KRMS_PROP_PARM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_PROP_PARM_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_PROP_S # ----------------------------------------------------------------------- drop table if exists KRMS_PROP_S / CREATE TABLE KRMS_PROP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_PROP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_REF_OBJ_KRMS_OBJ_S # ----------------------------------------------------------------------- drop table if exists KRMS_REF_OBJ_KRMS_OBJ_S / CREATE TABLE KRMS_REF_OBJ_KRMS_OBJ_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_REF_OBJ_KRMS_OBJ_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_RULE_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_RULE_ATTR_S / CREATE TABLE KRMS_RULE_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_RULE_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_RULE_S # ----------------------------------------------------------------------- drop table if exists KRMS_RULE_S / CREATE TABLE KRMS_RULE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_RULE_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_PARM_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_PARM_S / CREATE TABLE KRMS_TERM_PARM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_PARM_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_ATTR_S / CREATE TABLE KRMS_TERM_RSLVR_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_RSLVR_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_INPUT_SPEC_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_INPUT_SPEC_S / CREATE TABLE KRMS_TERM_RSLVR_INPUT_SPEC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_RSLVR_INPUT_SPEC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_PARM_SPEC_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_PARM_SPEC_S / CREATE TABLE KRMS_TERM_RSLVR_PARM_SPEC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_RSLVR_PARM_SPEC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_RSLVR_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_RSLVR_S / CREATE TABLE KRMS_TERM_RSLVR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_RSLVR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_S / CREATE TABLE KRMS_TERM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TERM_SPEC_S # ----------------------------------------------------------------------- drop table if exists KRMS_TERM_SPEC_S / CREATE TABLE KRMS_TERM_SPEC_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TERM_SPEC_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TYP_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_ATTR_S / CREATE TABLE KRMS_TYP_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TYP_ATTR_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TYP_RELN_S # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_RELN_S / CREATE TABLE KRMS_TYP_RELN_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TYP_RELN_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRMS_TYP_S # ----------------------------------------------------------------------- drop table if exists KRMS_TYP_S / CREATE TABLE KRMS_TYP_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRMS_TYP_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRNS_DOC_TYP_ATTR_S # ----------------------------------------------------------------------- drop table if exists KRNS_DOC_TYP_ATTR_S / CREATE TABLE KRNS_DOC_TYP_ATTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_DOC_TYP_ATTR_S auto_increment = 1000 / # ----------------------------------------------------------------------- # KRNS_LOCK_S # ----------------------------------------------------------------------- drop table if exists KRNS_LOCK_S / CREATE TABLE KRNS_LOCK_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_LOCK_S auto_increment = 2000 / # ----------------------------------------------------------------------- # KRNS_LOOKUP_RSLT_S # ----------------------------------------------------------------------- drop table if exists KRNS_LOOKUP_RSLT_S / CREATE TABLE KRNS_LOOKUP_RSLT_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_LOOKUP_RSLT_S auto_increment = 2000 / # ----------------------------------------------------------------------- # KRNS_MAINT_DOC_ATT_S # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_DOC_ATT_S / CREATE TABLE KRNS_MAINT_DOC_ATT_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_MAINT_DOC_ATT_S auto_increment = 10000 / # ----------------------------------------------------------------------- # KRNS_MAINT_LOCK_S # ----------------------------------------------------------------------- drop table if exists KRNS_MAINT_LOCK_S / CREATE TABLE KRNS_MAINT_LOCK_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_MAINT_LOCK_S auto_increment = 2020 / # ----------------------------------------------------------------------- # KRNS_NTE_S # ----------------------------------------------------------------------- drop table if exists KRNS_NTE_S / CREATE TABLE KRNS_NTE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRNS_NTE_S auto_increment = 2020 / # ----------------------------------------------------------------------- # KRSB_BAM_PARM_S # ----------------------------------------------------------------------- drop table if exists KRSB_BAM_PARM_S / CREATE TABLE KRSB_BAM_PARM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRSB_BAM_PARM_S auto_increment = 2000 / # ----------------------------------------------------------------------- # KRSB_BAM_S # ----------------------------------------------------------------------- drop table if exists KRSB_BAM_S / CREATE TABLE KRSB_BAM_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRSB_BAM_S auto_increment = 2000 / # ----------------------------------------------------------------------- # KRSB_MSG_QUE_S # ----------------------------------------------------------------------- drop table if exists KRSB_MSG_QUE_S / CREATE TABLE KRSB_MSG_QUE_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRSB_MSG_QUE_S auto_increment = 467 / # ----------------------------------------------------------------------- # KRSB_SVC_DEF_S # ----------------------------------------------------------------------- drop table if exists KRSB_SVC_DEF_S / CREATE TABLE KRSB_SVC_DEF_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRSB_SVC_DEF_S auto_increment = 10105 / # ----------------------------------------------------------------------- # KRSB_SVC_DSCRPTR_S # ----------------------------------------------------------------------- drop table if exists KRSB_SVC_DSCRPTR_S / CREATE TABLE KRSB_SVC_DSCRPTR_S ( id bigint(19) not null auto_increment, primary key (id) ) ENGINE MyISAM / ALTER TABLE KRSB_SVC_DSCRPTR_S auto_increment = 10105 /
create table `sys_upload_file` ( `id` bigint unsigned not null auto_increment, `name` varchar(512) default null comment '文件名称', `path` varchar(512) default null comment '文件存储路径[相对路径]', `type` varchar(128) default null comment '文件类型[content-type]', `size` int default null comment '文件大小[单位:字节]', `storage_type` tinyint unsigned default null comment '存储类型[1:本地文件系统 2:minio]', `is_deleted` tinyint unsigned default '0' comment '是否删除[false:未删除 true:已删除]', `create_time` datetime default null comment '创建时间', `update_time` datetime default null comment '修改时间', primary key (`id`), unique key `uk_path` (`path`) ) engine = innodb default charset = utf8mb4 collate = utf8mb4_0900_ai_ci comment ='文件表';
<gh_stars>1-10 -- -- Find Objects that are not referenced by other objects. -- -- See also -> dep.sql and -> ref.sql -- select owner, lower(object_name), object_name, object_type from ( select owner, object_name from dba_objects where owner = '&owner' and object_type not in ('INDEX', 'INDEX PARTITION', 'INDEX SUBPARTITION', 'TABLE PARTITION', 'LOB', 'LOB PARTITION', 'TRIGGER', 'JOB', 'SYNONYM') minus select referenced_owner, referenced_name from dba_dependencies where type not in ('SYNONYM') ) join user_objects using (object_name) order by object_name ;
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. \c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER; \set TEST_BASE_NAME data_fetcher SELECT format('include/%s_load.sql', :'TEST_BASE_NAME') as "TEST_LOAD_NAME", format('include/%s_run.sql', :'TEST_BASE_NAME') as "TEST_QUERY_NAME", format('%s/results/%s_results_cursor.out', :'TEST_OUTPUT_DIR', :'TEST_BASE_NAME') as "TEST_RESULTS_CURSOR", format('%s/results/%s_results_row_by_row.out', :'TEST_OUTPUT_DIR', :'TEST_BASE_NAME') as "TEST_RESULTS_ROW_BY_ROW" \gset SELECT format('\! diff %s %s', :'TEST_RESULTS_CURSOR', :'TEST_RESULTS_ROW_BY_ROW') as "DIFF_CMD" \gset SET client_min_messages TO warning; \ir :TEST_LOAD_NAME \set ECHO errors SET client_min_messages TO error; -- run the queries using row by row fetcher \o :TEST_RESULTS_ROW_BY_ROW \ir :TEST_QUERY_NAME \o -- run queries using cursor fetcher SET timescaledb.remote_data_fetcher = cursor; \o :TEST_RESULTS_CURSOR \ir :TEST_QUERY_NAME \o -- compare results :DIFF_CMD
DROP VIEW IF EXISTS finance.cash_flow_heading_scrud_view; CREATE VIEW finance.cash_flow_heading_scrud_view AS SELECT finance.cash_flow_headings.cash_flow_heading_id, finance.cash_flow_headings.cash_flow_heading_code, finance.cash_flow_headings.cash_flow_heading_name, finance.cash_flow_headings.cash_flow_heading_type, finance.cash_flow_headings.is_debit, finance.cash_flow_headings.is_sales, finance.cash_flow_headings.is_purchase FROM finance.cash_flow_headings WHERE NOT finance.cash_flow_headings.deleted;
<reponame>Gporttreasure/-<gh_stars>1-10 DROP TABLE IF EXISTS `question_info`; CREATE TABLE `question_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subject_id` int(11) NOT NULL COMMENT '课程名称', `create_date` datetime(0) NULL DEFAULT NULL, `update_date` datetime(0) NULL DEFAULT NULL, `video_url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `answer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '答案', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '试题内容', `school_type` int(2) NOT NULL COMMENT '阶段id', `question_type` int(2) NOT NULL COMMENT '试题类型', `grade_info_id` int(2) NOT NULL, `options` json NULL COMMENT '试题选项(多个以逗号隔开)', `analysis` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '试题解析内容', `summarize` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '总结升华', `language_points_id` int(11) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '试题信息表' ROW_FORMAT = Dynamic;
{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %} {{ return(adapter.dispatch('get_relations_by_pattern', packages = dbt_utils._get_utils_namespaces())(schema_pattern, table_pattern, exclude, database)) }} {% endmacro %} {% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %} {%- call statement('get_tables', fetch_result=True) %} {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }} {%- endcall -%} {%- set table_list = load_result('get_tables') -%} {%- if table_list and table_list['table'] -%} {%- set tbl_relations = [] -%} {%- for row in table_list['table'] -%} {%- set tbl_relation = api.Relation.create( database=database, schema=row.table_schema, identifier=row.table_name, type=row.table_type ) -%} {%- do tbl_relations.append(tbl_relation) -%} {%- endfor -%} {{ return(tbl_relations) }} {%- else -%} {{ return([]) }} {%- endif -%} {% endmacro %}
-- This table tracked the migrations in the v1.0 (elixir) notifications service -- the golang-migrate tooling we use now uses a table named `schema_migrations` DROP TABLE IF EXISTS migrations;
DROP TABLE IF EXISTS t_a, t_b; CREATE TABLE t_a ( col_a INT, col_b INT, col_c INT ); CREATE TABLE t_b ( col_a INT, col_b INT, col_c INT ); --subquery check. has instnum (unmergable) CREATE OR REPLACE view v AS SELECT a.col_a, b.col_b col_b FROM t_a a, t_b b WHERE a.col_a = b.col_a ORDER BY b.col_a LIMIT 10; SELECT /*+ recompile */ a.col_a FROM v a, t_b b WHERE a.col_a = b.col_a AND b.col_b = 2; DROP VIEW v; DROP TABLE t_a, t_b;
INSERT INTO `taskforce`.`user` (`email`,`name`,`password`,`date_add`,`city_id`,`address`,`birthday`,`about`,`phone`,`skype`) VALUES ("<EMAIL>","<NAME>","JcfoKBYAB4k","2019-08-10 12:00:00","5"," 38737 Moose Avenue","1989-11-11","In est risus, auctor sed, tristique in, tempus sit amet, sem. Fusce consequat.","64574473047","high-level"), ("<EMAIL>","<NAME>","ZE<PASSWORD>kg","2018-12-21 12:00:00","7","738 Hagan Lane","1989-03-05","verra pede ac diam. Cras pellentes","64574473047","stjyt"), ("<EMAIL>","<NAME>","VJyMV1Zat","2019-07-25 12:00:00","54"," 738 Hagan Lane","1989-03-05","Pellentesque ultrices mattis odio.","75531015353","mobile"), ("<EMAIL>","<NAME>","XUIeJ693h","2018-11-13 12:00:00","6"," 758 Old Shore Parkway","1989-12-30","Morbi a ipsum. Integer a nibh. In quis justo.","16371407508","Re-engineered"), ("<EMAIL>","<NAME>","oWspnl","2019-07-20 12:00:00","34"," 11 Dovetail Junction","0629-03-03","Suspendisse potenti.","21468788926","Grass-roots"), ("<EMAIL>","<NAME>","GdtcUU","2019-02-12 12:00:00","2"," 050 Bow<NAME>","1989-04-08","Morbi quis tortor id nulla ultrices aliquet. Maecenas leo odio, condimentum id, luctus nec, molestie sed, justo.","62931646367","fault-tolerant"), ("<EMAIL>","<NAME>","UQw6VeA","2019-05-03 12:00:00","32"," 5 Iowa Avenue","1989-04-18","Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris viverra diam vitae quam.","63271348718","Team-oriented"), ("<EMAIL>","<NAME>","49znXd7haFGz","2019-01-13 12:00:00","35"," 87119 Northland Hill","1989-03-20","Sed vel enim sit amet nunc viverra dapibus. Nulla suscipit ligula in lacus.","41056175169","portal"), ("<EMAIL>","<NAME>","unCjJTF7sjs","2019-09-15 12:00:00","7"," 6823 Lillian Point","1989-12-13","Pellentesque viverra pede ac diam. Cras pellentesque volutpat dui. Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc.","72882384431","intermediate"), ("<EMAIL>","<NAME>","dLuVMAg","2018-12-19 12:00:00","5"," 43 Marquette Plaza","1989-01-14","Morbi ut odio.","69043821394","local area network"), ("<EMAIL>","<NAME>","tQlUG4n","2019-03-24 12:00:00","8"," 5303 Village Green Hill","1989-02-03","Suspendisse ornare consequat lectus. In est risus, auctor sed, tristique in, tempus sit amet, sem. Fusce consequat.","28396220507","upward-trending"), ("<EMAIL>","<NAME>","s9y9Mcfgy1g","2019-09-27 12:00:00","67"," 67399 Reindahl Place","1989-05-23","Phasellus sit amet erat. Nulla tempus. Vivamus in felis eu sapien cursus vestibulum.","83344513307","grid-enabled"), ("<EMAIL>","<NAME>","9qd747vh","2018-12-06 12:00:00","4"," 45 <NAME> Hill","1989-07-06","Vivamus metus arcu, adipiscing molestie, hendrerit at, vulputate vitae, nisl. Aenean lectus. Pellentesque eget nunc.","64890419671","background"), ("<EMAIL>","<NAME>","zzN5c4","2018-11-18 12:00:00","6"," 46 Sheridan Place","1903-04-16","Quisque ut erat. Curabitur gravida nisi at nibh. In hac habitasse platea dictumst.","23005580487","challenge"), ("<EMAIL>","<NAME>","j9QW6GQI","2018-10-14 12:00:00","7"," 73 K<NAME>","1989-11-07","Pellentesque at nulla. Suspendisse potenti. Cras in purus eu magna vulputate luctus.","27052074771","coherent"), ("<EMAIL>","<NAME>","1aukKNEIneq","2019-05-03 12:00:00","32"," 85509 Ludington Drive","1989-02-13","Cras pellentesque volutpat dui.","14800371520","neutral"), ("<EMAIL>","<NAME>","3chTNtqhoo","2018-12-25 12:00:00","3"," 67 Northwestern Center","1989-07-07","Aliquam erat volutpat. In congue.","75569924500","Programmable"), ("<EMAIL>","<NAME>","2UdKIR2f","2019-04-07 12:00:00","2"," 725 Eagle Crest Hill","1989-09-29","Nulla ac enim. In tempor, turpis nec euismod scelerisque, quam turpis adipiscing lorem, vitae mattis nibh ligula nec sem. Duis aliquam convallis nunc.","37349256497","encompassing"), ("<EMAIL>","<NAME>","nGZ8disdg","2019-07-18 12:00:00","1"," 507 Graceland Junction","1989-03-19","Suspendisse potenti.","12403580562","knowledge base"), ("<EMAIL>","<NAME>","bL9tAf","2018-11-25 12:00:00","7"," 92 Gina Park","1989-09-29","Phasellus sit amet erat.","40139478003","dynamic")
CREATE TABLE IF NOT EXISTS `comments` ( `id` int(11) NOT NULL auto_increment, `parent_id` int(11) NOT NULL, `state` varchar(8) NOT NULL, `date` int(10) NOT NULL, `name` varchar(64) NOT NULL, `email` varchar(128) NOT NULL, `url` varchar(128) NOT NULL, `text` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
<reponame>DanRJ/altinn-studio -- Procecure: insert_change CREATE OR REPLACE PROCEDURE delegation.insert_change( _altinnAppId character varying, _offeredByPartyId integer, _coveredByUserId integer, _coveredByPartyId integer, _performedByUserId integer, _blobStoragePolicyPath character varying, _blobStorageVersionId character varying, _isDeleted bool, inout _delegationChangeId bigint) LANGUAGE 'plpgsql' AS $BODY$ BEGIN INSERT INTO delegation.delegationChanges ( altinnAppId, offeredByPartyId, coveredByUserId, coveredByPartyId, performedByUserId, blobStoragePolicyPath, blobStorageVersionId, isDeleted ) VALUES ( _altinnAppId, _offeredByPartyId, _coveredByUserId, _coveredByPartyId, _performedByUserId, _blobStoragePolicyPath, _blobStorageVersionId, _isDeleted ) RETURNING delegationChangeId INTO _delegationChangeId; END; $BODY$; -- Function: get_current_change CREATE OR REPLACE FUNCTION delegation.get_current_change( _altinnAppId character varying, _offeredByPartyId integer, _coveredByUserId integer, _coveredByPartyId integer ) RETURNS SETOF delegation.delegationChanges AS $BODY$ SELECT delegationChangeId, altinnAppId, offeredByPartyId, coveredByUserId, coveredByPartyId, performedByUserId, blobStoragePolicyPath, blobStorageVersionId, isDeleted, created FROM delegation.delegationChanges WHERE altinnAppId = _altinnAppId AND offeredByPartyId = _offeredByPartyId AND (_coveredByUserId IS NULL OR coveredByUserId = _coveredByUserId) AND (_coveredByPartyId IS NULL OR coveredByPartyId = _coveredByPartyId) ORDER BY delegationChangeId DESC LIMIT 1 $BODY$ LANGUAGE sql; -- Function: get_all_changes CREATE OR REPLACE FUNCTION delegation.get_all_changes( IN _altinnAppId character varying, IN _offeredByPartyId integer, IN _coveredByUserId integer, IN _coveredByPartyId integer ) RETURNS SETOF delegation.delegationChanges AS $BODY$ SELECT delegationChangeId, altinnAppId, offeredByPartyId, coveredByUserId, coveredByPartyId, performedByUserId, blobStoragePolicyPath, blobStorageVersionId, isDeleted, created FROM delegation.delegationChanges WHERE altinnAppId = _altinnAppId AND offeredByPartyId = _offeredByPartyId AND (_coveredByUserId IS NULL OR coveredByUserId = _coveredByUserId) AND (_coveredByPartyId IS NULL OR coveredByPartyId = _coveredByPartyId) $BODY$ LANGUAGE sql;
-- @testpoint:opengauss关键字add(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists add; create database add; --清理环境 drop database add; --关键字带双引号-成功 drop database if exists "add"; create database "add"; --清理环境 drop database "add"; --关键字带单引号-合理报错 drop database if exists 'add'; create database 'add'; --关键字带反引号-合理报错 drop database if exists `add`; create database `add`;
DROP DATABASE IF EXISTS ikeaproducts; CREATE DATABASE ikeaproducts; \c ikeaproducts; CREATE TABLE similar_products ( id_similar SERIAL UNIQUE PRIMARY KEY, title_similar varchar(100) NOT NULL, desc_similar varchar(250) NOT NULL, price_similar float NOT NULL, img_similar varchar(100) NOT NULL, created_similar varchar(250) NOT NULL, category_similar int NOT NULL, review int NOT NULL, total int NOT NULL ); /* similar_reviews table */ -- CREATE TABLE similar_reviews ( -- id_sreview int NOT NULL AUTO_INCREMENT, -- review_value float NOT NULL, -- reviewProductID int NOT NULL, -- user_review varchar(250) NOT NULL, -- created_sreview DATETIME NOT NULL, -- PRIMARY KEY(id_sreview), -- FOREIGN KEY (reviewProductID) REFERENCES similar_products (id_similar) -- );
<gh_stars>0 SET DEFINE OFF; Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('AD_PRES', 'President', 20000, 40000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('AD_VP', 'Administration Vice President', 15000, 30000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('AD_ASST', 'Administration Assistant', 3000, 6000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('FI_MGR', 'Finance Manager', 8200, 16000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('FI_ACCOUNT', 'Accountant', 4200, 9000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('AC_MGR', 'Accounting Manager', 8200, 16000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('AC_ACCOUNT', 'Public Accountant', 4200, 9000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('SA_MAN', 'Sales Manager', 10000, 20000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('SA_REP', 'Sales Representative', 6000, 12000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('PU_MAN', 'Purchasing Manager', 8000, 15000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('PU_CLERK', 'Purchasing Clerk', 2500, 5500); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('ST_MAN', 'Stock Manager', 5500, 8500); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('ST_CLERK', 'Stock Clerk', 2000, 5000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('SH_CLERK', 'Shipping Clerk', 2500, 5500); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('IT_PROG', 'Programmer', 4000, 10000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('MK_MAN', 'Marketing Manager', 9000, 15000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('MK_REP', 'Marketing Representative', 4000, 9000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('HR_REP', 'Human Resources Representative', 4000, 9000); Insert into JOBS (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY) Values ('PR_REP', 'Public Relations Representative', 4500, 10500); COMMIT;
alter table eg_bill add column emailid character varying(128);
<gh_stars>0 SELECT * FROM public.elections WHERE year IN (2008, 2013) AND rvotes = 1 LIMIT 100; UPDATE public.elections SET na_name = CASE WHEN na_name LIKE ('%?%') THEN (substring(na_name, 2)) ELSE na_name END ; --16022 records updated -- number of seats with voting per year SELECT count(DISTINCT na_value) as seats, year FROM public.elections WHERE year IN (2002, 2008, 2013) AND rvotes = 1 GROUP BY year ; SELECT DISTINCT 'NA-'||na_value as na_number, count(*) as records FROM public.elections GROUP BY na_number ORDER BY records DESC LIMIT 100; --number of seats that had a runner up by election year SELECT year, count(DISTINCT na_value) as seats_with_runner_up FROM public.elections WHERE rvotes = 2 GROUP BY year ; SELECT * FROM public.elections WHERE year = 2013 AND rvotes = 1 LIMIT 100; --check which column to use for inputting total_votes and turnout SELECT votes_polled, valid_votes+rejected_votes, total_votes, registered_voters, percentageofvotespolledtoregisteredvoters, (valid_votes+rejected_votes)*1.0/registered_voters*100 FROM public.elections WHERE year = 2013 AND rvotes = 1 LIMIT 100; SELECT * FROM public.elections WHERE percentageofvotespolledtoregisteredvoters = 0 --registered_voters < 1 --votes_polled < 1 AND year = 2013 AND rvotes = 1 LIMIT 100; --updated 2013 records where total_votes and turn_out columns is NULL UPDATE public.elections SET total_votes = votes_polled, turn_out = percentageofvotespolledtoregisteredvoters WHERE year = 2013 ; --4456 records updated --updated 2013 results where percentageofvotespolledtoregisteredvoters = 0 even though the ingredient columns are > 0 UPDATE public.elections SET turn_out = total_votes*1.0/registered_voters WHERE year = 2013 AND percentageofvotespolledtoregisteredvoters = 0 AND registered_voters > 0 ; --70 records updated -- Top winning parties in 2013 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2013 GROUP BY party ORDER BY seats DESC ; UPDATE public.elections SET party = CASE WHEN party = 'Pakistan Muslim League' THEN 'Pakistan Muslim League (Q)' END WHERE year = 2013 AND party IN ('Pakistan Muslim League') ; -- Top winning parties in 2013 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2013 GROUP BY party ORDER BY seats DESC ; -- 52 records updated -- Top winning parties in 2008 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2008 GROUP BY party ORDER BY seats DESC ; UPDATE public.elections SET party = CASE WHEN party = 'Pakistan Peoples Party' THEN 'Pakistan Peoples Party Parliamentarians' WHEN party = 'Pakistan Muslim League' THEN 'Pakistan Muslim League (Q)' END WHERE year = 2008 AND party IN ('Pakistan Peoples Party', 'Pakistan Muslim League') ; -- Top winning parties in 2008 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2008 GROUP BY party ORDER BY seats DESC ; -- Top winning parties in 2002 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2002 GROUP BY party ORDER BY seats DESC ; UPDATE public.elections SET party = CASE WHEN party = 'Pakistan Muslim League(QA)' THEN 'Pakistan Muslim League (Q)' WHEN party = 'Pakistan peoples Party Parlimentarians' THEN 'Pakistan Peoples Party Parliamentarians' WHEN party = 'Pakistan Muslim League(N)' THEN 'Pakistan Muslim League (N)' WHEN party = 'Muttahida Qaumi Moment' THEN 'Muttahida Qaumi Movement' WHEN party = 'Pakistan Muslim League(F)' THEN 'Pakistan Muslim League (F)' WHEN party = 'Pakistan Mulim League(QA)' THEN 'Pakistan Muslim League (Q)' WHEN party = 'Pakistan Muslim League(J)' THEN 'Pakistan Muslim League (J)' WHEN party = 'Pakistan Peoples party(Sherpao)' THEN 'Pakistan Peoples Party (Sherpao)' WHEN party = 'Pakistan Muslim League(Z)' THEN 'Pakistan Muslim League (Z)' WHEN party = 'Pakistan Peoples Party Parlimentarians' THEN 'Pakistan Peoples Party Parliamentarians' WHEN party = 'Pakistan Peoples Party Parliamentarian' THEN 'Pakistan Peoples Party Parliamentarians' WHEN party = 'Muthida Qaumi Movement' THEN 'Muttahida Qaumi Movement' WHEN party = 'Muttahidda Majlis-e-Amal' THEN 'Muttahidda Majlis-e-Amal Pakistan' END WHERE year = 2002 AND party IN ('Pakistan Muslim League(QA)', 'Pakistan peoples Party Parlimentarians', 'Pakistan Muslim League(N)', 'Muttahida Qaumi Moment', 'Pakistan Muslim League(F)', 'Pakistan Mulim League(QA)', 'Pakistan Muslim League(J)', 'Pakistan Peoples party(Sherpao)', 'Pakistan Muslim League(Z)', 'Pakistan Peoples Party Parlimentarians', 'Pakistan Peoples Party Parliamentarian', 'Muthida Qaumi Movement', 'Muttahidda Majlis-e-Amal') ; -- 565 records updated -- Top winning parties in 2002 SELECT party, count(*) as seats FROM public.elections WHERE rvotes <= 2 AND year = 2002 GROUP BY party ORDER BY seats DESC ; SELECT a.year, 'NA-'||a.na_value as na_number, a.na_value, a.na_name, candidate_name as winner, party as winner_party, runnerup, runnerup_party, round(diff_runner_up*100.0/total_votes, 1) as victory_margin, turn_out, CASE WHEN party IN ('Pakistan Muslim League (N)', 'Pakistan Peoples Party Parliamentarians', 'Pakistan Tehreek-e-Insaf', 'Independent', 'Muttahidda Qaumi Movement', 'Jamiat Ulama-e-Islam (F)') THEN party ELSE 'Other' END as winner_party_cat, CASE WHEN runnerup_party IN ('Pakistan Muslim League (N)', 'Pakistan Peoples Party Parliamentarians', 'Pakistan Tehreek-e-Insaf', 'Independent', 'Muttahidda Qaumi Movement', 'Jamiat Ulama-e-Islam (F)') THEN runnerup_party ELSE 'Other' END as runnerup_party_cat FROM public.elections a LEFT JOIN (SELECT year, na_value, candidate_name as runnerup, party as runnerup_party FROM public.elections WHERE year IN (2013) AND rvotes = 2) b ON a.year = b.year AND a.na_value = b.na_value WHERE a.year IN (2013) AND rvotes = 1 ; SELECT a.year, 'NA-'||a.na_value as na_number, a.na_value, a.na_name, candidate_name as winner, party as winner_party, runnerup, runnerup_party, round(diff_runner_up*100.0/total_votes, 1) as victory_margin, turn_out, CASE WHEN party IN ('Pakistan Peoples Party Parliamentarians', 'Pakistan Muslim League (Q)', 'Pakistan Muslim League (N)', 'Independent', 'Muttahida Qaumi Movement Pakistan', 'Awami National Party', 'Mutthida Majlis-e-Amal Pakistan (MMA)') THEN party ELSE 'Other' END as winner_party_cat, CASE WHEN runnerup_party IN ('Pakistan Peoples Party Parliamentarians', 'Pakistan Muslim League (Q)', 'Pakistan Muslim League (N)', 'Independent', 'Muttahida Qaumi Movement Pakistan', 'Awami National Party', 'Mutthida Majlis-e-Amal Pakistan (MMA)') THEN runnerup_party ELSE 'Other' END as runnerup_party_cat FROM public.elections a LEFT JOIN (SELECT year, na_value, candidate_name as runnerup, party as runnerup_party FROM public.elections WHERE year IN (2008) AND rvotes = 2) b ON a.year = b.year AND a.na_value = b.na_value WHERE a.year IN (2008) AND rvotes = 1 ; SELECT a.year, 'NA-'||a.na_value as na_number, a.na_value, a.na_name, candidate_name as winner, party as winner_party, runnerup, runnerup_party, round(diff_runner_up*100.0/total_votes, 1) as victory_margin, turn_out, CASE WHEN party IN ('Pakistan Peoples Party Parliamentarians', 'Pakistan Muslim League (Q)', 'Muttahidda Majlis-e-Amal Pakistan', 'Independent', 'Pakistan Muslim League (N)', 'National Alliance', 'Muttahida Qaumi Movement', 'Awami National Party') THEN party ELSE 'Other' END as winner_party_cat, CASE WHEN runnerup_party IN ('Pakistan Peoples Party Parliamentarians', 'Pakistan Muslim League (Q)', 'Muttahidda Majlis-e-Amal Pakistan', 'Independent', 'Pakistan Muslim League (N)', 'National Alliance', 'Muttahida Qaumi Movement', 'Awami National Party') THEN runnerup_party ELSE 'Other' END as runnerup_party_cat FROM public.elections a LEFT JOIN (SELECT year, na_value, candidate_name as runnerup, party as runnerup_party FROM public.elections WHERE year IN (2002) AND rvotes = 2) b ON a.year = b.year AND a.na_value = b.na_value WHERE a.year IN (2002) AND rvotes = 1 ; SELECT na_name, strpos(na_name, '?') as posit, substring(na_name, 2) FROM public.elections WHERE na_name LIKE ('%?%') LIMIT 100; SELECT * FROM public.elections LIMIT 100 ;
<filename>apex/5.0/f179/application/pages/page_00005.sql<gh_stars>0 prompt --application/pages/page_00005 begin wwv_flow_api.create_page( p_id=>5 ,p_user_interface_id=>wwv_flow_api.id(327304041051455600) ,p_name=>'C_U_D products' ,p_page_mode=>'MODAL' ,p_step_title=>'Product management' ,p_step_sub_title_type=>'TEXT_WITH_SUBSTITUTIONS' ,p_first_item=>'NO_FIRST_ITEM' ,p_autocomplete_on_off=>'OFF' ,p_javascript_code=>'var htmldb_delete_message=''"DELETE_CONFIRM_MSG"'';' ,p_inline_css=>wwv_flow_string.join(wwv_flow_t_varchar2( '.picture {', ' height: 100px;', ' width: 100px;', '}')) ,p_page_template_options=>'#DEFAULT#' ,p_required_role=>wwv_flow_api.id(328224405980893970) ,p_dialog_chained=>'Y' ,p_overwrite_navigation_list=>'N' ,p_page_is_public_y_n=>'Y' ,p_protection_level=>'C' ,p_cache_mode=>'NOCACHE' ,p_last_updated_by=>'defaultUser' ,p_last_upd_yyyymmddhh24miss=>'20000101000000' ); wwv_flow_api.create_page_plug( p_id=>wwv_flow_api.id(329252460087503037) ,p_plug_name=>'Form on SOK_PRODUCT_LIST_VW' ,p_region_template_options=>'#DEFAULT#' ,p_plug_template=>wwv_flow_api.id(327260456234455539) ,p_plug_display_sequence=>10 ,p_include_in_reg_disp_sel_yn=>'N' ,p_plug_display_point=>'BODY' ,p_plug_query_row_template=>1 ,p_attribute_01=>'N' ,p_attribute_02=>'TEXT' ,p_attribute_03=>'Y' ); wwv_flow_api.create_page_plug( p_id=>wwv_flow_api.id(343985716708405437) ,p_plug_name=>'PRODUCT_IMAGE' ,p_parent_plug_id=>wwv_flow_api.id(329252460087503037) ,p_region_template_options=>'#DEFAULT#' ,p_plug_template=>wwv_flow_api.id(327260456234455539) ,p_plug_display_sequence=>10 ,p_include_in_reg_disp_sel_yn=>'N' ,p_plug_display_point=>'BODY' ,p_plug_query_options=>'DERIVED_REPORT_COLUMNS' ,p_plug_display_condition_type=>'FUNCTION_BODY' ,p_plug_display_when_condition=>wwv_flow_string.join(wwv_flow_t_varchar2( 'declare', 'begin', ' if :P5_PRODUCT_ID is not null then', ' for c1 in (select nvl(dbms_lob.getlength(product_image),0) l', ' from sok_product_lu', ' where product_id = :P5_PRODUCT_ID)', ' loop', ' if c1.l > 0 then', ' return true;', ' end if;', ' end loop;', ' end if;', ' return false;', 'end;')) ,p_attribute_01=>'N' ,p_attribute_02=>'HTML' ); wwv_flow_api.create_page_plug( p_id=>wwv_flow_api.id(329253096077503037) ,p_plug_name=>'Buttons' ,p_region_template_options=>'#DEFAULT#' ,p_plug_template=>wwv_flow_api.id(327260825035455539) ,p_plug_display_sequence=>10 ,p_include_in_reg_disp_sel_yn=>'N' ,p_plug_display_point=>'REGION_POSITION_03' ,p_plug_query_row_template=>1 ,p_attribute_01=>'N' ,p_attribute_02=>'TEXT' ,p_attribute_03=>'Y' ); wwv_flow_api.create_page_button( p_id=>wwv_flow_api.id(329253536344503037) ,p_button_sequence=>10 ,p_button_plug_id=>wwv_flow_api.id(329253096077503037) ,p_button_name=>'CANCEL' ,p_button_action=>'DEFINED_BY_DA' ,p_button_template_options=>'#DEFAULT#' ,p_button_template_id=>wwv_flow_api.id(327293267790455585) ,p_button_image_alt=>'Cancel' ,p_button_position=>'REGION_TEMPLATE_CLOSE' ,p_warn_on_unsaved_changes=>null ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ); wwv_flow_api.create_page_button( p_id=>wwv_flow_api.id(329253069686503037) ,p_button_sequence=>20 ,p_button_plug_id=>wwv_flow_api.id(329253096077503037) ,p_button_name=>'DELETE' ,p_button_action=>'REDIRECT_URL' ,p_button_template_options=>'#DEFAULT#' ,p_button_template_id=>wwv_flow_api.id(327293267790455585) ,p_button_image_alt=>'Delete' ,p_button_position=>'REGION_TEMPLATE_DELETE' ,p_button_redirect_url=>'javascript:apex.confirm(htmldb_delete_message,''DELETE'');' ,p_button_execute_validations=>'N' ,p_button_condition=>'P5_PRODUCT_ID' ,p_button_condition_type=>'ITEM_IS_NOT_NULL' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ,p_database_action=>'DELETE' ); wwv_flow_api.create_page_button( p_id=>wwv_flow_api.id(329252972607503037) ,p_button_sequence=>30 ,p_button_plug_id=>wwv_flow_api.id(329253096077503037) ,p_button_name=>'SAVE' ,p_button_action=>'SUBMIT' ,p_button_template_options=>'#DEFAULT#' ,p_button_template_id=>wwv_flow_api.id(327293267790455585) ,p_button_is_hot=>'Y' ,p_button_image_alt=>'Save' ,p_button_position=>'REGION_TEMPLATE_NEXT' ,p_button_condition=>'P5_PRODUCT_ID' ,p_button_condition_type=>'ITEM_IS_NOT_NULL' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ,p_database_action=>'UPDATE' ); wwv_flow_api.create_page_button( p_id=>wwv_flow_api.id(329252806096503037) ,p_button_sequence=>40 ,p_button_plug_id=>wwv_flow_api.id(329253096077503037) ,p_button_name=>'CREATE' ,p_button_action=>'SUBMIT' ,p_button_template_options=>'#DEFAULT#' ,p_button_template_id=>wwv_flow_api.id(327293267790455585) ,p_button_is_hot=>'Y' ,p_button_image_alt=>'Create' ,p_button_position=>'REGION_TEMPLATE_NEXT' ,p_button_condition=>'P5_PRODUCT_ID' ,p_button_condition_type=>'ITEM_IS_NULL' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ,p_database_action=>'INSERT' ); wwv_flow_api.create_page_branch( p_id=>wwv_flow_api.id(394556560216987633) ,p_branch_name=>'Redirect to product details after create product' ,p_branch_action=>'f?p=&APP_ID.:12:&SESSION.::&DEBUG.:RP,12:P12_PRODUCT_ID:&P5_PRODUCT_ID.&success_msg=#SUCCESS_MSG#' ,p_branch_point=>'AFTER_PROCESSING' ,p_branch_type=>'REDIRECT_URL' ,p_branch_when_button_id=>wwv_flow_api.id(329252806096503037) ,p_branch_sequence=>40 ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(329255935550503040) ,p_name=>'P5_PRODUCT_ID' ,p_item_sequence=>10 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_prompt=>'Product Id' ,p_source=>'PRODUCT_ID' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_HIDDEN' ,p_label_alignment=>'RIGHT' ,p_field_template=>wwv_flow_api.id(327292794678455582) ,p_item_template_options=>'#DEFAULT#' ,p_protection_level=>'S' ,p_attribute_01=>'Y' ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(329256362293503064) ,p_name=>'P5_PRODUCT_NAME' ,p_is_required=>true ,p_item_sequence=>50 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_prompt=>'Name' ,p_source=>'PRODUCT_NAME' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_AUTO_COMPLETE' ,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2( 'select product_name ', 'from SOK_PRODUCT_LU', 'where product_name = :P5_PRODUCT_NAME;')) ,p_cSize=>30 ,p_field_template=>wwv_flow_api.id(327292952744455582) ,p_item_template_options=>'#DEFAULT#' ,p_lov_display_extra=>'YES' ,p_attribute_01=>'CONTAINS_IGNORE' ,p_attribute_04=>'N' ,p_attribute_06=>'Y' ,p_attribute_07=>'Y' ,p_attribute_08=>'Y' ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(329256605923503064) ,p_name=>'P5_PRODUCT_DESC' ,p_item_sequence=>60 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_prompt=>'Description' ,p_source=>'PRODUCT_DESC' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_TEXTAREA' ,p_cSize=>60 ,p_cMaxlength=>240 ,p_cHeight=>4 ,p_field_template=>wwv_flow_api.id(327292794678455582) ,p_item_template_options=>'#DEFAULT#' ,p_attribute_01=>'Y' ,p_attribute_02=>'N' ,p_attribute_03=>'N' ,p_attribute_04=>'BOTH' ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(329257066661503064) ,p_name=>'P5_PRODUCT_IMAGE' ,p_item_sequence=>70 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_prompt=>'Image' ,p_post_element_text=>'<canvas id="image-preview" width="100" height="50" style="text-align:center; margin: -7px 0px 0px 30px;"></canvas>' ,p_source=>'PRODUCT_IMAGE' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_FILE' ,p_cSize=>60 ,p_field_template=>wwv_flow_api.id(327292794678455582) ,p_item_template_options=>'#DEFAULT#' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ,p_attribute_01=>'APEX_APPLICATION_TEMP_FILES' ,p_attribute_09=>'SESSION' ,p_attribute_10=>'N' ,p_attribute_11=>'image/*' ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(329259058810503065) ,p_name=>'P5_PRODUCT_PRICE_AMOUNT' ,p_is_required=>true ,p_item_sequence=>120 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_prompt=>'Price(€)' ,p_source=>'PRODUCT_PRICE_AMOUNT' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_TEXT_FIELD' ,p_cSize=>22 ,p_cMaxlength=>255 ,p_field_template=>wwv_flow_api.id(327292952744455582) ,p_item_template_options=>'#DEFAULT#' ,p_attribute_01=>'N' ,p_attribute_02=>'N' ,p_attribute_04=>'TEXT' ,p_attribute_05=>'NONE' ); wwv_flow_api.create_page_item( p_id=>wwv_flow_api.id(343985816771405438) ,p_name=>'P5_IMAGE' ,p_item_sequence=>130 ,p_item_plug_id=>wwv_flow_api.id(329252460087503037) ,p_use_cache_before_default=>'NO' ,p_source=>'PRODUCT_IMAGE' ,p_source_type=>'DB_COLUMN' ,p_display_as=>'NATIVE_DISPLAY_IMAGE' ,p_tag_css_classes=>'picture' ,p_display_when=>'P5_PRODUCT_ID' ,p_display_when_type=>'ITEM_IS_NOT_NULL' ,p_field_template=>wwv_flow_api.id(327292794678455582) ,p_item_template_options=>'#DEFAULT#' ,p_attribute_01=>'SQL' ,p_attribute_06=>wwv_flow_string.join(wwv_flow_t_varchar2( 'select product_image', 'from SOK_PRODUCT_LIST_VW ', 'where product_id = :P5_PRODUCT_ID')) ); wwv_flow_api.create_page_computation( p_id=>wwv_flow_api.id(382899358701154225) ,p_computation_sequence=>10 ,p_computation_item=>'P5_PRODUCT_IMAGE' ,p_computation_type=>'ITEM_VALUE' ,p_computation=>'P5_IMAGE' ,p_compute_when=>'P5_PRODUCT_IMAGE' ,p_compute_when_type=>'ITEM_IS_NULL' ); wwv_flow_api.create_page_validation( p_id=>wwv_flow_api.id(329195603515339526) ,p_validation_name=>'Check if products has been ordered' ,p_validation_sequence=>10 ,p_validation=>wwv_flow_string.join(wwv_flow_t_varchar2( 'begin', '', ' if SOK_PRODUCT_UTIL.product_was_ordered(val_product_id => :P5_product_id) = true then', ' logger.log(:P5_product_id);', ' return false;', ' elsif SOK_PRODUCT_UTIL.product_was_ordered(val_product_id => :P5_product_id) = false then', ' return true;', ' end if;', ' ', 'end;')) ,p_validation_type=>'FUNC_BODY_RETURNING_BOOLEAN' ,p_error_message=>'This product cannot be deleted as it was ordered by a client.' ,p_always_execute=>'N' ,p_when_button_pressed=>wwv_flow_api.id(329253069686503037) ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ); wwv_flow_api.create_page_da_event( p_id=>wwv_flow_api.id(329253643675503037) ,p_name=>'Cancel Dialog' ,p_event_sequence=>10 ,p_triggering_element_type=>'BUTTON' ,p_triggering_button_id=>wwv_flow_api.id(329253536344503037) ,p_bind_type=>'bind' ,p_bind_event_type=>'click' ); wwv_flow_api.create_page_da_action( p_id=>wwv_flow_api.id(329254412737503039) ,p_event_id=>wwv_flow_api.id(329253643675503037) ,p_event_result=>'TRUE' ,p_action_sequence=>10 ,p_execute_on_page_init=>'N' ,p_action=>'NATIVE_DIALOG_CANCEL' ,p_stop_execution_on_error=>'Y' ); wwv_flow_api.create_page_da_event( p_id=>wwv_flow_api.id(382899410666154226) ,p_name=>'Preview' ,p_event_sequence=>20 ,p_triggering_element_type=>'ITEM' ,p_triggering_element=>'P5_PRODUCT_IMAGE' ,p_bind_type=>'bind' ,p_bind_event_type=>'change' ); wwv_flow_api.create_page_da_action( p_id=>wwv_flow_api.id(382899581268154227) ,p_event_id=>wwv_flow_api.id(382899410666154226) ,p_event_result=>'TRUE' ,p_action_sequence=>10 ,p_execute_on_page_init=>'N' ,p_action=>'NATIVE_JAVASCRIPT_CODE' ,p_attribute_01=>wwv_flow_string.join(wwv_flow_t_varchar2( 'try{', ' var canvas = $x(''image-preview'');', ' var ctx = canvas.getContext(''2d'');', ' var img = new Image;', ' ', 'img.src = window.URL.createObjectURL(this.triggeringElement.files[0]);', ' img.onload = function() {', ' if (img.width > 200) {', ' canvas.style.width = "100px";', ' }', ' canvas.width = img.width;', ' canvas.height = img.height;', ' ctx.drawImage(img, 0, 0);', ' $("#container-img-preview").show();', ' }', '} catch (e) {', ' console.log(e);', '}')) ); wwv_flow_api.create_page_da_event( p_id=>wwv_flow_api.id(383704276851197729) ,p_name=>'on dialog close' ,p_event_sequence=>30 ,p_triggering_element_type=>'REGION' ,p_triggering_region_id=>wwv_flow_api.id(329252460087503037) ,p_bind_type=>'bind' ,p_bind_event_type=>'apexafterclosedialog' ); wwv_flow_api.create_page_da_action( p_id=>wwv_flow_api.id(383705109738197735) ,p_event_id=>wwv_flow_api.id(383704276851197729) ,p_event_result=>'TRUE' ,p_action_sequence=>10 ,p_execute_on_page_init=>'N' ,p_action=>'NATIVE_JAVASCRIPT_CODE' ,p_attribute_01=>'apex.message.showPageSuccess(this.data.successMessage.text)' ,p_stop_execution_on_error=>'Y' ); wwv_flow_api.create_page_da_action( p_id=>wwv_flow_api.id(383704594633197734) ,p_event_id=>wwv_flow_api.id(383704276851197729) ,p_event_result=>'TRUE' ,p_action_sequence=>20 ,p_execute_on_page_init=>'Y' ,p_action=>'NATIVE_REFRESH' ,p_affected_elements_type=>'REGION' ,p_affected_region_id=>wwv_flow_api.id(329252460087503037) ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329259826137503067) ,p_process_sequence=>10 ,p_process_point=>'AFTER_HEADER' ,p_process_type=>'NATIVE_FORM_FETCH' ,p_process_name=>'Fetch Row from SOK_PRODUCT_LIST_VW' ,p_attribute_02=>'SOK_PRODUCT_LIST_VW' ,p_attribute_03=>'P5_PRODUCT_ID' ,p_attribute_04=>'PRODUCT_ID' ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329260264310503067) ,p_process_sequence=>30 ,p_process_point=>'AFTER_SUBMIT' ,p_process_type=>'NATIVE_PLSQL' ,p_process_name=>'Process create product' ,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( 'declare', ' loc_product_image SOK_PRODUCT_LU.product_image%TYPE;', 'begin', ' select blob_content', ' into loc_product_image', ' from APEX_APPLICATION_TEMP_FILES', ' where name = :P5_PRODUCT_IMAGE;', ' logger.log(:P5_PRODUCT_IMAGE);', ' :P5_product_id := SOK_PRODUCT_UTIL.c_product(', ' val_product_name => :P5_product_name,', ' val_product_desc => :P5_product_desc,', ' val_product_image => loc_product_image,', ' val_product_price_amount => :P5_product_price_amount', ' );', ' ', 'end;', '')) ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_process_when_button_id=>wwv_flow_api.id(329252806096503037) ,p_process_when=>'CREATE' ,p_process_when_type=>'REQUEST_IN_CONDITION' ,p_process_success_message=>'Action Processed.' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329194505750339515) ,p_process_sequence=>50 ,p_process_point=>'AFTER_SUBMIT' ,p_process_type=>'NATIVE_PLSQL' ,p_process_name=>'Process update product' ,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( 'declare', ' loc_product_image SOK_PRODUCT_LU.product_image%TYPE;', 'begin', ' if :P5_PRODUCT_IMAGE is not null then', ' select blob_content', ' into loc_product_image', ' from APEX_APPLICATION_TEMP_FILES', ' where name = :P5_PRODUCT_IMAGE;', ' else ', ' loc_product_image := null;', ' end if;', ' --update product and it''s price', ' SOK_PRODUCT_UTIL.u_product(', ' val_product_id => :P5_product_id,', ' val_product_name => :P5_product_name,', ' val_product_desc => :P5_product_desc,', ' val_product_image => loc_product_image,', ' val_product_price_amount => :P5_product_price_amount', ' );', ' ', 'end;', '')) ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_process_when_button_id=>wwv_flow_api.id(329252972607503037) ,p_process_when=>'SAVE' ,p_process_when_type=>'REQUEST_IN_CONDITION' ,p_process_success_message=>'Action Processed.' ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329194843260339518) ,p_process_sequence=>70 ,p_process_point=>'AFTER_SUBMIT' ,p_process_type=>'NATIVE_PLSQL' ,p_process_name=>'Process delete product' ,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( 'begin', '', ' --I delete product from table SOK_PRODUCT_LU, prices associated with selected product from table SOK_PRODUCT_PRICE_LU and all product details associated from SOK_PRODUCT_DETAILS_LU', ' SOK_PRODUCT_UTIL.d_product(', ' val_product_id => :P5_product_id', ' );', '', 'end;', '')) ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_process_when_button_id=>wwv_flow_api.id(329253069686503037) ,p_process_when=>'DELETE' ,p_process_when_type=>'REQUEST_IN_CONDITION' ,p_process_success_message=>'Action Processed.' ,p_security_scheme=>wwv_flow_api.id(328224405980893970) ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329260640390503067) ,p_process_sequence=>80 ,p_process_point=>'AFTER_SUBMIT' ,p_process_type=>'NATIVE_SESSION_STATE' ,p_process_name=>'reset page' ,p_attribute_01=>'CLEAR_CACHE_CURRENT_PAGE' ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_process_when_button_id=>wwv_flow_api.id(329253069686503037) ); wwv_flow_api.create_page_process( p_id=>wwv_flow_api.id(329261013853503067) ,p_process_sequence=>90 ,p_process_point=>'AFTER_SUBMIT' ,p_process_type=>'NATIVE_CLOSE_WINDOW' ,p_process_name=>'Close Dialog' ,p_error_display_location=>'INLINE_IN_NOTIFICATION' ,p_process_when=>'SAVE,DELETE' ,p_process_when_type=>'REQUEST_IN_CONDITION' ,p_process_success_message=>'Action processed.' ); end; /
CREATE DATABASE WMS USE WMS GO CREATE TABLE Mechanics( MechanicId INT PRIMARY KEY IDENTITY NOT NULL, FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, Address VARCHAR(255) NOT NULL ) CREATE TABLE Clients( ClientId INT PRIMARY KEY IDENTITY NOT NULL, FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, Phone CHAR(12) NOT NULL ) CREATE TABLE Models( ModelId INT PRIMARY KEY IDENTITY NOT NULL, Name VARCHAR(50) UNIQUE NOT NULL ) CREATE TABLE Jobs( JobId INT PRIMARY KEY IDENTITY NOT NULL, ModelId INT FOREIGN KEY REFERENCES Models(ModelId) NOT NULL, Status CHAR(11) NOT NULL CHECK(STATUS IN('Pending','In Progress','Finished')) DEFAULT ('Pending'), ClientId INT FOREIGN KEY REFERENCES Clients(ClientId) NOT NULL, MechanicId INT FOREIGN KEY REFERENCES Mechanics(MechanicId), IssueDate DATE NOT NULL, FinishDate DATE ) CREATE TABLE Orders( OrderId INT PRIMARY KEY IDENTITY NOT NULL, JobId INT FOREIGN KEY REFERENCES Jobs(JobId) NOT NULL, IssueDate DATE, Delivered BIT NOT NULL DEFAULT 0) CREATE TABLE Vendors( VendorId INT PRIMARY KEY IDENTITY NOT NULL, Name VARCHAR(50) UNIQUE NOT NULL ) CREATE TABLE Parts( PartId INT PRIMARY KEY IDENTITY NOT NULL, SerialNumber VARCHAR(50) UNIQUE NOT NULL, Description VARCHAR(255), Price DECIMAL(6,2) NOT NULL CHECK(Price>0), VendorId INT FOREIGN KEY REFERENCES Vendors(VendorId) NOT NULL, StockQty INT CHECK(StockQty>=0) DEFAULT 0 NOT NULL) CREATE TABLE OrderParts( OrderId INT FOREIGN KEY REFERENCES Orders(OrderId) NOT NULL, PartId INT FOREIGN KEY REFERENCES Parts(PartId) NOT NULL, Quantity INT CHECK(Quantity>0) DEFAULT 1 NOT NULL, CONSTRAINT pk_OrderIdPartId PRIMARY KEY (OrderId,PartId) ) CREATE TABLE PartsNeeded( JobId INT FOREIGN KEY REFERENCES Jobs(JobId) NOT NULL, PartId INT FOREIGN KEY REFERENCES Parts(PartId) NOT NULL, Quantity INT CHECK(Quantity>0) DEFAULT 1 NOT NULL, CONSTRAINT PK_JobPart PRIMARY KEY(JobId,PartId) )
<gh_stars>0 Select * from TempoOuvido Order By idSessao Limit 5; Insert into TempoOuvido Values (1,1,12); Select * from TempoOuvido Order By idSessao Limit 5; .print "\nDuração do primeiro tuplo incrementou por 12 em vez de adicionar um novo tuplo"
USE `fruit`; -- Dictionaries -- fm_priority -- INSERT INTO `fm_priority` (id, fm_name, fm_descr) VALUES (1, 'high', 'High'); INSERT INTO `fm_priority` (id, fm_name, fm_descr) VALUES (2, 'medium', 'Medium'); INSERT INTO `fm_priority` (id, fm_name, fm_descr) VALUES (3, 'low', 'Low'); -- fm_state -- INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (1, 'new', 'New', 2); INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (2, 'planned', 'Planned', 3); INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (3, 'in_progress', 'In progress', 5); INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (4, 'decline', 'Decline', NULL); INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (5, 'test', 'Testing', 6); INSERT INTO `fm_state` (id, fm_name, fm_descr, fm_next_state) VALUES (6, 'done', 'Done', NULL); -- fm_cat_log INSERT INTO `fm_cat_log` (id, fm_name, fm_descr) VALUES (1, 'log', 'Logging'); INSERT INTO `fm_cat_log` (id, fm_name, fm_descr) VALUES (2, 'cmnt', 'Comments'); INSERT INTO `fm_cat_log` (id, fm_name, fm_descr) VALUES (3, 'url', 'Link'); INSERT INTO `fm_cat_log` (id, fm_name, fm_descr) VALUES (4, 'est', 'Estimation'); -- fm_projects INSERT INTO `fm_project` (id, fm_name, fm_descr, fm_manager, fm_parent) VALUES (1, 'REL', 'Release project', 'manager', NULL); INSERT INTO `fm_project` (id, fm_name, fm_descr, fm_manager, fm_parent) VALUES (2, 'SAMPLE', 'Some new project', 'manager', NULL); -- fm_user INSERT INTO `fm_user` (id, fm_name, fm_descr, fm_password_enc) VALUES (1, 'root', 'root', '<PASSWORD>'); INSERT INTO `fm_user` (id, fm_name, fm_descr, fm_password_enc) VALUES (2, 'fruit', 'User of Fruits', '<PASSWORD>'); INSERT INTO `fm_user` (id, fm_name, fm_descr, fm_password_enc) VALUES (3, 'vegetable', 'User of Vegetables', '<PASSWORD>'); -- fm_tasks INSERT INTO `fm_task` (id, fm_name, fm_descr, fm_project, fm_state, fm_priority, fm_plan, fm_user) VALUES (1, 'RFC', 'Release 1', 1, 3, 2, 100, 'fruit'); INSERT INTO `fm_task` (id, fm_name, fm_descr, fm_project, fm_state, fm_priority, fm_plan, fm_user) VALUES (2, 'Some', 'work', 2, 3, 2, 100, 'fruit'); INSERT INTO `fm_task` (id, fm_name, fm_descr, fm_project, fm_state, fm_priority, fm_plan, fm_user) VALUES (3, 'Some', 'work', 2, 3, 2, 100, 'vegetable'); -- fm_relation INSERT INTO `fm_relation` (id, fm_parent, fm_child) VALUES (1, 0, 0); INSERT INTO `fm_relation` (id, fm_parent, fm_child) VALUES (2, 1, 2); INSERT INTO `fm_relation` (id, fm_parent, fm_child) VALUES (3, 2, 3); -- fm_work_log INSERT INTO `fm_work_log` (fm_task, fm_cat, fm_date, fm_date_actual, fm_spent_hour, fm_comment, fm_user) VALUES (2, 4, date(now()), now(), 8, 'Work', 'fruit'); INSERT INTO `fm_work_log` (fm_task, fm_cat, fm_date, fm_date_actual, fm_spent_hour, fm_comment, fm_user) VALUES (2, 1, date(now()), now(), 8, 'Work', 'vegetable'); -- fm_subscribe INSERT INTO `fm_subscribe` (id, fm_task, fm_user) VALUES (1, 3, 'fruit');
-- examples on transaction isolation levels use hron; -- cleanup start transaction; delete from service where service_id = 22; select * from service; commit; -- both transactions serialized, no phantom read set transaction isolation level serializable; -- (1) start transaction; -- (2) select * from service; -- (3) -- insert into service (service_id, name) values (22, 'T2 insert'); -- (4) T2 hangs until T1 commit commit; -- (7) -- on read committed level a non-repeatable read is ok set transaction isolation level read committed; -- (1) T1 start transaction; -- (2) select * from service where service_id = 22; -- (3) -- update service set name = 'T2 update' where service_id = 22; -- (4) T2 -- commit; -- (5) T2 select * from service where service_id = 22; -- (6) non-repeatable read, both T1 and T2 see the change commit; -- (7) -- when on read uncommitted, we could dirty read set transaction isolation level read uncommitted; -- (1) T1 start transaction; -- (2) -- update service set name = 'dirty' where service_id = 22; -- (3) T2 select * from service where service_id = 22; -- (4) dirty read rollback; -- (5) -- lost update set transaction isolation level read uncommitted; -- (1) start transaction; -- (2) update service set name = concat(name, '1') where service_id = 22; -- (3) T1 -- update service set name = concat(name, '2') where service_id = 22; -- (4) T2 commit; -- (4) select * from service where service_id = 22; -- (5) both 1 and 2, no lost update! commit;
<reponame>vidkurniawan1998/mipssi<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 16, 2020 at 02:48 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 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: `mipssi` -- -- -------------------------------------------------------- -- -- 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 (161, '2020_01_10_063102_create_user_table', 1), (162, '2020_01_13_025032_create_pengumuman_table', 1), (163, '2020_01_13_025517_create_dokumen_table', 1), (164, '2020_01_13_025729_create_mahasiswa_table', 1), (165, '2020_01_13_043412_create_dosen_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `tb_dokumen` -- CREATE TABLE `tb_dokumen` ( `id` bigint(20) UNSIGNED NOT NULL, `tahun_dokumen` int(11) NOT NULL, `judul_dokumen` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `deskripsi` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tb_dokumen` -- INSERT INTO `tb_dokumen` (`id`, `tahun_dokumen`, `judul_dokumen`, `deskripsi`, `image`, `created_at`, `updated_at`) VALUES (6, 2015, 'ABC', 'Reistoration', '1580290484.jpg', '2020-01-29 01:34:44', '2020-01-29 01:34:44'), (7, 2017, 'APSI', 'Reuters', '1580290529.jpg', '2020-01-29 01:35:29', '2020-01-29 01:35:29'), (8, 2014, 'MPSI', 'BUMN', '1580291225.jpg', '2020-01-29 01:47:05', '2020-01-29 01:47:05'), (9, 2016, 'ABC', 'Jumanji', '1580291280.jpg', '2020-01-29 01:48:00', '2020-01-29 01:48:00'), (10, 2016, 'Asimilasi', 'Kolonk', '1580291328.jpg', '2020-01-29 01:48:48', '2020-01-29 01:48:48'), (11, 2013, '<NAME> KP', '<NAME>', '1580291434.jpg', '2020-01-29 01:50:34', '2020-01-29 01:50:34'), (12, 2015, 'MPSI', 'Buriram', '1580291462.jpg', '2020-01-29 01:51:02', '2020-01-29 01:51:02'), (13, 2016, 'APSI', 'Berniaga', '1580363819.jpg', '2020-01-29 21:56:59', '2020-01-29 21:56:59'), (14, 2014, 'BUMN', 'BPSK', '1580363844.jpg', '2020-01-29 21:57:24', '2020-01-29 21:57:24'), (15, 2015, '<NAME> KP', 'Buruan', '1580363870.jpg', '2020-01-29 21:57:50', '2020-01-29 21:57:50'), (16, 2014, 'ABC', 'Buriram', '1580363896.jpg', '2020-01-29 21:58:16', '2020-01-29 21:58:16'); -- -------------------------------------------------------- -- -- Table structure for table `tb_dosen` -- CREATE TABLE `tb_dosen` ( `id` int(10) UNSIGNED NOT NULL, `nama_lengkap` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `jenis_kelamin` enum('Laki-Laki','Perempuan') COLLATE utf8mb4_unicode_ci NOT NULL, `tempat_lahir` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal_lahir` date NOT NULL, `pendidikan_terakhir` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_telepon` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_handphone` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(400) 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 `tb_dosen` -- INSERT INTO `tb_dosen` (`id`, `nama_lengkap`, `jenis_kelamin`, `tempat_lahir`, `tanggal_lahir`, `pendidikan_terakhir`, `alamat`, `no_telepon`, `no_handphone`, `email`, `image`, `created_at`, `updated_at`) VALUES (1, '<NAME>', 'Laki-Laki', 'Denpasar', '1998-03-19', 'S3', 'Jl.Gunung Sari No.20 Denpasar', '0361141231', '08123731313', '<EMAIL>', '1584325918.JPG', '2020-03-15 18:31:58', '2020-03-15 18:31:58'); -- -------------------------------------------------------- -- -- Table structure for table `tb_mahasiswa` -- CREATE TABLE `tb_mahasiswa` ( `id` int(10) UNSIGNED NOT NULL, `angkatan` int(11) NOT NULL, `status_mahasiswa` enum('Aktif','Tidak Aktif') COLLATE utf8mb4_unicode_ci NOT NULL, `nama_lengkap` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `jenis_kelamin` enum('Laki-Laki','Perempuan') COLLATE utf8mb4_unicode_ci NOT NULL, `tempat_lahir` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal_lahir` date NOT NULL, `alamat` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_telepon` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_handphone` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `facebook` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `twitter` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `nim` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tb_mahasiswa` -- INSERT INTO `tb_mahasiswa` (`id`, `angkatan`, `status_mahasiswa`, `nama_lengkap`, `jenis_kelamin`, `tempat_lahir`, `tanggal_lahir`, `alamat`, `no_telepon`, `no_handphone`, `email`, `facebook`, `twitter`, `nim`, `password`, `image`, `created_at`, `updated_at`) VALUES (1, 2020, 'Aktif', '<NAME>', 'Laki-Laki', 'Jakarta', '2020-01-19', 'Jl.Surya Dinata No.10 Denpasar', '0361101910', '08112314123', '<EMAIL>', 'vidkurniawan', 'vidkurniawan', '160010123', '$2y$10$gCCYi61MPBCVZ2WGSyItfufU1gtvSubK7N.3mHzozMit./tIAHW4i', '1580363984.jpg', '2020-01-29 21:59:44', '2020-01-29 21:59:44'), (2, 2017, 'Tidak Aktif', '<NAME>', 'Laki-Laki', 'Surabaya', '2020-01-26', 'Jl. Mulawarman No.10', '0361101910', '08112314123', '<EMAIL>', 'vidkurniawan', 'vidkurniawan', '160030245', '$2y$10$rpzxgLcFCTJaImfcwxTgNeEyX5GLG6URoojDy2Bmy3eOxDFDchY6K', '1580364071.jpg', '2020-01-29 22:01:11', '2020-01-29 22:01:11'), (3, 2013, 'Aktif', 'Arianto', 'Laki-Laki', 'Unggaran', '2020-01-23', 'Jl. Perum Antagiri', '03612413214', '08112314123', '<EMAIL>', 'vidkurniawan', 'vidkurniawan', '160030256', '$2y$10$XROjV29OQbyTLHjo7KtIUuSogbs61miIP2ofCKZMDjub0c7z/Y/VW', '1580364130.jpg', '2020-01-29 22:02:10', '2020-01-29 22:02:10'), (4, 2014, 'Aktif', 'Horteka', 'Laki-Laki', 'Papua', '2020-01-26', 'Jl. Perum Antagiri', '0361101910', '08112314123', '<EMAIL>', 'vidkurniawan', 'vidkurniawan', '160030171', '$2y$10$M.4yC80wFmYrP8JzDjvx/OoqZV.ttFsDtB6buiO.lHQHC6rh5IlKW', '1580364298.jpg', '2020-01-29 22:04:58', '2020-01-29 22:04:58'); -- -------------------------------------------------------- -- -- Table structure for table `tb_pengumuman` -- CREATE TABLE `tb_pengumuman` ( `id` int(10) UNSIGNED NOT NULL, `angkatan` int(11) NOT NULL, `judul_pengumuman` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `deskripsi` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal_pengumuman` date NOT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tb_pengumuman` -- INSERT INTO `tb_pengumuman` (`id`, `angkatan`, `judul_pengumuman`, `deskripsi`, `tanggal_pengumuman`, `image`, `created_at`, `updated_at`) VALUES (6, 2019, 'BSD', 'Pembuatan Pupuk Kompos', '2020-01-26', '1581942521.JPG', '2020-01-29 01:16:35', '2020-02-17 04:28:42'), (7, 2015, 'Gorlits', 'BDS', '2020-01-26', '1580289420.jpg', '2020-01-29 01:17:00', '2020-01-29 01:17:00'), (8, 2016, 'Upgrade', 'BDREWS', '2020-01-26', '1580289447.jpg', '2020-01-29 01:17:27', '2020-01-29 01:17:27'), (9, 2015, 'Gorlits', 'BDSSSE', '2020-01-26', '1580289465.jpg', '2020-01-29 01:17:45', '2020-01-29 01:17:45'), (10, 2013, 'Buriram', 'Jumpartis', '2020-01-26', '1580289537.jpg', '2020-01-29 01:18:57', '2020-01-29 01:18:57'), (11, 2015, 'Upgrade', 'Brondong', '2020-01-26', '1580289757.jpg', '2020-01-29 01:22:37', '2020-01-29 01:22:37'), (12, 2015, 'Some Noise', 'Brosis', '2020-01-26', '1580289812.jpg', '2020-01-29 01:23:32', '2020-01-29 01:23:32'), (13, 2014, 'Gorlits', 'BRE', '2020-01-27', '1580289836.jpg', '2020-01-29 01:23:56', '2020-01-29 01:23:56'), (14, 2015, '<NAME>', 'UMC', '2020-01-26', '1580289861.jpg', '2020-01-29 01:24:21', '2020-01-29 01:24:21'), (15, 2014, 'UMK', 'Rounded', '2020-01-26', '1580289906.jpg', '2020-01-29 01:25:06', '2020-01-29 01:25:06'), (16, 2017, 'Operation', 'operasi tangkap tangan', '2020-03-16', '1583588321.png', '2020-03-07 05:38:41', '2020-03-07 05:38:41'); -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id` int(10) UNSIGNED NOT NULL, `nama_lengkap` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `jabatan` enum('Ketua Program Studi Sistem Informasi','Sekertaris Program Studi Sistem Informasi','Staff Program Studi Sistem Informasi') COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id`, `nama_lengkap`, `jabatan`, `email`, `username`, `password`, `created_at`, `updated_at`) VALUES (1, 'Sukirman', 'Sekertaris Program Studi Sistem Informasi', '<EMAIL>', 'sukirman101', '$2y$10$QeF/EXH7swlTmfr1SNJ0EePkaVZZHL75wKNug63Pvo/bB1mB7itJu', '2020-02-17 04:52:12', '2020-02-17 04:52:12'), (2, 'Ponjampae', 'Ketua Program Studi Sistem Informasi', '<EMAIL>', 'sugi123', '$2y$10$04PXr6v8xZw656yPr6NAH.HA9L7MTknIJ8x6ZuCTTkdIdBKsaDqPy', '2020-02-17 04:55:23', '2020-02-17 04:55:23'), (3, 'Ponjampae', 'Ketua Program Studi Sistem Informasi', '<EMAIL>', 'poni123', '$2y$10$IN5HHo6y8LX43TYX1wHGpec5lrO9iuWUmyesrmjYwaBWUgdHIia/W', '2020-02-17 04:56:51', '2020-02-17 04:56:51'), (4, '<NAME>', 'Staff Program Studi Sistem Informasi', '<EMAIL>', 'jori123', '$2y$10$U2Pw1w.0KSx.hEXrNEEM4OsrnFjdiRF7mgXSp3dG3oBw2wm.ejbbG', '2020-03-07 05:36:41', '2020-03-07 05:36:41'), (5, '<NAME>', 'Sekertaris Program Studi Sistem Informasi', '<EMAIL>', 'suri123', '$2y$10$nmemISAQJ6PQm.6e4I.WIukqutSP8Sd6UQQ58Cae2bFfNTr9v0f8.', '2020-03-15 18:11:42', '2020-03-15 18:11:42'); -- -- Indexes for dumped tables -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_dokumen` -- ALTER TABLE `tb_dokumen` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_dosen` -- ALTER TABLE `tb_dosen` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `tb_dosen_email_unique` (`email`); -- -- Indexes for table `tb_mahasiswa` -- ALTER TABLE `tb_mahasiswa` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `tb_mahasiswa_nim_unique` (`nim`); -- -- Indexes for table `tb_pengumuman` -- ALTER TABLE `tb_pengumuman` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `tb_user_username_unique` (`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=166; -- -- AUTO_INCREMENT for table `tb_dokumen` -- ALTER TABLE `tb_dokumen` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `tb_dosen` -- ALTER TABLE `tb_dosen` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tb_mahasiswa` -- ALTER TABLE `tb_mahasiswa` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_pengumuman` -- ALTER TABLE `tb_pengumuman` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
drop table if exists FM_BRANCH_REGION_DEF; /*==============================================================*/ /* Table: FM_BRANCH_REGION_DEF */ /*==============================================================*/ create table FM_BRANCH_REGION_DEF ( BRANCH_ID varchar(20) not null comment '机构', USER_REGION_TYPE varchar(20) not null comment '自定义区域类型', USER_REGION_CODE varchar(20) not null comment '自定义区域代码', TRAN_TIME Decimal(11,0) comment '交易时间', TRAN_TIMESTAMP varchar(17) comment '时间戳', primary key (BRANCH_ID,USER_REGION_TYPE,USER_REGION_CODE) ); alter table FM_BRANCH_REGION_DEF comment '机构自定义区域设置 undefined';
<gh_stars>1-10 /* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 8.0.20 : Database - mysitedb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`mysitedb` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `mysitedb`; /*Table structure for table `admin` */ DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `username` varchar(20) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*Data for the table `admin` */ insert into `admin`(`username`,`password`) values ('admin','<PASSWORD>'), ('ashu','<PASSWORD>'); /*Table structure for table `register` */ DROP TABLE IF EXISTS `register`; CREATE TABLE `register` ( `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `name` varchar(20) NOT NULL, `mobile` varchar(15) NOT NULL, `email` varchar(50) NOT NULL, `gender` varchar(20) NOT NULL, `reg_type` varchar(25) NOT NULL, `tickets_num` int NOT NULL, `rdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `picName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'default.png', `picblob` mediumblob, PRIMARY KEY (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
<reponame>rcmoutinho/public-speaking -- Cliente CREATE TABLE SA1010 ( A1_FILIAL VARCHAR(2), A1_COD VARCHAR(6), A1_NOME VARCHAR(60), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SA1010 PRIMARY KEY (A1_FILIAL, A1_COD) ); -- Tipo de Entrada e Saída CREATE TABLE SF4010 ( F4_FILIAL VARCHAR(2), F4_CODIGO VARCHAR(3), F4_ESTOQUE VARCHAR(1), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SF4010 PRIMARY KEY (F4_FILIAL, F4_CODIGO) ); -- Condição de Pagamento CREATE TABLE SE4010 ( E4_FILIAL VARCHAR(2), E4_CODIGO VARCHAR(3), E4_COND VARCHAR(3), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SE4010 PRIMARY KEY (E4_FILIAL, E4_CODIGO) ); -- Pedido de Venda CREATE TABLE SC5010 ( C5_FILIAL VARCHAR(2), C5_NUM VARCHAR(6), C5_VEND1 VARCHAR(6), C5_OBSPED VARCHAR(60), C5_PREVIST VARCHAR(8), C5_XST05 VARCHAR(2), C5_XFRET VARCHAR(1), C5_XFLAG VARCHAR(3), C5_XSEP VARCHAR(1), C5_NOTA VARCHAR(9), C5_CLIENT VARCHAR(6), C5_TIPO VARCHAR(1), C5_CONDPAG VARCHAR(3), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SC5010 PRIMARY KEY (C5_FILIAL, C5_NUM), CONSTRAINT FK_SC5_SE4 FOREIGN KEY (C5_FILIAL, C5_CONDPAG) REFERENCES SE4010 (E4_FILIAL, E4_CODIGO), CONSTRAINT FK_SC5_SA1 FOREIGN KEY (C5_FILIAL, C5_CLIENT) REFERENCES SA1010 (A1_FILIAL, A1_COD) ); -- Item Pedido de Venda CREATE TABLE SC6010 ( C6_FILIAL VARCHAR(2), C6_NUM VARCHAR(6), C6_ITEM VARCHAR(2), C6_PRODUTO VARCHAR(15), C6_LOCAL VARCHAR(2), C6_BLQ VARCHAR(1), C6_QTDVEN NUMERIC(10,4), C6_QTDENT NUMERIC(10,4), C6_PRCVEN NUMERIC(10,2), C6_XQTD05 NUMERIC(10,4), C6_VALOR NUMERIC(10,2), C6_XFLAG VARCHAR(3), C6_TES VARCHAR(3), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SC6010 PRIMARY KEY (C6_FILIAL, C6_NUM, C6_ITEM), CONSTRAINT FK_SC6_SC5 FOREIGN KEY (C6_FILIAL, C6_NUM) REFERENCES SC5010 (C5_FILIAL, C5_NUM), CONSTRAINT FK_SC6_SF4 FOREIGN KEY (C6_FILIAL, C6_TES) REFERENCES SF4010 (F4_FILIAL, F4_CODIGO) ); -- Item Pedido Venda Liberado CREATE TABLE SC9010 ( C9_FILIAL VARCHAR(2), C9_PEDIDO VARCHAR(6), C9_ITEM VARCHAR(2), C9_SEQUEN VARCHAR(2), C9_PRODUTO VARCHAR(15), C9_NFISCAL VARCHAR(9), C9_XLIST VARCHAR(3), C9_LOCAL VARCHAR(2), C9_BLCRED VARCHAR(2), D_E_L_E_T_ VARCHAR(1), CONSTRAINT PK_SC9010 PRIMARY KEY (C9_FILIAL, C9_PEDIDO, C9_ITEM, C9_SEQUEN), CONSTRAINT FK_SC9_SC6 FOREIGN KEY (C9_FILIAL, C9_PEDIDO, C9_ITEM) REFERENCES SC6010 (C6_FILIAL, C6_NUM, C6_ITEM) );
CREATE DATABASE IF NOT EXISTS `URL-Shortener`; USE `URL-Shortener`; DROP TABLE IF EXISTS URLTABLE; DROP TRIGGER IF EXISTS DATE_INSERT_AUTOMATION; DROP TRIGGER IF EXISTS DATE_UPDATE_AUTOMATION; -- Creating table for storing URL CREATE TABLE URLTABLE ( ID INT NOT NULL PRIMARY KEY, URL VARCHAR(300) NOT NULL UNIQUE, SHORT_URL VARCHAR(7) NOT NULL UNIQUE, ENTRY_DATE DATE ); -- Creating trigger for automating date insertion Delimiter /// CREATE TRIGGER DATE_INSERT_AUTOMATION BEFORE INSERT ON URLTABLE FOR EACH ROW BEGIN IF (NEW.ENTRY_DATE IS NULL) THEN SET NEW.ENTRY_DATE = CURRENT_DATE(); ELSEIF (NEW.ENTRY_DATE <= CURRENT_DATE()) THEN SET NEW.ENTRY_DATE = NEW.ENTRY_DATE; ELSE SIGNAL SQLSTATE '23000' set message_text = 'Date can not be in future!'; END IF; END; /// -- Creating trigger for automating date update Delimiter /// CREATE TRIGGER DATE_UPDATE_AUTOMATION BEFORE UPDATE ON URLTABLE FOR EACH ROW BEGIN IF (NEW.ENTRY_DATE <= CURRENT_DATE()) THEN SET NEW.ENTRY_DATE = NEW.ENTRY_DATE; ELSE SIGNAL SQLSTATE '23000' set message_text = 'Date can not be in future!'; END IF; END; ///
<filename>EmployeeSQL/sql/analysis.sql -- 1) -- List the following details of each employee: employee number, last name, first name, sex, and salary. SELECT E."EmployeeID" as "employee number", E."LastName" as "last name", E."FisrtName" as "first name", E."Sex" as "sex", S."Salary" as "salary" FROM "Employees" E INNER JOIN "Salary" S ON E."EmployeeID" = S."EmployeeID" ; -- 2) -- List first name, last name, and hire date for employees who were hired in 1986. SELECT E."FisrtName" as "first name", E."LastName" as "last name", E."HiredDate" as "hired date" FROM "Employees" E WHERE E."HiredDate" LIKE '%/1986' ; -- 3) -- List the manager of each department with the following information: department number, department name, the manager's employee number, last name, first name. SELECT D."DepartmentID" as "department number", D."Name" as "department name", E."EmployeeID" as "manager employee number", E."LastName" as "last name", E."FisrtName" as "first name" FROM "DepartmentManager" DM INNER JOIN "Department" D ON DM."DepartmentID" = D."DepartmentID" INNER JOIN "Employees" E ON E."EmployeeID" = DM."EmployeeID" ; -- 4) -- List the department of each employee with the following information: employee number, last name, first name, and department name. SELECT E."EmployeeID" as "employee number", E."LastName" as "last name", E."FisrtName" as "first name", D."Name" as "department name" FROM "DepartmentEmployee" DE INNER JOIN "Department" D ON DE."DepartmentID" = D."DepartmentID" INNER JOIN "Employees" E ON E."EmployeeID" = DE."EmployeeID" ; -- 5) -- List first name, last name, and sex for employees whose first name is "Hercules" and last names begin with "B." SELECT E."FisrtName" as "first name", E."LastName" as "last name", E."Sex" as "sex" FROM "Employees" E WHERE E."FisrtName" LIKE 'Hercules' AND E."LastName" LIKE 'B%' ; -- 6) -- List all employees in the Sales department, including their employee number, last name, first name, and department name. SELECT E."EmployeeID" as "employee number", E."LastName" as "last name", E."FisrtName" as "first name", D."Name" as "department name" FROM "DepartmentEmployee" DE INNER JOIN "Department" D ON DE."DepartmentID" = D."DepartmentID" INNER JOIN "Employees" E ON E."EmployeeID" = DE."EmployeeID" WHERE D."Name" = 'Sales' ; -- 7) -- List all employees in the Sales and Development departments, including their employee number, last name, first name, and department name. SELECT E."EmployeeID" as "employee number", E."LastName" as "last name", E."FisrtName" as "first name", D."Name" as "department name" FROM "DepartmentEmployee" DE INNER JOIN "Department" D ON DE."DepartmentID" = D."DepartmentID" INNER JOIN "Employees" E ON E."EmployeeID" = DE."EmployeeID" WHERE D."Name" = 'Sales' OR D."Name" = 'Development' ; -- 8) -- In descending order, list the frequency count of employee last names, i.e., how many employees share each last name how many employees share each last name SELECT E."LastName" as "last name", COUNT (E."EmployeeID") FROM "Employees" E GROUP BY E."LastName" ORDER BY E."LastName" DESC ;
<filename>db/sql/src/main/resources/org/kuali/rice/rice-sql/initial-db/sql/oracle/KRIM_ENTITY_ENT_TYP_T.sql -- -- Copyright 2005-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- 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. -- TRUNCATE TABLE KRIM_ENTITY_ENT_TYP_T DROP STORAGE / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1','SYSTEM',TO_DATE( '20081107094902', 'YYYYMMDDHH24MISS' ),'5B1B6B919CCB6496E0404F8189D822F2',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1100','PERSON',TO_DATE( '20081113140649', 'YYYYMMDDHH24MISS' ),'5B97C50B03E06110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1101','PERSON',TO_DATE( '20081113140649', 'YYYYMMDDHH24MISS' ),'5B97C50B03E16110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1102','PERSON',TO_DATE( '20081113140649', 'YYYYMMDDHH24MISS' ),'5B97C50B03E26110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1103','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E36110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1104','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E46110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1105','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E56110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1106','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E66110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1107','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E76110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1108','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E86110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1109','PERSON',TO_DATE( '20081113140650', 'YYYYMMDDHH24MISS' ),'5B97C50B03E96110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1110','PERSON',TO_DATE( '20081113140651', 'YYYYMMDDHH24MISS' ),'5B97C50B03EA6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1111','PERSON',TO_DATE( '20081113140651', 'YYYYMMDDHH24MISS' ),'5B97C50B03EB6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1112','PERSON',TO_DATE( '20081113140651', 'YYYYMMDDHH24MISS' ),'5B97C50B03EC6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1113','PERSON',TO_DATE( '20081113140651', 'YYYYMMDDHH24MISS' ),'5B97C50B03ED6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1114','PERSON',TO_DATE( '20081113140651', 'YYYYMMDDHH24MISS' ),'5B97C50B03EE6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1115','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03EF6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1116','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03F06110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1117','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03F16110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1118','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03F26110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1119','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03F36110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1120','PERSON',TO_DATE( '20081113140652', 'YYYYMMDDHH24MISS' ),'5B97C50B03F46110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1121','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03F56110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1122','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03F66110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1123','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03F76110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1124','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03F86110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1125','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03F96110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1126','PERSON',TO_DATE( '20081113140653', 'YYYYMMDDHH24MISS' ),'5B97C50B03FA6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1127','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B03FB6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1128','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B03FC6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1129','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B03FD6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1130','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B03FE6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1131','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B03FF6110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1132','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B04006110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1133','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B04016110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1134','PERSON',TO_DATE( '20081113140654', 'YYYYMMDDHH24MISS' ),'5B97C50B04026110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1135','PERSON',TO_DATE( '20081113140655', 'YYYYMMDDHH24MISS' ),'5B97C50B04036110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1136','PERSON',TO_DATE( '20081113140655', 'YYYYMMDDHH24MISS' ),'5B97C50B04046110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','1137','PERSON',TO_DATE( '20081113140655', 'YYYYMMDDHH24MISS' ),'5B97C50B04056110E0404F8189D85213',1) / INSERT INTO KRIM_ENTITY_ENT_TYP_T (ACTV_IND,ENTITY_ID,ENT_TYP_CD,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES ('Y','KR1000','PERSON',TO_DATE( '20121130172321', 'YYYYMMDDHH24MISS' ),'CFBAA6F5F0D15D07E0406E0AC31D229B',1) /
<filename>graph_algorithms/sql/v1_desperated/neighbours.sql CREATE OR REPLACE FUNCTION neighbours( IN vertex_id INTEGER, IN k_hop INTEGER, IN result_type INTEGER, -- 0 for vertices, others for edges IN nb refcursor ) RETURNS refcursor AS $$ DECLARE num_growing_path INTEGER; current_hop INTEGER := 1; BEGIN -- create bfs edges table CREATE TEMPORARY TABLE bfs_edges(src_id INTEGER, dst_id INTEGER, direction INTEGER, flag INTEGER) ON COMMIT DROP DISTRIBUTED BY (dst_id); -- init bfs edges table INSERT INTO bfs_edges SELECT vertex_id, edges.src_id, -1, 0 AS flag FROM edges WHERE edges.dst_id = vertex_id UNION SELECT vertex_id, edges.dst_id, 1, 0 AS flag FROM edges WHERE edges.src_id = vertex_id; -- create discovered vertices table CREATE TEMPORARY TABLE discovered_vertices(vid INTEGER, hop INTEGER) WITH (appendonly=TRUE,orientation=row) ON COMMIT DROP DISTRIBUTED BY (vid); -- init discovered_vertices INSERT INTO discovered_vertices VALUES (vertex_id, 0); INSERT INTO discovered_vertices SELECT DISTINCT dst_id, current_hop FROM bfs_edges WHERE flag = 0; SELECT COUNT(1) INTO num_growing_path FROM bfs_edges WHERE flag = 0; WHILE num_growing_path > 0 AND current_hop < k_hop LOOP -- vertices have been added in discovered vertices UPDATE bfs_edges SET flag = 1 WHERE flag = 0; -- next level INSERT INTO bfs_edges SELECT DISTINCT t1.src_id, t1.dst_id, t1.direction, 0 FROM (SELECT bfs_edges.dst_id AS src_id, edges.dst_id, 1 AS direction FROM bfs_edges JOIN edges ON bfs_edges.flag = 1 AND bfs_edges.dst_id = edges.src_id UNION SELECT bfs_edges.dst_id AS src_id, edges.src_id AS dst_id, -1 AS direction FROM bfs_edges JOIN edges ON bfs_edges.flag = 1 AND bfs_edges.dst_id = edges.dst_id) AS t1 LEFT JOIN discovered_vertices ON t1.dst_id = discovered_vertices.vid WHERE discovered_vertices.vid is NULL; -- vertices whose neighbours have been discovered UPDATE bfs_edges SET flag = 2 WHERE flag = 1; -- add into discovered vertices current_hop := current_hop + 1; INSERT INTO discovered_vertices SELECT DISTINCT dst_id, current_hop FROM bfs_edges WHERE flag = 0; SELECT COUNT(1) INTO num_growing_path FROM bfs_edges WHERE flag = 0; END LOOP; IF result_type = 0 THEN OPEN nb FOR SELECT vid, hop FROM discovered_vertices ORDER BY hop; ELSE OPEN nb FOR SELECT t1.src_id, t1.dst_id FROM (SELECT src_id, dst_id FROM bfs_edges WHERE direction = 1 UNION SELECT dst_id AS src_id, src_id AS dst_id FROM bfs_edges WHERE direction = -1) AS t1; END IF; RETURN nb; END; $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION neighbours( IN vertex_id INTEGER, IN k_hop INTEGER, IN edge_type_column VARCHAR, IN edge_type_value INTEGER, IN result_type INTEGER, -- 0 for vertices, others for edges IN nb refcursor ) RETURNS refcursor AS $$ DECLARE num_growing_path INTEGER; current_hop INTEGER := 1; BEGIN -- create bfs edges table CREATE TEMPORARY TABLE bfs_edges(src_id INTEGER, dst_id INTEGER, direction INTEGER, flag INTEGER) ON COMMIT DROP DISTRIBUTED BY (dst_id); -- init bfs edges table EXECUTE 'INSERT INTO bfs_edges SELECT ' || vertex_id || ', edges.src_id, -1, 0 AS flag FROM edges WHERE edges.dst_id = ' || vertex_id || ' AND edges.' || quote_ident(edge_type_column) || ' = ' || edge_type_value || ' UNION SELECT ' || vertex_id || ', edges.dst_id, 1, 0 AS flag FROM edges WHERE edges.src_id = ' || vertex_id || ' AND edges.' || quote_ident(edge_type_column) || ' = ' || edge_type_value; -- create discovered vertices table CREATE TEMPORARY TABLE discovered_vertices(vid INTEGER, hop INTEGER) WITH (appendonly=TRUE,orientation=row) ON COMMIT DROP DISTRIBUTED BY (vid); -- init discovered_vertices INSERT INTO discovered_vertices VALUES (vertex_id, 0); INSERT INTO discovered_vertices SELECT DISTINCT dst_id, current_hop FROM bfs_edges WHERE flag = 0; SELECT COUNT(1) INTO num_growing_path FROM bfs_edges WHERE flag = 0; WHILE num_growing_path > 0 AND current_hop < k_hop LOOP -- vertices have been added in discovered vertices UPDATE bfs_edges SET flag = 1 WHERE flag = 0; -- next level EXECUTE 'INSERT INTO bfs_edges SELECT DISTINCT t1.src_id, t1.dst_id, t1.direction, 0 FROM (SELECT bfs_edges.dst_id AS src_id, edges.dst_id ,1 AS direction FROM bfs_edges JOIN edges ON bfs_edges.flag = 1 AND bfs_edges.dst_id = edges.src_id AND edges.' || quote_ident(edge_type_column) || ' = ' || edge_type_value || ' UNION SELECT bfs_edges.dst_id AS src_id, edges.src_id AS dst_id, -1 AS direction FROM bfs_edges JOIN edges ON bfs_edges.flag = 1 AND bfs_edges.dst_id = edges.dst_id AND edges.' || quote_ident(edge_type_column) || ' = ' || edge_type_value || ') AS t1 LEFT JOIN discovered_vertices ON t1.dst_id = discovered_vertices.vid WHERE discovered_vertices.vid is NULL'; -- vertices whose neighbours have been discovered UPDATE bfs_edges SET flag = 2 WHERE flag = 1; -- add into discovered vertices current_hop := current_hop + 1; INSERT INTO discovered_vertices SELECT DISTINCT dst_id, current_hop FROM bfs_edges WHERE flag = 0; SELECT COUNT(1) INTO num_growing_path FROM bfs_edges WHERE flag = 0; END LOOP; IF result_type = 0 THEN OPEN nb FOR SELECT vid, hop FROM discovered_vertices ORDER BY hop; ELSE OPEN nb FOR SELECT t1.src_id, t1.dst_id FROM (SELECT src_id, dst_id FROM bfs_edges WHERE direction = 1 UNION SELECT dst_id AS src_id, src_id AS dst_id FROM bfs_edges WHERE direction = -1) AS t1; END IF; RETURN nb; END; $$ LANGUAGE plpgsql;
drop table tmp35; create table tmp35 as select * from bigdatabench_dw_item where GOODS_AMOUNT > 750000;
<reponame>Zilvereyes/ServerThree ALTER TABLE db_version CHANGE COLUMN required_m12654_command required_12662_01_mangos_hotfix_data bit; CREATE TABLE `hotfix_data` ( `entry` int(10) unsigned NOT NULL, `type` int(10) unsigned NOT NULL DEFAULT '0', `hotfixDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`entry`,`type`,`hotfixDate`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `hotfix_data` VALUES ('6948', '1344507586', '2011-11-23 08:34:13'); INSERT INTO `hotfix_data` VALUES ('44623', '1344507586', '2011-11-23 08:34:04'); INSERT INTO `hotfix_data` VALUES ('44625', '1344507586', '2011-11-23 08:34:04'); INSERT INTO `hotfix_data` VALUES ('44626', '1344507586', '2011-11-23 08:34:04'); INSERT INTO `hotfix_data` VALUES ('44632', '1344507586', '2011-11-23 08:34:04'); INSERT INTO `hotfix_data` VALUES ('44812', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44834', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44835', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44836', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44837', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44838', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44839', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44840', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44844', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44853', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44854', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44855', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('44856', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46784', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46793', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46796', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46797', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46887', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('46888', '1344507586', '2011-11-23 08:34:00'); INSERT INTO `hotfix_data` VALUES ('64488', '1344507586', '2011-11-23 08:34:13'); INSERT INTO `hotfix_data` VALUES ('69847', '1344507586', '2011-11-23 08:34:03'); INSERT INTO `hotfix_data` VALUES ('69847', '1344507586', '2011-11-23 08:34:06'); INSERT INTO `hotfix_data` VALUES ('72068', '1344507586', '2011-11-23 08:34:03'); INSERT INTO `hotfix_data` VALUES ('72068', '1344507586', '2011-11-23 08:34:06');
autocommit off; call login('dba','') on class db_user; create class boo(a int, b int) as select ssn, ssn from joe.faculty2; select * from boo; update boo set a=3 where b=9; select * from boo; update boo set a=3, b=4 where b=3; rollback;
<reponame>wendyp1992/CMS<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 28-11-2016 a las 20:52:11 -- Versión del servidor: 10.1.16-MariaDB -- Versión de PHP: 5.5.38 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: `yii2advanced` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `auth_assignment` -- CREATE TABLE `auth_assignment` ( `item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `created_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `auth_assignment` -- INSERT INTO `auth_assignment` (`item_name`, `user_id`, `created_at`) VALUES ('admin', '1', 1478400017), ('autor', '1', 1478400017), ('autor', '2', 1478400038), ('autor', '3', 1478400052), ('autor', '6', 1478477158), ('delete', '1', 1478400017), ('delete', '2', 1478400038), ('delete', '3', 1478400052), ('update', '1', 1478400017), ('update', '2', 1478400038), ('update', '3', 1478400052); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `auth_item` -- CREATE TABLE `auth_item` ( `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `type` int(11) NOT NULL, `description` text COLLATE utf8_unicode_ci, `rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `data` text COLLATE utf8_unicode_ci, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `auth_item` -- INSERT INTO `auth_item` (`name`, `type`, `description`, `rule_name`, `data`, `created_at`, `updated_at`) VALUES ('admin', 1, 'administrador', NULL, NULL, 1478399905, 1478399905), ('autor', 1, 'autor', NULL, NULL, 1478399916, 1478399916), ('delete', 2, 'Eliminar Entradas', NULL, NULL, 1478399985, 1478399985), ('update', 2, 'Actualizar entradas', NULL, NULL, 1478399971, 1478399971); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `auth_item_child` -- CREATE TABLE `auth_item_child` ( `parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `child` varchar(64) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `auth_rule` -- CREATE TABLE `auth_rule` ( `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `data` text COLLATE utf8_unicode_ci, `created_at` int(11) DEFAULT NULL, `updated_at` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `blog_cms` -- CREATE TABLE `blog_cms` ( `Id` int(11) NOT NULL, `Titulo` varchar(50) NOT NULL, `Contenido` text NOT NULL, `Publicar` tinyint(1) NOT NULL, `Autor` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `blog_cms` -- INSERT INTO `blog_cms` (`Id`, `Titulo`, `Contenido`, `Publicar`, `Autor`) VALUES (17, 'SOFTWARE QA', '<div class="card-content">\r\n<p align="justify">Este documento describe una familia de herramientas que no s&oacute;lo es compatible desarrollo de software, sino que tambi&eacute;n asegura la calidad de cada software producto de los requisitos definici&oacute;n al sistema integrado..</p>\r\n<p align="justify"><a href="https://www.computer.org/csdl/trans/ts/1985/09/01702108.pdf" target="_blank">Leer M&aacute;s</a></p>\r\n</div>', 1, ''), (18, 'TESTING', '<div class="card-content">\r\n<p align="justify">El presente trabajo describe el proceso realizado y resultados obtenidos al estudiar la documentaci&oacute;n t&eacute;cnica de los desarrollos de software (DS) del grupo de investigaci&oacute;n en sistemas y tecnolog&iacute;as de la informaci&oacute;n (STI), grupo adscrito a la UIS.</p>\r\n<p align="justify"><a title="Leer M&aacute;s" href="http://dspace.ucuenca.edu.ec/bitstream/123456789/23835/1/2015_TIC.EC_24.pdf" target="_blank">Leer M&aacute;s</a></p>\r\n</div>', 1, ''), (19, 'SELENIUM', '<div class="card-content">\r\n<p align="justify">El selenio es una herramienta para la creaci&oacute;n y ejecuci&oacute;n de pruebas web automatizados y es una buena opci&oacute;n para proyectos &aacute;giles en el que se puede utilizar para la creaci&oacute;n de pruebas de aceptaci&oacute;n correspondientes a las historias de usuario de la aplicaci&oacute;n web.</p>\r\n<p align="justify"><a title="Leer M&agrave;s" href="http://dl.acm.org/citation.cfm?id=1297927&amp;dl=ACM&amp;coll=DL&amp;CFID=691175237&amp;CFTOKEN=<PASSWORD>" target="_blank">Leer M&aacute;s</a></p>\r\n</div>', 1, ''), (20, 'MVC', '<div class="card-content">\r\n<p align="justify">Este art&iacute;culo presenta un sistema flexible de la miner&iacute;a construida sobre una la arquitectura de varios niveles. La arquitectura del sistema es dise&ntilde;ada en el patr&oacute;n de dise&ntilde;o Modelo-Vista-Controlador.</p>\r\n<p align="justify"><a title="Leer M&aacute;s" href="https://www.computer.org/csdl/proceedings/hicss/2005/2268/03/22680073c.pdf" target="_blank">Leer M&aacute;s</a></p>\r\n</div>', 1, ''), (21, 'HTML5', '<div class="card-content">\r\n<p align="justify">Se presenta un modelo que permite integrar directamente los nodos X3D en contenido HTML5 DOM. Este modelo trata de cumplir la promesa de la especificaci&oacute;n de HTML 5, que hace referencia a X3D.</p>\r\n<p align="justify"><a title="Leer M&aacute;s" href="http://dl.acm.org/citation.cfm?id=1559784&amp;dl=ACM&amp;coll=DL&amp;CFID=691175237&amp;CFTOKEN=<PASSWORD>" target="_blank">Leer M&aacute;s</a></p>\r\n</div>', 1, ''), (22, 'hola', '<p>skdasd</p>', 1, 'wendy'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `migration` -- CREATE TABLE `migration` ( `version` varchar(180) NOT NULL, `apply_time` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1478385738), ('m140506_102106_rbac_init', 1478385944); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `profile` -- CREATE TABLE `profile` ( `user_id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `public_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `gravatar_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `gravatar_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `bio` text COLLATE utf8_unicode_ci, `timezone` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `profile` -- INSERT INTO `profile` (`user_id`, `name`, `public_email`, `gravatar_email`, `gravatar_id`, `location`, `website`, `bio`, `timezone`) VALUES (1, '<NAME>', '<EMAIL>', '<EMAIL>', '767630de44edbefadda0d2357b62e738', 'Esmeraldas - Atacames', 'http://www.mundogya.com/', '', 'Pacific/Apia'), (2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `social_account` -- CREATE TABLE `social_account` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `provider` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `client_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `data` text COLLATE utf8_unicode_ci, `code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` int(11) DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `token` -- CREATE TABLE `token` ( `user_id` int(11) NOT NULL, `code` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `created_at` int(11) NOT NULL, `type` smallint(6) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `token` -- INSERT INTO `token` (`user_id`, `code`, `created_at`, `type`) VALUES (1, '<KEY>', 1478301133, 0), (2, '<KEY>', 1478364095, 0), (7, '<KEY>', 1478537057, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `confirmed_at` int(11) DEFAULT NULL, `unconfirmed_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `blocked_at` int(11) DEFAULT NULL, `registration_ip` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL, `flags` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Volcado de datos para la tabla `user` -- INSERT INTO `user` (`id`, `username`, `email`, `password_hash`, `auth_key`, `confirmed_at`, `unconfirmed_email`, `blocked_at`, `registration_ip`, `created_at`, `updated_at`, `flags`) VALUES (1, 'wendy', '<EMAIL>', <PASSWORD>', 'o41qPiKEY<KEY>', NULL, NULL, NULL, '::1', 1478300769, 1478300769, 0), (2, 'paola', '<EMAIL>', '$2y$12$Wd3vpmpqhGMH8Zpfm8lR.OfObj2at.wCKwQV7NVHLtP7WCd2rGEuC', 'YVRo4uR7IKGKBfv4lYgnsV5v_bSdjsUe', NULL, NULL, NULL, '::1', 1478364095, 1478364095, 0), (7, 'marc', '<EMAIL>', '$2y$12$f33.2e5QYtiKJF1DP23mFu2G1M6xVxCUYAn3qi5Sga8eF3z1Ci9UG', '2C_yQfrH2qEOaUiubfwMIdA0UveVEK0y', NULL, NULL, NULL, '::1', 1478537057, 1478537057, 0); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `auth_assignment` -- ALTER TABLE `auth_assignment` ADD PRIMARY KEY (`item_name`,`user_id`); -- -- Indices de la tabla `auth_item` -- ALTER TABLE `auth_item` ADD PRIMARY KEY (`name`), ADD KEY `rule_name` (`rule_name`), ADD KEY `idx-auth_item-type` (`type`); -- -- Indices de la tabla `auth_item_child` -- ALTER TABLE `auth_item_child` ADD PRIMARY KEY (`parent`,`child`), ADD KEY `child` (`child`); -- -- Indices de la tabla `auth_rule` -- ALTER TABLE `auth_rule` ADD PRIMARY KEY (`name`); -- -- Indices de la tabla `blog_cms` -- ALTER TABLE `blog_cms` ADD PRIMARY KEY (`Id`), ADD UNIQUE KEY `Titulo` (`Titulo`); -- -- Indices de la tabla `migration` -- ALTER TABLE `migration` ADD PRIMARY KEY (`version`); -- -- Indices de la tabla `profile` -- ALTER TABLE `profile` ADD PRIMARY KEY (`user_id`); -- -- Indices de la tabla `social_account` -- ALTER TABLE `social_account` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `account_unique` (`provider`,`client_id`), ADD UNIQUE KEY `account_unique_code` (`code`), ADD KEY `fk_user_account` (`user_id`); -- -- Indices de la tabla `token` -- ALTER TABLE `token` ADD UNIQUE KEY `token_unique` (`user_id`,`code`,`type`); -- -- Indices de la tabla `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `user_unique_email` (`email`), ADD UNIQUE KEY `user_unique_username` (`username`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `blog_cms` -- ALTER TABLE `blog_cms` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT de la tabla `social_account` -- ALTER TABLE `social_account` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `auth_assignment` -- ALTER TABLE `auth_assignment` ADD CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `auth_item` -- ALTER TABLE `auth_item` ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Filtros para la tabla `auth_item_child` -- ALTER TABLE `auth_item_child` ADD CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `profile` -- ALTER TABLE `profile` ADD CONSTRAINT `fk_user_profile` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; -- -- Filtros para la tabla `social_account` -- ALTER TABLE `social_account` ADD CONSTRAINT `fk_user_account` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; -- -- Filtros para la tabla `token` -- ALTER TABLE `token` ADD CONSTRAINT `fk_user_token` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>1-10 --test count function with three operands create class tb( col1 varchar, col2 char(10), col3 string ); insert into tb values('varchar01', 'char01', 'string01'); insert into tb values('varchar02', 'char02', 'string02'); insert into tb values('varchar03', 'char03', 'string03'); select count(col1), count(col2), count(col3) from tb; select count(col1, col2, col3) from tb; drop class tb;
<gh_stars>100-1000 set enable_global_stats = true; /* * This file is used to test the function of ExecVecResult() */ ---- --- Create Table and Insert Data ---- create schema vector_result_engine; set current_schema=vector_result_engine; create table vector_result_engine.ROW_RESULT_TABLE_01 ( col_int int ,col_bint bigint ,col_serial bigint ,col_char char(25) ,col_vchar varchar(35) ,col_text text ,col_num numeric(10,4) ,col_decimal decimal ,col_float float ,col_date date ,col_time time ,col_timetz timetz ,col_interval interval ,col_tinterval tinterval )distribute by hash(col_int); create table vector_result_engine.VECTOR_RESULT_TABLE_01 ( col_int int ,col_bint bigint ,col_serial bigint ,col_char char(25) ,col_vchar varchar(35) ,col_text text ,col_num numeric(10,4) ,col_decimal decimal ,col_float float ,col_date date ,col_time time ,col_timetz timetz ,col_interval interval ,col_tinterval tinterval )with(orientation = orc) tablespace hdfs_ts distribute by hash(col_int); CREATE OR REPLACE PROCEDURE func_insert_tbl_result_01() AS BEGIN FOR I IN 1..10000 LOOP IF i > 0 AND i < 2000 then INSERT INTO vector_result_engine.row_result_table_01 VALUES(i, i * 2, i*10, 'aa','result_bb','result_MPPDBBJ',i+0.001,i+1.12,i+10.123,'1986-12-24','11:20:00','11:20:22+06','2 day 13:24:56','["Sep 4, 1983 23:59:12" "Oct4, 1983 23:59:12"]'); ELSIF i > 1999 AND i < 6000 then INSERT INTO vector_result_engine.row_result_table_01 VALUES(i, i * 3, i*5, 'dd','result_bb','result_MPPDBXA',i+0.111,i+2.34,i+10.008,'1996-06-08 10:11:15','02:15:01','02:15:01+04','4 day 13:24:56','["Sep 6, 1981 23:59:12" "Oct4, 1983 23:59:12"]'); ELSE INSERT INTO vector_result_engine.row_result_table_01 VALUES(i, i * 1, i*12, 'hg','result_bb','result_MPPDBSZ',i+0.222,i+5.67,i+6.789,'2015-06-02','08:12:36','08:12:36+08','1 day 11:24:56','["Sep 4, 1983 23:59:12" "Oct4, 1996 23:28:12"]'); END IF; END LOOP; END; / CALL func_insert_tbl_result_01(); insert into vector_result_table_01 select * from row_result_table_01; CREATE TABLE vector_result_engine.VECTOR_RESULT_TABLE_02( a1 character varying(1000), a2 integer, a3 character varying(1000), a4 integer, a5 character varying(1000), a6 integer, a7 character varying(1000), a8 integer, a9 character varying(1000), a10 integer ) WITH (orientation = column) DISTRIBUTE BY HASH (a4) PARTITION BY RANGE (a2) ( PARTITION p1 VALUES LESS THAN (1), PARTITION p50001 VALUES LESS THAN (50001) ); create table vector_result_engine.VECTOR_RESULT_TABLE_03 ( a int ,b varchar(23) )with(orientation = orc) tablespace hdfs_ts; create table vector_result_engine.VECTOR_RESULT_TABLE_04 ( a int ,b text )with(orientation = orc) tablespace hdfs_ts; insert into VECTOR_RESULT_TABLE_03 values(1,'tianjian'); create table vector_result_engine.ROW_RESULT_TABLE_05 ( c_int integer ,c_smallint smallint ,c_bigint bigint ,c_decimal decimal ,c_numeric numeric ,c_real real ,c_double double precision ,c_serial bigint ,c_bigserial bigint ,c_money money ,c_character_varying character varying(1123) ,c_varchar varchar(16678) ,c_char char(14675) ,c_text text ,c_bytea bytea ,c_timestamp_without timestamp without time zone ,c_timestamp_with timestamp with time zone ,c_boolean boolean ,c_cidr cidr ,c_inet inet ,c_bit bit(20) ,c_bit_varying bit varying(20) ,c_oid oid ,c_character character(10) ,c_interval interval ,c_date date ,c_time_without time without time zone ,c_time_with time with time zone ,c_binary_integer binary_integer ,c_binary_double binary_double ,c_dec dec(18,9) ,c_numeric_1 numeric(19,9) ,c_varchar2 varchar2 )distribute by replication; create table vector_result_engine.VECTOR_RESULT_TABLE_05 with(orientation = orc) tablespace hdfs_ts distribute by hash(c_int) as select * from vector_result_engine.ROW_RESULT_TABLE_05; analyze vector_result_table_01; analyze vector_result_table_02; analyze vector_result_table_03; analyze vector_result_table_04; ---- --- case 1: Basic Case ---- explain (verbose on, costs off) select col_serial from vector_result_table_01 where current_date>'2015-02-14' order by 1 limit 10; select col_serial from vector_result_table_01 where current_date>'2015-02-14' order by 1 limit 10; select col_time+'00:00:20' from vector_result_table_01 where current_date < '2010-02-14' order by 1 limit 5; select 'aa' from vector_result_table_01 where current_date > '2015-02-14' and col_timetz = '08:12:36+08' limit 5; select ctid, * from vector_result_table_01 where col_text is NULL; select col_timetz, ctid from vector_result_table_01 where current_date > '2015-02-14' and col_int < 5 order by 1, 2; execute direct on(datanode1) 'select 2 from vector_result_engine.vector_result_table_01 where col_int > 500 limit 10'; ---- --- case 2: With NULL ---- INSERT INTO vector_result_engine.row_result_table_01 VALUES(25, 252, 2525, NULL,'result_bb','result_MPPDBSZ',0.222,5.67,6.789,'2015-09-02',NULL,'08:12:36+08','1 day 11:24:56',NULL); INSERT INTO vector_result_engine.row_result_table_01 VALUES(NULL,NULL,212525,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); delete from vector_result_table_01; insert into vector_result_table_01 select * from row_result_table_01; select *,ctid from vector_result_table_01 where col_vchar is NULL order by 1, 2, 3; select col_date from vector_result_table_01 where current_date>'2015-02-14' and col_char is NULL order by 1; ---- --- case 3: Function Case ---- CREATE FUNCTION vec_result_func(int, bigint) RETURNS bigint AS 'select count(*) from vector_result_table_01 where col_int<$1 and col_bint<$2;' LANGUAGE SQL IMMUTABLE RETURNS NULL ON NULL INPUT; select * from vec_result_func(5,500); drop function vec_result_func; CREATE FUNCTION vec_result_func(int, bigint) RETURNS bigint AS 'select count(*) from vector_result_table_01 where col_int<$1' LANGUAGE SQL IMMUTABLE RETURNS NULL ON NULL INPUT;; select * from vec_result_func(5,500); drop function vec_result_func; ---- --- case 4: With Partition ---- SELECT a1, a2 FROM vector_result_table_02 WHERE a9='da' AND a9=' l' AND current_date>'2015-02-14' ORDER BY a1, a2; ---- --- case 5: coerce transformation ---- insert into vector_result_table_04 select * from vector_result_table_03; select * from vector_result_table_03; select * from vector_result_table_04; ---- --- case 6: Test Vtimstamp_part ---- explain (costs off, verbose on) select distinct date_trunc('microsecon',col_date), date_trunc('millisecon',col_date) from vector_result_table_01 order by 1, 2; select distinct date_trunc('microsecon',col_date), date_trunc('millisecon',col_date) from vector_result_table_01 order by 1, 2; --select distinct date_part('seconds',col_timetz), date_part('min',col_timetz), date_part('hours',col_timetz) from vector_result_table_01 order by 1,2,3; select distinct date_trunc('months',col_date), date_trunc('qtr',col_date), date_trunc('days',col_date) from vector_result_table_01 order by 1,2 ,3; select distinct date_trunc('decades',col_date), date_trunc('weeks',col_date), date_trunc('years',col_date) from vector_result_table_01 order by 1,2,3; select distinct date_trunc('millennia',col_date),date_trunc('centuries',col_date) from vector_result_table_01 order by 1,2; select distinct date_trunc('hours',col_time), date_trunc('minute',col_interval) from vector_result_table_01 order by 1, 2; --select distinct date_part('timezone_h',col_timetz) from vector_result_table_01 order by 1; --select distinct date_part('timezone_m',col_timetz) from vector_result_table_01 order by 1; --select distinct date_part('timezone',col_timetz) from vector_result_table_01 order by 1; select date_trunc('microsecon',col_date), date_trunc('millisecon',col_date) from vector_result_table_01 where col_num > 1998 and col_float < 2015 order by 1,2; --select distinct date_part('timezone_h',col_timetz) from vector_result_table_01 where col_char > 'aa' and col_timetz < '11:20:22+06' order by 1; ---- --- Test table_skewness function ---- create table test(id int); select table_skewness('test'); drop table test; ---- --- Clean Table and Resource ---- drop schema vector_result_engine cascade;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 14, 2021 at 12:08 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 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: `movie_posters` -- CREATE DATABASE IF NOT EXISTS `movie_posters` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `movie_posters`; -- -------------------------------------------------------- -- -- Table structure for table `artist` -- CREATE TABLE `artist` ( `artist_id` int(11) NOT NULL, `artist_name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `artist` -- INSERT INTO `artist` (`artist_id`, `artist_name`) VALUES (1, '<NAME>'), (2, '<NAME>'), (3, '<NAME>'), (4, '<NAME>'), (5, '<NAME>'), (6, 'Raid71'), (7, 'DKNG'), (8, '<NAME>'), (9, '<NAME>'), (10, 'BluMoo'), (11, '<NAME>'), (12, '<NAME>'), (13, '<NAME>'), (14, '<NAME>'), (15, '<NAME>'), (16, '<NAME>'), (17, '<NAME>'), (18, '<NAME>'), (19, '<NAME>'), (20, '<NAME>'), (21, '<NAME>'), (22, '<NAME>'), (23, '<NAME>'), (24, '<NAME>'), (25, '<NAME>'), (26, '<NAME>'), (27, '<NAME>'), (28, '<NAME>'), (29, '<NAME>'), (30, '<NAME>'), (31, '<NAME>'), (32, '<NAME>'); -- -------------------------------------------------------- -- -- Table structure for table `genres` -- CREATE TABLE `genres` ( `genre_id` int(10) NOT NULL, `genre_name` varchar(254) NOT NULL, `genre_tagline` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `genres` -- INSERT INTO `genres` (`genre_id`, `genre_name`, `genre_tagline`) VALUES (1, 'Action', 'Lights, Camera...'), (2, 'Classics', 'Blasts from the past'), (3, 'Crime', 'They say it never pays...'), (4, 'Family', 'There’s no time like family time'), (5, 'Horror', 'Add some fright with your furniture!'), (6, 'Science Fiction', 'A picture is worth a thousand new worlds'), (7, 'Drama', 'Stories to inspire…'), (8, 'Fantasy', 'Escape to a new world'); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `order_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `order_status_id` tinyint(11) NOT NULL, `date_created` datetime NOT NULL DEFAULT current_timestamp(), `last_updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`order_id`, `user_id`, `order_status_id`, `date_created`, `last_updated`) VALUES (1, 2, 3, '2021-03-08 14:18:43', '2021-03-12 23:14:39'), (2, 3, 2, '2021-03-10 12:21:43', '2021-03-13 23:14:39'), (3, 2, 1, '2021-03-12 10:42:26', '2021-03-13 23:15:21'), (4, 4, 1, '2021-03-13 21:08:46', '2021-03-13 23:14:39'); -- -------------------------------------------------------- -- -- Table structure for table `order_details` -- CREATE TABLE `order_details` ( `order_detail_id` int(11) NOT NULL, `order_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `quantity` tinyint(4) NOT NULL, `product_price` decimal(10,2) NOT NULL, `total_cost` decimal(10,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `order_details` -- INSERT INTO `order_details` (`order_detail_id`, `order_id`, `product_id`, `quantity`, `product_price`, `total_cost`) VALUES (1, 1, 30, 1, '60.00', '60.00'), (2, 1, 7, 1, '85.00', '85.00'), (3, 2, 7, 1, '85.00', '85.00'), (4, 3, 14, 1, '75.00', '75.00'), (5, 4, 11, 2, '110.00', '220.00'), (6, 4, 21, 1, '30.00', '30.00'), (7, 4, 15, 1, '60.00', '60.00'); -- -------------------------------------------------------- -- -- Table structure for table `order_status` -- CREATE TABLE `order_status` ( `status_id` int(11) NOT NULL, `status_code` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `order_status` -- INSERT INTO `order_status` (`status_id`, `status_code`) VALUES (1, 'Pending'), (2, 'Out for Delivery'), (3, 'Delivered'); -- -------------------------------------------------------- -- -- Table structure for table `product` -- CREATE TABLE `product` ( `product_id` int(11) NOT NULL, `product_name` varchar(255) NOT NULL, `product_price` decimal(10,2) NOT NULL, `product_sale` decimal(10,2) DEFAULT NULL, `product_quantity` int(11) NOT NULL, `product_total` int(11) NOT NULL, `artist_id` int(10) NOT NULL, `date_added` datetime NOT NULL DEFAULT current_timestamp(), `featured` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product` -- INSERT INTO `product` (`product_id`, `product_name`, `product_price`, `product_sale`, `product_quantity`, `product_total`, `artist_id`, `date_added`, `featured`) VALUES (1, '2001: A Space Odyssey', '70.00', NULL, 31, 80, 1, '2021-03-02 10:37:07', 1), (2, 'Alien', '50.00', NULL, 134, 250, 1, '2021-03-02 10:44:16', 0), (3, 'Back to the Future', '35.00', NULL, 21, 250, 2, '2021-03-02 10:44:16', 0), (4, 'The Wizard of Oz', '60.00', NULL, 26, 250, 4, '2021-03-02 10:44:16', 0), (5, 'The Shining', '90.00', NULL, 70, 150, 21, '2021-03-02 10:44:16', 0), (6, 'Guardians of the Galaxy', '75.00', NULL, 112, 250, 20, '2021-03-02 10:44:16', 1), (7, 'Drive', '85.00', NULL, 8, 50, 22, '2021-03-02 10:44:16', 0), (8, 'Jurassic Park', '80.00', NULL, 79, 250, 13, '2021-03-02 10:44:16', 0), (9, 'Forbidden Planet', '80.00', NULL, 139, 250, 23, '2021-03-02 10:44:16', 0), (10, 'RoboCop', '40.00', NULL, 29, 250, 15, '2021-03-02 10:44:16', 0), (11, 'Silent Running', '110.00', NULL, 181, 200, 6, '2021-03-03 10:41:16', 1), (12, 'Coherence', '50.00', '25.00', 12, 50, 9, '2021-03-02 10:44:16', 0), (13, 'The Thing', '65.00', NULL, 10, 250, 8, '2021-03-02 10:44:16', 0), (14, 'Blade Runner', '75.00', NULL, 20, 80, 6, '2021-03-02 10:44:16', 0), (15, 'Metropolis', '60.00', NULL, 68, 100, 24, '2021-03-02 10:44:16', 0), (16, 'Psycho', '60.00', NULL, 40, 60, 10, '2021-03-02 10:44:16', 0), (17, 'Vertigo', '75.00', NULL, 24, 60, 16, '2021-03-02 10:44:16', 0), (18, 'Jaws', '75.00', NULL, 200, 250, 17, '2021-03-02 10:44:16', 0), (19, 'Dr. Strangelove', '20.00', NULL, 101, 250, 25, '2021-03-02 10:44:16', 0), (20, 'The Terminator', '35.00', NULL, 203, 250, 26, '2021-03-02 10:44:16', 0), (21, 'E.T.', '30.00', NULL, 234, 250, 14, '2021-03-02 10:44:16', 0), (22, 'Rear Window', '80.00', '70.00', 158, 250, 4, '2021-03-02 10:44:16', 0), (23, 'The Iron Giant', '60.00', NULL, 92, 250, 7, '2021-03-02 10:44:16', 0), (24, 'Howl\'s Moving Castle', '70.00', NULL, 118, 250, 18, '2021-03-02 10:44:16', 0), (25, 'Annihilation', '120.00', NULL, 156, 250, 1, '2021-03-03 09:44:16', 1), (26, 'The Lord of the Rings: The Fellowship of the Ring', '100.00', NULL, 195, 250, 27, '2021-03-02 10:44:16', 1), (27, 'The Lord of the Rings: The Two Towers', '90.00', NULL, 110, 250, 3, '2021-03-02 10:44:16', 0), (28, 'The Lord of the Rings: The Return of the King', '90.00', NULL, 210, 250, 11, '2021-03-02 10:44:16', 0), (29, 'Wall-E', '30.00', NULL, 19, 50, 5, '2021-03-02 10:44:16', 0), (30, 'Inception', '60.00', NULL, 0, 250, 1, '2021-03-02 10:44:16', 0), (31, 'Interstellar', '130.00', NULL, 60, 120, 1, '2021-03-02 10:44:16', 1), (32, 'The Rocketeer', '80.00', NULL, 240, 250, 28, '2021-03-03 10:44:16', 0), (33, 'Spirited Away', '45.00', NULL, 8, 60, 12, '2021-03-02 10:44:16', 0), (34, 'The Birds', '60.00', NULL, 226, 250, 29, '2021-03-02 10:44:16', 0), (35, 'Godzilla', '50.00', NULL, 21, 80, 19, '2021-03-02 10:44:16', 0), (36, 'Parasite', '65.00', NULL, 40, 100, 30, '2021-03-02 10:44:16', 0), (37, 'Blade Runner 2049', '50.00', NULL, 198, 250, 31, '2021-03-02 10:44:16', 0), (38, 'Mad Max: Fury Road', '70.00', NULL, 196, 250, 32, '2021-03-02 10:44:16', 0), (39, 'Akira', '80.00', NULL, 0, 100, 3, '2021-03-02 10:44:16', 0), (42, 'Starship Troopers', '65.00', NULL, 45, 50, 1, '2021-03-02 10:44:16', 0); -- -------------------------------------------------------- -- -- Table structure for table `product_genres` -- CREATE TABLE `product_genres` ( `product_genre_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `genre_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `product_genres` -- INSERT INTO `product_genres` (`product_genre_id`, `product_id`, `genre_id`) VALUES (1, 1, 6), (2, 1, 2), (3, 2, 5), (4, 3, 4), (5, 4, 4), (6, 5, 5), (7, 6, 6), (8, 6, 1), (9, 6, 4), (10, 7, 3), (11, 8, 4), (12, 8, 1), (13, 9, 6), (14, 10, 6), (15, 10, 1), (16, 11, 6), (17, 12, 6), (18, 13, 5), (19, 13, 6), (20, 14, 6), (21, 15, 2), (22, 15, 6), (23, 16, 5), (24, 16, 2), (25, 17, 2), (26, 18, 4), (27, 19, 2), (28, 20, 6), (29, 21, 4), (30, 22, 2), (31, 23, 4), (32, 24, 4), (33, 25, 6), (34, 25, 5), (35, 26, 8), (36, 27, 8), (37, 28, 8), (38, 29, 4), (39, 30, 3), (40, 31, 6), (41, 32, 4), (42, 33, 4), (43, 34, 2), (44, 35, 1), (45, 36, 7), (46, 37, 6), (47, 38, 1), (48, 39, 1), (49, 42, 6); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(100) NOT NULL, `user_type` varchar(5) DEFAULT NULL, `first_name` varchar(255) NOT NULL, `last_name` varchar(255) NOT NULL, `created` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`user_id`, `email`, `password`, `user_type`, `first_name`, `last_name`, `created`) VALUES (1, '<EMAIL>', 'adminpass', 'admin', '', '', '2021-02-25 10:29:51'), (2, '<EMAIL>', '<PASSWORD>', NULL, 'Daniel', 'Parker', '2021-02-28 15:23:56'), (3, '<EMAIL>', 'password', NULL, 'Emily', 'Fields', '2021-03-01 16:32:56'), (4, '<EMAIL>', '$2y$10$j4Ky.1IM3jn1qKeGCK4rq.E5bVUoxDRoq8dVrcT845VjYzytwcNW.', NULL, 'Don', 'Carino', '2021-03-09 16:22:58'); -- -- Indexes for dumped tables -- -- -- Indexes for table `artist` -- ALTER TABLE `artist` ADD PRIMARY KEY (`artist_id`); -- -- Indexes for table `genres` -- ALTER TABLE `genres` ADD PRIMARY KEY (`genre_id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`order_id`), ADD KEY `order_status_id` (`order_status_id`), ADD KEY `user_id` (`user_id`); -- -- Indexes for table `order_details` -- ALTER TABLE `order_details` ADD PRIMARY KEY (`order_detail_id`), ADD KEY `order_id` (`order_id`,`product_id`); -- -- Indexes for table `order_status` -- ALTER TABLE `order_status` ADD PRIMARY KEY (`status_id`); -- -- Indexes for table `product` -- ALTER TABLE `product` ADD PRIMARY KEY (`product_id`), ADD KEY `artist_id` (`artist_id`); -- -- Indexes for table `product_genres` -- ALTER TABLE `product_genres` ADD PRIMARY KEY (`product_genre_id`), ADD KEY `genre_id` (`genre_id`), ADD KEY `product_id` (`product_id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `artist` -- ALTER TABLE `artist` MODIFY `artist_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `genres` -- ALTER TABLE `genres` MODIFY `genre_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `order_details` -- ALTER TABLE `order_details` MODIFY `order_detail_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `order_status` -- ALTER TABLE `order_status` MODIFY `status_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `product` -- ALTER TABLE `product` MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- -- AUTO_INCREMENT for table `product_genres` -- ALTER TABLE `product_genres` MODIFY `product_genre_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Constraints for dumped tables -- -- -- Constraints for table `product_genres` -- ALTER TABLE `product_genres` ADD CONSTRAINT `product_genres_ibfk_1` FOREIGN KEY (`genre_id`) REFERENCES `genres` (`genre_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `product_genres_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `product` (`product_id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE PROCEDURE tSQLt.Private_RenameObject @ObjectName NVARCHAR(MAX), @NewName NVARCHAR(MAX) = NULL OUTPUT AS BEGIN SET @NewName = ISNULL(@NewName, NEWID()); DECLARE @Command NVARCHAR(MAX) = CONCAT ( 'EXEC sp_rename ''', tSQLt.Private_GetQuotedObjectName(@ObjectName), ''', ''', @NewName, ''', ''OBJECT'';' ); EXEC (@Command); END; GO
-- show objects that are pinned in the shared pool col owner format a10 col name format a30 col type format a15 col memory format 999.99 heading "MEGS" col kept noprint @@title80 'Objects That Are Pinned In Shared Pool' break on owner skip 1 compute sum of memory on owner report select owner, name, type, (sharable_mem / 1048576) memory, kept from v$db_object_cache where kept = 'YES' order by owner,name,type spool $HOME/tmp/&dbname/showpin.txt / spool off --@@sel_exit 'dummy'
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Dec 04, 2020 at 12:33 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 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: `menu_nama_barang` -- -- -------------------------------------------------------- -- -- Table structure for table `alokasi` -- CREATE TABLE `alokasi` ( `id_alokasi` char(7) NOT NULL, `dep` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `alokasi` -- INSERT INTO `alokasi` (`id_alokasi`, `dep`) VALUES ('A000001', 'TM Pelaihari'), ('A000002', 'IT'), ('A000003', 'MD Accounting'), ('A000004', 'Accounting Cabang'), ('A000005', 'Gudang Unit'), ('A000006', 'Gudang Sparepart'), ('A000007', 'TM 2 NAGA'), ('A000008', 'TM Kuala Kurun'), ('A000009', 'Direct Sales'), ('A000010', 'Faktur'), ('A000011', 'Marketing'), ('A000012', 'Marketing Development'), ('A000013', 'Marketing Communication'), ('A000014', 'Marketing Corporate'), ('A000015', 'Marketing Promotion'), ('A000016', 'Direksi / BOD'), ('A000017', 'Finance'), ('A000018', 'General Affair'), ('A000019', 'Pajak'), ('A000020', 'TSD'), ('A000021', 'Kasir Finance'); -- -------------------------------------------------------- -- -- Table structure for table `barang` -- CREATE TABLE `barang` ( `id_barang` char(7) NOT NULL, `nama_barang` varchar(255) NOT NULL, `stok` int(11) NOT NULL, `satuan_id` int(11) NOT NULL, `jenis_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `barang` -- INSERT INTO `barang` (`id_barang`, `nama_barang`, `stok`, `satuan_id`, `jenis_id`) VALUES ('B000001', 'KABEL NYM', 90, 7, 15), ('B000002', 'Hikvision DS-7616NI-Q2/16P', 3, 5, 16), ('B000003', 'Hikvision Outdoor', 4, 5, 12), ('B000004', 'Hikvision Indoor', 20, 5, 12), ('B000005', 'Hikvision DS-7608NI-Q2/8P', 0, 5, 16), ('B000006', 'Hikvision DS-7608NI-Q1/8P', 0, 5, 16), ('B000007', 'Hikvision DS-7604NI-Q1/4P', 0, 5, 16), ('B000008', 'Escam Brick QD300', 7, 5, 12), ('B000009', 'Escam Brick QD500', 2, 5, 12), ('B000010', 'Escam Warrior QD330', 0, 5, 12), ('B000011', 'RAM CPU DRR3 12800 2GB', 1, 5, 35), ('B000012', 'Hikvision DS-7616NI-Q1', 0, 5, 16), ('B000013', 'PSU SIMBADDA 380W', 0, 5, 14), ('B000014', 'Hikvision DS-7608NI-Q1', 2, 5, 16), ('B000015', 'BATERAI UPS', 2, 5, 36), ('B000016', 'HDD WD CCTV 4TB', 3, 5, 37), ('B000017', 'HDD CPU 500GB', 0, 5, 25); -- -------------------------------------------------------- -- -- Table structure for table `barang_keluar` -- CREATE TABLE `barang_keluar` ( `id_barang_keluar` char(16) NOT NULL, `user_id` int(11) NOT NULL, `barang_id` char(7) NOT NULL, `jumlah_keluar` int(11) NOT NULL, `tanggal_keluar` date NOT NULL, `alokasi_id` char(7) NOT NULL, `ket` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `barang_keluar` -- INSERT INTO `barang_keluar` (`id_barang_keluar`, `user_id`, `barang_id`, `jumlah_keluar`, `tanggal_keluar`, `alokasi_id`, `ket`) VALUES ('T-BK-20112800000', 18, 'B000011', 1, '2020-11-28', 'A000001', 'Counter'), ('T-BK-20112800001', 18, 'B000013', 1, '2020-11-28', 'A000001', 'Admin'), ('T-BK-20112800002', 17, 'B000003', 2, '2020-11-28', 'A000008', 'CCTV'), ('T-BK-20112800003', 17, 'B000004', 3, '2020-11-28', 'A000008', 'CCTV'), ('T-BK-20120300000', 17, 'B000004', 2, '2020-12-03', 'A000007', 'CCTV'), ('T-BK-20120300001', 17, 'B000003', 1, '2020-12-03', 'A000007', 'CCTV'), ('T-BK-20120300002', 18, 'B000017', 1, '2020-12-03', 'A000005', 'Laila'), ('T-BK-20120300010', 21, 'B000012', 1, '2020-12-03', 'A000018', 'Nafis'); -- -- Triggers `barang_keluar` -- DELIMITER $$ CREATE TRIGGER `update_stok_keluar` BEFORE INSERT ON `barang_keluar` FOR EACH ROW UPDATE `barang` SET `barang`.`stok` = `barang`.`stok` - NEW.jumlah_keluar WHERE `barang`.`id_barang` = NEW.barang_id $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `barang_masuk` -- CREATE TABLE `barang_masuk` ( `id_barang_masuk` char(16) NOT NULL, `supplier_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `barang_id` char(7) NOT NULL, `jumlah_masuk` int(11) NOT NULL, `tanggal_masuk` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `barang_masuk` -- INSERT INTO `barang_masuk` (`id_barang_masuk`, `supplier_id`, `user_id`, `barang_id`, `jumlah_masuk`, `tanggal_masuk`) VALUES ('T-BM-20111700000', 10, 20, 'B000001', 100, '2020-11-17'), ('T-BM-20111700003', 8, 17, 'B000003', 8, '2020-11-17'), ('T-BM-20112000000', 11, 17, 'B000004', 26, '2020-11-20'), ('T-BM-20112000001', 11, 17, 'B000002', 1, '2020-11-20'), ('T-BM-20112000002', 12, 17, 'B000002', 3, '2020-11-20'), ('T-BM-20112000003', 12, 17, 'B000005', 1, '2020-11-20'), ('T-BM-20112000004', 12, 17, 'B000006', 1, '2020-11-20'), ('T-BM-20112000005', 12, 17, 'B000007', 1, '2020-11-20'), ('T-BM-20112000006', 8, 17, 'B000008', 7, '2020-11-20'), ('T-BM-20112000007', 8, 17, 'B000009', 2, '2020-11-20'), ('T-BM-20112000008', 8, 17, 'B000010', 1, '2020-11-20'), ('T-BM-20112800000', 9, 18, 'B000011', 2, '2020-11-28'), ('T-BM-20112800002', 9, 18, 'B000013', 1, '2020-11-28'), ('T-BM-20112800003', 9, 17, 'B000014', 2, '2020-11-28'), ('T-BM-20112800004', 9, 17, 'B000012', 1, '2020-11-28'), ('T-BM-20112800005', 13, 18, 'B000015', 3, '2020-11-28'), ('T-BM-20120300000', 14, 18, 'B000016', 4, '2020-12-03'), ('T-BM-20120300001', 15, 18, 'B000017', 1, '2020-12-03'); -- -- Triggers `barang_masuk` -- DELIMITER $$ CREATE TRIGGER `update_stok_masuk` BEFORE INSERT ON `barang_masuk` FOR EACH ROW UPDATE `barang` SET `barang`.`stok` = `barang`.`stok` + NEW.jumlah_masuk WHERE `barang`.`id_barang` = NEW.barang_id $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `jenis` -- CREATE TABLE `jenis` ( `id_jenis` int(11) NOT NULL, `nama_jenis` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `jenis` -- INSERT INTO `jenis` (`id_jenis`, `nama_jenis`) VALUES (12, 'CCTV'), (13, 'HARDISK'), (14, 'POWER SUPPLY'), (15, 'KABEL'), (16, 'Hikvision NVR'), (19, 'RamCpuDdr22gb6400'), (20, 'RamCpuDdr312800'), (21, 'RAM CPU DDR2 4200'), (22, 'RAM DDR2 6400'), (23, 'RAM DDR1 3200'), (24, 'HDD CPU 320GB'), (25, 'HDD CPU 500GB'), (26, 'HDD CPU 1TB'), (27, 'HDD LAPTOP 320GB'), (28, 'HDD LAPTOP 500GB'), (29, 'HDD LAPTOP 1TB'), (30, 'SSD SATA 256GB'), (31, 'SSD SATA 480GB'), (32, 'SSD SATA 512GB'), (33, 'KABEL DATA PRINTER'), (34, 'KABEL POWER PRINTER'), (35, 'RAM KOMPUTER'), (36, 'BATERAI UPS'), (37, 'HDD CPU 4TB'); -- -------------------------------------------------------- -- -- Table structure for table `satuan` -- CREATE TABLE `satuan` ( `id_satuan` int(11) NOT NULL, `nama_satuan` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `satuan` -- INSERT INTO `satuan` (`id_satuan`, `nama_satuan`) VALUES (1, 'Unit'), (2, 'Pack'), (5, 'Pcs'), (6, 'Stel'), (7, 'M'); -- -------------------------------------------------------- -- -- Table structure for table `supplier` -- CREATE TABLE `supplier` ( `id_supplier` int(11) NOT NULL, `nama_supplier` varchar(50) NOT NULL, `no_telp` varchar(15) NOT NULL, `alamat` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `supplier` -- INSERT INTO `supplier` (`id_supplier`, `nama_supplier`, `no_telp`, `alamat`) VALUES (8, 'CCTV Jakarta', '0', 'Jakarta'), (9, 'Mega Surya Komputer', '087816999880', 'Jl. Gatot Subroto No.56 VI, Kuripan, Kec. Banjarmasin Tim., Kota Banjarmasin, Kalimantan Selatan 70235'), (10, '<NAME>', '0', '-'), (11, 'myonlinecctv', '089692398801', 'Grogot, Kota Administrasi Jakarta Barat'), (12, 'Sparepart Komputer', '0859534214809', 'PLM, Palembang'), (13, 'PAK KARNO', '081351871198', 'BANJARMASIN'), (14, 'Supernova Computer Ariet', '08567104095', 'Sawah Besar, Jakarta Pusat'), (15, 'NUSANTARA JAYA COM', '081348543706', 'BANJARMASIN'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `nama` varchar(50) NOT NULL, `username` varchar(50) NOT NULL, `email` varchar(100) NOT NULL, `no_telp` varchar(15) NOT NULL, `role` enum('gudang','admin') NOT NULL, `password` varchar(255) NOT NULL, `created_at` int(11) NOT NULL, `foto` text NOT NULL, `is_active` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `nama`, `username`, `email`, `no_telp`, `role`, `password`, `created_at`, `foto`, `is_active`) VALUES (16, 'Admin', 'admin', '<EMAIL>', '087741136521', 'admin', '$2y$10$0eZveFeeTryYhBEmiYuJjO/og5v3gRWf5y2BCVvTeBYZUVCngAoQe', 1604904101, '6928d71723338f08e15621d29e0dd9df.png', 1), (17, '<NAME>', 'Catur', '<EMAIL>', '085820626066', 'admin', '$2y$10$F/.wK5WqOqj7Zt0jTVoLqOf13ZlWxsR5HnGJimQYefQnmGQAf4gxO', 1605526280, '67642bcf45a6cac4c89a0b7fc5a6d7b2.png', 1), (18, '<NAME>', 'najib', '<EMAIL>', '0', 'admin', '$2y$10$qdR9gkQ6IFcsNV/Cwnb6Uue5P1Fym1o7d1/2f08fVw7qdaVV.XrR6', 1605526402, 'user.png', 1), (19, '<NAME>', 'riyadi', '<EMAIL>', '0', 'admin', '$2y$10$0eZveFeeTryYhBEmiYuJjO/og5v3gRWf5y2BCVvTeBYZUVCngAoQe', 1605526430, 'user.png', 1), (20, 'Haspiadi', 'haspiadi', '<EMAIL>', '0', 'admin', '$2y$10$zgjJuQoiB/OHlnOzM97dFOnIiTDAEeGaFUK4YDHQxUD2PDi.AAUHi', 1605526866, 'user.png', 1), (21, 'Teknisi', 'teknisi', '<EMAIL>', '081234567890', 'gudang', '$2y$10$fTQRadWHd3dQ1QKAgxdZe.13BscXcoVC5Q7QESykoo1O.lxS0m36a', 1607001906, 'user.png', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `alokasi` -- ALTER TABLE `alokasi` ADD PRIMARY KEY (`id_alokasi`); -- -- Indexes for table `barang` -- ALTER TABLE `barang` ADD PRIMARY KEY (`id_barang`), ADD KEY `satuan_id` (`satuan_id`), ADD KEY `kategori_id` (`jenis_id`); -- -- Indexes for table `barang_keluar` -- ALTER TABLE `barang_keluar` ADD PRIMARY KEY (`id_barang_keluar`), ADD KEY `id_user` (`user_id`), ADD KEY `barang_id` (`barang_id`); -- -- Indexes for table `barang_masuk` -- ALTER TABLE `barang_masuk` ADD PRIMARY KEY (`id_barang_masuk`), ADD KEY `id_user` (`user_id`), ADD KEY `supplier_id` (`supplier_id`), ADD KEY `barang_id` (`barang_id`); -- -- Indexes for table `jenis` -- ALTER TABLE `jenis` ADD PRIMARY KEY (`id_jenis`); -- -- Indexes for table `satuan` -- ALTER TABLE `satuan` ADD PRIMARY KEY (`id_satuan`); -- -- Indexes for table `supplier` -- ALTER TABLE `supplier` ADD PRIMARY KEY (`id_supplier`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `jenis` -- ALTER TABLE `jenis` MODIFY `id_jenis` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `satuan` -- ALTER TABLE `satuan` MODIFY `id_satuan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `supplier` -- ALTER TABLE `supplier` MODIFY `id_supplier` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- Constraints for dumped tables -- -- -- Constraints for table `barang` -- ALTER TABLE `barang` ADD CONSTRAINT `barang_ibfk_1` FOREIGN KEY (`satuan_id`) REFERENCES `satuan` (`id_satuan`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `barang_ibfk_2` FOREIGN KEY (`jenis_id`) REFERENCES `jenis` (`id_jenis`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `barang_keluar` -- ALTER TABLE `barang_keluar` ADD CONSTRAINT `barang_keluar_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `barang_keluar_ibfk_2` FOREIGN KEY (`barang_id`) REFERENCES `barang` (`id_barang`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `barang_masuk` -- ALTER TABLE `barang_masuk` ADD CONSTRAINT `barang_masuk_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id_user`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `barang_masuk_ibfk_2` FOREIGN KEY (`supplier_id`) REFERENCES `supplier` (`id_supplier`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `barang_masuk_ibfk_3` FOREIGN KEY (`barang_id`) REFERENCES `barang` (`id_barang`) 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 */;
<reponame>Ramadona1001/ElfasialKW -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2020 at 02:27 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 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: `wedding_2020` -- -- -------------------------------------------------------- -- -- Table structure for table `buffets` -- CREATE TABLE `buffets` ( `id` bigint(20) UNSIGNED NOT NULL, `categories_id` bigint(20) UNSIGNED NOT NULL, `iteminventory_id` bigint(20) UNSIGNED NOT NULL, `no_members` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `buffets` -- INSERT INTO `buffets` (`id`, `categories_id`, `iteminventory_id`, `no_members`, `created_at`, `updated_at`) VALUES (51, 26, 6, 100, '2020-04-07 11:07:04', '2020-04-07 11:07:04'); -- -------------------------------------------------------- -- -- Table structure for table `buffetsitems` -- CREATE TABLE `buffetsitems` ( `id` bigint(20) UNSIGNED NOT NULL, `iteminventory_id` bigint(20) UNSIGNED NOT NULL, `buffet_id` bigint(20) UNSIGNED NOT NULL, `category_id` bigint(20) UNSIGNED NOT NULL, `no_members` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `buffet_gallery` -- CREATE TABLE `buffet_gallery` ( `id` int(11) NOT NULL, `buffet_id` bigint(20) UNSIGNED NOT NULL, `image_path` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `catalogitems` -- CREATE TABLE `catalogitems` ( `id` bigint(20) UNSIGNED NOT NULL, `iteminventory_id` bigint(20) UNSIGNED NOT NULL, `catalog_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `catalogitems_gallery` -- CREATE TABLE `catalogitems_gallery` ( `id` int(11) NOT NULL, `cat_image` varchar(255) NOT NULL, `catalogitem_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `catalogs` -- CREATE TABLE `catalogs` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `catalog_img` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `categories_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `catalogs` -- INSERT INTO `catalogs` (`id`, `en_name`, `ar_name`, `en_desc`, `ar_desc`, `catalog_img`, `categories_id`, `created_at`, `updated_at`) VALUES (123105, 'Sweets', 'Sweets', 'Sweets', 'Sweets', '1586257084.jpg', 26, '2020-04-07 10:58:04', '2020-04-07 10:58:04'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `cat_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `en_name`, `ar_name`, `en_desc`, `ar_desc`, `cat_image`, `created_at`, `updated_at`) VALUES (26, 'Weddings', 'أفراح', 'Weddings', 'أفراح', '1586228682.png', '2020-04-07 03:04:42', '2020-04-07 03:04:42'); -- -------------------------------------------------------- -- -- Table structure for table `contact_us` -- CREATE TABLE `contact_us` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `message` longtext 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 `contact_us` -- INSERT INTO `contact_us` (`id`, `name`, `email`, `subject`, `message`, `created_at`, `updated_at`) VALUES (1, 'Ahmed', '<EMAIL>', 'aaa', 'aaaaa', '2020-01-25 17:41:25', '2020-01-25 17:41:25'), (2, 'Admins', '<EMAIL>', 'aaa', 'aaaaa', '2020-01-25 17:43:44', '2020-01-25 17:43:44'), (3, 'asd', '<EMAIL>', 'aaa', 'aaaaa', '2020-01-25 17:45:52', '2020-01-25 17:45:52'), (4, '<NAME>', '<EMAIL>', 'gfghfgf', 'hghfgh', '2020-02-05 08:33:51', '2020-02-05 08:33:51'), (5, 'ismail', '<EMAIL>', 'نشكركم على الخدمة الممتازة', 'شكر', '2020-02-09 09:40:22', '2020-02-09 09:40:22'); -- -------------------------------------------------------- -- -- Table structure for table `contract` -- CREATE TABLE `contract` ( `id` bigint(20) UNSIGNED NOT NULL, `ar_name` varchar(255) NOT NULL, `en_name` varchar(255) NOT NULL, `ar_content` text NOT NULL, `en_content` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `contract` -- INSERT INTO `contract` (`id`, `ar_name`, `en_name`, `ar_content`, `en_content`, `created_at`, `updated_at`) VALUES (2, 'العقد الاول', 'Contract One', '<p>العقد الاول</p>', '<p>Contract One</p>', '2020-03-11 09:49:35', '2020-03-11 09:49:35'), (4, 'asdsad', 'term name', '<p>dasdsa</p>', '<p>dsadsad</p>', '2020-03-11 10:04:09', '2020-03-11 10:04:09'); -- -------------------------------------------------------- -- -- Table structure for table `contract_terms` -- CREATE TABLE `contract_terms` ( `id` int(11) NOT NULL, `contract_id` bigint(20) UNSIGNED NOT NULL, `terms_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `contract_terms` -- INSERT INTO `contract_terms` (`id`, `contract_id`, `terms_id`, `created_at`, `updated_at`) VALUES (4, 2, 2, '2020-03-11 13:34:07', '2020-03-11 13:34:07'), (5, 2, 3, '2020-03-11 13:34:14', '2020-03-11 13:34:14'), (6, 2, 4, '2020-03-11 13:34:24', '2020-03-11 13:34:24'), (7, 4, 4, '2020-03-11 13:34:24', '2020-03-11 13:34:24'); -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int(11) NOT NULL DEFAULT '0', `user_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `mobile`, `status`, `user_id`, `created_at`, `updated_at`) VALUES (19, 'yasser', '<EMAIL>', NULL, '$2y$10$dXLCBRsHA.lGh3JttNahjOILYoRb.q8lH3qajfCbv2aD7wDHAZLLG', NULL, '01155155151', 1, 30, '2020-02-09 13:20:55', '2020-02-10 09:59:46'), (27, NULL, NULL, NULL, NULL, NULL, '01003440808', 1, NULL, '2020-02-11 07:54:36', '2020-02-11 07:55:16'); -- -------------------------------------------------------- -- -- Table structure for table `customer_files` -- CREATE TABLE `customer_files` ( `id` bigint(20) UNSIGNED NOT NULL, `file_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `file_path` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `departments` -- CREATE TABLE `departments` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(255) NOT NULL, `ar_name` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `departments` -- INSERT INTO `departments` (`id`, `en_name`, `ar_name`, `created_at`, `updated_at`) VALUES (2, 'DJ', 'دى جى', '2020-01-09 19:22:15', '2020-02-14 07:28:38'), (3, 'Management', 'الادراة', '2020-01-09 19:28:42', '2020-01-09 19:28:42'), (4, 'decor', 'ديكور', '2020-01-27 09:38:52', '2020-01-27 09:38:52'), (6, 'kitchen', 'المطبخ', '2020-02-04 10:42:59', '2020-02-04 10:42:59'); -- -------------------------------------------------------- -- -- Table structure for table `department_tasks` -- CREATE TABLE `department_tasks` ( `id` bigint(20) UNSIGNED NOT NULL, `department_id` bigint(20) UNSIGNED NOT NULL, `ar_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `en_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `department_tasks` -- INSERT INTO `department_tasks` (`id`, `department_id`, `ar_name`, `en_name`, `ar_desc`, `en_desc`, `created_at`, `updated_at`) VALUES (3, 3, 'aaaa', 'aaa', 'aaa', 'aaa', '2020-02-01 08:02:26', '2020-02-01 08:02:26'), (4, 6, 'فراخ', 'citchen', 'قثلقثلقلللل', 'kjrkgjrgerjgerkgre', '2020-02-10 12:30:56', '2020-02-10 12:30:56'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `feedback` -- CREATE TABLE `feedback` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `comment` 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 `feedback` -- INSERT INTO `feedback` (`id`, `name`, `email`, `comment`, `created_at`, `updated_at`) VALUES (1, 'Ahmed', '<EMAIL>', 'comment', '2020-01-27 10:59:25', '2020-01-27 10:59:25'), (2, '<NAME>', '<EMAIL>', 'Like', '2020-01-27 11:27:28', '2020-01-27 11:27:28'), (3, 'ismail', '<EMAIL>', 'tamm tamm', '2020-02-04 12:21:12', '2020-02-04 12:21:12'), (4, 'ismail', '<EMAIL>', 'the site is very good', '2020-02-05 12:16:35', '2020-02-05 12:16:35'), (5, 'fv', '<EMAIL>', 'vv', '2020-02-09 09:57:37', '2020-02-09 09:57:37'), (6, '<NAME>', '<EMAIL>', '5452', '2020-02-09 13:35:43', '2020-02-09 13:35:43'); -- -------------------------------------------------------- -- -- Table structure for table `fromchoices_gallery` -- CREATE TABLE `fromchoices_gallery` ( `id` int(11) NOT NULL, `fromchoice_id` bigint(20) UNSIGNED NOT NULL, `image_path` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `from_choices` -- CREATE TABLE `from_choices` ( `id` bigint(20) UNSIGNED NOT NULL, `ar_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `en_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `fromchoice_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `categories_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `from_choice_items` -- CREATE TABLE `from_choice_items` ( `id` bigint(20) UNSIGNED NOT NULL, `from_choices_id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `inventories` -- CREATE TABLE `inventories` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ar_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `inventory_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `en_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `ar_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `notes` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `inventories` -- INSERT INTO `inventories` (`id`, `en_name`, `ar_name`, `quantity`, `price`, `user_id`, `inventory_image`, `en_desc`, `ar_desc`, `notes`, `created_at`, `updated_at`) VALUES (77, 'Plates', 'أطباق', '10', '10', 9, '1586228599.jpg', 'أطباق', 'Plates', NULL, '2020-03-17 09:55:13', '2020-04-07 03:03:19'); -- -------------------------------------------------------- -- -- Table structure for table `item_inventory` -- CREATE TABLE `item_inventory` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(255) NOT NULL, `ar_name` varchar(255) NOT NULL, `price` varchar(225) NOT NULL, `inventory_image` varchar(255) NOT NULL, `en_desc` text NOT NULL, `ar_desc` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `item_inventory` -- INSERT INTO `item_inventory` (`id`, `en_name`, `ar_name`, `price`, `inventory_image`, `en_desc`, `ar_desc`, `created_at`, `updated_at`) VALUES (6, 'Sweets', 'حلوى', '10', '1586225210.jpg', 'dasd', 'adsad', '2020-04-07 02:06:50', '2020-04-07 02:06:50'); -- -------------------------------------------------------- -- -- Table structure for table `main_orders` -- CREATE TABLE `main_orders` ( `id` bigint(20) UNSIGNED NOT NULL, `code` varchar(255) NOT NULL, `user_phone` varchar(255) NOT NULL, `quantity` varchar(255) NOT NULL, `price` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, `order_day` datetime NOT NULL, `followers` text, `status` varchar(255) NOT NULL DEFAULT 'new', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_01_05_150242_create_permission_tables', 1), (5, '2020_01_08_104939_create_user_data_table', 2), (6, '2020_01_08_110137_create_user_follows_table', 2), (7, '2020_01_08_194605_create_user_files_table', 2), (8, '2020_01_08_221525_create_customers_table', 3), (9, '2020_01_09_190140_create_user_deartments_table', 4), (10, '2020_01_10_093149_create_catalogs_table', 5), (11, '2020_01_10_093724_create_catalog_items_table', 6), (12, '2020_01_10_134047_create_inventories_table', 7), (13, '2020_01_12_102855_create_orders_table', 8), (14, '2020_01_14_131924_create_tasks_table', 9), (15, '2020_01_14_095729_create_contact_us_table', 10), (16, '2020_01_14_122229_create_settings_table', 10), (17, '2020_01_14_122321_create_soical_media_table', 10), (18, '2020_01_16_091611_create_order__reviews_table', 10), (19, '2020_01_20_204630_create_categories_table', 11), (20, '2020_01_27_114243_create_feedback_table', 12), (21, '2020_01_31_211945_create_department_tasks_table', 13), (22, '2020_02_02_120010_create_from_choice_items_table', 14); -- -------------------------------------------------------- -- -- Table structure for table `mobiles_codes` -- CREATE TABLE `mobiles_codes` ( `id` int(11) NOT NULL, `mobile` varchar(225) NOT NULL, `code` varchar(225) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `mobiles_codes` -- INSERT INTO `mobiles_codes` (`id`, `mobile`, `code`, `created_at`, `updated_at`) VALUES (3, '1117725721', '202013', '2020-02-09 12:51:44', '2020-02-09 12:51:44'), (8, '1003440808', '2020831', '2020-02-11 08:54:10', '2020-02-11 08:54:10'); -- -------------------------------------------------------- -- -- Table structure for table `model_has_permissions` -- CREATE TABLE `model_has_permissions` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `model_has_permissions` -- INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES (1, 'App\\User', 9), (1, 'App\\User', 24), (1, 'App\\User', 29), (2, 'App\\User', 9), (2, 'App\\User', 24), (2, 'App\\User', 29), (3, 'App\\User', 9), (3, 'App\\User', 24), (3, 'App\\User', 29), (4, 'App\\User', 9), (4, 'App\\User', 24), (4, 'App\\User', 29), (5, 'App\\User', 9), (5, 'App\\User', 29), (6, 'App\\User', 9), (6, 'App\\User', 29), (7, 'App\\User', 9), (7, 'App\\User', 29), (8, 'App\\User', 9), (8, 'App\\User', 29), (9, 'App\\User', 9), (9, 'App\\User', 29), (10, 'App\\User', 9), (10, 'App\\User', 24), (10, 'App\\User', 29), (11, 'App\\User', 9), (11, 'App\\User', 29), (12, 'App\\User', 9), (12, 'App\\User', 29), (13, 'App\\User', 9), (13, 'App\\User', 29), (14, 'App\\User', 9), (14, 'App\\User', 24), (14, 'App\\User', 29), (15, 'App\\User', 9), (15, 'App\\User', 14), (15, 'App\\User', 29), (16, 'App\\User', 9), (16, 'App\\User', 14), (16, 'App\\User', 29), (17, 'App\\User', 9), (17, 'App\\User', 14), (17, 'App\\User', 29), (18, 'App\\User', 9), (18, 'App\\User', 14), (18, 'App\\User', 29), (19, 'App\\User', 9), (19, 'App\\User', 14), (19, 'App\\User', 24), (19, 'App\\User', 29), (20, 'App\\User', 9), (20, 'App\\User', 14), (20, 'App\\User', 24), (20, 'App\\User', 29), (21, 'App\\User', 9), (21, 'App\\User', 24), (21, 'App\\User', 29), (22, 'App\\User', 9), (22, 'App\\User', 14), (22, 'App\\User', 24), (22, 'App\\User', 29), (23, 'App\\User', 9), (23, 'App\\User', 24), (23, 'App\\User', 29), (23, 'App\\User', 31), (24, 'App\\User', 9), (24, 'App\\User', 14), (24, 'App\\User', 24), (24, 'App\\User', 29), (25, 'App\\User', 9), (25, 'App\\User', 14), (25, 'App\\User', 24), (25, 'App\\User', 29), (25, 'App\\User', 31), (26, 'App\\User', 9), (26, 'App\\User', 14), (26, 'App\\User', 24), (26, 'App\\User', 29), (27, 'App\\User', 9), (27, 'App\\User', 24), (27, 'App\\User', 29), (28, 'App\\User', 9), (28, 'App\\User', 24), (28, 'App\\User', 29), (29, 'App\\User', 9), (29, 'App\\User', 24), (29, 'App\\User', 29), (30, 'App\\User', 9), (30, 'App\\User', 24), (30, 'App\\User', 29), (31, 'App\\User', 9), (31, 'App\\User', 24), (31, 'App\\User', 29), (32, 'App\\User', 9), (32, 'App\\User', 24), (32, 'App\\User', 29), (33, 'App\\User', 9), (33, 'App\\User', 24), (33, 'App\\User', 29), (34, 'App\\User', 9), (34, 'App\\User', 24), (34, 'App\\User', 29), (35, 'App\\User', 9), (35, 'App\\User', 14), (35, 'App\\User', 29), (36, 'App\\User', 9), (36, 'App\\User', 24), (36, 'App\\User', 29), (37, 'App\\User', 9), (37, 'App\\User', 24), (37, 'App\\User', 29), (38, 'App\\User', 9), (38, 'App\\User', 14), (38, 'App\\User', 24), (38, 'App\\User', 29), (39, 'App\\User', 9), (39, 'App\\User', 14), (39, 'App\\User', 24), (39, 'App\\User', 29), (40, 'App\\User', 9), (40, 'App\\User', 14), (40, 'App\\User', 24), (40, 'App\\User', 29), (41, 'App\\User', 9), (41, 'App\\User', 24), (41, 'App\\User', 29), (41, 'App\\User', 31), (42, 'App\\User', 9), (42, 'App\\User', 24), (42, 'App\\User', 29), (43, 'App\\User', 9), (43, 'App\\User', 24), (43, 'App\\User', 29), (44, 'App\\User', 9), (44, 'App\\User', 24), (45, 'App\\User', 9), (45, 'App\\User', 24), (45, 'App\\User', 29), (46, 'App\\User', 9), (46, 'App\\User', 24), (46, 'App\\User', 29), (47, 'App\\User', 9), (47, 'App\\User', 24), (48, 'App\\User', 9), (48, 'App\\User', 24), (48, 'App\\User', 29), (49, 'App\\User', 9), (49, 'App\\User', 24), (49, 'App\\User', 29), (50, 'App\\User', 9), (50, 'App\\User', 24), (50, 'App\\User', 29), (51, 'App\\User', 9), (51, 'App\\User', 24), (51, 'App\\User', 29), (52, 'App\\User', 9), (52, 'App\\User', 24), (52, 'App\\User', 29), (53, 'App\\User', 9), (53, 'App\\User', 24), (53, 'App\\User', 29), (54, 'App\\User', 9), (54, 'App\\User', 24), (54, 'App\\User', 29), (55, 'App\\User', 9), (55, 'App\\User', 24), (55, 'App\\User', 29), (56, 'App\\User', 9), (56, 'App\\User', 24), (56, 'App\\User', 29), (57, 'App\\User', 9), (57, 'App\\User', 24), (57, 'App\\User', 29), (58, 'App\\User', 9), (58, 'App\\User', 24), (58, 'App\\User', 29), (59, 'App\\User', 9), (59, 'App\\User', 24), (59, 'App\\User', 29), (60, 'App\\User', 9), (60, 'App\\User', 24), (60, 'App\\User', 29), (61, 'App\\User', 9), (61, 'App\\User', 24), (61, 'App\\User', 29), (62, 'App\\User', 9), (62, 'App\\User', 24), (62, 'App\\User', 29), (63, 'App\\User', 9), (63, 'App\\User', 24), (63, 'App\\User', 29), (64, 'App\\User', 9), (64, 'App\\User', 24), (64, 'App\\User', 29), (65, 'App\\User', 9), (65, 'App\\User', 24), (65, 'App\\User', 29), (66, 'App\\User', 9), (66, 'App\\User', 24), (66, 'App\\User', 29), (67, 'App\\User', 9), (67, 'App\\User', 24), (67, 'App\\User', 29), (68, 'App\\User', 9), (68, 'App\\User', 24), (68, 'App\\User', 29), (69, 'App\\User', 9), (69, 'App\\User', 24), (69, 'App\\User', 29), (70, 'App\\User', 9), (70, 'App\\User', 24), (70, 'App\\User', 29), (71, 'App\\User', 9), (71, 'App\\User', 24), (71, 'App\\User', 29), (72, 'App\\User', 9), (72, 'App\\User', 29), (73, 'App\\User', 9), (73, 'App\\User', 14), (73, 'App\\User', 24), (73, 'App\\User', 29), (74, 'App\\User', 9), (74, 'App\\User', 29), (75, 'App\\User', 9), (75, 'App\\User', 24), (75, 'App\\User', 29), (76, 'App\\User', 9), (76, 'App\\User', 14), (76, 'App\\User', 24), (76, 'App\\User', 29), (77, 'App\\User', 9), (77, 'App\\User', 24), (77, 'App\\User', 29), (78, 'App\\User', 9), (78, 'App\\User', 14), (78, 'App\\User', 24), (78, 'App\\User', 29), (78, 'App\\User', 31), (79, 'App\\User', 9), (79, 'App\\User', 24), (79, 'App\\User', 29), (79, 'App\\User', 31), (80, 'App\\User', 9), (80, 'App\\User', 14), (80, 'App\\User', 24), (80, 'App\\User', 29), (80, 'App\\User', 31), (81, 'App\\User', 9), (81, 'App\\User', 24), (81, 'App\\User', 29), (81, 'App\\User', 31), (82, 'App\\User', 9), (82, 'App\\User', 24), (82, 'App\\User', 29), (83, 'App\\User', 9), (83, 'App\\User', 24), (83, 'App\\User', 29), (84, 'App\\User', 9), (84, 'App\\User', 24), (84, 'App\\User', 29), (85, 'App\\User', 9), (85, 'App\\User', 24), (85, 'App\\User', 29), (86, 'App\\User', 9), (86, 'App\\User', 24), (86, 'App\\User', 29), (87, 'App\\User', 9), (87, 'App\\User', 24), (87, 'App\\User', 29), (88, 'App\\User', 9), (88, 'App\\User', 24), (88, 'App\\User', 29), (89, 'App\\User', 9), (89, 'App\\User', 24), (89, 'App\\User', 29), (90, 'App\\User', 9), (90, 'App\\User', 24), (90, 'App\\User', 29), (91, 'App\\User', 9), (91, 'App\\User', 24), (91, 'App\\User', 29), (92, 'App\\User', 9), (92, 'App\\User', 24), (92, 'App\\User', 29), (93, 'App\\User', 9), (93, 'App\\User', 29), (94, 'App\\User', 9), (94, 'App\\User', 29), (95, 'App\\User', 9), (95, 'App\\User', 29), (96, 'App\\User', 9), (96, 'App\\User', 29), (97, 'App\\User', 9), (98, 'App\\User', 9), (99, 'App\\User', 9), (99, 'App\\User', 29), (100, 'App\\User', 9), (100, 'App\\User', 29), (101, 'App\\User', 9), (101, 'App\\User', 29), (102, 'App\\User', 9), (102, 'App\\User', 29), (103, 'App\\User', 9), (104, 'App\\User', 9), (105, 'App\\User', 9), (106, 'App\\User', 9), (107, 'App\\User', 9); -- -------------------------------------------------------- -- -- Table structure for table `model_has_roles` -- CREATE TABLE `model_has_roles` ( `role_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `model_has_roles` -- INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES (1, 'App\\User', 9); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `quantity` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `price` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `mainorder_id` bigint(20) UNSIGNED NOT NULL, `order_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `order__reviews` -- CREATE TABLE `order__reviews` ( `id` bigint(20) UNSIGNED NOT NULL, `rate` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `comment` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `order_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `packages` -- CREATE TABLE `packages` ( `id` bigint(20) UNSIGNED NOT NULL, `en_name` varchar(255) NOT NULL, `ar_name` varchar(255) NOT NULL, `en_desc` text NOT NULL, `ar_desc` text NOT NULL, `category_id` bigint(20) UNSIGNED NOT NULL, `price` varchar(255) NOT NULL, `no_members` int(11) NOT NULL, `package_image` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `packages` -- INSERT INTO `packages` (`id`, `en_name`, `ar_name`, `en_desc`, `ar_desc`, `category_id`, `price`, `no_members`, `package_image`, `created_at`, `updated_at`) VALUES (14, 'aa', 'Sweets', 'Sweets', 'Sweets', 26, '1000', 900, '1586258250.jpg', '2020-04-07 11:08:38', '2020-04-07 11:18:04'); -- -------------------------------------------------------- -- -- Table structure for table `packages_items` -- CREATE TABLE `packages_items` ( `id` bigint(20) NOT NULL, `package_id` bigint(20) UNSIGNED NOT NULL, `iteminventory_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `packages_items` -- INSERT INTO `packages_items` (`id`, `package_id`, `iteminventory_id`, `created_at`, `updated_at`) VALUES (9, 14, 6, '2020-04-07 11:09:48', '2020-04-07 11:09:48'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES (1, 'create_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (2, 'edit_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (3, 'show_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (4, 'delete_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (5, 'create_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (6, 'edit_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (7, 'show_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (8, 'delete_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (9, 'create_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (10, 'edit_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (11, 'show_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (12, 'delete_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (13, 'permission_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (14, 'department_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (15, 'create_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (16, 'edit_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (17, 'show_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (18, 'delete_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (19, 'create_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (20, 'edit_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (21, 'show_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (22, 'delete_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (23, 'create_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (24, 'edit_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (25, 'show_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (26, 'delete_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (27, 'create_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (28, 'edit_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (29, 'show_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (30, 'delete_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (31, 'create_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (32, 'edit_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (33, 'show_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (34, 'delete_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (35, 'check_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (36, 'show_profits', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (37, 'edit_profiles', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (38, 'create_category', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (39, 'edit_category', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (40, 'show_category', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (41, 'delete_category', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (42, 'withdraw_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (43, 'create_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (44, 'edit_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (45, 'show_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (46, 'delete_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (47, 'create_fromchoices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (48, 'edit_fromchoices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (49, 'show_fromchoices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (50, 'delete_fromchoices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (51, 'create_department_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (52, 'edit_department_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (53, 'show_department_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (54, 'delete_department_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (55, 'show_mytasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (56, 'change_tasks_status', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (57, 'show_statistics_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (58, 'show_statistics_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (59, 'show_statistics_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (60, 'show_statistics_departments_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (61, 'show_statistics_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (62, 'show_statistics_catalogs_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (63, 'show_statistics_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (64, 'show_statistics_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (65, 'show_statistics_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (66, 'show_statistics_my_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (67, 'show_statistics_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (68, 'show_statistics_customers_choices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (69, 'show_statistics_contacts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (70, 'show_statistics_reviews', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (71, 'show_calendar_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (72, 'show_calendar_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (73, 'show_menu_dashboard', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (74, 'show_menu_users', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (75, 'show_menu_customers', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (76, 'show_menu_departments', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (77, 'show_menu_departments_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (78, 'show_menu_inventory', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (79, 'show_menu_categories', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (80, 'show_menu_catalogs', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (81, 'show_menu_buffets', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (82, 'show_menu_customer_choices', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (83, 'show_menu_orders', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (84, 'show_menu_my_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (85, 'show_menu_tasks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (86, 'show_menu_contactus', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (87, 'show_menu_settings', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (88, 'show_menu_social_media', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (89, 'show_statistics_withdraw', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (90, 'show_menu_withdraw', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (91, 'show_menu_feedbacks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (92, 'show_statistics_feedbacks', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (93, 'create_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (94, 'edit_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (95, 'show_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (96, 'delete_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (97, 'show_menu_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (98, 'show_statistics_packages', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (99, 'create_packages_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (100, 'edit_packages_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (101, 'show_packages_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (102, 'delete_packages_items', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (103, 'create_contracts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (104, 'edit_contracts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (105, 'show_contracts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (106, 'delete_contracts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'), (107, 'show_menu_contracts', 'web', '2020-01-07 19:19:33', '2020-01-07 19:19:33'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES (1, 'Admin', 'web', '2020-02-09 12:49:24', '2020-02-09 12:49:24'); -- -------------------------------------------------------- -- -- Table structure for table `role_has_permissions` -- CREATE TABLE `role_has_permissions` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `logo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_number` varchar(220) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `currency` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `en_terms_conditions` text COLLATE utf8mb4_unicode_ci NOT NULL, `ar_terms_conditions` text COLLATE utf8mb4_unicode_ci NOT NULL, `keywords` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `title`, `logo`, `description`, `subject`, `phone_number`, `email`, `currency`, `en_terms_conditions`, `ar_terms_conditions`, `keywords`, `created_at`, `updated_at`) VALUES (1, 'Al Faisal', '1579970845.png', 'الفيصل للتجهيزات الغذائيه', 'Subject', '96560909902', '<EMAIL>', 'KD', '<div class=\"breadcrumbs-wrap with-bg-img\" data-bg=\"images/about/1920x266_bg1.jpg\">\r\n<div class=\"container\">&nbsp;</div>\r\n</div>\r\n<div id=\"content\" class=\"page-content-wrap\">\r\n<div class=\"container\">\r\n<div class=\"content-element\">\r\n<div class=\"terms_condition\">\r\n<h2 style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: helvetica, arial, sans-serif;\"><strong>Terms &amp; Conditions</strong></span></h2>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">fasel built the wedding planner app as a Commercial app. This SERVICE is provided by fasel and is intended for use as is.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at wedding planner unless otherwise defined in this Privacy Policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Information Collection and Use</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to ecommerc,wedding planner , event . The information that we request will be retained by us and used as described in this privacy policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">The app does use third party services that may collect information used to identify you.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">Link to privacy policy of third party service providers used by the app</span></p>\r\n<ul style=\"font-family: \'Times New Roman\';\">\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https://www.google.com/policies/privacy/\" target=\"_blank\" rel=\"noopener\">Google Play Services</a></span></li>\r\n</ul>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Log Data</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">We want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (&ldquo;IP&rdquo;) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Cookies</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device\'s internal memory.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">This Service does not use these &ldquo;cookies&rdquo; explicitly. However, the app may use third party code and libraries that use &ldquo;cookies&rdquo; to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Service Providers</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">We may employ third-party companies and individuals due to the following reasons:</span></p>\r\n<ul style=\"font-family: \'Times New Roman\';\">\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To facilitate our Service;</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To provide the Service on our behalf;</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To perform Service-related services; or</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To assist us in analyzing how our Service is used.</span></li>\r\n</ul>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">We want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Security</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Links to Other Sites</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Children&rsquo;s Privacy</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">These Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.</span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Changes to This Privacy Policy</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\';\"><span style=\"font-family: verdana, geneva, sans-serif;\">We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.</span></p>\r\n</div>\r\n</div>\r\n</div>\r\n</div>', '<h2 style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: helvetica, arial, sans-serif;\"><strong>Terms &amp; Conditions</strong></span></h2>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">fasel built the wedding planner app as a Commercial app. This SERVICE is provided by fasel and is intended for use as is.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at wedding planner unless otherwise defined in this Privacy Policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Information Collection and Use</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to ecommerc,wedding planner , event . The information that we request will be retained by us and used as described in this privacy policy.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">The app does use third party services that may collect information used to identify you.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Link to privacy policy of third party service providers used by the app</span></p>\r\n<ul style=\"font-family: \'Times New Roman\'; text-align: right;\">\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\"><a href=\"https://www.google.com/policies/privacy/\" target=\"_blank\" rel=\"noopener\">Google Play Services</a></span></li>\r\n</ul>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Log Data</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">We want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (&ldquo;IP&rdquo;) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Cookies</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device\'s internal memory.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">This Service does not use these &ldquo;cookies&rdquo; explicitly. However, the app may use third party code and libraries that use &ldquo;cookies&rdquo; to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Service Providers</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">We may employ third-party companies and individuals due to the following reasons:</span></p>\r\n<ul style=\"font-family: \'Times New Roman\'; text-align: right;\">\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To facilitate our Service;</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To provide the Service on our behalf;</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To perform Service-related services; or</span></li>\r\n<li><span style=\"font-family: verdana, geneva, sans-serif;\">To assist us in analyzing how our Service is used.</span></li>\r\n</ul>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">We want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Security</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Links to Other Sites</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Children&rsquo;s Privacy</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">These Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.</span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Changes to This Privacy Policy</strong></span></p>\r\n<p style=\"font-family: \'Times New Roman\'; text-align: right;\"><span style=\"font-family: verdana, geneva, sans-serif;\">We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.</span></p>', 'Keywords', NULL, '2020-02-03 09:40:57'); -- -------------------------------------------------------- -- -- Table structure for table `soical_media` -- CREATE TABLE `soical_media` ( `id` bigint(20) UNSIGNED NOT NULL, `facebook` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `twitter` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `instagram` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `soical_media` -- INSERT INTO `soical_media` (`id`, `facebook`, `twitter`, `instagram`, `created_at`, `updated_at`) VALUES (1, 'https://www.facebook.com/', 'https://www.twitter.com/', 'https://www.instagram.com/', NULL, '2020-01-25 14:41:41'); -- -------------------------------------------------------- -- -- Table structure for table `tasks` -- CREATE TABLE `tasks` ( `id` bigint(20) UNSIGNED NOT NULL, `customer_phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `order_id` bigint(20) UNSIGNED NOT NULL, `order_data_id` bigint(20) UNSIGNED NOT NULL, `department_task_id` bigint(20) UNSIGNED NOT NULL, `department_id` bigint(20) UNSIGNED NOT NULL, `order_task` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `task_date` datetime NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `notes` 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; -- -------------------------------------------------------- -- -- Table structure for table `terms` -- CREATE TABLE `terms` ( `id` bigint(11) UNSIGNED NOT NULL, `ar_name` varchar(255) NOT NULL, `en_name` varchar(255) NOT NULL, `ar_desc` text NOT NULL, `en_desc` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `terms` -- INSERT INTO `terms` (`id`, `ar_name`, `en_name`, `ar_desc`, `en_desc`, `created_at`, `updated_at`) VALUES (2, 'aaaa', 'aaaa', '<p>aaaa</p>', '<p>aaaa</p>', '2020-03-11 09:53:06', '2020-03-11 09:53:06'), (3, 'sdadsa', 'ewqdw', '<p>dasdsad</p>', '<p>dasdsad</p>', '2020-03-11 09:53:23', '2020-03-11 13:34:14'), (4, 'sdadsa', 'ewqdw', '<p>dasdsad</p>', '<p>dasdsad</p>', '2020-03-11 09:54:19', '2020-03-11 10:05:37'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `mobile` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `mobile`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (9, 'Admin', '<EMAIL>', '01117725721', NULL, '$2y$10$dpiFrsXmxekkPQ1Ey8QDzugV7cq8lHgytw1jm2QDADrP1/PUp2RFa', NULL, '2020-01-09 17:31:06', '2020-01-18 11:22:19'), (24, '<NAME>', '<EMAIL>', '01152144344', NULL, '$2y$10$LizcKFxKZsHEs4scZR6nXOwAPMi0KRrLTbIqM4Zd8wnxOfYLF/9Cm', NULL, '2020-02-09 11:35:07', '2020-02-09 12:56:57'), (28, 'ahmed', '<EMAIL>', '01117725721', NULL, '$2y$10$JwGo.FH/8vklGZWd5aQRa.7K8CuED.uN0LT0Ovo24HqD1SXYlr9qS', NULL, '2020-02-09 12:42:11', '2020-02-09 12:42:11'), (29, 'ismail', '<EMAIL>', '01005111998', NULL, '$2y$10$9wp8jrE2P/C4iXNaTnAWc.N5cXexbd4RJHwi0NxbsTJUaWcbd/h9S', NULL, '2020-02-09 12:47:33', '2020-02-09 13:10:16'), (30, 'yasser', '<EMAIL>', '01155155151', NULL, '$2y$10$91npA6iJ/COPha0hjEnGje1DVcvmGajKHrz92oyahKWtp1Zuxs3/q', NULL, '2020-02-09 13:20:55', '2020-02-09 13:20:55'), (31, 'shimaa test', '<EMAIL>', '01156987522', NULL, '$2y$10$UIqVy08KWQsfpnjcB5EkBuPe5qemSUDsgZFqi.2nt4U/G7RN3AmSy', NULL, '2020-02-09 13:26:59', '2020-02-09 13:38:08'), (32, 'nahlaebrahim', '<EMAIL>', '01068109434', NULL, '$2y$10$Jzl6iENkb0unM67a7S0piOUhF4sILDYFU1f6CG6SPpEsgbGyK1V92', NULL, '2020-02-10 10:44:08', '2020-02-10 10:44:08'), (40, '<NAME>', '<EMAIL>', '01117725721', NULL, '$2y$10$WsVZQPyKmhJDJj9gPRKGueC/v2PB72Ff1jFp8sVXmFyY8X1ag5NxW', NULL, '2020-02-14 07:41:07', '2020-02-14 07:41:07'), (41, '<NAME>', '<EMAIL>', '01117725721', NULL, '$2y$10$sZhbRBuZn/3W1M8bwN5E6.35q0sdM2XVdGGCszqrVD9BIqeyehdzW', NULL, '2020-02-14 07:41:51', '2020-02-14 07:41:51'); -- -------------------------------------------------------- -- -- Table structure for table `user_deartments` -- CREATE TABLE `user_deartments` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `department_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `user_deartments` -- INSERT INTO `user_deartments` (`id`, `user_id`, `department_id`, `created_at`, `updated_at`) VALUES (2, 9, 3, '2020-02-14 07:41:51', '2020-02-14 07:41:51'), (6, 41, 3, '2020-02-14 07:41:51', '2020-02-14 07:41:51'), (7, 41, 4, '2020-02-14 07:41:51', '2020-02-14 07:41:51'), (8, 41, 6, '2020-02-14 07:41:51', '2020-02-14 07:41:51'), (11, 32, 2, '2020-04-07 12:10:02', '2020-04-07 12:10:02'), (12, 40, 2, '2020-04-07 12:10:02', '2020-04-07 12:10:02'); -- -------------------------------------------------------- -- -- Table structure for table `withdraws` -- CREATE TABLE `withdraws` ( `id` bigint(20) UNSIGNED NOT NULL, `inventory_id` bigint(20) UNSIGNED NOT NULL, `customer_id` bigint(20) UNSIGNED NOT NULL, `quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `total_price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `buffets` -- ALTER TABLE `buffets` ADD PRIMARY KEY (`id`), ADD KEY `buffets_categories_id_foreign` (`categories_id`), ADD KEY `buffets_iteminventory_id_foreign` (`iteminventory_id`); -- -- Indexes for table `buffetsitems` -- ALTER TABLE `buffetsitems` ADD PRIMARY KEY (`id`), ADD KEY `foreign_iteminventory_id` (`iteminventory_id`), ADD KEY `foreign_buffet_id` (`buffet_id`); -- -- Indexes for table `buffet_gallery` -- ALTER TABLE `buffet_gallery` ADD PRIMARY KEY (`id`), ADD KEY `buffet_gallery_id` (`buffet_id`); -- -- Indexes for table `catalogitems` -- ALTER TABLE `catalogitems` ADD PRIMARY KEY (`id`), ADD KEY `foreign_item_inventory_id` (`iteminventory_id`), ADD KEY `foreign_catalog_id` (`catalog_id`); -- -- Indexes for table `catalogitems_gallery` -- ALTER TABLE `catalogitems_gallery` ADD PRIMARY KEY (`id`), ADD KEY `foreign_catalogitem_id` (`catalogitem_id`); -- -- Indexes for table `catalogs` -- ALTER TABLE `catalogs` ADD PRIMARY KEY (`id`), ADD KEY `catalog_catergory_id_foregin_key` (`categories_id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `contact_us` -- ALTER TABLE `contact_us` ADD PRIMARY KEY (`id`); -- -- Indexes for table `contract` -- ALTER TABLE `contract` ADD PRIMARY KEY (`id`); -- -- Indexes for table `contract_terms` -- ALTER TABLE `contract_terms` ADD PRIMARY KEY (`id`), ADD KEY `contract_contract_id_foregin` (`contract_id`), ADD KEY `contract_terms_id_foregin` (`terms_id`); -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `customers_email_unique` (`email`), ADD KEY `customers_user_id_foregin_key` (`user_id`); -- -- Indexes for table `customer_files` -- ALTER TABLE `customer_files` ADD PRIMARY KEY (`id`), ADD KEY `user_files_user_data_id_foreign` (`customer_id`); -- -- Indexes for table `departments` -- ALTER TABLE `departments` ADD PRIMARY KEY (`id`); -- -- Indexes for table `department_tasks` -- ALTER TABLE `department_tasks` ADD PRIMARY KEY (`id`), ADD KEY `department_tasks_department_id_foreign` (`department_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `feedback` -- ALTER TABLE `feedback` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fromchoices_gallery` -- ALTER TABLE `fromchoices_gallery` ADD PRIMARY KEY (`id`), ADD KEY `fromchoice_gallery_id` (`fromchoice_id`); -- -- Indexes for table `from_choices` -- ALTER TABLE `from_choices` ADD PRIMARY KEY (`id`), ADD KEY `from_choices_categories_id_foreign` (`categories_id`); -- -- Indexes for table `from_choice_items` -- ALTER TABLE `from_choice_items` ADD PRIMARY KEY (`id`), ADD KEY `from_choice_items_from_choices_id_foreign` (`from_choices_id`); -- -- Indexes for table `inventories` -- ALTER TABLE `inventories` ADD PRIMARY KEY (`id`), ADD KEY `inventory_user` (`user_id`); -- -- Indexes for table `item_inventory` -- ALTER TABLE `item_inventory` ADD PRIMARY KEY (`id`); -- -- Indexes for table `main_orders` -- ALTER TABLE `main_orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mobiles_codes` -- ALTER TABLE `mobiles_codes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `model_has_permissions` -- ALTER TABLE `model_has_permissions` ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`), ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`); -- -- Indexes for table `model_has_roles` -- ALTER TABLE `model_has_roles` ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`), ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`), ADD KEY `foreign_orders_id` (`mainorder_id`); -- -- Indexes for table `order__reviews` -- ALTER TABLE `order__reviews` ADD PRIMARY KEY (`id`), ADD KEY `order__reviews_order_id_foreign` (`order_id`); -- -- Indexes for table `packages` -- ALTER TABLE `packages` ADD PRIMARY KEY (`id`), ADD KEY `package_category_id` (`category_id`); -- -- Indexes for table `packages_items` -- ALTER TABLE `packages_items` ADD PRIMARY KEY (`id`), ADD KEY `package_item_package_id` (`package_id`), ADD KEY `package_iteminventory_id_foreign` (`iteminventory_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`); -- -- Indexes for table `role_has_permissions` -- ALTER TABLE `role_has_permissions` ADD PRIMARY KEY (`permission_id`,`role_id`), ADD KEY `role_has_permissions_role_id_foreign` (`role_id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `soical_media` -- ALTER TABLE `soical_media` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tasks` -- ALTER TABLE `tasks` ADD PRIMARY KEY (`id`), ADD KEY `tasks_user_id_foreign` (`user_id`), ADD KEY `tasks_order_id_foreign` (`order_id`), ADD KEY `tasks_catalog_id_foreign` (`department_task_id`), ADD KEY `tasks_department_id_foreign` (`department_id`), ADD KEY `tasks_order_data_id_foreign` (`order_data_id`); -- -- Indexes for table `terms` -- ALTER TABLE `terms` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- Indexes for table `user_deartments` -- ALTER TABLE `user_deartments` ADD PRIMARY KEY (`id`), ADD KEY `user_deartments_user_id_foreign` (`user_id`), ADD KEY `user_deartments_department_id_foreign` (`department_id`); -- -- Indexes for table `withdraws` -- ALTER TABLE `withdraws` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `buffets` -- ALTER TABLE `buffets` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `buffetsitems` -- ALTER TABLE `buffetsitems` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `buffet_gallery` -- ALTER TABLE `buffet_gallery` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- -- AUTO_INCREMENT for table `catalogitems` -- ALTER TABLE `catalogitems` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `catalogitems_gallery` -- ALTER TABLE `catalogitems_gallery` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `catalogs` -- ALTER TABLE `catalogs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=123106; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `contact_us` -- ALTER TABLE `contact_us` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `contract` -- ALTER TABLE `contract` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `contract_terms` -- ALTER TABLE `contract_terms` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `customer_files` -- ALTER TABLE `customer_files` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `departments` -- ALTER TABLE `departments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `department_tasks` -- ALTER TABLE `department_tasks` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `feedback` -- ALTER TABLE `feedback` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `fromchoices_gallery` -- ALTER TABLE `fromchoices_gallery` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `from_choices` -- ALTER TABLE `from_choices` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `from_choice_items` -- ALTER TABLE `from_choice_items` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `inventories` -- ALTER TABLE `inventories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78; -- -- AUTO_INCREMENT for table `item_inventory` -- ALTER TABLE `item_inventory` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `main_orders` -- ALTER TABLE `main_orders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `mobiles_codes` -- ALTER TABLE `mobiles_codes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `order__reviews` -- ALTER TABLE `order__reviews` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `packages` -- ALTER TABLE `packages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `packages_items` -- ALTER TABLE `packages_items` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=108; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `soical_media` -- ALTER TABLE `soical_media` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tasks` -- ALTER TABLE `tasks` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `terms` -- ALTER TABLE `terms` MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42; -- -- AUTO_INCREMENT for table `user_deartments` -- ALTER TABLE `user_deartments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `withdraws` -- ALTER TABLE `withdraws` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `buffets` -- ALTER TABLE `buffets` ADD CONSTRAINT `buffets_iteminventory_id_foreign` FOREIGN KEY (`iteminventory_id`) REFERENCES `item_inventory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `foreign_category_id` FOREIGN KEY (`categories_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `buffetsitems` -- ALTER TABLE `buffetsitems` ADD CONSTRAINT `foreign_buffet_id` FOREIGN KEY (`buffet_id`) REFERENCES `buffets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `foreign_iteminventory_id` FOREIGN KEY (`iteminventory_id`) REFERENCES `item_inventory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `buffet_gallery` -- ALTER TABLE `buffet_gallery` ADD CONSTRAINT `buffet_gallery_id` FOREIGN KEY (`buffet_id`) REFERENCES `buffets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `catalogitems` -- ALTER TABLE `catalogitems` ADD CONSTRAINT `foreign_catalog_id` FOREIGN KEY (`catalog_id`) REFERENCES `catalogs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `foreign_item_inventory_id` FOREIGN KEY (`iteminventory_id`) REFERENCES `item_inventory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `catalogitems_gallery` -- ALTER TABLE `catalogitems_gallery` ADD CONSTRAINT `foreign_catalogitem_id` FOREIGN KEY (`catalogitem_id`) REFERENCES `catalogitems` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `catalogs` -- ALTER TABLE `catalogs` ADD CONSTRAINT `catalog_catergory_id_foregin_key` FOREIGN KEY (`categories_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `contract_terms` -- ALTER TABLE `contract_terms` ADD CONSTRAINT `contract_contract_id_foregin` FOREIGN KEY (`contract_id`) REFERENCES `contract` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `contract_terms_id_foregin` FOREIGN KEY (`terms_id`) REFERENCES `terms` (`id`); -- -- Constraints for table `customers` -- ALTER TABLE `customers` ADD CONSTRAINT `customers_user_id_foregin_key` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `customer_files` -- ALTER TABLE `customer_files` ADD CONSTRAINT `user_files_user_data_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`) ON DELETE CASCADE; -- -- Constraints for table `department_tasks` -- ALTER TABLE `department_tasks` ADD CONSTRAINT `department_tasks_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE; -- -- Constraints for table `fromchoices_gallery` -- ALTER TABLE `fromchoices_gallery` ADD CONSTRAINT `fromchoice_gallery_id` FOREIGN KEY (`fromchoice_id`) REFERENCES `from_choice_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `from_choices` -- ALTER TABLE `from_choices` ADD CONSTRAINT `from_choices_categories_id_foreign` FOREIGN KEY (`categories_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE; -- -- Constraints for table `from_choice_items` -- ALTER TABLE `from_choice_items` ADD CONSTRAINT `from_choice_items_from_choices_id_foreign` FOREIGN KEY (`from_choices_id`) REFERENCES `from_choices` (`id`) ON DELETE CASCADE; -- -- Constraints for table `inventories` -- ALTER TABLE `inventories` ADD CONSTRAINT `inventory_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `model_has_permissions` -- ALTER TABLE `model_has_permissions` ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `model_has_roles` -- ALTER TABLE `model_has_roles` ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `orders` -- ALTER TABLE `orders` ADD CONSTRAINT `foreign_orders_id` FOREIGN KEY (`mainorder_id`) REFERENCES `main_orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `order__reviews` -- ALTER TABLE `order__reviews` ADD CONSTRAINT `order__reviews_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE; -- -- Constraints for table `packages` -- ALTER TABLE `packages` ADD CONSTRAINT `package_category_id` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `packages_items` -- ALTER TABLE `packages_items` ADD CONSTRAINT `package_item_package_id` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `package_iteminventory_id_foreign` FOREIGN KEY (`iteminventory_id`) REFERENCES `item_inventory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `role_has_permissions` -- ALTER TABLE `role_has_permissions` ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `tasks` -- ALTER TABLE `tasks` ADD CONSTRAINT `tasks_catalog_id_foreign` FOREIGN KEY (`department_task_id`) REFERENCES `department_tasks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `tasks_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `tasks_order_data_id_foreign` FOREIGN KEY (`order_data_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `tasks_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `main_orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `tasks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `user_deartments` -- ALTER TABLE `user_deartments` ADD CONSTRAINT `user_deartments_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `user_deartments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>sql/aggregate_copy.sql COPY fact_prediction (acm_convective_percip_actual, acm_convective_percip_delta, acm_convective_percip_local_max_actual, acm_convective_percip_local_max_delta, acm_convective_percip_local_max_predicted, acm_convective_percip_local_min_actual, acm_convective_percip_local_min_delta, acm_convective_percip_local_min_predicted, acm_convective_percip_predicted, acm_total_percip_actual, acm_total_percip_delta, acm_total_percip_predicted, actual_diff, avg_total_cld_frac_actual, avg_total_cld_frac_delta, avg_total_cld_frac_predicted, domain_percip_type_fr_actual, domain_percip_type_fr_delta, domain_percip_type_fr_predicted, domain_percip_type_ip_actual, domain_percip_type_ip_delta, domain_percip_type_ip_predicted, domain_percip_type_r_actual, domain_percip_type_r_delta, domain_percip_type_r_predicted, domain_percip_type_s_actual, domain_percip_type_s_delta, domain_percip_type_s_predicted, fsi_actual, fsi_delta, fsi_predicted, high_cloud_fraction_actual, high_cloud_fraction_delta, high_cloud_fraction_predicted, lifted_index_actual, lifted_index_delta, lifted_index_predicted, location, low_cloud_fraction_actual, low_cloud_fraction_delta, low_cloud_fraction_predicted, mid_cloud_fraction_actual, mid_cloud_fraction_delta, mid_cloud_fraction_predicted, prediction_date, prediction_length, prediction_time, prediction_timestamp, prediction_type, shelter_dewpoint_actual, shelter_dewpoint_delta, shelter_dewpoint_predicted, shelter_rel_humid_actual, shelter_rel_humid_delta, shelter_rel_humid_predicted, shelter_temperature_actual, shelter_temperature_delta, shelter_temperature_predicted, skin_temperature_actual, skin_temperature_delta, skin_temperature_predicted, soil_temperature_actual, soil_temperature_delta, soil_temperature_predicted, surface_pressure_actual, surface_pressure_delta, surface_pressure_predicted, surface_rel_humid_actual, surface_rel_humid_delta, surface_rel_humid_predicted, t2mean2m_actual, t2mean2m_delta, t2mean2m_predicted, tmax2m_actual, tmax2m_delta, tmax2m_predicted, tmin2m_actual, tmin2m_delta, tmin2m_predicted, type, u_storm_motion_6km_actual, u_storm_motion_6km_delta, u_storm_motion_6km_predicted, u_wind_on_10m_actual, u_wind_on_10m_delta, u_wind_on_10m_predicted, v_storm_motion_6km_actual, v_storm_motion_6km_delta, v_storm_motion_6km_predicted, v_wind_on_10m_actual, v_wind_on_10m_delta, v_wind_on_10m_predicted, visibility_actual, visibility_delta, visibility_predicted, wind_gust_actual, wind_gust_delta, wind_gust_predicted, wvc_actual, wvc_delta, wvc_predicted, x, y) FROM '/home/user/Pobrane/aggregate.csv' DELIMITER ',' CSV HEADER;
<reponame>adamdriscoll/TfsIntegrationPlatform CREATE INDEX [LeftMigrationItemId] ON [dbo].[RUNTIME_ITEM_REVISION_PAIRS] (LeftMigrationItemId);
create type badge_level as enum ('bronze', 'silver', 'gold'); create table badge ( id serial primary key, tag varchar(50) not null references tag(name), name varchar(50) not null, level badge_level not null, manual boolean not null default false, condition text not null ); create unique index badge_tag_name on badge(tag, name); create table player_badge ( badge integer references badge(id), player integer references player(id), message integer references message(id), primary key(badge, player) );
<reponame>DLarisa/FMI-Materials-BachelorDegree<gh_stars>1-10 -- Run this script to backup user accoun names that have been granted privilege to ODMRUSER role. -- The backup is used as part of the repository upgrade process. -- All users are revoked access to ODMRUSER as part of the migration. -- Once the migration is complete, the privilges are restored. -- This reduces the chance of users acquiring locks on ODMRSYS objects. -- @createusersgrantbackup.sql -- -- drop old user backup table if it exists DECLARE v_sql varchar2(100); BEGIN v_sql := 'drop TABLE "ODMRSYS"."ODMR$USER_GRANTS_BACKUP"'; EXECUTE IMMEDIATE v_sql; DBMS_OUTPUT.PUT_LINE (v_sql ||': succeeded'); EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE (v_sql ||': drop unneccessary - no table/view exists'); END; / EXECUTE dbms_output.put_line('When run from SQL Developer a Create Table as select may issue complete with warning message'); -- create new backup REMARK sql worksheet may issue a completed with warning message for create table as select create table "ODMRSYS"."ODMR$USER_GRANTS_BACKUP" as select grantee as "USER" from dba_role_privs where granted_role = 'ODMRUSER'; commit;
create or replace function pgq.ticker(i_queue_name text, i_tick_id bigint) returns bigint as $$ -- ---------------------------------------------------------------------- -- Function: pgq.ticker(2) -- -- Insert a tick with a particular tick_id. -- -- For external tickers. -- -- Parameters: -- i_queue_name - Name of the queue -- i_tick_id - Id of new tick. -- -- Returns: -- Tick id. -- ---------------------------------------------------------------------- begin insert into pgq.tick (tick_queue, tick_id) select queue_id, i_tick_id from pgq.queue where queue_name = i_queue_name and queue_external_ticker; if not found then raise exception 'queue not found'; end if; return i_tick_id; end; $$ language plpgsql security definer; -- unsure about access create or replace function pgq.ticker(i_queue_name text) returns bigint as $$ -- ---------------------------------------------------------------------- -- Function: pgq.ticker(1) -- -- Insert a tick with a tick_id from sequence. -- -- For pgqadm usage. -- -- Parameters: -- i_queue_name - Name of the queue -- -- Returns: -- Tick id. -- ---------------------------------------------------------------------- declare res bigint; ext boolean; seq text; q record; begin select queue_id, queue_tick_seq, queue_external_ticker into q from pgq.queue where queue_name = i_queue_name; if not found then raise exception 'no such queue'; end if; if q.queue_external_ticker then raise exception 'This queue has external tick source.'; end if; insert into pgq.tick (tick_queue, tick_id) values (q.queue_id, nextval(q.queue_tick_seq)); res = currval(q.queue_tick_seq); return res; end; $$ language plpgsql security definer; -- unsure about access create or replace function pgq.ticker() returns bigint as $$ -- ---------------------------------------------------------------------- -- Function: pgq.ticker(0) -- -- Creates ticks for all queues which dont have external ticker. -- -- Returns: -- Number of queues that were processed. -- ---------------------------------------------------------------------- declare res bigint; begin select count(pgq.ticker(queue_name)) into res from pgq.queue where not queue_external_ticker; return res; end; $$ language plpgsql security definer;
<reponame>dram/metasfresh -- 2017-10-09T15:46:01.187 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:46:01','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Menu_ID=1000082 AND AD_Language='en_US' ; -- 2017-10-09T15:46:41.029 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:46:41','YYYY-MM-DD HH24:MI:SS'),Name='GL Journal' WHERE AD_Window_ID=132 AND AD_Language='en_US' ; -- 2017-10-09T15:49:16.232 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:49:16','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='GL Journal',Description='',WEBUI_NameBrowse='GL Journal' WHERE AD_Menu_ID=540905 AND AD_Language='en_US' ; -- 2017-10-09T15:49:29.894 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Menu_Trl WHERE AD_Menu_ID=1000082 ; -- 2017-10-09T15:49:29.897 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Menu WHERE AD_Menu_ID=1000082 ; -- 2017-10-09T15:49:29.899 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_TreeNodeMM n WHERE Node_ID=1000082 AND EXISTS (SELECT * FROM AD_Tree t WHERE t.AD_Tree_ID=n.AD_Tree_ID AND t.AD_Table_ID=116) ; -- 2017-10-09T15:50:07.100 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:50:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='GL Journal',Description='' WHERE AD_Window_ID=540356 AND AD_Language='en_US' ; -- 2017-10-09T15:51:15.529 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:51:15','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client',Description='',Help='' WHERE AD_Field_ID=559500 AND AD_Language='en_US' ; -- 2017-10-09T15:51:30.035 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:51:30','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=559501 AND AD_Language='en_US' ; -- 2017-10-09T15:51:50.289 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:51:50','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Accounting Schema',Description='',Help='' WHERE AD_Field_ID=559502 AND AD_Language='en_US' ; -- 2017-10-09T15:52:05.762 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:52:05','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Journal Run',Description='',Help='' WHERE AD_Field_ID=559503 AND AD_Language='en_US' ; -- 2017-10-09T15:52:23.697 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:52:23','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Description' WHERE AD_Field_ID=559505 AND AD_Language='en_US' ; -- 2017-10-09T15:52:34.947 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:52:34','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Active',Description='',Help='' WHERE AD_Field_ID=559506 AND AD_Language='en_US' ; -- 2017-10-09T15:52:56.135 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:52:56','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Posting Type',Description='',Help='' WHERE AD_Field_ID=559507 AND AD_Language='en_US' ; -- 2017-10-09T15:53:02.699 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:53:02','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559508 AND AD_Language='en_US' ; -- 2017-10-09T15:53:14.632 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:53:14','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Doctype',Description='',Help='' WHERE AD_Field_ID=559509 AND AD_Language='en_US' ; -- 2017-10-09T15:53:26.406 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:53:26','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='GL Category' WHERE AD_Field_ID=559510 AND AD_Language='en_US' ; -- 2017-10-09T15:53:38.069 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:53:38','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Date',Description='' WHERE AD_Field_ID=559511 AND AD_Language='en_US' ; -- 2017-10-09T15:53:50.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:53:50','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='DateAcct' WHERE AD_Field_ID=559512 AND AD_Language='en_US' ; -- 2017-10-09T15:54:02.839 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:54:02','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Period',Description='',Help='' WHERE AD_Field_ID=559513 AND AD_Language='en_US' ; -- 2017-10-09T15:54:13.514 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:54:13','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Currency',Description='',Help='' WHERE AD_Field_ID=559514 AND AD_Language='en_US' ; -- 2017-10-09T15:54:32.604 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:54:32','YYYY-MM-DD HH24:MI:SS'),Name='Conversiontype',Description='',Help='' WHERE AD_Field_ID=559515 AND AD_Language='en_US' ; -- 2017-10-09T15:54:34.589 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:54:34','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559515 AND AD_Language='en_US' ; -- 2017-10-09T15:54:47.646 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:54:47','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Currency Rate',Description='',Help='' WHERE AD_Field_ID=559516 AND AD_Language='en_US' ; -- 2017-10-09T15:55:06.574 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:06','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Control Amount',Description='',Help='' WHERE AD_Field_ID=559517 AND AD_Language='en_US' ; -- 2017-10-09T15:55:17.982 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:17','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Approved',Description='',Help='' WHERE AD_Field_ID=559518 AND AD_Language='en_US' ; -- 2017-10-09T15:55:24.711 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:24','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559519 AND AD_Language='en_US' ; -- 2017-10-09T15:55:32.766 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559520 AND AD_Language='en_US' ; -- 2017-10-09T15:55:44.599 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:44','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Docstatus' WHERE AD_Field_ID=559521 AND AD_Language='en_US' ; -- 2017-10-09T15:55:50.424 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:55:50','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559523 AND AD_Language='en_US' ; -- 2017-10-09T15:56:10.657 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:56:10','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='GL Journal',Description='GL Journal',Help='' WHERE AD_Field_ID=559496 AND AD_Language='en_US' ; -- 2017-10-09T15:56:23.145 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:56:23','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Printed' WHERE AD_Field_ID=559497 AND AD_Language='en_US' ; -- 2017-10-09T15:56:35.981 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:56:35','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Processed',Description='',Help='' WHERE AD_Field_ID=559498 AND AD_Language='en_US' ; -- 2017-10-09T15:56:41.513 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:56:41','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559499 AND AD_Language='en_US' ; -- 2017-10-09T15:59:07.712 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:59:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Docaction',Description='' WHERE AD_Field_ID=559522 AND AD_Language='en_US' ; -- 2017-10-09T16:03:58.267 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:03:58','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Docaction',Description='' WHERE AD_Field_ID=559522 AND AD_Language='en_US' ; -- 2017-10-09T16:10:04.459 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:10:04','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Line' WHERE AD_Tab_ID=540855 AND AD_Language='en_US' ; -- 2017-10-09T16:11:59.464 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:11:59','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Description' WHERE AD_Field_ID=559541 AND AD_Language='en_US' ; -- 2017-10-09T16:12:17.214 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:12:17','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='GL Journal',Description='',Help='' WHERE AD_Field_ID=559540 AND AD_Language='en_US' ; -- 2017-10-09T16:13:00.416 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:13:00','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Debit',Description='',Help='' WHERE AD_Field_ID=559563 AND AD_Language='en_US' ; -- 2017-10-09T16:13:28.948 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:13:28','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Credit',Description='',Help='' WHERE AD_Field_ID=559564 AND AD_Language='en_US' ; -- 2017-10-09T16:14:10.501 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:14:10','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Line No.',Description='' WHERE AD_Field_ID=559542 AND AD_Language='en_US' ; -- 2017-10-09T16:14:42.611 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:14:42','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Description' WHERE AD_Field_ID=559543 AND AD_Language='en_US' ; -- 2017-10-09T16:15:05.787 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:15:05','YYYY-MM-DD HH24:MI:SS'),Name='Description (GL Journal)' WHERE AD_Field_ID=559541 AND AD_Language='en_US' ; -- 2017-10-09T16:15:30.133 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:15:30','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Debit Account' WHERE AD_Field_ID=559551 AND AD_Language='en_US' ; -- 2017-10-09T16:15:45.109 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:15:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Credit Account' WHERE AD_Field_ID=559552 AND AD_Language='de_CH' ; -- 2017-10-09T16:16:05.644 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:16:05','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=559539 AND AD_Language='en_US' ; -- 2017-10-09T16:16:38.104 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:16:38','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Taxamount (Credit)',Description='',Help='' WHERE AD_Field_ID=559561 AND AD_Language='en_US' ; -- 2017-10-09T16:17:15.695 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:17:15','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Sum Credit (Group)' WHERE AD_Field_ID=559568 AND AD_Language='en_US' ; -- 2017-10-09T16:17:52.270 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:17:52','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Journal Line (Group)' WHERE AD_Field_ID=559569 AND AD_Language='en_US' ; -- 2017-10-09T16:18:17.190 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:18:17','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Active',Description='',Help='' WHERE AD_Field_ID=559544 AND AD_Language='en_US' ; -- 2017-10-09T16:18:45.777 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:18:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Conversion Type',Description='',Help='' WHERE AD_Field_ID=559549 AND AD_Language='en_US' ; -- 2017-10-09T16:19:14.117 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:19:14','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Split Accounting' WHERE AD_Field_ID=559547 AND AD_Language='en_US' ; -- 2017-10-09T16:20:08.626 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:20:08','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Tax Account (Debit)',Description='',Help='' WHERE AD_Field_ID=559554 AND AD_Language='en_US' ; -- 2017-10-09T16:20:49.716 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:20:49','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Tax Base Amount (Debit)',Description='',Help='' WHERE AD_Field_ID=559555 AND AD_Language='en_US' ; -- 2017-10-09T16:21:38.872 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:21:38','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Taxamount (Debit)',Description='',Help='' WHERE AD_Field_ID=559556 AND AD_Language='en_US' ; -- 2017-10-09T16:22:38.577 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:22:38','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Sum Credit (Group)' WHERE AD_Field_ID=559567 AND AD_Language='en_US' ; -- 2017-10-09T16:22:52.906 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:22:52','YYYY-MM-DD HH24:MI:SS'),Name='Sum Debit (Group)' WHERE AD_Field_ID=559567 AND AD_Language='en_US' ; -- 2017-10-09T16:23:17.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:23:17','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Currency',Description='',Help='' WHERE AD_Field_ID=559546 AND AD_Language='en_US' ; -- 2017-10-09T16:24:06.959 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:24:06','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Currency',Description='',Help='' WHERE AD_Field_ID=559550 AND AD_Language='en_US' ; -- 2017-10-09T16:24:31.595 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:24:31','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Activity',Description='',Help='' WHERE AD_Field_ID=559570 AND AD_Language='en_US' ; -- 2017-10-09T16:24:53.085 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:24:53','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Debit',Description='',Help='' WHERE AD_Field_ID=559565 AND AD_Language='en_US' ; -- 2017-10-09T16:26:32.831 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:26:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Tax Account (Debit)' WHERE AD_Field_ID=559553 AND AD_Language='en_US' ; -- 2017-10-09T16:27:06.686 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:27:06','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Accounting Date' WHERE AD_Field_ID=559548 AND AD_Language='en_US' ; -- 2017-10-09T16:27:31.374 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:27:31','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Credit',Description='',Help='' WHERE AD_Field_ID=559566 AND AD_Language='en_US' ; -- 2017-10-09T16:29:03.354 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:29:03','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=559558 AND AD_Language='en_US' ; -- 2017-10-09T16:29:44.689 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:29:44','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Sum (Debit)' WHERE AD_Field_ID=559557 AND AD_Language='en_US' ; -- 2017-10-09T16:30:15.193 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:30:15','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Sum (Credit)',Description='',Help='' WHERE AD_Field_ID=559559 AND AD_Language='en_US' ; -- 2017-10-09T16:30:57.167 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:30:57','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Sum (Credit)' WHERE AD_Field_ID=559562 AND AD_Language='en_US' ; -- 2017-10-09T16:31:27.132 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:31:27','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Tax Base Amt (Credit)',Description='',Help='' WHERE AD_Field_ID=559560 AND AD_Language='en_US' ; -- 2017-10-09T16:32:00.674 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:32:00','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client',Description='',Help='' WHERE AD_Field_ID=559538 AND AD_Language='en_US' ; -- 2017-10-09T16:35:23.998 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:35:23','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Credit Account' WHERE AD_Field_ID=559552 AND AD_Language='en_US' ; -- 2017-10-09T16:35:50.982 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:35:50','YYYY-MM-DD HH24:MI:SS'),Name='Currency Rate' WHERE AD_Field_ID=559550 AND AD_Language='en_US' ; -- 2017-10-09T16:37:14.497 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:37:14','YYYY-MM-DD HH24:MI:SS'),Name='Debit Source' WHERE AD_Field_ID=559563 AND AD_Language='en_US' ; -- 2017-10-09T16:37:28.634 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 16:37:28','YYYY-MM-DD HH24:MI:SS'),Name='Credit Source' WHERE AD_Field_ID=559564 AND AD_Language='en_US' ; -- 2017-10-09T16:55:02.613 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547476 ; -- 2017-10-09T16:55:02.617 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547520 ; -- 2017-10-09T16:55:02.618 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547522 ; -- 2017-10-09T16:55:02.619 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547523 ; -- 2017-10-09T16:55:02.620 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547521 ; -- 2017-10-09T16:55:02.623 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547531 ; -- 2017-10-09T16:55:02.625 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-10-09 16:55:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547528 ; -- 2017-10-09T16:55:46.925 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547519 ; -- 2017-10-09T16:55:46.927 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547476 ; -- 2017-10-09T16:55:46.930 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547520 ; -- 2017-10-09T16:55:46.933 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547522 ; -- 2017-10-09T16:55:46.936 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547523 ; -- 2017-10-09T16:55:46.940 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547521 ; -- 2017-10-09T16:55:46.943 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547531 ; -- 2017-10-09T16:55:46.947 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-10-09 16:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547528 ; -- 2017-10-09T16:56:11.526 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SortNo=-1.000000000000,Updated=TO_TIMESTAMP('2017-10-09 16:56:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559511 ; -- 2017-10-09T16:56:22.329 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SortNo=NULL,Updated=TO_TIMESTAMP('2017-10-09 16:56:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559504 ; -- 2017-10-09T16:57:54.232 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-10-09 16:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1634 ; -- 2017-10-09T16:57:56.317 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-10-09 16:57:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1635 ; -- 2017-10-09T16:58:42.369 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=10,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1634 ; -- 2017-10-09T16:58:42.372 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=20,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1626 ; -- 2017-10-09T16:58:42.374 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=30,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1631 ; -- 2017-10-09T16:58:42.377 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=40,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1635 ; -- 2017-10-09T16:58:42.379 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1636 ; -- 2017-10-09T16:58:42.381 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2017-10-09 16:58:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1619 ;
<reponame>wvanheemstra/core /* Navicat MySQL Data Transfer Source Server : wvanheem_core_local Source Server Version : 50509 Source Host : 127.0.0.1 Source Database : core Target Server Version : 50509 File Encoding : utf-8 Date: 06/22/2012 13:19:40 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `tbl_deck_data` -- ---------------------------- DROP TABLE IF EXISTS `tbl_deck_data`; CREATE TABLE `tbl_deck_data` ( `kp_DeckID` int(11) NOT NULL AUTO_INCREMENT, `DeckName` varchar(255) COLLATE utf8_bin NOT NULL, `DeckDescription` varchar(255) COLLATE utf8_bin NOT NULL, `kf_KindOfDeckID` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`kp_DeckID`), KEY `kf_KindOfDeckID` (`kf_KindOfDeckID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; SET FOREIGN_KEY_CHECKS = 1;
SELECT emp_no FROM dept_emp WHERE from_date > '2000-01-01' GROUP BY emp_no HAVING count(from_date) > 1 ORDER BY emp_no;
SELECT*,IF(username=nobp,1,0) AS STATUS FROM `tb_mahasiswa`,`tb_userhotspot` ; SELECT*FROM `tb_userhotspot` JOIN `tb_profile` ON `id`= ;
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: pestmanagement -- ------------------------------------------------------ -- Server version 8.0.11 /*!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 */; SET NAMES utf8 ; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `insect_insectinformation` -- DROP TABLE IF EXISTS `insect_insectinformation`; /*!40101 SET @saved_cs_client = @@character_set_client */; SET character_set_client = utf8mb4 ; CREATE TABLE `insect_insectinformation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `host_plant` longtext NOT NULL, `host_plant_type` varchar(500) NOT NULL, `lifecycle` longtext NOT NULL, `bionomics` longtext NOT NULL, `shape` longtext NOT NULL, `growth_rate` varchar(500) NOT NULL, `damage` longtext NOT NULL, `symptoms` longtext NOT NULL, `natural_enemies` varchar(500) NOT NULL, `etl` varchar(500) NOT NULL, `size` varchar(500) NOT NULL, `colour` varchar(500) NOT NULL, `species` varchar(500) NOT NULL, `species_example` varchar(500) NOT NULL, `favourable_condition` longtext NOT NULL, `soil_type` varchar(500) NOT NULL, `peak_occurance` varchar(500) NOT NULL, `region` varchar(500) NOT NULL, `reproduction` longtext NOT NULL, `preventive_measures` longtext NOT NULL, `insectiside` longtext NOT NULL, `ipm_techniques` longtext NOT NULL, `speciality` varchar(500) NOT NULL, `insect_id_fk_id` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `insect_id_fk_id` (`insect_id_fk_id`), CONSTRAINT `insect_insectinforma_insect_id_fk_id_47a934ce_fk_insect_ma` FOREIGN KEY (`insect_id_fk_id`) REFERENCES `insect_master` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `insect_insectinformation` -- LOCK TABLES `insect_insectinformation` WRITE; /*!40000 ALTER TABLE `insect_insectinformation` DISABLE KEYS */; INSERT INTO `insect_insectinformation` VALUES (10,'rice , sugarcane, potatoes, strawberries, , sweet potatoes, papaya, guava, mahogany','vegetables,woody field-grown ornamentals ,containerized ornamentals, and non-cultivated wild plants',' A one year life cycle is normal for all species.','The female lays eggs in soil near the roots of grasses. The incubation period is 3-4 days. The grub is creamy white, aquatic and feeds on root hairs. The larval period lasts for 11 months. The grub over-winters in soil at a depth of 25-30 cm, after September. It pupates during May. The pupal period is 10-12 days.','oblong body covered with greyish scales','Root weevils have one generation per year. While some adults may overwinter, the majority of the population overwinters as larvae in the soil around host plants. When soil temperatures warm in the spring, larval feeding resumes and larvae continue to grow until they pupate in late May or early June','Leaf notching by the adults ','Grubs feed on the roots of plants resulting in stunting and non formation of tillers. Presence of dead plants in large patches is a typical symptom. Yellowing of newly transplanted seedlings and presence of dead plants in large patches.','predatory stink bug ,regal jumping spider,several species of ants','','1/4 to 1/3 inch depending on species.','adult weevil is shiny black','68 candidate species in 29 families','Alfalfa Weevils. Black Vine Weevils. Carrot Weevils. Pecan Weevils. Root Weevils. Strawberry Root Weevils.','A temperature range of 21 to 27 C appeared to be optimum','','Peak pupation occurs from mid-May to early June.','','Root weevils reproduce asexually and all root weevils are therefore female. These beetles are unable to fly and are active at night. Most root weevils overwinter as larvae near the roots of their host plants. In spring they pupate and adults begin to emerge in early July.','Other methods tested include the use of horticultural oils that effectively separate leaves that have been stuck together to protect eggs. When the leaves are separated, eggs desiccate or are more subject to predation and parasitism. Oils also prevent females from gluing eggs to leaves. the insect growth regulator with a spray oil, egg viability has been reduced by as much as 95 percent','Adult root weevils can be controlled with sprays of several kinds of pyrethroid insecticides such as permethrin, bifenthrin, cyfluthrin, or cyhalothrin. These are best applied on the lower trunk of the plants and around the base of the plant to kill the weevils as they climb.','Three strategic components include: 1.use of a fungicide to control Phytophthora infection in the roots,2.short residual foliar insecticide sprays designed to suppress adult populations, and3. soil applications of chemical insecticides for control of neonate larvae.','',10),(11,'Mustard, toria , rapeseed, cabbage, cauliflower, knolkhol, turnip, radish, etc','','Adult sawflies are short-lived, with a life expectancy of 7-9 days, though the larval stage can last from months to years, depending on the species.','The adults emerge from these cocoons early inOctober. They live for 2-8 days and lay 30-35 eggs singly, in slits made with saw like ovipositors along the underside of the leaf margins. Egg period is 4-8 days and the larvae feed exposed in groups of 3-6 on the leaves during morning and evening. They remain hidden during the day time and, when disturbed, fall to the ground and feign death.','larvae have 8 pairs of abdominal prolegs. There are five black stripes on the back, and the body has a wrinkled appearance.black markings on the body and have smoky wings with black veins','It completes 2-3 generations from October to March.','Larvae feeding habits can slow or stop plant growth, weaken leaves, and wilt stems. Both mature and larval sawflies are harmless to humans. Sawflies infest many species of trees and a large infestation may weaken a tree\'s ability to withstand damage caused by other tree infesting insects.','The grubs alone are destructive. They bite holes into leaves preferring the young growth and skeletonize the leaves completely. Sometimes, even the epidermis of the shoot is eaten up. Although the seedlings succumb; the older plants, when attacked, do not bear seed.',' birds, insects and small animals','','','Dark green larvae , adults are small orange yellow insects ',' about 7,000 species ',' Pergidae, pergid sawflies; Cimbicidae, cimbicid sawflies; Diprionidae, conifer sawflies','The sawflies will be active in the field when temperatures are above 50 F, with calm winds. They are not strong fliers and generally fly no further than the nearest wheat field or other suitable host grasses','','October to March','Widely distributed in Indonesia, Formosa, Myanmar and the Indian Sub-continent.',' Parthenogenetic females, which do not need to mate to produce fertilised eggs, are common in the suborder, though many species have males','1.Give first irrigation 3-4 weeks after sowing as it reduces the bug population significantly 2.Conserve larval parasitoid Perilissus cingulator Morby (Ichneumonidae) and the bacterium, Serratia marcescens Bizio (Enterobacteriaceae)','1.Spray 1.0 L of malathion 50 EC or 625 ml of endosulfan 35 EC or quinalphos 25 EC in 500-600 L of water per ha once in October and again in March-April. 2.Spraying of quinalphos or endosulfan or malathion at 0.05%','1. Pest Monitoring 2. Cultural Control :wathing and using a stripper header are the only pest management practices that can be utilized in the current year of the infestation. Swathing sometimes is conducted on just the outer one or two swaths bordering the field if the infestation is heavy in the field edges only. Swathing prevents sawfly larvae from cutting the stems and reduces yield loss due to lodging. ','Strangely enough, no, Sawflies do not sting. In fact, they are often referred to as stingless wasps',11),(12,'Ants occur on most nectar-producing plants or on those infested by honeydew-excreting insects, as well as on the seedlings of various plants.','','The average lifespan of an ant can be anywhere from a few weeks to 15 years','N/A','Segmented, Oval','','Ants feed on rice seeds and seedlings. Their feeding damage causes rice seeds or plants to be missing. It also affects plant stand, and increases the incidence of diseases vectored by Homoptera insects such as planthoppers, leafhoppers, mealybugs, and aphids','The primary symptom is defoliation of the plant. Larvae feed on leaves, chewing from the edges to the midrib, or on the heads of cereal plants. Heavy infestations can be very destructive; larvae may climb the plant and sever the neck just below the head.','One of the biggest enemies of ants is other ants,Spiders,Phorid Flies,Antlions/Doodlebugs,Paussinae Beetles,Oogpister Beetles,Liphyra Caterpillars','','1/16 to 1/4','Many ants are blackish, although red and red-brown forms are also known','more than 12,000','Carpenter Ants,Odorous House Ants,Pavement Ants,etc','Outside conditions such as sandy areas, pavers and garden pots also are favourable conditions for ants','','','','Reproduction for ants is a complex phenomenon that involves finding, selecting and successfully fertilizing females to ensure that the eggs laid are able to survive and molt through the successive stages of the ant\'s life cycle larvae, pupae and adults.','1. Remove grass, plants, and mulch at least 6 inches away from the foundation of the building. Ants like to nest in these areas because mulch and ground cover retain moisture better than barren soil or concrete. 2. Remove any dependable water source by repairing dripping pipes or leaky faucets. 3. Caulk holes and cracks that can be used by ants as an entryway into the structure.','','','',12),(13,'Cotton, okra, brinjal, chillies, guava etc.','including annuals, perennials, vegetables, trees, shrubs and roses.',' between 1 week and 40 days','The aphids are greenish brown, soft bodied and small insects. ','pear-shaped , Generallly found in colonies','A single female may produce 8-22 nymphs in a day which become adults in about 7-9 days. ','Leaves, twigs, stems, or roots may be attacked by aphids, whose mouthparts are designed for piercing the plant and sucking the sap.','1.When leaves are attacked by aphids, damage often appears first as spotty yellow discolorations, usually on the undersides of leaves 2.Some aphid species form galls or cause distorted, curled, or deformed leaves.3.Aphids attached to other plant parts such as stems or twigs may cause stunted growth, early leaf fall, or twig mortality, but aphid damage very rarely kills the plant.4.Heavily-infested leaves can wilt or turn yellow because of excessive sap removal','1.lady beetles and lacewings 2.parasitic wasps and predaceous insects 3.larvae of some syrphid flies. 4.Various small bird species also prey upon aphids. ','10-29% affected plants','','various colours','more than 4,000 known species of aphids , . Some of them are similar to one another, while others vary in important areas, like how they reproduce, which plants they feed on, and size, shape and color','cabbage aphid ,corn root aphid , spinach aphid ,different aphids different biology ','high relative humidity favors aphid population growth Aphid infestations occur mostly during the cool dry season ','Dependancy between Soil characteristics and Aphids','Different wrt different crops','','The alate as well as apterous females multiply parthenogenitically and viviparously','Plant nectar-producing flowers. Provide bird habitat. Remove attractive weeds. Do not over-fertilize .Schedule pruning to avoid infestations','Acetamiprid 20 SP 50g Fluvalinate 25EC 200-400 ml NSKE 5% kg/ha or Azadirachtin 0.03% 500 ml Imidacloprid 70 WG 30-35 g or 30.5 SC 60-75 ml or 17.8 SL 100 -125 ml Buprofezin 25 SC 1.0 L Profenofos 50 EC 1.0 L Diafenthiuron 50 WP 600 g Thiacloprid 21.7 SC 100-125 ml','https://aggie-horticulture.tamu.edu/faculty/davies/students/spiers/IPMaphids.html','1.Aphids produce large amounts of a sugary liquid waste called honeydew 2.They are often attended by ants for the sweet honey dew secretion. Winged forms may be seen under crowded conditions.',13),(14,'Apple tree borers has a wide host range of deciduous trees especially those with thin bark such as young apples, crabapple, crapemyrtle, dogwoods, hawthorn, linden, maples and oak','These borers are particularly troublesome in commercial nurseries and urban landscapes.','Larvae tunnel through trunks until completing the 2-3 year life cycle. Flat-headed apple tree borer is a dark/brown beetle belonging to the family Buprestidae. Adults are about 1/2 long with a metallic luster. They are primarily active in June and July on the sunny sides of trees.','Roundheaded apple tree borers are striped long-horn beetles about 5/8 long that emerge during the month following Petal Fall,Flat-headed apple tree borer is a dark/brown beetle belonging to the family Buprestidae. Adults are about 1/2 long with a metallic luster','Flatheaded appletree borer adults, The adult beetle (Fig. 1) is about 1/2-3/4 inch long, has short antennae, large conspicuous eyes, and a noticeable tooth on the forelegs. The adult is blunt at the head and tapers to a rounded point at the back end. In cross section, it is oval-shaped and somewhat flattened on top.','','Attack apples mainly, but most deciduous tree fruits are susceptible. The larvae dig tunnels, most often at the base of the tree trunk. The roundheaded borer leaves accumulations of reddish frass at the entrance of galleries. Infested trees have a sickly appearance, producing sparse, pale-colored foliage (C). Continued yearly attacks can kill the tree or weaken it so that it is broken off by the wind. Young trees that have been girdled will often bloom profusely and set a heavy crop of fruit and then die in the process of bringing it to maturity.','As mentioned in the identification section, you should be looking for signs of tree damage or any active Tree Borers. Look for holes in the trunks and branches, remnants of sawdust-like frass, dead tree limbs and cracked bark.','Keeping the bases of trees free of vegetation makes it easier to detect and remove borers, but also exposes them to natural enemies such as ants and other predators, parasitic wasps and flies and the golden and downy woodpeckers. When given the opportunity, there are several natural parasites and predators that keep this insect under control.','','one-quarter to one-half-inch long','This species is somewhat shiny and gray to bronze on top; the lower surfaces are clearly metallic and greenish.','','flatheaded appletree borer,roundheaded appletree borer,Shothole borer,Peachtree borer,Lesser peachtree borer,etc','adults are most active in the heat of the day and prefer the sunny side of tree trunks and trees in full sun; they also may be seen basking in the sun on fallen trees or logs.','','Adults fly from mid-June through late August with peak flight in July. Trees with many burr knots (such as M9) are most heavily infested. Roundheaded apple tree borers are striped long-horn beetles about 5/8 long that emerge during the month following Petal Fall.','','It pupates for 1-2 weeks the following spring and emerges, when conditions permit, to start the cycle again. Adults emerge by chewing their way out through the bark, leaving an oval hole. One generation per year is most common, but emergence cage studies have shown some emergence in the second and third years.','insecticide sprays during the June - August for other insect pests kill or deter the female roundheaded apple tree borer beetles before they lay eggs. Nonchemical preventive measures include removing infested mountain ash, crabapple, hawthorn, shadbush and cotoneaster within at least 100 feet of apple trees.','midacloprid. General-use insecticide imidacloprid is an effective aphid control insecticide for apple trees. Available... Cyfluthrin. Cyfluthrin is used against a variety of infestations, including aphids, caterpillars, sawflies and weevils. Carbaryl. One of the most common and effective insecticides on the market is carbaryl. It is an effective tool against... Chlorpyrifos. Chlorpyrifos is an effective, broad spectrum treatment for the flatheaded apple tree borer and other apple.','1.Flatheaded borers are attracted to diseased or weakened trees and newly transplanted nursery stock. Trees suffering from sunscald are particularly susceptible. An insecticide can be applied to the trunk against egg-laying adults in early to midsummer.2.Avoid pruning just before and during borer flight periods. Mulch around the base of trees to prevent growth of weeds, grass and woody vegetation, but do not pile mulch against the trunk','The flatheaded appletree borer, Chryso<NAME>, is one of a complex of over 600 species in U.S. belonging to the family Buprestidae. The flatheaded borers, or metallic wood boring beetles, as a group, are perhaps the most serious pests attacking a wide range of tree species.',14),(15,'<NAME>, <NAME>,Cornusalba,E.fortunei Dart\'<NAME>et, <NAME>, Humulus lupulus.','The genus Bambusa (family Poaceae) consists of 120 bamboo species indigenous to Asia and the New World.B. vulgaris (common bamboo) is a widely-grown species with several infra-specific taxa, known variously as varieties or cultivars, including forms with variously green and yellow-striped culms which are sometimes placed in distinct varieties or even species.','The life cycle takes about 5 weeks in the summer, but may take up to 20 weeks in cooler temperatures. Adults can live up to 8 months after emerging.','The bamboo weevil, Cyrtotrachelus buqueti, has excellent flight ability and strong environmental adaptability.When it flies, its fore wings and hind wings are unfolded, whereas when it crawls, its fore wings are closed, and its flexible hind wings are regularly folded under the fore wings.','Weevils can be easily recognised by the long rostrum or snout, an elongated part of the front portion of the head','','bamboo leaves wilt and the bamboo growth becomes stunted.','The initial symptoms of blight are premature death of culms sheaths and partial collapse of the fragile apical regions.','Natural predators: Ladybugs, lacewings, predatory mites (like Neoseiulus fallacis), and parasitic wasps help prevent problematic infestations of bamboo insects and mites. Crypts, the mealybug destroyer: This is a bug that loves mealybugs and will devastate active colonies.','','adult lengths ranging from 1 to 40 mm .','This impressive, bright red creature is the Bamboo Weevil','There are more than 90k species of the weevil exists on the earth','','The lifecycle can be as short as 60 days in good conditions (35 C, 75% relative humidity) leading to multiple generations per year. Habits Larva feeds on bamboo cane, but the weevil is also known to breed on cassava root.','Bamboos prefer a soil pH that is slightly acidic (with a pH reading of about 6). In terms of soil texture, bamboo plants prefer loamy soil. To stimulate growth in the plants, apply a fertilizer high in nitrogen.','','','N/A','1.Weevils may be seen outside the area of foods they have infested, so it is important to check all foods in the home to ensure all weevils are found and eliminated. 2.Closely examine the foods these insects prefer to eat: whole grains, seeds, rice, nuts, dried beans, cereals, corn, and other such foods. 3.Discard or treat (see step 6) any foods in which weevils are found. 4.Empty all foods (infested or not) from the pantry, or area that is infested.','Malathion 57% is an organophosphate insecticide that can be applied to crops and non-crop plants to kill a wide variety of insects, including Bamboo Weevils. For large croplands, Malathion is primarily used with a professional skid sprayer or boom sprayer.','1.Pitfall traps placed in the ground to collect and quantify ABW adults. 2. Vacuuming. 3.Soap flushes, in which solutions of water and liquid soap applied to small areas of bamboo to bring adult ABWs to the surface for counting.','Dark brown body, plump, almost cylindrical, 1/16 to 1/8 in length. Antennae broaden at the tip, with the last 3 segments considerably larger and ending in well-defined antenna clubs. The humped thorax conceals the head and has teeth-like indentations in its rounded front. Two large dimples at the back of the thorax.',15),(16,'The host-plant genera that were associated with the greatest number of specialist-bee species were Solidago (goldenrods), followed by Salix (willows), Symphyotrichum (American asters), and Vaccinium (blueberries) (11, 9, 6, and 6 bee species, respectively)','','1.Every bee begins life as an egg. Almost all species of bee lay their eggs in protected locations. Social bees care for their eggs, whereas solitary bees do not.2.The larval stage is the first part of a bee\'s life. At this point, bees look more like maggots than the winged insects they will become. This is true of the various species.3.Once a bee larva is sufficiently grown, it will form a pupa. The larva spins a cocoon around itself, preparing to transform. During the pupal stage, the bees don\'t feed.','N/A','Shape: Oval, bee shape','','','Symptoms Seeds will rot and are covered with mold','Wax Moths. Eat pollen, wax, honey, bee eggs and larvae. Poop in the honey, causing it to ferment. Cause Queens to stop laying eggs. This will eventually result in weak hives.','','Bees range in size from tiny stingless bee species whose workers are less than 2 millimetres (0.08 in) long, to Megachile pluto, the largest species of leafcutter bee, whose females can attain a length of 39 millimetres (1.54 in).','there are different coloured bees yellow are commonly found','there are 17 type of bees','example:Apidae,Megachilidae,Andrenidae, Colletidae,Halictidae,etc','regardless of living in tropical or temperate climates, honey bees maintain their hives with a constant temperature of 90 to 95 degrees Fahrenheit. During winter, honey bees consume honey and use their metabolic heat to provide warmth to all individuals of a colony.','Ground bees nest in dry soil, avoiding damp areas when choosing nesting sites','during July to October and November to December.','','Honey bees actually have two types of reproduction. The first type is the kind we normally think of the queen mates, lays eggs, and new bees are born. The second type is whole-colony reproduction. This occurs when the colony splits into two parts.','N/A','Pesticides kill bees. Glyphosate, the main ingredient in Roundup, kills bees. Monsanto, a company owned by Bayer, who makes and sells Roundup, kills bees.','','',16),(17,'Beetle Host Plants Apple ( Malus spp.) Apricot ( Prunus spp.) Aronia ( Aronia spp.) Asparagus ( Asparagus spp.) Basil ( Ocimum spp.) Basswood ( Tilia spp.) Bayberry ( Myrica spp.) Bean ( Phaseolus spp.) Bilberry ( Vaccinium spp.) Black walnut ( Juglans nigrum) Blackberry ( Rubus spp.)','the Colorado potato beetle, the coconut hispine beetle, and the mountain pine beetle. Most beetles, however, do not cause economic damage and many, such as the lady beetles and dung beetles are beneficial by helping to control insect pests.','Eggs. The female beetle, depending on the species, will lay hundreds of small white or yellow eggs 2.Larval:. Beetle larvae are grub or worm-like in appearance and have voracious appetites. 3.Pupal:. This stage of the beetle life cycle is where the greatest change in form takes place. 4.Adults:. The adult stage is the final stage in the life cycle of a beetle. Adults are found in many sizes, shapes','N/A','Beetles of this genus are cylindrical in shape, 3 to 6.5 millimeters long, and reddish to black in color.','','The beetles damage palms by boring into the centre of the crown, injuring the young growing tissues and feed on the exuded sap. As they bore into the crown, they cut through the developing leaves.','Symptoms of damage We can see the tunnels formed on the leaf d-blade dues to the damage of the beetle. Plants become less vigorous. Irregular and clear feeding marks of the beetle are seen on the leaf','Ladybird beetles ,Hover-flies,Predatory bugs ,Praying mantis,Rove beetles,Predatory wasps,Ants,etc','','he average size of most beetles is under 1 (2.5 cm) long.','Females range from a dark brown to silky white, while males are brown/black/white or black/white.','10 Different Types of Beetles','example:Stag Beetles,Click Beetles.,Ground Beetles,Dung Beetles,Lady Beetles,Red Milkweed Beetles,etc','Favourable conditions: They survive in temperatures ranging from -26 to 15 C. The flight activity is greatest late afternoon or early evening and the beetles usually fly at or below 15 ft.','FS (flake soil) is a type of highly regarded substrate that is suitable for the rearing of beetle larvae.','The occurrence of beetle started in May while the peak population occurred in August for both years across the locations','','Sexual reproduction involves the participation of specialized sexual cells or gametes originated in the sexual organs by meiosis. It is the most common type of reproduction among arthropods and insects.*In amphygony, two types of gametes are generated, which lead to the formation of the embryo once they fuse. Most of amphygonic insects are unisexual or dioecious, so each organism generates only one type of gamete.','N/A','Boric acid has been used in poultry operations against litter beetles for decades, but has been largely underutilized in recent years. Boric acid has the longest residual activity of any insecticide used for crawling insect management','','',17),(18,'The coffee berry borer has been reported from plants other than coffee. This beetle can survive in several other host plants, and has even been reported to reproduce in some of them (Damon 2000); and red fruit passion flower or love-in-a-mist','','The maturation of the insect (from egg to adult) lasts between 24 and 45 days, varying according to the weather. Usually, the female drills the berry through the central disc, although it can enter through the side walls if the fruit is dry. Two days after the access, the beetle lays 35 - 50 eggs, which produce 13 females for each male. The lifespan for females is 35 - 190 days and for males 40 days. The new insects mate inside the seed. Some females lay the eggs in the same coffee plant, others colonize new ones.','The colonizing female bores a hole in the coffee berry and makes galleries in the seed where she lays the eggs. The life stages are egg, larva, pupa, and adult, and all are found inside the seed. The female lays 2 to 3 eggs per day for a period of 20 days. Both the colonizing female and larvae make galleries in the seed, where they also feed. The founder female remains inside the fruit after oviposition until she dies, taking care of the offspring. There is sibling mating among the adult progeny with a 10:1 sex ratio favoring females; therefore, when the new adult females emerge, they are already inseminated and ready to attack another berry, in which they continue the cycle','The adults are black, about 1.5 mm long by 0.4 mm wide, covered in short stiff hairs.','The growth index of berry borer was the least (4.24) i','Three types of damage have been reported: 1) premature fall of young berries, 2) increased vulnerability of infested ripe berries to fungus or bacterial infection, and 3) reduction in both yield and quality of coffee, reducing the income of coffee growers (Damon 2000, Jaramillo et al. 2006). The coffee berry borer can cause yield losses of 30-35% with 100% of berries infested at harvest time. Damage may be greater if harvest is delayed (Barrera 2008).','Signs of infestation The larvae enters the hard wood and burrows up to the roots. Infested plants show yellowing and wilting of leaves, presence of ridges on the stem, wilting of branches and occasional drying. In severe infestation a plant may have 20-25 grubs.','Natural enemies of the coffee berry borer, Hypothenemus hampei (Ferrari) (Coleoptera: Scolytidae)','','Females are 1.4 - 1.8 mm long. The males are 1.2 - 1.6 mm long.','Spots enlarge to become reddish brown with greyish centre (inset)','','','Male CBB do not fly and remain inside the berry. Most of the life cycle occurs inside the berry and varies according to the temperature: 21 days at 80 F (27 C), 32 days at 72 F (22 C) and 63 days at 67 F (19.2 C) (Fig. 5). Females can live 157 days, and males may live for 20 to 87 days at 76 F (24.5 C)','The soil type of this station is generally lateritic to laterite. The soil structure varies from sandy to clayey loams with the soil pH varying from 5.2 to 6.3. Organic carbon content is medium and phosphorous and potassium status in soil is low to medium.','','berry borer (CBB) or Broca, Hypothenemus hampei(Ferrari) is of major concern in Eastern Africa region. Heavy infestation as high as 96% has been experienced in the region.','Infestation occurs in berries on the tree, and reproduction continues in berries even if they have fallen to the ground (Fig. 6) and in parchment coffee, provided that moisture content does not fall below 13.5% (Damon 2000). Between harvest seasons, females remain inactive in old berries on the tree or ground waiting for the first rains, which stimulate them to emerge and search for new berries in which to begin the next cycle. Coffee berry borers develop faster on the ground','A multi-pronged approach that integrates field sanitation, insecticidal fungus, trapping, and worker education is key. By adopting this method, producers can prevent the spread of the coffee berry borer, kill those that are already on the farm, and be alerted to any new infestations.','The insecticides Voliam Targo, Lorsban 480 BR, Curbix 200 SC, Sperto, Polytrin 400/40 CE and Verismo presented the best control results, being indicated for use in the management of the berry borer of coffee','','',18),(19,' Myrmecodia tuberosa - These many be pests that might eventually weaken or even kill the plant, or they could be mutually beneficial.','Like most true bugs, they feed on plant sap and logically, they should usually be found on their host plants. They may gather in large numbers during mating period','The lifespan of a bed bug, from beginning to end, is between 99 and 300 days. Over her lifetime, a single female bed bug can lay hundreds of eggs into the seams of your mattresses and box springs. That\'s why it\'s so important for homeowners to catch the problem early.','Bionomics Bugs have densely reticulate body and wings. Nymphs are spiny in appearance. Adult lays eggs on the upper surface of leaves. Egg period 8-10 days, five nymphal instars completed in 15-27 days. Full development cycle is completed on a single leaf. Management Spray dimethoate 30 EC 500 ml or endosulfan 35 EC 1.0 L in 500 L of water / ha.','The bug is a grayish-brown color, and shaped like a shield or diamond.','','bugs can damage ornamental plants, fruit trees, and gardens, but they are more of a nuisance than a threat to people.','Symptoms - Borer infestation cause toppling and death of young seedlings, withering and drying up of individual leaves and central shoot. Fruits will be damaged severely.','Predator s,Main prey,Predator y bugs,Pathogens,etc','','Bed Bug Size. Adult bed bugs can reach a size of about 1/4 inch long. Nymphs range from 1.3 mm to 4-5 mm.','Color Most insect structural colors are in the green-blue-violet range, but red, gold, and copper colors may also be produced in this way.','','example:Cicada,Bed bugs,Stink bugs,Potato bugs,Milkweed bug ,etc','Favourable conditions. Warm weather conditions followed by light rains and dry spells are favourable for multiplication.','','','','N/A','How to Prevent Mealybugs Keeping the plant in its tip-top condition is perhaps the best preventive measure. When it is at its healthiest state, it will be less vulnerable to infestation as against when it is already weak. With this, frequent watering and the use of natural fertilizers will help.','Monterey LG6135 Garden Insect Spray,Bonide (BND210),Southern Ag 10401 Natural Pyrethrin Concentrate,Garden Safe HG-93179 Neem Oil Extract Concentrate','The sterile insect technique (SIT) is an area-wide IPM program that introduces sterile male pests into the pest population to trick females into (unsuccessful) breeding encounters, providing a form of birth control and reducing reproduction rates.','',19),(20,'there are different types of butterfly and accordingly their host plants differ for example, Alfalfa Butterfly:-Clovers, alfalfa, deerweed . Atala Butterfly:-Coontie','Oak (Quercus spp.),Blueberry (Vaccinium spp.),Viburnum (Viburnum spp.),Violets (Viola spp.)etc','1) The Egg - Stage 1: The female butterfly lays the egg on the surface of a leaf or a stem. The egg is tiny, oval or cylindrical and varies in color) The 2Larva (Caterpillar) Stage 2: The larvae or in this case a caterpillar that hatches goes on an eating rampage. In this stage they eat, molt and repeat that process constantly3) The Pupa (Chrysalis) Stage 3: The caterpillar forms a vessel around it, called the pupa. Inside the pupa the caterpillar gradually grows and develops.4) The Adult Stage 4:The most prominent and known stage to human beings is the adult stage when the Chrysalis breaks out of the vessel with colorful scaly wings','The body length averaged 10.63 - 0.48 mm and ranged from 9.95-11.50 mm; the wingspan averaged 20.83 - 1.44 mm and ranged from 18.0-22.5 mm (Figure 1). Adult apeflies were normally found flying rapidly and fluttering in the vicinity of mealybug-infested host plants to deposit their eggs on the mealybug masses.','Not all butterflies have the same shape of scale as they vary in shape, some shaped like plumes while some are rectangular','That is a growth rate of more than 400%','indirect damage in which the insect itself does little or no harm but transmits a bacterial, viral, or fungal infection into a crop.','Caterpillar bores into young fruits. Feeds on internal contents (pulp and seeds) Fruit rotting and dropping may occur','Main prey: Parasitic wasps are important natural enemies of moth and butterfly eggs, bug eggs, caterpillars, leafminers, aphids, mealybugs, and whiteflies.','','The wingspan of a monarch butterfly is between 8.9 cm to 10.2 cm or 3.5 to 4.0 in inches.','there are multiple coloured butterflies','','example:Monarch ( Danaus plexippus),The Viceroy ( Limenitis archippus),Red-spotted purple ( Limenitis arthemis astyanax),Great spangled fritillary ( Speyeria cybele),Tiger swallowtail ( Papilio glaucus),etc','In cooler conditions, these include angling their body and wings so that the surface is perpendicular to the sun and absorbs more energy or even acts to concentrate sunlight thereby increasing body temperature.','pH level between 6.0 to 7.0, which is in the slightly acidic range,','Mid-May to early September','','Butterfly Reproduction Butterflies have a courtship routine whereby they first have to find a suitable, potential partner. The male has to first find out if a female has already been fertilised already pregnant in human terms.','','endosulfan, carbaryl, dichlorvos, HCH and parathion','','',20),(21,'Host plants The cotton bollworm is a highly polyphagous species. The most important crop hosts are tomato, cotton, pigeon pea, chickpea, rice, sorghum, and cowpea.','','The life cycle of African bollworm Moths lay a large number of eggs, and the life cycle may be completed in a short time under warm conditions. Eggs hatch in 3 to 5 days. Larval and pupal periods last 17 to 35 and 17 to 20 days, respectively.','N/A','they are oval in shape, whitish or yellowish in color, and average in','','The African bollworm is a pest of major importance in most areas where it occurs. It damages a wide variety of food, fibre, oilseed, fodder and horticultural crops.It is a major pest due to its high mobility, its ability to feed on many species of plants, its high fecundity and reproductive rate, and its capacity to develop resistance to pesticides. The habit of feeding inside the fruiting parts of the plant',' Pink bollworm causes failure of buds to open, boll shedding, lint damage and seed loss.','Studies of this pest and its natural enemies in cotton, sunflower, maize and sorghum in Kenya showed that survival of the African bollworm is low in maize and sorghum. Therefore, it is suggested that they could be used to divert African bollworm infestation. The selection of the variety is important.','','The body length varies between 12 and 20 millimetres (0.47 and 0.79 in) with a wingspan of 30 - 40 millimetres (1.2 - 1.6 in).','The predominant body color may range from pink or green to various shades of tan or dark brown','Bollworm, any larvae of various moths (order Lepidoptera), including the pink bollworm (Pectinophora gossypiella, family Gelechiidae) and some Helicoverpa species.','bollworm,cotton bollworm,etc','Frequent rains during August and September provide favourable conditions for pink bollworm infestation','','','The pink bollworm is native to Asia, but has become an invasive species in most of the world\'s cotton-growing regions. It reached the cotton belt in the southern United States by the 1920s. It is a major pest in the cotton fields of the southern California deserts.','The reproductive organs of cotton, corn, and legumes are the most suitable foods for cotton bollworm larvae . Every year, the larvae of this species cause substantial economical losses to cotton, corn, tomato, legumes, and other vegetable crops','Preventive Measures Use fast-maturing varieties of cotton, as bollworm infestations occur rather late in the season. Monitor cotton plants regularly for symptoms of the pest. Use pheromone traps to assess populations.','insecticide formulations, namely, Betsulfan and Endosulfan (each at 3.2, 3.5 and 3.9 l ha-1), and Thionex (at 2.3, 2.5 and 2.8 l ha-1), on the population density and damage incidence of the bollworm complex, and their effects on the yield of cotton. The incidence and abundance of bollworms were significantly (P < 0.05)','IPM strategies for boll worms I. Cultural practices 1. Deep ploughing during summer to expose soil inhabiting stages or resting stages 2. Burning cotton sticks with squares mainly to control pink boll worm 3. Cropping system Bhendi followed by Cotton is not good','',21),(22,'Cruciferous vegetables, such as cabbage, bok choy, and broccoli, are its main host plant; hence, the reference to cabbage in its common name. The larva is called a looper because it arches its back into a loop when it crawls','The cabbage looper has a wide host range that includes crucifers, beans, cotton and various vegetable crops. It is listed as feeding on over 160 species of plants in 36 families, but cultivated crucifers are preferred','Mating occurs 3 or 4 days after metamorphosis, during which 300-1400 eggs are oviposited. From egg to adulthood, the cabbage looper\'s life cycle is generally 24-33 days long.','Cabbage loopers are about 1- to 1-inches long. They start life with a dusky white color, and as they eat, they turn pale green. Cabbage loopers have a distinct white stripe down both sides and have a lighter green head; however, the color may vary. More distinctive characteristics for cabbage looper include the following: 2 pairs of abdominal prolegs, fatter on the tail end than the head, and they rear up like a cobra when disturbed.','Cabbage loopers (Trichoplusia ni) are a type of inchworm that feeds on plants in the cabbage family. The caterpillars grow to be large 1-1/2 inches (3.81 cm) long. They are a pale green color with a narrow white stripe running along each side. There are several narrow lines running down the back.','','Cabbage looper damage to root crops is generally of little economic importance. The copious quantity of greenish-brown frass (i.e., fecal material) produced by larvae can also be a problem as it contaminates heads and foliage. Life Cycle: Adult cabbage loopers overwinter in the south and migrate into Wisconsin from mid-July through September.','Symptoms and Effects: Cabbage looper larvae feed on cole crop leaves between the large veins and midribs. Feeding occurs primarily on the upper leaf surface near the midrib producing large, irregular holes. Severe feeding damage will stunt cabbage and cauliflower heads.','The cabbage looper has many natural enemies that can keep them under control including wasps, bees and flies.','','Size: Adult wing span 1 1/2 to 2, larva 1 to 1 1/2','The adult cabbage looper is a gray, mottled moth with a characteristic white or silver Y mark on each forewing. The larva is a smooth, greenish caterpillar with thin white lines on its back and sides.','','','The cabbage looper migration patterns are highly temperature dependent, as temperature can impact development. It has the greatest impact on pupation, where pupae often cease to finish metamorphosis if grown at 10 C (50 F).','sandy or loamy soil','The cabbage looper is somewhat erratic in occurrence, typically very abundant one year, and then scarce for two to three years','The adult cabbage looper is a migratory moth that can be found across North America and Eurasia, as far south as Florida and as far north as British Columbia. Its migratory behavior and wide range of host plants contribute to its broad distribution. The cabbage looper larva is a minor vegetable pest, especially for crucifers.','When ready to mate, cabbage loopers display by elevating their abdomen and fanning their wings. Males also fan out their abdominal hairs, open their genital claspers, and partially stick out their spermatophores. Males gradually expose more of their spermatophores as they wait for a mate. Upon interest, a potential mate examines the other\'s abdomen with antennae, and mating occurs if both agree. Mating on average occurs at 2am, but has been observed occurring between 12 and 4am. Mating generally occurs 3-4 day','N/A','Organic broad-spectrum pesticides are available to control cabbage loopers, but you need to bear in mind that these can also kill beneficial insects, including honeybees and other pollinators. Pyrethrin-based insecticides are made from plant extracts of some species in the Chrysanthemum genus.','','',22),(23,'Caddisflies are found worldwide, with the greater diversity being in warmer regions. They are associated with bodies of freshwater, the larvae being found in lakes,','','The caddis fly life cycle consists of four stages: egg, larval, pupa and adult. Caddis spend the majority of the life cycle (typically a year) in the larval stage during which caddis form a cocoon-like casing or silk netting to both protect and camouflage themselves from predators like hungry trout.','Caddis fly larvae are common denizens along the banks of rivers, streams, and lakes. Larvae of many species build protective cases over their bodies using bits of sand, branches and other debris. These cases are sometimes quite intricate and serve to camouflage the larvae of potential predators.','Caddisfly larvae are aquatic, with six pairs of tracheal gills on the underside of the abdomen.','','','Caddisflies that spin silk shelters also spin nets that filter out food particles from the flowing water. Immature caddisflies are aquatic and must obtain oxygen from the water. Mobile caddisfly larvae move water through their gills. Sedentary caddisfly larvae make undulating movements to move water across their gills.','','','caddisflies are commonly 3 to 15 millimetres (0.118 to 0.590 inch) in length. Their anterior wings usually range from 4 to 20 millimetres in length, providing wing spans of 8 to 40 millimetres.','Adult caddisflies are slender, mothlike insects that are usually drab in color, although some species are very brightly marked','The caddisflies were long classified in the order Neuroptera. However, the two groups are now thought to represent different evolutionary lines. Ancestral Mecoptera (scorpionflies) probably gave rise to the Neuroptera (lacewings), Trichoptera (caddisflies), and Lepidoptera (moths, butterflies).','example:Ancestral Mecoptera (scorpionflies) probably gave rise to the Neuroptera (lacewings), Trichoptera (caddisflies), and Lepidoptera (moths, butterflies).','Caddisfly larvae are most diverse in cool, flowing water, but have invaded a wide range of habitats.','','','Caddisflies are found worldwide, with the greater diversity being in warmer regions.','Behavior And Reproduction All caddisfly larvae spin silk to make nets to capture food floating in the water or build protective shelters. Shelters may be silken bags or made with small pebbles, sand, or plant materials attached together with silk to form a case. The materials used and the shape of the case vary with each species.','N/A','Caddisflies are aquatic insects that hang around lakes, ponds and other freshwater areas. Their attraction to light can lure them to a home structure which is where they can be a nuisance. To control Caddisfly infestation, apply Reclaim IT Insecticide as a barrier treatment around the perimeter of the structure.','','',23),(24,'Caterpillars feed on pretty specific things. For example, the cabbage white butterflies and cabbage moths feed specifically on brassicas','A plant that gives butterflies shelter required for laying eggs and serves as a food source to their caterpillars is called a host plant. Flowering plants such as Passion Vine and Milkweed, herbs like Fennel, and trees such as Sweet Bay Magnolia are all used as host plants. Common Butterflies and their Host Plants','The caterpillar (worm) stage can last from 14 to 21 days but during the summer it will be nearer to 14 days. The entire life cycle (egg to adult) lasts approximately 30 days so there may be 2 to 3 complete generations each year. Corn earworms feed on both the foliage and the fruit.','The adult moth is brownish with dark wavy lines on the wings and two white spots distally on fore wings.','Before hatching they darken as the larvae develop inside. Deeper ridges and a more hemispherical shape','Caterpillar\'s 5-Year EBITDA growth rate is 15.00%','Leaves will have gaping holes, edges missing or, the plant will be missing entire leaves including the stems. Fruits and vegetables will have holes bored into them or, they will have big sections eaten out of them. Small fruits might be missing entirely.','Damage symptoms: Caterpillars feed on under surface of leaves and bite holes in leaves and cause serious damage; Withered appearance of affected leaves. Skeletonized leaves. Egg parasitoids - Trichogramma spp. Larval parasitoids. Brachymeria spp. Eriborus spp. Brachymeria excarinata Cotesia plutellae. Cabbage head borer','Small mammals, such as rodents (mice, squirrels and chipmunks) and hedgehogs, are high on the list of the caterpillar\'s enemies. Caterpillars tend to hide in whatever surroundings most closely match their coloring, and in some cases, the brown of the dirt and logs is the ideal place for them to dwell and be found by a small foraging creature.','','Their size varies between species and instars (moults) from as small as 1 mm up to 14 cm.','Caterpillar is greenish brown with dark brown head and prothorax, and a reddish mesothorax. It has brown stripes on the body','','Darth Vader Caterpillar,Glass Jewel Caterpillar,American Dagger Caterpillar,Big Headed Caterpillar,The Wattle Cup Caterpillar,etc','Shade and high humidity conditions are favourable for their multiplication','','','','Carnivorous caterpillars have the same life style and reproduction as any other caterpillars. They will be a caterpillar until it builds a cocoon to become a moth or butterfly','N/A','Carbaryl is a highly toxic, general-use insecticide common for caterpillar and other insect control. According to Cornell University, carbaryl is a highly effective insecticide that works by direct contact or inhalation; however, it is dangerous to humans and animals if improperly applied.','','',24),(25,'Worldwide except in Arctic environments','','Centipedes do not undergo a process of metamorphosis, though their young may pass through several molts during growth. Centipedes mate in warm months and stay dormant through winter. A centipede may live up to six years. The centipede reproductive cycle involves distinct rituals.','There are two representative species. The usual pest species is the common house centipede Scutigera coleoptrata (Linnaeus). This centipede is about 1-1 1/2 (25-38 mm) long. Its body is grayish yellow with three longitudinal dark stripes. The house centipede has 15 pairs of long legs. The antennae and last pair of legs are longer than its body. The largest centipedes are in the genus Scolopendra and may grow to as much as 6 (15 cm) long. Their legs and antennae are shorter than those of the house centipede.','The usual pest species is the common house centipede Scutigera coleoptrata (Linnaeus). This centipede is about 1-1 1/2� (25-38 mm) long. Its body is grayish yellow with three longitudinal dark stripes. The house centipede has 15 pairs of long legs.','A fully established Centipede Grass lawn can be achieved with full coverage in around 3 months. Growth Rates Of Centipede Grass Growth rates for Centipede Grass are rather slow,','The garden centipede, if left unchecked, will damage roots and seedlings in your farm and garden. The soil centipede, along with aeration of the soil, will also eat all the earthworms in your neighborhood.','The symptoms are very noticeable as these grasses start greening up. Large patch is more likely to show up on lawns','Centipedes and millipedes that make their homes outdoors are prey to shrews, toads, badgers and birds, including domestic chickens. Ground beetles, ants and spiders may also hunt young millipedes and centipedes. Centipedes also sometimes resort to cannibalism, particularly when an injured specimen is involved.','','This pest is measured to be about 6.5 inches long on an average centipede and has a length ranging up to 8 or 9 inches long.','The head of the giant desert centipede and its first two body structures are various shades of red on them. While the other body segments are black with traces of light green, although color variations are common among them.','There are two representative species. The usual pest species is the common house centipede Scutigera coleoptrata (Linnaeus). This centipede is about 1-1 1/2 (25-38 mm) long. Its body is grayish yellow with three longitudinal dark stripes.','Lethbobius and Mecistocephalus are both nuisance pests, and pose no real danger to people. Scolopendra is the most dangerous species of centipede living in Hawaii. Their bites are painful, and their venom is strong enough to cause a reaction in people. A reaction to a bite can vary from swelling at the bite site to the swelling of the entire limb.','Soil. Sandy, slightly acidic soil is ideal. The grass does not grow well in a high pH so before you plant centipede grass, test the pH of your soil and acidify it if needed. While centipede grass is undemanding in terms of soil fertility, it needs a minimum of six inches of topsoil to support turf growth.','Soil. Sandy, slightly acidic soil is ideal.','','The giant centipede is commonly found in geographical areas such as Arizona, Northern Mexico, New Mexico, Texas, and in other regions. The life span of this pest is studied and recorded to be in the longevity of 1-6 years and an average period of seven years.','The centipede reproductive cycle involves distinct rituals. The female centipede first releases pheromones to attract a male, who, in some species, then weaves a silk pad deposited with sperm, known as a spermatophore.','Rotate crops to reduce the buildup of weeds, disease, and insect pests. Crop rotation is useful for those pests that do not move far from their overwintering sites. Remove overwintering sites, such as cull piles, damaged, and volunteer plants, and alternate hosts, to minimize damage by insects and diseases. Use techniques that expose pests to natural enemies or environmental stress, or that make the crop less susceptible to insects or diseases. Adjust planting times to avoid periods of peak pest abundance. Plant disease-free seed and transplants.','Professional exterminators use boric acid for a wide range of pests, including house centipedes. The product we recommend is Zap-a-roach 100 percent boric acid. Although it is advertised for roaches and ants, boric acid is boric acid and this product works great for house centipedes.','One of the major goals of IPM is to minimize reliance on pesticides. Use pesticides only when monitoring, economic thresholds, or disease forecasts indicate a need and with the appropriate timing, on target and at the lowest effective rate. Select pesticides that are registered by both the state and EPA and labeled for use on the intended crop or site. Also select according to efficacy, previous use patterns, the potential for and incidence of resistance, and the possible impact on the environment and natural enemies. Be certain to achieve uniform coverage with your equipment, applying recommended application rates with accurately calibrated equipment that targets the pest, or crop surfaces to be protected.','will damage roots and seedlings in your farm and garden. The soil centipede, along with aeration of the soil, will also eat all the earthworms in your neighborhood.',25),(26,'Bay Leaves, Citronella, Garlic, Cucumber, Catnip, and Chrysanthemums. Others include Mint, Hedge Apples, Pyrethrum Plant, and Osage Orange among others.','It prefers sugary, starchy, or protein-rich foods, but can also consume decaying organic matter','1Egg:The beginning of every pest\'s life begins with an egg. Anywhere from three to seven days after mating, the female cockroach produces egg cases called ootheca.2,Nymph:Under good conditions, the eggs will hatch and nymphs will emerge typically within 24-48 days. These nymphs start off white and very soft.3,Adult:After their final molt cockroaches reach their final life cycle form the adult.','Cockroaches are nocturnal in habit, hiding during the day in dark crevices. They will feed on almost any kind of stored foodstuffs, especially starchy or sugary ones, and will also sometimes attack other animal and plant products, such as leather, hair and paper','uter shell with an oval-shaped body','','A cockroach infestation on a farm facility can cause unsanitary conditions for workers and animals alike. Utilize an integrated pest management plan that includes inspection, physical modification and a fast-acting treatment when dealing with these pests.','Signs and Symptoms of a Cockroach Infestation: 1. Smell. Cockroaches have a strong scent. Most people cannot easily detect the smell, especially with small cockroaches. Bigger cockroaches leave a scent that is more easily detectable','Control by natural enemies Natural predators of cockroaches are various arthropods (including spiders), frogs, lizards, birds and mammals. Some wasps parasitise cockroach egg cases.','','three to five centimetres long','They\'re shiny red-brown in colour and are 35-40mm long.','There are over 2000 species of cockroaches','The most common cockroach pest species that can be found in Louisiana include German, American, Brown-banded, smokybrown, Asian, Surinam and Oriental cockroaches. The state is also home to recently introduced species, including Cuban, large brown, Australian and Florida woods cockroaches.','COCKROACH CONTROL Fleas prefer warm, humid conditions and hence are often a pest during summer. Fleas can slow and almost halt their growth and development at various stages in order to make the most of more favourable conditions when they occur.','cockroaches are found among the vegetation, leaf litter and soil of undisturbed habitats.','Occurrence: Prefer warm and humid environment.','','Reproduction Egg Stage. Female cockroaches can lay from 10 to 55 eggs at a time. The majority of cockroaches are oviparous, meaning the eggs develop outside of the mother instead of inside. To protect their young, cockroaches create nests and lay eggs in warm, moist and tight spaces conducive to a safe and viable environment.','N/A','Syngenta Demon WP Pest Control Insecticide Demon WP is a crack and crevice and or spot treatment for residual and contact control of ants, carpenter ants, cockroaches, crickets, spiders, German cockroaches, scorpions, occasional invaders such as firebrats, silverfish, centipedes, millipedes and certain other insects.','an IPM, or integrated pest management approach can be used effectively for German cockroach control. IPM utilizes inspection, directed (rather than broad) insecticide treatments, and sanitation to reduce the use of chemical sprays which may pose a danger to children and pets. Use both baits and traps as directed on the product label.','',26),(27,'chufa, peanut, strawberries, sugar cane, tobacco, and such flowers as coleus, chrysanthemum, and gypsophila. Among the turf grasses, bahia grass and Bermuda grass are commonly injured','','Upon fertilization female crickets lay eggs, and the whole cricket life cycle begins again. The lifespan of an adult cricket is around 6 weeks, while the life cycle usually takes 2 - 3 months to complete, depending upon outside conditions. The favorable temperature for crickets to thrive in is between 80 F - 90 F.','Crickets are Orthopteran insects which are related to bush crickets, and, more distantly, to grasshoppers.In older literature, such as Imms, crickets were placed at the family level (i.e. Gryllidae), but contemporary authorities including Otte now place them in the superfamily Grylloidea.','mostly cylindrical, somewhat vertically flattened bodies. The head is spherical with long slender antennae arising from cone','','These insects are some of the most common pests to see around farms, especially near the trees. Other than being known to make sounds, crickets are also known to cause significant amounts of damage to various crops. Since leaves are a major part of their diet, they might consume a high amount, which can cause the plant\'s death.','Damaged patches of lawn, such as uneven grass length or large brown, dead patches, can also signal an infestation','lady beetles, lacewings, bigeyed bugs, pirate bugs, flower flies, predatory gall wasps, ants, parasitic wasps, parasitic flies, and predatory mites.','','They are about 3/4 - 7/8 inch in length','They tend to be dull shades of brown, grey, and green that blend into their background, and desert species tend to be pale.','approximately 2,400 species','examples:Cricket Identification,House Crickets,Field Crickets,Mole Crickets,etc','N/A','Field crickets overwinter as eggs or nymphs in moist, firm soil','','Adult mole crickets lay eggs in the soil, and the immature mole crickets will live in the soil until they are full grown, where they feed and tunnel. Mole cricket damage includes tunnelling, which causes grass to dry out and feeding on the roots, which causes grass to die','Cricket reproduction takes place in the spring and summer. The female can lay 700 to 1,000 eggs. She deposits the eggs in the ground until they hatch. A temperature of about 30 C is required for the eggs to hatch. For this reason, crickets are usually born outside and then infiltrate homes.','Effective control measures for the corn cricket Manual removal Because of their large size, corn crickets can be removed from the plant by hand. When disturbed, many fall to the ground in defence. Wear gloves, as they bite','Dr. Pyes Scanmask 10 Million Live Beneficial Nematodes,Bayer Advanced 700288 Complete Insect Killer for Soil and Turf Granules, 10-Pound,Southern Ag Carbaryl 5% Dust Sevin, 16oz 1 Pound,Delta Dust Multi Use Pest Control Insecticide Dust, 1 LB,etc','','',27),(28,'Worldwide except in Arctic environments','','The Life Cycle of Damselflies The life cycle of a damselfly can take anywhere from a few months to three years. Image courtesy of Encyclopedia Britannica. Damselflies can spend anywhere from two months to three years as nymphs, depending on environmental conditions.','The general body plan of a damselfly is similar to that of a dragonfly. The compound eyes are large but are more widely separated and relatively smaller than those of a dragonfly. Above the eyes is the frons or forehead, below this the clypeus, and on the upper lip the labrum, an extensible organ used in the capture of prey.','They are similar to dragonflies, which constitute the other odonatan suborder, Anisoptera, but are smaller, have slimmer bodies, and most species fold the wings along the body when at rest, unlike dragonflies which hold the wings flat and away from the body.','temperature dependence of damselfly growth rates varies consistently across latitudes','Nature of damage: A major pest of cereal crops in the spring. Heavy infestations can cause a reduction of the number of grains per ear and thus a noticeable reduction of the yield.','Damage symptoms The primary symptom is defoliation of the plant. Larvae feed on leaves, chewing from the edges to the midrib, or on the heads of cereal plants. Heavy infestations can be very destructive; larvae may climb the plant and sever the neck just below the head.','Spiders, birds, and adult dragonflies/damselflies were the dominant predators of caseworm adults, while aquatic beetle larvae, aquatic bug nymphs and adults, and ants preyed on caseworm larvae. Egg parasitoids are unknown in nature and larval/pupal parasitoids are rare. A nuclear polyhedrosis virus, the only recorded pathogen, occurs but rarely.','','19 cm (7.5 in) in Megaloprepus and body length up to 13 cm (5.1 in)','Blue-ringed Dancer, Northern Bluet, Vesper Bluet, Orange Bluet','','example:Dainty Damselfly,Norfolk Damselfly,Orange-spotted Emerald','july/August following light rainfalls.','','found the occurrence of dragonflies to depend more on landscape composition than damselfly occurrence.','Damselfly nymphs are found exclusively in slow-moving water, such as streams, ponds, and lakes, while adults (pictured) are found at or near these areas. As adults, damselflies can be found flying about in riparian forests, forests with regularly damp soils, occasionally plains, and near ponds, streams, rivers, lakes, and really any water body.','Reproduction. The survival of a species depends on its reproductive success. There are two types of reproduction: sexual and asexual. Sexual reproductions is having sexual intercourse with a partner. In this type of reproduction the parents give away half of their chromosomes and with the help of meiosis (cell division that results in 4 haploid','N/A','N/A','','',28),(29,'cabbage, kale, Brussel sprouts, turnips; w ill attack tomatoes, eggplant, peppers, okra Assessment','Bananas are the main host, although the Banana rust thrip has been found in citrus and in some native plants.','Life Cycle of the Dragonfly There are two especially interesting facts about the dragonfly lifecycle; the first is that they undergo incomplete metamorphosis, with several nymph stages but no pupae stage; the second is that the nymph stage of their life is actually spent in an underwater habitat.','','large, multifaceted eyes, two pairs of strong, transparent wings, sometimes with coloured patches, and an elongated body','Lifecycles of dragonflies can last up to 1 to 6 years, and usually will go through 11 to 12 larval instars. Increases in temperatures can cause the development rate of larvae to increase','Direct damage: Thrips damage the undersides of leaves by sucking their juices. They damage young and soft parts of plants such as new leaves and shoots. As a result, leaves curl downwards and change to a blackish- silver color. Severe infestation causes young leaves to wilt and dry out.','Symptoms Seeds will rot and are covered with mold; the tips of the roots will get discolored root and turn pink, yellow, red or black; the seedlings will get swollen and they wilt and die Moist and wet soils will survive this fungal disease.','Dragonflies are natural enemies of mosquitoes in all their stages of growth. Dragonfly larvae live in the water like mosquito larvae and feed on them, while adult dragonflies eat adult mosquitoes. The problem is that dragonflies also eat other things.','','Dragonfly Size North American dragonflies vary greatly in size, from about 1 inch to almost 6 inches long.','Many species change color as they mature, or may vary as the temperature changes. Females may be differently colored from males. All dragonflies emerge with barely any color, although hints of the adult pattern may be visible.','14 Different Types of Dragonflies','example:Aeshnoidea,Cordulegastroidea,Libelluiloide,etc','Favourable conditions: They survive in temperatures ranging from -26 to 15 C. The flight activity is greatest late afternoon or early evening and the beetles usually fly at or below 15 ft.','The soil will have a distinctive light to reddish sandy color, rather than the dark-brown to black of more organically rich soils.','','most widespread dragonfly species in the world; it is cosmopolitan, occurring on all continents in the warmer regions.','In dragonflies, reproduction has a large process. Dragonflies use sexual reproduction to produce offspring. The male normally grabs the female\'s head with his cerci, an addition at the end of the abdomen. Mating will normally take place on vegetation.','N/A','Among others, Cyfluthrin is one of the most common active ingredients in chemical treatments for dragonflies. It is a systemic insecticide that can cause both stomach and contact poisoning. One popular brand of insecticide that makes use of this ingredient is Solfac EW50, which contains 5% cyfluthrin emulsion.','','',29),(30,'Host Plants: In the garden: A wide range of flowering plants such as dahlia, chrysanthemum and clematis. On Crops: Occasionally will cause damage to soft and stone fruits such as strawberry, raspberry, nectarine and apricot.','','The life cycle of an earwig takes place over several molts. Life begins in the egg phase. Eggs that have hatched begin nesting until they have undergone their first molt. After this first shedding of skin, some of the braver youth, also called nymphs, may rise to go on night hunts, returning to the nest during the day.','','Most earwigs are flattened (which allows them to fit inside tight crevices, such as under bark) with an elongated body generally 7-50 millimetres (0.28-1.97 in) long','','Broadacre crops European earwigs have been known to damage cereal, legume and oilseed crops. Intensive cropping and stubble retention practices suit this species. Crop residues on the soil surface increase their survival and breeding, allowing large populations to build up during autumn and early winter and damage crops sown into the stubble.','Symptoms of Earwig damage Holes in seedling leaves or in worse cases, tops of seedlings completely removed. Shredded or jagged edges of leaves and flowers. Irregular holes in leaves and flowers. Small jagged chewed holes in fruit. Earwigs are most attracted to soft new foliage growth and soft skinned fruits.','Earwig Natural Predators Include: Toads, Frogs, small reptiles (lizards), birds, and spiders.','','approximately 50 mm (2.0 in) long, while the possibly extinct Saint Helena earwig (Labidura herculeana) reached 78 mm (3.1 in).','Earwig is reddish brown in colour','2,000 species in 12 families,','example:European Earwigs,Red-Legged Earwigs,Striped Earwigs,Maritime Earwigs,etc','moderate to warm climates','','','','Reproduction Earwigs build specially constructed nests where the female lays her eggs and waits until her offspring are hatched, usually in the spring.','N/A','Termidor SC Termiticide,Cy-Kick CS Pest Control Insecticide,Niban Granular Pest Control Insecticide,Masterline Bifenthrin Multi-Use Pest Control Insecticide','Our use of Integrated Pest Management (IPM) techniques focuses on finding the core of the pest concern and controlling earwigs from the source. Through IPM, pest control materials are selected and applied in a manner that minimizes risks to human health, pets, and the environment.','',30),(31,'Plants Affected The host plants will depend on the species of the flea beetle. The cabbage flea beetle, for instance, affects plants that belong to the cabbage family. On the other hand, pale-striped flea beetle is a pest for weeds, sunflower, potato, lettuce, corn, beans, and squash, among others.Plants Affected The host plants will depend on the species of the flea beetle. The cabbage flea beetle, for instance, affects plants that belong to the cabbage family. On the other hand, pale-striped flea beetle is a pest for weeds, sunflower, potato, lettuce, corn, beans, and squash, among others.','weeds, sunflower, potato, lettuce, corn, beans, and squash,','Flea Beetle Life Cycle Flea beetles emerge from overwintering in mid to late spring, laying eggs as quickly as a week from when they start feeding on your plants. These eggs take roughly a week to hatch, at which point the larvae burrow into the ground beneath your plants to feed on their roots for two to three weeks.','The economic importance of alligatorweed, Alternanthera phylloxeroides (Mart.) Griseb.an aquatic pest in the southeastern United States, and the current taxonomy of the flea beetle, an unnamed species of Agasicles, are discussed.','The adult is a small, oval-shaped, dark beetle with an iridescent blue sheen on the black elytra (wing covers), measuring about 1/32 to 1/8 inch (2 to 3 millimeters [mm]) in length. Flea beetles have enlarged femora (thighs) on their hind legs, which they use to jump quickly when disturbed.','','Flea beetles are common pests found on many vegetable crops including radishes, broccoli, cabbage, turnips, eggplant, peppers, tomatoes, potatoes, spinach and melons. Flea beetles chew irregular holes in the leaves. Severe flea beetle damage can result in wilted or stunted plants.','One of the most common is the appearance of winding and shallow grooves on the surface of the fruit of the host plant.They also cause cosmetic damage that is known as shotholing, which is a result of the adults chewing the leaves. Flea beetles can also lead to crop stress. In turn, this will limit the nutrients that the plant is able to absorb.','A number of natural predators can be employed to keep flea beetles in check, including two that parasitize it: Braconid wasps and tachinid flies.','','Ranges from 1/16 to 1/8 inch','black, bronze, tan, brown, blue, or metallic gray','351 species of flea beetles','Other common flea beetle species of this genus found in the southeastern U.S.A. of economic importance are Altica torquata LeConte,','In April and May the adults emerge from their overwintering sites and in favourable conditions fly distances of up to 1 kilometre in search of suitable plants to start feeding. Eggs are laid alongside host plants and after 2-3 weeks the larvae emerge and feed on the leaves and roots.','','','','The eggs of flea beetles are tiny and white and they reproduce multiple times during a season, depending on the weather in the area. In warmer climates, flea beetles can go through at least four generations per year. Damage can also be seen underground since the larvae target plant undergrowth.','N/A','Organic insecticidal sprays, powders, or drenches may be purchased to help combat flea beetles in your garden such as:insecticidal soaps,pyrethrins,sabadilla,diatomaceous earth','','',31),(32,' tomato, guava, mango, almond',' (Ceratitis catoirii, C. capitata, C. rosa, and Bactrocera zonata) ','pass through four distinct stages: egg, larva, pupa and adult. The life expectancy of a housefly is generally 15 to 30 days ','N/A','large eyes, small antennae, sucking mouthparts, single pair of flying wings,','1.25-2.82 per day, and approximately 1300-1500 flies were produced per square meter within the available period of one month.','Adult flies can spread many different pathogens from contaminated breeding sites to healthy animals and people over large distances. Musca domestica is a confirmed vector for over 100 different pathogens, including viruses (such as the Newcastle Disease virus), bacteria (such as Salmonella and E.','N/A','frog , spiders ','','','light grey, green,yellow and medium grey (equal), dusky hIue, and red.','There are approximately 120,000 species of flies that have been described by science','','Fly densities are highest at mean temperatures of 20-25 C','','Flies prefer warm temperatures and are most active from late spring to early autumn.','','The female house fly can lay anywhere from 75 to 150 eggs in a batch','The best cultural method is to properly dispose of any organic matter, such as vegetable or other food by-products, where houseflies might lay eggs','Permethrin','Cultural methods. Suppress pest problems by minimizing the conditions they need to live (water, shelter, food). ','flies can taste food using their feet',32),(33,'brinjal, Solanum melongena','Leucinodes orbonalis, the eggplant fruit and shoot borer ','28.17 days with a range of 24-46 days','N/A','2.03mm and 0.26 mm in breadth.','Female moth lays about 250 eggs singly on tender shoots and developing','drooping of leaves and shedding of flower buds. Severe damage is mainly caused to the developing fruits ','Withering and drying of leaves','Predatory ants are the main natural enemies of the shoot and fruit borer','','','white in colour with a pink and bluish tinge, and a few brown spots on its wings','','','maximum relative humidity.','','fruit borer was observed in 18th standard week (43.3 %) and 17th standard week (40.1%)','It is found in the tropics of Asia,','Eggs are laid during the night on the lower surface of the young leaves, green stems, flower buds, or calyces of the fruits','Remove the affected terminal shoot showing boreholes. Remove the affected fruits and destroy.','spinosad','The best way to manage infestations is through good crop sanitation, use of pheromones to trap male moths and judicial use of insecticides to protect natural predators.','Larvae emerge from eggs and travel a short distance to bore into new shoots or fruits',33),(34,' tomato, guava, mango, and Indian almond.','Several species of fruit flies belonging to the genera Anasgtrepha, Toxotrypana',' four stages to the life cycle eggs, larvae (maggots), pupae and adults.','N/A',' rounded head with large, red, compound eyes; three smaller simple eyes, and short antennae','The average natural life span in optimal temperatures is 40 to 50 days,multiply quickly. ',' attacks a range of cultivated fruits and some fruiting vegetables. Stinging is caused by the female laying eggs into unripened or ripe fruit.','Maggots feed on the pulp of the fruits, larvae-infested or \'stung\' fruit','Chickens and other fowl larval and pupal fruit fly predators include predaceous wasps, mites and crickets','','',' Dull tan to brownish yellow or brownish black; eyes usually bright red. ','','Mexican fruit fly,Caribbean fruit fly,Queensland fruit fly ','heavily influenced by temperature.',' alluvial deposits, soil from decaying of limestone, soil from decaying of flysch','','large parts of tropical Asia','Female fruit flies are capable of laying hundreds of eggs ,Within 24 to 30 hours, fruit fly eggs hatch into larvae known as maggots.','N/A','Insecticide fogs such as CB80 or PT 565 Pyrethrum Aerosol','','',34),(35,'grasses, Calotropis,cotton, tapioca, brinjal, curry leaf, maize, rice, radish, castor and okra','','egg- nymph- adult, live several months as adults ','N/A','The front pair, or tegmina, are leathery and narrow with the sides nearly parallel. The hind wings are membranous and fan-shaped',' 5 weeks to reach adulthood ','When large numbers of certain grasshopper species infest farms or garden areas, they can cause extensive plant damage and loss. In fact, in peak years, grasshopper infestations have been known to destroy or consume entire crop fields. In some areas, up to 25 percent of crops are routinely lost to grasshoppers','Oozing of resinous fluid from fruits.','Natural predators of grasshoppers include birds, lizards, mantids, spiders, and rodents.','','','They range in colour from green to olive or brown and may have yellow or red markings','Different species of grasshopper can be found in various regions ..15 types of grasshopper','','hot weather','Grasshoppers were confined mainly to the areas with light chestnut soil or chestnut soil, and very few were found in areas with subalpine meadow soil. Grasshoppers were almost absent from other types of soil, such as aeolian soil.','After ten months, during summer or spring when it\'s warm, the eggs hatch and come out as nymph','greatest numbers in lowland tropical forests, semiarid regions, and grasslands. ','s summer changes to autumn, male and female grasshoppers mate. Males fertilize the females, who will lay the eggs that will become next summer\'s grasshopper population. Finding a suitable location in soft earth, the female drives its elongated abdomen into the ground to deposit a cluster of eggs.','N/A','Carbaryl and other insecticides such as cyfluthrin or other pyrethroids','','grasshoppers have such powerful jumping legs, pretty strong fliers and make good use of their wings to escape predators.',35),(36,'pulses, cereals, vegetables, oilseeds, mulberry, turmeric, fibre crops such as jute, roselle, ramie and sunn hemp and weeds.','ecoma stans, Mikania scandens, Sida cordifolia, Synedrella nodiflora, Ficus pumila, Cosmos sp., Amaranthus spinosus and Cephalandra,','Egg, larval and pupal period varied from 5 to 6, 20 to 21 and 8 to 9 days, total life ranged from 37 to 42 days and 39 to 44 days.','N/A','','Incubation period ranges from 2-3 days',' scrap the under surface of the leaf ,Full grown larvae devour the entire foliage, flowers and growing points.','Distorted and malformed fruits.','','','','reddish brown with a black band on long reddish brown hair all over the body','','','N/A','','','','N/A','N/A','N/A','','',36),(37,'Grass cool and dry place','',' lay eggs only one time near the end of summer. , they might survive two or three months ','N/A','The leaves of the broad-winged katydid are veined and look like citrus leaves','lifespan of twelve to fifteen months','dangerous to humans or other pets. They may damage Normally katydids are of little concern, however, high populations can cause damage to trees','Premature dropping of fruits and also unfit for consumption.','','','','N/A','6,400 species Insects in the family Tettigoniidae are commonly called katydids','','humidity ','','The green leaf katydid mimics the movement and occurance','Amazon basin rain forest is home to over 2000 species of katydids.','The long courtship period may function as as a mate-assessment period for males.','Try solutions of garlic oil, neem oil or Tabasco mixed with water and spray the plants. While the garlic and Tabasco will repel the katydids, neem oil acts not only as a repellent, but also as an anti-feed and growth regulator, and even sterilizes some species.','N/A','Light traps.Insect-repelling plants. Remove compost and tall grass.','They are generally long-legged',37),(38,'coreopsis, cosmos, yarrow, ','create more pest-chomping larvae by planting coreopsis, cosmos, yarrow, goldenrod, Queen Anne\'s lace and marguerite daisies',' 4 to 6 weeks; females lay eggs; Eggs hatch within 3 to 4 days; Larva develops over 2 to 3 weeks, then puates spinning a cocoon; Adult emerges from the cocoon five days later.','about 3/4 inch long, lacy wings, long, filiform antennae, bright green to pale green to greenish-brown smooth body','flattened and rectangular and 1/8 to 1/4 inch long,head and the wing covers form a broadened, lace-like covering over the body.','three to four generations or more of lacewings in a growing season depending upon the length of the warm temperature season.','feed on the underside of leaves','presence of brown to black droplets of excrement and old skins of the nymphs on the underside of damaged leaves, adjoining chlorotic leaf cells.','aphids, young corn earworms, mites, young scale insects, whiteflies, leafhoppers, thrips, most caterpillars, and other small pests','','','light green','about 85 genera and 1,300-2,000 species in this widespread group','','air temperature ranges between 65 F and upper 80s, can survive mild winters','','','Various species throughout North America and Europe.','N/A','Check your plants or fields regularly for any sign of the pest, Handpick and destroy the first infested outer whorl of leaves in the field to curb the progression of the infestation.','N/A','','',38),(39,'leafs','Leaf-cutter ants cut pieces of leaf, but they don\'t actually eat leaves. Instead, they take them back to their nest and use them to grow fungus which they use as their food','four stages are: egg, larval, pupal and adult.average life span of about 3-5 weeks.','large, spiny body and long legs.',' 5 inch long. queen may be over 1 inch long.','',' general, leaf cutter ants do not pose any danger to humans','Leafcutter ants can be a serious agricultural threat, as they can easily remove foliage','Armadillos (Mammalia: Cingulata) are predators that might have an important impact on these ants ','','','orange to brown to red to blackr','17 known species. three main castes within a nest are the queen, worker, and soldier.','','atmospheric pressure, which in most cases is a sign that heavy rain and strong winds are imminent, they greatly accelerate the speed concluded that the ants are able to collect and store the largest possible amount of food for the nest.','','','Central and South America in large colonies','N/A','N/A','N/A','','',39),(40,'tomato','mustard plants.',' four life stages: egg, larva, pupa, and the adult moth. Adults do not damage plants and live only 1 to 2 weeks.','N/A','','should consider the risks in growing buckwheat. The crop\'s rapid germination and growth and broad-shaped leaves,seed than Mancan and Manor, having 35.7 g/1000 seed.','',' large blotches or tunnels that wander under the surface of the leaf','Hornet, Some wasp are specialised to feed on leaf miners.','','','N/A','','','N/A','','','','N/A','N/A','N/A','','',40),(41,'Ornamentals, vines, fruit trees, Apples , Cherry and pears and many other plant','most woody landscape plants and fruit trees like pears, apples, peaches and even coconuts.','The fruittree leafroller overwinters as eggs laid on branches or twigs. Eggs hatch into tiny larvae from March to as late as mid-May in cooler areas. Larvae feed on leaves for about 30 days then pupate in a loose cocoon, which they form in a rolled leaf or similar shelter. Eight to 11 days later the adult emerges from the pupa. The moths live only about a week, during which time they mate and lay eggs. They fly from May to June, depending on locality, and in any one area the flight usually lasts about three weeks. These moths lay eggs on twigs and branches, and the eggs will remain there until they hatch the next spring.','Leafrollers are small caterpillars, reaching about an inch (2.5 cm.) in length, often with dark heads and bodies','Initial symptoms appear as leaves rolled in the','Some years very large populations develop. In severe cases larvae can partially or completely defoliate trees, and their numerous silken threads can cover the entire tree and the ground below. Also, larvae frequently drop to the ground on their silken threads and can defoliate other plants beneath the trees','The larvae of all leafroller species also attack fruit on trees, and young fruit might fall because of deep feeding grooves larvae make just after the fruit has formed. Less severely damaged fruit remain on the tree and develop characteristically deep, bronze-colored scars with roughened, netlike surfaces that are mostly cosmetic, although the fruit can become deformed , Leafroller larvae feed on tender, new leaves, giving them a ragged appearance; they also roll and tie leaves together with silken threads to form compact hiding places. ','longitudinal and transparent whitish streaks on damaged leaves, tubular folded leaves, leaf tips sometimes fastened to the basal part of leaf. heavily infested fields appear scorched with many folded leaves. ','Assassin bugs, green lacewing larvae, ground beetles, and spiders ','','The adult pandemis leafroller is a buff or tan colored moth, 1/2 to 3/4 inches (13 mm to 18 mm) long, The obliquebanded leafroller moth is larger and darker than the pandemis leafroller. It is 3/4 to 1 inch (18 mm to 25 mm) long, The fruittree leafroller appears fawn or rusty brown with a prominent light triangular spot on the outside edge of the wing. It is 1/2 to 3/4 inch (13 to 20 mm) long, The European leafroller about the same size as the fruittree leafroller.','Larva is pale greenish yellow with conspicuous setae. Head and thoracic shield are reddish brown in colour, while California oakworm has yellow, black, and gray stripes on its side and a large, brown head','','Fruittree leafroller, Omnivorous leafroller, Obliquebanded leafroller, Light brown apple moth, Orange tortrix, Apple pandemis','omnivorous leafroller often overwinters in or on old, unharvested fruit, whereas obliquebanded leafroller often is found as second- or third-stage larvae under bud scales. They pupate in spring, emerge as adults, and sometimes lay their first eggs on weeds. The second generation of these leafrollers, which occurs in June or July, is more likely to occur on trees, causing damage later in the season than the fruittree leafrolle','','March to as late as mid-May in cooler areas, The second egg hatch period begins at 2,750 degree-days, usually in late August or early September.','Warm inland valleys and coast, Warm inland valleys, Cool coastal areas','N/A','cut the few damaged leaves from your plant and toss the caterpillars into a bucket of soapy water. Carefully pick through infested plants and those nearby to ensure you\'ve gotten all the caterpillars, and check back weekly.','Bacillus thuringiensis works as a stomach poison to feeding caterpillars, and is extremely effective if applied to these pests and their food source while they\'re young. It can be difficult to get sprays inside the rolled up nests, but if you can\'t simply cut the caterpillars out','','',41),(42,'mango leaves','','eggs, larvae, pupae adult','N/A','shapely thimble like rolls','','cutting and twisting the mango leaves','N/A','','','','reddish brown','','','N/A','','','North India','Eggs are laid in each leaf roll. The grub pupates within the leaf roll.','N/A','N/A','','',42),(43,'mangoes','',' total life cycle takes 40 to 50 days,only one generation is produced each year.','N/A','','female can lay up to 15 eggs per day and up to 300 eggs during the season.',' minor pest ,no significant economic damage to fruit. ','abnormal shape, malformed skin,premature drop,obvious exit hole ','','','','dark brown to black with grey markings','','','N/A','','','North, Central and South America and the Caribbean, Africa, Asia and parts of Australia ','Females start egg laying 3 to 4 days after mating','N/A','N/A','','',43),(44,'Mango,mango leaves, tender shoots or flower buds.','','Eggs hatch in two to three days and nymphs develop between 12 to 20 daysThe adult lifespan was longest (upto 3-4 days) on mango leaves and in florescence..','N/A','wedge like shape with broad round head l, globular eyes, 4-5 mm long ','adult population increased when the mango trees were in flowering, being maximum during June.','make holes and suck the nutrients from soft tissues of panicles, leaves, flowers, fruits and fresh twigs.release sweet liquid onto the leaves, on which a black coloured fungus develops, which reduces the strength of the plant.,damage caused by hoppers is known as honey dew disease','Affected plant tissue turns brown, and may deform and dry up. Young flowers fail to develop,','','','','Golden or dark brown, nymph are yellow- brown','','','Perfers shade environments , closely planted orchards are favourable minimum temperature ranged between20-25 C','','Mango hoppers two population peaks are found in a year,first peak from March to May, ','','between 100 and 200 eggs may be laid in florets, leaf lamina etc ','keep distance b/w trees when planting, regualarly monitor, choose varieties less susceptiple to hoppers etc...','Dimethoate can be sprayed, 2 times/7days before flowering, polynema reduces hoppers, mallada bonensis etc','use cypermethrin sprays-0.4% together with biological control','',44),(45,'angelica, cosmos, yarrow, marigold, and raspberry canes.','ground cover and fragrant, colorful plants','three life stages: egg, nymph, and adult,The lifespan; smaller ones may live 4-8 weeks, while larger species may live 4-6 months.','triangular heads with bulging eyes supported on flexible necks','Elongated bodies may or may not have wings,.','For smaller species, eggs may hatch in 3-4 weeks, 4-6 weeks for larger species.','These bugs see your plants only as dining venues and will not damage them. They strike passing insects ','N/A','mantises used for controlling insect pests as they eat whatever they can catch, including both harmful and beneficial insects.','','','Most mantis species are colored green or brown','2,400 species in about 430 genera in 30 families.','','N/A','','','generally in warmer regions, particularly tropical and subtropical latitudes,tropical rainforest,deserts, grasslands and meadowlands.','mating season in autumn,can occur at any time of the year.','Two species, the Chinese mantis and the European mantis, were deliberately introduced to North America in the hope that they would serve as pest controls for agriculture; they have spread widely in both the United States and Canada.','N/A','','All Mantodea have forelegs that are greatly enlarged and adapted for catching and gripping prey; Mantises are among the insects most widely kept as pets.;',45),(46,'sugarbeets, small grains, and alfalfa.','Beet, Grains','typically taking 60 to 90 days.','males average 3,400 mg live weight and females 4,100 mg (dry weight: males 960 mg, females 1,330 mg).','','From less than one per square yard in mountain habitats, densities may grow gradually as 100 per square yard.',' chewing many kinds of plants.,can easily chew into fruit.,feed on the directly on the fruit. damage forage plants on rangeland and cultivated crops','Look in the summer for feeding damage around or on the borders of the orchard. Record locations of adjacent rangeland areas where egg laying occurs so that hatching beds can be monitored in the following spring.','Mormon crickets have many natural enemies that play an important part in keeping them in check. Eggs are destroyed by some species of parasitic wasps and flies, and the larvae of many predatory insects.','','','The overall color may be black, brown, red, purple or green.','Of the more than 100 species of shieldbacked katydids in western North America','','At night, they migrate chiefly during the day when skies are clear and temperatures favorable (65 to 95 F air).','','','It lives throughout western North America in rangelands dominated by sagebrush and forbs.','N/A','As Mormon crickets are flightless, physical barriers may be effective. Barriers should be at least two feet high and made of a smooth material. Residents of some small towns have used boom boxes and sound systems playing hard rock music in attempts to divert the moving swarms away from crops and houses.','The most common chemical control method used is carbaryl (typically sold as Sevin Dust) bait. This bait kills both the Mormon crickets that eat the bait, and the crickets that eat crickets that have eaten the bait.','','Mormon crickets appear in some traditional Native American diets.Calculations based on this figure indicate that at a density of one per square yard the Mormon cricket consumes an amount of rangeland forage equal to 38 pounds dry weight per acre.',47),(47,'weeds, ornamentals, windbreaks, fruit trees and native plants of the Caatinga biome.','','Mealybugs lay up to 600 small, yellow eggs in a protective cottony mass. ... After laying eggs over a period of five to 10 days, the female dies. Young female mealybugs go through three instars (stages) and are mobile their entire lives. Immature males (nymphs) settle and spin a white, waxy cocoon',' three stages and are mobile their entire lives. settle and spin a white, waxy cocoon.','1/8th inch long, with pinkish or yellowish bodies.','One generation develops every one to three months depending on temperature','Mealybugs suck sap from plant phloem, reducing plant vigor, and they excrete sticky honeydew and wax, which reduces plant and fruit quality, especially when black sooty mold grows on the honeydew.Many types of perennial plants are affected by mealybugs. Among fruit trees, citrus has the most problems, but mealybugs may sometimes be found on stone fruits or pome fruits, although rarely at damaging levels','stunting, chlorosis, defoliation, and wilting.','ladybugs, lacewing','','','Body color pink','There are approximately 275 species of mealybugs known to occur throughout the United States.','','Mealybugs prefer mild warm conditions with temperatures around 25 C and high humidity','','','','female lays between 10 and 400 eggs, depending on the species.','N/A','Insecticidal soaps, horticultural oil, or neem oil insecticides applied directly on mealybugs can provide some suppression, especially against younger nymphs, Be sure to test for phytotoxicity.','A 70% or less solution of isopropyl (rubbing) alcohol in water may be dabbed directly on mealybugs with a cotton swab to kill them or remove them. Test the solution out on a small part of the plant 1 to 2 days beforehand to make sure it does not cause leaf burn (phytotoxicity). In some cases, a much more diluted solution may be advisable. Where infestations are extensive, a 10-25% solution of isopropyl alcohol can be applied with a spray bottle. repeat this procedure every week until the infestation is gone.','Mealybugs lay up to 600 small, yellow eggs in a protective cottony mass. ... After laying eggs over a period of five to 10 days, the female dies',46),(48,'N/A','','egg, larva, pupa, and adult','N/A','','',' severe damage to forests in the northeastern United States, extensive damage, especially to fruit farms','N/A',' game birds, hawks, sea gulls, wasps, ground beetles and robber flies. hairworms, tachinids, and flesh flies, lizards, amphibians, cats, dogs, rodents, and some bears. ','','','With a striking red and white body and an alluring red, white and dark brown wing pattern, the cecropia silkmoth has a frosted look about it due to the hair-like scales on its wings.','Monarch, Milkweed Tussock Moth, Dogbane Tiger Moth, Queen,','','Cold climates with temperate seasonality, as the larvae overwinter','','','','may flap his wings, move his antennae and release pheromones from tufts of hair on his thorax, legs, abdomen or wings','N/A','N/A','','',48),(49,'N/A','','Breeding begins within 10 to 14 days of reaching the adult stage.','Most millipedes have very elongated cylindrical or flattened bodies with more than 20 segments, while pill millipedes are shorter and can roll into a ball.','Millipedes are rigid, subcylindrically shaped arthropods.','millipedes will reach their full size in two to five years.','Most millipedes are slow-moving detritivores, eating decaying leaves and other dead plant matter.','Staining,itching','Ground beetles, ants and spiders','','','N/A','Giant arthropods','','In temperate zones, millipedes are most abundant in moist deciduous forests, and may reach densities of over 1,000 individuals per square metre','in shallow sub-terranean habitats','','Millipedes occur on all continents except Antarctica, and occupy almost all terrestrial habitats, ranging as far north as the Arctic Circle in Iceland, Norway, and Central Russia, and as far south as Santa Cruz Province, Argentina','Females lay from ten to three hundred eggs at a time, depending on species, fertilising them with the stored sperm as they do so.','N/A','Talstar PL Granules or Talstar XTRA Granules.','','Most millipedes defend themselves with a variety of chemicals secreted from pores along the body, although the tiny bristle millipedes are covered with tufts of detachable bristles. Its primary defence mechanism is to curl into a tight coil, thereby protecting its legs and other vital delicate areas on the body behind a hard exoskeleton.',49),(50,'N/A','','egg,larva,pupa,imago',' Approximately 10 to 15 mm. Males are smaller than females.','The elytra have the elevated lengthwise ridges and cross ridges characteristic of most lycids ','',' feed either on plant juices or on other insects and','can easily be seen as they fly slowly between plants or crawl on flowers.','','','','N/A','','','N/A','','','','N/A','N/A','N/A','','',50),(51,'Green gram, Macadamia and sorghum soybean and mung bean,major pest of beans.soybean, mungbean, navy bean, adzuki bean.','Legumes, such as long bean, French bean green vegetable bug, redbanded shield bug, brown bean bugs, brown shield bug','Nymphs go through five stages, about 20 mm long',' large adult bugs, 16-18 mm long,look for ant-like nymphs. ','','',' infest crops from flowering onwards, but crops are at greatest risk from early podfill to late pod ripening at early podfill, sting the beans in the pods, feeding juices, so beans fail to mature.Severe damage is caused to bean crops, long beans ','They suck sap from pods and seeds, Eggs of Riptortus are laid on bean leaves and those of other plants, usually the eggs are laid singly. ','Both adults and nymphs of pirate bugs are important predators of thrips, mites, aphids, insects eggs and small caterpillars. Assassin bugs prey on other insects including pests, spiders and other small animals such as snails,There are no reports of predators or parasitoids attacking Riptortus in Pacific island countries. However, the reduviids (assassin bugs), mantids (preying mantids), spiders and wasps that are known to attack Leptoglossus probably attack Riptortus eggs, and prey on nymphs.','Threshold ranges from 0.3-0.8 GVB/m2 depending on crop size (seeds/m2).','','They look like large black ants, presumably to protect them from predation. Adults are dark brown','','Podsucking bugs include: Nezara viridula (green vegetable bug) Piezodorus oceanicus (redbanded shield bug) Dictyotus caenosus (brown shield bug) Riptortus serripes and Melanocanthus scutellaris (brown bean bugs)','N/A','','Summer plantings are at greater risk than spring planted crops, particularly in southern Qld and in NSW.','Restricted. Asia, Oceania. Possibly, Australia, Riptortus linearis is recorded from Solomon Islands','Eggs of Riptortus are laid on bean leaves and those of other plants; usually the eggs are laid singly. They hatch and the nymphs go through five stages.','Collect and burn as much of the crop as possible after harvest. Handpick the insects. Do this in the early morning, as at other times of the day the insects are more likely to take flight, Plant away from other hosts e.g. cotton, tomatoes, pecans. Minimise overwintering hosts and eradicate weed hosts (e.g. cruciferous weeds) prior to planting','If infestations reach levels where chemical control is necessary, use sprays of derris, pyrethrum or chilli. If a commercial product is needed, use synthetic pyrethroids or malathion. But note, these pesticides will also kill the natural enemies.','Monitor using a beat sheet twice weekly early to mid-morning. Take 5 samples within 20 m radius; repeat at 6 random sites as nymphs tend to be clumped. Look for egg rafts on plants, and beneficial insects. Bugs can be found basking in the sun in the top of the canopy early in the day.','',51),(52,'Arecanut, coconut, date','ornamentals','Life cycle: completed in 15-29 days depending upon climatic conditions.','Nymphs and adults are seen in large numbers on the lower surface ofleaves, in severe cases of infestation they may be seen on the leaf stalks and on the spindles.',' pear-shaped brick-red body','Generation : several generations in a season.','Neglected and poorly irrigated gardens and nurseries, particularly those inexposed conditions are prone to severe infestation. Colonies of these mites start declining with the onset of rains in June. pale stippling','The nymphs and adults suck the cell sap from the leaves which as a result turn reddish brown and ultimately dry and drop down.The woolly mites feed on epidermal tissues of leaf and cause irritation due to which a growth of dense whitish hairs arises on both surfaces of leaves as well as on the infested shoots. Heavily infested plants shed their bolls. ','Lacewings and ladybugs','','Adults are extremely small, 0.6 x 0.2 mm','red','Clover mites , Chigger mite , Southern red mite , ','red mite , wooly mites','Optimal conditions for the citrus red mite are 25 C and 50-70% humidity.','','','Maharashtra','Eggs : female lays 33-90 eggs on leaves which hatch in 4-6 days. Larva : larval period 4-7 days. Nymph : nymphal period 7-16 days','apply a pesticide specific to mites called a miticide','Dusting of sulphur @20 kg/ha or spraying with 0.2% wettable sulphur control the mites effectively.','Cultural Control Mites increase their reproduction on water-stressed trees. Good irrigation reduces red mite outbreaks. Water roads to limit dust buildup, which also promotes mites. Organically Acceptable Methods Use cultural and biological controls and petroleum oil sprays on organically managed citrus','',52),(53,'Cardamom , Banana , cocoa','','Adults live for 7 - 8 months','Eggs are laid in cavities made on rhizome. Egg period 8 -10 days. Larvae feed inside the rhizome, larval period 21 days. Pupate in the feeding tunnels, pupal period 21 days','','Only one generation in a year.','Grubs bore into the rhizome causing death of unopened pipe, withering of outer leaves and finally death of the plant','Grubs bore into the rhizome and cause death of the plant Presence of dark coloured tunnels in the rhizomes. Death of unopened pipe, withering of outer leaves.','Earwig, King crow, dragonfly, spider, reduviid bug, praying mantis, red ant etc.','','12 mm','Adult - Dark weevil, newly emerged weevil is red brown','','Corm Weevil,Cosmopolites sordidus. Nematode. Pseudostem Weevil,Odoiporus longicollis.','Weevils hide under debris or in the soil around banana plants during the day and are active at night','','Infestation at early stage of plant results in cessation of growth and gradual death of the plant while incidence in late stage affects the vigour','India and Sri Lanka','The female weevil lays its eggs in small burrows made at the ground level at the base of pseudostem in the upper part of the corm. It also lays eggs in roots and at the end of the cut stems (stumps). The eggs hatch in 5-8 days.','Select healthy sucker and plant Do not take regular crop in the same field to avoid initial infestation Ensure clean cultivation Stem injection with monocrotophos','Drench the base of the clump with malathion 1.25 L or carbaryl 50 WP 1.25 kg in 500 1000 L of water/ha','Removal of pseudo stems below ground level Trimming the rhizome Avoid growing Robusta, Karpooruvally, Malbhog, Champa and Adukkar Grow less susceptible varieties like Poovan, Kadali, Kunnan, Poomkalli Use cosmolure trap at 5/ha','',53),(54,'Cashew, Moringa, silk cotton , citrus trees ,Sugarcane and jowar.','','Life cycle completed in one year.','Ovoid, dirty white eggs laid under loose bark in their early stages and into the wood in their late stages. Egg period 4-6 days. Full grown grub measures 7.5 cm and tunnels its way into the root region, grub period 6-7 months. Pupation occurs in a calcareous pupal chamber and pupal period 60 days','','','Grubs bore into the bark in their early stages and make excessive tunnels in all directions causing wilting of branches and then the tree as a whole. Roots are also affected. Plantation over 15 years are often seen infested.','Drying up on inner whorl of leaves and formation of dead hearts are the common symptoms of the attack of this pest. On an average 5-15% of the cane crop is attacked by this pest. It causes reduction of weight by 10%. The sucrose content is also lowered by only about 0.5%','Metarhizium anisopliae , Parallorhogas pyralophagus','','30 mm','Larva creamy white, the adult is yellow brown with white hind wings.','','','The root borer has been observed to be active at high temperature and moderate humidity levels and appears to be tolerant to rain to an extent of 45cm after which its population declines','','root borers start emerging between early and mid-June, with peak emergence occurring from mid- to late July','South India and Maharashtra.','Mated females lay eggs within the lower canopy and eggs hatch in 9- 10 days. Larvae feed for a short time, 4-5 days, on foliage and then drop to the soil to bore into a rhizome and begin feeding','Undertake periodical cleaning of collar region, removal of grubs, pupae and eggs and inter ploughing wherever possible during monsoon months. Uproot and remove dead trees from the plantation Avoid injury to the trunk or exposed portion of the root. Swab the bark of the exposed roots and shoots with carbaryl 50 WP 2 g/L, lindane 20 EC 1 ml/L Swab with kerosene - coal tar mixture (1:2) upto one metre height on the trunk and on exposed bark after shaving the infested bark to prevent egg laying.','1. Spraying of Endrin fortnightly during July to September is quite effective in controlling this pest. 2. Spraying of crop with Monocrotophus.','Mechanical Method: 1. Destruction of weeds in and around cane field as weeds harbour the pest2. Removal of dry leaves from the canes. 3. Deep ploughing of field before plantation.4. Removal and destruction of late shoots at the time of harvesting. ','',54),(55,'Sugarcane , pepper','backyard trees, ornamental shrubs, greenhouse plants and houseplants','total life cycle is completed within 4 to 6 weeks.','Scales, both armored and soft, are the most destructive. Armored scales are more difficult to control once mature. Soft scale bugs excrete large amounts of honeydew, which encourages the growth of sooty mold, a black-colored fungus that interferes with photosynthesis ','Elongated, oval,slightly convex in shape.','influenced by diverse environmental factors ','Both nymphs and adults covers stems, leaves, petioles in large numbers. Nymphs and adults with their piericing and sucking type of mouth parts suck the sap from stem, leaves, petioles, berries','The infested fade, disfigure, wither and dry up. Nurseries are severely affected. Yellowing and shedding of leaves and berries. Stunted growth and death of vines/plants','Chilocorus nigritus, Pharoscymnus horni','','1-2 mm','Adults become greyish black or brown circular scales','The three most common families of scale insects are the armored scale, the soft scale, and the mealybugs. Most of the pest species belong to one of these three families','armored scale, soft scale, mealybug','Scale insects thrive in warm, dry environments ','','in March-June, September-November. (also depend on crop type)','','Females multiply ovo-viviparously. Nymphs hatch out from the eggs within the female\'s body and come out through the genital aperture. They are called crawlers. They settle after selecting suitable site for feeding','1.Keep the bunds free from weeds 2. Avoid repeated ratoons 3.Presoak the setts in 0.1% malathion solution 4.Avoid water stagnation Prune and destroy infested twings.','Spraying of malathion / dimethoate 0.05% or Neonicotinoids like imidacloprid 17.85 SL @ 150 ml/ha or Thiamethoxam 70 WG @ 200 gm/ha or Calothiamidin 50 WDG @ 100 gm/ha or Thiazophos 50 WP @ 100 gm/ha','1.Provide plants with proper cultural care, especially irrigation. 2.Monitor plants to look for scale predators such as lady beetles or lacewings and parasite emergence holes in scale covers. 3.Use sticky barriers or insecticide baits to selectively control scale-tending ants. 4.Consider replacing problem-prone plants. Most scales are highly specific to certain plants.','',56),(56,'Vanilla, celery, lettuce, cabbage ,Slugs can feed on a wide variety of vegetables and herbs, including flowers such as petunias, chrysanthemums, daisies, lobelia, lilies, daffodils, narcissus, gentians, primroses, tuberous begonias, hollyhocks, irises, and fruits such as strawberries.[17] They also feed on carrots, peas, apples, and cabbage that are offered as a sole food source.','a number of ornamental plants like balsam, portulaca, pot- marigold, verbena, dahlia, cosmos, narcissus and lily.','A slug\'s life expectancy is from 6 to 12 months, and some up to 18 months','Snails and slugs are soft-bodied, asymmetrical, spirally coiled and enclosed in a shell. They have a large flat foot used for creeping and do not have separate sexes','asymmetrical, spirally coiled','','Snails (and slugs) chew holes with smooth edges in leaves and fruits, and small seedlings can be consumed entirely. Slug and snail feeding is most intense at night or during periods of rainy weather','Defoliation, leaving only the midrib and veins ,consumption of whole seedlings and irregular holes within the leaves and at margins','ground beetles, pathogens, snakes, toads, turtles, and birds','','35 to 50 mm ','brown in colour, striped lengthwise and covered in tiny gold spots. Its underside is orange and it has orange body mucus',' black slug ,Spotted leopard slug , Veronicellid slugs','Common garden slug , Limax sp','Damp, mild, and calm conditions are optimal for slug activity, with moist shady places providing the perfect habitats for this pest type. Slugs thrive in heavier soil, surviving summer in cracks and under clods; they do not survive well in fine, light or compacted soils.','soil with low bulk density and high porosity, particle density, moisture content, organic matter, phosphorus and potassium','Maximum slug density was recorded during the months of August and September','All over India','In spring and early summer large numbers of eggs are deposited (as many as 100 at a time) in soil cracks, underneath mulch or dead leaves and in other cool, moist protected areas. Eggs develop and hatch in 1-3 weeks, but may require as long as 12 weeks if conditions are less than perfect. Once hatched, the young mollusks remain close to the nest for several days until branching out in search of food. Development to maturity may take as little as 3 to 6 months or as long as a year or more depending on species.','Low population can be collected and destroyed. Dust 15 per cent metaldehyde dust or spray 20 per cent metaldehyde liquid or sprinkle 5 per cent metaldhyde pellets around infested fields.','N/A','1.Remove debris, bricks, lumber and weeds from all growing areas and do not apply heavy layers of mulch around plants (1-3 inches is plenty). 2.Handpicking pests can make a sizable dent in the population and is most productive in the evening, two hours after sunset. 3.If handpicking is inconvenient, try trapping. Strips of cardboard, cabbage leaves, rocks or plywood all make excellent traps for daytime collecting. Shallow pans of stale beer sunk into the soil can also be used. 4.The yeast in the beer attracts these pests, which fall in and drown. For best results, replace beer every few days or after a rain. 5.Copper Tape and diatomaceous earth are popular barriers that prevent pests from reaching the leaves, fruits and flowers on which they feed.',' shell-less terrestrial gastropod',57),(57,'Beans, lettuce, cabbage, Chinese cabbage, tomatoes','crops and garden plants','up to 3 or 4 years','Snails and slugs are soft-bodied, asymmetrical, spirally coiled and enclosed in a shell. They have a large flat foot used for creeping and do not have separate sexes','asymmetrical, spirally coiled and enclosed in a shell.','A snail can produce up to 6 batches of eggs in a year.','Snails (and slugs) chew holes with smooth edges in leaves and fruits, and small seedlings can be consumed entirely. Slug and snail feeding is most intense at night or during periods of rainy weather','Large, ragged holes in tender leaves and flowers. Damage during the spring before many insects are active. Traces of silvery slime on chewed leaves or along the ground. Seedling leaves completely gone with only a small stem remaining. Holes in hostas, lettuce, asparagus, the flowers of spring bulbs and many other plants. Tiny scalloped edges like the photo below. Large slugs can quickly devour a leaf by taking row after row of small bites.','frogs, toads, snakes, turtles, ground beetles, firefly larvae, songbirds, chickens and ducks eat snails and their eggs.','','snails range greatly in size , size 40 to 45 mm for an average','cryptic colours ranging from dark to light brown being most common, but white, bright red and banded snails are found in low frequencies side by side with cryptic snails','more than 7,000 species','Common snail , Giant African snail ,garden snail , Mediterranean Green Snail ,Orchid Snail','Snails are seen at all hours, except during mid day when it is hot and dry. In winter, they stay in colonies and are found among rockeries, loose boards of fences','','','','The common snail breeds in spring and summer. It makes a hole of 1.24 cm in diameter and 3 cm in depth in damp soil and lays eggs in a loose mass of about 60. The eggs hatch within two weeks and the young snails start feeding upon tender plants.The shell increases in size with age and the snail is full-grown in about two years.','1. Heap the gunny bags near the fences of the betel vine gardens to attract, collect and kill the snails 2. Collect and destroy the hiding snails. 3. Metaldehyde pellets 5 % over the field to attract and kill the snails.','N/A','Introduce predators , ay down grit Many gritty substances make effective snail repellents , Set out traps A common snail trap is the beer pan. , Barriers : Copper wire, Vaseline, even just mesh curved outwards will help repel garden snails from your plants.','shelled gastropod.',58),(58,'N/A','','spider life cycle has three stages of development: egg, spiderling and adult','Spiders (order Araneae) are air-breathing arthropods that have eight legs, chelicerae with fangs generally able to inject venom,[2] and spinnerets that extrude silk.','','','','N/A','Lizards , fish , Birds. Tarantula hawks. Spider wasps. Monkey','','','N/A','there are more than 45,000 known species of spiders','','N/A','','','','Depending on the species, spiders can lay up to 3,000 eggs, usually in one or more silk sacs. In some spider species, the female dies after laying the eggs. Others carry the egg sac in the chelicerae or attach it to their spinnerets.','N/A','N/A','','They not only prey on adult insect pests but also feed on their eggs and larvae. They help in maintaining the ecosystem balance. Spiders are good friends of farmers as they control all types of pests on the crop',59),(59,'Bhendi, cotton, tomato, brinjal, castor, cucurbits, tea, citrus, grapes, rose, jasmine, marigold.','','Life cycle is completed in 15-20 days','About 200 whitish, spherical eggs laid on the ventral surface of the leaves and measure about 0.1 mm in diameter. Egg period 4-7 days, larval and pupal periods 3-5 and 8-12 days respectively.','ovate','there are 15 generations / year.','1.Nymphs and adults feed on ventral leaf surface, under protective cover of fine silken webs .2. Initially, spider mite damage will appear as small yellow or brown spots on the leaves of the plant. If the plant is badly infested, the plant\'s health will suffer, it may develop completely yellow leaves and it may stop growing','As a result of their feeding numerous yellow spots appear on dorsal side of leaves.Affected leaves gradually start curling, finally wrinkled and crumpled.','Persimilis is the main predator of spider mites , ladybugs, lacewing','','','reddish brown.','Spider mites are members of the Acari family Tetranychidae, which includes about 1,200 species','white mite , red spider mite',' In cool climates, they spend the winter resting in soil, while in warmer regions, they live and feed year round','','Most active in dry, hot conditions','','Parthenogenesis is common. Fertilized female lays 61 to 93 eggs and unfertilized female 39 to 59 eggs. Eggs are laid at random on the webbing on the lower surface of leaves. They hatch in 3 - 27 days for males and females respectively in various seasons. Gravid females are seen during December to March.','Prefer Spinx and temptation varieties as they are moderately susceptible Avoid First Red as it is highly susceptible. Remove and destroy the damaged leaves along with mites.','Spray wettable sulphur 50 WP 1.0 kg (or) dicofol 1.0 L or abamectin 1.9 EC @ 500 ml which is a new acaricide or fenpropathrin 30 EC 250-340 ml in 500 L water/ha.','','',60),(60,'Sorghum, maize, rice, wheat, sugarcane, bajra and ragi, barley, guinea grasses.','sugarcane, rabi and certain grasses.cereal crops','A fully grown larva is formed in about 20- 40 days depending upon the climatic conditions','The adult moth is fawn-colored, with dark brown streaks on the fore wings and white hind wings','','About 4-5 generations are completed in a year.','The larva bores into the stem and damages the central shoot resulting in dead heart . In the vegetative phase, the central shoot dies off turning yellow in colour (dead heart). In the ear bearing stage, the ear head appears completely chaffy and white in colour (white ear head). Both come out easily when pulled up and show indication of feeding injuries at the base','Presence of brown coloured egg mass near the leaf tip. In vegetative stage larva enters the stem and feeds on the growing shoot and causes drying of the central shoot known as dead heart. In grown up plant whole ear heads become dried and yield chaffy grains called as white ear .Affected parts of stem may show internally tunneling caterpillars','Tetrastichus schoenobii Wasp Telomomous rowani Wasp Stenobracon nicevillei Braconidae Cotesia flavipes Braconidae Agriocnema pygmae - Damselfly ','','12-20 mm','pale yellow with a purple pink tinge and a reddish-brown head','',' yellow stemborer, white stemborer, striped stemborer, gold-fringed stemborer, dark-headed striped stemborer, and the pink stemborer','Mean temperature lower than 30 C and relative humidity exceeding 60% at Aduthurai were found to be favourable for higher stem borer infestation','','plant dependent','all over india','Eggs-about 300 eggs are laid, on leaves in clusters, incubation period-about 6 days. larval period : 3-4 weeks. Pupa : pupation in stem. Pupal period 7-10 days. Before pupation larva prepare a hole on stem at ground level for the moth to escape/come out. Adult : Adult longevity 2-4 days.','1. Collection and destruction of stubbles after the harvest of crop to kill hibernating larvae. 2. Increase the seed rate to compensate the loss. 3. Follow proper crop rotation (with non host crop) 4. Use of light traps.','Spray any one of the following based on ETLs : Monocrotophos 36 SL 1000 ml/ha (or) Quinalphos 25 EC 1000 ml/ha (or) Phosphamidon 40 SL 600 ml/ha (or) Profenophos 50 EC 1000 ml/ha.','Cultural Methods: Field should be necessarily be scouted during the vulnerable crop growth stages for early detection of dead hearts and white ear.Removal and proper disposal of stubbles will keep the borer population low in next crop. Clip the tip of the seedlings before transplanting to eliminate egg masses. Collect and destroy the egg masses.Avoid close planting and continuous water stagnation at early stages. Biological Methods: Apply Bacillus thuringiensis var kurstaki at 2.5 kg/ha to reduce the oviposition by the stem borer. Release the egg cards in field during morning hours. Tie the egg cards under the leaf surface facing outside.','',61),(61,'barley, sugarcane, pea, sorghum, pearl millet, maize, groundnut.','','Termite life cycles vary widely from species to species, from two years to 50.','The members of this group are social insects and are composed of workers, soldiers, king and queen. A) Reproductive caste : (Winged) : They live in royal chambers. Queen , King B) Sterile caste : (Wingless) : Soldiers , workers','Termites have large heads with no distinct body segmentation more ribbed texture','','Termite damage starts soon after sowing and continues till the growing stage. The leaves of damaged plants droop down which later wither and dry. Such plants are easily uprooted.','Workers of termites feed on the roots and stem parts of the plants. This results in drying of the plants. Other forms do not cause any direct damage to the crop.','Arthropods such as ants, centipedes, cockroaches, crickets, dragonflies, scorpions and spiders, reptiles such as lizards, and amphibians such as frogs and toads consume termite','','one-eighth of an inch to one inch long','Colors range from white to light brown in color. Worker termites often appear lighter, while swarming termites are darker.',' 220 different species of termites in India','Coptotermes gestroi. Coptotermes heimi. Heterotermes indicola. Schedorhinotermes spp.','moist, warm climate is ideal for termites, Wet or decayed wood, contact of wood with soil and pooled moisture around foundations are favorable conditions for termites','','','','7-10 days after aerial flight the female lays the first batch of eggs numbering 100-130. These eggs hatch in 40-42 days. The female termite then swells to become queen and lays upto 30,000 eggs per day.','Where the pest is of regular occurrence the soil should be mixed with endosulfan 4D or quinolphos 1.5 D or chlorpyriphos 5 D BHC or 10 D @ 35 kg/ha at the time of sowing , Locate and destroy the termite colony , Destroy the affected setts from the field','If the incidence of pest is noticed in standing crop dilute 2.5 L of endosulphan 35 EC or chlorpyriphos 20EC in 5 L of water and mix it with 50 kg of soil and broabcast even in 1 ha followed by light irrigation.','Keep the crop healthy and vigorous. Shortage or water leading to initial drying of the plant, may lead to termite infestation. Hence, it is very necessary to keep the crop healthy and vigorous.','Even though termites are not closely related to ants, they are sometimes referred to as white ants.',62),(62,'N/A','',' Housefly: 28 days, Culex pipiens: 7 days',' having only two wings as adults , The hind wings of flies are reduced to knob-like appendages called halteres (hall-TEERS) [7] that are used to balance them while flying','','Most Flies are univoltine (having only one generation per year), but under favourable conditions some may complete more generations in a year','Flies damage plants in many ways, mostly during the larval stage. Many feed directly on the plant, including the roots (e.g. Bibionidae and Anthomyiidae), stems, flowers or fruit (e.g. Tephritidae; left). Others mine the leaves, living and feeding in the tiny space between the upper and lower surfaces (e.g. Agromyzidae; right). Some lay eggs in plants and cause them to produce growths called galls - the larvae then live and feed inside these tumors','N/A','','','','N/A','more than 10000 species',' house flies, horse flies, blow flies, and mosquitoes','Flies are beneficial, too, functioning as scavengers, predators, or parasites of certain insect pests, as pollinators of plants','','summer','','The majority of flies lay eggs, which hatch into tiny larvae after a few hours or several days. The number of eggs laid by a female varies from 1 to about 250','N/A','N/A','','Flies are beneficial, too, functioning as scavengers, predators, or parasites of certain insect pests, as pollinators of plants',64),(63,'N/A','','The yellowjacket life cycle begins with a fertile queen, who builds a nest and uses stored sperm to create worker bees. These worker bees continue building the colony, and die off at the end of summer. The life cycle continues with newly-created queens hibernating through the winter to start the life cycle again the following spring.','a social winged insect which has a narrow waist and a sting and is typically yellow with black stripes. It constructs a paper nest from wood pulp and raises the larvae on a diet of insects.','','','Some wasp larvae cause damage by boring or mining into the stems or trunks of plants','N/A','bee-eaters','','2-5 mm','yellow with black stripe','','pod wasp ,yellowjackets','N/A','','','<NAME>, Orissa, Bihar, Maharastra and Karnataka.','Eggs are laid on flowers and very young pods. The white larva is apodous and 2-5 mm long when full-grown. Larval stage lasts for 8-10 days. Pupation is inside pod for 5-7 days.','you can try decreasing their numbers by fashioning a trap. Tie a slice of melon, fresh fish or meat to a stick and suspend it over a 5 gallon bucket, preferably a blue one. Partially fill the bucket with water and add a squirt of dish soap, then place the trap away from people','N/A','','Wasps are predators, which means they hunt live prey (like flies, caterpillars, and spiders) as a source of protein. In a world without wasps, we would need to use more toxic pesticides to control the insects that eat our crops and carry diseases.',65),(64,'Arabica coffee is the most preferred and principal host plant. Alternate host plants include Robusta tree coffee, teak, Oleadioica etc','','','Adult is a black, elongate beetle with grey pubescence on the head, thorax and elytra. Characteristic white markings are seen on the elytra.','elongated','','Larvae enter into the hardwood and make the tunnels may extend even into the roots. Tunnels - tightly filed with the excreta of the grubs.Young plants (7 to 8 years old) attacked by the borer may die in a year','infested plants show visible ridges around the stem. Yellowing and wilting of leaves. older plants withstand the attack for a few seasons. However, such plants are less productive, yielding more of floats.',' ladybird beetle , wolf spider','','2.5 cm - adult','black,with grey pubescence on the head , Characteristic white markings are seen on the elytra.','','African white stemborer (Maliarpha separatella) Asiatic rice stemborer (striped rice stemborer, Chilo suppressalis) Banana stem borer (Telchin licus) Egyptian stemborer (Earias insulana)','warm temperatures are favourable for the successful completion of the pest life cycle','','','White stem borer is the most serious pest of Arabica coffee in India. all ragi growing states of India','The female white stem borer lays the eggs near the tip of the leaf blade. The female lays eggs in batches of about 100 and are covered with silky greyish hairs; they resemble the eggs of the yellow stem borer. The incubation period is about 8 days. The larvae pupate in the stem.','Maintain optimum shade on the estates. Trace the infested plants - flight periods (i.e, during March and September) Every year - looking for ridges on the main stem and thick primaries. Collars prune the infested plants, uproot and burn the affected parts. Remove the loose scaly bark of the main stem and thick primaries using coir glove or coconut husk kill the eggs','Lindane 20 EC 1.25 lit + 200 ml Teepol in 500 L water at the time of peak adult activity (March and September). NSKE 5% also can be applied frequently. Spray Beauveria bassiana available as a wettable powder formulation','Spraying the main stem and thick primaries with neem kernel extract may afford good control of the pest. Field release of predators Apenesia sps for effective control of white stem borer','',67); /*!40000 ALTER TABLE `insect_insectinformation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `insect_master` -- DROP TABLE IF EXISTS `insect_master`; /*!40101 SET @saved_cs_client = @@character_set_client */; SET character_set_client = utf8mb4 ; CREATE TABLE `insect_master` ( `id` int(11) NOT NULL AUTO_INCREMENT, `insect_name` varchar(100) NOT NULL, `status` varchar(100) NOT NULL, `creation_date` date NOT NULL, `created_by_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `insect_master_created_by_id_a86e410e_fk_auth_user_id` (`created_by_id`), CONSTRAINT `insect_master_created_by_id_a86e410e_fk_auth_user_id` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `insect_master` -- LOCK TABLES `insect_master` WRITE; /*!40000 ALTER TABLE `insect_master` DISABLE KEYS */; INSERT INTO `insect_master` VALUES (10,'root weevil','active','2021-03-23',3),(11,'sawfly','active','2021-03-23',3),(12,'ant','active','2021-03-23',3),(13,'aphid','active','2021-03-23',3),(14,'apple tree borer','active','2021-03-23',3),(15,'bambo weevil','active','2021-03-23',3),(16,'bee','active','2021-03-23',3),(17,'beetle','active','2021-03-23',3),(18,'berry borer','active','2021-03-23',3),(19,'bug','active','2021-03-23',3),(20,'butterfly','active','2021-03-23',3),(21,'bollworm','active','2021-03-23',3),(22,'cabage looper','active','2021-03-23',3),(23,'caddisfly','active','2021-03-23',3),(24,'caterpillar','active','2021-03-23',3),(25,'centipede','active','2021-03-23',3),(26,'cockroach','active','2021-03-23',3),(27,'cricket','active','2021-03-23',3),(28,'damselfly','active','2021-03-23',3),(29,'dragonfly','active','2021-03-23',3),(30,'earwig','active','2021-03-23',3),(31,'flea beetle','active','2021-03-23',3),(32,'flies','active','2021-03-23',3),(33,'fruit and shoot borer','active','2021-03-23',3),(34,'fruit fly','active','2021-03-23',3),(35,'grasshopper','active','2021-03-23',3),(36,'hairy caterpillar','active','2021-03-23',3),(37,'katydid','active','2021-03-23',3),(38,'lacewing bug','active','2021-03-23',3),(39,'leaf cutter','active','2021-03-23',3),(40,'leaf miner','active','2021-03-23',3),(41,'leaf roller','active','2021-03-23',3),(42,'leaf twisting weevil','active','2021-03-23',3),(43,'mango nut weevil','active','2021-03-23',3),(44,'mango hopper','active','2021-03-23',3),(45,'mantis','active','2021-03-23',3),(46,'mealybug','active','2021-03-23',3),(47,'mormon cricket','active','2021-03-23',3),(48,'moth','active','2021-03-23',3),(49,'millipede','active','2021-03-23',3),(50,'net winged insect','active','2021-03-23',3),(51,'pod sucking bug','active','2021-03-23',3),(52,'red mite','active','2021-03-23',3),(53,'rhizome weevil','active','2021-03-23',3),(54,'root borer','active','2021-03-23',3),(56,'scale insect','active','2021-03-23',3),(57,'slug','active','2021-03-23',3),(58,'snail','active','2021-03-23',3),(59,'spider','active','2021-03-23',3),(60,'spider mite','active','2021-03-23',3),(61,'stem borer','active','2021-03-23',3),(62,'termite','active','2021-03-23',3),(63,'thrips','active','2021-03-23',3),(64,'truefly','active','2021-03-23',3),(65,'wasp','active','2021-03-23',3),(66,'weevil','active','2021-03-23',3),(67,'white stem borer','active','2021-03-23',3); /*!40000 ALTER TABLE `insect_master` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-05-18 16:17:30
<reponame>yosiasz/sekyoor CREATE TABLE IF NOT EXISTS `nistfunctions` ( functioncode nvarchar(10) NOT NULL PRIMARY KEY, functionname nvarchar(25) NOT NULL, sortOrder int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO nistfunctions (functioncode, functionname, sortOrder) VALUES ('ID', 'Identify',1); INSERT INTO nistfunctions (functioncode, functionname, sortOrder) VALUES ('PR', 'Protect', 2);
<reponame>gregory-akins/clinical_quality_language<gh_stars>100-1000 library CMS9 version '4.1.4' using FHIR version '1.4' codesystem "Example Data Elements": 'http://example.org/dataelements' codesystem "Breastfeeding Intention Code System": 'http://example.org/codesystem-breastfeeding-intention' valueset "Feeding Intention-Breast": '2.16.840.1.113762.1.4.1045.29' valueset "Feeding Intention-Not-To-Breast": 'TBD' // Code '636111000124114' from "SNOMED-CT" display: 'Mother refuses to breastfeed (situation)' valueset "Galactosemia": '2.16.840.1.113883.3.117.1.7.1.35' valueset "Single Live Birth": '2.16.840.1.113883.3.117.1.7.1.25' valueset "Single Live Born Newborn Born in Hospital": '2.16.840.1.113883.3.117.1.7.1.26' valueset "Encounter Inpatient": '2.16.840.1.113883.3.666.5.307' valueset "Estimated Gestational Age at Birth": '2.16.840.1.113762.1.4.1045.47' valueset "Parenteral Nutrition": '2.16.840.1.113883.3.117.1.7.1.38' valueset "Breast Milk": '2.16.840.1.113883.3.117.1.7.1.30' valueset "Dietary Intake Other than Breast Milk": '2.16.840.1.113883.3.117.1.7.1.27' valueset "Neonatal Intensive Care Unit (NICU)": '2.16.840.1.113883.192.168.3.11.1.75' valueset "Patient Expired": '2.16.840.1.113883.3.117.1.7.1.309' valueset "Discharge To Acute Care Facility": '2.16.840.1.113883.3.117.1.7.1.87' valueset "Ethnicity CDCREC": '2.16.840.1.114222.4.11.837' valueset "Payer SOP": '2.16.840.1.114222.4.11.3591' valueset "Race CDCREC": '2.16.840.1.114222.4.11.836' valueset "ONC Administrative Sex AdministrativeGender": '2.16.840.1.113762.1.4.1' parameter "Measurement Period" Interval<DateTime> // NOTE: The patient in context is the infant, not the mother context Patient define function ToInterval(period FHIR.Period): Interval[period."start".value, period."end".value] define function ToQuantity(quantity FHIR.Quantity): System.Quantity { value: quantity.value.value, unit: quantity.unit.value } define function ToConcept(concept FHIR.CodeableConcept): System.Concept { codes: concept.coding C return System.Code { code: C.code.value, system: C.system.value, version: C.version.value, display: C.display.value }, display: concept.text.value } define "Inpatient Encounter": [Encounter: "Encounter Inpatient"] Encounter where Encounter.status.value = 'finished' and duration in days of ToInterval(Encounter.period) <= 120 and Encounter.period."end".value in "Measurement Period" define "Gestational Age at Birth <= 37 weeks": [Observation: "Estimated Gestational Age at Birth"] Observation where Observation.status.value in { 'final', 'amended' } and ToQuantity(Observation.valueQuantity) >= 37 weeks define "Single Live Birth Condition": ([Condition: "Single Live Birth"] union [Condition: "Single Live Born Newborn Born in Hospital"]) Condition where Condition.clinicalStatus.value = 'active' and Condition.verificationStatus.value = 'confirmed' define "Infant Birth Date": Last("Single Live Birth Condition").abatementDateTime.value define "Parenteral Nutrition Procedure": [Procedure: "Parenteral Nutrition"] Procedure where Procedure.status.value = 'completed' define "Galactosemia Diagnosis": [Condition: "Galactosemia"] Condition where Condition.clinicalStatus.value = 'active' and Condition.verificationStatus.value = 'confirmed' define "Live Birth Infants without Parenteral Nutrition": "Inpatient Encounter" Encounter with "Gestational Age at Birth <= 37 weeks" GestationalAge such that GestationalAge.effectiveDateTime.value in ToInterval(Encounter.period) with "Single Live Birth Condition" Birth such that Birth.onsetDateTime.value in ToInterval(Encounter.period) without "Galactosemia Diagnosis" Galactosemia such that Galactosemia.onsetDateTime.value in ToInterval(Encounter.period) without "Parenteral Nutrition Procedure" Nutrition such that Nutrition.performedDateTime.value in ToInterval(Encounter.period) // Region: Initial Population 1 define "Initial Population 1": "Live Birth Infants without Parenteral Nutrition" // EndRegion: Initial Population 1 // Region: Denominator 1 define "Denominator 1": true // EndRegion: Denominator 1 // Region: Denominator Exclusions 1 define "Denominator Exclusions 1": "Inpatient Encounter" Encounter // TODO: Cannot perform this Location.type traversal because we cannot resolve references yet //where exists (Encounter.location Location where ToConcept(Location.type) in "Neonatal Intensive Care Unit (NICU)") where ((Encounter.hospitalization Hospitalization where ToConcept(Hospitalization.dischargeDisposition) in "Patient Expired") is not null) or ((Encounter.hospitalization Hospitalization where ToConcept(Hospitalization.dischargeDisposition) in "Discharge To Acute Care Facility") is not null) // EndRegion: Denominator Exclusions 1 // Region: Numerator 1 define "Breast Milk Feeding": [MedicationAdministration: "Breast Milk"] Feeding where Feeding.status.value = 'completed' define "Other Than Breast Milk Feeding": [MedicationAdministration: "Dietary Intake Other than Breast Milk"] OtherFeeding where OtherFeeding.status.value = 'completed' define "Numerator 1": "Inpatient Encounter" Encounter with "Breast Milk Feeding" Feeding such that Feeding.effectiveTimeDateTime.value in ToInterval(Encounter.period) without "Other Than Breast Milk Feeding" OtherFeeding such that OtherFeeding.effectiveTimeDateTime.value in ToInterval(Encounter.period) // EndRegion: Numerator 1 // Region: Numerator Exclusions 1 // NONE // End Region: Numerator Exclusions 1 // Region: Denominator Exceptions 1 // NONE // End Region: Denominator Exceptions 1 // Region: Stratification 1 // NONE // End Region: Stratification 1 // Region: Initial Population 2 define "Initial Population 2": "Live Birth Infants without Parenteral Nutrition" // EndRegion: Initial Population 2 // Region: Denominator 2 // EndRegion: Denominator 2 // Region: Denominator Exclusions 2 // NOTE: This assumes a value set exists, but since we are using the "Assessment" pattern in the connect-a-thon, // we switch to the specific code definition below //define "Intention Not To Breastfeed": // "Inpatient Encounter" Encounter // with [RiskAssessment: "Feeding Intention-Not-To-Breastfeed"] RiskAssessment // such that RiskAssessment.date in Encounter.period // Using the specific code define "Breastfeeding Intention Code": Code 'breastfeeding-intention' from "Example Data Elements" define "Positive Breastfeeding Intention Code": Code 'positive' from "Breastfeeding Intention Code System" display 'Intention to breastfeed' define "Negative Breastfeeding Intention Code": Code 'negative' from "Breastfeeding Intention Code System" display 'Intention not to breastfeed' //define "Intention Not To Breastfeed": // "Inpatient Encounter" Encounter // with [RiskAssessment: "Intention Not To Breastfeed Code"] RiskAssessment // such that RiskAssessment.date.value in ToInterval(Encounter.period) // Actually, the above won't work because what we really want is the "type", not the "method" // That would ordinarily be fine, but "type" is represented as an extension right now (http://example.org/extensions/riskassessment-type) // So... we'll retrieve all risk assessments and filter in the CQL to the ones with this assessment type define "Breastfeeding Intention Assessment": [RiskAssessment] Assessment where exists ( Assessment.extension Extension where Extension.url.value = 'http://example.org/extensions/riskassessment-type' and ToConcept(Extension.value as FHIR.CodeableConcept) = "Breastfeeding Intention Code" ) define "Intention Not To Breastfeed": "Inpatient Encounter" Encounter with "Breastfeeding Intention Assessment" Assessment such that Assessment.date.value in ToInterval(Encounter.period) define "Denominator Exclusions 2": "Denominator Exclusions 1" union "Intention Not To Breastfeed" // EndRegion: Denominator Exclusions 2 // Region: Numerator 2 define "Numerator 2": "Numerator 1" // EndRegion: Numerator 2 // Region: Numerator Exclusions 2 // NONE // End Region: Numerator Exclusions 2 // Region: Denominator Exceptions 2 // NONE // End Region: Denominator Exceptions 2 // Region: Stratification 2 // NONE // End Region: Stratification 2 // Region: Supplemental Data /* TODO: Update these for FHIR, these are the QDM data elements... define "Ethnicity": ["Patient Characteristic Ethnicity": "Ethnicity CDCREC"] define "Payer": ["Patient Characteristic Payer": "Payer SOP"] define "Race": ["Patient Characteristic Race": "Race CDCREC"] define "Sex": ["Patient Characteristic Sex": "ONC Administrative Sex AdministrativeGender"] */ // EndRegion: Supplemental Data
-- Name: GetDciodvfyWarningId -- Schema: posda_phi_simple -- Columns: ['id'] -- Args: [] -- Tags: ['NotInteractive', 'used_in_dciodvfy'] -- Description: Get id of recently created dciodvfy_warnings row select currval('dciodvfy_warning_dciodvfy_warning_id_seq') as id
<reponame>tpurschke/firewall-orchestrator /* Created 29.04.2005 Last modified 13.12.2020 Project Firewall Orchestrator Contact https://cactus.de/fworch Database PostgreSQL 9-13 */ /* Create Sequence the abs_hange_id is needed as it is incremented across 4 different tables */ Create sequence if not exists "public"."abs_change_id_seq" Increment 1 Minvalue 1 Maxvalue 9223372036854775807 Cache 1; -- the device_type table is only needed for the API -- it allows for the pre-auth functions to work with hasura Create table "device_type" ( "id" int, "name" VARCHAR ); -- fundamental firewall data ------------------------------------- Create table "device" -- contains an entry for each firewall gateway ( "dev_id" SERIAL, "mgm_id" Integer NOT NULL, "dev_name" Varchar, "local_rulebase_name" Varchar, "local_rulebase_uid" Varchar, "global_rulebase_name" Varchar, "global_rulebase_uid" Varchar, "package_name" Varchar, "package_uid" Varchar, "dev_typ_id" Integer NOT NULL, "tenant_id" Integer, "dev_active" Boolean NOT NULL Default true, "dev_comment" Text, "dev_create" Timestamp NOT NULL Default now(), "dev_update" Timestamp NOT NULL Default now(), "do_not_import" Boolean NOT NULL Default FALSE, "clearing_import_ran" Boolean NOT NULL Default FALSE, "force_initial_import" Boolean NOT NULL Default FALSE, "hide_in_gui" Boolean NOT NULL Default false, primary key ("dev_id") ); Create table "management" -- contains an entry for each firewall management system ( "mgm_id" SERIAL, "dev_typ_id" Integer NOT NULL, "mgm_name" Varchar NOT NULL, "mgm_comment" Text, "tenant_id" Integer, "mgm_create" Timestamp NOT NULL Default now(), "mgm_update" Timestamp NOT NULL Default now(), "ssh_public_key" Text, "ssh_private_key" Text NOT NULL, "ssh_hostname" Varchar NOT NULL, "ssh_port" Integer NOT NULL Default 22, "ssh_user" Varchar NOT NULL Default 'fworch', "last_import_md5_complete_config" Varchar Default 0, "last_import_md5_rules" Varchar Default 0, "last_import_md5_objects" Varchar Default 0, "last_import_md5_users" Varchar Default 0, "do_not_import" Boolean NOT NULL Default FALSE, "clearing_import_ran" Boolean NOT NULL Default false, "force_initial_import" Boolean NOT NULL Default FALSE, "config_path" Varchar, "hide_in_gui" Boolean NOT NULL Default false, "importer_hostname" Varchar, "debug_level" Integer, "multi_device_manager_id" integer, -- if this manager belongs to another multi_device_manager, then this id points to it primary key ("mgm_id") ); Create table "object" ( "obj_id" BIGSERIAL, "last_change_admin" Integer, "zone_id" Integer, "mgm_id" Integer NOT NULL, "obj_name" Varchar, "obj_comment" Varchar, "obj_uid" Text, "obj_typ_id" Integer NOT NULL, "obj_location" Varchar, "obj_member_names" Text, "obj_member_refs" Text, "initial_config" Boolean NOT NULL Default FALSE, "obj_sw" Varchar, "obj_ip" Cidr, "obj_ip_end" Cidr, "obj_nat" Boolean Default false, "nattyp_id" Integer, "obj_nat_ip" Cidr, "obj_nat_ip_end" Cidr, "obj_nat_install" Integer, "obj_color_id" Integer Default 1, "obj_sys_name" Varchar, "obj_sys_location" Varchar, "obj_sys_contact" Varchar, "obj_sys_desc" Text, "obj_sys_readcom" Varchar, "obj_sys_writecom" Varchar, "active" Boolean NOT NULL Default TRUE, "obj_create" BIGINT NOT NULL, "obj_last_seen" BIGINT NOT NULL, primary key ("obj_id") ); Create table "objgrp" ( "objgrp_id" BIGINT NOT NULL, "objgrp_member_id" BIGINT NOT NULL, "import_created" BIGINT NOT NULL, "import_last_seen" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, "negated" Boolean NOT NULL Default FALSE, primary key ("objgrp_id","objgrp_member_id") ); Create table "rule" ( "rule_id" BIGSERIAL, "last_change_admin" Integer, "rule_name" Varchar, "mgm_id" Integer NOT NULL, "parent_rule_id" BIGINT, "parent_rule_type" smallint, "active" Boolean NOT NULL Default TRUE, "rule_num" Integer NOT NULL, "rule_num_numeric" NUMERIC(16, 8), "rule_ruleid" Varchar, "rule_uid" Text, "rule_disabled" Boolean NOT NULL Default false, "rule_src_neg" Boolean NOT NULL Default false, "rule_dst_neg" Boolean NOT NULL Default false, "rule_svc_neg" Boolean NOT NULL Default false, "action_id" Integer NOT NULL, "track_id" Integer NOT NULL, "rule_src" Text NOT NULL, "rule_dst" Text NOT NULL, "rule_svc" Text NOT NULL, "rule_src_refs" Text, "rule_dst_refs" Text, "rule_svc_refs" Text, "rule_from_zone" Integer, "rule_to_zone" Integer, "rule_action" Text NOT NULL, "rule_track" Text NOT NULL, "rule_installon" Varchar, "rule_time" Varchar, "rule_comment" Text, "rule_head_text" Text, "rule_implied" Boolean NOT NULL Default FALSE, "rule_create" BIGINT NOT NULL, "rule_last_seen" BIGINT NOT NULL, "dev_id" Integer, "access_rule" BOOLEAN Default TRUE, "nat_rule" BOOLEAN Default FALSE, "xlate_rule" BIGINT, primary key ("rule_id") ); -- rule_metadata contains rule related data that does not change when the rule itself is changed Create table "rule_metadata" ( "rule_metadata_id" BIGSERIAL, "dev_id" Integer NOT NULL, "rule_uid" Text NOT NULL, "rule_created" Timestamp NOT NULL Default now(), "rule_last_modified" Timestamp NOT NULL Default now(), "rule_first_hit" Timestamp, "rule_last_hit" Timestamp, "rule_hit_counter" BIGINT, "rule_last_certified" Timestamp, "rule_last_certifier" Integer, "rule_last_certifier_dn" VARCHAR, "rule_owner" Integer, "rule_owner_dn" Varchar, -- distinguished name pointing to ldap group, path or user "rule_to_be_removed" Boolean NOT NULL Default FALSE, "last_change_admin" Integer, "rule_decert_date" Timestamp, "rule_recertification_comment" Varchar, primary key ("rule_metadata_id") ); -- adding direct link tables rule_[svc|nwobj|user]_resolved to make report object export easier Create table "rule_svc_resolved" ( "mgm_id" INT, "rule_id" BIGINT NOT NULL, "svc_id" BIGINT NOT NULL, "created" BIGINT NOT NULL, "removed" BIGINT, primary key ("mgm_id","rule_id","svc_id") ); Create table "rule_nwobj_resolved" ( "mgm_id" INT, "rule_id" BIGINT NOT NULL, "obj_id" BIGINT NOT NULL, "created" BIGINT NOT NULL, "removed" BIGINT, primary key ("mgm_id","rule_id","obj_id") ); Create table "rule_user_resolved" ( "mgm_id" INT, "rule_id" BIGINT NOT NULL, "user_id" BIGINT NOT NULL, "created" BIGINT NOT NULL, "removed" BIGINT, primary key ("mgm_id","rule_id","user_id") ); Create table "rule_from" ( "rule_from_id" BIGSERIAL, "rf_create" BIGINT NOT NULL, "rf_last_seen" BIGINT NOT NULL, "rule_id" BIGINT NOT NULL, "obj_id" BIGINT NOT NULL, "user_id" BIGINT, "active" Boolean NOT NULL Default TRUE, "negated" Boolean NOT NULL Default FALSE, primary key ("rule_from_id") ); -- reference rule_metatdata intead? Create table "rule_review" ( "rule_metadata_id" BIGINT NOT NULL, "tenant_id" Integer NOT NULL, "rr_comment" Text, "rr_approved" Boolean NOT NULL Default true, "rr_visible" Boolean NOT NULL Default true, "rr_create" Timestamp NOT NULL Default now(), "rr_update" Timestamp NOT NULL Default now(), primary key ("rule_metadata_id","tenant_id") ); Create table "rule_service" ( "rule_id" BIGINT NOT NULL, "svc_id" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, "rs_create" BIGINT NOT NULL, "rs_last_seen" BIGINT NOT NULL, "negated" Boolean NOT NULL Default FALSE, primary key ("rule_id","svc_id") ); Create table "rule_to" ( "rule_id" BIGINT NOT NULL, "obj_id" BIGINT NOT NULL, "rt_create" BIGINT NOT NULL, "rt_last_seen" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, "negated" Boolean NOT NULL Default FALSE, primary key ("rule_id","obj_id") ); Create table "service" ( "svc_id" BIGSERIAL, "svc_uid" Text, "svc_name" Varchar, "svc_typ_id" Integer NOT NULL, "mgm_id" Integer, "svc_comment" Text, "svc_prod_specific" Text, "svc_member_names" Text, "svc_member_refs" Text, "svc_color_id" Integer Default 1, "ip_proto_id" Integer, "svc_port" Integer Check (svc_port is NULL OR (svc_port>=0 and svc_port<=65535)), "svc_port_end" Integer Check (svc_port_end IS NULL OR (svc_port_end>=0 and svc_port_end<=65535)), "initial_config" Boolean NOT NULL Default FALSE, "srv_keeponinstall" Boolean Default false, "svc_rpcnr" Varchar, "svc_code" Varchar, "svc_match" Text, "svc_source_port" Integer Check (svc_source_port is NULL OR (svc_source_port>=0 and svc_source_port<=65535)), "svc_source_port_end" Integer Check (svc_source_port_end is NULL OR (svc_source_port_end>=0 and svc_source_port_end<=65535)), "svc_tcp_res" Boolean Default false, "svc_accept_rep" Boolean Default false, "svc_accept_rep_any" Boolean Default false, "svc_mfa" Boolean Default false, "svc_timeout_std" Boolean Default false, "svc_timeout" Integer, "svc_sync" Boolean Default false, "svc_sync_delay" Boolean Default false, "svc_sync_delay_start" Integer, "active" Boolean NOT NULL Default TRUE, "last_change_admin" Integer, "svc_create" BIGINT NOT NULL, "svc_last_seen" BIGINT NOT NULL, primary key ("svc_id") ); Create table "svcgrp" ( "svcgrp_id" BIGINT NOT NULL, "svcgrp_member_id" BIGINT NOT NULL, "import_created" BIGINT NOT NULL, "import_last_seen" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, "negated" Boolean NOT NULL Default FALSE, primary key ("svcgrp_id","svcgrp_member_id") ); Create table "zone" ( "zone_id" SERIAL, "zone_create" BIGINT NOT NULL, "zone_last_seen" BIGINT NOT NULL, "mgm_id" Integer NOT NULL, "zone_name" Varchar NOT NULL, "active" Boolean NOT NULL Default TRUE, primary key ("zone_id") ); Create table "usr" ( "user_id" BIGSERIAL PRIMARY KEY, "usr_typ_id" Integer NOT NULL, "user_color_id" Integer Default 1, "mgm_id" Integer NOT NULL, "user_name" Varchar NOT NULL, "active" Boolean NOT NULL Default TRUE, "user_member_names" Text, "user_member_refs" Text, "user_authmethod" Varchar, "user_valid_from" Date Default '1900-01-01', "user_valid_until" Date Default '9999-12-31', "src_restrict" Text, "dst_restrict" Text, "time_restrict" Text, "user_create" BIGINT NOT NULL, "user_last_seen" BIGINT NOT NULL, "user_comment" Text, "user_uid" Text, "user_firstname" Varchar, "user_lastname" Varchar, "last_change_admin" Integer, "tenant_id" Integer ); Create table "usergrp" ( "usergrp_id" BIGINT, "usergrp_member_id" BIGINT, "import_created" BIGINT NOT NULL, "import_last_seen" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, primary key ("usergrp_id","usergrp_member_id") ); Create table "usergrp_flat" ( "active" Boolean NOT NULL Default TRUE, "usergrp_flat_id" BIGINT NOT NULL, "usergrp_flat_member_id" BIGINT NOT NULL, "import_created" BIGINT NOT NULL, "import_last_seen" BIGINT NOT NULL, primary key ("usergrp_flat_id","usergrp_flat_member_id") ); Create table "objgrp_flat" ( "objgrp_flat_id" BIGINT NOT NULL, "objgrp_flat_member_id" BIGINT NOT NULL, "active" Boolean NOT NULL Default TRUE, "import_created" BIGINT NOT NULL, "import_last_seen" BIGINT NOT NULL, "negated" Boolean NOT NULL Default FALSE ); Create table "svcgrp_flat" ( "svcgrp_flat_id" Integer NOT NULL, "svcgrp_flat_member_id" Integer NOT NULL, "import_created" Integer NOT NULL, "import_last_seen" Integer NOT NULL, "active" Boolean NOT NULL Default TRUE, "negated" Boolean NOT NULL Default FALSE ); -- uiuser - change metadata ------------------------------------- Create table "uiuser" ( "uiuser_id" SERIAL NOT NULL, "uiuser_username" Varchar, "uuid" Varchar NOT NULL UNIQUE, "uiuser_first_name" Varchar, "uiuser_last_name" Varchar, "uiuser_start_date" Date Default now(), "uiuser_end_date" Date, "uiuser_email" Varchar, "tenant_id" Integer, "uiuser_language" Varchar, "uiuser_password_must_be_changed" Boolean NOT NULL Default TRUE, "uiuser_last_login" Timestamp with time zone, "uiuser_last_password_change" Timestamp with time zone, "uiuser_pwd_history" Text, "ldap_connection_id" BIGINT, primary key ("uiuser_id") ); -- text tables ---------------------------------------- Create table "language" ( "name" Varchar NOT NULL UNIQUE, "culture_info" Varchar NOT NULL, primary key ("name") ); Create table "txt" ( "id" Varchar NOT NULL, "language" Varchar NOT NULL, "txt" Varchar NOT NULL, primary key ("id", "language") ); Create table "error" ( "error_id" Varchar NOT NULL UNIQUE, "error_lvl" Integer NOT NULL, "error_txt_ger" Text NOT NULL, "error_txt_eng" Text NOT NULL, primary key ("error_id") ); Create table "error_log" ( "error_log_id" BIGSERIAL, "error_id" Varchar NOT NULL, "error_txt" Text, "error_time" Timestamp NOT NULL Default now(), primary key ("error_log_id") ); -- tenant ------------------------------------- Create table "tenant" ( "tenant_id" SERIAL, "tenant_name" Varchar NOT NULL, "tenant_projekt" Varchar, "tenant_comment" Text, "tenant_report" Boolean Default true, "tenant_can_view_all_devices" Boolean NOT NULL Default false, "tenant_is_superadmin" Boolean NOT NULL default false, "tenant_create" Timestamp NOT NULL Default now(), primary key ("tenant_id") ); Create table "tenant_to_device" ( "tenant_id" Integer NOT NULL, "device_id" Integer NOT NULL, primary key ("tenant_id", "device_id") ); Create table "tenant_object" ( "tenant_id" Integer NOT NULL, "obj_id" BIGINT NOT NULL, primary key ("tenant_id","obj_id") ); Create table "tenant_network" ( "tenant_net_id" BIGSERIAL, "tenant_id" Integer NOT NULL, "tenant_net_name" Varchar, "tenant_net_comment" Text, "tenant_net_ip" Cidr, "tenant_net_ip_end" Cidr, "tenant_net_create" Timestamp NOT NULL Default now(), primary key ("tenant_net_id") ); -- unused in 5.0, moved to ldap Create table "tenant_user" ( "user_id" BIGSERIAL, "tenant_id" BIGSERIAL, primary key ("user_id","tenant_id") ); -- unused in 5.0, moved to ldap Create table "tenant_username" ( "tenant_username_id" BIGSERIAL, "tenant_id" Integer, "tenant_username_pattern" Varchar, "tenant_username_comment" Text, "tenant_username_create" Timestamp NOT NULL Default now(), primary key ("tenant_username_id") ); -- basic static data ------------------------------------- Create table "parent_rule_type" ( "id" smallserial NOT NULL, "name" Varchar NOT NULL, primary key ("id") ); Create table "stm_action" ( "action_id" SERIAL, "action_name" Varchar NOT NULL, primary key ("action_id") ); Create table "stm_color" ( "color_id" SERIAL, "color_name" Varchar NOT NULL, "color_rgb" Char(7) NOT NULL, "color_comment" Text, primary key ("color_id") ); Create table "stm_dev_typ" ( "dev_typ_id" SERIAL, "dev_typ_manufacturer" Varchar, "dev_typ_name" Varchar NOT NULL, "dev_typ_version" Varchar NOT NULL, "dev_typ_comment" Text, "dev_typ_predef_svc" Text, "dev_typ_predef_obj" Text, "dev_typ_is_mgmt" Boolean, "dev_typ_config_file_rules" Varchar, "dev_typ_config_file_basic_objects" Varchar, "dev_typ_config_file_users" Varchar, "dev_typ_is_multi_mgmt" Boolean Default FALSE, primary key ("dev_typ_id") ); Create table "stm_nattyp" ( "nattyp_id" SERIAL, "nattyp_name" Varchar NOT NULL, "nattyp_comment" Text, primary key ("nattyp_id") ); Create table "stm_obj_typ" ( "obj_typ_id" SERIAL, "obj_typ_name" Varchar NOT NULL, "obj_typ_comment" Text, primary key ("obj_typ_id") ); Create table "stm_track" ( "track_id" SERIAL, "track_name" Varchar NOT NULL, primary key ("track_id") ); Create table "stm_ip_proto" ( "ip_proto_id" Integer NOT NULL, "ip_proto_name" Varchar, "ip_proto_comment" Text, primary key ("ip_proto_id") ); Create table "stm_svc_typ" ( "svc_typ_id" Integer NOT NULL UNIQUE, "svc_typ_name" Varchar, "svc_typ_comment" Text, primary key ("svc_typ_id") ); Create table "stm_usr_typ" ( "usr_typ_id" Integer NOT NULL UNIQUE, "usr_typ_name" Varchar, primary key ("usr_typ_id") ); -- only permanent import table ----------------------------------------------- -- these tables are only filled during an import run and the import data -- is immediately removed afterwards Create table "import_control" ( "control_id" BIGSERIAL, "start_time" Timestamp NOT NULL Default now(), "stop_time" Timestamp, "is_initial_import" Boolean NOT NULL Default FALSE, "delimiter_group" Varchar(3) NOT NULL Default '|', "delimiter_zone" Varchar(3) Default '%', "delimiter_user" Varchar(3) Default '@', "delimiter_list" Varchar(3) Default '|', "mgm_id" Integer NOT NULL, "last_change_in_config" Timestamp, "successful_import" Boolean NOT NULL Default FALSE, "changes_found" Boolean NOT NULL Default FALSE, "import_errors" Varchar, primary key ("control_id") ); -- temporary table for storing the fw-relevant config during import CREATE TABLE IF NOT EXISTS "import_config" ( "import_id" bigint NOT NULL, "mgm_id" integer NOT NULL, "config" jsonb NOT NULL, PRIMARY KEY ("import_id") ); -- permanent table for storing the full config as an archive CREATE TABLE "import_full_config" ( "import_id" bigint NOT NULL, "mgm_id" integer NOT NULL, "config" jsonb NOT NULL, PRIMARY KEY ("import_id") ); -- temporary import tables ------------------------------------- Create table "import_service" ( "svc_id" BIGSERIAL, "control_id" BIGINT NOT NULL, "svc_typ" Text NOT NULL, "svc_name" Varchar, "svc_comment" Text, "svc_color" Text Default 'black', "ip_proto" Text, "svc_prod_specific" Text, "rpc_nr" Varchar, "svc_uid" Text, "svc_port" Integer, "svc_port_end" Integer, "svc_source_port" Integer, "svc_source_port_end" Integer, "svc_timeout_std" Boolean Default false, "svc_timeout" Integer, "svc_member_names" Text, "svc_member_refs" Text, "last_change_admin" Varchar, "last_change_time" Timestamp, "svc_scope" Varchar, primary key ("svc_id","control_id") ); Create table "import_object" ( "obj_id" BIGSERIAL, "obj_zone" Text, "obj_name" Varchar, "obj_typ" Text NOT NULL, "obj_member_names" Text, "obj_member_refs" Text, "obj_member_excludes" Text, "obj_sw" Varchar, "obj_ip" Cidr, "obj_ip_end" Cidr, "obj_color" Text Default 'black', "obj_comment" Text, "obj_location" Text, "control_id" BIGINT NOT NULL, "obj_uid" Text, "last_change_admin" Varchar, "last_change_time" Timestamp, "obj_scope" Varchar, primary key ("obj_id","control_id") ); Create table "import_user" ( "user_id" BIGSERIAL, "control_id" BIGINT NOT NULL, "user_color" Text Default 'black', "user_name" Varchar NOT NULL, "user_typ" Text, "user_comment" Text, "user_authmethod" Varchar, "user_valid_from" Text, "user_valid_until" Text, "user_member_names" Text, "user_member_refs" Text, "user_uid" Text, "user_firstname" Text, "user_lastname" Text, "src_restrict" Text, "dst_restrict" Text, "time_restrict" Text, "last_change_admin" Varchar, "last_change_time" Timestamp, "user_scope" Varchar, primary key ("user_id","control_id") ); Create table "import_rule" ( "control_id" BIGINT NOT NULL, "rule_id" BIGSERIAL, "rulebase_name" Varchar NOT NULL, "rule_num" Integer NOT NULL, "rule_uid" Text NOT NULL, "rule_ruleid" Varchar, "rule_name" Varchar, "rule_sysid" Varchar, "rule_disabled" Boolean Default false, "rule_src_neg" Boolean Default false, "rule_dst_neg" Boolean Default false, "rule_svc_neg" Boolean Default false, "rule_implied" Boolean Default FALSE, "rule_src" Text NOT NULL, "rule_dst" Text NOT NULL, "rule_from_zone" Text, "rule_to_zone" Text, "rule_svc" Text, "rule_action" Text NOT NULL, "rule_track" Text NOT NULL, "rule_installon" Varchar, "rule_time" Varchar, "rule_comment" Text, "rule_head_text" Text, "last_change_admin" Varchar, "last_change_time" Timestamp, "rule_scope" Varchar, "rule_src_refs" Text, "rule_dst_refs" Text, "rule_svc_refs" Text, "parent_rule_uid" Text, "rule_type" Varchar Default 'access', primary key ("control_id","rule_id") ); Create table "import_zone" ( "control_id" BIGINT NOT NULL, "zone_name" Text NOT NULL, "last_change_time" Timestamp ); -- changelog tables ------------------------------------- Create table "import_changelog" ( "change_time" Timestamp, "management_name" Varchar, "changed_object_name" Varchar, "changed_object_uid" Varchar, "changed_object_type" Varchar, "change_action" Varchar NOT NULL, "change_admin" Varchar, "control_id" BIGINT NOT NULL, "import_changelog_nr" BIGINT, "import_changelog_id" BIGSERIAL, primary key ("import_changelog_id") ); Create table "changelog_object" ( "log_obj_id" BIGSERIAL, "new_obj_id" BIGINT Constraint "changelog_object_new_obj_id_constraint" Check ((change_action='D' AND new_obj_id IS NULL) OR NOT new_obj_id IS NULL), "old_obj_id" BIGINT Constraint "changelog_object_old_obj_id_constraint" Check ((change_action='I' AND old_obj_id IS NULL) OR NOT old_obj_id IS NULL), "import_admin" Integer, "doku_admin" Integer, "control_id" BIGINT NOT NULL, "abs_change_id" BIGINT NOT NULL Default nextval('public.abs_change_id_seq'::text) UNIQUE, "change_action" Char(1) NOT NULL, "changelog_obj_comment" Text, "documented" Boolean NOT NULL Default FALSE, "docu_time" Timestamp, "mgm_id" Integer NOT NULL, "change_type_id" Integer NOT NULL Default 3, "security_relevant" Boolean NOT NULL Default TRUE, "change_request_info" Varchar, "change_time" Timestamp, "unique_name" Varchar, primary key ("log_obj_id") ); Create table "changelog_service" ( "log_svc_id" BIGSERIAL, "doku_admin" Integer, "control_id" BIGINT NOT NULL, "import_admin" Integer, "new_svc_id" BIGINT Constraint "changelog_service_new_svc_id_constraint" Check ((change_action='D' AND new_svc_id IS NULL) OR NOT new_svc_id IS NULL), "old_svc_id" BIGINT Constraint "changelog_service_old_svc_id_constraint" Check ((change_action='I' AND old_svc_id IS NULL) OR NOT old_svc_id IS NULL), "abs_change_id" BIGINT NOT NULL Default nextval('public.abs_change_id_seq'::text) UNIQUE, "change_action" Char(1) NOT NULL, "changelog_svc_comment" Text, "documented" Boolean NOT NULL Default FALSE, "docu_time" Timestamp, "mgm_id" Integer NOT NULL, "change_type_id" Integer NOT NULL Default 3, "security_relevant" Boolean NOT NULL Default TRUE, "change_request_info" Varchar, "change_time" Timestamp, "unique_name" Varchar, primary key ("log_svc_id") ); Create table "changelog_user" ( "log_usr_id" BIGSERIAL, "new_user_id" BIGINT Constraint "changelog_user_new_user_id_constraint" Check ((change_action='D' AND new_user_id IS NULL) OR NOT new_user_id IS NULL), "old_user_id" BIGINT Constraint "changelog_user_old_user_id_contraint" Check ((change_action='I' AND old_user_id IS NULL) OR NOT old_user_id IS NULL), "import_admin" Integer, "doku_admin" Integer, "control_id" BIGINT NOT NULL, "abs_change_id" BIGINT NOT NULL Default nextval('public.abs_change_id_seq'::text) UNIQUE, "change_action" Char(1) NOT NULL, "changelog_user_comment" Text, "documented" Boolean NOT NULL Default FALSE, "docu_time" Timestamp, "mgm_id" Integer NOT NULL, "change_type_id" Integer NOT NULL Default 3, "security_relevant" Boolean NOT NULL Default TRUE, "change_request_info" Varchar, "change_time" Timestamp, "unique_name" Varchar, primary key ("log_usr_id") ); Create table "changelog_rule" ( "log_rule_id" BIGSERIAL, "doku_admin" Integer, "control_id" BIGINT NOT NULL, "import_admin" Integer, "new_rule_id" BIGINT Constraint "changelog_rule_new_rule_id_constraint" Check ((change_action='D' AND new_rule_id IS NULL) OR NOT new_rule_id IS NULL), "old_rule_id" BIGINT Constraint "changelog_rule_old_rule_id_constraint" Check ((change_action='I' AND old_rule_id IS NULL) OR NOT old_rule_id IS NULL), "implicit_change" Boolean NOT NULL Default FALSE, "abs_change_id" BIGINT NOT NULL Default nextval('public.abs_change_id_seq'::text) UNIQUE, "change_action" Char(1) NOT NULL, "changelog_rule_comment" Text, "documented" Boolean NOT NULL Default FALSE, "docu_time" Timestamp, "mgm_id" Integer NOT NULL, "dev_id" Integer NOT NULL, "change_type_id" Integer NOT NULL Default 3, "security_relevant" Boolean NOT NULL Default TRUE, "change_request_info" Varchar, "change_time" Timestamp, "unique_name" Varchar, primary key ("log_rule_id") ); -- request handling ------------------------------------------- Create table "request" ( "request_id" BIGSERIAL, "request_number" Varchar, "request_time" Timestamp, "request_received" Timestamp, "request_submitter" Varchar, "request_approver" Varchar, "tenant_id" Integer, "request_type_id" Integer, primary key ("request_id") ); Create table "request_object_change" ( "log_obj_id" BIGINT NOT NULL, "request_id" Integer NOT NULL, primary key ("log_obj_id","request_id") ); Create table "request_service_change" ( "log_svc_id" BIGINT NOT NULL, "request_id" Integer NOT NULL, primary key ("log_svc_id","request_id") ); Create table "request_rule_change" ( "log_rule_id" BIGINT NOT NULL, "request_id" Integer NOT NULL, primary key ("log_rule_id","request_id") ); Create table "request_user_change" ( "log_usr_id" BIGINT NOT NULL, "request_id" Integer NOT NULL, primary key ("log_usr_id","request_id") ); Create table "request_type" ( "request_type_id" Integer NOT NULL UNIQUE, "request_type_name" Varchar NOT NULL UNIQUE, "request_type_comment" Varchar, primary key ("request_type_id") ); Create table "stm_change_type" ( "change_type_id" SERIAL, "change_type_name" Varchar, primary key ("change_type_id") ); -- reporting ------------------------------------------------------- Create table "report_template" ( "report_template_id" SERIAL, "report_filter" Varchar, "report_template_name" Varchar, -- NOT NULL Default "Report_"|"report_id"::VARCHAR, -- user given name of a report "report_template_comment" TEXT, "report_template_create" Timestamp DEFAULT now(), "report_template_owner" Integer, --FK "filterline_history" Boolean Default TRUE, -- every time a filterline is sent, we save it for future usage (auto-deleted every 90 days) "report_parameters" json, primary key ("report_template_id") ); Create table "report_format" ( "report_format_name" varchar not null, primary key ("report_format_name") ); Create table "report_schedule_format" ( "report_schedule_format_name" VARCHAR not null, "report_schedule_id" BIGSERIAL, primary key ("report_schedule_format_name","report_schedule_id") ); Create table "report" ( "report_id" BIGSERIAL, "report_template_id" Integer, "report_start_time" Timestamp, "report_end_time" Timestamp, "report_json" json NOT NULL, "report_pdf" text, "report_csv" text, "report_html" text, "report_name" varchar NOT NULL, "report_owner_id" Integer NOT NULL, --FK to uiuser "tenant_wide_visible" Integer, primary key ("report_id") ); Create table if not exists "report_schedule" ( "report_schedule_id" BIGSERIAL, "report_schedule_name" Varchar, -- NOT NULL Default "Report_"|"report_id"::VARCHAR, -- user given name of a report "report_template_id" Integer, --FK "report_schedule_owner" Integer NOT NULL, --FK "report_schedule_start_time" Timestamp NOT NULL, -- if day is bigger than 28, simply use the 1st of the next month, 00:00 am "report_schedule_repeat" Integer Not NULL Default 0, -- 0 do not repeat, 1 daily, 2 weekly, 3 monthly, 4 yearly "report_schedule_every" Integer Not NULL Default 1, -- x - every x days/weeks/months/years "report_schedule_active" Boolean Default TRUE, "report_schedule_repetitions" Integer, primary key ("report_schedule_id") ); Create table "report_template_viewable_by_tenant" ( "report_template_id" Integer NOT NULL, "tenant_id" Integer NOT NULL, primary key ("tenant_id","report_template_id") ); Create table "report_template_viewable_by_user" ( "report_template_id" Integer NOT NULL, "uiuser_id" Integer NOT NULL, primary key ("uiuser_id","report_template_id") ); -- configuration Create table "ldap_connection" ( "ldap_connection_id" BIGSERIAL, "ldap_server" Varchar NOT NULL, "ldap_port" Integer NOT NULL Default 636, "ldap_tls" Boolean NOT NULL Default TRUE, "ldap_searchpath_for_users" Varchar NOT NULL, "ldap_searchpath_for_roles" Varchar, "ldap_tenant_level" Integer NOT NULL Default 1, "ldap_search_user" Varchar NOT NULL, "ldap_search_user_pwd" Varchar NOT NULL, "ldap_write_user" Varchar, "tenant_id" Integer, "ldap_write_user_pwd" Varchar, "ldap_searchpath_for_groups" Varchar, "ldap_type" Integer NOT NULL Default 0, "ldap_pattern_length" Integer NOT NULL Default 0, "ldap_name" Varchar, "ldap_global_tenant_name" Varchar, primary key ("ldap_connection_id") ); Create table "config" ( "config_key" VARCHAR NOT NULL, "config_value" VARCHAR, "config_user" Integer, primary key ("config_key","config_user") );
<reponame>erenerdemli/oasis UPDATE OA_GAME SET is_active = 0 WHERE id = :id
<filename>core/src/test/resources/google/registry/reporting/icann/dns_counts_test_cloud_sql.sql #standardSQL -- Copyright 2017 The Nomulus Authors. All Rights Reserved. -- -- 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. -- Query for DNS metrics. -- You must configure this yourself to enable activity reporting, according -- to whatever metrics your DNS provider makes available. We hope to make -- this available in the open-source build in the near future. SELECT STRING(NULL) AS tld, metricName, -1 AS count FROM (( SELECT 'dns-udp-queries' AS metricName) UNION ALL (SELECT 'dns-tcp-queries' AS metricName))
select id, display_name, lifecycle_state from oci.oci_file_storage_mount_target where id = '{{ output.resource_id.value }}::dummy';
CREATE TABLE downloadable_item ( id bigint NOT NULL, name character varying NOT NULL, type character varying NOT NULL, content_type character varying NOT NULL, encoded bytea NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, CONSTRAINT downloadable_item_pkey PRIMARY KEY (id) );
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字move(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists move; CREATE TABLESPACE move RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace move; --关键字带双引号,创建成功 drop tablespace if exists "move"; CREATE TABLESPACE "move" RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace "move"; --关键字带单引号,合理报错 drop tablespace if exists 'move'; CREATE TABLESPACE 'move' RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --关键字带反引号,合理报错 drop tablespace if exists `move`; CREATE TABLESPACE `move` RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
<filename>pukka_db.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 20, 2019 at 12:13 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 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: `pukka_db` -- -- -------------------------------------------------------- -- -- Table structure for table `banner` -- CREATE TABLE `banner` ( `id_banner` int(11) NOT NULL, `banner_category` varchar(255) NOT NULL, `label_banner` varchar(100) NOT NULL, `banner` varchar(255) NOT NULL, `banner_desc` varchar(255) NOT NULL, `alt_text` varchar(50) NOT NULL, `i_status` enum('Y','N') NOT NULL, `i_is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `banner` -- INSERT INTO `banner` (`id_banner`, `banner_category`, `label_banner`, `banner`, `banner_desc`, `alt_text`, `i_status`, `i_is_deleted`) VALUES (20, 'home', 'PT. Pukka Solusi Indonesia', 'PT. Pukka Solusi Indonesia_2901191158.jpg', 'PT. Pukka Solusi Indonesia merupakan perusahaan yang bergerak di bidang teknologi dan informasi', 'teknologi informasi', 'Y', 0), (21, 'Features', 'Creative Ideas', 'ion-ios-bookmarks-outline', 'PT. Pukka Solusi Indonesia has creative ideas to help solve the problems that you are currently facing. \"Easy solution, No complicated use\"', '', 'Y', 0), (22, 'Features', 'Wonderful Design', 'ion-ios-stopwatch-outline', 'A very attractive, contemporary, cool, elegant design is presented by PT. Pukka Solusi Indonesia so that it provides its own charm.', '', 'Y', 0), (23, 'Features', 'Update and Sync', 'ion-ios-heart-outline', 'PT. Pukka Solusi Indonesia has always been the foremost and newest in the field of technology and synchronized with each other.', '', 'Y', 0), (24, 'greeting', 'GREETINGS', 'greeting.jpg', '', '', 'Y', 0), (25, 'company profile', 'COMPANY PROFILE', 'company_profile.jpg', '', '', 'Y', 0), (26, 'manajemen', 'BOARD OF MANAGEMENT 2019', 'manajemen.jpg', '', '', 'Y', 0), (27, 'holding company', 'HOLDING COMPANY', 'holding.jpg', '', '', 'Y', 0); -- -------------------------------------------------------- -- -- Table structure for table `category` -- CREATE TABLE `category` ( `id_category` int(11) NOT NULL, `category_name` varchar(50) NOT NULL, `category_group` varchar(50) NOT NULL, `c_status` enum('Y','N') NOT NULL, `c_is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `category` -- INSERT INTO `category` (`id_category`, `category_name`, `category_group`, `c_status`, `c_is_deleted`) VALUES (9, 'Information Technology', 'service', 'Y', 0), (11, 'Design', 'service', 'Y', 0), (13, 'Consulting', 'service', 'Y', 0), (15, 'greeting', 'static_page', 'Y', 0), (16, 'company_profile', 'static_page', 'Y', 0), (17, 'management', 'static_page', 'Y', 0), (18, 'holding_company', 'static_page', 'Y', 0), (19, 'News', 'news', 'Y', 0), (20, 'Popular News', 'news', 'Y', 0), (22, 'advantage', 'static_page', 'Y', 0); -- -------------------------------------------------------- -- -- Table structure for table `contact` -- CREATE TABLE `contact` ( `id_contact` int(11) NOT NULL, `name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `subject` varchar(100) NOT NULL, `message` text NOT NULL, `date_received` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `contact_status` int(2) DEFAULT '1' COMMENT '1=Belum dilihat, 0=Telah dilihat ', `is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `contact` -- INSERT INTO `contact` (`id_contact`, `name`, `email`, `subject`, `message`, `date_received`, `contact_status`, `is_deleted`) VALUES (3, 'ayu', '<EMAIL>', 'tanya', 'dummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummydummy', '2018-12-03 13:42:35', 0, 0), (4, 'diyan', '<EMAIL>', 'magang', 'apakah ada lowongan magang ', '2018-12-16 16:10:56', 0, 1), (6, 'endah', '<EMAIL>', 'Tanya kabar', 'piye kabar e dik ? ', '2018-12-25 17:00:00', 0, 0), (8, 'joko', '<EMAIL>', 'sms pae', 'apa kabar cah ayu', '2018-12-25 21:20:00', 0, 0), (10, 'andre', '<EMAIL>', 'annyeog haseyo', 'annyeong haseyo dayu', '2018-12-26 04:09:22', 0, 0), (11, 'U<NAME>', '<EMAIL>', 'Pengajuan Project', 'Selamat siang, Saya Ulfa dari PT. Indah Sejahtera ingin mengajukan project pengembangan website perusahaan kami, kira-kira apakah kami dapat mendapatkan informasi terkait hal itu? Terimakasih', '2019-01-31 07:41:31', 0, 0), (12, 'Pukka', '<EMAIL>', 'Pengajuan Project', 'Selamat malam mas', '2019-01-31 12:47:15', 0, 0), (13, 'Ulfa Intania', '<EMAIL>', 'coba mutiara', 'jjjhk', '2019-03-05 15:14:32', 0, 0), (14, '<NAME>', '<EMAIL>', 'coba mutiara', 'asdadafda', '2019-03-06 00:32:26', 0, 0), (15, '<NAME>', '<EMAIL>', 'Pengajuan Project', 'adsadsd', '2019-03-06 00:34:23', 0, 0), (16, '<NAME>', '<EMAIL>', 'Pengajuan Project', 'HELLOOO', '2019-03-06 00:46:13', 0, 0), (17, '<NAME>', '<EMAIL>', 'coba mutiara', 'asadad', '2019-03-06 01:43:21', 0, 0), (18, 'NAMA', '<EMAIL>', 'SUBJECT LAGIAA', 'OYAAAA', '2019-03-06 02:00:00', 0, 0), (19, '<NAME>', '<EMAIL>', 'coba', 'ADADAD', '2019-03-06 02:01:43', 0, 0), (20, '<NAME>', '<EMAIL>', 'coba mutiara', 'sadadad', '2019-03-06 08:42:43', 0, 0), (21, '<NAME>', '<EMAIL>', 'Pengajuan Project', 'Hello', '2019-03-06 10:21:15', 0, 0), (22, '<NAME>', '<EMAIL>', 'Pengajuan Project', 'add', '2019-03-06 10:25:42', 0, 0), (23, '<NAME>', '<EMAIL>', 'INI SUBJECT', 'sadsdasf', '2019-03-07 06:44:46', 0, 0), (24, '<NAME>', '<EMAIL>', 'INI SUBJECT', 'uhut', '2019-03-07 06:47:37', 0, 0), (25, '<NAME>', '<EMAIL>', 'Pengajuan Project', 'aasad', '2019-03-07 06:52:26', 0, 0), (26, 'suhendra', '<EMAIL>', 'Testing', 'testing Form', '2019-03-11 10:14:44', 0, 0), (27, '<NAME>', '<EMAIL>', 'INI SUBJECT', 'dssffsf', '2019-05-06 06:00:15', 0, 0), (28, '<NAME>', '<EMAIL>', 'INI SUBJECT', 'adsadasf', '2019-05-06 06:02:15', 0, 0), (29, '<NAME>', '<EMAIL>', 'PENGAJUAN PEMBUATAN SISTEM', 'sadsd', '2019-05-07 02:23:39', 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `default_group` -- CREATE TABLE `default_group` ( `groupId` bigint(20) NOT NULL, `groupName` varchar(255) DEFAULT NULL, `description` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `default_group` -- INSERT INTO `default_group` (`groupId`, `groupName`, `description`) VALUES (1, 'Superadmin', 'Memiliki akses sebagai Superadmin, memiliki otoritas atas manajemen pengguna dan sistem selain manajemen konten'), (2, 'Admin', 'Memiliki akses sebagai Admin, memiliki otoritas atas manajemen konten, tidak dapat melakukan manajemen pengguna dan sistem'), (3, 'Public', 'Akses yang digunakan untuk meregistrasikan menu dan halaman front office'); -- -------------------------------------------------------- -- -- Table structure for table `default_group_menu` -- CREATE TABLE `default_group_menu` ( `groupId` bigint(20) DEFAULT NULL, `menuId` bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `default_group_menu` -- INSERT INTO `default_group_menu` (`groupId`, `menuId`) VALUES (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 7), (1, 8), (1, 17), (2, 8), (1, 19), (1, 20), (1, 21), (1, 22), (1, 23), (2, 20), (2, 22), (2, 21), (2, 23), (2, 7), (2, 17), (2, 19), (1, 26), (1, 27), (1, 28), (2, 28), (1, 29), (2, 26), (2, 29), (3, 30), (3, 31), (3, 32), (3, 36), (3, 33), (3, 39), (3, 38), (3, 37), (3, 35), (3, 34), (3, 40), (3, 19), (3, 42), (1, 44), (2, 44), (3, 45), (3, 41); -- -------------------------------------------------------- -- -- Table structure for table `default_group_page` -- CREATE TABLE `default_group_page` ( `groupId` bigint(20) DEFAULT NULL, `pageId` bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `default_group_page` -- INSERT INTO `default_group_page` (`groupId`, `pageId`) VALUES (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7), (1, 8), (1, 9), (1, 10), (1, 11), (1, 13), (1, 12), (1, 14), (1, 15), (1, 16), (1, 17), (1, 18), (1, 19), (1, 20), (1, 21), (1, 27), (1, 26), (1, 25), (1, 30), (1, 29), (1, 28), (1, 35), (1, 38), (1, 37), (1, 36), (1, 39), (1, 40), (2, 43), (1, 46), (1, 45), (1, 44), (1, 47), (1, 51), (1, 50), (1, 49), (1, 48), (1, 52), (1, 53), (1, 54), (1, 55), (1, 56), (2, 59), (2, 58), (2, 57), (2, 60), (2, 63), (2, 64), (2, 65), (2, 66), (2, 67), (2, 68), (2, 69), (2, 72), (2, 70), (2, 71), (2, 76), (2, 75), (2, 74), (2, 73), (2, 80), (2, 79), (2, 78), (2, 77), (2, 81), (2, 82), (2, 83), (2, 84), (2, 86), (2, 85), (1, 87), (3, 88), (3, 89), (3, 90), (3, 99), (3, 98), (3, 97), (3, 96), (3, 95), (3, 94), (3, 91), (3, 92), (3, 93), (1, 106), (1, 105), (1, 104), (2, 108), (2, 111), (2, 109), (1, 112), (1, 113), (1, 114), (1, 115), (2, 116), (2, 117), (2, 118), (2, 119), (2, 121), (1, 120), (1, 123), (2, 122), (3, 124), (1, 126), (2, 125); -- -------------------------------------------------------- -- -- Table structure for table `default_menu` -- CREATE TABLE `default_menu` ( `menuId` bigint(20) NOT NULL, `menuName` varchar(255) NOT NULL, `menuDefaultPage` bigint(20) DEFAULT NULL, `iconMenu` varchar(255) DEFAULT NULL, `menuOrder` int(11) DEFAULT NULL, `menuStyle` enum('single','parent','sub') NOT NULL DEFAULT 'single', `menuColor` varchar(20) NOT NULL DEFAULT '#555555', `menuParentId` bigint(20) DEFAULT NULL, `menuDescription` text, `menuPosition` enum('sidebar','content') NOT NULL DEFAULT 'sidebar', `menuTimestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `default_menu` -- INSERT INTO `default_menu` (`menuId`, `menuName`, `menuDefaultPage`, `iconMenu`, `menuOrder`, `menuStyle`, `menuColor`, `menuParentId`, `menuDescription`, `menuPosition`, `menuTimestamp`) VALUES (1, 'Pengaturan Sistem', 1, 'gear', 2, 'parent', '#555555', 0, '-', 'sidebar', '2018-11-16 20:44:07'), (2, 'Pengaturan Halaman', 2, 'gear', 1, 'sub', '#555555', 1, '-', 'sidebar', '2018-11-16 20:18:34'), (3, 'Pengaturan Menu', 3, 'gear', 2, 'sub', '#555555', 1, '-', 'sidebar', '2018-11-16 20:24:56'), (4, 'Pengaturan Pengguna', 8, 'people', 1, 'single', '#555555', 0, '-', 'sidebar', '2018-11-16 20:44:20'), (5, 'Pengaturan Group', 11, 'gear', 3, 'sub', '#555555', 1, '-', 'sidebar', '2018-11-16 20:53:11'), (7, 'Manajemen Kategori', 14, 'cog', 3, 'single', '#555555', 0, '-', 'sidebar', '2019-01-28 06:46:45'), (8, 'Beranda', 1, 'home', 0, 'single', '#555555', 0, '-', 'sidebar', '2018-11-16 21:23:03'), (17, 'Manajemen Statis', 36, 'paper', 4, 'single', '#555555', 0, '-', 'sidebar', '2019-01-28 06:46:56'), (19, 'Manajemen News', 44, 'bookmarks', 6, 'single', '#555555', 0, '-', 'sidebar', '2019-01-28 06:47:18'), (20, 'Master', 1, 'more', 7, 'parent', '#555555', 0, '-', 'sidebar', '2019-01-28 06:47:30'), (21, 'Contact', 35, 'contact', 8, 'single', '#555555', 20, '-', 'sidebar', '2019-01-28 06:47:44'), (22, 'Manajemen Tag', 19, '', 2, 'sub', '#555555', 20, '-', 'sidebar', '2019-01-28 06:38:05'), (23, 'Subscribe', 40, '', 3, 'sub', '#555555', 20, '-', 'sidebar', '2018-12-13 11:07:39'), (26, 'Manajemen Service', 48, 'briefcase', 5, 'single', '#555555', 0, '-', 'sidebar', '2019-01-28 06:47:07'), (27, 'Manajemen Identity', 28, '', 4, 'sub', '#555555', 20, '-', 'sidebar', '2019-01-27 13:22:11'), (28, '<NAME>', 25, '', 5, 'sub', '#555555', 20, '-', 'sidebar', '2019-01-27 13:21:59'), (29, '<NAME>', 53, 'image', 6, 'sub', '#555555', 20, '-', 'sidebar', '2019-01-27 13:20:29'), (30, 'Home', 88, '', 0, 'single', '#555555', 0, '', 'content', '2019-01-27 10:51:14'), (31, 'About', 89, '', 1, 'parent', '#555555', 0, '', 'content', '2019-01-27 10:51:00'), (32, 'Greeting', 90, '', 1, 'sub', '#555555', 31, '', 'content', '2019-01-27 10:50:42'), (33, 'Company Profile', 91, '', 2, 'sub', '#555555', 31, '', 'content', '2019-01-27 10:50:28'), (34, 'Management', 92, '', 3, 'sub', '#555555', 31, '', 'content', '2019-03-06 11:29:44'), (35, 'Holding Company', 93, '', 4, 'sub', '#555555', 31, '', 'content', '2019-01-27 10:50:01'), (36, 'Services', 94, '', 2, 'parent', '#555555', 0, '', 'content', '2019-01-27 10:49:48'), (37, 'Design', 95, '', 1, 'sub', '#555555', 36, '', 'content', '2019-01-27 10:49:34'), (38, 'Consulting', 96, '', 2, 'sub', '#555555', 36, '', 'content', '2019-01-27 10:49:15'), (39, 'Technology Information', 97, '', 3, 'sub', '#555555', 36, '', 'content', '2019-01-27 10:49:05'), (40, 'News & Blog', 98, '', 3, 'parent', '#555555', 0, '', 'content', '2019-01-27 10:48:54'), (41, 'News', 98, '', 1, 'sub', '#555555', 40, '', 'content', '2019-01-27 10:48:32'), (42, 'Contact', 99, '', 4, 'single', '#555555', 0, '', 'content', '2019-01-27 10:48:21'), (44, '<NAME>', 104, 'link', 6, 'sub', '#555555', 20, '-', 'sidebar', '2019-01-28 08:44:51'), (45, 'Blog', 124, '', 2, 'sub', '#555555', 40, '-', 'content', '2019-01-30 06:20:07'); -- -------------------------------------------------------- -- -- Table structure for table `default_page` -- CREATE TABLE `default_page` ( `pageId` bigint(20) NOT NULL, `page` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `labelPage` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `subPage` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `action` varchar(100) CHARACTER SET latin1 DEFAULT NULL, `status` enum('Yes','No') CHARACTER SET latin1 DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `default_page` -- INSERT INTO `default_page` (`pageId`, `page`, `labelPage`, `subPage`, `action`, `status`, `timestamp`) VALUES (1, 'home', 'home view root', 'view', 'view', 'Yes', '2018-11-16 23:06:54'), (2, 'conf_page', 'conf_page view root', 'view', 'view', 'Yes', '2018-11-16 20:32:35'), (3, 'conf_menu', 'conf_menu view root', 'view', 'view', 'Yes', '2018-11-16 20:32:29'), (4, 'conf_page', 'conf_page add root', 'add', 'view', 'Yes', '2018-11-16 20:23:55'), (5, 'conf_page', 'conf_page edit root', 'edit', 'view', 'Yes', '2018-11-16 20:23:55'), (6, 'conf_menu', 'conf_menu add root', 'add', 'view', 'Yes', '2018-11-16 20:23:55'), (7, 'conf_menu', 'conf_menu edit root', 'edit', 'view', 'Yes', '2018-11-16 20:23:55'), (8, 'user', 'user view root', 'view', 'view', 'Yes', '2018-11-16 20:42:41'), (9, 'user', 'user add root', 'add', 'view', 'Yes', '2018-11-16 20:47:48'), (10, 'user', 'user edit root', 'edit', 'view', 'Yes', '2018-11-16 20:48:34'), (11, 'group', 'group view root', 'view', 'view', 'Yes', '2018-11-16 20:52:36'), (12, 'group', 'group add root', 'add', 'view', 'Yes', '2018-11-16 20:58:07'), (13, 'group', 'group edit root', 'edit', 'view', 'Yes', '2018-11-16 20:58:26'), (14, 'ref_kategori', 'ref_kategori view root', 'view', 'view', 'Yes', '2018-11-16 21:12:38'), (15, 'ref_kategori', 'ref_kategori add root', 'add', 'view', 'Yes', '2018-11-16 21:14:13'), (16, 'ref_kategori', 'ref_kategori edit root', 'edit', 'view', 'Yes', '2018-11-16 21:15:04'), (17, 'akun', 'akun view root', 'view', 'view', 'Yes', '2018-11-16 22:58:49'), (18, 'akun', 'akun editPassword root', 'editPassword', 'view', 'Yes', '2018-11-16 22:59:35'), (19, 'tag', 'tag view root', 'view', 'view', 'Yes', '2018-11-24 04:12:23'), (20, 'tag', 'tag edit root', 'edit', 'view', 'Yes', '2018-11-24 04:12:13'), (21, 'tag', 'tag add root', 'add', 'view', 'Yes', '2018-11-24 04:13:09'), (25, 'video', 'video view root', 'view', 'view', 'Yes', '2018-11-24 11:53:58'), (26, 'video', 'video edit root', 'edit', 'view', 'Yes', '2018-11-24 11:54:31'), (27, 'video', 'video add root', 'add', 'view', 'Yes', '2018-11-24 11:54:59'), (28, 'identity', 'identity view root', 'view', 'view', 'Yes', '2018-11-25 14:51:58'), (29, 'identity', 'identity edit root', 'edit', 'view', 'Yes', '2018-11-25 14:52:49'), (30, 'identity', 'identity add root', 'add', 'view', 'Yes', '2018-11-25 14:53:27'), (35, 'contact', 'contact view root', 'view', 'view', 'Yes', '2018-12-01 13:46:23'), (36, 'statis', 'statis view root', 'view', 'view', 'Yes', '2018-12-02 13:51:23'), (37, 'statis', 'statis edit root', 'edit', 'view', 'Yes', '2018-12-02 13:51:46'), (38, 'statis', 'statis add root', 'add', 'view', 'Yes', '2018-12-02 13:52:09'), (39, 'contact', 'contact detail root', 'detail', 'view', 'Yes', '2018-12-03 14:54:00'), (40, 'subscribe', 'subscribe view root', 'view', 'view', 'Yes', '2018-12-04 05:41:00'), (43, 'home', 'home view admin', 'view', 'view', 'Yes', '2018-12-05 08:40:39'), (44, 'news', 'news view root', 'view', 'view', 'Yes', '2018-12-08 01:44:50'), (45, 'news', 'news edit root', 'edit', 'view', 'Yes', '2018-12-08 01:45:16'), (46, 'news', 'news add root', 'add', 'view', 'Yes', '2018-12-08 01:45:39'), (47, 'statis', 'statis detail root', 'detail', 'view', 'Yes', '2018-12-19 07:04:33'), (48, 'service', 'service view root', 'view', 'view', 'Yes', '2018-12-21 09:30:40'), (49, 'service', 'service edit root', 'edit', 'edit', 'Yes', '2018-12-21 09:31:06'), (50, 'service', 'service add', 'add', 'add', 'Yes', '2018-12-21 09:31:31'), (51, 'service', 'service detail', 'detail', 'detail', 'Yes', '2018-12-21 09:31:55'), (52, 'news', 'news detail', 'detail', 'detail', 'Yes', '2019-01-05 08:51:34'), (53, 'banner', 'banner view root', 'view', 'view', 'Yes', '2019-01-21 15:51:50'), (54, 'banner', 'banner edit root', 'edit', 'view', 'Yes', '2019-01-21 15:51:37'), (55, 'banner', 'banner add root', 'add', 'view', 'Yes', '2019-01-21 15:51:24'), (56, 'banner', 'banner detail root', 'detail', 'view', 'Yes', '2019-01-21 15:51:09'), (57, 'tag', 'tag view root', 'view', 'view', 'Yes', '2019-01-14 07:29:17'), (58, 'tag', 'tag add root', 'add', 'view', 'Yes', '2019-01-14 07:29:39'), (59, 'tag', 'tag edit root', 'edit', 'view', 'Yes', '2019-01-14 07:30:01'), (60, 'subscribe', 'subscribe view admin', 'view', 'view', 'Yes', '2019-01-14 07:31:49'), (63, 'video', 'video view admin', 'view', 'view', 'Yes', '2019-01-14 07:34:43'), (64, 'video', 'video add root', 'add', 'view', 'Yes', '2019-01-14 07:35:28'), (65, 'video', 'video edit root', 'edit', 'view', 'Yes', '2019-01-14 07:35:50'), (66, 'banner', 'banner view admin', 'view', 'view', 'Yes', '2019-01-21 15:50:51'), (67, 'banner', 'banner add admin', 'add', 'view', 'Yes', '2019-01-21 15:50:37'), (68, 'banner', 'banner edit admin', 'edit', 'view', 'Yes', '2019-01-21 15:50:22'), (69, 'banner', 'banner detail admin', 'detail', 'view', 'Yes', '2019-01-21 15:50:00'), (70, 'ref_kategori', 'ref_kategori view admin', 'view', 'view', 'Yes', '2019-01-14 07:42:03'), (71, 'ref_kategori', 'ref_kategori add admin', 'add', 'view', 'Yes', '2019-01-14 07:42:19'), (72, 'ref_kategori', 'ref_kategori edit admin', 'edit', 'view', 'Yes', '2019-01-14 07:41:48'), (73, 'statis', 'statis view admin', 'view', 'view', 'Yes', '2019-01-14 07:43:14'), (74, 'statis', 'statis add admin', 'add', 'view', 'Yes', '2019-01-14 07:43:34'), (75, 'statis', 'statis edit admin', 'edit', 'view', 'Yes', '2019-01-14 07:44:00'), (76, 'statis', 'statis detail admin', 'detail', 'view', 'Yes', '2019-01-14 07:44:23'), (77, 'service', 'service view admin', 'view', 'view', 'Yes', '2019-01-14 07:45:05'), (78, 'service', 'service add admin', 'add', 'view', 'Yes', '2019-01-14 07:45:34'), (79, 'service', 'service edit admin', 'edit', 'view', 'Yes', '2019-01-14 07:45:55'), (80, 'service', 'service detail admin', 'detail', 'view', 'Yes', '2019-01-14 07:46:17'), (81, 'news', 'news view admin', 'view', 'view', 'Yes', '2019-01-14 07:47:33'), (82, 'news', 'news add admin', 'add', 'view', 'Yes', '2019-01-14 07:47:55'), (83, 'news', 'news edit admin', 'edit', 'view', 'Yes', '2019-01-14 07:48:17'), (84, 'news', 'news detail admin', 'detail', 'view', 'Yes', '2019-01-14 07:48:41'), (85, 'contact', 'contact view admin', 'view', 'view', 'Yes', '2019-01-14 07:49:28'), (86, 'contact', 'contact detail admin', 'detail', 'view', 'Yes', '2019-01-14 07:49:50'), (87, 'user', 'resetpassword root', 'resetpassword', 'resetpassword', 'Yes', '2019-01-15 09:27:40'), (88, 'homepage', 'homepage index public', 'index', 'view', 'Yes', '2019-01-25 07:05:06'), (89, 'about', 'about greeting public', 'greeting', 'view', 'Yes', '2019-01-25 07:11:21'), (90, 'about', 'about greeting public', 'greeting', 'view', 'Yes', '2019-01-27 10:27:58'), (91, 'about', 'about company_profile public', 'company_profile', 'view', 'Yes', '2019-01-27 10:24:13'), (92, 'about', 'about manajemen public', 'manajemen', 'view', 'Yes', '2019-01-27 10:23:42'), (93, 'about', 'about holding_company public', 'holding_company', 'view', 'Yes', '2019-01-27 10:23:56'), (94, 'services', 'services design public', 'design', 'view', 'Yes', '2019-01-25 07:08:03'), (95, 'services', 'services design public', 'design', 'view', 'Yes', '2019-01-27 10:28:18'), (96, 'services', 'services consulting public', 'consulting', 'view', 'Yes', '2019-01-27 10:29:40'), (97, 'services', 'services technology_information public', 'technology_information', 'view', 'Yes', '2019-01-27 10:31:31'), (98, 'newsblog', 'newsblog news public', 'news', 'view', 'Yes', '2019-01-25 07:06:21'), (99, 'contact', 'contact index public', 'index', 'view', 'Yes', '2019-01-25 07:05:40'), (104, 'link', 'link view root', 'view', 'view', 'Yes', '2019-01-27 12:55:16'), (105, 'link', 'link add root', 'add', 'view', 'Yes', '2019-01-27 12:55:48'), (106, 'link', 'link edit root', 'edit', 'view', 'Yes', '2019-01-27 12:56:11'), (108, 'link', 'link add admin', 'add', 'view', 'Yes', '2019-01-27 12:57:43'), (109, 'link', 'link edit admin', 'edit', 'view', 'Yes', '2019-01-27 12:58:03'), (111, 'link', 'link view admin', 'view', 'view', 'Yes', '2019-01-27 12:58:51'), (112, 'statis', 'statis restore root', 'restore', 'restore', 'Yes', '2019-01-29 08:29:22'), (113, 'service', 'service restore root', 'restore', 'restore', 'Yes', '2019-01-29 09:06:40'), (114, 'news', 'news restore root', 'restore', 'restore', 'Yes', '2019-01-29 12:00:09'), (115, 'ref_kategori', 'ref_kategori restore root', 'restore', 'restore', 'Yes', '2019-01-29 12:00:33'), (116, 'statis', 'service restore admin', 'restore', 'restore', 'Yes', '2019-01-29 12:01:52'), (117, 'service', 'service restore admin', 'restore', 'restore', 'Yes', '2019-01-29 12:02:14'), (118, 'news', 'news restore admin', 'restore', 'restore', 'Yes', '2019-01-29 12:02:33'), (119, 'ref_kategori', 'ref_kategori restore admin', 'restore', 'restore', 'Yes', '2019-01-29 12:02:53'), (120, 'video', 'video restore root', 'restore', 'view', 'Yes', '2019-01-29 13:51:47'), (121, 'video', 'video restore admin', 'restore', 'view', 'Yes', '2019-01-29 13:52:10'), (122, 'banner', 'banner restore admin', 'restore', 'view', 'Yes', '2019-01-29 14:15:09'), (123, 'banner', 'banner restore root', 'restore', 'view', 'Yes', '2019-01-29 14:15:36'), (124, 'blog', 'blog news public', 'https://blog.gamatechno.com/', 'view', 'Yes', '2019-01-30 06:19:36'), (125, 'contact', 'contact restore admin', 'restore', 'view', 'Yes', '2019-01-30 06:39:23'), (126, 'contact', 'contact restore root', 'restore', 'view', 'Yes', '2019-01-30 06:39:48'); -- -------------------------------------------------------- -- -- Table structure for table `default_user` -- CREATE TABLE `default_user` ( `userId` bigint(20) NOT NULL, `groupId` bigint(20) NOT NULL, `realname` varchar(100) DEFAULT NULL, `username` varchar(32) DEFAULT NULL, `password` varchar(32) DEFAULT NULL, `foto` varchar(255) DEFAULT NULL, `active` enum('Yes','No') DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `default_user` -- INSERT INTO `default_user` (`userId`, `groupId`, `realname`, `username`, `password`, `foto`, `active`) VALUES (1, 1, 'Superadmin', 'root', '<PASSWORD>', '1801191721.jpg', 'Yes'), (2, 2, 'Admin', 'admin', '<PASSWORD>', '1301194340.jpg', 'Yes'), (18, 1, 'di<NAME>', 'ayu', 'fd7edab115ca8fce3462417d77a7e0ef', '', 'No'), (19, 1, 'admin2', 'ayu1', '<PASSWORD>', '', 'Yes'), (20, 1, 'novianto yes', 'masmeks', '<PASSWORD>0505eafe81b', '1103191942.jpg', 'Yes'), (21, 1, 'suhendra', 'suhendra', 'cab73b61d338412339e924b18555c05a', '', 'Yes'); -- -------------------------------------------------------- -- -- Table structure for table `identity` -- CREATE TABLE `identity` ( `id_identity` int(11) NOT NULL, `website_name` varchar(100) NOT NULL, `website_address` varchar(100) NOT NULL, `description` text NOT NULL, `address` text NOT NULL, `phone` char(12) NOT NULL, `email` varchar(20) NOT NULL, `google_plus` varchar(20) NOT NULL, `twitter` varchar(20) NOT NULL, `facebook` varchar(20) NOT NULL, `linkedin` varchar(20) NOT NULL, `instagram` varchar(20) NOT NULL, `meta_description` varchar(255) NOT NULL, `meta_keyword` varchar(255) NOT NULL, `favicon` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `identity` -- INSERT INTO `identity` (`id_identity`, `website_name`, `website_address`, `description`, `address`, `phone`, `email`, `google_plus`, `twitter`, `facebook`, `linkedin`, `instagram`, `meta_description`, `meta_keyword`, `favicon`) VALUES (2, 'PT. Pukka Solusi Indonesia', 'http://pukka.com', 'PT. Pukka Solusi Indonesia adalah perusahaan yang memiliki fokus pada pengembangan produk dan solusi teknologi informasi yang bergerak pada layanan desain, konsultasi dan teknologi informasi ', 'Jalan Cik Di Tiro no. 34, Yogyakarta 55223, Indonesia\r\n ', '+8222 23421', '<EMAIL>', 'pukka', 'pukka', 'pukka', 'pukkacom', 'pukkacom', 'PT. Pukka Solusi Indonesia adalah perusahaan yang memiliki fokus pada pengembangan produk dan solusi teknologi informasi yang bergerak pada layanan desain, konsultasi dan teknologi informasi ', 'Portal PT. Pukka Solusi Indonesia', 'PT. Pukka Solusi Indonesia_1201192209.png'); -- -------------------------------------------------------- -- -- Table structure for table `link` -- CREATE TABLE `link` ( `id_link` int(11) NOT NULL, `link_title` varchar(50) NOT NULL, `link` varchar(255) NOT NULL, `label` varchar(255) NOT NULL, `status` enum('Y','N') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `link` -- INSERT INTO `link` (`id_link`, `link_title`, `link`, `label`, `status`) VALUES (2, 'Home', 'homepage', 'Home', 'Y'), (3, 'About Us', 'about/company_profile', 'About Us', 'Y'), (4, 'service', 'services/design', 'Services', 'Y'), (5, 'News', 'newsblog/news', 'News', 'Y'), (6, 'Contact', 'contact', 'Contact', 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `news` -- CREATE TABLE `news` ( `id_news` int(11) NOT NULL, `fk_id_category` int(11) NOT NULL, `fk_userId` bigint(20) NOT NULL, `news_title` varchar(100) NOT NULL, `headline` text NOT NULL, `news_content` text NOT NULL, `news_seo` varchar(255) NOT NULL, `meta_desc` varchar(100) NOT NULL, `meta_keyword` varchar(100) NOT NULL, `image` varchar(255) NOT NULL, `posted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` enum('Y','N') NOT NULL, `is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `news` -- INSERT INTO `news` (`id_news`, `fk_id_category`, `fk_userId`, `news_title`, `headline`, `news_content`, `news_seo`, `meta_desc`, `meta_keyword`, `image`, `posted_at`, `status`, `is_deleted`) VALUES (1, 20, 1, 'SEMANTIC JAWARA KOMPETISI OJK FINTECH DAYS 2018', 'Gamatechno.com 28/10/2018 OJK dan Asosiasi Fintech Indonesia (AFTECH) kembali selenggarakan “OJK Fintech Days 2018” di beberapa kota di Indonesia. Setelah Medan, Manado dan Batam, event ini digelar di Bali yang merupakan kota terakhir untuk rangkaian kegiatan tahun ini.', '<p>Gamatechno.com 28/10/2018 OJK dan Asosiasi Fintech Indonesia (AFTECH) kembali selenggarakan &ldquo;OJK Fintech Days 2018&rdquo; di beberapa kota di Indonesia. Setelah Medan, Manado dan Batam, event ini digelar di Bali yang merupakan kota terakhir untuk rangkaian kegiatan tahun ini.<br />\n<br />\nAcara ini berlangsung di Discovery Shopping Mall mulai pukul 10.00 WITA dan diharapkan dapat menjadi tempat mempertemukan para pelaku dan penggiat teknologi finansial sehingga mampu menghasilkan kesepakatan dan komitmen bersama untuk memajukan dan mengembangkan industri kecil di Indonesia.<br />\n<br />\n&ldquo;Fintech Days 2018&rdquo; mengusung tema &ldquo;Indonesia Digital Paradise&rdquo; dan berlangsung selama tiga hari, 25-27 Oktober. Sebanyak 60 perusahaan fintech dari 73 penyelenggara layanan pinjam meminjam uang berbasis teknologi informasi yang tercatat di OJK ikut terlibat dalam kegiatan ini. Dalam event ini juga diadakan kompetisi untuk fintech startup, untuk tahap awal setiap startup mengirimkan proposal secara online. 5 startup terpilih berhak menghadiri coaching clinic serta berkesempatan untuk pitching di depan dewan juri. Semantic yang merupakan produk inkubasi yang dikembangkan oleh Datains (subsidiary company Gamatechno) berhasil keluar sebagai juara 1 dalam kompetisi tersebut. &ldquo;Kami bersyukur dapat memenangkan acara ini dan berharap dengan ikut acara ini, kita bisa mendapatkan exposure ke venture capital dan calon klien&rdquo; ungkap I Gede Putu Rahman Desyanta (Senior Manager Datains)<br />\n<br />\nSemantic menjadi solusi dalam mencari, memantau, mengukur, menganalisa lebih banyak berita dan media sosial sehingga mampu memberikan insight dalam bidang branding, social behavioral mapping dan electoral campaign.</p>\n', 'semantic-jawara-kompetisi-ojk-fintech-days-2018', 'OJK dan Asosiasi Fintech Indonesia (AFTECH) kembali selenggarakan “OJK Fintech Days 2018” di beberap', 'fintech days', 'ojk.jpeg', '2019-01-31 08:37:37', 'Y', 0), (2, 20, 1, 'SAFE TRAVEL JADI KEBANGGAAN KEMENLU DALAM HASSAN WIRAJUDA AWARD 2018', 'Jakarta: Malam Penganugerahan “The Hassan Wirajuda Award (HPWA) 2018 kembali digelar untuk ke-4 kalinya pada Jum’at (07/12/2018) bertempat di Ruang Nusantara, Kementerian Luar Negeri Republik Indonesia. 19 orang menerima penghargaan ini mewakili tujuh kategori', '<p>Jakarta: Malam Penganugerahan &ldquo;The Hassan Wirajuda Award (HPWA) 2018 kembali digelar untuk ke-4 kalinya pada Jum&rsquo;at (07/12/2018) bertempat di Ruang Nusantara, Kementerian Luar Negeri Republik Indonesia. 19 orang menerima penghargaan ini mewakili tujuh kategori, yaitu pemerintah daerah, masyarakat madani Indonesia, jurnalis dan media, kepala perwakilan RI, staff perwakilan RI, mitra kerja Kemenlu dan mitra kerja perwakilan RI.<br />\r\n<br />\r\nHPWA merupakan event tahunan Kemenlu untuk memberikan apresiasi terhadap pejuang perlindungan Warga Negara Indonesia (WNI). Penghargaan ini diberikan kepada berbagai pihak, induvidu dan lembaga yang berkontribusi terhadap upaya perlindungan Warga Negara Indonesia di luar negeri.<br />\r\n<br />\r\nNurianto Kama selaku Branch Manager Gamatechno Jakarta hadir memenuhi undangan Kemenlu mengungkapkan rasa bangga dapat menjadi bagian dalam upaya perlindungan WNI.<br />\r\n<br />\r\n&ldquo;Bangga Gamatechno menjadi bagian dari pengembangan aplikasi Safe Travel dan yang tak kalah penting aplikasi ini dapat membawa manfaat dan mendukung program pemerintah khususnya terhadap perlindungan WNI.&rdquo; ungkap Kama.<br />\r\n<br />\r\nSeperti yang kita ketahui, Safe Travel diluncurkan oleh Menteri Luar Negeri Retno L.P. Marsudi pada April 2018 lalu. Safe Travel menjadi platform teknologi yang diukung dengan berbagai fitur untuk keselamatan WNI yang sedang maupun hendak bepergian ke luar negeri.<br />\r\n<br />\r\nDalam kesempatan ini pula Kemenlu mengajak seluruh undangan untuk mengunduh dan menggunakan aplikasi Safe Travel. Tidak hanya itu, art performer juga membawakan cerita dengan apik seorang WNI yang mengalami kondisi darurat/kecelakaan kemudian menggunakan Safe Travel untuk langsung terhubung ke Kedutaan RI di Negara tersebut.</p>\r\n', 'safe-travel-jadi-kebanggaan-kemenlu-dalam-hassan-wirajuda-award-2018', 'Seperti yang kita ketahui, Safe Travel diluncurkan oleh Menteri Luar Negeri Retno L.P. Marsudi pada ', 'safe travel', 'travel.jpg', '2019-01-31 08:36:56', 'Y', 0), (3, 20, 1, 'LEBIH TRANSPARAN DAN EFISIEN, PEMERINTAH KOTA SALATIGA LUNCURKAN SIM ULP', 'Pemerintah Kota Salatiga luncurkan Sistem Informasi Manajemen Unit Layanan Pengadaan (SIM ULP). Acara ini digelar Kamis lalu, bertempat di ruang Sekretariat Kota Salatiga yang dihadiri langsung oleh <NAME>, <NAME> selaku wali kota Salatiga serta perwakilan dari ODP daerah tersebut yang berjumlah 120 peserta.', '<p>Pemerintah Kota Salatiga luncurkan Sistem Informasi Manajemen Unit Layanan Pengadaan (SIM ULP). Acara ini digelar Kamis lalu, bertempat di ruang Sekretariat Kota Salatiga yang dihadiri langsung oleh <NAME>, <NAME> selaku wali kota Salatiga serta perwakilan dari ODP daerah tersebut yang berjumlah 120 peserta.<br />\r\n<br />\r\nDalam kesempatan ini Walikota meluncurkan aplikasi pengiriman berkas pengadaan sampai dengan pelaporan hasil pengadaan. Aplikasi tersebut dapat diakses melalui pbj.salatiga.go.id. Peluncuran sistem ini dilatarbelakangi oleh permasalahan permohonan dokumen secara cetak manual yang memakan waktu lebih lama, sehingga dibuatlah sistem ini untuk mempermudah pengajuan dokumen pengadaan sebelum dilelangkan.<br />\r\n<br />\r\n&ldquo;Pemanfaatan teknologi informasi di bidang pengadaan barang/jasa telah mengembalikan kepercayaan masyarakat, karena dinilai lebih transparan dan lebih efisien. Terbukti jika melalui Layanan Pengadaan Secara Elektronik (LPSE), telah diperoleh efisiensi pengadaan sebesar 10% setiap tahunnya,&rdquo; papar Yuliyanto.<br />\r\n<br />\r\nHal senada juga diungkapkan oleh <NAME> (Government Solution Manager Gamatechno), Ia berharap launching ini dapat menjadi menjadi solusi akan kemudahan dan transparansi pada proses lelang, sehingga lebih efektif dan efisien.<br />\r\n<br />\r\nSIM ULP ini dikembangkan oleh Gamatechno yang dimulai pada bulan Oktober tahun ini. Aplikasi ini memiliki banyak kelebihan yaitu adanya notifikasi sms kepada pengguna untuk setiap proses, serta dapat menggunakan tanda tangan digital dan terintegrasi dengan Sistem Informasi Rencana Umum Pengadaan (SIRUP) pada Layanan Pengadaan Secara Elektronik (LPSE).<br />\r\n<br />\r\n<br />\r\n<br />\r\n&ldquo;Aplikasi ini memiliki fitur-fitur yang mempermudah dan mempercepat pekerjaan pengadaan barang/jasa. Diantaranya, pembuatan surat dan dokumentasi secara digital, menu kaji ulang paket, reminder jadwal pemilihan penyedia, dan lain sebagainya. Diharapkan dengan adanya aplikasi ini, pengadaan barang/jasa dapat berjalan cepat dan terdokumentasi,&rdquo; pungkas Kabag Pembangunan Setda.<br />\r\n<br />\r\nPopular News Gamatechno Adakan Training Big Data untuk Diskominfo Kediri Dari Jogja untuk Indonesia Pintar LAN Sosialisasikan Aplikasi SIPKA Untuk Tingkatkan Pelayanan Kunjungan Industri ke Gamatechno Dari Yogyakarta untuk Indonesia Aplikasi Anti Plagiarism di UGM Benefit Digitalisasi Persuratan IT Roadshow In Europe Refreshing Di Tengah Rutinitas Bekerja Kemitraan dengan Integrasia Utama Latest News</p>\r\n', 'lebih-transparan-dan-efisien-pemerintah-kota-salatiga-luncurkan-sim-ulp', 'Pemerintah Kota Salatiga luncurkan Sistem Informasi Manajemen Unit Layanan Pengadaan (SIM ULP).', 'pemkot salatiga', 'sim.jpeg', '2019-01-31 08:35:01', 'Y', 0), (4, 20, 1, 'LAN SOSIALISASIKAN APLIKASI SIPKA UNTUK TINGKATKAN PELAYANAN', 'Lembaga Administrasi Negara (LAN) Republik Indonesia selenggarakan sosialisasi aplikasi SIPKA, Sistem Informasi Pengembangan Kompetensi Aparatur Sipil Negara (ASN) di kantor LAN Pusat, Gedung B Lantai 8 dan dihadiri oleh 133 peserta yang terdiri dari Person In Charge (PIC) Pusat/Badan Sumber Daya Manusia (P/BSDM) Kementerian/Lembaga/Daerah (K/L/D)', '<p>Lembaga Administrasi Negara (LAN) Republik Indonesia selenggarakan sosialisasi aplikasi SIPKA, Sistem Informasi Pengembangan Kompetensi Aparatur Sipil Negara (ASN) di kantor LAN Pusat, Gedung B Lantai 8 dan dihadiri oleh 133 peserta yang terdiri dari Person In Charge (PIC) Pusat/Badan Sumber Daya Manusia (P/BSDM) Kementerian/Lembaga/Daerah (K/L/D).<br />\r\n<br />\r\nTujuan pada sosialisasi ini untuk mengenalkan sistem manajemen kediklatan dan pengembangan SIPKA. SIPKA merupakan pengembangan lanjutan dari SIDA (Sistem Informasi Diklat Aparatur) yang telah dilakukan penyusunan grand design pada tahun 2016 oleh Gamatechno sedangkan pembangunan SIPKA dimulai dari tahun 2017 dan pengembangannya di tahun 2018.<br />\r\n<br />\r\nBerdasarkan Undang Undang No. 5 tahun 2014 tentang Aparatur Sipil Negara pasal 43 disebutkan salah satu fungsi LAN adalah pembinaan pendidikan dan pelatihan kompetensi manajerial pegawai ASN dengan berbagai gugus tugas di bidang diklat yang tertuang pada pasal 44. Salah satu butirnya adalah melalui membina dan menyelenggarakan pendidikan dan pelatihan pegawai ASN berbasis kompetensi.<br />\r\n<br />\r\nSejalan dengan itu, PP No.11 tahun 2017 dengan tegas disebutkan dalam pasal 219 Lembaga Administrasi Negara (LAN) bertanggung jawab atas pengaturan, koordinasi dan penyelenggaraan pengembangan kompetensi, dan di pasal 220 pelaksanaan pengembangan kompetensi diinformasikan melalui sistem informasi pelatihan yang terintegrasi dengan sistem informasi ASN.<br />\r\n<br />\r\nDengan demikian untuk memenuhi kebutuhan tersebut, LAN berkewajiban untuk mengembangkan sistem informasi. Pengembangan SIPKA adalah untuk lebih memberikan peningkatan pelayanan stakeholder dan peningkatan mutu pada SI/TI di lingkungan Lembaga Administrasi Negara.<br />\r\n<br />\r\n&ldquo;SIPKA ini juga mengakomodasi proses pengembangan kompetensi pegawai. Karena data pengembangan kompetensi pegawai akan terintegrasi secara nasional dan dimonitor&rdquo; tutur Rudi Masthofani selaku Kepala Bidang Akreditasi dan SIDA Pusat Pengembangan Program dan Pembinaan Diklat LAN<br />\r\n<br />\r\nSelain aplikasi SIPKA, Gamatechno juga mengembagkan e-learning yang terintegrasi untuk ASN/PNS dan aplikasi Feeder Pengembangan Kompetensi (Bangkom) untuk menginventarisir dan mengevaluasi kompetensi ASN/PNS.</p>\r\n', 'lan-sosialisasikan-aplikasi-sipka-untuk-tingkatkan-pelayanan', 'Lembaga Administrasi Negara (LAN) Republik Indonesia selenggarakan sosialisasi aplikasi SIPKA, Siste', 'aplikasi sipka', 'sipka.jpeg', '2019-01-31 08:33:32', 'Y', 0), (5, 19, 1, 'PERMUDAH PERJALANAN DINAS BUMN DENGAN XPLORIN BUMN TRAVEL FORM', 'Gamatechno - Memiliki kekayaan alam dan budaya yang beragam dan melimpah menjadikan pariwasata sebagai sektor yang diharapkan memberikan kontribusi positif terutama dalam segi perekenomian. Dalam hal ini, BUMN berperan penting dalam kemajuan sektor pariwisata di Indonesia', '<p>Gamatechno - Memiliki kekayaan alam dan budaya yang beragam dan melimpah menjadikan pariwasata sebagai sektor yang diharapkan memberikan kontribusi positif terutama dalam segi perekenomian. Dalam hal ini, BUMN berperan penting dalam kemajuan sektor pariwisata di Indonesia.<br />\r\n<br />\r\nFocus Group Discussion dan Go Live &ldquo;XPLORIN BUMN Travel&rdquo; digelar pada Jum&rsquo;at (07/12/2018) bertempat di Grand Dafam Rohan Hotel, Yogyakarta. Kegiatan ini adalah wujud sinergi perusahaan BUMN dalam inisiasi bisnis digital dari Kedeputian Bidang Usaha Energi, Logistik, Kawasan, dan Pariwisata untuk Kementerian Badan Usaha Milik Negara Republik Indonesia.<br />\r\n<br />\r\nSebagaimana diketahui bahwa Xplorin telah diluncurkan pada Januari 2017 lalu. Xplorin merupakan platform digital pariwisata yang menjadi penghubung ekosistem antara wisatawan dengan produk-produk layanan milik BUMN dan pelaku industri pariwisata di Indonesia melalui fitur unggulan seperti community forum dan attraction &amp; tour planner yang bisa menampilkan customized ittinerary sendiri. Xplorin diinisiasi oleh Indonesia Tourism Development Corporation (ITDC) yang bekerjasama dengan PT Gamatechno Indonesia.<br />\r\n<br />\r\nKegiatan ini dihadiri oleh 32 perwakilan anak perusahaan BUMN sebagai peserta forum diskusi yang berlangsung selama 2 hari. Sebagai narasumber dalam forum ini, <NAME> (Asisten Deputi Bidang Usaha Energi, Logistik, Kawasan dan Pariwisata Kementerian BUMN), Wiganggo (Direktur Xplorin), Rofik (Direktur ITDC Nusantara Utilitas dan founder Xplorin), <NAME> (Manager Corporate Business Solution Gamatechno), Hidayat (Lead Developer Gamatechno untuk Xplorin) sedang memaparkan platform Xplorin<br />\r\n<br />\r\nTerdapat pula agenda soft launching untuk 2 produk Xplorin yaitu Xplorin untuk B2C berupa mobile apps dan website serta Xplorin untuk B2B atau yang disebut dengan BUMN Travel. BUMN Travel mengkolaborasikan antara Travel Form atau SPPD dengan sistem online ticketing atau OTA (Online Travel Agent) dimana BUMN bisa melakukan pengajuan perjalanan dinas serta pembelian tiket di dalam satu platform.<br />\r\n<br />\r\n<NAME> selaku Manager Corporate Business Solution Gamatechno berharap fitur Xplorin BUMN Travel ini dapat membantu dan mempermudah dalam pengelolaan SPPD (perjalanan dinas) karena tidak perlu switching ke aplikasi lain untuk urusan ticketing, cukup dalam satu aplikasi dan satu laporan yang terintegrasi.<br />\r\n<br />\r\nXplorin adalah wujud nyata Pokja Digital dalam mendukung target pemerintah khususnya BUMN untuk mendatangkan wisatawan mancanegara sejumlah 20 Juta orang pada tahun 2019. Gamatechno berperan penting dalam proses development dan implementasi aplikasi Xplorin sebagai Tourism Digital Platform baik pada platform B2C maupun B2B sejak 2017 lalu.<br />\r\n<br />\r\nPopular News Gamatechno Adakan Training Big Data untuk Diskominfo Kediri Dari Jogja untuk Indonesia Pintar LAN Sosialisasikan Aplikasi SIPKA Untuk Tingkatkan Pelayanan Kunjungan Industri ke Gamatechno Dari Yogyakarta untuk Indonesia Aplikasi Anti Plagiarism di UGM Benefit Digitalisasi Persuratan IT Roadshow In Europe Refreshing Di Tengah Rutinitas Bekerja Kemitraan dengan Integrasia Utama Latest News</p>\r\n', 'permudah-perjalanan-dinas-bumn-dengan-xplorin-bumn-travel-form', 'Focus Group Discussion dan Go Live “XPLORIN BUMN Travel” digelar pada Jum’at (07/12/2018) bertempat ', 'bumn travel', 'xplorin.jpeg', '2019-01-31 08:32:56', 'Y', 0), (6, 19, 1, 'HUT KE-14 GAMATECHNO LAHIRKAN 2 ANAK PERUSAHAAN BARU', 'Selain menyandang gelar sebagai kota pelajar, Yogyakarta juga tidak bisa lepas dari predikat sebagai gudang-nya kreativitas. Apalagi memasuki era industri 4.0 yang menuntut berkembangnya bisnis kreatif dan inovatif dengan terobosan teknologi', '<p>Selain menyandang gelar sebagai kota pelajar, Yogyakarta juga tidak bisa lepas dari predikat sebagai gudang-nya kreativitas. Apalagi memasuki era industri 4.0 yang menuntut berkembangnya bisnis kreatif dan inovatif dengan terobosan teknologi, Yogyakarta semakin terdorong melalui pusat-pusat inkubasi baik dari pemerintah maupun inisiatif pihak swasta.<br />\r\n<br />\r\nSejak 2005 Gamatechno mulai merintis memberi layanan solusi teknologi informasi untuk dunia perguruan tinggi. Hingga saat ini Gamatechno memiliki lebih dari 200 klien B2B (business to business) baik kampus, pemerintahan, pengelola transportasi hingga korporasi dalam daftar panjang portfolio Gamatechno.<br />\r\n<br />\r\nSolusi teknologi multi produk dan multi segmen ini kemudian diusung dengan brand Gamatechno Smart City Solution pada 2014. Sejak saat itu pula Gamatechno mulai dikenal sebagai salah satu perusahaan pengembang kota cerdas di Indonesia dan fokus pada implementasi teknologi untuk mendukung terciptanya konsep smart city di seluruh Indonesia.<br />\r\n<br />\r\nPada sektor pendidikan tinggi, Gamatechno berkontribusi di 200 kampus di seluruh Indonesia baik negeri maupun swasta untuk kebutuhan teknologi informasi pengelolaan kampus. Sedangkan untuk sektor pariwisata dan pelayanan publik, pemerintah daerah/kabupaten telah banyak menggunakan platform mCity.<br />\r\n<br />\r\nBertepatan dengan ulang tahun ke-14, Gamatechno menggelar perayaan di Prambanan Ballroom Cavinton Hotel pada 4 Januari 2019 dan dihadiri oleh oleh seluruh karyawan, direksi, komisaris dan management.<br />\r\n<br />\r\nPada momentum yang sama Gamatechno secara resmi mengumumkan dua anak perusahaan baru di bawah holding Gamatechno Group yaitu PT Solusi Kampus Indonesia (SKI) dan Global Data Inspirasi (Datains). SKI akan mengakselerasi produk dan layanan khususnya untuk kebutuhan sistem untuk perguruan tinggi. Sedangkan Datains akan berfokus pada layanan dan pengelolaan big data.<br />\r\n<br />\r\nSejalan dengan tema yang diusung pada ulang tahun kali ini, &ldquo;Hatch the Dream&rdquo; yang berarti melahirkan mimpi. Dua perusahaan baru ini diharapkan dapat membawa kontribusi positif bagi segmen bisnisnya. Secara luas dapat membawa manfaat dari penerapan teknologi baru di industri-industri di Indonesia dan dalam acara ini dihadiri oleh seluruh karyawan, direksi, komisaris dan management.<br />\r\n<br />\r\nSeperti tahun-tahun sebelumnya perayaan ulang tahun ini juga dimanfaatkan sebagai momen evaluasi dan apresiasi bagi seluruh kinerja karyawan yang berjumlah kurang lebih 200 orang. Dimeriahkan oleh performer dari internal karyawan dengan menampilkan berbagai aksi panggung seperti band, lipsync, dance dan opera komedi.<br />\r\n<br />\r\n14 tahun merupakan pencapaian yang luar biasa bagi Gamatechno. Berbagai apresiasi dan penghargaan dari berbagai pihak mewarnai perjalanan panjang dalam berinovasi dan berkontribusi untuk Indonesia. Bermula dari Yogyakarta membawa misi besar untuk meraih mimpi-mimpi baru dan menjadi kebanggaan bagi bangsa.</p>\r\n', 'hut-ke14-gamatechno-lahirkan-2-anak-perusahaan-baru', 'Bertepatan dengan ulang tahun ke-14, Gamatechno menggelar perayaan di Prambanan Ballroom Cavinton Ho', 'hut gamatechno', 'hutgt14.jpg', '2019-01-31 08:30:58', 'Y', 0), (7, 19, 1, 'APLIKASI ANTI PLAGIARISM DI UGM', 'Semakin maju teknologi dan berkembangnya jaringan internet membuat semakin mudah bagi kita untuk mendapatkan berbagai macam informasi baik dari buku, jurnal, maupun blog. Kemudahan tersebut sayangnya juga diiringi dengan tumbuh berkembangnya aksi plagiarisme yang menodai dapat menodai integritas', '<p>Semakin maju teknologi dan berkembangnya jaringan internet membuat semakin mudah bagi kita untuk mendapatkan berbagai macam informasi baik dari buku, jurnal, maupun blog. Kemudahan tersebut sayangnya juga diiringi dengan tumbuh berkembangnya aksi plagiarisme yang menodai dapat menodai integritas. Plagiarisme merupakan tindak kejahatan intelektual. Pelakunya dapat terseret ke ranah hukum dan sekaligus bisa mendapat sanksi sosial, berupa berkurangnya integritas, tercemarnya nama baik dst. Lebih fatal lagi jika plagiarisme terjadi di lingkungan kampus dan berhubungan dengan tugas akhir, skripsi, tesis, ataupun disertasi. Pekerjaan mahasiswa yang seharusnya orisinil menjadi sia-sia karena menyadur dari karya orang lain. Kampus mempunyai tugas berat untuk menjaga integritasnya dengan menekan se-minimal mungkin aksi-aksi plagiarisme dilingkungannya, dan hal itu bukanlah sebuah tugas yang mudah untuk kampus.<br />\r\n<br />\r\nGamatechno memahami keresahan itu dengan memperkenalkan aplikasi berbasis web yang diberi nama gtPlagiarismTest. Aplikasi ini telah mendapatkan banyak apresiasi, baik dari dalam dan luar negeri, sejak dikembangkan di lingkungan UGM dalam versi desktop-application dengan nama TESSY (Test of Literature Similarity). Salah satunya adalah predikat juara satu lomba e-Learning yang diadakan oleh Acer Intel pada tahun 2008, dan masuk kedalam buku 106 Inovasi Indonesia di tahun 2013 yang lalu.<br />\r\n<br />\r\nSebagai tahap awal dalam mengimplementasikan gtPlagiarismTest di seluruh lingkungan Universitas Gadjah Mada, dimulasi dengan melakukan kegiatan sosialisasi di Fakultas Kedokteran UGM. Untuk versi yang digunakan di UGM, gtPlagiarismeTest dibranding dengan nama AIMOS (Academic Integrity Monitoring System). AIMOS diharapkan mampu membantu institusi pendidikan dalam mendeteksi lebih dini adanya aktifitas plagiasi pada karya-karya literatur yang ada di UGM. Aplikasi ini mampu menangkap kemiripan dari tingkat kata, kalimat, hingga paragraf antar literatur dalam satu kategori maupun multikategori. Hasil komparasinya disajikan dalam bentuk nilai prosentase kemiripan dimana detil daripada kalimat maupun paragraf yang mirip juga dapat di tampilkan. Hasil akhirnya berupa suggesstion dimana keputusan bahwa pada sebuah literatur yang sudah di uji mengindikasikan plagiasi atau tidak diserahkan kepada pihak universitas.<br />\r\n<br />\r\nAcara sosialisasi AIMOS tersebut dilaksanakan tanggal 2 Maret 2015 dan direncanakan akan gelar kembali pada tanggal 9 Maret untuk lebih mematangkan pemahaman peserta terhadap AIMOS. Peserta yang hadir, termasuk diantaranya adalah Wakil Dekan bagian Akademik Fakultas Kedokteran UGM, yang memberikan apresiasi positif terhadap acara ini dan berkenan mencoba secara langsung &quot;full-cycle&quot; aplikasi anti plagiarisme ini. Diharapkan aplikasi yang sangat handal ini dapat meningkatkan kualitas dan orisinalitas karya tulis mahasiswa.</p>\r\n', 'aplikasi-anti-plagiarism-di-ugm', 'Gamatechno memahami keresahan itu dengan memperkenalkan aplikasi berbasis web yang diberi nama gtPla', 'anti plagiarism', 'aplikasi.jpg', '2019-01-31 08:30:05', 'Y', 0), (8, 19, 1, 'IT ROADSHOW IN EUROPE', 'Diawali dengan partisipasi dalam pameran ICT terbesar di dunia yaitu CeBIT, 15 pelaku IT Indonesia termasuk Gamatechno juga mengikuti \"IT Roadshow in Europe\" ke Belgia, Belanda, dan Irlandia. Roadshow ini difasilitasi oleh Kementerian Perindustrian RI bersama KBRI Brussel, KBRI Den Haag, KBRI London, dan KJRI Hamburg', '<p>Diawali dengan partisipasi dalam pameran ICT terbesar di dunia yaitu CeBIT, 15 pelaku IT Indonesia termasuk Gamatechno juga mengikuti &quot;IT Roadshow in Europe&quot; ke Belgia, Belanda, dan Irlandia. Roadshow ini difasilitasi oleh Kementerian Perindustrian RI bersama KBRI Brussel, KBRI Den Haag, KBRI London, dan KJRI Hamburg. Tujuan roadshow ini adalah untuk mempromosikan produk dan layanan teknologi komunikasi dan informasi Indonesia di Eropa.<br />\r\n<br />\r\nDi Belgia, mereka berkunjung ke Centre of Excellence in Information and Communication Technologies (CETIC) dan bertemu dengan pelaku usaha IT Belgia dalam forum business gathering yang diadakan KBRI Brussel bekerjasama dengan Kamar Dagang Belgia Indonesia (BICC). Wakil Menteri Perdagangan RI Bayu Krisnamurthi juga hadir dalam acara business gathering tersebut.<br />\r\n<br />\r\nCETIC merupakan pusat riset terapan Belgia yang didedikasikan untuk mendukung perusahaan di sektor teknologi informasi dan komunikasi. Dari pertemuan di CETIC tersebut, baik pihak Indonesia maupun Belgia melihat adanya beberapa peluang kerjasama, dimana Indonesia sebagai sumber tenaga outsourcing Eropa maupun sebagai mitra dalam mengembangkan akses pasar ke Asia.<br />\r\n<br />\r\nDalam roadshow di Belanda, pelaku IT Indonesia berpartisipasi dalam Indonesian Day di High Tech Campus, Eindhoven. Kemudian dalam kunjungan ke Dublin - Irlandia, pelaku IT Indonesia juga bertemu dengan pelaku IT di negara tersebut. Pertemuan ini diharapkan akan membuka peluang kerjasama dengan pelaku IT terkemuka seperti Google, Microsoft dan Yahoo!.<br />\r\n<br />\r\nTak dapat dipungkiri, kini IT merupakan sektor penting dalam perekonomian Indonesia dan menjadi salah satu elemen dalam upaya peningkatan hubungan RI dengan Uni Eropa. Seperti yang dikutip www.antaranews.com, <NAME> menekankan kemampuan SDM Indonesia dalam hal produk dan layanan IT tidak kalah dibandingkan dengan negara lain seperti India yang sudah terlebih dahulu dikenal dalam hal produk dan layanannya.<br />\r\n<br />\r\nUntuk itu, sudah waktunya Eropa melihat ke Indonesia tidak hanya sebagai pasar namun sebagai penyedia produk dan layanan IT yang patut diperhitungkan. Diharapkan melalui penyelenggaraan roadshow ini akan membuka peluang-peluang kerjasama, baik Indonesia sebagai pasar maupun mitra dalam pengembangan berbagai produk dan layanan untuk pasar regional maupun global.<br />\r\n<br />\r\nTautan: <a href=\"http://www.antaranews.com/berita/424796/industri-ti-indonesia-berperan-tumbuhkan-ekonomi\"> http://www.antaranews.com/berita/424796/industri-ti-indonesia-berperan-tumbuhkan-ekonomi</a></p>\r\n', 'it-roadshow-in-europe', 'Diawali dengan partisipasi dalam pameran ICT terbesar di dunia yaitu CeBIT, 15 pelaku IT Indonesia t', 'it roadshow', 'roadshow.jpg', '2019-01-31 08:29:07', 'Y', 0), (9, 20, 1, 'REFRESHING DI TENGAH RUTINITAS BEKERJA', 'Menghadapi kesibukan sehari-hari terutama dalam melakukan aktifitas pekerjaan, sering kali waktu untuk berbagi bersama keluarga dan bahkan sesama karyawan menjadi berkurang. Oleh karena itu, menyadari pentingnya menjaga keseimbangan dalam bekerja (worklife balance), PT Gamatechno Indonesia kembali melaksanakan Family Gathering yang telah menjadi kegiatan rutin setiap tahun', '<p>Menghadapi kesibukan sehari-hari terutama dalam melakukan aktifitas pekerjaan, sering kali waktu untuk berbagi bersama keluarga dan bahkan sesama karyawan menjadi berkurang. Oleh karena itu, menyadari pentingnya menjaga keseimbangan dalam bekerja (worklife balance), PT Gamatechno Indonesia kembali melaksanakan Family Gathering yang telah menjadi kegiatan rutin setiap tahun. Kali ini Family Gathering diadakan pada hari Minggu, tanggal 15 Desember 2013 di Taman Kyai Langgeng Magelang.<br />\r\n<br />\r\nTujuan kegiatan ini antara lain untuk menjaga hubungan baik antara sesama karyawan, saling mempererat hubungan pertemanan dan kekerabatan antara keluarga karyawan yang satu dengan yang lainnya, mempererat kerja sama antara sesama karyawan, serta menghilangkan beban pekerjaan yang selama ini dilakukan.<br />\r\n<br />\r\nDi tengah lokasi yang asri dengan pemandangan indah dan udara yang sejuk, panitia menggelar beragam kegiatan, mulai dari perkenalan keluarga hingga permainan menarik yang membuat para keluarga dan karyawan terhibur. Pukul 07.30, rombongan karyawan beserta keluarga berangkat dari kantor menuju lokasi acara dengan menggunakan bis dan mobil. Pukul 9.00 rombongan tiba di lokasi Taman Kyai Langgeng Magelang. Acara diawali dengan pembagian makanan kecil, perkenalan keluarga karyawan, dan arahan dari Direktur Utama PT Gamatechno Indonesia.<br />\r\n<br />\r\nDalam sambutannya, Pak Aditya selaku Direktur Utama menyampaikan apresiasi terhadap kegiatan Family Gathering ini. Harapannya, dengan kegiatan ini keluarga karyawan dapat melihat secara langsung bagaimana lingkungan kerja anggota keluarganya sehingga tetap terjalin hubungan yang harmonis. Selain itu juga semakin eratnya hubungan kekeluargaan antar karyawan PT Gamatechno Indonesia.<br />\r\n<br />\r\nAcara dilanjutkan dengan permainan yang dibagi menjadi dua kelompok, yaitu permainan anak-anak didampingi orang tua dan permainan orang dewasa. Permainan anak-anak diperuntukkan bagi karyawan yang telah memiliki keluarga. Permainan ini terdiri dari lomba mewarnai untuk TK dan SD kelas 1, lomba melukis di celengan tanah liat untuk kelas 4-6 SD, dan lomba melukis caping untuk kelas 2-3 SD. Sedangkan, permainan orang dewasa untuk karyawan yang belum berkeluarga. Dalam permainan ini peserta dewasa diharuskan memecahkan 5 clue dan mengikuti petunjuknya. Target terakhir tim akan mendapatkan Pusaka Gamatechno jika dapat memecahkan clue dengan benar. Meski sempat diguyur hujan, semua permainan dilakukan dengan penuh keceriaan. Tawa lepas pun menggema ketika peserta permainan tanpa sengaja mengundang kelucuan.<br />\r\n<br />\r\nPukul 12.00 seluruh peserta menyelesaikan permainan dan dilanjutkan dengan pembagian doorprize dan pengumuman pemenang lomba diselingi live music dan makan siang. Tidak ketinggalan, beberapa karyawan turut menyumbangkan lagu sambil bergoyang. Keseruan ditambah dengan partisipasi dari keluarga besar Direktur Gamatechno, Pak Adityo beserta istri dan anak-anaknya yang ikut menyumbangkan suaranya. Dalam kegiatan ini, sama sekali tidak terlihat hubungan atasan dan bawahan, yang ada hanyalah hubungan kekerabatan yang membaur jadi satu.<br />\r\n<br />\r\nAcara selanjutnya bebas, seluruh karyawan dan keluarga dipersilahkan untuk menikmati area permainan di Taman Kyai Langgeng. Ada yang bermain flying fox, jet coaster, perahu motor, baling-baling, kincir angin atau sekedar foto-foto. Tak terasa, di penghujung siang, kegiatan Family Gathering PT Gamatechno Indonesia berakhir.<br />\r\n<br />\r\nDari seluruh rangkaian kegiatan family gathering tersebut, diharapkan dapat meningkatkan kinerja para karyawan di tengah kompetisi perusahaan yang semakin ketat. Oleh karena itu, Family Gathering diciptakan dengan suasana kekerabatan yang diwujudkan melalui silaturahmi untuk mempererat komitmen dan persahabatan yang menumbuhkan kebersamaan dalam pelaksanaan tugas masing-masing, antar karyawan dengan mitra kerja di PT Gamatechno Indonesia.</p>\r\n', 'refreshing-di-tengah-rutinitas-bekerja', 'PT Gamatechno Indonesia kembali melaksanakan Family Gathering yang telah menjadi kegiatan rutin seti', 'refreshing', 'refreshing.jpg', '2019-01-31 08:28:03', 'Y', 0), (10, 19, 1, 'DARI JOGJA UNTUK INDONESIA PINTAR', 'PT Gamatechno Indonesia (Gamatechno) adalah perusahaan yang bergerak di bidang penyedia solusi teknologi informasi. Gamatechno resmi berdiri pada tanggal 4 Januari 2005 dan berkantor pusat di Yogyakarta. Guna meningkatkan layanan kepada lebih dari 244 klien di seluruh Indonesia yang tersebar dari Banda Aceh hingga Papua', '<p>PT Gamatechno Indonesia (Gamatechno) adalah perusahaan yang bergerak di bidang penyedia solusi teknologi informasi. Gamatechno resmi berdiri pada tanggal 4 Januari 2005 dan berkantor pusat di Yogyakarta. Guna meningkatkan layanan kepada lebih dari 244 klien di seluruh Indonesia yang tersebar dari Banda Aceh hingga Papua, pada tahun 2013 Gamatechno membuka kantor cabang di Jakarta.<br />\r\n<br />\r\nDalam rangka ulang tahun perusahaan ke-9 yang membawa tema Nineovation, Gamatechno meluncurkan inovasi baru berupa konsep gtSmartCity Solution sebagai umbrella brand seluruh produk-produk Gamatechno. Inti dari gtSmartCity Solution adalah implementasi sistem dan teknologi informasi yang berfokus pada 4 sektor yaitu pendidikan, layanan pemerintah, industri transportasi dan logistik, serta industri lifestyle, yang akan mewujudkan sebuah kota cerdas dan memberikan kenyamanan bagi masyarakatnya dengan ciri less paper, less time, less cash dan less complexity.<br />\r\n<br />\r\nUntuk segmen Perguruan tinggi, produk unggulan Gamatechno adalah gtCampus Suite yaitu sistem informasi terintegrasi untuk perguruan tinggi yang terdiri atas berbagai software modular yang dirancang sesuai dengan proses bisnis perguruan tinggi mulai dari pengelolaan penerimaan calon mahasiswa, pengelolaan perkuliahan mahasiswa hingga lulus, pengelolaan aset kampus yang meliputi aset sumber daya manusia, keuangan dan aset barang, perpustakaan, penelitian dan beasiswa hingga dashboard system untuk pimpinan kampus. Selain itu sistem untuk perguruan tinggi ini juga tersedia dalam versi mobile untuk kemudahan mahasiswa dalam mengakses informasi dan layanan kampus.<br />\r\n<br />\r\nUntuk segmen Lembaga pemerintah Gamatechno memiliki beberapa produk unggulan, diantaranya adalah gtPerizinan (sistem informasi perijinan satu atap/pintu), gtAspirasi (sistem informasi aspirasi masyarakat), serta aplikasi gtGroupware (sistem kolaborasi dan arsip perkantoran). Selain produk-produk tersebut, Gamatechno juga melayani pengembangan portal website lembaga dengan konsep citizen centric, serta pengembangan berbagai aplikasi berbasis web dan mobile apps lainnya sesuai dengan kebutuhan lembaga.<br />\r\n<br />\r\nUntuk segmen Transportasi dan Logistik, Gamatechno mengembangkan beberapa produk unggulan bagi perusahaan/organisasi yang bergerak dibidang layanan transportasi dan logistik, yaitu gtFleet (aplikasi manajemen armada transportasi), gtSmartTicket System (Sistem tiket elektronik berbasis smartcard), serta aplikasi mTransport (aplikasi mobile untuk informasi dan layanan transportasi publik).<br />\r\n<br />\r\nPada segmen Lifestyle, Gamatechno mengembangkan produk-produk aplikasi back-end dan front-end untuk beberapa sub industri diantaranya taman hiburan dan wisata, pusat belanja dan entertainment, micro finance, dan industri kesehatan. Beberapa portofolio produk untuk segmen lifestyle ini antara lain Eoviz.com (Small &amp; medium enterprises resource planning system), mEvent (aplikasi mobile informasi event), serta mCatalog (aplikasi mobile informasi katalog produk).<br />\r\n<br />\r\nDalam kesempatan Launching gtSmartCity Solution pada hari Rabu, 7 Mei 2014 kemarin di Gedung Samator UGM juga disampaikan bahwa saat ini pengembangan produk dan layanan sistem berbasis teknologi smartcard, RFId dan NFC yang sebelumnya dilakukan Gamatechno dialihkan untuk dikelola anak perusahaan Gamatechno yaitu yaitu PT Aino Indonesia. Produk-produk yang dikembangkan Aino ini nantinya yang akan menjadi salah satu platform integrasi antar segmen hingga dapat mewujudkan konsep smartcity yang sesungguhnya.<br />\r\n<br />\r\nBerbagai kemudahan integrasi sistem dalam konsep gtSmartCity Solution didemokan secara langsung oleh Direktur Utama Gamatechno, <NAME> pada saat acara launching, yaitu kombinasi penggunaan aplikasi mobile City dengan perangkat smartcity access berupa wristband untuk melakukan pencarian informasi dan proses transaksi di bandara, layanan transportasi publik, aktivitas belanja dan sarana hiburan.<br />\r\n<br />\r\nMelalui Launching gtSmartCity Solution tersebut, Gamatechno juga berharap dapat meningkatkan kerjasama dengan para mitra untuk bersama-sama mewujudkan kota cerdas di Indonesia terutama pada sektor pendidikan, layanan pemerintahan, transportasi serta industri gaya hidup guna meningkatkan kualitas hidup masyarakat. Inilah yang menjadi spirit utama Gamatechno, dari Jogja untuk Indonesia Pintar.</p>\r\n', 'dari-jogja-untuk-indonesia-pintar', 'Dalam rangka ulang tahun perusahaan ke-9 yang membawa tema Nineovation, Gamatechno meluncurkan inova', 'indonesia pintar', 'darijogja.jpg', '2019-01-31 08:27:27', 'Y', 0), (11, 19, 1, 'PEMKAB PATI LUNCURKAN 4 APLIKASI PENDUKUNG PATI SMART CITY', 'Selasa (23/09/2018) Pemerintah Kabupaten Pati diwakili Haryanto, Bupati Pati gelar launching Pati Smart City bertempat di pendopo kantor Bupati. Beberapa aplikasi pendukung Pati Smart City diantaranya E-office, E-sakip, Gage Nda dan Aplikasi Pati Smart City diperkenalkan dalam acara tersebut', '<p><strong>Gamatechno.com</strong> Selasa (23/09/2018) Pemerintah Kabupaten Pati diwakili Haryanto, Bupati Pati gelar launching Pati Smart City bertempat di pendopo kantor Bupati. Beberapa aplikasi pendukung Pati Smart City diantaranya E-office, E-sakip, Gage Nda dan Aplikasi Pati Smart City diperkenalkan dalam acara tersebut.<br />\r\n<br />\r\nTujuan dari program ini adalah untuk memperkenalkan Kabupaten Pati ke dunia luar, selain itu juga kebutuhan Pati untuk beradaptasi dengan era digital seperti sekarang untuk pelayanan publik yang lebih baik. Konsep smart city ini bukan hanya berbicara tentang kinerja Pemkab, tapi juga semua hal terkait potensi daerah hingga perpajakan.<br />\r\n<br />\r\nDari empat solusi diatas, Gage Nda merupakan hasil kolaborasi apik antara Kabupaten Pati dengan Gamatechno dalam pengembangan teknologi. Sebelumnya Gamatechno terlibat di beberapa pengembangan aplikasi pemerintah Pati seperi, sistem perijinan satu pintu dan sim ULP.<br />\r\n<br />\r\nGage Nda (Sistem Informasi Ringkasan Data Terpadu) merupakan aplikasi yang berfungsi untuk menyediakan data dan informasi seragam, lengkap, aktual dan valid. Gage Nda Pati menerapkan sebuah inovasi pengelolaan data dengan pendekatan matrix ketugasan RACI (Responsible Accountable Consulted Informed) yang menjadi bagian dari COBIT (Control Objective for Information and related Technology) yang merupakan standar praktik manajemen teknologi informasi.<br />\r\n<br />\r\n&ldquo;Saya berharap aplikasi ini dapat ditindaklanjuti oleh SPKD serta mampu tingkatan pelayanan kepada masyarakat dan saya juga berharap jangan hanya berhenti di launching tapi ada update pelaksana, dewan pembina untuk mewujudkan pati smart city bisa berjalan dengan baik dan lancar&rdquo; tutur Haryanto kepada awak media.</p>\r\n\r\n<p><br />\r\nDalam kesempatan ini, Gamatechno turut berpartisipasi dalam pameran yang digelar pemerintah setempat. Sejalan dengan konsistensi dan komitmen Gamatechno dalam membantu pemerintah untuk mewujudkan kota cerdas di Indonesia, Gamatechno membawa beberapa solusi teknologi khususnya segmen pemerintahan seperti platform layanan publik &amp; pariwisata mCity, sistem informasi persuratan kantor gtPLO, dan beberapa produk dan solusi lainnya.</p>\r\n', 'pemkab-pati-luncurkan-4-aplikasi-pendukung-pati-smart-city', 'Pemerintah Kabupaten Pati diwakili Haryanto, Bupati Pati gelar launching Pati Smart City bertempat d', 'pati smart city', 'pemkabpati.jpg', '2019-01-31 08:25:59', 'Y', 0), (12, 19, 1, 'DISKOMINFO KABUPATEN GARUT SUSUN RENCANA SMART CITY GARUT 2018', 'Dinas Komunikasi dan Informatika (Diskominfo) Kabupaten Garut adakan rapat pembahasan Penyusunan Rencana Induk Pengelolaan Teknologi Informasi dan Komunikasi di lingkungan Pemerintah Kabupaten Garut. Bertempat di ruang rapat Sekretariat Daerah Kabupaten Garut.', '<p>Dinas Komunikasi dan Informatika (Diskominfo) Kabupaten Garut adakan rapat pembahasan Penyusunan Rencana Induk Pengelolaan Teknologi Informasi dan Komunikasi di lingkungan Pemerintah Kabupaten Garut. Bertempat di ruang rapat Sekretariat Daerah Kabupaten Garut.<br />\r\n<br />\r\nRapat ini dihadiri oleh Drs. <NAME> (Kadiskominfo), <NAME> , S.T,M.Kom (Kepala Bidang Egov), <NAME>, ST. MT (Kepala Bidang TIK) dan seluruh SKPD Kabupaten Garut serta 2 Kecamatan Garut Kota dan Tarogong Kidul. Dalam agenda ini turut mengundang Triasmono (Consulting &amp; Training Manager Gamatechno) sebagai narasumber.<br />\r\n<br />\r\nAcara ini diselenggarakan untuk membahas hal yang berkaitan dengan teknologi informasi pada perencanaan publik dalam rangka menyongsong smart city Garut 2018. Kabupaten Garut baru akan memulai rencana TIK pada tahun 2018. Garut sudah memulai pembangunan infrastruktur yang sesuai dengan harapan masyarakat, sedangkan Kominfo baru berdiri di tahun 2017 mengacu dari perda no 9 tahun 2016.<br />\r\n<br />\r\n&quot;Semoga dengan adanya acara ini bisa membuka wawasan kita mengenai perencanaan pada Teknologi Informasi dan komunikasi,&quot; ungkap <NAME> (Kadiskominfo). Nurdin juga menambahkan dengan adanya smart city Garut, perkembangan dibidang IT akan lebih berkembang sehingga akan mengakselerasi kemajuan Kabupaten Garut.<br />\r\n<br />\r\nSementara itu menurut hasil survei yang dilakukan Triasmono di SKPD dan kecamatan di Garut menunjukan bahwa 60% perangkat telah terhubung koneksi internet. Hal tersebut tentunya menunjukan kemudahan implementasi teknologi di Kabupaten Garut kedepannya.<br />\r\n<br />\r\n&ldquo;Objek yang dipandang pada smart city adalah mengoptimalkan teknologi agar bisa keberlanjutan setiap pertumbuhannya. Selain smart city, dalam konteks SPBE membagi berbagai clustering teknologi yang harus dipenuhi&quot; ungkap Triasmono .<br />\r\n<br />\r\nDiakhir acara Asep Nugraha (Kabid Egov) mengatakan Diskominfo Garut memiliki harapan besar untuk mengintegrasikan seluruh aplikasi dan sistem yang ada.</p>\r\n', 'diskominfo-kabupaten-garut-susun-rencana-smart-city-garut-2018', 'Dinas Komunikasi dan Informatika (Diskominfo) Kabupaten Garut adakan rapat pembahasan Penyusunan Ren', 'diskominfo garut susun rencana smart city', 'diskominfopemkab.jpeg', '2019-01-31 08:25:02', 'Y', 0), (13, 19, 1, 'GAMATECHNO AJAK SELURUH KARYAWAN DAN KELUARGA HADIRI BUKA BERSAMA 1439H', 'Dalam rangka memperingati bulan suci Ramadhan 1439 H, PT Gamatechno Indonesia mengadakan acara buka bersama dengan seluruh karyawan dan bertempat di Gadjah Mada University Club. Dalam kesempatan ini seluruh direksi, manajemen, komisaris dan tamu undangan dari perusahaan dibawah holding Gama Multi Usaha Mandiri turut hadir dalam acara ini.', '<p>Dalam rangka memperingati bulan suci Ramadhan 1439 H, PT Gamatechno Indonesia mengadakan acara buka bersama dengan seluruh karyawan dan bertempat di Gadjah Mada University Club. Dalam kesempatan ini seluruh direksi, manajemen, komisaris dan tamu undangan dari perusahaan dibawah holding Gama Multi Usaha Mandiri turut hadir dalam acara ini.<br />\r\n<br />\r\n&ldquo;Kita sangat menyadari dukungan dari keluarga sangat luar biasa untuk kita semua, oleh karena itu tahun ini kita adakan acara buka bersama dengan mengundang karyawan beserta keluarga&rdquo; <NAME>. (Direktur Utama PT Gamatechno Indonesia) dalam sambutan yang ia sampaikan diawal acara.<br />\r\n<br />\r\nSeiring dengan perkembangan perusahaan dan banyaknya jumlah karyawan yang hampir mencapai 200 orang, acara ini merupakan momentum yang tepat untuk mempererat silaturahmi dan perkenalan antar karyawan dan keluarga. Meskipun pada kesempatan ini kantor Gamatechno Branch Jakarta belum bisa hadir dalam acara tahunan kali ini.<br />\r\n<br />\r\nAcara yang dimulai pukul 16.00 WIB ini menghadirkan Ust. Ag<NAME>to sebagai pengisi materi tausiyah. Dalam tausiyahnya banyak pesan moral yang ingin disampaikan melalui tayangan video salah satunya adalah mengajak berpikir positif dan selalu rendah hati dalam menghadapi berbagai hal dalam hidup. Selama acara berlangsung seluruh undangan dihibur dengan lagu-lagu religi yang di bawakan apik oleh band internal karyawan.<br />\r\n<br />\r\nBuka bersama 2018 ini ditutup dengan ibadah sholat maghrib dan santap hidangan berbuka puasa. Harapannya dengan diadakan acara rutin semacam ini semakin menumbuhkan persaudaraan antar karyawan dan keluarga. Selain itu juga dapat dijadikan sebagai motivasi dan penyemangat etos kerja untuk mencapai sukses perusahaan di tahun-tahun berikutnya.</p>\r\n', 'gamatechno-ajak-seluruh-karyawan-dan-keluarga-hadiri-buka-bersama-1439h', 'Gamatechno ajak seluruh karyawan dan keluarga hadiri buka bersama 1439H di Gadjah Mada University Cl', 'gamatechno buka bersama', 'bukabersama.jpeg', '2019-01-31 08:24:18', 'Y', 0), (14, 19, 1, 'KEMITRAAN DENGAN INTEGRASIA UTAMA', 'Setelah acara peluncuran umberella brand gtSmartcity Solution pada Mei 2014 yang lalu, Gamatechno semakin berusaha memperkuat produk-produknya untuk mendukung konsep smart city tersebut. Salah satu segmen yang menjadi fokus dalam gtSmartcity Solution adalah industri transportasi dan logistik. Gamatechno memperkenalkan brand gtFleet untuk segmen transportasi dan logistik', '<p>Setelah acara peluncuran umberella brand gtSmartcity Solution pada Mei 2014 yang lalu, Gamatechno semakin berusaha memperkuat produk-produknya untuk mendukung konsep smart city tersebut. Salah satu segmen yang menjadi fokus dalam gtSmartcity Solution adalah industri transportasi dan logistik. Gamatechno memperkenalkan brand gtFleet untuk segmen transportasi dan logistik, yaitu aplikasi yang ditujukan untuk mengelola aset kendaraan. Dengan berbasis pada analisa dan pemrosesan data yang terkumpul dari hasil tracking kendaraan dan pengemudinya, serta serangkaian modul-modul yang saling terintegrasi (tracking, SMS gateway, dan web API), gtFleets mampu membantu pengelolaan aset kendaraan perusahaan, meminimalisir terjadinya resiko, meningkatkan efisiensi penggunaan armada, serta membantu memberikan layanan yang lebih baik bagi pelanggannya.<br />\r\n<br />\r\nPada bulan September ini, Gamatechno dan Integrasia Utama telah menandatangani Memorandum of Understanding (MoU) untuk saling mendukung dan bersinergi dalam menciptakan nilai tambah yang kompetitif bagi produk di segmen transportasi dan logistik, khususnya bagi pengembangan kemampuan produk gtFleet dari Gamatechno. Integrasia Utama yang berdiri sejak tahun 2001, pada awalnya memiliki core business di bidang Remote Sensing &amp; Digital Mapping Consulting Service. Dalam perjalanannya Integrasia Utama memperluas portofolio bisnisnya ke sektor transportasi dan logistik dengan mengembangkan solusi OSLOG.<br />\r\n<br />\r\nDalam MoU tersebut disepakati bahwa produk-produk Gamatechno di sektor transportasi dan logistik akan didukung oleh produk OSLOG dari Integrasia Utama. Penandatanganan MoU dilakukan di kantor pusat Gamatechno Yogyakarta, diwakili oleh Bayu Wedha sebagai Direktur Utama Integrasia Utama dan Muhammad Aditya sebagai Direktur Utama Gamatechno. Selain itu tim Integrasia Utama juga berkesempatan mengunjungi kantor pusat PT Aino Indonesia, yang memiliki produk unggulan sistem e-Ticketing untuk layanan transportasi. PT Aino Indonesia adalah anak perusahaan Gamatechno yang memiliki fokus bisnis di bidang Smart Card, RFId dan mobile NFC.<br />\r\n<br />\r\nDengan ditandatanganinya MoU antara Gamatechno dan Integrasia Utama diharapkan kedua pihak dapat saling memperkuat daya saing masing-masing perusahaan di era persaingan global, dengan mengembangkan solusi hasil karya asli Indonesia.</p>\r\n', 'kemitraan-dengan-integrasia-utama', 'kemitraan dengan integrasia utama ditandai dengan penandatanganan MoUuntuk saling mendukung dan bers', 'kemitraan gamatechno dengan integrasia utama', 'kemitraan.jpg', '2019-05-09 15:45:06', 'Y', 0), (15, 19, 1, 'MEMILIKI BANYAK CABANG DAN KARYAWAN, LUWES PERCAYAKAN GTHR UNTUK PENGELOLAAN SDM', 'Luwes merupakan salah satu perusahaan retail terbesar di Jawa Tengah yang berdiri sejak 51 tahun lalu. Kini Luwes telah memiliki 10 cabang dan mempunyai lebih dari 3000 karyawan yang tersebar diberbagai daerah. Bukan perkara mudah untuk mengelola SDM dalam jumlah banyak, apalagi tersebar menjadi banyak cabang.', '<p>Luwes merupakan salah satu perusahaan retail terbesar di Jawa Tengah yang berdiri sejak 51 tahun lalu. Kini Luwes telah memiliki 10 cabang dan mempunyai lebih dari 3000 karyawan yang tersebar diberbagai daerah. Bukan perkara mudah untuk mengelola SDM dalam jumlah banyak, apalagi tersebar menjadi banyak cabang.</p>\r\n\r\n<p><br />\r\n2014 Luwes memutuskan untuk beralih menggunakan sistem informasi pengelolaan SDM. Semakin berkembangnya bisnis menuntut pengelolaan SDM yang efektif dan efisien tanpa terbebani masalah pengelolaan administrasi dan operasional perusahaan.</p>\r\n\r\n<p><br />\r\nKini semua proses pengelolaan karyawan dapat dilakukan jauh lebih mudah. Dalam penggajian karyawan misalnya, Luwes sebelumnya menghitung absensi secara manual setiap cabang untuk menentukan besaran gaji setiap karyawannya. Integrasi dengan berbagai sistem absensi seperti finger print, barcode scanner, door acces hingga smart ID card juga memudahkan otomasi kalkulasi perhitungan gaji karyawan.</p>\r\n\r\n<p><br />\r\nProses rekruitmen dan pengelolaan data karyawan pun lebih mudah dilakukan. Layanan mandiri karyawan seperti pengajuan cuti, lembur, cetak slip gaji, hingga urusan CV dapat diakses dengan mudah. Jika dibandingkan sebelum menggunakan sistem, proses rekruitmen karyawan masih tidak terkontrol untuk tiap cabang, masih banyak karyawan yang masuk dan keluar tanpa sepengetahuan manajemen pusat, yang tentunya hal ini berimbas di sektor keuangan perusahaan.</p>\r\n\r\n<p><br />\r\n&ldquo;Sistem yang digunakan adalah berbasis online, keuntungan untuk kami yang mempunyai banyak cabang yang berada di lokasi yang berbeda, yaitu semua cabang bisa terakomodir tanpa harus mengunjungi tiap cabang.&rdquo; Ujar Cahyo, mewakili bagian Human Resource Luwes Grup.</p>\r\n', 'memiliki-banyak-cabang-dan-karyawan-luwes-percayakan-gthr-untuk-pengelolaan-sdm', 'luwes', 'luwes', 'MEMILIKI BANYAK CABANG DAN KARYAWAN, LUWES PERCAYAKAN GTHR UNTUK PENGELOLAAN SDM_3101193800.jpg', '2019-01-31 10:10:45', 'Y', 1); INSERT INTO `news` (`id_news`, `fk_id_category`, `fk_userId`, `news_title`, `headline`, `news_content`, `news_seo`, `meta_desc`, `meta_keyword`, `image`, `posted_at`, `status`, `is_deleted`) VALUES (16, 19, 1, 'Penting! Mengapa Perusahaan Harus Memiliki Tata Kelola TI', 'Kelangsungan operasional perusahaan tak lepas dari peran Tata Kelola TI perusahaan yang dimiliki dalam internal organisasi. Perusahaan memiliki standar dan menjalankan prosedur operasional untuk mencapai tujuan yang memiliki nilai strategis. ', '<p>Kelangsungan operasional perusahaan tak lepas dari peran Tata Kelola TI perusahaan yang dimiliki dalam internal organisasi. Perusahaan memiliki standar dan menjalankan prosedur operasional untuk mencapai tujuan yang memiliki nilai strategis. Tata kelola TI menjadi tanggung jawab dan bentuk praktik kerja yang biasanya digunakan para eksekutif bisnis untuk dapat memiliki pandangan pada sasaran perusahaan. Tata kelola TI bisa digunakan oleh organisasi pada level eksekutif untuk&nbsp;mengendalikan risiko yang bisa terjadi dan memastikan segala bentuk sumber daya perusahaan agar dapat digunakan dengan sesuai. Pada akhirnya tata kelola perusahaan yang lakukan secara baik bisa mempengaruhi tingkat kepercayaan serta perlindungan investasi di masa depan yang lebih terjamin.</p>\r\n\r\n<p>Definisi menurut&nbsp;<em>IT Governance Institute</em>&nbsp;(ITGI) menjelaskan bahwa Tata kelola TI merupakan tanggung jawab dari manajemen eksekutif atau direksi, dan merupakan bagian dari&nbsp;<em>enterprise governance</em>. Tata kelola TI berfokus pada dua hal yaitu bagaimana upaya TI memberikan nilai tambah bagi bisnis dan penanganan risiko ketika sudah dilaksanakan. Pelaksanaan tata kelola teknologi informasi dalam sebuah organisasi, dibangun dengan memberikan nilai tambah yang mungkin akan bermanfaat bagi&nbsp;<em>stakeholder</em>. Contoh riil yang mungkin bisa diaplikasikan adalah berupa jaminan dalam hal akurasi dan ketepatan waktu laporan manajemen selama proses pengembangan teknologi informasi. Selain itu, pengembangan teknologi informasi harus bisa mengurangi risiko adanya kemungkinan terjadi&nbsp;<em>fraud</em>.&nbsp;</p>\r\n\r\n<p>Apa itu&nbsp;<em>fraud</em>?&nbsp;<em>Fraud</em>&nbsp;merupakan istilah yang memiliki arti perbuatan kecurangan yang melanggar hukum (<em>illegal-acts</em>) yang dilakukan secara sengaja dan sifatnya dapat merugikan pihak lain dalam bidang TI. Bentuk dari kecurangan ini seperti tindakan pencurian, penyerobotan, pemerasan, penjiplakan, pengelapan dan lain-lain.</p>\r\n\r\n<p>Upaya pencegahan&nbsp;<em>fraud</em>&nbsp;sangat berkaitan dengan praktik&nbsp;<em>IT Governance</em>&nbsp;yang menerapkan pemilihan dan pengembangan TI agar memadai. Banyaknya kasus&nbsp;<em>fraud</em>&nbsp;yang terjadi karena lemah dalam pemilihan dan pengembangan TI sehingga menghasilkan MIS (<em>Management Information System</em>) yang tidak handal. Ketidak-handalan ini yang dapat menciptakan peluang kecurangan kecil yang mulanya dilakukan secara iseng lalu membesar menjadi kecurangan besar karena adanya &ldquo;kesempatan&rdquo; sehingga pelaku mengetahui kelemahan dalam hal pengawasan yang ada dalam organisasi. Pada intinya,&nbsp;<em>fraud</em>&nbsp;adalah kondisi yang dapat merusak, merugikan dan mengancam kelangsungan perusahaan di masa depan.</p>\r\n\r\n<p>Perusahaan bisa mengantisipasi peluang adanya&nbsp;<em>fraud</em>&nbsp;ini dengan tata kelola yang baik karena alasan didalamnya cukup penting terutama bagi manajemen dalam organisasi. Berikut terdapat beberapa alasan mengapa tata kelola TI menjadi baik dan harus dilakukan oleh perusahaan, diantaranya:</p>\r\n', 'penting-mengapa-perusahaan-harus-memiliki-tata-kelola-ti', 'Kelangsungan operasional perusahaan tak lepas dari peran Tata Kelola TI perusahaan yang dimiliki dal', 'perusahaan it', 'Penting! Mengapa Perusahaan Harus Memiliki Tata Kelola TI_3101194152.jpg', '2019-01-31 12:53:38', 'N', 0); -- -------------------------------------------------------- -- -- Table structure for table `pengunjung` -- CREATE TABLE `pengunjung` ( `pengunjung_id` int(11) NOT NULL, `pengunjung_tanggal` date DEFAULT NULL, `pengunjung_ip` varchar(40) DEFAULT NULL, `hitung` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pengunjung` -- INSERT INTO `pengunjung` (`pengunjung_id`, `pengunjung_tanggal`, `pengunjung_ip`, `hitung`) VALUES (481, '2019-03-12', '172.16.58.3', 0), (482, '2019-04-12', '192.168.3.11', 0), (483, '2019-09-12', '172.16.58.3', 0), (484, '2019-04-12', '172.16.17.32', 0), (485, '2019-10-12', '192.168.3.11', 0), (961, '2019-01-30', '::1', 6), (962, '2019-01-31', '::1', 15), (963, '2019-02-11', '::1', 1), (964, '2019-03-01', '::1', 2), (965, '2019-03-02', '::1', 20), (966, '2019-03-03', '::1', 3), (967, '2019-03-06', '::1', 2), (968, '2019-03-07', '::1', 2), (969, '2019-03-08', '::1', 1), (970, '2019-03-11', '::1', 2), (971, '2019-04-07', '::1', 5), (972, '2019-04-27', '::1', 1), (973, '2019-05-01', '::1', 2), (974, '2019-05-02', '::1', 1), (975, '2019-05-05', '::1', 1), (976, '2019-05-06', '::1', 2), (977, '2019-05-19', '::1', 1); -- -------------------------------------------------------- -- -- Table structure for table `service` -- CREATE TABLE `service` ( `id_service` int(11) NOT NULL, `fk_id_category` int(11) NOT NULL, `fk_userId` bigint(20) NOT NULL, `service_name` varchar(100) NOT NULL, `service_seo` varchar(255) NOT NULL, `description` text NOT NULL, `meta_desc` varchar(100) NOT NULL, `meta_keyword` varchar(100) NOT NULL, `image` varchar(255) NOT NULL, `posted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` enum('Y','N') NOT NULL, `is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `service` -- INSERT INTO `service` (`id_service`, `fk_id_category`, `fk_userId`, `service_name`, `service_seo`, `description`, `meta_desc`, `meta_keyword`, `image`, `posted_at`, `status`, `is_deleted`) VALUES (1, 11, 1, 'DESIGN', 'design', '<p><em><strong>Desain Grafis</strong></em></p>\r\n\r\n<p>Desain Grafis merupakan suatu pekerjaan yang erat kaitannya dengan seni. Banyak Perusahaan yang sekarang ini membutuhkan tenaga desain grafis dalam merancang produknya maupun untuk mempromosikan produk-produknya. Karena itu jasa desain grafis dapat menjadi salah satu peluang usaha yang menjanjikan bagi mereka yang mempunyai keahliaan di bidang desain grafis dan multimedia.</p>\r\n\r\n<p><strong><em>Kebutuhan</em></strong><br />\r\nDesain grafis memang saat ini telah menjadi kebutuhan, terutama dalam bidang usaha, industri dan ekonomi. Persaingan bisnis dan perkembangan industri saat ini menuntut upaydaa-upaya kreatif untuk dapat menjangkau minat pasar. Suksesnya marketing dari suatu produk akan ditentukan oleh ide kreatif dari perusahaan tersebut. Untuk itulah keahlian dibidang grafis menjadi penting dan dibutuhkan. Misalnya contoh paling sederhana adalah penggunaan keahlian desain grafis untuk mendesain baju, logo, Situs Web, Antarmuka aplikasi dll. Hal ini menjadi peluang bagi mahasiswa maupun mereka yang menekuni bidang multimedia atau grafis untuk melakukan bisnis jasa dibidang desain grafis. Namun untuk memulai bisnis jasa desain grafis, ada beberapa hal yang harus diperhatikan, termasuk persiapan agar nantinya usaha jasa yang akan dibuka dapat berjalan dengan lancar.</p>\r\n', '', 'design', 'desain.jpg', '2019-01-31 09:51:13', 'Y', 0), (2, 13, 1, 'CONSULTING', 'consulting', '<p>Technical Consultant atau Konsultan IT memberikan masukan mengenai permasalahan IT. Umumnya para konsultan IT meng-handle masalah problem domain. Jika di-analogi-kan, consultant IT mirip dengan analis sistem yang memikirkan konsep proses bisnis daripada menjalankannya seperti yang dilakukan oleh bagian desain atau coding. Pada umumnya, para penyedia jasa konsultan IT menguasai permasalahan software development dalam artian luas dan pada level yang lebih tinggi. Tugas yang diembannya masuk dalam kategori software consulting.</p>\r\n\r\n<p>\r\nKonsultan IT lebih banyak memberikan konsultasi kepada pelanggan dan berada di luar perusahaan. Untuk itu, konsultan IT juga dituntut memiliki kemampuan komunikasi dan kemampuan interpersonal yang baik. Karena pekerjaannya juga berbungan dengan tulis-menulis, konsultan IT harus memiliki keahlian menulis yang memadai. Gambaran lain, jika konsultan IT bekerja dalam perusahaan yang memproduksi software, konsultan IT berperan dalam proses pre-sales, perubahan proses bisnis, perubahan modul yang cukup rumit, dan juga melakukan modifikasi.</p>\r\n\r\n<p>\r\nDengan mengoptimalkan peran konsultan IT, perusahaan yang sedang berkembang lebih mudah dapat menjadi perusahaan maju dalam hitungan tahun. Konsultan IT tidak hanya kolega bisnis yang memecahkan masalah hardware dan software IT, tapi juga terlibat langsung dalam proses bisnis yang ditekuni klien sekaligus praktisi yang handal.</p>\r\n', 'consulting', 'consulting', 'consulting.jpg', '2019-01-30 06:59:05', 'Y', 0), (3, 9, 1, 'TECHNOLOGY INFORMATION', 'technology-information', '<p>Untuk beberapa perusahaan besar, IT Support sangat penting. Jasa IT Support merupakan sebuah jasa yang akan membantu atau memberikan dukungan atau support kepada siapa saja atau pihak manapun dalam ruang lingkup perusahaan atau tempat kerja. Dukungan yang diberikan adalah berupa dukungan terhadap segala hal yang berkaitan dengan teknologi Infomasi. Jasa IT Support memberikan layanan pendukung IT sebagian besar adalah untuk memantau dan memelihara jaringan komputer dan sistem yang terkait.Tugas-tugas yang terlibat dapat bervariasi dari menginstal dan mengkonfigurasi sistem komputer, mendiagnosa hardware dan kesalahan perangkat lunak. Beberapa tugas yang lebih penting juga dapat mencakup pemeliharaan preventif dan upgrade sistem.</p>\r\n\r\n<p>Jasa IT Support yang kami berikan antara lain: pembangunan jaringan internet (networking) untuk Hotel, Apartemen, Restaurant, Perumahan, Sekolah Perkantoran, pusat perbelanjaan beserta pengembangannya dan perawatannya termasuk juga jasa web desain, jasa SEO, jasa iklan Google, jasa iklan social media (internet marketing) pembuatan aplikasi berbasis Android dan iOS.</p>\r\n\r\n<ul>\r\n <li><strong>Pembangunan Networking</strong></li>\r\n</ul>\r\n\r\n<p>Jasa networking meliputi pembangunan infrastruktur untuk jaringan internet lokal dan online yang di optimasi dengan baik sehingga bisa meningkatkan kinerja karyawan dan memaksimalkan anggaran pengeluaran perusahaan Anda secara terus menerus dan berkesinambungan.</p>\r\n\r\n<ul>\r\n <li><strong>Jasa Pembuatan Website</strong></li>\r\n</ul>\r\n\r\n<p>Meliputi jasa pembuatan website (company profile, online shop, aplikasi)&nbsp;&nbsp;berbasis CMS menggunakan PHP/Java, APP Android, maintenance dan pengelolaan website dengan sistem kontrak dengan biaya yang terjangkau tapi dengan hasil yang maksimal dan menguntungkan anda.</p>\r\n\r\n<ul>\r\n <li><strong>Jasa Periklanan Online</strong></li>\r\n</ul>\r\n\r\n<p>Meliputi search engine optimization jasa SEO, periklanan PPC Google, periklanan media sosial (FB, Instagram, Twitter) serta melalui pemasaran konten yang terarah. Layanan ini tepat untuk perusahaan startup maupun yang sudah berjalan dan ingin lebih berkembang dan maju lagi.</p>\r\n\r\n<ul>\r\n <li><strong>Jasa Perawatan &amp; Perbaikan Komputer</strong></li>\r\n</ul>\r\n\r\n<p>Meliputi service pemeliharaan perangkat komputer/server dan laptop, pembersihan komputer dari serangan virus, malware, trojan, adware dll. Upgrade, downgrade, tune-up, tweaking RAM, Power supply, Prosesor, update/upgrade OS secara menyeluruh dan berkala.</p>\r\n', 'Information technology', 'technology_information', 'techno.jpg', '2019-05-19 15:43:52', 'Y', 0); -- -------------------------------------------------------- -- -- Table structure for table `static_page` -- CREATE TABLE `static_page` ( `id_page` int(11) NOT NULL, `fk_id_category` int(11) NOT NULL, `page_title` varchar(100) NOT NULL, `page_content` text NOT NULL, `meta_desc` varchar(100) NOT NULL, `meta_keyword` varchar(100) NOT NULL, `image` varchar(255) NOT NULL, `posted_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` enum('Y','N') NOT NULL, `is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `static_page` -- INSERT INTO `static_page` (`id_page`, `fk_id_category`, `page_title`, `page_content`, `meta_desc`, `meta_keyword`, `image`, `posted_at`, `status`, `is_deleted`) VALUES (51, 15, 'Remarks by the Director', '<p>&quot;Dengan gtSmartCity Solution, Gamatechno berkomitmen untuk berperan aktif dalam peningkatan tatanan hidup masyarakat berbasis teknologi&quot;<br />\r\n<br />\r\n<tt><em>Assalamu&#39;alaikum Wr. Wb.</em></tt><br />\r\n<em><tt>Pelanggan dan mitra yang kami cintai, Tak terasa telah 10 tahun kiprah Gamatechno mewarnai industri digital di Indonesia. Kurun waktu tersebut tentunya bukanlah sebuah perjalanan yang singkat, terutama bagi kami perusahaan yang dibangun dari semangat anak-anak muda. Banyak sekali pembelajaran yang kami dapatkan sepanjang proses pengembangan produk dan kerjasama dengan seluruh pelanggan dan mitra yang senantiasa setia memberi kami kesempatan untuk terus berbenah diri. Berbagai pengalaman yang kami dapatkan, tentu saja menjadi landasan inovasi yang senantiasa kami lakukan sepanjang perjalanan bisnis Gamatechno. Hal ini tidak lain kami lakukan untuk terus meningkatkan value yang dapat kami berikan untuk seluruh stakeholder. Di tahun yang ke-10 ini, Gamatechno mendedikasikan sebuah solusi yang kami sebut gtSmartCity Solution untuk para pelanggan dan mitra. </tt></em></p>\r\n\r\n<p><tt><em>Solusi ini merupakan inovasi lanjutan dari portofolio produk dan jasa perusahaan yang telah dikembangkan di tahun-tahun sebelumnya. Ide utama dari gtSmartCity Solution adalah bagaimana membangun sebuah kota cerdas dipandang dari perspektif kehidupan masyarakat dengan value utama less paper, less cash, less time dan less complexity. Kami membagi gtSmartCity Solution ke dalam 4 segmen industri utama yaitu Pendidikan, Pemerintahan, Transportasi, dan Business, karena pada segmen-segmen industri tersebutlah aktifitas masyarakat perkotaan berjalan sangat masif. Dengan kata lain, gtSmartCity Solution terdiri atas produk dan solusi teknologi tepat guna untuk memberikan kemudahan bagi masyarakat perkotaan terkait dengan aktifitas di bidang pendidikan, layanan pemerintahan, transportasi dan business. Mengingat cakupan solusi yang cukup luas, tentu saja dapat dibayangkan kompleksitas teknologi yang digunakan sebagai komponen produk dan solusi gtSmartCity Solution. </em></tt></p>\r\n\r\n<p><tt><em>Maka selain inovasi teknologi web, mobile, smartcard, RFId, NFC, GPS serta beberapa teknologi lain yang kami kuasai, saat ini kami terus berupaya meningkatkan kerjasama dan kolaborasi dengan para pihak untuk memberikan kualitas produk dan jasa terbaik bagi seluruh pelanggan dan masyarakat. Prinsip inovasi, kerjasama dan kolaborasi ini akan terus menjadi semangat kami dalam memberikan value bagi industri dan masyarakat. Dan kami mengucapkan terima kasih dan apresiasi yang sebesar-besarnya kepada seluruh pelanggan dan mitra atas kepercayaan yang telah diberikan kepada kami selama ini. Dengan kolaborasi yang lebih baik, kami semakin percaya diri dan yakin untuk dapat menciptakan value yang lebih tinggi kepada seluruh stakeholder sekaligus meningkatkan peran dalam pengembangan industri digital di Indonesia, bahkan hingga kancah global.</em></tt><br />\r\n<em><tt>Wassalamu&#39;alaikum Wr. Wb.</tt></em></p>\r\n', '', '<NAME>', 'Aditya_batik.jpg', '2019-05-01 18:00:26', 'Y', 0), (52, 16, 'PT. PUKKA SOLUSI INDONESIA', '<p>Sebagai perusahaan yang bergerak di bidang penyedia solusi teknologi informasi, PT Gamatechno Indonesia (Gamatechno) resmi berdiri pada tanggal 4 Januari 2005 dan berkantor pusat di Yogyakarta. Guna meningkatkan layanan kepada lebih dari 240 klien di seluruh Indonesia yang tersebar dari Banda Aceh hingga Papua, pada tahun 2013 Gamatechno membuka kantor cabang di Jakarta.?</p>\r\n\r\n<p>Seiring dengan perkembangan perusahaan, saat ini Gamatechno memiliki fokus pada pengembangan produk dan solusi teknologi informasi untuk segmen perguruan tinggi, lembaga pemerintah, perusahaan penyedia jasa transportasi dan logistik, serta industri business. Layanan yang berfokus pada 4 segmen utama tersebut selanjutnya didefinisikan sebagai gtSmartCity Solution, yaitu solusi berbasis sistem dan teknologi informasi guna mewujudkan sebuah kota cerdas dengan ciri less paper, less time, less cash dan less complexity untuk meningkatkan tatanan hidup masyarakat.</p>\r\n\r\n<p>Untuk segmen transportasi dan logistik, Gamatechno mengembangkan beberapa produk unggulan bagi perusahaan atau organisasi yang bergerak dibidang layanan transportasi dan logistik, yaitu gtFleets (sistem informasi pengelolaan armada), gtSmartTicket System (sistem tiket elektronik berbasis smartcard), serta aplikasi mTransport (aplikasi mobile untuk informasi dan layanan transportasi publik).</p>\r\n\r\n<hr />\r\n<ul>\r\n <li>\r\n <h3><strong>Visi &amp; Misi</strong></h3>\r\n </li>\r\n</ul>\r\n\r\n<p><em>Vision 2020</em>&nbsp;:&nbsp;</p>\r\n\r\n<p>To be a market leader in national smart city&nbsp;development</p>\r\n\r\n<p><em>Misi :&nbsp;</em></p>\r\n\r\n<p>Dalam rangka pencapaian visi dan tujuan&nbsp;perusahaan, maka Gamatechno menjabarkan&nbsp;misi-misi perusahaan sebagai berikut :</p>\r\n\r\n<p>1. Mengakomodasi kebutuhan, sumber daya, dan&nbsp;tujuan Universitas Gadjah Mada</p>\r\n\r\n<p>2. Menciptakan masyarakat cerdas melalui&nbsp;produk-produk TI yang digunakan sehari-hari</p>\r\n\r\n<p>3. Berpartisipasi aktif dalam komunitas global&nbsp;untuk membangun industri kreatif digital</p>\r\n\r\n<hr />\r\n<ul>\r\n <li><strong>Corporate Values</strong></li>\r\n</ul>\r\n\r\n<p><em>Innovative Mindset</em></p>\r\n\r\n<p>gtHeroes (karyawan Gamatechno) harus memiliki innovative mindset, yaitu kreatif dalam memecahkan setiap masalah, serta selalu memiliki inisiatif dan aktif untuk mencari ide-ide baru yang lebih baik.&nbsp;</p>\r\n\r\n<p><em>Agile Behavior</em></p>\r\n\r\n<p>gtHeroes adalah seorang yang mudah untuk beradaptasi terhadap beragam situasi dan perubahan, mudah bekerjasama dengan siapa saja, cepat belajar dan sigap dalam menyelesaikan setiap pekerjaan.</p>\r\n\r\n<p><em>Balanced Life</em><br />\r\ngtHeroes harus mampu membangun keseimbangan antara ketekunan dalam bekerja dengan kebahagiaan pribadi, selalu bersemangat dalam karir tanpa mengesampingkan aktifitas sosial dan spiritual. Seorang gtHeroes tidak hanya baik untuk dirinya sendiri melainkan juga memberi energi positif dan manfaat bagi banyak orang</p>\r\n\r\n<p>&nbsp;</p>\r\n', '', '', 'PT. PUKKA SOLUSI INDONESIA_3101191116.png', '2019-05-02 07:10:04', 'Y', 0), (53, 17, 'BOARD OF MANAGEMENT 2018', '<hr>\r\nKomisaris Utama : <NAME>, S.E., M.Com., Akt\r\n<hr>\r\nKomisaris : Widyawan, S.T., M.Sc., Ph.D.\r\n<hr>\r\nKomisaris : <NAME>, S.T., MBA.\r\n<hr> \r\nPresident Director : <NAME>.\r\n<hr>\r\nDirector : <NAME> St. Majo Kayo, CISA\r\n<hr>\r\nTechnology & Business Innovation General Manager : Novan Hartadi\r\n<hr>\r\nMultimedia General Manager : Nanang Ruswianto\r\n<hr>\r\nConsulting General Manager : Nugroho Setio Wibowo\r\n<hr>\r\nFinance General Manager : <NAME>\r\n<hr>\r\nCorporate Services General Manager : <NAME>\r\n<hr>\r\nAcademic Solution Manager : Awaludin Zakaria\r\n<hr>\r\nGovernment Solution Manager : <NAME>\r\n<hr>\r\nCorporate Business Solution Manager : <NAME>\r\n<hr>\r\nConsulting and Training Manager : Triasmono\r\n<hr>\r\nHuman Capital and Legal Manager : <NAME>\r\n<hr>\r\nEmerging Business Solution Manager : IGP Rahman Desyanta\r\n<hr>\r\nCorporate Branding & Communication Manager : <NAME>rdhi\r\n<hr>\r\nJakarta Branch Manager : Nurianto Kama\r\n<hr>', '', '', 'Board_Of_Management.png', '2019-01-10 07:36:56', 'Y', 0), (54, 18, 'HOLDING COMPANY', '<p>PT Gamatechno Indonesia termasuk kedalam Gama Multi Group, dimana dikelola oleh PT Gama Multi Usaha Mandiri (Gama Multi), yaitu&nbsp; perusahaan holding dan investasi yang bergerak di berbagai bidang. Gama Multi dimiliki oleh Universitas Gadjah Mada dan mengembangkan unit-unit usaha dan anak-anak perusahaan, untuk mengelola dan meningkatkan nilai sumber daya dan potensi yang ada, baik di UGM maupun dari stakeholder lain, dengan profesional, terpercaya, dan bertanggungjawab.<br />\r\n<br />\r\nGama Multi didirikan sebagai upaya UGM mewujudkan kemandirian sebagai sebuah Badan Hukum Milik Negara (BHMN). Secara resmi didirikan berdasarkan Akta Pendirian Nomor 54 tertanggal 24 Juni 2000, dan telah disahkan berdasarkan Keputusan Menteri Kehakiman dan Hak Asasi Manusia Republik Indonesia Nomor C-1.333.HT.01.01.TH.2001 tertanggal 21 Februari 2001, dan telah dimuat dalam Berita Negara Republik Indonesia Nomor 56 tertanggal 13 Juli 2001, Tambahan Lembaran Negara Nomor 4519.<br />\r\n<br />\r\nGama Multi bertekad untuk membangun reputasi dan kompetensi sebagai perusahaan holding dan investasi berskala nasional melalui usaha-usaha yang menghasilkan produk terbaik dan layanan prima kepada para konsumen serta pelaksanaan good corporate governance dalam setiap lini usahanya. Saat ini, Gama Multi mempekerjakan &plusmn;300 karyawan yang tersebar dalam 6 unit usaha dan 5 anak perusahaan.</p>\r\n\r\n<p><br />\r\nSejak pendirian dan dalam masa perkembangan, Gama Multi telah memberikan kontribusi finansial maupun non finansial kepada UGM, antara lain melalui management fee pengelolaan jasa keuangan (Reksa Dana Gadjah Mada) dan peningkatan nilai aset properti maupun ekuitas yang dimiliki oleh UGM. Diharapkan dengan semakin berkembangnya usaha-usaha yang didirikan oleh Gama Multi, dapat mendorong kontribusi yang lebih besar kepada UGM sehingga dapat membantu UGM untuk meningkatkan kualitas layanan pendidikan kepada mahasiswa.<br />\r\n<br />\r\nSelain itu, Gama Multi juga berperan sebagai Project Management Center bagi UGM dan memfasilitasi kontribusi aktif civitas akademika UGM dalam pelaksanaan proyek-proyek dengan pihak luar. Sebagai jembatan akses, diharapkan dapat membantu pemberdayaan dan pemanfaatan potensi besar UGM seluas-luasnya bagi kepentingan semua pihak.<br />\r\n<br />\r\nWebsite resmi :&nbsp;<a href=\"http://gamamulti.com/\" target=\"_blank\">http://gamamulti.com</a></p>\r\n\r\n<p>&nbsp;</p>\r\n', 'company', 'holding', 'visi_misi.png', '2019-05-02 07:27:12', 'Y', 0), (56, 22, 'In a healthy body - mind!', '<p>Human resources policy in the company is based on compliance of all existing laws and regulations of the Ukrainian government, as well as standards of conduction within the company - corporate ethics.</p>\r\n', 'healthy body', 'mind, healthy', 'In a healthy body - mind!_2301191110.jpg', '2019-01-23 08:10:11', 'Y', 0), (57, 22, 'Regular personnel training', '<p>Department of HR implements human resources policy, and strategic direction for the staff. Department of HR implements human resources policy, and strategic direction for the staff.</p>\r\n', 'regular personel', 'personel', 'Regular personnel training_2301194406.jpg', '2019-01-23 08:06:44', 'Y', 0), (58, 22, 'Positive morale', '<p>The activity of enterprises under the trademark of GC &quot;Foxtrot&quot; is based on the unconditional power, respect for other cultures, dignity and human rights.</p>\r\n', 'morale positive', 'morale', 'Positive morale_2301193004.jpg', '2019-01-30 07:12:31', 'Y', 0); -- -------------------------------------------------------- -- -- Table structure for table `subscribe` -- CREATE TABLE `subscribe` ( `id_subscribe` int(11) NOT NULL, `email` varchar(50) NOT NULL, `subscribe_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `subscribe_status` int(2) NOT NULL DEFAULT '1' COMMENT '1=belum dilihat, 0=sudah dilihat', `is_deleted` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `subscribe` -- INSERT INTO `subscribe` (`id_subscribe`, `email`, `subscribe_date`, `subscribe_status`, `is_deleted`) VALUES (56, '<EMAIL>', '2019-03-06 06:41:30', 0, 0), (57, '<EMAIL>', '2019-03-06 06:45:16', 0, 0), (58, '<EMAIL>', '2019-03-06 07:14:26', 0, 0), (59, '<EMAIL>', '2019-03-06 07:16:29', 0, 0), (60, '<EMAIL>', '2019-03-06 07:30:54', 0, 0), (61, '<EMAIL>', '2019-03-06 07:43:56', 0, 0), (62, '<EMAIL>', '2019-03-06 07:45:01', 0, 0), (63, '<EMAIL>', '2019-03-06 07:53:17', 0, 0), (64, '<EMAIL>', '2019-03-06 08:20:41', 0, 0), (65, '<EMAIL>', '2019-03-06 08:21:14', 0, 0), (66, '<EMAIL>', '2019-03-06 08:22:45', 0, 0), (67, '<EMAIL>', '2019-03-06 08:42:23', 0, 0), (68, '<EMAIL>', '2019-03-06 08:44:34', 0, 0), (69, '<EMAIL>', '2019-03-06 08:57:53', 0, 0), (70, '<EMAIL>', '2019-03-06 09:01:07', 0, 0), (71, '<EMAIL>', '2019-03-06 15:42:13', 0, 0), (72, '<EMAIL>', '2019-03-06 16:11:37', 0, 0), (73, '<EMAIL>', '2019-03-06 17:32:45', 0, 0), (74, '<EMAIL>', '2019-03-06 17:53:53', 0, 0), (75, '<EMAIL>', '2019-03-06 17:56:02', 0, 0), (76, '<EMAIL>', '2019-03-06 18:07:20', 0, 0), (77, '<EMAIL>', '2019-03-06 18:47:00', 0, 0), (78, '<EMAIL>', '2019-03-07 13:43:55', 0, 0), (79, '<EMAIL>', '2019-03-07 13:46:57', 0, 0), (80, '<EMAIL>', '2019-03-07 14:39:21', 0, 0), (81, '<EMAIL>', '2019-03-07 14:50:05', 0, 0), (82, '<EMAIL>', '2019-03-07 16:20:18', 0, 0), (83, '<EMAIL>', '2019-03-07 16:30:18', 0, 0), (84, '<EMAIL>', '2019-03-07 18:43:03', 0, 0), (85, '<EMAIL>', '2019-03-07 18:56:14', 0, 0), (86, '<EMAIL>', '2019-03-07 19:14:10', 0, 0), (87, '<EMAIL>', '2019-03-07 19:47:11', 0, 0), (88, '<EMAIL>', '2019-03-08 12:00:35', 0, 0), (89, '<EMAIL>', '2019-03-08 12:26:42', 0, 0), (90, '<EMAIL>', '2019-03-11 16:57:51', 0, 0), (91, '<EMAIL>', '2019-03-11 17:00:25', 0, 0), (92, '<EMAIL>', '2019-03-11 17:00:48', 0, 0), (93, '<EMAIL>', '2019-03-11 17:16:52', 0, 0), (94, '<EMAIL>', '2019-04-07 18:42:54', 0, 0), (95, '<EMAIL>', '2019-05-05 08:21:41', 0, 0), (96, '<EMAIL>', '2019-05-05 08:23:42', 0, 0), (97, '<EMAIL>', '2019-05-05 08:25:08', 0, 0), (98, '<EMAIL>', '2019-05-05 08:28:13', 0, 0), (99, '<EMAIL>', '2019-05-05 08:34:31', 0, 0), (100, '<EMAIL>', '2019-05-05 18:51:27', 0, 0), (101, '<EMAIL>', '2019-05-07 08:58:58', 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `tag` -- CREATE TABLE `tag` ( `id_tag` int(11) NOT NULL, `tag_name` varchar(255) NOT NULL, `tag_seo` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tag` -- INSERT INTO `tag` (`id_tag`, `tag_name`, `tag_seo`) VALUES (35, 'kaligrafi arab', 'kaligrafi-arab'), (36, 'advantage', 'advantage'), (37, 'healthy', 'healthy'), (38, 'company', 'company'), (39, 'information', 'information'), (40, 'consulting', 'consulting'), (41, 'design', 'design'), (42, 'gamatechno', 'gamatechno'), (43, 'smart city', 'smart-city'), (44, 'indonesia pintar', 'indonesia-pintar'), (46, 'berita satu', 'berita-satu'); -- -------------------------------------------------------- -- -- Table structure for table `tag_news` -- CREATE TABLE `tag_news` ( `id_tagnews` int(11) NOT NULL, `fk_id_tag` int(11) NOT NULL, `fk_id_news` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tag_news` -- INSERT INTO `tag_news` (`id_tagnews`, `fk_id_tag`, `fk_id_news`) VALUES (1, 25, 1), (2, 26, 2), (3, 27, 3), (4, 29, 4), (10, 42, 13), (11, 43, 12), (12, 43, 11), (13, 44, 10), (14, 39, 5), (23, 47, 14); -- -------------------------------------------------------- -- -- Table structure for table `tag_service` -- CREATE TABLE `tag_service` ( `id_tagservice` int(11) NOT NULL, `fk_id_service` int(11) NOT NULL, `fk_id_tag` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tag_service` -- INSERT INTO `tag_service` (`id_tagservice`, `fk_id_service`, `fk_id_tag`) VALUES (6, 5, 29), (10, 6, 29), (11, 6, 26), (12, 7, 33), (15, 2, 33), (16, 2, 40), (21, 1, 41), (31, 3, 39); -- -------------------------------------------------------- -- -- Table structure for table `tag_staticpage` -- CREATE TABLE `tag_staticpage` ( `id_staticpage` int(11) NOT NULL, `fk_id_tag` int(11) NOT NULL, `fk_id_page` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tag_staticpage` -- INSERT INTO `tag_staticpage` (`id_staticpage`, `fk_id_tag`, `fk_id_page`) VALUES (3, 27, 53), (5, 33, 55), (31, 29, 57), (32, 36, 57), (33, 29, 56), (34, 37, 56), (39, 29, 58), (56, 45, 51), (60, 45, 52), (61, 29, 54), (62, 38, 54), (63, 47, 59); -- -------------------------------------------------------- -- -- Table structure for table `video` -- CREATE TABLE `video` ( `id_video` int(11) NOT NULL, `video_title` varchar(255) NOT NULL, `link_embed` varchar(255) NOT NULL, `status` enum('Y','N') NOT NULL, `is_deleted` tinyint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `video` -- INSERT INTO `video` (`id_video`, `video_title`, `link_embed`, `status`, `is_deleted`) VALUES (12, 'How To Build Startup', '<iframe width=\"100%\" height=\"504\" src=\"https://www.youtube.com/embed/7tz4Ya6gzG4\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>', 'Y', 0), (16, 'Academic Management System', '<iframe width=\"914\" height=\"514\" src=\"https://www.youtube.com/embed/TtPLeztfx9o\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>', 'N', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `banner` -- ALTER TABLE `banner` ADD PRIMARY KEY (`id_banner`); -- -- Indexes for table `category` -- ALTER TABLE `category` ADD PRIMARY KEY (`id_category`); -- -- Indexes for table `contact` -- ALTER TABLE `contact` ADD PRIMARY KEY (`id_contact`); -- -- Indexes for table `default_group` -- ALTER TABLE `default_group` ADD PRIMARY KEY (`groupId`); -- -- Indexes for table `default_group_menu` -- ALTER TABLE `default_group_menu` ADD KEY `menuId` (`menuId`), ADD KEY `groupId` (`groupId`); -- -- Indexes for table `default_group_page` -- ALTER TABLE `default_group_page` ADD KEY `pageId` (`pageId`), ADD KEY `groupId` (`groupId`); -- -- Indexes for table `default_menu` -- ALTER TABLE `default_menu` ADD PRIMARY KEY (`menuId`), ADD KEY `menuDefaultPage` (`menuDefaultPage`); -- -- Indexes for table `default_page` -- ALTER TABLE `default_page` ADD PRIMARY KEY (`pageId`); -- -- Indexes for table `default_user` -- ALTER TABLE `default_user` ADD PRIMARY KEY (`userId`); -- -- Indexes for table `identity` -- ALTER TABLE `identity` ADD PRIMARY KEY (`id_identity`); -- -- Indexes for table `link` -- ALTER TABLE `link` ADD PRIMARY KEY (`id_link`); -- -- Indexes for table `news` -- ALTER TABLE `news` ADD PRIMARY KEY (`id_news`); -- -- Indexes for table `pengunjung` -- ALTER TABLE `pengunjung` ADD PRIMARY KEY (`pengunjung_id`); -- -- Indexes for table `service` -- ALTER TABLE `service` ADD PRIMARY KEY (`id_service`); -- -- Indexes for table `static_page` -- ALTER TABLE `static_page` ADD PRIMARY KEY (`id_page`); -- -- Indexes for table `subscribe` -- ALTER TABLE `subscribe` ADD PRIMARY KEY (`id_subscribe`); -- -- Indexes for table `tag` -- ALTER TABLE `tag` ADD PRIMARY KEY (`id_tag`); -- -- Indexes for table `tag_news` -- ALTER TABLE `tag_news` ADD PRIMARY KEY (`id_tagnews`); -- -- Indexes for table `tag_service` -- ALTER TABLE `tag_service` ADD PRIMARY KEY (`id_tagservice`); -- -- Indexes for table `tag_staticpage` -- ALTER TABLE `tag_staticpage` ADD PRIMARY KEY (`id_staticpage`); -- -- Indexes for table `video` -- ALTER TABLE `video` ADD PRIMARY KEY (`id_video`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `banner` -- ALTER TABLE `banner` MODIFY `id_banner` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `category` -- ALTER TABLE `category` MODIFY `id_category` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `contact` -- ALTER TABLE `contact` MODIFY `id_contact` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `default_group` -- ALTER TABLE `default_group` MODIFY `groupId` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `default_menu` -- ALTER TABLE `default_menu` MODIFY `menuId` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT for table `default_page` -- ALTER TABLE `default_page` MODIFY `pageId` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=127; -- -- AUTO_INCREMENT for table `default_user` -- ALTER TABLE `default_user` MODIFY `userId` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `identity` -- ALTER TABLE `identity` MODIFY `id_identity` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `link` -- ALTER TABLE `link` MODIFY `id_link` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `news` -- ALTER TABLE `news` MODIFY `id_news` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `pengunjung` -- ALTER TABLE `pengunjung` MODIFY `pengunjung_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=978; -- -- AUTO_INCREMENT for table `service` -- ALTER TABLE `service` MODIFY `id_service` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `static_page` -- ALTER TABLE `static_page` MODIFY `id_page` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `subscribe` -- ALTER TABLE `subscribe` MODIFY `id_subscribe` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102; -- -- AUTO_INCREMENT for table `tag` -- ALTER TABLE `tag` MODIFY `id_tag` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47; -- -- AUTO_INCREMENT for table `tag_news` -- ALTER TABLE `tag_news` MODIFY `id_tagnews` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `tag_service` -- ALTER TABLE `tag_service` MODIFY `id_tagservice` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT for table `tag_staticpage` -- ALTER TABLE `tag_staticpage` MODIFY `id_staticpage` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64; -- -- AUTO_INCREMENT for table `video` -- ALTER TABLE `video` MODIFY `id_video` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- Constraints for dumped tables -- -- -- Constraints for table `default_group_menu` -- ALTER TABLE `default_group_menu` ADD CONSTRAINT `default_group_menu_ibfk_1` FOREIGN KEY (`menuId`) REFERENCES `default_menu` (`menuId`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `default_group_menu_ibfk_2` FOREIGN KEY (`groupId`) REFERENCES `default_group` (`groupId`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `default_group_page` -- ALTER TABLE `default_group_page` ADD CONSTRAINT `default_group_page_ibfk_1` FOREIGN KEY (`pageId`) REFERENCES `default_page` (`pageId`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `default_group_page_ibfk_2` FOREIGN KEY (`groupId`) REFERENCES `default_group` (`groupId`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `default_menu` -- ALTER TABLE `default_menu` ADD CONSTRAINT `default_menu_ibfk_2` FOREIGN KEY (`menuDefaultPage`) REFERENCES `default_page` (`pageId`) 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 */;
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3307 -- Generation Time: Sep 20, 2021 at 01:15 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 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: `excelitai` -- -- -------------------------------------------------------- -- -- Table structure for table `admins` -- CREATE TABLE `admins` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `designation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `avater` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `phone` varchar(255) 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 `admins` -- INSERT INTO `admins` (`id`, `name`, `email`, `password`, `designation`, `avater`, `phone`, `created_at`, `updated_at`) VALUES (1, 'fahimkhan', '<PASSWORD> <EMAIL>', <PASSWORD>', 'super-admin', '1632120991admin.jpg', '01725760300', '2021-09-01 03:53:13', '2021-09-20 00:56:31'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `management` -- CREATE TABLE `management` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `designation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `profile_photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `management` -- INSERT INTO `management` (`id`, `name`, `designation`, `email`, `profile_photo`, `phone_number`, `created_at`, `updated_at`) VALUES (6, '<NAME>', 'Chairman', '<EMAIL>', '1632046914_management_.jpg', '01234567890', '2021-09-19 04:21:54', '2021-09-19 04:21:54'), (7, '<NAME>', 'Managing Director', '<EMAIL>', '1632046994_management_.jpg', '01234567890', '2021-09-19 04:23:14', '2021-09-19 04:23:14'), (8, '<NAME>', 'Chief Executive Officer', '<EMAIL>', '1632047093_management_.jpg', '01234567890', '2021-09-19 04:24:53', '2021-09-19 04:24:53'); -- -------------------------------------------------------- -- -- 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 (6, '2014_10_12_000000_create_users_table', 1), (7, '2014_10_12_100000_create_password_resets_table', 1), (8, '2019_08_19_000000_create_failed_jobs_table', 1), (9, '2019_12_14_000001_create_personal_access_tokens_table', 1), (10, '2021_09_01_061724_create_admins_table', 1), (11, '2021_09_02_092605_create_software_teams_table', 2), (12, '2021_09_02_094013_create_sliders_table', 3), (13, '2021_09_07_101134_create_management_table', 4); -- -------------------------------------------------------- -- -- 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 `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL 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 `personal_access_tokens` -- INSERT INTO `personal_access_tokens` (`id`, `tokenable_type`, `tokenable_id`, `name`, `token`, `abilities`, `last_used_at`, `created_at`, `updated_at`) VALUES (3, 'App\\Models\\User', 1, 'excel it ai', '<PASSWORD>', '[\"*\"]', '2021-09-01 04:08:21', '2021-09-01 04:07:13', '2021-09-01 04:08:21'), (10, 'App\\Models\\Admin', 1, 'excel it ai', '<PASSWORD>1a21', '[\"*\"]', '2021-09-12 03:48:39', '2021-09-02 02:07:10', '2021-09-12 03:48:39'), (11, 'App\\Models\\Admin', 1, 'excel it ai', '<PASSWORD>3', '[\"*\"]', '2021-09-13 04:59:48', '2021-09-13 04:30:26', '2021-09-13 04:59:48'), (12, 'App\\Models\\Admin', 1, 'excel it ai', '54a9471c99925f4c5f356d2138820f57a8cea1059b010deed466c6aa9603bb73', '[\"*\"]', '2021-09-18 23:54:22', '2021-09-18 23:06:42', '2021-09-18 23:54:22'), (13, 'App\\Models\\Admin', 1, 'excel it ai', 'ce18659159b06c987698c3d3aa925eca44d9841610865a791ae7d9ed382188b6', '[\"*\"]', '2021-09-19 04:24:53', '2021-09-18 23:55:09', '2021-09-19 04:24:53'), (14, 'App\\Models\\Admin', 1, 'excel it ai', 'fd737a69db436a3ebf7ee0ff17aae50bb2f28847c59c8074a45d1158178c7094', '[\"*\"]', '2021-09-19 04:28:03', '2021-09-19 04:26:14', '2021-09-19 04:28:03'), (15, 'App\\Models\\Admin', 1, 'excel it ai', 'f9474a336fcd815bb7eb73684d67d212208cb6e8468cab44a28b9678e402f8f2', '[\"*\"]', '2021-09-20 03:43:46', '2021-09-20 00:54:49', '2021-09-20 03:43:46'); -- -------------------------------------------------------- -- -- Table structure for table `sliders` -- CREATE TABLE `sliders` ( `id` bigint(20) UNSIGNED NOT NULL, `slider_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slider_description` text COLLATE utf8mb4_unicode_ci NOT NULL, `slider_img` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sliders` -- INSERT INTO `sliders` (`id`, `slider_title`, `slider_description`, `slider_img`, `created_at`, `updated_at`) VALUES (67, 'Web Application Development', 'Web components are core parts of full stack mobile products. Our internal team can help you build Web Admins, Content Management Systems or small CRMS. Our team of crack frontend developers routinely deliver stunning, fully responsive websites that help our customers outshine their competition.', '1632033037slider_.png', '2021-09-19 00:30:38', '2021-09-19 00:30:38'), (68, 'Mobile Application Development', 'Our mobile application development solutions include various domains and topics. This service is about creating mobile applications for end-user smartphones, tablets, and other devices. In general, you can get full-cycle software development with all the necessary stages: business analysis, architecture planning, UI/UX design and prototyping, development, testing and QA, release with deployment or publication, and further tech suppor', '1632033087slider_.png', '2021-09-19 00:31:27', '2021-09-19 00:31:27'), (69, 'UI/UX Design', 'UI/UX design services include two critical aspects: user interface and user experience.', '1632033118slider_.png', '2021-09-19 00:31:58', '2021-09-19 00:31:58'), (70, 'Custom Software Development', 'Any customized software solution is all about unique products and services. You can get virtually whatever you need, from AI satellite data analysis software to regular online shop. Through custom software outsourcing experience, you get a significant market advantage. The thing is that your bespoke software will be unique and unavailable to competitors, unlike ready-made packages by product vendors that sell their solutions to different teams.', '1632033152slider_.png', '2021-09-19 00:32:33', '2021-09-19 00:32:33'), (71, 'Digital Marketing', 'Digital Marketing Activity \nElaborate the history of Digital Marketing', '1632033293slider_.png', '2021-09-19 00:34:53', '2021-09-19 00:34:53'); -- -------------------------------------------------------- -- -- Table structure for table `software_teams` -- CREATE TABLE `software_teams` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `designation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `employee_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `profile_photo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `software_teams` -- INSERT INTO `software_teams` (`id`, `name`, `designation`, `employee_id`, `email`, `profile_photo`, `phone_number`, `created_at`, `updated_at`) VALUES (66, 'Sakkhar', 'Technical Project Manager', '202101', '<EMAIL>', '1632034698softwareteam_.jpg', '01234567890', '2021-09-19 00:58:18', '2021-09-19 00:58:18'), (67, '<NAME>', 'Software Engineer', '202102', '<EMAIL>', '1632034760softwareteam_.jpg', '01799328264', '2021-09-19 00:59:20', '2021-09-19 00:59:20'), (68, 'M.A.Monyeem', 'Software Engineer', '202103', '<EMAIL>', '1632034819softwareteam_.jpg', '01234567890', '2021-09-19 01:00:19', '2021-09-19 01:00:19'), (69, 'Zinat Sultana', 'Junior UI/UX Designer', '202104', '<EMAIL>', '1632034864softwareteam_.jpg', '01234567890', '2021-09-19 01:01:04', '2021-09-19 01:01:04'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` 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`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'user', '<EMAIL>', NULL, '$2y$10$X2z5NoSno9mkhWck/CL8V..lMELQIe1OYWThShj1c1ANo.CTWf05y', NULL, '2021-09-01 04:03:07', '2021-09-01 04:03:07'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admins` -- ALTER TABLE `admins` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `admins_email_unique` (`email`), ADD UNIQUE KEY `admins_phone_unique` (`phone`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `management` -- ALTER TABLE `management` ADD PRIMARY KEY (`id`); -- -- 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 `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `software_teams` -- ALTER TABLE `software_teams` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admins` -- ALTER TABLE `admins` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `management` -- ALTER TABLE `management` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `sliders` -- ALTER TABLE `sliders` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- -- AUTO_INCREMENT for table `software_teams` -- ALTER TABLE `software_teams` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70; -- -- 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 */;
DROP SCHEMA IF EXISTS `deviceguru`; CREATE SCHEMA IF NOT EXISTS `deviceguru` DEFAULT CHARACTER SET utf8 ; USE `deviceguru`; -- ----------------------------------------------------- -- Table `deviceguru`.`devicelogins` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`devicelogins` ; CREATE TABLE IF NOT EXISTS `devicelogins` ( `email` VARCHAR(40) NOT NULL, `password` VARCHAR(100) NULL, PRIMARY KEY (`email`) ); -- ----------------------------------------------------- -- Table `deviceguru`.`devices` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`devices` ; CREATE TABLE IF NOT EXISTS `devices` ( `serialnumber` VARCHAR(30) NOT NULL, `type` VARCHAR(20) NULL, PRIMARY KEY (`serialnumber`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`students` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`students` ; CREATE TABLE IF NOT EXISTS `students` ( `firstname` VARCHAR(100) NOT NULL, `lastname` VARCHAR(100) NOT NULL, `serialnumber` VARCHAR(100) NOT NULL, `email` VARCHAR(200) NOT NULL, `class` VARCHAR(10) NOT NULL, `department` VARCHAR(100), `activestudent` VARCHAR(100), PRIMARY KEY (`email`), FOREIGN KEY (`email`) REFERENCES devicelogins(`email`), FOREIGN KEY (`serialnumber`) REFERENCES devices(`serialnumber`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`personel` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`personel` ; CREATE TABLE IF NOT EXISTS `personel` ( `firstname` VARCHAR(30) NOT NULL, `lastname` VARCHAR(80) NOT NULL, `device` VARCHAR(30) NOT NULL, `email` VARCHAR(60) NOT NULL, PRIMARY KEY (`email`), # FOREIGN KEY (`device`) REFERENCES devices(`serialnumber`), FOREIGN KEY (`email`) REFERENCES devicelogins(`email`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`repairs` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`repairs` ; CREATE TABLE IF NOT EXISTS `repairs` ( `serialnumber` VARCHAR(30) NOT NULL, `email` VARCHAR(50) NOT NULL, `ticketid` INT AUTO_INCREMENT, `status` VARCHAR(550) NOT NULL, PRIMARY KEY (`ticketid`), FOREIGN KEY (`serialnumber`) REFERENCES devices(`serialnumber`), FOREIGN KEY (`email`) REFERENCES students(`email`) # , FOREIGN KEY (`owner`) REFERENCES personel(`email`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`logins` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`logins` ; CREATE TABLE IF NOT EXISTS `logins` ( `username` VARCHAR(40) NOT NULL, `password` VARCHAR(40) NOT NULL, PRIMARY KEY (`username`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`assignments` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`assignments` ; CREATE TABLE IF NOT EXISTS `assignments` ( `assignment` TEXT NOT NULL, `owner` VARCHAR(40) NOT NULL, `id` INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), FOREIGN KEY (`owner`) REFERENCES logins(`username`) ); -- ----------------------------------------------------- -- Table `sql7145733`.`devicehistory` -- ----------------------------------------------------- DROP TABLE IF EXISTS `deviceguru`.`devicehistory` ; CREATE TABLE IF NOT EXISTS `devicehistory` ( `email` VARCHAR(100) NOT NULL, `serialnumber` VARCHAR(30) NOT NULL, `startdate` DATE NOT NULL, `enddate` DATE, # PRIMARY KEY (`email`), FOREIGN KEY (`email`) REFERENCES students (`email`), # FOREIGN KEY (`email`) REFERENCES personel (`email`), FOREIGN KEY (`serialnumber`) REFERENCES devices (`serialnumber`) );
CREATE TABLE reports ( report_id VARCHAR2(50) NOT NULL, name VARCHAR2(50) NOT NULL, connect_id VARCHAR2(50) NOT NULL, subject_id VARCHAR2(50) NOT NULL, description VARCHAR2(1024), filters CLOB, funnels CLOB, indicators CLOB, dimensions CLOB, rect CLOB, chart CLOB, simulating NUMBER(1) NOT NULL, simulate_data CLOB, simulate_thumbnail CLOB, user_id VARCHAR2(50) NOT NULL, tenant_id VARCHAR2(50) NOT NULL, last_visit_time DATE NOT NULL, created_at DATE NOT NULL, created_by VARCHAR2(50) NOT NULL, last_modified_at DATE NOT NULL, last_modified_by VARCHAR2(50) NOT NULL, CONSTRAINT pk_reports PRIMARY KEY (report_id) ); CREATE INDEX i_reports_1 ON reports (name); CREATE INDEX i_reports_2 ON reports (user_id); CREATE INDEX i_reports_3 ON reports (tenant_id); CREATE INDEX i_reports_4 ON reports (created_at); CREATE INDEX i_reports_5 ON reports (created_by); CREATE INDEX i_reports_6 ON reports (last_modified_at); CREATE INDEX i_reports_7 ON reports (last_modified_by);
-- phpMyAdmin SQL Dump -- version 2.8.0.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 17, 2017 at 04:25 AM -- Server version: 5.6.38 -- PHP Version: 5.5.38 -- -- Database: `CXSv4` -- -- -------------------------------------------------------- -- -- Table structure for table `xcl_hotels` -- CREATE TABLE `xcl_hotels` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `hotel_type` int(10) unsigned NOT NULL DEFAULT '2' COMMENT '0-STV, 1-Hotel Group, 2-Hotel, 3-Roomie Partner', `hotel_group` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Hotel Group ID', `hotel_partner` int(11) NOT NULL DEFAULT '0' COMMENT 'Partner Id', `company_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `hotel_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `hotel_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `hotel_country` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Country ID', `hotel_timezone` int(10) unsigned NOT NULL DEFAULT '25' COMMENT 'Timezone ID', `hotel_pincode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `hotel_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Hotel Public IP Address', `hotel_ip_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT '0-Fixed IP, 1-Dynamic, 2-Not Sure', `hotel_mac` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `hotel_logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_wallpaper` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Wallpaper', `hotel_smartphone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_tablet` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_mcolor` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_tcolor` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_rooms` int(50) NOT NULL DEFAULT '0' COMMENT 'Rooms Count Provided by user', `hotel_room_type` int(11) NOT NULL DEFAULT '0' COMMENT '0-Standard, 1-Dorm', `hotel_status` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '0-Active, 1-Staging, 2-Inactive', `hotel_approved` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `hotel_group_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `hotel_code` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Hotel setup code', `hotel_stage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '0-Done, 1-Activate, 2-Step1, 3-Step2, 4-Step3, 5-Live', `live_date` timestamp NULL DEFAULT NULL, `reset_date` timestamp NULL DEFAULT NULL, `hotel_device` int(11) NOT NULL DEFAULT '0' COMMENT '0-No device, 1-Smart TV, 2-HDMI, 3-Both', `hotel_demo` int(11) NOT NULL COMMENT '0. Non Demo, 1. Demo', `added_by` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'User ID', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `hotel_code` (`hotel_code`) ) ENGINE=InnoDB AUTO_INCREMENT=435 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=435 ; -- -- Dumping data for table `xcl_hotels` -- INSERT INTO `xcl_hotels` (`id`, `hotel_type`, `hotel_group`, `hotel_partner`, `company_name`, `hotel_name`, `hotel_address`, `hotel_city`, `hotel_state`, `hotel_country`, `hotel_timezone`, `hotel_pincode`, `hotel_ip`, `hotel_ip_type`, `hotel_mac`, `hotel_logo`, `hotel_wallpaper`, `hotel_smartphone`, `hotel_tablet`, `hotel_mcolor`, `hotel_tcolor`, `hotel_rooms`, `hotel_room_type`, `hotel_status`, `hotel_approved`, `hotel_group_code`, `hotel_code`, `hotel_stage`, `live_date`, `reset_date`, `hotel_device`, `hotel_demo`, `added_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 0, 0, 0, '', 'STV Global QC Devel', 'No 27, Jln 16/6, Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '172.16.31.10', '0', 'd4:ae:52:c6:e9:c3', '', '1_pr13_1502963096.jpg', '1_pr12_1502963066.jpg', '1024x576_1477628574.jpg', '#114a6b', '#4d4d4d', 0, 0, 0, '2017-10-12 07:32:18', '', NULL, 0, '2016-09-15 20:17:11', NULL, 0, 0, 0, '2016-09-15 20:17:11', '2017-10-12 15:32:18', NULL), (2, 2, 5, 0, '', 'TD Hotel Staging', 'The Plaza Office Tower, 16 - 18th Floor,Jl. <NAME> 28 - 30', 'Jakarta East', 'Jakarta', 126, 25, '10350', '172.16.58.3', '1', '9c:d6:43:d4:f7:4e', '2_TD-staging260x260_1494578282.png', '', '', '1024X576_1476846623.png', '#d95b5e', '#4d4d4d', 20, 0, 0, '2017-10-09 07:23:55', '', NULL, 0, '2016-10-05 15:25:32', NULL, 0, 0, 5, '2016-10-05 15:25:32', '2017-05-30 13:40:50', NULL), (3, 2, 0, 0, '', 'ROOMIE DEMO Global', '27, Jalan 16/6', '<NAME>', 'Selangor', 8, 25, '46350', '', '0', NULL, 'roomie_hotel_logo_RH_1477973985.png', '', 'ROOMIE_360X540_2_1476784968.png', '1024x576_1476784969.png', '#2794a0', '#4d4d4d', 40, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-10-10 03:26:15', NULL, 0, 0, 0, '2016-10-10 03:26:15', '2016-11-25 17:33:44', NULL), (4, 2, 0, 0, '', 'PM Hotel', '999 De Mainsonneuve Quest, Suite # 750', 'Montreal', 'Quebec', 126, 25, '83184', '192.168.127.12', '0', NULL, 'roomie_hotel_logo_PM_1477630091.png', '', '360x540_1477630091.png', '1024X576_1477630091.png', '#9f7173', '#4d4d4d', 10, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-10-10 10:43:52', NULL, 0, 0, 0, '2016-10-10 10:43:52', '2016-11-07 20:27:35', NULL), (5, 1, 0, 0, '', 'TD GROUP Hotel', '1395 Brickell Avenue Suite 800', 'Miami', 'Florida', 215, 25, '33131', '172.16.31.10', '0', '', '5_hotel_logo_1478522261_1484726734.png', '', '5_image_2_720x1280_1484713526.jpg', '1024X576_1476350975.png', '#368ea5', '#4d4d4d', 0, 0, 0, '2017-11-01 06:31:15', 'TDGROUPHOTEL', '', 0, '2016-10-11 04:50:18', NULL, 0, 0, 0, '2016-10-11 04:50:18', '2017-01-18 16:05:36', NULL), (6, 2, 0, 0, '', 'RH Hotel (Play&App Application)', '4th Floor, Atrium Building, Chaka / Lenana Road', 'Nairobi', 'Nairobi', 151, 25, '200', '192.168.127.12', '0', NULL, 'roomie_hotel_logo_DS_02_1476272190.png', '', 'thon-hotel-prinsen-resepsjon-2_1476272190.jpg', 'bal-bs-bs-tr-best-hotel-room-royal-sonesta-20151106-4-1024x576_1476272190.jpg', '#2794a0', '#4d4d4d', 10, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-10-12 11:35:21', NULL, 0, 0, 0, '2016-10-12 11:35:21', '2016-11-28 16:35:41', NULL), (8, 2, 0, 0, '', 'ROOMIE DEMO US', '27, Jalan 16/6', '<NAME>', 'Selangor', 215, 25, '46350', '192.168.127.12', '0', '54:64:D9:37:1C:B2', 'RH-NYC_260X260_1477453422.png', '', '360x540_1476784267.png', '1024X576_1477453422.png', '#059AAE', '#4d4d4d', 0, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-10-13 11:17:14', NULL, 0, 0, 0, '2016-10-13 11:17:14', '2016-11-19 01:29:37', NULL), (13, 2, 0, 0, '', 'RH Hotel', 'Hotel for Video Recording', 'Hotel for Video Recording', 'Hotel for Video Recording', 155, 25, NULL, '172.16.31.10', '0', NULL, 'roomie_hotel_logo_RH_1479574295.png', '', '360x540_1478168920.png', '1024X576_1478168920.png', '#e38e1c', '', 0, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-11-01 03:11:36', NULL, 0, 0, 0, '2016-11-01 03:11:36', '2016-11-27 13:51:04', NULL), (15, 2, 0, 0, '', 'Ryokan Chic Hotel', '97, Jalan SS 21/37, Damansara Utama', 'Petaling Jaya', 'Selangor', 126, 25, '47400', '172.16.58.3', '', '34:97:f6:40:10:34', 'app_logo_ryokan3_1478827709.png', '', 'ryokan_360X540_1478765082_s15.png', '1024x576_1478765083_t15.png', '#df4b67', '', 100, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-11-08 03:41:11', NULL, 0, 0, 0, '2016-11-08 03:41:11', '2016-11-17 06:47:25', NULL), (22, 2, 155, 0, '', 'Bello & Bella Hotel', '19, Jalan Manis 6, Taman Segar, 56100', 'Cheras', 'Kuala Lumpur', 126, 25, '56100', '', '', '', 'logo_1480068004.png', '', '360X540_1480068004_s22.png', '1024x576_1478769973_t22.png', '#b5824d', '', 19, 0, 0, '2017-11-16 08:30:34', '', NULL, 0, '2016-11-09 07:36:10', NULL, 0, 1, 197, '2016-11-09 07:36:10', '2017-11-15 17:12:46', NULL), (24, 2, 0, 0, '', 'Select-TV Hotel', 'selectvHotel', 'selectvHotel', 'selectvHotel', 126, 25, NULL, '192.168.127.12', '', NULL, 'hotel_logo_1478522261_1478769109.png', '', 'smartphone_logo_1478769109.png', '', '#059AAE', '', 0, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-11-10 07:37:09', NULL, 0, 0, 0, '2016-11-10 07:37:09', '2016-11-16 15:12:32', NULL), (25, 2, 0, 0, '', 'Best Western Plus High Sierra Hotel', '3228 Main St (HWY 203)', 'Mammoth Lakes', 'California', 215, 25, '93546', '192.168.127.12', '', NULL, 'hotel_logo_1479114725.png', '', 'hotel_wallpaper_1479114725.png', '', '#059AAE', '', 0, 0, 0, '2017-11-14 10:54:38', '', NULL, 0, '2016-11-14 08:42:04', NULL, 0, 1, 197, '2016-11-14 08:42:04', '2017-11-14 18:54:38', NULL), (28, 2, 0, 0, '', 'DAiLY Suites Hotel', 'B-17-08, Atria Sofo Suites', 'Jalan SS 22/23, Damansara Jaya, Petaling Jaya', 'Selangor', 126, 25, '47400', '', '', '', 'daily_logo_260x260_1479986424.png', '', 'wallpaper_1479993586_s28.png', '', '#4f91cd', '', 100, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-11-24 09:26:26', NULL, 0, 0, 0, '2016-11-24 09:26:26', '2016-11-28 18:40:12', NULL), (29, 2, 155, 0, '', 'La Pari Pari, Langkawi', '2273, Jalan Teluk Baru, Kampung Tasek Anak', 'Langkawi', 'Kedah', 126, 25, '7000', '', '', '', 'logo260x260_1480068643.png', '', '360x5402_1480068643_s29.png', '', '#41c4dd', '', 12, 0, 0, '2017-11-16 08:26:35', '', NULL, 0, '2016-11-25 06:50:02', NULL, 0, 0, 197, '2016-11-25 06:50:02', '2017-11-16 15:51:30', NULL), (30, 2, 0, 0, '', 'ZZZ Hotel 1', '4.0.4 Hotel', '4.0.4 Hotel', '4.0.4 Hotel', 126, 25, '20002', '', '', NULL, 'hotel_logo_1484723367.png', '', 'hotel_wallpaper_1484723368.png', '', '#059AAE', '', 100, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-05 02:47:07', NULL, 0, 0, 0, '2016-12-05 02:47:07', '2017-01-18 15:10:34', NULL), (31, 2, 0, 0, '', 'ZZZ Hotel 2', '4.0.4 Hotel A', '4.0.4 Hotel A', '4.0.4 Hotel A', 126, 25, '12345', '', '', NULL, 'hotel_logo_1484723268.png', '', 'hotel_wallpaper_1484723268.png', '', '#059AAE', '', 50, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-06 07:03:04', NULL, 0, 0, 0, '2016-12-06 07:03:04', '2017-01-18 15:10:55', NULL), (32, 2, 0, 0, '', '<EMAIL>', 'ravihotel', 'ravihotel', 'ravihotel', 126, 25, '567889', '', '', NULL, 'hotel_logo_1481022034.png', '', 'hotel_wallpaper_1481022034.png', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:17:31', '', NULL, 0, '2016-12-06 07:59:40', NULL, 0, 0, 0, '2016-12-06 07:59:40', '2016-12-06 19:00:34', NULL), (33, 2, 0, 0, '', '!! Training (Backup) Hotel.', '29, Jalan 16/6, Seksyen 16,', '<NAME>', 'Selangor', 104, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1474427901_1481025016.png', 'thon-hotel-prinsen-resepsjon-2_1481025016.jpg', 'thon-hotel-prinsen-resepsjon-2_1481025016.jpg', '', '#862929', '', 15, 0, 0, '2017-11-15 02:01:11', '', NULL, 0, '2016-12-06 11:46:07', NULL, 0, 0, 197, '2016-12-06 11:46:07', '2017-11-15 10:01:11', NULL), (34, 2, 0, 0, '', 'Hotel ZohoWebmail Test', '27, Jalan 16/6 ', '', '', 126, 25, '0', '172.16.17.32', '', NULL, 'hotel_logo_1481275073.png', '', '360_x_540_1481275073.jpg', '', '#26b4d8', '', 3435, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-09 16:31:23', NULL, 0, 0, 0, '2016-12-09 16:31:23', '2016-12-09 17:18:57', NULL), (35, 3, 0, 0, 'TESTING ZohoMail 321', 'Hotel TESTING ZohoMail 321', '27, Jalan 16/6 ', '<NAME>', '<NAME>', 126, 25, '46855', '', '', NULL, '', '', '', '', '', '', 3435, 0, 0, '2017-11-02 08:59:43', '', NULL, 0, '2016-12-09 17:39:23', NULL, 0, 0, 0, '2016-12-09 17:39:23', '2017-11-02 16:59:43', NULL), (36, 2, 0, 0, '', 'Hotel ProtonMail', '27, Jalan 16/6 ', '', '', 126, 25, '0', '172.16.17.32', '', NULL, 'hotel_logo_1481281466.png', '', 'hotel_wallpaper_1481281466.png', '', '#2aacc1', '', 3435, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-09 19:00:43', NULL, 0, 0, 0, '2016-12-09 19:00:43', '2016-12-09 19:04:40', NULL), (37, 1, 0, 35, '', 'Hotel ZohoMail Group', '27, Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 324436, 0, 0, '2017-10-27 07:36:21', '', NULL, 0, '2016-12-09 20:02:04', NULL, 0, 0, 0, '2016-12-09 20:02:04', '2016-12-09 20:02:04', NULL), (38, 2, 0, 0, '', 'Hotel112', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 112, 25, '46350', '', '', NULL, '', '', '', '', '', '', 112, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-09 21:09:33', NULL, 0, 0, 0, '2016-12-09 21:09:33', '2016-12-09 21:09:33', NULL), (39, 2, 5, 0, '', 'Hotel Proton 123', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, '260x260_1481289291.jpg', '', '360_x_540_1481289291.jpg', '', '#7cc18d', '', 114, 0, 0, '2017-05-17 13:13:55', '', NULL, 0, '2016-12-09 21:13:06', NULL, 0, 0, 0, '2016-12-09 21:13:06', '2016-12-09 21:15:04', NULL), (40, 2, 5, 0, '', 'Hotel112', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 125, 25, '46350', '', '', NULL, '', '', '', '', '', '', 112, 0, 0, '2017-05-17 13:13:55', '', NULL, 0, '2016-12-09 21:18:42', NULL, 0, 0, 0, '2016-12-09 21:18:42', '2016-12-09 21:18:42', NULL), (41, 2, 0, 0, '', 'Hotel114', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 114, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 15:28:10', NULL, 0, 0, 0, '2016-12-15 15:28:10', '2016-12-15 15:28:10', NULL), (42, 2, 0, 0, '', 'Hotel223', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 223, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 15:31:31', NULL, 0, 0, 0, '2016-12-15 15:31:31', '2016-12-15 15:31:31', NULL), (43, 2, 0, 0, '', 'Hotel4', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 4, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 16:08:01', NULL, 0, 0, 0, '2016-12-15 16:08:01', '2016-12-15 16:08:01', NULL), (44, 2, 0, 0, '', 'Hotel18', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 18, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 16:08:36', NULL, 0, 0, 0, '2016-12-15 16:08:36', '2016-12-15 16:08:36', NULL), (45, 2, 0, 0, '', 'Hotel9', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 9, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 16:09:08', NULL, 0, 0, 0, '2016-12-15 16:09:08', '2016-12-15 16:09:08', NULL), (46, 2, 0, 0, '', 'Hotel115', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 115, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 16:09:37', NULL, 0, 0, 0, '2016-12-15 16:09:37', '2016-12-15 16:09:37', NULL), (47, 2, 0, 0, '', 'Hotel116', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 116, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 16:11:30', NULL, 0, 0, 0, '2016-12-15 16:11:30', '2016-12-15 16:11:30', NULL), (48, 2, 0, 0, '', 'Hotel GMXmail 2', '27, Jalan 16/6 ', '', '', 126, 25, '0', '172.16.17.32', '', NULL, 'hotel_logo_1481793334.png', '', 'hotel_wallpaper_1481793334.png', '', '#059AAE', '', 2133, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 17:13:55', NULL, 0, 0, 0, '2016-12-15 17:13:55', '2016-12-15 17:16:00', NULL), (49, 2, 0, 0, '', 'Hotel Yahoo 4', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1481793722.png', '', 'hotel_wallpaper_1481793722.png', '', '#059AAE', '', 5, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 17:19:25', NULL, 0, 0, 0, '2016-12-15 17:19:25', '2016-12-15 17:38:44', NULL), (50, 2, 0, 0, '', 'HOTEL BRANDING Issue Hotel', 'No 55 Jalan Semantan Taman Equestrian', '', '', 126, 25, '78100', '172.16.17.32', '', NULL, 'done_1481555011_1481797023.png', '', 'WALLPAPER_4_360X540_1481797023.png', '', '#059AAE', '', 88, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 18:15:17', NULL, 0, 0, 0, '2016-12-15 18:15:17', '2016-12-15 18:18:12', NULL), (51, 2, 0, 0, '', 'Gmail Final Test', '27, Jalan 16/6 ', '', '', 126, 25, '0', '172.16.17.32', '', NULL, '260x260_1481805509.jpg', '', '360_x_540_1481805509.jpg', '', '#232ac3', '', 123, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 19:13:39', NULL, 0, 0, 0, '2016-12-15 19:13:39', '2016-12-15 20:38:40', NULL), (52, 2, 0, 0, '', 'Hotel Gmail Final Existing', '27, Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 1234, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-15 21:37:08', NULL, 0, 0, 0, '2016-12-15 21:37:08', '2016-12-15 21:37:08', NULL), (53, 2, 0, 0, '', 'Hotel Testing For Final Proces', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, '260x260_1482208679.jpg', '', '360_x_540_1482208679.jpg', '', '#722424', '', 126, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-20 11:18:21', NULL, 0, 0, 0, '2016-12-20 11:18:21', '2016-12-20 12:46:05', NULL), (54, 2, 0, 0, '', 'Hotel Testing For Final Report', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 126, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-20 11:21:13', NULL, 0, 0, 0, '2016-12-20 11:21:13', '2016-12-20 11:21:13', NULL), (55, 2, 0, 0, '', 'Hotel Testing For Final Report', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 126, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-20 11:23:26', NULL, 0, 0, 0, '2016-12-20 11:23:26', '2016-12-20 11:23:26', NULL), (56, 2, 0, 0, '', 'Hotel Setup For Final Report 2', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 126, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-20 13:38:38', NULL, 0, 0, 0, '2016-12-20 13:38:38', '2016-12-20 13:38:38', NULL), (57, 2, 0, 0, '', 'Hotel Testing For Final Report 2', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 126, 0, 0, '2017-05-11 08:10:10', '', NULL, 0, '2016-12-20 13:42:51', NULL, 0, 0, 0, '2016-12-20 13:42:51', '2016-12-20 13:42:51', NULL), (61, 2, 0, 0, '', 'Bukit Mewah Hotel Executive', 'Bukit Mewah Hotel Executive, Jalan 20', 'Kajang', 'Negeri Sembilan', 126, 25, '70450', '', '', NULL, 'ibis_hotel_1482994317.png', '', 'reception_4_1482994317.jpg', '', '#805500', '', 405, 0, 0, '2017-05-11 08:10:10', '', 'otwlc7n7dd', 0, '2016-12-29 14:46:15', NULL, 0, 0, 0, '2016-12-29 14:46:15', '2016-12-29 14:53:55', NULL), (62, 2, 124, 0, '', 'FINAL Onwer 1', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1483008946.png', '', '', '', '#059AAE', '', 10, 0, 0, '2017-11-08 08:53:43', '', 'tbru8aovvx', 0, '2016-12-29 17:51:44', NULL, 0, 1, 197, '2016-12-29 17:51:44', '2017-11-08 16:53:43', NULL), (63, 2, 0, 0, '', 'FINAL Executive 1', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1483009280.png', '', '', '', '#059AAE', '', 50, 0, 2, '2017-05-26 11:24:35', '', 'g190e91skv', 0, '2016-12-29 17:52:57', NULL, 0, 0, 6, '2016-12-29 17:52:57', '2017-05-26 19:24:35', NULL), (64, 2, 0, 347, '', 'Fifie General Manager 2', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'comfort_suites_1483006829.png', '', 'city_3_new_1483006829_s64.jpg', '', '#164041', '', 20, 0, 0, '2017-11-14 10:58:03', '', 'd142bblao6', 0, '2016-12-29 18:06:06', NULL, 0, 1, 197, '2016-12-29 18:06:06', '2017-11-14 18:58:03', NULL), (65, 2, 0, 0, '', 'Fifie IT Manager 2', '27, Jalan 16/6, Seksyen 16, ABC', '<NAME>', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'sheraton_black_1483007078.png', '', 'city_2_1483007078.jpg', '', '#ae9121', '', 40, 0, 2, '2017-10-02 08:17:42', '', 'fcumxtsz9t', 0, '2016-12-29 18:22:15', NULL, 0, 0, 0, '2016-12-29 18:22:15', '2016-12-29 18:26:28', NULL), (66, 2, 0, 0, '', 'Fifie Owner 2', '27, Jalan 16/6, Seksyen 16, ABC', '<NAME>aya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1483007417.png', '', 'hotel_wallpaper_1483007417.png', '', '#059AAE', '', 10, 0, 0, '2017-11-08 08:34:17', '', 'kabhi8l862', 0, '2016-12-29 18:29:06', NULL, 2, 0, 197, '2016-12-29 18:29:06', '2017-11-08 16:34:17', NULL), (67, 2, 0, 0, '', 'Anggerik Hotel_aimia291831983198akjds', 'The Legend Of Blue Sea Hotel Jalan Bunga Alamanda 200/10', 'Petaling Jaya', 'Negeri Sembilan', 126, 25, '70400', '', '', NULL, 'hotel_logo_1483007994.png', '', 'hotel_wallpaper_1483007994.png', '', '#059AAE', '', 405, 0, 0, '2017-11-15 02:33:45', '', 'j6gner6z0o', 0, '2016-12-29 18:35:01', NULL, 3, 0, 197, '2016-12-29 18:35:01', '2017-11-15 10:33:45', NULL), (68, 2, 121, 0, '', 'qc.devel canada ', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 38, 25, '46350', '', '', '', 'ibis_hotel_1483072750.png', '', '02_1483072750.jpg', '', '#ac0935', '', 50, 0, 0, '2017-11-03 03:13:25', '', '4tpepzixd3', 0, '2016-12-30 12:04:20', NULL, 0, 0, 181, '2016-12-30 12:04:20', '2017-11-02 18:04:58', NULL), (69, 2, 0, 0, '', 'RRM General Manager (STAGE)', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'redrood_inn_white_1483070883.png', '', 'seaside_1-e1482908863923_1483072832_s69.jpg', '', '#3e2707', '', 20, 0, 0, '2017-05-11 08:10:10', '', 'g7bp3jb8zn', 0, '2016-12-30 12:05:56', NULL, 0, 0, 0, '2016-12-30 12:05:56', '2016-12-30 12:40:32', NULL), (70, 2, 0, 0, '', 'RRE IT Manager', 'Jalan Alamanda 20', 'Senawang', 'Negeri Sembilan', 126, 25, '70450', '172.16.17.32', '', NULL, 'imageabc-123_Xyy_1483072206.png', '', 'corridor_3_1483072206_s70.jpg', '', '#bb8562', '', 150, 0, 0, '2017-05-11 08:10:10', '', 'jn26we7ohg', 0, '2016-12-30 12:19:02', NULL, 0, 0, 0, '2016-12-30 12:19:02', '2016-12-30 12:30:06', NULL), (71, 2, 0, 0, '', 'RRM Owner', '27, Jalan 16/6, Seksyen 16, ABC', '<NAME>', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'hotel_logo_1483075214.png', '', 'hotel_wallpaper_1483075214.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', 'zf2eon1vuh', 0, '2016-12-30 12:31:35', NULL, 0, 0, 0, '2016-12-30 12:31:35', '2016-12-30 13:21:24', NULL), (72, 2, 0, 0, '', 'RRE Others', 'RRE Others Jalan 20', 'Kajang', '<NAME>', 126, 25, '70450', '172.16.17.32', '', NULL, 'hotel_logo_1483073045.png', '', 'hotel_wallpaper_1483073045.png', '', '#059AAE', '', 100, 0, 0, '2017-05-11 08:10:10', '', 'igp2tmge2o', 0, '2016-12-30 12:41:41', NULL, 0, 0, 0, '2016-12-30 12:41:41', '2016-12-30 12:45:00', NULL), (73, 2, 0, 0, '', 'RRM Others HB', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 126, 25, '46351', '172.16.17.32', '', NULL, 'redrood_inn_white_1483074350.png', '', 'corridor_4_1483074350_s73.jpg', '', '#92273f', '', 60, 0, 0, '2017-05-11 08:10:10', '', 'dpq0t5zqu4', 0, '2016-12-30 12:55:08', NULL, 0, 0, 0, '2016-12-30 12:55:08', '2016-12-30 13:05:50', NULL), (74, 2, 162, 0, '', 'RRM Hotel Manager', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, 'hotel_logo_1509955759.png', '', 'smartphone_logo_1509955759.png', '', '#059AAE', '', 30, 0, 0, '2017-11-09 08:14:21', '', '9ril1bzbpl', 0, '2017-11-06 04:09:29', NULL, 0, 0, 0, '2016-12-30 12:59:41', '2017-11-06 16:09:29', NULL), (75, 2, 0, 0, '', 'RRM IT Manager', '27, Jalan 16/6, Seksyen 16, ABC', 'Petaling jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', NULL, 'best_western_1483075447.png', '', '03_1483075447.jpg', '', '#7b809c', '', 40, 0, 0, '2017-05-11 08:10:10', '', 'k05jmytwk3', 0, '2016-12-30 13:23:21', NULL, 0, 0, 0, '2016-12-30 13:23:21', '2016-12-30 13:24:51', NULL), (76, 2, 0, 0, '', 'RRE NEW ', 'Jalan Alamanda 20', 'Senawang', 'Negeri Sembilan', 126, 25, '70450', '172.16.17.32', '', NULL, 'fairfield_suites_1483075670.png', '', '03_1483075779_s76.jpg', '', '#3a2e43', '', 150, 0, 0, '2017-05-11 08:10:10', '', 'f14l49eqd2', 0, '2016-12-30 13:26:30', NULL, 0, 0, 0, '2016-12-30 13:26:30', '2016-12-30 13:29:39', NULL), (77, 2, 0, 0, '', 'AZ Staging', 'AZ Staging AZ Staging', 'AZ Staging', 'AZ Staging', 126, 25, '9090', '', '', NULL, 'hotel_logo_1486548804.png', '', 'hotel_wallpaper_1486548804.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', '7umi8jzv1z', 0, '2017-01-03 17:12:50', NULL, 0, 0, 0, '2017-01-03 17:12:50', '2017-02-08 18:13:39', NULL), (78, 2, 0, 0, '', '4.0.6 Installer Test A', 'Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '43000', '', '', NULL, '78_redrood_inn_white_1484726441.png', '', '78_hotel_branding_2_1484726340.jpg', '', '#28223c', '', 10, 0, 0, '2017-05-11 08:10:10', '', '81xmdhp7bp', 0, '2017-01-18 15:13:21', NULL, 0, 0, 0, '2017-01-18 15:13:21', '2017-01-18 16:00:54', NULL), (79, 2, 0, 0, '', 'Hotel 4.0.6 V1', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', 'hotel_wallpaper_1484734901.png', '', '#059AAE', '', 1, 0, 0, '2017-05-11 08:10:10', '', 'ubiq7o9iql', 0, '2017-01-18 17:59:18', NULL, 0, 0, 0, '2017-01-18 17:59:18', '2017-01-18 18:52:13', NULL), (80, 2, 0, 0, '', 'Hotel 4.0.6 V2', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46351', '', '', NULL, 'hotel_logo_1484735390.png', '', '80_pier-569314_1484736905.jpg', '', '#059AAE', '', 2, 0, 0, '2017-05-11 08:10:10', '', 'sckmetymcm', 0, '2017-01-18 18:25:31', NULL, 0, 0, 0, '2017-01-18 18:25:31', '2017-01-18 18:55:17', NULL), (81, 2, 0, 0, '', 'Hotel 4.0.6 V3', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46352', '', '', NULL, '81_roomie_hotel_logo_TD_1477044660_1484736986.png', '', '81_aptos-296159_1484737049.jpg', '', '#059AAE', '', 3, 0, 0, '2017-05-11 08:10:10', '', 'r2xi5lf314', 0, '2017-01-18 18:37:43', NULL, 0, 0, 0, '2017-01-18 18:37:43', '2017-01-18 18:57:37', NULL), (82, 2, 0, 0, '', 'Hotel 4.0.6 V4', '27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malay', 'Petaling jaya', 'Selangor', 126, 25, '46353', '', '', NULL, 'hotel_logo_1484736403.png', '', 'hotel_wallpaper_1484736403.png', '', '#059AAE', '', 4, 0, 0, '2017-05-11 08:10:10', '', 'sq5hwmjgi2', 0, '2017-01-18 18:45:53', NULL, 0, 0, 0, '2017-01-18 18:45:53', '2017-01-18 18:46:59', NULL), (83, 2, 0, 0, '', '4.0.6 Installer Test B', 'Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '43000', '', '', NULL, '', '', '83_pr25_1484737217.jpg', '', '#a39c51', '', 10, 0, 0, '2017-11-14 03:55:41', '', 'bntsekanpr', 0, '2017-01-18 18:54:17', NULL, 3, 0, 197, '2017-01-18 18:54:17', '2017-11-14 11:55:41', NULL), (84, 2, 0, 0, '', 'Hotel Language Edie', '27, Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '', '', '', '84_is-gaming-logo-only_1485167610.png', '', '84_TD_TESTING_FOR_FILENAM_SPECIALCHARACTER_أنا_أكل_الأرز_1485168644.jpg', '', '#e1843a', '', 123, 0, 0, '2017-05-11 08:10:10', '', '218zdhh7v0', 0, '2017-01-23 18:32:50', NULL, 0, 0, 0, '2017-01-23 18:32:50', '2017-01-23 18:51:15', NULL), (85, 2, 0, 0, '', '4.0.6 Installer Test C', '27, Jalan 26/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '43000', '192.168.127.12', '', NULL, 'hotel_logo_1485172125.png', '', 'hotel_wallpaper_1485172125.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', 'emmwgq063x', 0, '2017-01-23 19:47:51', NULL, 0, 0, 0, '2017-01-23 19:47:51', '2017-01-23 19:49:02', NULL), (86, 2, 0, 0, '', 'SYMBOL BABA', '27, Jalan 16/6 Seksyen 16', 'Pet<NAME>aya', 'Selangor', 126, 25, '46350', '', '', NULL, 'hotel_logo_1485260388.png', '', 'hotel_wallpaper_1485260388.png', '', '#059AAE', '', 123, 0, 0, '2017-05-11 08:10:10', '', 'p9iaq90puu', 4, '2017-01-24 18:39:15', NULL, 0, 0, 0, '2017-01-24 18:39:15', '2017-01-24 20:19:49', NULL), (87, 2, 0, 0, '', 'RRM&amp;RRE Testing Hotel PJ &amp; KL', 'Jal&an 16/6, Sek&syen 16 &', 'Peta&ling & Jaya', 'Selangor&', 126, 25, '43500', '172.16.58.3', '', NULL, '87_12345_1485403442.png', '', '87_fanart_3_1485403464.png', '', '#226690', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58897438b638c', 0, '2017-01-26 11:59:52', NULL, 0, 0, 0, '2017-01-26 11:59:52', '2017-01-26 12:05:05', NULL), (88, 2, 0, 0, '', 'LEO TESTING', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '172.16.58.3', '', NULL, 'hotel_logo_1485406922.png', '', 'hotel_wallpaper_1485406922.png', '', '#059AAE', '', 214, 0, 0, '2017-05-11 08:10:10', '', '588982465faf3', 0, '2017-01-26 12:59:50', NULL, 0, 0, 0, '2017-01-26 12:59:50', '2017-01-26 13:06:09', NULL), (89, 2, 0, 0, '', 'BBC TESTING', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '172.16.58.3', '', NULL, 'hotel_logo_1485407222.png', '', 'hotel_wallpaper_1485407222.png', '', '#059AAE', '', 324, 0, 0, '2017-11-14 10:56:20', '', '5889832bd1238', 0, '2017-01-26 13:03:39', NULL, 3, 0, 197, '2017-01-26 13:03:39', '2017-11-14 18:56:20', NULL), (90, 2, 0, 0, '', 'RRM&amp;RRE Individual Hotel PJ &amp; KL', 'Jal&an 16/6, Sek&syen 16 &', 'Peta&ling & Jaya', 'Selangor&', 126, 25, '43500', '172.16.58.3', '', NULL, 'hotel_logo_1485407171.png', '', 'hotel_wallpaper_1485407171.png', '', '#059AAE', '', 12321, 0, 0, '2017-05-11 08:10:10', '', '588983917d08d', 0, '2017-01-26 13:05:21', NULL, 0, 0, 0, '2017-01-26 13:05:21', '2017-01-26 13:06:24', NULL), (91, 2, 0, 0, '', 'Hotel 4.0.6 V1&amp;X', '27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Ma', 'Petaling&jaya', 'Selang&or', 126, 25, '46350', '172.16.58.3', '', NULL, 'hotel_logo_1485407542.png', '', 'hotel_wallpaper_1485407542.png', '', '#059AAE', '', 2, 0, 0, '2017-05-11 08:10:10', '', '588985017c1d1', 0, '2017-01-26 13:11:29', NULL, 0, 0, 0, '2017-01-26 13:11:29', '2017-01-26 13:12:33', NULL), (92, 2, 0, 0, '', 'Hotel 4.0.6 V1&amp;X', '27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Malaysia 27, Jalan 16&/6, Seksyen 16, 46350 Petaling Jaya, Selangor, Ma', 'Petaling&jaya', 'Selang&or', 126, 25, '46350', '172.16.58.3', '', NULL, 'hotel_logo_1485425762.png', '', 'hotel_wallpaper_1485425762.png', '', '#059AAE', '', 3, 0, 0, '2017-05-11 08:10:10', '', '5889cc0ac126a', 0, '2017-01-26 18:14:34', NULL, 0, 0, 0, '2017-01-26 18:14:34', '2017-01-26 19:11:58', NULL), (93, 2, 0, 0, '', 'NANIM Hotel Testing 4.0.6', 'No 55 Jalan Semantan Taman Equestrian', '<NAME>', 'Selangor', 126, 25, '78100', '', '', NULL, '', '', '', '', '', '', 55, 0, 0, '2017-05-11 08:10:10', '', '5889cdc1245a7', 0, '2017-01-26 18:21:53', NULL, 0, 0, 0, '2017-01-26 18:21:53', '2017-02-22 17:16:24', NULL), (94, 2, 0, 0, '', 'ABCDE Hotel Stage', 'ABCDE Hotel Stage ABCDE Hotel Stage', 'ABCDE Hotel Stage', 'ABCDE Hotel Stage', 126, 25, '1234', '172.16.58.3', '', NULL, 'hotel_logo_1486353192.png', '', 'hotel_wallpaper_1486353193.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '5897f2ef4df36', 0, '2017-02-06 11:52:15', NULL, 0, 0, 0, '2017-02-06 11:52:15', '2017-02-06 11:53:39', NULL), (95, 2, 0, 0, '', 'ABCDE Hotel Stage 2', 'ABCDE Hotel Stage 2 ABCDE Hotel Stage 2', 'ABCDE Hotel Stage 2', 'ABCDE Hotel Stage 2', 126, 25, '1234', '', '', NULL, '', '', '', '', '', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58983ed57f051', 0, '2017-02-06 17:16:05', NULL, 0, 0, 0, '2017-02-06 17:16:05', '2017-02-21 11:35:39', NULL), (96, 2, 0, 0, '', 'Stage 407 Hotel', 'test test', 'test', 'test', 126, 25, '1234', '172.16.58.3', '', NULL, 'hotel_logo_1486529002.png', '', 'hotel_wallpaper_1486529002.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '589aa1bbe13ec', 0, '2017-02-08 12:42:35', NULL, 0, 0, 0, '2017-02-08 12:42:35', '2017-02-08 12:48:02', NULL), (97, 2, 0, 0, '', 'Hotel First World', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '', '', NULL, 'hotel_logo_1486540500.png', '', 'hotel_wallpaper_1486540501.png', '', '#059AAE', '', 123, 0, 0, '2017-05-11 08:10:10', '', '589aceba0b848', 4, '2017-02-08 15:54:34', NULL, 0, 0, 0, '2017-02-08 15:54:34', '2017-02-08 15:55:01', NULL), (98, 2, 0, 0, '', 'Fifie Hotel', 'Fifie Hotel Fifie Hotel', 'Fifie Hotel', 'Fifie Hotel', 126, 25, '12345', '172.16.58.3', '', NULL, 'hotel_logo_1486548770.png', '', 'hotel_wallpaper_1486548770.png', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:17:53', '', '589ade6a587ec', 0, '2017-02-08 17:01:30', NULL, 0, 0, 0, '2017-02-08 17:01:30', '2017-02-08 18:12:58', NULL), (99, 2, 0, 0, '', 'Hotel Mirage QWE', '27, Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '99_Statbucks-logo-png_1486549614.png', '', 'hotel_wallpaper_1486549104.png', '', '#059AAE', '', 21231, 0, 0, '2017-05-11 08:10:10', '', '589af04518fed', 0, '2017-02-08 18:17:41', NULL, 0, 0, 0, '2017-02-08 18:17:41', '2017-02-08 18:27:23', NULL), (100, 2, 0, 0, '', 'QWERTY Hotel', 'QWERTY Hotel QWERTY Hotel', 'QWERTY Hotel', 'QWERTY Hotel', 126, 25, '12345', '172.16.58.3', '', NULL, 'hotel_logo_1486552360.png', '', 'hotel_wallpaper_1486552360.png', '', '#059AAE', '', 123, 0, 0, '2017-05-11 08:10:10', '', '589afcfccec83', 0, '2017-02-08 19:11:56', NULL, 0, 0, 0, '2017-02-08 19:11:56', '2017-02-08 19:12:53', NULL), (101, 2, 0, 0, '', 'Hotel Mirage Bridge 123', '27, Jalan 16/6 Seksyen 16', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 21231, 0, 0, '2017-11-06 08:22:16', '', '589b034078867', 0, '2017-02-08 19:38:40', NULL, 0, 0, 0, '2017-02-08 19:38:40', '2017-11-06 16:22:16', NULL), (102, 2, 0, 0, '', 'QWERTY Hotel B', 'QWERTY Hotel B QWERTY Hotel B', 'QWERTY Hotel B', 'QWERTY Hotel B', 126, 25, '12345', '', '', NULL, '', '', '', '', '', '', 123, 0, 0, '2017-11-06 08:29:39', '', '589b03ec14360', 3, '2017-02-08 19:41:32', NULL, 0, 0, 0, '2017-02-08 19:41:32', '2017-11-06 16:29:39', NULL), (103, 2, 0, 0, '', 'ABC Hotel A', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '', '', '', '', '', 'hotel_wallpaper_1486556932.png', '', '#05ae6d', '', 124, 0, 0, '2017-06-02 07:32:58', '', '589b0e7287178', 0, '2017-02-08 20:26:26', NULL, 0, 0, 0, '2017-02-08 20:26:26', '2017-06-02 15:32:58', NULL), (104, 2, 0, 0, '', 'HOTEL KIKIKIKIKI', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '', '', '', 'hotel_logo_1486559095.png', '', 'hotel_wallpaper_1486559096.png', '', '#059AAE', '', 124, 0, 0, '2017-05-11 08:10:10', '', '589b175fa6df1', 0, '2017-02-08 21:04:31', NULL, 0, 0, 0, '2017-02-08 21:04:31', '2017-02-08 21:05:20', NULL), (105, 2, 0, 0, '', 'Hotel TD 1', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1486967105.png', '', 'hotel_wallpaper_1486967105.png', '', '#059AAE', '', 121, 0, 0, '2017-05-11 08:10:10', '', '58a150f7e5363', 0, '2017-02-13 14:23:51', NULL, 0, 0, 0, '2017-02-13 14:23:51', '2017-02-13 14:25:17', NULL), (106, 2, 0, 0, '', 'Hotel TD Test', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 105, 25, '46350', '', '', NULL, '', '', '', '', '', '', 2131, 0, 0, '2017-05-11 08:10:10', '', '58a153ef19fdb', 0, '2017-02-13 14:36:31', NULL, 0, 0, 0, '2017-02-13 14:36:31', '2017-02-13 16:04:29', NULL), (107, 2, 0, 0, '', 'TD Hotel Country', '27, Jalan 16/6 Seksyen 16', '<NAME>', '', 160, 25, '0', '', '', NULL, '', '', '', '', '', '', 123, 0, 0, '2017-05-11 08:10:10', '', '58a16ba2024c4', 2, '2017-02-13 16:17:38', NULL, 0, 0, 0, '2017-02-13 16:17:38', '2017-02-13 16:17:38', NULL), (108, 2, 0, 0, '', 'Test Hotel FIFIE', 'Test Hotel FIFIE Test Hotel FIFIE', 'Test Hotel FIFIE', 'Test Hotel FIFIE', 126, 25, '1234', '172.16.31.10', '', NULL, 'hotel_logo_1487047018.png', '', 'hotel_wallpaper_1487047018.png', '', '#059AAE', '', 1234, 0, 2, '2017-10-02 08:17:58', '', '58a2893c4749a', 0, '2017-02-14 12:36:12', NULL, 0, 0, 0, '2017-02-14 12:36:12', '2017-02-14 12:37:19', NULL), (109, 2, 0, 0, '', 'HOTEL ABC', 'HOTEL ABC HOTEL ABC', 'HOTEL ABC', 'HOTEL ABC', 126, 25, '1234', '192.168.3.11', '', NULL, 'hotel_logo_1487057996.png', '', 'hotel_wallpaper_1487057996.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58a2b417c44de', 0, '2017-02-14 15:39:03', NULL, 0, 0, 0, '2017-02-14 15:39:03', '2017-02-14 15:42:50', NULL), (110, 2, 0, 0, '', 'Shahira hotel', 'MT1876 JALAN SRI AMAN 29 TAMAN SRI AMAN ', '<NAME>', 'Melaka', 126, 25, '78300', '', '', NULL, '', '', '', '', '', '', 100, 0, 2, '2017-10-02 08:08:09', '', '58a52051b4d94', 1, '2017-02-16 11:45:21', NULL, 0, 0, 0, '2017-02-16 11:45:21', '2017-02-16 11:45:21', NULL), (111, 2, 0, 0, '', 'preeta hotel', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, 'hotel_logo_1487303876.png', '', 'hotel_wallpaper_1487303876.png', '', '#059AAE', '', 300, 0, 0, '2017-05-11 08:10:10', '', '58a5205295991', 0, '2017-02-16 11:45:22', NULL, 0, 0, 0, '2017-02-16 11:45:22', '2017-02-17 11:58:40', NULL), (112, 2, 0, 0, '', 'Preeta-isu hotel', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '310.195.43.8', '', NULL, '112_face-smile-big-128_1487218675.png', '', '112_Best-Shaving-Soap-for-men.-Selecting-The-Top-Shaving-Soap-For-Sensitive-Skin-And-Experienced-Wet-Shavers-360x200_1487218685.jpg', '', '#875757', '', 100, 0, 0, '2017-05-11 08:10:10', '', '58a524f14058a', 0, '2017-02-16 12:05:05', NULL, 0, 0, 0, '2017-02-16 12:05:05', '2017-02-16 12:23:19', NULL), (113, 2, 0, 0, '', 'Shahira_IUS', 'MT1876 jalan sri aman', 'masjid tanah', 'Melaka', 126, 25, '78300', '310.195.43.8', '', NULL, '113_piza_1487218696.png', '', '113_piza_1487218726.png', '', '#b323ff', '', 100, 0, 2, '2017-10-02 08:08:09', '', '58a525321d3f1', 0, '2017-02-16 12:06:10', NULL, 0, 0, 0, '2017-02-16 12:06:10', '2017-02-20 11:22:11', NULL), (114, 2, 0, 0, '', 'Testing 77', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 500, 0, 0, '2017-11-06 08:55:07', '', '58a66fede1b2f', 3, '2017-02-17 11:37:17', NULL, 0, 0, 0, '2017-02-17 11:37:17', '2017-11-06 16:55:07', NULL), (115, 2, 5, 0, '', 'testing 777 event', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, 'hotel_logo_1510025869.png', '', 'smartphone_logo_1510025869.png', '', '#059AAE', '', 900, 0, 0, '2017-11-07 03:37:51', '', '58a67296188d2', 2, '2017-02-17 11:48:38', NULL, 0, 0, 0, '2017-02-17 11:48:38', '2017-11-07 11:37:51', NULL), (116, 2, 0, 0, '', 'pretashahira hotel', 'MT1876 JALAN SRI AMAN 29 TAMAN SRI AMAN ', '<NAME>', 'Melaka', 126, 25, '78300', '', '', NULL, '', '', '', '', '', '', 100, 0, 2, '2017-10-02 08:08:09', '', '58a67983a9070', 1, '2017-02-17 12:18:11', NULL, 0, 0, 0, '2017-02-17 12:18:11', '2017-02-17 12:18:11', NULL), (117, 2, 0, 0, '', 'testing 1', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 900, 0, 0, '2017-05-11 08:10:10', '', '58a679c0daa0c', 1, '2017-02-17 12:19:12', NULL, 0, 0, 0, '2017-02-17 12:19:12', '2017-02-17 12:19:12', NULL), (118, 2, 0, 0, '', 'TD Preeta Hotel Testing', 'no 23 jalan setapak', 'Setapak', 'kuala lumpur', 126, 25, '53200', '310.195.43.8', '', NULL, 'hotel_logo_1487672286.png', '', 'hotel_wallpaper_1487672286.png', '', '#059AAE', '', 900, 0, 0, '2017-05-11 08:10:10', '', '58abe5989cf30', 0, '2017-02-21 15:00:40', NULL, 0, 0, 0, '2017-02-21 15:00:40', '2017-02-21 18:21:11', NULL), (119, 2, 0, 0, '', 'TD Preeta Hotel1 Testing', 'no 23 jalan setapak 89', 'Setapak', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 100, 0, 0, '2017-05-11 08:10:10', '', '58abee17ee305', 2, '2017-02-21 15:36:55', NULL, 0, 0, 0, '2017-02-21 15:36:55', '2017-02-21 15:36:55', NULL), (120, 2, 0, 0, '', 'TD Preeta Hotel2 Testing', 'no 23 jalan setapak 8990', 'Setapak', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 100, 0, 0, '2017-05-11 08:10:10', '', '58abef0ae110b', 2, '2017-02-21 15:40:58', NULL, 0, 0, 0, '2017-02-21 15:40:58', '2017-02-21 15:40:58', NULL), (121, 1, 0, 0, '', 'NEW GROUP Hotel 408', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1487822541.png', '', 'hotel_wallpaper_1487822541.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58ae5afa5c32f', 0, '2017-02-23 11:46:02', NULL, 0, 0, 0, '2017-02-23 11:46:02', '2017-02-23 12:02:36', NULL), (122, 2, 0, 0, '', '408 TD New Hotel', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '', '', NULL, 'hotel_logo_1487822722.png', '', 'hotel_wallpaper_1487822722.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58ae5db651581', 0, '2017-02-23 11:57:42', NULL, 0, 0, 0, '2017-02-23 11:57:42', '2017-02-23 12:05:38', NULL), (123, 1, 0, 0, '', '408 TD New Group', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 215, 25, '46350', '310.195.43.8', '', NULL, '123_imageabc-123_Xyy_1487822615.png', '', '123_02_1487822633.jpg', '', '#0e5aac', '', 1234, 0, 0, '2017-10-30 09:46:10', '', '58ae5e5d33b73', 0, '2017-02-23 12:00:29', NULL, 0, 0, 192, '2017-02-23 12:00:29', '2017-10-30 17:46:10', NULL), (124, 1, 0, 0, '', '408 TD New Indi. Group', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1487826023.png', '', 'hotel_wallpaper_1487826023.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58ae6c2c7f0b4', 0, '2017-02-23 12:59:24', NULL, 0, 0, 0, '2017-02-23 12:59:24', '2017-02-23 13:03:55', NULL), (125, 2, 0, 0, '', '408 TD New Indi. Hotel', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1487826383.png', '', 'hotel_wallpaper_1487826383.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58ae6da36e076', 0, '2017-02-23 13:05:39', NULL, 0, 0, 0, '2017-02-23 13:05:39', '2017-02-23 13:06:39', NULL), (126, 2, 0, 0, '', 'Hotel 7930', '27, Jalan 16/6 Seksyen 16', 'Pet<NAME>', '', 160, 25, '46350', '', '', NULL, '', '', '', '', '', '', 123, 0, 0, '2017-05-11 08:10:10', '', '58afb5001d7bf', 2, '2017-02-24 12:22:24', NULL, 0, 0, 0, '2017-02-24 12:22:24', '2017-02-24 12:22:24', NULL), (127, 2, 123, 0, '', 'Fifie 001 Hotel', 'Fifie 001 Hotel Fifie 001 Hotel Fifie 001 Hotel', 'Fifie 001 Hotel', 'Selangor', 126, 25, '46350', '115.1y64.48.85', '', '72:70:y0d:95:dc:64', 'hotel_logo_1488358973.png', '', '127_f20e038476ada8c033c5e0e3f013b42c_1509705448.jpg', '', '#059AAE', '', 10, 0, 0, '2017-11-08 03:51:41', '', '58b68e0aca74f', 0, '2017-03-01 17:02:02', NULL, 0, 0, 192, '2017-03-01 17:02:02', '2017-11-03 18:39:39', NULL), (128, 2, 0, 0, '', 'TD 001 New Hotel', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1488359424.png', '', 'hotel_wallpaper_1488359425.png', '', '#059AAE', '', 1234, 0, 0, '2017-05-11 08:10:10', '', '58b68fca3ace2', 0, '2017-03-01 17:09:30', NULL, 0, 0, 0, '2017-03-01 17:09:30', '2017-03-01 17:10:35', NULL), (129, 2, 1, 0, '', 'testing hotel shaira', 'jalan petaling 23 ', 'petaling jaya', 'selangor', 126, 25, '23450', '310.195.43.8', '', NULL, '129_^_1488425743.jpeg', '', '129_^_1488425753.jpeg', '', '#ff0eff', '', 100, 0, 0, '2017-05-11 08:10:10', '', '58b7906457da7', 0, '2017-03-02 11:24:20', NULL, 0, 0, 0, '2017-03-02 11:24:20', '2017-03-02 11:43:35', NULL), (130, 2, 0, 0, '', 'Notification testing Hotel', 'jalan merbok jalan damai', 'selangor', 'selangor', 126, 25, '78965', '', '', '', 'hotel_logo_1507789141.png', '', 'smartphone_logo_1507789141.png', '', '#059AAE', '', 1234567894, 0, 0, '2017-10-12 06:46:42', '', '58b7d8d6604ec', 0, '2017-10-12 02:19:07', NULL, 0, 0, 0, '2017-03-02 16:33:26', '2017-10-12 14:19:07', NULL), (131, 2, 0, 0, '', 'hoteltesting30', 'gbsaufbuhdsf ', '', 'fdyvbhdsfbv', 126, 25, '231434', '310.195.43.8', '', NULL, '131_brow_1488445412.jpg', '', '131_2_1488445428.jpg', '', '#dfcfc4', '', 12, 0, 0, '2017-05-11 08:10:10', '', '58b7de2430960', 0, '2017-03-02 16:56:04', NULL, 0, 0, 0, '2017-03-02 16:56:04', '2017-03-02 17:04:13', NULL), (132, 2, 0, 0, '', 'TD 003 New Hotel', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '310.195.43.8', '', NULL, 'hotel_logo_1488772303.png', '', 'hotel_wallpaper_1488772304.png', '', '#059AAE', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58bcdca8a50b0', 0, '2017-03-06 11:51:04', NULL, 0, 0, 0, '2017-03-06 11:51:04', '2017-03-06 11:51:56', NULL), (134, 2, 0, 0, '', 'AZNIM-NEW Test Hotel 0903', 'No 27, Jalan 16/6 ', '', '', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 55, 0, 0, '2017-05-11 08:10:10', '', '58c0f7c5e17e5', 1, '2017-03-09 14:35:49', NULL, 0, 0, 0, '2017-03-09 14:35:49', '2017-03-09 14:35:49', NULL), (135, 2, 0, 0, '', 'AZNIM Test Hotel 0903', 'No 27, Jalan 16/6 ', '', '', 126, 25, '46800', '', '', NULL, 'hotel_logo_1489043138.png', '', 'hotel_wallpaper_1489043138.png', '', '#059AAE', '', 55, 0, 0, '2017-11-01 11:11:23', '', '58c0f7cd5af46', 0, '2017-11-01 06:22:09', NULL, 0, 0, 0, '2017-03-09 14:35:57', '2017-11-01 18:22:09', NULL), (136, 2, 0, 0, '', 'TD Fifie 01', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '', '', NULL, '136_hb2_1489113763.jpg', '', '136_hotel_branding_2_1489113759.jpg', '', '#c024ad', '', 90, 0, 2, '2017-10-02 08:18:08', '', '58c0f867ebe28', 0, '2017-03-09 14:38:31', NULL, 0, 0, 0, '2017-03-09 14:38:31', '2017-03-10 10:43:33', NULL), (137, 2, 0, 0, '', 'TD Fifie 02', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '137_staging_1489119657.jpg', '', '#a62424', '', 10, 0, 2, '2017-10-02 08:18:13', '', '58c12ac18478e', 0, '2017-03-09 18:13:21', NULL, 0, 0, 0, '2017-03-09 18:13:21', '2017-03-10 15:27:18', NULL), (138, 2, 0, 0, '', 'TD Fifie 03', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '', '', NULL, '138_dropbox_JPGimagewithlongcharactersimagewithlongcharacters_1489131966.jpg', '', '138_dropbox_12345678901234567890_1489131977.jpg', '', '#404da2', '', 10, 0, 2, '2017-10-02 08:18:19', '', '58c257cfe40f5', 3, '2017-03-10 15:37:51', NULL, 0, 0, 0, '2017-03-10 15:37:51', '2017-03-17 17:20:53', NULL), (139, 2, 0, 0, '', 'Hotel 01', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', '', 'hotel_logo_1500610384.png', '', 'smartphone_logo_1500610384.png', '', '#059AAE', '', 22, 0, 0, '2017-11-08 03:52:00', '', '58c8f2542a9c6', 0, '2017-07-21 12:13:10', NULL, 0, 0, 0, '2017-03-15 15:50:44', '2017-11-03 15:14:44', NULL), (140, 2, 0, 0, '', 'V''La Garden Hotel (Test)', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 44, 0, 0, '2017-09-07 07:21:11', '', '58c9154654743', 2, '2017-03-15 18:19:50', NULL, 0, 0, 0, '2017-03-15 18:19:50', '2017-03-15 18:19:50', NULL), (141, 2, 0, 0, '', 'V''La Garden Hotel (Test 03)', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 34, 0, 0, '2017-09-07 07:21:11', '', '58c916a8d3317', 1, '2017-03-15 18:25:44', NULL, 0, 0, 0, '2017-03-15 18:25:44', '2017-03-15 18:25:44', NULL), (142, 2, 0, 0, '', 'V''La Garden Hotel (Test 04)', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 22, 0, 0, '2017-09-07 07:21:11', '', '58c917ef53258', 1, '2017-03-15 18:31:11', NULL, 0, 0, 0, '2017-03-15 18:31:11', '2017-03-15 18:31:11', NULL), (143, 2, 0, 0, '', 'V''La Garden Hotel (Test 05)', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 22, 0, 0, '2017-09-07 07:21:11', '', '58c9189c6c8b0', 1, '2017-03-15 18:34:04', NULL, 0, 0, 0, '2017-03-15 18:34:04', '2017-03-15 18:34:04', NULL), (144, 2, 0, 0, '', 'AZNIM Test 01', 'No 27, Jalan 16/6', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '1_images_1_1490784616.jpg', '', '1_276846_120112103913386_1490784632.jpg', '', '#059AAE', '', 10, 0, 1, '2017-05-11 08:10:10', '', '58db912c8c1aa', 0, '2017-03-29 18:49:16', NULL, 0, 0, 5, '2017-03-29 18:49:16', '2017-03-29 18:50:35', NULL), (145, 2, 0, 0, '', 'rav<NAME>', 'ravi', 'ravi', 'ravi', 126, 25, '12345', '', '', NULL, '', '1_dead_1490949318.jpg', '1_dead_1490949318.jpg', '', '#059AAE', '', 12, 0, 0, '2017-05-23 11:10:25', '', '58db92803765b', 0, '2017-03-29 18:54:56', NULL, 1, 0, 128, '2017-03-29 18:54:56', '2017-05-23 19:10:25', NULL), (146, 2, 0, 0, '', 'KAKA hotel (test)', 'jalan 35', 'perak', 'haihai', 126, 25, '234324', '172.16.31.10', '', NULL, 'hotel_logo_1491204554.png', '1_200200_1491201294.jpg', '1_200200_1491201294.jpg', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:21:11', '', '59019993823d2', 1, '2017-03-29 18:55:05', NULL, 0, 0, 107, '2017-03-29 18:55:05', '2017-04-27 15:11:15', NULL), (147, 2, 0, 0, '', 'new hotel 29/3 (hotel)', 'jalan 35', 'perak', 'hai', 126, 25, '234324', '', '', NULL, '', '1_360200_1490785970.jpg', '1_360200_1490785970.jpg', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:21:11', '', '58db96b70781b', 0, '2017-03-29 19:12:55', NULL, 0, 0, 107, '2017-03-29 19:12:55', '2017-03-29 19:12:55', NULL), (148, 2, 0, 0, '', 'ravi Hotel Test asdf 1', 'asdf asdf', 'asdf', 'asdf', 0, 25, '0', '', '', NULL, '', '', '', '', '', '', 12, 0, 0, '2017-05-11 08:10:10', '', '58dba0c46c259', 2, '2017-03-29 19:55:48', NULL, 0, 0, 0, '2017-03-29 19:55:48', '2017-03-29 19:55:48', NULL); INSERT INTO `xcl_hotels` (`id`, `hotel_type`, `hotel_group`, `hotel_partner`, `company_name`, `hotel_name`, `hotel_address`, `hotel_city`, `hotel_state`, `hotel_country`, `hotel_timezone`, `hotel_pincode`, `hotel_ip`, `hotel_ip_type`, `hotel_mac`, `hotel_logo`, `hotel_wallpaper`, `hotel_smartphone`, `hotel_tablet`, `hotel_mcolor`, `hotel_tcolor`, `hotel_rooms`, `hotel_room_type`, `hotel_status`, `hotel_approved`, `hotel_group_code`, `hotel_code`, `hotel_stage`, `live_date`, `reset_date`, `hotel_device`, `hotel_demo`, `added_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (149, 2, 0, 0, '', 'ravi Hotel Test asdf 1', 'asdf asdf', 'asdf', 'asdf', 0, 25, '0', '', '', NULL, '', '', '', '', '', '', 12, 0, 0, '2017-05-11 08:10:10', '', '58dba18665882', 2, '2017-03-29 19:59:02', NULL, 0, 0, 0, '2017-03-29 19:59:02', '2017-03-29 19:59:02', NULL), (150, 2, 0, 0, '', 'TD Hotel Staging, Kuala Lumpur ()', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 0, 25, '46800', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:22:58', '', '58dba21335dc0', 2, '2017-03-29 20:01:23', NULL, 0, 0, 0, '2017-03-29 20:01:23', '2017-03-29 20:01:23', NULL), (151, 2, 155, 0, '', '!!! Canada TD Staging', 'jalan 35', 'perak', 'ezkebek', 38, 25, '234324', '', '', NULL, '', '1_360200_1490789520.jpg', '1_360200_1490789520.jpg', '', '#059AAE', '', 2, 0, 0, '2017-11-15 02:36:33', '', '58ee0701de236', 2, '2017-03-29 20:12:07', '2017-11-01 17:03:37', 0, 0, 197, '2017-03-29 20:12:07', '2017-11-15 10:36:33', NULL), (152, 2, 0, 0, '', '!!! Malaysia TD Staging', 'No. 27, Jalan 16/6', 'Seksyen 15', 'Selangor', 126, 25, '46350', '', '', NULL, '152_03_1491467796.png', '152_staging_1491467782.jpg', '152_staging_1491467782.jpg', '', '#425254', '', 10, 0, 0, '2017-11-09 10:01:44', '', '58dba4efee842', 0, '2017-03-29 20:13:36', NULL, 0, 0, 181, '2017-03-29 20:13:36', '2017-11-09 18:01:44', NULL), (153, 2, 0, 0, '', '!!! US TD Stagings', 'jalan 35', 'perak', 'wow', 215, 25, '234324', '', '', NULL, '', '1_200200_1490789677.jpg', '1_200200_1490789677.jpg', '', '#059AAE', '', 2, 0, 0, '2017-11-08 08:45:43', '', '59007479ecf5b', 2, '2017-03-29 20:14:46', NULL, 0, 0, 197, '2017-03-29 20:14:46', '2017-11-08 16:45:43', NULL), (154, 2, 0, 0, '', '!!! Thai TD Staging', 'No. 27, Jalan 16/6', 'Seksyen 16', 'Selangor', 201, 25, '46350', '172.16.31.10', '', NULL, '', '1_lunch_3_1490789705.jpg', '1_lunch_3_1490789705.jpg', '', '#5c3877', '', 2, 0, 0, '2017-05-11 08:10:10', '', '58dba55835fe9', 0, '2017-03-29 20:15:20', NULL, 0, 0, 6, '2017-03-29 20:15:20', '2017-03-31 12:51:23', NULL), (155, 1, 0, 301, '', '!!! Indo TD Staging', 'No 27, Jalan 16/6 ', 'Seksyen 16', '<NAME>', 95, 25, '46800', '172.16.31.10', '', NULL, '', '', '', '', '#059AAE', '', 2, 0, 0, '2017-11-09 10:38:16', '', '58dba5b76b834', 0, '2017-03-29 20:16:55', NULL, 0, 0, 181, '2017-03-29 20:16:55', '2017-11-09 18:38:16', NULL), (158, 2, 0, 0, '', '29/1 (TEST)3333333zzzzzzq313123131sdvvx,cvmxbmxcnmx32972i8hskdnmsadna1111111111111111111111111113333333333333333333333333333333333339999999999999999999999999999999999--------------q92192198319sakhdkajhdkajdhkjsahdkjakdhakjdhsajd76tye3h12jneqe12sadsddasdas', 'jalan merbok, jalan damai', 'selangor', 'selangor', 126, 25, '78965', '', '', '', '1_bbb-clouds-close-440x202_1490791500.png', '1_bbb-clouds-close-440x202_1490791504.png', '1_bbb-clouds-close-440x202_1490791504.png', '', '#152a2c', '', 1234, 0, 0, '2017-11-08 06:55:12', '', '590074b84a440', 0, '2017-05-24 12:03:24', NULL, 3, 1, 197, '2017-03-29 20:45:10', '2017-11-08 14:55:12', NULL), (159, 2, 0, 0, '', '29/1 (TEST)4', 'Jalan Kuchai, kl', 'kl', 'kl', 126, 25, '123445', '172.16.58.3', '', NULL, '1_11_1490791713.png', '1_11_1490791716.png', '1_11_1490791716.png', '', '#cfcfcf', '', 12356, 0, 0, '2017-11-08 07:02:10', '', '590072ebdd28f', 0, '2017-05-29 06:51:26', NULL, 3, 1, 197, '2017-03-29 20:49:10', '2017-11-08 15:02:10', NULL), (160, 2, 295, 0, '', 'canada', 'Jalan Kuchai, kl', 'kl', 'kl', 38, 25, '123445', '192.168.3.11', '', '64:bc:0c:9d:c9:f4', '1_bbb-clouds-close-440x202_1490842952.png', '1_bbb-clouds-close-440x202_1490842957.png', '1_bbb-clouds-close-440x202_1490842957.png', '', '#059AAE', '', 1234, 0, 0, '2017-10-16 14:04:57', '', '58dc7559d3908', 0, '2017-03-30 11:02:50', NULL, 0, 0, 181, '2017-03-30 11:02:50', '2017-10-16 21:54:12', NULL), (162, 2, 0, 0, '', '7821_group', 'Jalan Kuchai, Street 4/7', 'Chennai', 'Tamil Nadu', 126, 25, '78905', '', '', NULL, '162_bbb-clouds-close-440x202_1490843840.png', '162_bbb-clouds-close-440x202_1490843832.png', '162_bbb-clouds-close-440x202_1490843832.png', '', '#1b1b1b', '', 2222, 0, 0, '2017-11-15 02:35:43', '7821_group', '58dc772c2e5d6', 0, '2017-03-30 11:10:36', NULL, 0, 0, 197, '2017-03-30 11:10:36', '2017-11-15 10:35:43', NULL), (163, 2, 0, 0, '', 'Existed hotel4 TEST) ', 'Jalan Kuchai, kl', 'kl', 'kl', 126, 25, '12345', '', '', NULL, '1_16104680-Smile-Icon-Vector-Stock-Vector-smiley-face-smile_1490843670.jpg', '1_16104680-Smile-Icon-Vector-Stock-Vector-smiley-face-smile_1490843682.jpg', '1_16104680-Smile-Icon-Vector-Stock-Vector-smiley-face-smile_1490843682.jpg', '', '#059AAE', '', 1234567891, 0, 0, '2017-09-07 07:22:58', '', '58dc782c13da4', 0, '2017-03-30 11:14:52', NULL, 0, 0, 103, '2017-03-30 11:14:52', '2017-03-30 11:14:52', NULL), (164, 2, 0, 0, '', 'Existed hotel5(TEST)', 'Jalan Kuchai, kl', 'kl', 'kl', 126, 25, '12345', '', '', NULL, '1_11_1490844716.png', '1_11_1490844723.png', '1_11_1490844723.png', '', '#059AAE', '', 345, 0, 0, '2017-09-07 07:22:58', '', '58dc7c3867a73', 0, '2017-03-30 11:32:08', NULL, 0, 0, 103, '2017-03-30 11:32:08', '2017-03-30 11:32:08', NULL), (165, 2, 0, 0, '', 'Existed hotel6(TEST) ', 'Jalan Kuchai, Street 4/7', 'kl', 'kl', 126, 25, '78905', '172.16.31.10', '', NULL, '1_11_1490844761.png', '1_11_1490844764.png', '1_11_1490844764.png', '', '#059AAE', '', 1234, 0, 0, '2017-09-07 07:22:58', '', '58dc7c614308b', 0, '2017-03-30 11:32:49', NULL, 0, 0, 103, '2017-03-30 11:32:49', '2017-04-07 12:22:59', NULL), (168, 2, 0, 0, '', 'NEW HOTEL1 ()', 'jalan merbok, jalan damai', 'selangor', 'selangor', 126, 25, '78965', '', '', NULL, '1_11_1490845610.png', '1_11_1490845614.png', '1_11_1490845614.png', '', '#059AAE', '', 1234, 0, 0, '2017-09-07 07:22:58', '', '58dc7fb645406', 0, '2017-03-30 11:47:02', NULL, 0, 0, 103, '2017-03-30 11:47:02', '2017-03-30 11:47:02', NULL), (169, 2, 0, 0, '', 'NEW HOTEL2 (TEST?)', 'Jalan Kuchai, Street 4/7', 'kl', 'kl', 126, 25, '78905', '', '', NULL, '1_bbb-clouds-close-440x202_1490846100.png', '1_blue-space_1490846107.jpg', '1_blue-space_1490846107.jpg', '', '#059AAE', '', 5678, 0, 0, '2017-09-07 07:24:29', '', '58dc80c428bec', 0, '2017-03-30 11:51:32', NULL, 0, 0, 103, '2017-03-30 11:51:32', '2017-03-30 11:55:15', NULL), (171, 2, 0, 0, '', 'TD Fifie ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', '', '', NULL, '', '', '', '', '', '', 878, 0, 2, '2017-10-02 08:18:27', '', '58dc8c40cb239', 2, '2017-03-30 12:40:32', NULL, 0, 0, 0, '2017-03-30 12:40:32', '2017-03-30 12:40:32', NULL), (172, 2, 0, 0, '', 'TD Izyani ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, '172_izy678^_1490850957.png', '172_Milford-Sound-440x202_1490850903.jpg', '172_Milford-Sound-440x202_1490850903.jpg', '', '#675297', '', 10, 0, 0, '2017-09-07 07:24:29', '', '58dc8caf8358c', 0, '2017-03-30 12:42:23', NULL, 0, 0, 0, '2017-03-30 12:42:23', '2017-03-30 13:16:05', NULL), (173, 2, 0, 0, '', 'TD FifieIzyani ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, '', '173_city_6_1490851625.jpg', '173_city_6_1490851625.jpg', '', '#3a565a', '', 100, 0, 2, '2017-10-02 08:18:33', '', '58dc95e29dfe8', 0, '2017-03-30 13:21:38', NULL, 0, 0, 0, '2017-03-30 13:21:38', '2017-03-30 13:27:47', NULL), (174, 2, 0, 0, '', 'NEW HOTEL3(TEST)', 'jalan merbok, jalan damai', 'selangor', 'selangor', 126, 25, '78965', '', '', NULL, '1_11_1490855461.png', '1_11_1490855464.png', '1_11_1490855464.png', '', '#059AAE', '', 445, 0, 0, '2017-09-07 07:24:29', '', '58dca65b0162d', 0, '2017-03-30 14:31:55', NULL, 0, 0, 103, '2017-03-30 14:31:55', '2017-03-30 14:31:55', NULL), (175, 2, 0, 311, '', 'Thailand', 'jalan merbok, jalan damai', 'selangor', 'selangor', 201, 25, '78965', '', '', '', '', '1_11_1490856430.png', '1_11_1490856430.png', '', '#059AAE', '', 1234, 0, 0, '2017-11-16 02:36:47', '', '58dca9f289e5a', 0, '2017-03-30 14:47:14', NULL, 0, 1, 197, '2017-03-30 14:47:14', '2017-11-14 17:07:03', NULL), (176, 2, 0, 0, '', '.Existed hotel3.6(TEST)', 'jalan merbok, jalan damai', 'selangor', 'selangor', 1, 25, '78965', '', '', NULL, '', '1_11_1490856483.png', '1_11_1490856483.png', '', '#059AAE', '', 1234, 0, 0, '2017-11-15 06:41:38', '', '58dcaa26d1572', 0, '2017-03-30 14:48:06', NULL, 3, 0, 263, '2017-03-30 14:48:06', '2017-11-15 14:41:38', NULL), (178, 2, 0, 0, '', 'TD ABC Hotel ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, '178_ibis_hotel_1490858513.png', '178_best_western_1490858524.png', '178_best_western_1490858524.png', '', '#110944', '', 1234, 0, 0, '2017-09-07 07:24:29', '', '58dcae9b18e66', 0, '2017-03-30 15:07:07', NULL, 0, 0, 0, '2017-03-30 15:07:07', '2017-03-30 15:22:20', NULL), (179, 2, 0, 0, '', 'TD Final Hotel ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, 'hotel_logo_1490861139.png', 'hotel_wallpaper_1490861139.png', 'hotel_wallpaper_1490861139.png', '', '#059AAE', '', 100, 0, 0, '2017-09-07 07:24:29', '', '58dcb79fb4c97', 0, '2017-03-30 15:45:35', NULL, 0, 0, 0, '2017-03-30 15:45:35', '2017-03-30 16:05:55', NULL), (180, 2, 0, 0, '', 'TD Final 1 ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, 'hotel_logo_1490861384.png', 'hotel_wallpaper_1490861384.png', 'hotel_wallpaper_1490861384.png', '', '#059AAE', '', 100, 0, 0, '2017-09-07 07:26:12', '', '58dcbccf2597d', 0, '2017-03-30 16:07:43', NULL, 0, 0, 0, '2017-03-30 16:07:43', '2017-03-30 16:09:51', NULL), (181, 2, 0, 0, '', 'TD ABC ()', 'No. 27 Jalan 16/6', 'Seksyen 16', 'Selangor', 126, 25, '46350', 'fc00:db20:35b:7399::5', '', NULL, 'hotel_logo_1490869549.png', 'hotel_wallpaper_1490869549.png', 'hotel_wallpaper_1490869549.png', '', '#059AAE', '', 1234, 0, 0, '2017-09-07 07:26:12', '', '58dcdd094e2c6', 0, '2017-03-30 18:25:13', NULL, 0, 0, 0, '2017-03-30 18:25:13', '2017-03-30 18:25:55', NULL), (182, 2, 0, 0, '', 'TD Stage () 03', '233, Jalan Jiji Taman Bunga', 'Kajang', 'Selangor', 126, 25, '45678', '192.168.3.11', '', NULL, 'hotel_logo_1491453311.png', 'hotel_wallpaper_1491453311.png', 'hotel_wallpaper_1491453311.png', '', '#059AAE', '', 15, 0, 0, '2017-09-07 07:26:12', '', '58e5c5423e7db', 0, '2017-04-06 12:34:10', NULL, 0, 0, 0, '2017-04-06 12:34:10', '2017-04-06 12:35:18', NULL), (183, 2, 0, 0, '', 'shaira (test)', 'jalan 35 ', 'perak', 'melaka', 126, 25, '234324', '172.16.31.10', '', NULL, 'hotel_logo_1491457818.png', 'hotel_wallpaper_1491457818.png', 'hotel_wallpaper_1491457818.png', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:26:12', '', '58e5d6cb666ee', 0, '2017-04-06 13:48:59', NULL, 0, 0, 0, '2017-04-06 13:48:59', '2017-04-06 13:50:24', NULL), (184, 2, 0, 0, '', 'TD Stage () 04', '233, Jalan Jiji T<NAME>', 'Kajang', 'Selangor', 126, 25, '45678', '172.16.31.10', '', NULL, 'hotel_logo_1491463940.png', 'hotel_wallpaper_1491463940.png', 'hotel_wallpaper_1491463940.png', '', '#059AAE', '', 15, 0, 0, '2017-09-07 07:26:12', '', '58e5eeab59a54', 0, '2017-04-06 15:30:51', NULL, 0, 0, 0, '2017-04-06 15:30:51', '2017-04-06 15:32:29', NULL), (185, 2, 0, 0, '', 'shair azlan (test)', 'jalan 35 ', 'perak', 'fddfdfdfdf', 126, 25, '234324', '172.16.31.10', '', NULL, 'hotel_logo_1491464122.png', 'hotel_wallpaper_1491464122.png', 'hotel_wallpaper_1491464122.png', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:26:12', '', '58e5ef6c862b4', 0, '2017-04-06 15:34:04', NULL, 0, 0, 0, '2017-04-06 15:34:04', '2017-04-06 15:35:28', NULL), (186, 2, 0, 0, '', 'TD Stage () 05', '233, Jalan Jiji Taman Bunga', 'Kajang', 'Selangor', 126, 25, '45678', '172.16.31.10', '', NULL, '186_Abraham-Lincoln-Vampire-Hunter_1920x1080_1499155365.jpg', '186_Beautiful-autumn-sunset-forest-trees-red-leaves_1920x1080_1499155507.jpg', '186_Forest-park-trees-grass-photo_1920x1080_1499155494.jpg', '', '#059AAE', '', 15, 0, 0, '2017-09-07 07:26:12', '', '58e5f95ebcc42', 0, '2017-04-06 16:16:30', NULL, 0, 0, 0, '2017-04-06 16:16:30', '2017-07-04 16:05:08', NULL), (187, 2, 0, 0, '', 'TD Stage () 06', '233, Jalan Jiji Taman Bunga', 'Kajang', 'Selangor', 126, 25, '45678', '172.16.31.10', '', NULL, 'hotel_logo_1491467118.png', 'hotel_wallpaper_1491467118.png', 'hotel_wallpaper_1491467118.png', '', '#059AAE', '', 15, 0, 0, '2017-09-07 07:26:12', '', '58e5fa812182a', 0, '2017-04-06 16:21:21', NULL, 0, 0, 0, '2017-04-06 16:21:21', '2017-04-06 16:27:05', NULL), (188, 2, 0, 0, '', 'final hotel management', '233, Jalan Jiji, Taman Bunga', 'Kajang', 'Selangor', 126, 25, '45678', '', '', NULL, '1_test_abc_1491468076.png', '1_seaside_1-e1482908863923_1491468095.jpg', '1_seaside_1-e1482908863923_1491468095.jpg', '', '#801b2d', '', 15, 0, 0, '2017-05-11 08:10:10', '', '58e5ff4f7d723', 0, '2017-04-06 16:41:51', NULL, 0, 0, 6, '2017-04-06 16:41:51', '2017-04-06 16:41:51', NULL), (189, 2, 0, 0, '', 'TD Event 001 ()', '989, Jalan Bukit Taman Astakona', 'Kajang', 'Selangor', 126, 25, '745666', '172.16.31.10', '', NULL, 'hotel_logo_1491543258.png', 'hotel_wallpaper_1491543258.png', 'hotel_wallpaper_1491543258.png', '', '#059AAE', '', 15, 0, 0, '2017-09-07 07:26:12', '', '58e7243a71ec5', 0, '2017-04-07 13:31:38', NULL, 0, 0, 0, '2017-04-07 13:31:38', '2017-04-07 13:34:26', NULL), (190, 2, 0, 0, '', '4/11/2017 TEST', 'Jalan Kuchai Street 4/7', 'Chennai', 'Tamil Nadu', 94, 25, '78905', '', '', NULL, '', '', '', '', '', '', 12345569, 0, 0, '2017-09-27 07:13:00', '', '58eca26da4283', 2, '2017-04-11 17:31:25', NULL, 0, 0, 6, '2017-04-11 17:31:25', '2017-09-27 15:13:00', NULL), (191, 2, 37, 35, '', 'Evening (TEST)', 'Jalan Kuchai Street 4/7', 'Chennai', 'Tamil Nadu', 126, 25, '78905', '172.16.31.10', '', NULL, 'hotel_logo_1491903986.png', 'hotel_wallpaper_1491903986.png', 'hotel_wallpaper_1491903986.png', '', '#059AAE', '', 678, 0, 0, '2017-11-10 04:54:21', '', '58eca3acc4acf', 0, '2017-04-11 17:36:44', NULL, 0, 0, 181, '2017-04-11 17:36:44', '2017-11-10 12:54:21', NULL), (192, 2, 0, 0, '', 'jack& roll (TEST )', 'Jalan Kuchai Street 4/7', 'Chennai', 'Tamil Nadu', 126, 25, '78905', '', '', NULL, '', '', '', '', '', '', 1234, 0, 0, '2017-11-06 08:23:23', '', '58eca50083bc8', 3, '2017-04-11 17:42:24', NULL, 0, 0, 0, '2017-04-11 17:42:24', '2017-11-06 16:23:23', NULL), (193, 2, 0, 0, '', 'TD Event 01 (Test)', '123 Jalan Cempaka 6', '<NAME>', 'Melaka', 126, 25, '89989', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:27:46', '', '58f48f210f5c0', 2, '2017-04-17 17:47:13', NULL, 0, 0, 0, '2017-04-17 17:47:13', '2017-04-17 17:47:13', NULL), (194, 2, 0, 0, '', 'TD Indi 01 (Test)', '123 Jalan Cempaka 6', 'Al<NAME>', 'Melaka', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:27:46', '', '58f48fa5a7492', 2, '2017-04-17 17:49:25', NULL, 0, 0, 0, '2017-04-17 17:49:25', '2017-04-17 17:49:25', NULL), (195, 2, 0, 0, '', 'TD Event 02 (Test)', '123 Jalan Cempaka 6', 'Al<NAME>', 'Melaka', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:27:46', '', '58f491d0998f0', 2, '2017-04-17 17:58:40', NULL, 0, 0, 0, '2017-04-17 17:58:40', '2017-04-17 17:58:40', NULL), (196, 2, 0, 0, '', 'TD Event 03 (Test)', '123 Jalan Cempaka 6', 'Alor Gajah', 'Melaka', 126, 25, '89989', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:27:46', '', '58f492acdea0d', 2, '2017-04-17 18:02:20', NULL, 0, 0, 0, '2017-04-17 18:02:20', '2017-04-17 18:02:20', NULL), (197, 2, 0, 0, '', 'SHAHIRA123(TEST 14/7)', 'hsjhdhasj ', 'hfdjhgf', 'fghfghg', 126, 25, 'MY889900', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:08:09', '', '58f49eac3dee7', 0, '2017-05-11 06:32:15', '2017-05-11 18:31:34', 0, 0, 107, '2017-04-17 18:53:32', '2017-05-11 18:32:15', NULL), (198, 2, 0, 0, '', 'shahira +001(12test)', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 35, 0, 2, '2017-10-02 08:08:09', '', '58f5961d7e2a0', 0, '2017-05-11 06:38:05', NULL, 0, 0, 0, '2017-04-18 12:29:17', '2017-05-11 18:38:05', NULL), (199, 2, 0, 0, '', 'shahira +002( qc 12test)', 'jalan 35 ', 'perak', 'hahahaha', 126, 25, '0', '172.16.31.10', '', NULL, 'hotel_logo_1492499017.png', 'hotel_wallpaper_1492499018.png', 'hotel_wallpaper_1492499018.png', '', '#059AAE', '', 12, 0, 2, '2017-10-02 08:08:09', '', '58f5b90479ee8', 0, '2017-04-18 14:58:12', NULL, 0, 0, 0, '2017-04-18 14:58:12', '2017-04-18 15:03:46', NULL), (200, 2, 0, 0, '', 'SHAHIRA 002( QC TEST )3', 'jalan 21 ', 'DGSFHDSJ', 'fdsfdsfd', 126, 25, '7989', '', '', NULL, '', '', '', '', '', '', 10, 0, 2, '2017-10-02 08:08:09', '', '58f5babd46792', 2, '2017-04-18 15:05:33', NULL, 0, 0, 107, '2017-04-18 15:05:33', '2017-04-18 15:31:08', NULL), (201, 2, 0, 0, '', 'SHAIRA 002(QC TEST) 4', 'jalan 34 ', 'dssdf', 'CDSDSFDS', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f5bc067eed7', 2, '2017-04-18 15:11:02', NULL, 0, 0, 0, '2017-04-18 15:11:02', '2017-04-18 15:11:02', NULL), (202, 2, 0, 0, '', 'QC TEST 18/4', 'Jalan Kuchai Street 4/7', 'Chennai', 'Tamil Nadu', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 122334, 0, 0, '2017-11-10 10:18:48', '', '58f5bde728eeb', 3, '2017-04-18 15:19:03', NULL, 0, 0, 0, '2017-04-18 15:19:03', '2017-11-10 18:18:48', NULL), (203, 2, 0, 0, '', 'Maya Hotel (QC TEST)', 'jalan merbok ', 'dsdasds', 'dasdasdasd', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 900, 0, 0, '2017-05-11 08:10:10', '', '58f5c1257815b', 2, '2017-04-18 15:32:53', NULL, 0, 0, 0, '2017-04-18 15:32:53', '2017-04-18 15:32:53', NULL), (204, 2, 0, 0, '', 'Hotel Language Edie', '27, Jalan 16/6 Seksyen 16', '<NAME>', 'Selangor', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 123, 0, 0, '2017-05-11 08:10:10', '', '58f5d7e3e07b6', 2, '2017-04-18 17:09:55', NULL, 0, 0, 0, '2017-04-18 17:09:55', '2017-04-18 17:09:55', NULL), (206, 2, 306, 303, '', 'try back (QC TEST)', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, 'hotel_logo_1509952077.png', '', 'smartphone_logo_1509952077.png', '', '#059AAE', '', 1232, 0, 0, '2017-11-06 07:08:13', '', '58f5eac975773', 2, '2017-04-18 18:30:33', NULL, 0, 0, 0, '2017-04-18 18:30:33', '2017-11-06 15:08:13', NULL), (207, 2, 0, 0, '', 'SHAHIRA UP001(QC TEST)', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '', '', NULL, '', '', '', '', '', '', 1000000000, 0, 2, '2017-10-02 08:08:09', '', '58f5fe31186ba', 2, '2017-04-18 19:53:21', NULL, 0, 0, 0, '2017-04-18 19:53:21', '2017-04-18 19:53:21', NULL), (208, 2, 0, 0, '', 'SHAHIRA UP002(QC TEST)', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 2, '2017-10-02 08:08:39', '', '58f601aaa876a', 2, '2017-04-18 20:08:10', NULL, 0, 0, 0, '2017-04-18 20:08:10', '2017-04-18 20:08:10', NULL), (209, 2, 0, 0, '', 'SHAHIRA UP001(QCTEST)1', 'jalan 35 ', 'perak', '', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 1000000000, 0, 2, '2017-10-02 08:08:44', '', '58f60591ae365', 2, '2017-04-18 20:24:49', NULL, 0, 0, 0, '2017-04-18 20:24:49', '2017-04-18 20:24:49', NULL), (210, 2, 0, 0, '', 'SHAHIRA RARA(QC TEST)001', 'JALAN 23 ', '', '', 126, 25, '123456', '', '', NULL, '', '', '', '', '', '', 10, 0, 2, '2017-10-02 08:08:50', '', '58f716babb0a6', 2, '2017-04-19 15:50:18', NULL, 0, 0, 0, '2017-04-19 15:50:18', '2017-04-19 15:50:18', NULL), (211, 2, 0, 0, '', 'RRM (QC TEST)1', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '', '', NULL, '', '', '', '', '', '', 1000000000, 0, 0, '2017-05-11 08:10:10', '', '58f73782427de', 2, '2017-04-19 18:10:10', NULL, 0, 0, 0, '2017-04-19 18:10:10', '2017-04-19 18:10:10', NULL), (212, 2, 0, 0, '', 'SHAHIRA UP002(QC TEST)1', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 1000000000, 0, 2, '2017-10-02 08:08:55', '', '58f7388b938f0', 2, '2017-04-19 18:14:35', NULL, 0, 0, 0, '2017-04-19 18:14:35', '2017-04-19 18:14:35', NULL), (213, 2, 0, 0, '', 'HOTEL MANAGEMENT(QC TEST)5', 'jalan21 ', '', '', 126, 25, '1213', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f73e24783fc', 2, '2017-04-19 18:38:28', NULL, 0, 0, 0, '2017-04-19 18:38:28', '2017-04-19 18:38:28', NULL), (214, 2, 0, 0, '', 'Hotel CC email(qc test)', 'jalan 21 ', 'fgfgfh', '', 126, 25, '78960', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 0, '2017-05-24 03:11:30', '', '58f74378a097e', 0, '2017-05-24 11:11:30', NULL, 0, 0, 0, '2017-04-19 19:01:12', '2017-05-24 11:11:30', NULL), (215, 2, 0, 0, '', 'TEST 123(QC TEST)1', 'jalan 21 ', 'dsdsf', 'dgfhgvjhvbj', 126, 25, '12345', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f82c55c3400', 2, '2017-04-20 11:34:45', NULL, 0, 0, 0, '2017-04-20 11:34:45', '2017-04-20 11:34:45', NULL), (216, 2, 0, 0, '', 'SHAHIRA 12345(QC TEST)', 'sdasd ', 'dsadsa', '', 126, 25, '323312', '', '', NULL, '', '', '', '', '', '', 10, 0, 2, '2017-10-02 08:09:00', '', '58f83569f2e7a', 2, '2017-04-20 12:13:29', NULL, 0, 0, 0, '2017-04-20 12:13:29', '2017-04-20 12:13:29', NULL), (217, 2, 0, 0, '', 'qc tst(qc test)', 'jalan 35 ', 'perak', 'dcsddc', 126, 25, '234324', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f8373a561c0', 2, '2017-04-20 12:21:14', NULL, 0, 0, 0, '2017-04-20 12:21:14', '2017-04-20 12:21:14', NULL), (218, 2, 0, 0, '', 'qc tst(qc test)', 'jalan 35 ', 'perak', 'dcsddc', 126, 25, '234324', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f837da4239d', 2, '2017-04-20 12:23:54', NULL, 0, 0, 0, '2017-04-20 12:23:54', '2017-04-20 12:23:54', NULL), (219, 2, 0, 0, '', 'abc (qc test) haha', 'jalan21 ', 'dfgdfgfd', 'dssfsf', 126, 25, '7648373', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-26 11:12:20', '', '58f84363ce977', 2, '2017-04-20 13:13:07', NULL, 0, 0, 6, '2017-04-20 13:13:07', '2017-05-26 19:12:20', NULL), (220, 2, 0, 0, '', 'www (qc test) 20/4', 'jalan21 ', 'dfgfgf', 'vbchvbv', 126, 25, '123456', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f8450ad04f8', 2, '2017-04-20 13:20:10', NULL, 0, 0, 0, '2017-04-20 13:20:10', '2017-04-20 13:20:10', NULL), (221, 2, 0, 0, '', 'Stage( qc test) 1', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f873d86dd17', 2, '2017-04-20 16:39:52', NULL, 0, 0, 0, '2017-04-20 16:39:52', '2017-04-20 16:39:52', NULL), (222, 2, 0, 0, '', 'Stage( qc test) 1', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '0', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-05-11 08:10:10', '', '58f87423cbbf4', 2, '2017-04-20 16:41:07', NULL, 0, 0, 0, '2017-04-20 16:41:07', '2017-04-20 16:41:07', NULL), (223, 2, 0, 0, '', 'staging 1.Individual sign up -New email (SP-qc test)', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 789, 0, 0, '2017-05-11 09:20:07', '', '59142cc7565a0', 1, NULL, NULL, 0, 0, 0, '2017-05-11 17:20:07', '2017-05-11 17:20:07', NULL), (224, 2, 0, 0, '', 'Staging 3.Individual sign up -existed email (step A -qc test)', 'jalan merbok NO 99/089', 'Kuala lumpur', 'kuala lumpur', 126, 25, '67849', '', '', NULL, '', '', '', '', '', '', 200, 0, 0, '2017-05-11 10:09:37', '', '59143861d96b6', 2, NULL, NULL, 0, 0, 0, '2017-05-11 18:09:37', '2017-05-11 18:09:37', NULL), (225, 2, 0, 0, '', 'shahira (qc test)1 ', 'jalan 35', 'perak', 'gfdgfdgf', 126, 25, '21fgfdgf', '', '', NULL, '', '', '', '', '#059AAE', '', 21, 0, 2, '2017-10-02 08:09:05', '', '59143e3b2a2cd', 0, '2017-05-11 18:34:35', NULL, 0, 0, 107, '2017-05-11 18:34:35', '2017-05-11 18:36:03', NULL), (226, 2, 0, 0, '', 'shahira (qc test) 2', 'jalan 35', 'perak', 'jgjghjhg', 126, 25, '25676', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 2, 0, 2, '2017-10-02 08:09:10', '', '59143f82e1ce7', 0, '2017-05-17 10:17:01', '2017-05-11 18:41:12', 0, 0, 107, '2017-05-11 18:40:02', '2017-05-17 22:17:01', NULL), (227, 2, 0, 0, '', 'shahira (qc test) 3', 'jalan 35', 'perak', 'dfgf', 126, 25, 'upload43', '', '', NULL, '', '', '', '', '#059AAE', '', 0, 0, 2, '2017-10-02 08:09:15', '', '591440619ba94', 2, '2017-05-11 18:43:45', '2017-05-11 18:44:41', 0, 0, 107, '2017-05-11 18:43:45', '2017-05-11 18:45:18', NULL), (228, 2, 0, 0, '', 'Fifie Event H (QC)888', '123 Jalan Cempaka 6sss', '<NAME>', 'Melaka77', 126, 25, '899897', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:18:38', '', '591440a072062', 0, '2017-05-11 06:45:35', NULL, 0, 0, 6, '2017-05-11 18:44:48', '2017-05-26 19:12:25', NULL), (229, 1, 229, 0, '', 'Fifie Event H1 (QC) (QC) (QC) (QC) (QC) (QC)', '123 Jalan Cempaka 6', '<NAME>', 'Melaka', 126, 25, '89989', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-26 06:45:33', 'Gr001', '59144153e98dd', 0, '2017-05-11 06:48:40', NULL, 0, 0, 6, '2017-05-11 18:47:47', '2017-05-26 19:12:29', NULL), (230, 2, 0, 0, '', 'shahira (qc test) 4', 'jalan 35', 'perak', 'dfgvdfgf', 126, 25, 'indi', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 0, 0, 2, '2017-10-02 08:09:20', '', '591441689ff4b', 0, '2017-05-11 06:53:53', '2017-05-11 18:49:04', 0, 0, 107, '2017-05-11 18:48:08', '2017-05-11 18:53:53', NULL), (231, 2, 0, 0, '', 'Fifie HM (QC)', '123123', '112312sfdsdf', 'fsfasaf', 126, 25, '12312', '', '', NULL, '', '', '', '', '#5d7e83', '', 20, 0, 2, '2017-10-02 08:18:49', '', '591442507dae2', 0, '2017-05-11 18:52:00', NULL, 0, 0, 6, '2017-05-11 18:52:00', '2017-05-26 19:12:33', NULL), (232, 2, 0, 0, '', 'staging 5.Individual sign up -existed email (step LIVE -qc test )', 'Jalan Merdeka No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 99, 0, 0, '2017-05-11 10:53:57', '', '591442c53d14d', 1, NULL, NULL, 0, 0, 0, '2017-05-11 18:53:57', '2017-05-11 18:53:57', NULL), (233, 2, 0, 0, '', 'staginng 1.Event sign up -New email (step S/P)', 'Jalan Kuchai Street 4/7', 'Chennai', 'Tamil Nadu', 126, 25, '78905', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 899, 0, 0, '2017-05-11 11:01:06', '', '591443f5e74a6', 0, '2017-05-11 07:01:06', NULL, 0, 0, 0, '2017-05-11 18:59:01', '2017-05-11 19:01:06', NULL), (234, 2, 0, 0, '', 'shahira (qc test) 5', 'jalan 35, 32423', 'perak', 'dssfsf', 126, 25, 'ghjyfgjhg', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 56, 0, 2, '2017-10-02 08:09:25', '', '5914446b91748', 0, '2017-05-11 07:03:12', '2017-05-11 19:01:47', 0, 0, 107, '2017-05-11 19:00:59', '2017-05-11 19:03:12', NULL), (235, 2, 0, 0, '', 'staging 2.Event sign up -existed email (step A -qc test)', 'Jalan Kuchai Street 4/7', 'Chennai', 'kl', 126, 25, '78905', '', '', NULL, '', '', '', '', '', '', 7898, 0, 0, '2017-05-11 11:02:45', '', '591444d546240', 2, NULL, NULL, 0, 0, 0, '2017-05-11 19:02:45', '2017-05-11 19:02:45', NULL), (236, 2, 0, 0, '', 'shahira (qc test)6', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:09:30', '', '5914456e4ee25', 2, NULL, NULL, 0, 0, 107, '2017-05-11 19:05:18', '2017-05-11 19:06:27', NULL), (237, 2, 0, 0, '', 'shahira (qc test)7', 'asdas asdas', 'dasds', 'adsdasd', 126, 25, 'dsadsa', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:09:43', '', '59144632081d6', 1, NULL, '2017-05-11 19:09:13', 0, 0, 107, '2017-05-11 19:08:34', '2017-05-11 19:09:13', NULL), (238, 2, 0, 0, '', 'staging 3.Event sign up -existed email (step B -qc test)', 'Jalan Merdeka No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 8906, 0, 0, '2017-05-11 11:10:53', '', '591446887d9c5', 3, NULL, NULL, 0, 0, 0, '2017-05-11 19:10:00', '2017-05-11 19:10:53', NULL), (239, 2, 0, 0, '', '1. Hm QC test preeta -new email ', 'JALAN KEMBOJA, NO 99/089', 'RAWANG', 'SELANGOR', 126, 25, 'NICKS', '', '', NULL, '', '', '', '', '#059AAE', '', 1234, 0, 2, '2017-11-07 09:47:51', '', '591447576cdce', 0, '2017-05-11 19:13:27', NULL, 0, 0, 181, '2017-05-11 19:13:27', '2017-11-07 17:47:51', NULL), (240, 2, 0, 0, '', 'shahira (qc test) 8', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:09:48', '', '591447ee0ffb3', 1, NULL, '2017-05-11 19:16:30', 0, 0, 107, '2017-05-11 19:15:58', '2017-05-11 19:16:30', NULL), (241, 2, 295, 0, '', 'qc.devel thailand ', 'Jalan Kuchai, Street 4/7', 'Chennai', 'Tamil Nadu', 94, 25, 'Alvin', '', '', '', '', '', '241_sss_1507198440.jpg', '', '#7914fa', '', 0, 0, 0, '2017-10-05 11:39:26', '', '591448d657098', 0, '2017-05-11 19:19:50', NULL, 0, 0, 181, '2017-05-11 19:19:50', '2017-10-05 18:39:21', NULL), (242, 2, 0, 0, '', 'shahira(qc test) 9', 'jalan 35 dsafsdf', 'perak', 'fsdds', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:09:53', '', '591449e0c5d4a', 0, '2017-05-11 07:41:10', '2017-05-11 19:37:28', 0, 0, 107, '2017-05-11 19:24:16', '2017-05-11 19:41:10', NULL), (243, 1, 0, 301, '', 'Divya testing ', 'Jalan Kuchai, kl', 'kl', 'kl', 201, 25, 'Jacy', '172.16.31.10', '', '06:d6:aa:51:79:88', 'hotel_logo_1509509277.png', '', 'smartphone_logo_1509509277.png', '', '#9cc0c5', '', 76886, 0, 0, '2017-11-09 10:38:36', '', '591449ee8272d', 0, '2017-11-01 12:08:01', '2017-05-11 19:25:51', 0, 0, 181, '2017-05-11 19:24:30', '2017-11-09 18:38:36', NULL), (244, 2, 0, 0, '', '4.Hm QC test preeta -new email : l/A', 'jalan merbok, NO 99/089', 'Kuala lumpur', 'kuala lumpur', 126, 25, 'Kumar', '', '', NULL, '', '', '', '', '#059AAE', '', 887, 0, 2, '2017-05-15 11:05:31', '', '59144bc1c5e71', 0, '2017-05-12 19:32:17', '2017-05-09 19:33:49', 0, 0, 103, '2017-05-11 19:32:17', '2017-05-15 19:05:31', NULL), (245, 2, 0, 0, '', 'Testing : QC TEST ', 'jalan merbok, jalan damai', 'kl', 'selangor', 126, 25, 'Nicks', '', '', NULL, '', '', '', '', '#059AAE', '', 123555, 0, 0, '2017-05-11 11:48:01', '', '59144dc320066', 1, '2017-05-11 19:40:51', '2017-05-11 19:43:22', 0, 0, 103, '2017-05-11 19:40:51', '2017-05-11 19:43:22', NULL), (246, 2, 0, 0, '', 'shahira(qc test) 10', 'jalan 35 dfgsdf', 'dfgsfdg', 'dfsgsfdg', 126, 25, '7564', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:01', '', '59144f91e4df0', 0, '2017-05-11 08:00:54', '2017-05-11 19:58:55', 0, 0, 107, '2017-05-11 19:48:33', '2017-05-11 20:00:54', NULL), (247, 2, 0, 0, '', 'shahira(qc test)11', 'jalan 35 dsafsdf', 'perak', 'fsdds', 126, 25, '234324', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:06', '', '591453d8ab5fb', 0, '2017-05-12 12:06:48', NULL, 0, 0, 107, '2017-05-09 12:06:48', '2017-05-11 20:07:51', NULL), (248, 2, 0, 0, '', 'shahira(qc test)12', 'jalan 35 dsafsdf', 'perak', 'fsdds', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:11', '', '591455825e6cc', 0, '2017-05-11 08:17:34', '2017-05-11 20:15:55', 0, 0, 107, '2017-05-11 20:13:54', '2017-05-11 20:17:34', NULL), (249, 2, 0, 0, '', 'shahira (qc test)13', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '249_Roomie_1496305750.jpg', '249_wallpaper_1496305788.jpg', '249_wallpaper_1496305788.jpg', '', '#ae059f', '', 10, 0, 2, '2017-10-02 08:10:15', '', '591456f76b77a', 0, '2017-06-01 04:41:21', '2017-05-11 20:21:19', 0, 0, 107, '2017-05-11 20:20:07', '2017-06-01 16:41:21', NULL), (250, 2, 0, 0, '', 'shahira (qc test)14', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:20', '', '591457b83ecc4', 0, '2017-05-11 08:25:30', '2017-05-11 20:24:15', 0, 0, 107, '2017-05-11 20:23:20', '2017-05-11 20:25:30', NULL), (251, 2, 0, 0, '', 'shahira (test)15', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:25', '', '591458ceba12e', 0, '2017-05-11 08:31:08', '2017-05-11 20:28:57', 0, 0, 107, '2017-05-11 20:27:58', '2017-05-12 10:26:43', NULL), (252, 2, 0, 0, '', 'Fifie HM 1 ()', 'asdasas', 'sdasdasda', 'asdsafasd', 126, 25, '1321312', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:18:54', '', '591534d8bec8d', 0, '2017-05-12 12:06:48', NULL, 0, 0, 6, '2017-05-12 12:06:48', '2017-05-26 19:12:36', NULL), (253, 2, 0, 0, '', 'Shahira (test) 16', 'jalan 35 fdd', 'perak', 'sdfsd', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:30', '', '5915352fb2451', 0, '2017-05-12 12:09:36', NULL, 0, 0, 0, '2017-05-12 12:08:15', '2017-05-12 12:09:36', NULL), (254, 2, 0, 0, '', 'Fifie HM 2 ()fsss', 'sdasadsa', 'sadasdas', 'sadasdas', 126, 25, '21312', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:19:00', '', '59153584492a2', 0, '2017-05-12 12:09:40', NULL, 0, 0, 6, '2017-05-12 12:09:40', '2017-05-26 19:12:41', NULL), (255, 2, 0, 0, '', 'shahira (test) 17', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:35', '', '5915370235916', 0, '2017-05-10 12:17:57', NULL, 0, 0, 0, '2017-05-10 12:16:02', '2017-05-12 12:17:57', NULL), (256, 2, 0, 0, '', 'Fifie HM 3 ()', 'Dasda', 'sadas', 'asdasd', 126, 25, 'ghj7890', '', '', NULL, '', '', '', '', '#059AAE', '', 1, 0, 2, '2017-10-02 08:19:05', '', '59153afc50fed', 1, '2017-05-12 12:33:00', '2017-05-17 12:02:12', 0, 0, 6, '2017-05-12 12:33:00', '2017-05-26 19:12:45', NULL), (257, 2, 229, 0, '', 'Hotel test shankar', '34343', 'dffwfw', 'fdfsdfsdf', 126, 25, '32323', '', '', NULL, '', '', '', '', '#059AAE', '', 34, 0, 0, '2017-05-16 04:48:14', 'Gr001', '591a848ee893e', 0, '2017-05-16 12:48:14', NULL, 0, 0, 52, '2017-05-16 12:48:14', '2017-05-16 12:48:14', NULL), (258, 2, 0, 0, '', 'test logo ', 'Jalan Kuchai, kl', 'kl', 'kl', 126, 25, 'latha', '', '', NULL, '', '', '', '', '#059AAE', '', 233, 0, 0, '2017-09-07 07:29:19', '', '591c1523b959a', 0, '2017-05-17 17:17:23', NULL, 0, 0, 103, '2017-05-17 17:17:23', '2017-05-17 17:17:23', NULL), (259, 2, 0, 0, '', 'Security testing ', 'Jalan Kuchai, Street 4/7', 'Chennai', 'KL', 38, 25, 'Kumar', '', '', '', '', '', '', '', '#6076ff', '', 1234, 0, 0, '2017-05-30 05:39:17', '', '591c62878fe05', 0, '2017-05-17 22:47:35', NULL, 0, 0, 103, '2017-05-17 22:47:35', '2017-05-23 19:42:52', NULL), (260, 2, 0, 0, '', 'hotel logo 1)', 'gfhdfg ', 'fdgh', 'fgdhfgfg', 126, 25, '5654', '172.16.58.3', '', NULL, '', '', '', '', '#0e05ae', '', 10, 0, 0, '2017-09-07 07:29:19', '', '591d91f68543f', 0, '2017-05-18 08:23:37', NULL, 0, 0, 107, '2017-05-18 20:22:14', '2017-05-18 20:41:28', NULL), (261, 2, 0, 0, '', 'hotel isu logo(test)', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#05ae1c', '', 10, 0, 0, '2017-09-07 07:29:19', '', '591d92df04313', 0, '2017-05-18 08:27:29', NULL, 0, 0, 107, '2017-05-18 20:26:07', '2017-05-18 20:38:54', NULL), (262, 2, 0, 0, '', 'HM hotel logo(test) ', 'jalan 35', 'perak', 'ghdgfh', 126, 25, '21', '', '', NULL, '', '', '', '', '#ae05ad', '', 10, 0, 0, '2017-09-07 07:30:23', '', '591d93b69b716', 0, '2017-05-18 20:29:42', NULL, 0, 0, 107, '2017-05-18 20:29:42', '2017-05-18 20:34:59', NULL), (263, 2, 0, 0, '', 'Q & C (test)', 'jalan 35', 'perak', 'dfgdf', 126, 25, '21', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:30:23', '', '591e678f00956', 0, '2017-05-19 11:33:35', NULL, 0, 0, 107, '2017-05-19 11:33:35', '2017-05-19 11:33:35', NULL), (264, 2, 0, 0, '', 'Q & C event (test)', 'gdfdhjgbdf ', 'gbfdb', '', 126, 25, '2434243', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:30:23', '', '591e68d26867f', 2, NULL, NULL, 0, 0, 0, '2017-05-19 11:38:58', '2017-05-19 11:38:58', NULL), (265, 2, 0, 0, '', 'Q & C isu (test)', 'jalan21 ', 'dfgdfgfd', 'gjhbg', 126, 25, '7648373', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:30:23', '', '591e6c1d65ee0', 2, NULL, NULL, 0, 0, 0, '2017-05-19 11:53:01', '2017-05-19 11:53:01', NULL), (266, 2, 0, 0, '', 'shahira (test) 245', 'jalan 35', 'perak', 'fdsgfg', 126, 25, '12345', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:10:41', '', '59250191ea828', 0, '2017-05-24 11:44:17', NULL, 0, 0, 164, '2017-05-24 11:44:17', '2017-05-24 11:44:17', NULL), (267, 1, 0, 0, '', 'shahira (test) 245 edit ', 'jalan 35', 'perak', 'uhdff', 126, 25, '21', '', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-10-04 03:14:31', '', '59250cd4b191f', 0, '2017-05-24 12:32:20', NULL, 0, 0, 164, '2017-05-24 12:32:20', '2017-05-24 12:32:48', NULL), (268, 2, 0, 0, '', 'shahira 245 (test) ', 'jalan 23 ', 'tgfdhvb', 'gfsbdf', 126, 25, '453656', '', '', NULL, '', '', '', '', '#059AAE', '', 2, 0, 2, '2017-10-02 08:10:50', '', '5925567c158e0', 0, '2017-05-24 17:46:36', NULL, 0, 0, 164, '2017-05-24 17:46:36', '2017-05-24 17:46:36', NULL), (269, 2, 0, 0, '', 'testing security ', 'testing security ', 'testing security ', 'testing security ', 126, 25, 'testing se', '', '', NULL, '', '', '', '', '#059AAE', '', 1111, 0, 0, '2017-05-24 10:21:35', '', '59255eafdb593', 0, '2017-05-24 18:21:35', NULL, 0, 0, 162, '2017-05-24 18:21:35', '2017-05-24 18:21:35', NULL), (270, 2, 0, 0, '', 'Testing Hotel', '29, Jalan 16/6 Seksyen 16,', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 0, '2017-05-26 11:03:47', '', '5927b98d7ae9b', 0, '2017-05-26 01:15:56', NULL, 0, 0, 0, '2017-05-26 13:13:49', '2017-05-26 19:03:47', NULL), (271, 2, 0, 0, '', 'Testing Hotel A', '29, Jalan 16/6 Seksyen 16,', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 2, '2017-05-29 02:25:07', '', '59280f24cdb01', 0, '2017-05-26 07:20:41', NULL, 0, 0, 6, '2017-05-26 19:19:00', '2017-05-29 10:25:07', NULL), (272, 2, 0, 347, '', 'US', '29, Jalan 16/6 Seksyen 16,', '<NAME>', 'Selangor', 215, 25, '46350', '', '', '', '1_788_qc_logo_1497516737_1502796302.png', '1_leaves_1502796518.jpg', '272_aaa_1502796378.jpg', '', '#00284c', '', 10, 0, 0, '2017-11-16 07:47:01', '', '592b8443cf0c7', 0, '2017-05-29 10:16:45', NULL, 3, 1, 197, '2017-05-29 10:15:31', '2017-11-16 15:40:32', NULL), (273, 2, 0, 0, '', 'test shan', '232', 'sfdsf', 'fdfdsfs', 126, 25, '323232', '', '', NULL, '', '', '', '', '#059AAE', '', 2, 0, 0, '2017-06-02 09:22:49', '', '59312b91de41f', 0, '2017-06-02 17:10:41', NULL, 0, 0, 52, '2017-06-02 17:10:41', '2017-06-02 17:22:49', NULL), (274, 2, 0, 0, '', 'shan2 test', '2323', 'sdfdsfs', 'efefwf', 126, 25, '323232', '', '', NULL, '', '', 'smartphone_logo_1496395583.png', '', '#059AAE', '', 2, 0, 0, '2017-06-02 09:27:16', '', '59312f3fd6f00', 0, '2017-06-02 17:26:23', NULL, 0, 0, 52, '2017-06-02 17:26:23', '2017-06-02 17:27:16', NULL), (275, 2, 0, 0, '', 'SHAHIRA UP002(TEST)1', 'jalan 35 32423', 'perak', 'dssfsf', 126, 25, 'QAW123', '', '', NULL, '', '', '', '', '', '', 1000000000, 0, 2, '2017-10-02 08:10:55', '', '5938b43d474f2', 2, NULL, NULL, 0, 0, 0, '2017-06-08 10:19:41', '2017-06-08 10:19:41', NULL), (276, 2, 0, 0, '', 'Hotel testing', 'no 23 jalan ipoh', 'sentul', 'kuala lumpur', 126, 25, '53200', '172.16.58.3', '', NULL, 'hotel_logo_1501674742.png', '', 'smartphone_logo_1501674743.png', '', '#059AAE', '', 12345, 0, 0, '2017-08-02 11:52:30', '', '59545f46de78f', 0, '2017-08-02 07:52:30', NULL, 0, 0, 0, '2017-06-29 10:00:38', '2017-08-02 19:52:30', NULL), (277, 2, 0, 0, '', 'www (test) 20/4', 'jalan21 ', 'dfgfgf', 'vbchvbv', 126, 25, '123456', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-09-07 07:30:23', '', '59545f730ce14', 2, NULL, NULL, 0, 0, 0, '2017-06-29 10:01:23', '2017-06-29 10:01:23', NULL), (278, 2, 0, 0, '', 'stage-4.0.13', 'No 27, Jalan 16/6 ', 'Seksyen 16', '<NAME>', 126, 25, '46800', '', '', '', '278_alaTest_Iphone01a_1499226383.png', '', '278_JPG_images_2_1499226680.jpg', '', '#2c636b', '', 50, 0, 2, '2017-09-07 07:11:10', '', '595b469eadc69', 0, '2017-07-04 03:42:53', NULL, 2, 0, 6, '2017-07-04 15:41:18', '2017-09-07 15:11:10', NULL), (279, 2, 0, 0, '', 'Park Regis City Centre Sydney', '27 Park Street (cnr Park & Castlereagh St) Sydney NSW 2000', 'Sydney', 'Sydney', 13, 28, '2000', '', '', '', '279_R0DB5T9_1499227717.png', '279_park_regis_1499227795.jpg', '279_park_regis_1499227783.jpg', '', '#6fa945', '', 122, 1, 0, '2017-09-07 07:03:41', '', '595c53ecc62c5', 0, '2017-07-05 10:50:20', NULL, 2, 0, 5, '2017-07-05 10:50:20', '2017-07-05 21:17:23', NULL), (280, 2, 0, 0, '', 'C testing skip step b', 'jalan 35 ', 'perak', '', 126, 25, '234324', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 10, 0, 0, '2017-09-07 07:30:44', '', '595c5804a360c', 0, '2017-07-05 11:09:59', NULL, 0, 0, 0, '2017-07-05 11:07:48', '2017-07-05 11:09:59', NULL), (281, 2, 0, 0, '', 'Stage 4.0.13 (02)', 'No 27, Jalan 16/6 ', 'Seksyen 16', '<NAME>', 126, 25, '46800', '172.16.58.3', '', NULL, '', '', '', '', '#059AAE', '', 50, 0, 2, '2017-09-07 07:10:48', '', '595cf12eed000', 0, '2017-07-05 10:02:03', NULL, 0, 0, 6, '2017-07-05 22:01:18', '2017-09-07 15:10:48', NULL), (282, 2, 0, 0, '', 'Stage 4.0.13 (03)', '27 Park Street (cnr Park & Castlereagh St) Sydney NSW 2000', 'Sydney', 'Sydney', 13, 28, '08765', '', '', NULL, '1_Drawing2_1499264020.png', '1_73519_1499264044.jpg', '1_439191v_wallpaper_1499264032.jpg', '', '#a37f6e', '', 50, 0, 2, '2017-09-07 07:10:55', '', '595cf43a8e9af', 0, '2017-07-05 22:14:18', NULL, 2, 0, 6, '2017-07-05 22:14:18', '2017-09-07 15:10:55', NULL), (283, 2, 0, 0, '', 'Stage 4.0.13 (04)', 'No 27, Jalan 16/6 ', 'Seksyen 16', '<NAME>aya', 126, 25, '46800', '172.16.58.3', '', NULL, 'hotel_logo_1499264410.png', '', 'smartphone_logo_1499264410.png', '', '#059AAE', '', 50, 0, 2, '2017-09-07 07:11:02', '', '595cf5722860f', 0, '2017-07-05 10:20:23', NULL, 0, 0, 6, '2017-07-05 22:19:30', '2017-09-07 15:11:02', NULL), (284, 2, 0, 0, '', 'Stage 4.0.13 (05)', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '172.16.58.3', '', NULL, '', '284_439191v_wallpaper_1499264535.jpg', '284_439191v_wallpaper_1499264535.jpg', '', '#ae8f05', '', 50, 0, 2, '2017-09-07 07:11:19', '', '595cf5e9172a8', 0, '2017-07-05 10:22:43', NULL, 0, 0, 6, '2017-07-05 22:21:29', '2017-09-07 15:11:19', NULL), (285, 2, 0, 0, '', '<NAME>', '1213 21312', '231', '312', 126, 25, '123', '172.16.58.3', '', NULL, 'hotel_logo_1500378638.png', '', 'smartphone_logo_1500378638.png', '', '#059AAE', '', 10, 0, 2, '2017-10-02 08:19:10', '', '596df5df9b9fd', 0, '2017-07-18 07:51:14', NULL, 0, 0, 0, '2017-07-18 19:49:51', '2017-07-18 19:51:14', NULL), (286, 2, 0, 0, '', '<NAME>', '12321', '21321', '21312', 126, 25, '2131', '', '', NULL, 'hotel_logo_1502781895.png', '', 'smartphone_logo_1502781895.png', '', '#059AAE', '', 21, 0, 0, '2017-11-14 10:58:18', '', '5992a1c77ea3f', 0, '2017-08-15 15:24:55', NULL, 0, 1, 197, '2017-08-15 15:24:55', '2017-11-14 18:58:18', NULL), (287, 2, 0, 0, '', 'Staging Hotel', '29, Jalan 16/6 Seksyen 16,', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '172.16.17.32', '', '18:a6:f7:41:bc:74', '287_788_qc_logo_1497516737_1502796774.png', '1_pr0000_1504840396.jpg', '287_03_1502796747.jpg', '', '#653852', '', 55, 0, 0, '2017-09-20 09:14:00', '', '5992db24ec50b', 0, '2017-08-15 19:29:40', NULL, 2, 0, 6, '2017-08-15 19:29:40', '2017-09-19 09:58:07', NULL), (288, 2, 0, 347, '', 'QC.Devel Hotel ', '29, Jalan 16/6 Seksyen 16,', 'Petaling Jaya', 'Selangor', 126, 25, '46350', '172.16.31.10', '', 'd4:ae:52:c6:e9:c2', '288_288_TD-devel260x260_1507707805_1507878940.png', '288_default_wallpaper1280x720_1507774959.png', '288_1_staging_2_1503370968_1507776567.jpg', '', '#0090bf', '', 10, 0, 0, '2017-11-16 03:21:10', '', '599b9efb22dbd', 0, '2017-08-22 11:03:23', NULL, 3, 0, 197, '2017-08-22 11:03:23', '2017-11-16 11:21:10', NULL), (289, 2, 0, 0, '', 'Testing hotel for staging - 4.0.14...909090', 'jalan merbok, jalan damai', 'selangor', 'selangor', 126, 5, '53200', '', '', NULL, '1_sss_1505892878.jpg', '1_sss_1505892892.jpg', '1_sss_1505892886.jpg', '', '#059AAE', '', 500, 0, 0, '2017-09-20 08:42:33', '', '59c21a29080d4', 0, '2017-09-20 15:35:05', NULL, 0, 0, 181, '2017-09-20 15:35:05', '2017-09-20 16:42:33', NULL), (290, 2, 0, 0, '', 'QC nanim 8888', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, '', '', '', '', '', '', 34, 0, 0, '2017-10-02 08:22:09', '', '59d1f7315934e', 2, NULL, NULL, 0, 0, 0, '2017-10-02 16:22:09', '2017-10-02 16:22:09', NULL), (291, 2, 0, 0, '', 'Testing for QC test', 'no 23 jalan ipoh', 'sentul jaya', 'kuala lumpur', 126, 25, '53200', '', '', NULL, '', '', '', '', '', '', 1234, 0, 0, '2017-10-02 08:25:41', '', '59d1f805cb360', 2, NULL, NULL, 0, 0, 0, '2017-10-02 16:25:41', '2017-10-02 16:25:41', NULL), (292, 2, 0, 0, '', 'hotelaimi123', 'jalan carimakan', 'Petaling Jaya', 'Kuala Lumpur', 126, 25, '60000', '', '', NULL, 'hotel_logo_1506936793.png', '', 'smartphone_logo_1506936793.png', '', '#5b3b51', '', 10, 0, 0, '2017-10-12 06:23:47', '', '59d2064e8987d', 0, '2017-10-02 05:33:31', NULL, 0, 0, 0, '2017-10-02 17:26:38', '2017-10-10 15:45:11', NULL), (293, 2, 0, 0, '', 'hotel event', 'jalan carimakan', 'petaling jaya', 'kl', 126, 25, '60000', '', '', NULL, 'hotel_logo_1506939525.png', '', 'smartphone_logo_1506939525.png', '', '#059AAE', '', 1213, 0, 0, '2017-10-12 06:23:47', '', '59d210df349a3', 0, '2017-10-02 06:22:12', NULL, 0, 0, 0, '2017-10-02 18:11:43', '2017-10-02 18:22:12', NULL), (294, 2, 0, 0, '', 'hotel nadia', 'jalan 1', 'Petaling Jaya', 'Kuala Lumpur', 126, 25, 'Nadia', '172.16.17.32', '', '72:70:0d:9:dc:64', 'hotel_logo_1506940473.png', '', '294_default_wallpaper1280x720_1509704647.png', '', '#059AAE', '', 122, 0, 0, '2017-11-08 03:52:14', '', '59d21639ceeaa', 0, '2017-10-02 18:34:33', NULL, 2, 0, 197, '2017-10-02 18:34:33', '2017-11-03 18:24:12', NULL), (295, 1, 0, 0, '', 'QC Devel Group Hotel', '27 Jalan 16/6', '<NAME>', 'Selangor', 126, 25, '46350', '', '', NULL, 'hotel_logo_1507102294.png', '', 'smartphone_logo_1507102294.png', '', '#059AAE', '', 10, 0, 0, '2017-11-01 10:04:12', '', '59d48e138ed15', 0, '2017-10-04 03:31:40', NULL, 0, 0, 192, '2017-10-04 15:30:27', '2017-10-30 18:48:24', NULL), (296, 2, 0, 347, '', 'hotel AI', '123 132', 'jaln', 'jln', 126, 25, '13000', '', '', '', 'hotel_logo_1509693641.png', '', '296_default_wallpaper1280x720_1510112109.png', '', '#059AAE', '', 123, 0, 0, '2017-11-15 09:50:59', '', '59d49f694ab8d', 0, '2017-11-03 03:20:52', NULL, 0, 1, 197, '2017-10-04 16:44:25', '2017-11-15 17:50:59', NULL), (297, 2, 0, 0, '', 'jhhhh', 'hhh', 'hhh', 'hhhh', 3, 1, 'hhhhh', '', '', NULL, 'hotel_logo_1507871939.png', '', 'smartphone_logo_1507871939.png', '', '#059AAE', '', 888, 0, 1, '2017-10-13 05:18:59', '', '59e04cc34b650', 0, '2017-10-13 13:18:59', NULL, 0, 0, 181, '2017-10-13 13:18:59', '2017-10-13 13:18:59', NULL), (298, 2, 0, 0, '', 'jhhhh', 'hhh', 'hhh', 'hhhh', 3, 1, 'hhhhh', '', '', NULL, 'hotel_logo_1507871941.png', '', 'smartphone_logo_1507871941.png', '', '#059AAE', '', 888, 0, 1, '2017-10-13 05:19:01', '', '59e04cc5be67d', 0, '2017-10-13 13:19:01', NULL, 0, 0, 181, '2017-10-13 13:19:01', '2017-10-13 13:19:01', NULL), (299, 2, 0, 0, '', 'AZ hotel 1610', 'No 27, Jalan 16/6 ', 'Seksyen 16', 'Petaling Jaya', 126, 25, '46800', '', '', NULL, 'hotel_logo_1508139397.png', '', 'smartphone_logo_1508139397.png', '', '#059AAE', '', 50, 0, 0, '2017-10-16 13:48:35', '', '59e45fb14ddba', 0, '2017-10-16 03:36:49', NULL, 0, 0, 0, '2017-10-16 15:28:49', '2017-10-16 15:36:49', NULL), (300, 2, 0, 0, '', 'AZ 1610-01', 'No 27, Jalan 16/6', 'Seksyen 16', 'Petaling Jaya', 8, 25, '21311', '', '', NULL, '1_artsfon.com-79823_1508142308.jpg', '1_artsfon.com-84117_1508142322.jpg', '1_artsfon.com-84117_1508142315.jpg', '', '#ae2405', '', 50, 0, 0, '2017-10-16 08:25:32', '', '59e46cfbd6c88', 0, '2017-10-16 16:25:31', NULL, 1, 0, 5, '2017-10-16 16:25:32', '2017-10-16 16:25:32', NULL), (301, 3, 0, 0, '', 'DivaD', 'Petalling jaya', 'Selongor', 'Kuala Lumpur', 126, 25, '1234567', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-11 04:04:56', '', NULL, 0, NULL, NULL, 0, 0, 189, '2017-10-26 11:37:48', '2017-11-11 12:04:56', NULL), (302, 3, 0, 0, 'PARTNER ANAS MY', 'PARTNER ANAS MY', 'PARTNER ANAS', 'PARTNER ANAS', 'PARTNER ANAS', 126, 25, 'PARTNER ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-27 09:42:05', '', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:42:05', '2017-10-27 09:42:05', NULL), (303, 3, 0, 0, 'PARTNER ANAS ALBANIA', 'PARTNER ANAS ALBANIA', 'PARTNER ANAS', 'PARTNER ANAS', 'PARTNER ANAS', 3, 25, 'PARTNER ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-27 09:43:48', '', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:43:48', '2017-10-27 09:43:48', NULL), (304, 1, 0, 303, 'GROUP ANAS ALBANIA', 'GROUP ANAS ALBANIA', 'GROUP ANAS', 'GROUP ANAS', 'GROUP ANAS', 3, 25, 'GROUP ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-27 09:45:15', '', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:45:15', '2017-10-27 09:45:15', NULL), (305, 1, 0, 302, 'GROUP ANAS MALAYSIA', 'GROUP ANAS MALAYSIA', 'GROUP ANAS', 'GROUP ANAS', 'GROUP ANAS', 3, 25, 'GROUP ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-27 09:45:55', '', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:45:55', '2017-10-27 09:45:55', NULL); INSERT INTO `xcl_hotels` (`id`, `hotel_type`, `hotel_group`, `hotel_partner`, `company_name`, `hotel_name`, `hotel_address`, `hotel_city`, `hotel_state`, `hotel_country`, `hotel_timezone`, `hotel_pincode`, `hotel_ip`, `hotel_ip_type`, `hotel_mac`, `hotel_logo`, `hotel_wallpaper`, `hotel_smartphone`, `hotel_tablet`, `hotel_mcolor`, `hotel_tcolor`, `hotel_rooms`, `hotel_room_type`, `hotel_status`, `hotel_approved`, `hotel_group_code`, `hotel_code`, `hotel_stage`, `live_date`, `reset_date`, `hotel_device`, `hotel_demo`, `added_by`, `created_at`, `updated_at`, `deleted_at`) VALUES (306, 2, 304, 303, 'HOTEL ANAS UNDER ALBANIA GROUP N PARTNER', 'HOTEL ANAS UNDER ALBANIA GROUP N PARTNER', 'HOTEL ANAS', 'HOTEL ANAS', 'HOTEL ANAS', 126, 25, 'HOTEL ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-06 07:06:04', 'anas', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:48:35', '2017-10-27 09:48:35', NULL), (307, 2, 305, 302, 'HOTEL ANAS UNDER MALAYSIA GROUP N PARTNER', 'HOTEL ANAS UNDER MALAYSIA GROUP N PARTNER', 'HOTEL ANAS', 'HOTEL ANAS', 'HOTEL ANAS', 3, 25, 'HOTEL ANAS', '172.16.31.10', '0', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-27 09:49:43', '', NULL, 0, '2017-10-27 16:05:40', NULL, 0, 0, 0, '2017-10-27 09:49:43', '2017-10-27 09:49:43', NULL), (308, 2, 0, 0, '', 'aimi hotel', '12', 'pj', 'selangor', 126, 1, '12300', '', '', NULL, '1_1_staging_2_1503370968_1509100672.jpg', '1_1280_x_720_1509100684.jpg', '1_f20e038476ada8c033c5e0e3f013b42c_1509100680.jpg', '', '#059AAE', '', 12, 0, 1, '2017-10-27 10:39:35', 'GMY000276', '59f30ce6f356a', 0, '2017-10-27 18:39:34', NULL, 0, 0, 197, '2017-10-27 18:39:35', '2017-10-27 18:39:35', NULL), (309, 2, 0, 0, '', 'aimi hotel', '12', 'pj', 'selangor', 126, 1, '12300', '', '', NULL, '1_1_staging_2_1503370968_1509100672.jpg', '1_1280_x_720_1509100684.jpg', '1_f20e038476ada8c033c5e0e3f013b42c_1509100680.jpg', '', '#059AAE', '', 12, 0, 1, '2017-10-27 10:40:32', 'GMY000277', '59f30d207a3f7', 0, '2017-10-27 18:40:32', NULL, 0, 0, 197, '2017-10-27 18:40:32', '2017-10-27 18:40:32', NULL), (310, 2, 123, 0, '', 'aimi hotel', '12', 'pj', 'selangor', 126, 1, '12300', '', '', NULL, '1_1_staging_2_1503370968_1509100672.jpg', '1_1280_x_720_1509100684.jpg', '1_f20e038476ada8c033c5e0e3f013b42c_1509100680.jpg', '', '#059AAE', '', 12, 0, 1, '2017-10-27 10:40:42', 'GMY000278', '59f30d2a91aef', 0, '2017-10-27 18:40:42', NULL, 0, 0, 197, '2017-10-27 18:40:42', '2017-10-27 18:40:42', NULL), (311, 3, 0, 0, 'Divya', 'Divya', 'dscd.c', 'sdd.d', 'smms;', 126, 25, '213254', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-10-31 04:11:13', '', NULL, 0, NULL, NULL, 0, 0, 197, '2017-10-31 11:59:12', '2017-10-31 12:11:13', NULL), (312, 1, 0, 301, '', 'Test Group QC Devel Danil Danil Danil Danil Danil Danil Danil Danil Danil Danil Danil Danil Danil', '27, Jalan 16/6,', 'Petaling Jaya', 'Selangor', 126, 25, '46510', '', '', NULL, 'hotel_logo_1509425250.png', '', 'smartphone_logo_1509425250.png', '', '#059AAE', '', 25, 0, 0, '2017-11-07 08:44:06', '', '59f8006294ea7', 0, '2017-10-31 12:47:30', NULL, 2, 0, 189, '2017-10-31 12:47:30', '2017-11-07 16:44:06', NULL), (313, 2, 5, 0, '', 'HOTEL ANAS 1/11/2017', 'asd asd', 'asd', 'asd', 126, 25, 'asd', '', '0', NULL, 'hotel_logo_1509512649.png', '', 'smartphone_logo_1509512649.png', '', '#059AAE', '', 1, 0, 0, '2017-11-01 11:12:19', '', '59f94ccd2da1e', 0, '2017-11-01 02:31:43', NULL, 0, 0, 0, '2017-11-01 12:25:49', '2017-11-01 14:31:43', NULL), (314, 3, 0, 0, 'Partner 1 <NAME>', 'Test Partner 1 <NAME>', 'No.608, Block D10,', 'Kuala Lumpur', '<NAME>', 126, 25, '46911', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-08 04:17:46', '', NULL, 0, NULL, NULL, 0, 0, 189, '2017-11-01 16:29:29', '2017-11-08 12:17:46', NULL), (315, 3, 0, 0, 'Preeta', 'Preeta', 'Preeta', 'kl', 'selangor', 126, 25, '43211', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-01 09:09:33', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-01 17:09:33', '2017-11-01 17:09:33', NULL), (316, 2, 0, 0, 'Aimi', 'Aimi ', '<NAME>', 'Selongor', 'Kuala Lumpur', 126, 25, '47301', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 03:52:24', '', NULL, 0, NULL, NULL, 1, 1, 197, '2017-11-02 10:00:58', '2017-11-14 11:52:24', NULL), (317, 3, 0, 0, 'Aimi', 'Nadia', '<NAME>', 'Selongor', '<NAME>', 126, 25, '47301', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-10 07:56:25', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-02 10:01:08', '2017-11-10 15:56:25', NULL), (318, 3, 0, 0, 'aznim company', 'PARTNER aznim', 'aznim street address', 'aznim city', 'aznim state', 126, 25, '29137138', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-03 10:42:36', '', NULL, 0, NULL, NULL, 0, 0, 5, '2017-11-03 18:42:36', '2017-11-03 18:42:36', NULL), (319, 3, 0, 0, 'PARTNER aznim 01', 'PARTNER aznim 01', 'PARTNER aznim 01', 'PARTNER aznim 01', 'PARTNER aznim 01', 126, 25, 'PARTNER az', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-03 11:57:42', '', NULL, 0, NULL, NULL, 0, 0, 5, '2017-11-03 19:57:42', '2017-11-03 19:57:42', NULL), (320, 3, 0, 0, 'saufi co and lol', 'saufi partnership with prudential lolololololol lololololol lolololol lololololololololo', '16 lorong D', 'wangsa maju', 'kuala lumpur', 126, 25, '53300', '', '', NULL, '320_4c1c6cb0ae01dffe89af9c06306d0614_1509953263.jpg', '320_img7_1509953383.jpg', '320_img6_1509953373.jpg', '', '#b62066', '', 0, 0, 0, '2017-11-09 09:03:31', '', NULL, 0, NULL, NULL, 0, 0, 183, '2017-11-06 11:47:57', '2017-11-09 17:03:31', NULL), (322, 2, 1, 0, '', 'QC A1 (8169_group)', 'Jalan Kuchai kl', 'kl', 'kl', 126, 25, '123445', '', '', NULL, 'hotel_logo_1509952354.png', '', 'smartphone_logo_1509952354.png', '', '#059AAE', '', 157, 0, 0, '2017-11-09 08:14:29', '', '5a0007376c672', 0, '2017-11-06 03:51:43', NULL, 0, 0, 0, '2017-11-06 14:54:47', '2017-11-06 15:51:43', NULL), (323, 1, 0, 320, '', '1 Group Hotel SF', '14 teyr', 'gewge', 'key ell', 3, 4, '12345', '', '', NULL, '323_Image_from_Skype_1510042749.png', '323_img6_1510042776.jpg', '323_img7_1510042766.jpg', '', '#059AAE', '', 32, 1, 0, '2017-11-14 06:10:53', '', '5a002759d3936', 0, '2017-11-06 17:11:53', NULL, 1, 1, 197, '2017-11-06 17:11:53', '2017-11-14 11:49:38', NULL), (324, 2, 323, 320, '', '1 Gru 2 Hotel SF', '24324', '24', '243', 1, 1, '342342', '', '', NULL, '324_Image_from_Skype_1510129294.png', '324_las_vegas_bellagio_bellagio_hotel_fountain_panorama_82491_1080x1920_1510129320.jpg', '324_4c1c6cb0ae01dffe89af9c06306d0614_1510129301.jpg', '', '#059AAE', '', 342, 0, 0, '2017-11-14 10:55:40', 'GMY000291', '5a0028a1f1d0c', 2, '2017-11-06 17:17:21', '2017-11-09 17:52:04', 2, 1, 197, '2017-11-06 17:17:22', '2017-11-14 18:55:40', NULL), (325, 1, 0, 320, '', '2 Group Hotel SF', 'qwerqw', 'qwerty', 'qwerty', 126, 1, '12345', '', '', NULL, 'hotel_logo_1510029431.png', '', 'smartphone_logo_1510029431.png', '', '#059AAE', '', 234, 0, 0, '2017-11-09 10:11:30', '', '5a01387763e6e', 0, '2017-11-07 12:37:11', NULL, 1, 0, 183, '2017-11-07 12:37:11', '2017-11-09 18:09:31', NULL), (326, 2, 304, 303, '', 'TEST ANAS 7/11zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz', '33', '33', '33', 3, 10, '33', '', '', NULL, 'hotel_logo_1510038700.png', '', 'smartphone_logo_1510038700.png', '', '#059AAE', '', 33, 0, 0, '2017-11-07 09:10:02', 'GAL000293', '5a015cacbcb47', 0, '2017-11-07 15:11:40', NULL, 1, 1, 197, '2017-11-07 15:11:40', '2017-11-07 17:10:02', NULL), (327, 1, 0, 320, '', '3 Group Hotel SF', 'test', 'test', 'test', 126, 1, '12345', '', '', NULL, 'hotel_logo_1510039936.png', '', 'smartphone_logo_1510039936.png', '', '#059AAE', '', 324, 0, 0, '2017-11-09 10:11:50', '', '5a0161802d899', 0, '2017-11-07 15:32:16', NULL, 1, 0, 183, '2017-11-07 15:32:16', '2017-11-09 18:11:50', NULL), (328, 1, 0, 314, '', 'Test Group 1 <NAME>', '26, 17/9,', '<NAME>', 'Selangor', 126, 25, '46987', '', '', NULL, 'hotel_logo_1510199527.png', '', 'smartphone_logo_1510199527.png', '', '#059AAE', '', 15, 0, 0, '2017-11-09 03:52:07', '', '5a03d0e7c009f', 0, '2017-11-09 11:52:07', NULL, 3, 0, 189, '2017-11-09 11:52:07', '2017-11-09 11:52:07', NULL), (329, 1, 0, 314, '', 'Test Group 2 <NAME>', '12. Jalan 15/1', '<NAME>', 'Selangor', 126, 25, '46500', '', '', NULL, 'hotel_logo_1510200166.png', '', 'smartphone_logo_1510200166.png', '', '#059AAE', '', 20, 0, 0, '2017-11-09 04:02:46', '', '5a03d36612047', 0, '2017-11-09 12:02:46', NULL, 3, 0, 189, '2017-11-09 12:02:46', '2017-11-09 12:02:46', NULL), (330, 2, 325, 320, '', '2 Gru 2 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 5, '53434', '', '', NULL, 'hotel_logo_1510202065.png', '', 'smartphone_logo_1510202065.png', '', '#059AAE', '', 555, 0, 0, '2017-11-09 10:16:38', 'GMY000297', '5a03dad1ac678', 2, '2017-11-09 12:34:25', '2017-11-09 17:46:29', 0, 0, 183, '2017-11-09 12:34:25', '2017-11-09 18:16:38', NULL), (331, 2, 325, 320, '', '3 Gru 1 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 30, '12345', '', '', NULL, 'hotel_logo_1510212490.png', '', 'smartphone_logo_1510212490.png', '', '#059AAE', '', 789, 0, 0, '2017-11-09 10:16:03', 'GMY000298', '5a04038a12a7c', 0, '2017-11-09 15:28:10', NULL, 3, 0, 183, '2017-11-09 15:28:10', '2017-11-09 18:16:03', NULL), (332, 2, 325, 320, '', '2 Gru 1 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 5, '12345', '', '', NULL, '1_4c1c6cb0ae01dffe89af9c06306d0614_1510212778.jpg', '1_img5_1510212843.jpg', '1_img5_1510212823.jpg', '', '#059AAE', '', 222, 0, 0, '2017-11-09 10:15:42', 'GMY000299', '5a04050cd63cb', 0, '2017-11-09 15:34:36', NULL, 2, 0, 183, '2017-11-09 15:34:37', '2017-11-09 18:15:42', NULL), (333, 2, 325, 0, '', 'ASFER', 'test hotel', 'test', 'test', 4, 1, '34245', '', '', NULL, '1_snapchat-804754715518314920_1510213992.jpg', '1_img7_1510214013.jpg', '1_4c1c6cb0ae01dffe89af9c06306d0614_1510214004.jpg', '', '#059AAE', '', 555, 1, 1, '2017-11-09 09:32:51', 'GAL000300', '5a0409a774e92', 2, '2017-11-09 15:54:15', '2017-11-09 17:32:51', 3, 1, 183, '2017-11-09 15:54:15', '2017-11-09 17:32:51', NULL), (334, 3, 0, 0, 'Anas Partner 1', 'Test Anas Partner 1', '<NAME>', 'Subang', 'Selangor', 126, 25, '46587', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-09 09:20:41', '', NULL, 0, NULL, NULL, 0, 0, 189, '2017-11-09 17:20:41', '2017-11-09 17:20:41', NULL), (335, 2, 0, 320, '', '1 Gru 1 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 2, '34245', '', '', NULL, 'hotel_logo_1510222118.png', '', 'smartphone_logo_1510222118.png', '', '#059AAE', '', 555, 0, 0, '2017-11-14 03:49:49', 'GMY000302', '5a04292645ca0', 0, '2017-11-09 18:08:38', NULL, 1, 1, 197, '2017-11-09 18:08:38', '2017-11-14 11:49:49', NULL), (336, 2, 327, 320, '', '3 Gru 2 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 1, '12345', '', '', NULL, 'hotel_logo_1510222668.png', '', 'smartphone_logo_1510222668.png', '', '#059AAE', '', 222, 0, 0, '2017-11-09 10:17:48', 'GMY000303', '5a042b4ca3860', 0, '2017-11-09 18:17:48', NULL, 1, 0, 183, '2017-11-09 18:17:48', '2017-11-09 18:17:48', NULL), (337, 2, 323, 320, '', '1 Gru 3 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 7, '12345', '', '', NULL, 'hotel_logo_1510222745.png', '', 'smartphone_logo_1510222745.png', '', '#059AAE', '', 888, 0, 0, '2017-11-09 10:19:05', 'GMY000304', '5a042b991f39a', 0, '2017-11-09 18:19:05', NULL, 1, 0, 183, '2017-11-09 18:19:05', '2017-11-09 18:19:05', NULL), (338, 2, 325, 320, '', '2 Gru 3 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 7, '12345', '', '', NULL, 'hotel_logo_1510222803.png', '', 'smartphone_logo_1510222803.png', '', '#059AAE', '', 999, 0, 0, '2017-11-09 10:20:03', 'GMY000305', '5a042bd3c61ab', 0, '2017-11-09 18:20:03', NULL, 2, 0, 183, '2017-11-09 18:20:03', '2017-11-09 18:20:03', NULL), (339, 2, 327, 320, '', '3 Gru 3 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 3, '12345', '', '', NULL, 'hotel_logo_1510222877.png', '', 'smartphone_logo_1510222877.png', '', '#059AAE', '', 599, 0, 0, '2017-11-09 10:21:17', 'GMY000306', '5a042c1d52946', 0, '2017-11-09 18:21:17', NULL, 3, 0, 183, '2017-11-09 18:21:17', '2017-11-09 18:21:17', NULL), (340, 2, 323, 320, '', '1 Gru 4 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 5, '12345', '', '', NULL, 'hotel_logo_1510222945.png', '', 'smartphone_logo_1510222945.png', '', '#059AAE', '', 333, 0, 0, '2017-11-14 09:55:51', 'GMY000307', '5a042c617e5f2', 0, '2017-11-09 18:22:25', NULL, 2, 0, 220, '2017-11-09 18:22:25', '2017-11-14 17:55:51', NULL), (341, 2, 325, 320, '', '2 Gru 4 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 8, '12345', '', '', NULL, 'hotel_logo_1510223022.png', '', 'smartphone_logo_1510223022.png', '', '#059AAE', '', 333, 0, 0, '2017-11-09 10:23:42', 'GMY000308', '5a042caec442e', 0, '2017-11-09 18:23:42', NULL, 3, 0, 183, '2017-11-09 18:23:42', '2017-11-09 18:23:42', NULL), (342, 2, 327, 320, '', '3 Gru 4 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 1, '12345', '', '', NULL, 'hotel_logo_1510223089.png', '', 'smartphone_logo_1510223089.png', '', '#059AAE', '', 111, 0, 0, '2017-11-09 10:24:49', 'GMY000309', '5a042cf15ea77', 0, '2017-11-09 18:24:49', NULL, 2, 0, 183, '2017-11-09 18:24:49', '2017-11-09 18:24:49', NULL), (343, 2, 323, 320, '', '1 Gru 5 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 6, '12345', '', '', NULL, 'hotel_logo_1510223163.png', '', 'smartphone_logo_1510223163.png', '', '#059AAE', '', 1111, 0, 0, '2017-11-14 09:55:20', 'GMY000310', '5a042d3b42bf1', 0, '2017-11-09 18:26:03', NULL, 2, 0, 220, '2017-11-09 18:26:03', '2017-11-14 17:54:29', NULL), (344, 3, 0, 0, '', 'D_Damani', 'D_Damani', 'D_Damani', 'D_Damani', 126, 25, 'D_Damani', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-11 03:57:22', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-10 17:25:26', '2017-11-11 11:57:22', NULL), (345, 3, 0, 0, 'QC', 'QC partner', 'Pet<NAME>', 'Selongor', 'qwertyj', 126, 25, '1234567', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-10 10:01:48', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-10 18:01:48', '2017-11-10 18:01:48', NULL), (346, 3, 0, 0, '', 'Divya', 'qwerty', 'asdrtfygh', 'sdrftghjm', 1, 25, '0000000000', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-11 12:07:45', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-11 11:56:46', '2017-11-11 20:07:45', NULL), (347, 2, 0, 0, '', 'ABCD', 'ABC', 'ABC', 'ABC', 1, 25, '123456y', '', '', NULL, '', '', '', '', '#0090bf', '', 0, 0, 0, '2017-11-16 09:08:20', '', NULL, 2, NULL, '2017-11-16 17:08:20', 0, 0, 104, '2017-11-11 12:05:35', '2017-11-16 17:08:20', NULL), (348, 3, 0, 0, ' Company Name', ' A A', ' $^&@!)( ', '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', 'A', 3, 25, '1233', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 07:49:59', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-11 12:12:01', '2017-11-13 15:49:59', NULL), (349, 3, 0, 0, 'New partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNe', 'New partner', '1111111111%^&**%artnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNe', '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', 'New partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNew partnerNe', 2, 25, '%%%%%%%%%%', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-11 04:19:57', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-11 12:19:57', '2017-11-11 12:19:57', NULL), (350, 3, 0, 0, 'asdfghj', 'partner A ', 'asdfghjksdfghjszxdfcgvhb', 'szdxfcgh', 'sdfg', 1, 25, '234567', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 03:06:46', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-11 20:14:45', '2017-11-16 11:06:46', NULL), (351, 3, 0, 0, 'ABC', 'Partner C ', '<EMAIL>', '<EMAIL>', '<EMAIL>', 94, 25, 'qc_<EMAIL>', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 03:07:07', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-12 00:03:20', '2017-11-16 11:07:07', NULL), (352, 3, 0, 0, 'ABC', 'Partner B ', 'ABC', 'ABC', 'ABC', 3, 25, 'ABC', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 03:06:55', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-12 00:05:28', '2017-11-16 11:06:55', NULL), (353, 3, 0, 0, '<EMAIL>', '<NAME>', '<EMAIL>', '<EMAIL>', '<EMAIL>', 9, 25, '<EMAIL>', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-11 16:07:40', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-12 00:07:40', '2017-11-12 00:07:40', NULL), (354, 2, 0, 344, '--------------------------------', 'Testing Hotel A', 'Testing Hotel A', 'Testing Hotel A', 'Testing Hotel A', 3, 25, 'Testing Ho', '', '', NULL, '', '', '', '', '', '', 10, 0, 0, '2017-11-15 03:22:47', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 14:26:58', '2017-11-15 11:22:47', NULL), (355, 3, 0, 0, '', 'Diya', 'ABC', 'ABC', 'ABCA', 94, 25, 'ABC', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 06:44:55', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 14:44:57', '2017-11-15 14:44:55', NULL), (356, 3, 0, 0, 'Atiqah ', 'Atiqah', 'ABC', 'ABC', 'ABC', 126, 25, 'ABC', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 08:43:52', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 16:43:52', '2017-11-13 16:43:52', NULL), (357, 3, 0, 0, 'Preeta1Preeta1', 'Preeta1', 'Preeta1', 'Preeta1', 'Preeta1', 1, 25, 'Preeta1', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 09:00:08', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:00:08', '2017-11-13 17:00:08', NULL), (358, 3, 0, 0, 'a', 'Partner E', 'a', 'a', 'a', 3, 25, 'a', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 03:07:28', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:05:44', '2017-11-16 11:07:28', NULL), (359, 3, 0, 0, 'Preeta2', 'Preeta2', 'Preeta2', 'Preeta2', 'Preeta2', 4, 25, 'Preeta2', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 09:21:51', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:21:51', '2017-11-13 17:21:51', NULL), (360, 3, 0, 0, 'Divya2', 'Divya2', 'Divya2', 'Divya2', 'Divya2', 4, 25, 'Divya2', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 09:27:49', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:27:49', '2017-11-13 17:27:49', NULL), (361, 1, 0, 0, '', 'Test Group Danil 3', 'No.301, Block C10,, Wangsa Maju, Seksyen 2', '<NAME>', '<NAME>', 126, 25, '46911', '', '', NULL, 'hotel_logo_1510566150.png', '', 'smartphone_logo_1510566150.png', '', '#059AAE', '', 20, 0, 0, '2017-11-13 09:42:30', '', '5a096906e76ee', 0, '2017-11-13 17:42:30', NULL, 3, 0, 189, '2017-11-13 17:42:30', '2017-11-13 17:42:30', NULL), (362, 3, 0, 0, 'Aimi2', 'Aimi2', 'Aimi2', 'Aimi2', 'Aimi2', 3, 25, 'Aimi2', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 09:45:13', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:45:13', '2017-11-13 17:45:13', NULL), (363, 3, 0, 0, 'QCdevel123', 'QCdevel123QCdevel123', 'QCdevel123', 'QCdevel123', 'QCdevel123', 2, 25, 'QCdevel123', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 09:46:36', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-13 17:46:36', '2017-11-13 17:46:36', NULL), (364, 3, 0, 0, 'testpartner 8920', 'testpartner 8920', 'testpartner 8920', 'testpartner 8920', 'testpartner 8920', 126, 25, '8920', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 10:01:09', '', NULL, 0, NULL, NULL, 0, 0, 256, '2017-11-13 18:01:09', '2017-11-13 18:01:09', NULL), (365, 3, 0, 0, 'testpartner 8921', 'testpartner 8921', 'testpartner 8921', 'testpartner 8921', 'testpartner 8921', 126, 25, '8921', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-13 10:04:33', '', NULL, 0, NULL, NULL, 0, 0, 256, '2017-11-13 18:04:33', '2017-11-13 18:04:33', NULL), (366, 2, 328, 0, '', 'Test Individual Partner Danil', 'No.405, Persiaran Cyber', 'Cyberjaya', 'Selangor', 126, 25, '97844', '', '', NULL, 'hotel_logo_1510571118.png', '', 'smartphone_logo_1510571118.png', '', '#059AAE', '', 10, 0, 0, '2017-11-13 11:05:18', 'GMY000333', '5a097c6e2e2c6', 0, '2017-11-13 19:05:18', NULL, 3, 0, 215, '2017-11-13 19:05:18', '2017-11-13 19:05:18', NULL), (367, 2, 328, 0, '', 'Test Individual Partner Danil 2', 'No.301, Block C10,, Wangsa Maju, Seksyen 2', 'Kuala Lumpur', 'Kuala Lumpur', 126, 25, '46510', '', '', NULL, 'hotel_logo_1510573593.png', '', 'smartphone_logo_1510573593.png', '', '#059AAE', '', 10, 0, 0, '2017-11-13 11:46:33', 'GMY000334', '5a0986192fb78', 0, '2017-11-13 19:46:33', NULL, 3, 0, 215, '2017-11-13 19:46:33', '2017-11-13 19:46:33', NULL), (368, 3, 0, 0, 'NA', 'Testing for inherit ', 'Jalan Kuchai, Street 4/7', 'kl', 'kl', 126, 25, '52000', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 02:51:53', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-14 10:51:53', '2017-11-14 10:51:53', NULL), (369, 3, 0, 0, 'Preeta inherit testing 11/14/2017 ', 'Preeta inherit testing 11/14/2017 ', 'Jalan Merdeka, No 30 batu 3', '<NAME>', 'kl', 126, 25, '32087', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 02:57:14', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-14 10:57:14', '2017-11-14 10:57:14', NULL), (370, 3, 0, 0, 'Existing Partner', 'Existing Partner', 'Existing Partner', 'Existing Partner', 'Existing Partner', 94, 25, 'Existing P', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 03:07:21', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-14 11:07:21', '2017-11-14 11:07:21', NULL), (371, 3, 0, 0, 'Existing Partner', 'Existing Partner', 'Existing Partner', 'Existing Partner', 'Existing Partner', 1, 25, 'Existing P', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 03:12:17', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-14 11:12:17', '2017-11-14 11:12:17', NULL), (372, 3, 0, 0, 'ABCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'Partner D', 'Abc', 'abca', 'abc', 1, 25, 'abc', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 03:07:18', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-14 14:55:39', '2017-11-16 11:07:18', NULL), (373, 3, 0, 0, '', 'Divya 1', 'abc', 'abc', 'abc', 3, 25, '1234534', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 07:00:11', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-14 15:00:11', '2017-11-14 15:00:11', NULL), (374, 3, 0, 0, 'TESTING FOR INHERIT 2 COMPANY ', 'TESTING FOR INHERIT 2 ', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, '43212', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 07:13:39', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-14 15:13:39', '2017-11-14 15:13:39', NULL), (375, 1, 0, 0, '', 'Ujian Group Inherit Stv', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 5, '12345', '', '', NULL, 'hotel_logo_1510646334.png', '', 'smartphone_logo_1510646334.png', '', '#059AAE', '', 345, 0, 0, '2017-11-14 07:58:54', '', '5a0aa23e7dc85', 0, '2017-11-14 15:58:54', NULL, 1, 0, 183, '2017-11-14 15:58:54', '2017-11-14 15:58:54', NULL), (376, 2, 328, 0, '', 'Test Individual Without Partner', '16/6. Jalan Matahari 6', '<NAME>', 'Selangor', 126, 25, '46800', '', '', NULL, 'hotel_logo_1510647151.png', '', 'smartphone_logo_1510647151.png', '', '#059AAE', '', 15, 0, 0, '2017-11-14 08:12:31', 'GMY000343', '5a0aa56f874d4', 0, '2017-11-14 16:12:31', NULL, 3, 0, 189, '2017-11-14 16:12:31', '2017-11-14 16:12:31', NULL), (377, 2, 328, 0, '', 'Test Indivual Tied to Group', 'No.301, Block C10,, <NAME>, Seksyen 2', 'Kuala Lumpur', 'Kuala Lumpur', 126, 25, '46911', '', '', NULL, 'hotel_logo_1510649918.png', '', 'smartphone_logo_1510649918.png', '', '#059AAE', '', 25, 0, 0, '2017-11-14 08:58:38', 'GMY000344', '5a0ab03ea9df1', 0, '2017-11-14 16:58:38', NULL, 3, 0, 189, '2017-11-14 16:58:38', '2017-11-14 16:58:38', NULL), (378, 1, 0, 0, '', 'ujian group without partner', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 5, '12345', '', '', NULL, 'hotel_logo_1510652447.png', '', 'smartphone_logo_1510652447.png', '', '#059AAE', '', 567, 0, 0, '2017-11-14 09:40:47', '', '5a0aba1fb41ed', 0, '2017-11-14 17:40:47', NULL, 1, 0, 183, '2017-11-14 17:40:47', '2017-11-14 17:40:47', NULL), (379, 2, 325, 320, '', '2 Gru 5 Hotel SF', 'Test Rd, 123-C Road To Nation', 'City Of Knowledge', 'State Of Brilliant', 126, 4, '12345', '', '', NULL, 'hotel_logo_1510653189.png', '', 'smartphone_logo_1510653189.png', '', '#059AAE', '', 990, 0, 0, '2017-11-14 09:55:08', 'GMY000346', '5a0abd053b168', 0, '2017-11-14 17:53:09', NULL, 2, 0, 220, '2017-11-14 17:53:09', '2017-11-14 17:53:32', NULL), (380, 2, 328, 314, '', 'Test Individual With Group', '27, Jalan 16/6', '<NAME>', 'Selangor', 126, 25, '46510', '', '', NULL, 'hotel_logo_1510653513.png', '', 'smartphone_logo_1510653513.png', '', '#059AAE', '', 10, 0, 0, '2017-11-14 10:22:17', 'GMY000347', '5a0abe4960124', 0, '2017-11-14 17:58:33', NULL, 1, 0, 215, '2017-11-14 17:58:33', '2017-11-14 18:22:17', NULL), (381, 3, 0, 0, 'Divya2', 'Divya2', 'Divya2', 'Divya2', 'Divya2', 126, 25, 'Divya', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-14 10:07:13', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-14 18:07:13', '2017-11-14 18:07:13', NULL), (382, 3, 0, 0, 'Testing Inherit (QC) ', 'Testing Inherit (QC) ', 'Jalan Merdeka, No 30 batu 3', 'jac<NAME>', 'kl', 126, 25, 'Raj', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 02:43:12', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-15 10:43:12', '2017-11-15 10:43:12', NULL), (383, 3, 0, 0, 'Div- Partner 1', 'Div- Partner 1', 'Div- Partner 1', 'Div- Partner 1', 'Div- Partner 1', 38, 25, 'Div- Partn', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 02:51:00', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 10:51:00', '2017-11-15 10:51:00', NULL), (384, 3, 0, 0, 'Rainbow Company', 'NA Unicorn Partner', '32, Gummy Street', 'Georgetown', 'Penang', 126, 25, '78290', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 02:58:37', '', NULL, 0, NULL, NULL, 0, 0, 263, '2017-11-15 10:58:37', '2017-11-15 10:58:37', NULL), (385, 1, 0, 362, '', 'XXXnanimXXX', 'street address', 'city', 'state', 126, 25, 'postcode', '', '', NULL, '1_paired_icon_1510716051.png', '1_unpaired_icon_1510716072.png', '1_unpaired_icon_1510716060.png', '', '#059AAE', '', 50, 0, 0, '2017-11-15 03:21:24', '', '5a0bb2b3b70b6', 0, '2017-11-15 11:21:23', NULL, 3, 1, 5, '2017-11-15 11:21:24', '2017-11-15 11:21:24', NULL), (386, 1, 0, 360, '', 'XXXnanimXXX-2', 'street address', 'city', 'state', 126, 1, 'postcode', '', '', NULL, '1_paired_icon_1510716373.png', '1_paired_icon_1510716417.png', '1_paired_icon_1510716405.png', '', '#059AAE', '', 50, 0, 0, '2017-11-15 03:27:18', '', '5a0bb41664dee', 0, '2017-11-15 11:27:18', NULL, 2, 1, 5, '2017-11-15 11:27:18', '2017-11-15 11:27:18', NULL), (387, 1, 0, 360, '', 'ABC', 'ABC', 'ABC', 'abc', 126, 1, 'ABC', '', '', NULL, 'hotel_logo_1510716480.png', '', 'smartphone_logo_1510716480.png', '', '#059AAE', '', 12, 0, 1, '2017-11-15 03:28:00', '', '5a0bb440d0f1c', 0, '2017-11-15 11:28:00', NULL, 1, 0, 192, '2017-11-15 11:28:00', '2017-11-15 11:28:00', NULL), (388, 1, 0, 384, '', 'NA Lolipop Group', '24, Hallmark Street', 'Shah Alam', 'Selangor', 126, 14, '32100', '', '', NULL, 'hotel_logo_1510716968.png', '', 'smartphone_logo_1510716968.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 03:36:08', '', '5a0bb62849930', 0, '2017-11-15 11:36:08', NULL, 1, 0, 263, '2017-11-15 11:36:08', '2017-11-15 11:36:08', NULL), (389, 2, 388, 384, '', 'NA Hotel C', '24, Hallmark Street', 'KokCuan', 'Bangkok', 201, 15, '44321', '', '', NULL, 'hotel_logo_1510717959.png', '', 'smartphone_logo_1510717959.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 04:05:39', 'GTH000356', '5a0bba07bedd5', 0, '2017-11-15 11:52:39', NULL, 3, 0, 263, '2017-11-15 11:52:39', '2017-11-15 12:05:39', NULL), (390, 2, 388, 384, '', 'NA Hotel A', '24, Hallmark Street', 'JenTuan', 'Pataya', 201, 15, '67000', '', '', NULL, 'hotel_logo_1510718110.png', '', 'smartphone_logo_1510718110.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 04:05:09', 'GTH000357', '5a0bba9e40704', 0, '2017-11-15 11:55:10', NULL, 1, 0, 263, '2017-11-15 11:55:10', '2017-11-15 12:05:09', NULL), (391, 2, 388, 384, '', 'NA Hotel B', '11, Gangnam Street', 'Deidei', 'Chamburi', 201, 15, '23567', '', '', NULL, 'hotel_logo_1510718351.png', '', 'smartphone_logo_1510718351.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 04:05:25', 'GTH000358', '5a0bbb8f3bb07', 0, '2017-11-15 11:59:11', NULL, 2, 0, 263, '2017-11-15 11:59:11', '2017-11-15 12:05:25', NULL), (392, 2, 388, 384, '', 'NA Hotel D', '11, Gangnam Street', 'Alagais', 'New York', 215, 1, '21090', '', '', NULL, 'hotel_logo_1510718484.png', '', 'smartphone_logo_1510718484.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 04:06:05', 'GUS000359', '5a0bbc141d091', 0, '2017-11-15 12:01:24', NULL, 3, 0, 263, '2017-11-15 12:01:24', '2017-11-15 12:06:05', NULL), (393, 2, 388, 384, '', 'NA Hotel E', '11, Gangnam Street', 'Unkward', 'Chickhuk', 215, 1, '234090', '', '', NULL, 'hotel_logo_1510718608.png', '', 'smartphone_logo_1510718608.png', '', '#059AAE', '', 20, 0, 0, '2017-11-15 04:06:18', 'GUS000360', '5a0bbc902da3f', 0, '2017-11-15 12:03:28', NULL, 3, 0, 263, '2017-11-15 12:03:28', '2017-11-15 12:06:18', NULL), (394, 2, 0, 347, '', 'NA Hotel F', '24, Hallmark Street', 'Hadiapadoa', 'Jujunana', 215, 1, '44500', '', '', NULL, 'hotel_logo_1510718875.png', '', 'smartphone_logo_1510718875.png', '', '#059AAE', '', 20, 0, 0, '2017-11-16 07:33:38', 'GUS000361', '5a0bbd9bb77e7', 0, '2017-11-15 12:07:55', NULL, 3, 0, 263, '2017-11-15 12:07:55', '2017-11-16 15:33:38', NULL), (395, 3, 0, 0, 'ABC', 'Divya - Partner 1', 'ABCD', 'ABCDE', 'rajasthan', 94, 25, '1234', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 05:07:48', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 13:07:48', '2017-11-15 13:07:48', NULL), (396, 3, 0, 0, 'ABC', 'Divya - Partner 2', 'ABCD', 'ABCDE', 'Delhi', 215, 25, '1234', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 05:24:56', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 13:24:56', '2017-11-15 13:24:56', NULL), (397, 3, 0, 0, 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 38, 25, 'Divya - Pa', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 05:26:47', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 13:26:47', '2017-11-15 13:26:47', NULL), (398, 3, 0, 0, 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 'Divya - Partner 3', 201, 25, 'Divya - Pa', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 05:37:59', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 13:37:59', '2017-11-15 13:37:59', NULL), (399, 3, 0, 0, 'Same existing partner', 'Same existing partner', 'Same existing partner', 'Same existing partner', 'Same existing partner', 1, 25, 'Same exist', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 06:19:55', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-15 14:19:55', '2017-11-15 14:19:55', NULL), (400, 3, 0, 0, '3 inherit testing ', '3 inherit testing ', '3 inherit testing ', 'kl', 'kl', 126, 25, '123445', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-15 09:08:53', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-15 17:08:53', '2017-11-15 17:08:53', NULL), (401, 1, 0, 400, '', 'Group for partner 3 inherit testing ', 'Jalan Merdeka, No 30 batu 3', '<NAME>', 'kl', 126, 2, 'Raj', '', '', NULL, 'hotel_logo_1510737786.png', '', 'smartphone_logo_1510737786.png', '', '#059AAE', '', 123, 0, 0, '2017-11-15 09:23:06', '', '5a0c077adff9a', 0, '2017-11-15 17:23:06', NULL, 2, 0, 181, '2017-11-15 17:23:06', '2017-11-15 17:23:06', NULL), (402, 2, 401, 400, '', 'Hotel only this is not group ', 'Jalan Kuchai, kl', 'kl', 'kl', 126, 2, '53200', '', '', NULL, 'hotel_logo_1510738229.png', '', 'smartphone_logo_1510738229.png', '', '#059AAE', '', 908, 0, 0, '2017-11-15 09:30:29', 'GMY000369', '5a0c09353aaee', 0, '2017-11-15 17:30:29', NULL, 2, 0, 181, '2017-11-15 17:30:29', '2017-11-15 17:30:29', NULL), (403, 2, 323, 0, '', 'Test Dan NOV', 'No.121, Block C10,', 'Kuala Lumpur', 'Wilayah Persekutuan', 126, 2, '46510', '', '', NULL, '', '', 'smartphone_logo_1510742740.png', '', '#059AAE', '', 25, 0, 0, '2017-11-16 08:00:01', 'GMY000370', '5a0c1ad4821f0', 2, '2017-11-15 18:45:40', '2017-11-16 16:00:01', 3, 0, 189, '2017-11-15 18:45:40', '2017-11-16 16:00:01', NULL), (404, 2, 329, 314, '', 'Test Part NOV', 'No.31, Jalan Maju', 'Kuala Lumpur', 'Wilayah Persekutuan', 126, 25, '53100', '', '', NULL, 'hotel_logo_1510742847.png', '', 'smartphone_logo_1510742847.png', '', '#059AAE', '', 12, 0, 0, '2017-11-15 10:47:27', 'GMY000371', '5a0c1b3f05869', 0, '2017-11-15 18:47:27', NULL, 3, 0, 189, '2017-11-15 18:47:27', '2017-11-15 18:47:27', NULL), (405, 2, 323, 0, '', 'Abc', 'ABC', 'ABC', 'ABC', 2, 1, 'ABC', '', '', NULL, 'hotel_logo_1510801790.png', '', 'smartphone_logo_1510801790.png', '', '#059AAE', '', 12, 0, 0, '2017-11-16 03:09:50', 'GAF000372', '5a0d017e0fbbd', 0, '2017-11-16 11:09:50', NULL, 1, 0, 192, '2017-11-16 11:09:50', '2017-11-16 11:09:50', NULL), (406, 2, 123, 0, '', '1234', '1234', '1234', '1234', 5, 1, '1234', '', '', NULL, 'hotel_logo_1510801953.png', '', 'smartphone_logo_1510801953.png', '', '#059AAE', '', 1, 0, 1, '2017-11-16 03:12:33', 'GAS000373', '5a0d02217f1cc', 0, '2017-11-16 11:12:33', NULL, 1, 0, 192, '2017-11-16 11:12:33', '2017-11-16 11:12:33', NULL), (407, 2, 401, 400, '', 'Movie filter bugs ', 'Jalan Merdeka, No 30 batu 3', '<NAME>', 'kl', 126, 1, '12345', '', '', NULL, 'hotel_logo_1510802029.png', '', 'smartphone_logo_1510802029.png', '', '#059AAE', '', 123, 0, 0, '2017-11-16 03:15:22', 'GMY000374', '5a0d026dc1b68', 0, '2017-11-16 11:13:49', NULL, 1, 0, 181, '2017-11-16 11:13:49', '2017-11-16 11:15:22', NULL), (408, 3, 0, 0, 'Movie filter bugs ', 'Movie filter bug (partner) ', 'Jalan Kuchai, Street 4/7', 'Chennai', 'T<NAME>', 126, 25, 'Kumar', '', '', NULL, '', '', '', '', '#bb3939', '', 0, 0, 0, '2017-11-16 03:28:41', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 11:17:02', '2017-11-16 11:28:41', NULL), (409, 2, 243, 301, '', 'Divya - Hotel A', 'Divya - Hotel A', 'Divya - Hotel A', 'Divya - Hotel A', 126, 1, 'Divya - Ho', '', '', NULL, 'hotel_logo_1510810186.png', '', 'smartphone_logo_1510810186.png', '', '#059AAE', '', 1, 0, 0, '2017-11-16 05:31:30', 'GMY000376', '5a0d224a769fc', 0, '2017-11-16 13:29:46', NULL, 1, 1, 192, '2017-11-16 13:29:46', '2017-11-16 13:31:30', NULL), (410, 3, 0, 0, 'Existing partner 1', 'Existing partner 1', 'Existing partner 1', 'Existing partner 1', 'Existing partner 1', 215, 25, 'Existing p', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 07:05:55', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 15:05:55', '2017-11-16 15:05:55', NULL), (411, 3, 0, 0, '<EMAIL>', 'Partner ABC', '<EMAIL>', '<EMAIL>', '<EMAIL>', 2, 25, 'qc_53@room', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 07:07:32', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 15:07:32', '2017-11-16 15:07:32', NULL), (412, 3, 0, 0, 'a', 'Check', 'a', 'a', 'a', 154, 25, 'a', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 08:07:07', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 16:07:07', '2017-11-16 16:07:07', NULL), (413, 3, 0, 0, 'A', 'A', 'a', 'a', 'a', 4, 25, 'a', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 08:08:41', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 16:08:41', '2017-11-16 16:08:41', NULL), (414, 3, 0, 0, 'ab', 'AB', 'ab', 'ab', 'saacsac', 4, 25, 'qascs', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 08:14:35', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 16:14:35', '2017-11-16 16:14:35', NULL), (415, 3, 0, 0, 'DIV- ROOMIE', 'DIV- ROOMIE', 'DIV- ROOMIE', 'DIV- ROOMIE', 'DIV- ROOMIE', 3, 25, 'DIV- ROOMI', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 08:54:30', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 16:54:30', '2017-11-16 16:54:30', NULL), (416, 1, 0, 415, '', 'abcd', 'asdv', 'sdf', 'DIV- ROOMIE', 3, 1, 'sdf', '', '', NULL, 'hotel_logo_1510822565.png', '', 'smartphone_logo_1510822565.png', '', '#0090bf', '', 1, 0, 0, '2017-11-16 08:56:41', '', '5a0d52a59c516', 0, '2017-11-16 16:56:05', NULL, 1, 0, 192, '2017-11-16 16:56:05', '2017-11-16 16:56:41', NULL), (417, 3, 0, 0, 'PR_ movie log testing partner ', 'PR_ movie log testing partner ', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, '45367', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 08:56:37', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 16:56:37', '2017-11-16 16:56:37', NULL), (418, 3, 0, 0, 'Pr test back partner ', 'Pr test back partner ', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, 'latha', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:02:55', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 17:02:55', '2017-11-16 17:02:55', NULL), (419, 3, 0, 0, 'Pr Partner1', 'Pr Partner1', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, 'latha', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:04:19', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 17:04:19', '2017-11-16 17:04:19', NULL), (420, 3, 0, 0, 'Pr Partner 23 ', 'Pr Partner 23 ', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, 'latha', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:07:07', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 17:07:07', '2017-11-16 17:07:07', NULL), (421, 3, 0, 0, 'New partner 12', 'New partner 12', 'New partner 12', 'New partner 12', 'New partner 12', 38, 25, 'New partne', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:08:14', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 17:08:14', '2017-11-16 17:08:14', NULL), (422, 3, 0, 0, 'Div- Atiqah EMail', 'Div- Atiqah EMail', 'Div- Atiqah EMail', 'Div- Atiqah EMail', 'Div- Atiqah EMail', 4, 25, 'Div- Atiqa', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:12:04', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 17:12:04', '2017-11-16 17:12:04', NULL), (423, 3, 0, 0, 'PR divya ', 'PR divya ', 'jalan merbok, NO 99/089', 'Kuala lumpur', 'kuala lumpur', 126, 25, 'Kumar', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:12:56', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 17:12:56', '2017-11-16 17:12:56', NULL), (424, 3, 0, 0, 'ssss', 'pr', 'Jalan Merdeka, No 30 batu 3', 'Kuala lumpur', 'wilayah persekutuan', 126, 25, 'latha', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:13:52', '', NULL, 0, NULL, NULL, 0, 0, 181, '2017-11-16 17:13:52', '2017-11-16 17:13:52', NULL), (425, 3, 0, 0, 'Div - New partner', 'Div - New partner', 'Div - New partner', 'Div - New partner', 'Div - New partner', 2, 25, 'Div - New ', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 09:18:10', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 17:18:10', '2017-11-16 17:18:10', NULL), (426, 3, 0, 0, 'same email', 'Div- Divya email', 'same email', 'same email', 'same email', 2, 25, 'same email', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 10:35:18', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 18:35:18', '2017-11-16 18:35:18', NULL), (427, 3, 0, 0, '56 partner', '56 partner', '56 partner', '56 partner', '56 partner', 3, 25, '56 partner', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 10:37:33', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 18:37:33', '2017-11-16 18:37:33', NULL), (428, 3, 0, 0, 'Latest', 'Latest', 'Latest', 'Latest', 'Latest', 3, 25, 'Latest', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-16 10:41:03', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-16 18:41:03', '2017-11-16 18:41:03', NULL), (429, 3, 0, 0, 'xxy sdn bhd', 'AT test partner', 'no 12 jalan cempaka', 'Shah Alam', 'Selangor', 126, 25, '43900', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-17 03:16:28', '', NULL, 0, NULL, NULL, 0, 0, 263, '2017-11-17 11:16:28', '2017-11-17 11:16:28', NULL), (430, 0, 0, 429, '', 'AT test group', '11, Gangnam Street', 'Shah Alam', 'Selangor', 126, 14, '231444', '', '', NULL, 'hotel_logo_1510890019.png', '', 'smartphone_logo_1510890019.png', '', '#0090bf', '', 20, 0, 0, '2017-11-17 03:42:12', '', '5a0e5a23c27b2', 0, '2017-11-17 11:40:19', NULL, 1, 0, 263, '2017-11-17 11:40:19', '2017-11-17 11:42:12', NULL), (431, 2, 0, 432, '', 'AT test hotel 1', '13a street happiness', 'Shah Alam', 'Selangor', 1, 2, '21090', '', '', NULL, 'hotel_logo_1510890110.png', '', 'smartphone_logo_1510890110.png', '', '#0090bf', '', 20, 0, 0, '2017-11-17 04:19:39', 'GGE000398', '5a0e5a7ece676', 0, '2017-11-17 11:41:50', NULL, 3, 0, 192, '2017-11-17 11:41:50', '2017-11-17 12:19:39', NULL), (432, 3, 0, 0, '<NAME>', '<NAME>', '<NAME>', 'Selongor', '<NAME>', 94, 25, '2324', '', '', NULL, '', '', '', '', '', '', 0, 0, 0, '2017-11-17 03:58:46', '', NULL, 0, NULL, NULL, 0, 0, 192, '2017-11-17 11:58:46', '2017-11-17 11:58:46', NULL), (433, 2, 0, 432, '', 'Hotel A - DIvya', 'Hotel A - DIvya', 'Hotel A - DIvya', 'Hotel A - DIvya', 2, 1, 'Hotel A - ', '', '', NULL, 'hotel_logo_1510891248.png', '', 'smartphone_logo_1510891248.png', '', '#0090bf', '', 1, 0, 1, '2017-11-17 04:01:26', 'GAF000399', '5a0e5ef086e70', 0, '2017-11-17 12:00:48', NULL, 1, 0, 192, '2017-11-17 12:00:48', '2017-11-17 12:01:26', NULL), (434, 1, 0, 432, '', 'ATQ', 'Hotel abc', 'Hotel abc', 'Hotel abc', 94, 14, 'Hotel abc', '', '', NULL, 'hotel_logo_1510891861.png', '', 'smartphone_logo_1510891861.png', '', '#0090bf', '', 20, 0, 0, '2017-11-17 04:21:51', '', '5a0e6155e48b3', 0, '2017-11-17 12:11:01', NULL, 1, 0, 192, '2017-11-17 12:11:01', '2017-11-17 12:21:51', NULL);