text
stringlengths
1
1.05M
create table TAB_PARTITION_HASH ( COL1 NUMBER(15) not null ) partition by hash (COL1)(partition part_1 tablespace TABLESPACE1,partition part_2); create table TAB_PARTITION_LIST ( COL1 NUMBER(15) not null ) partition by list (COL1)(partition part_1 values (1),partition part_2 values (2) tablespace TABLESPACE1,partition part_3 values (default) tablespace TABLESPACE1); create table TAB_PARTITION_RANGE ( COL1 NUMBER(15) not null ) partition by range (COL1)(partition part_1 values less than (1),partition part_2 values less than (maxvalue) tablespace TABLESPACE1);
CREATE MATERIALIZED VIEW mv_cash_concurrent_players_in_5_min AS ( WITH all_cash_players_games AS ( SELECT DISTINCT DATE_TRUNC('minute', g.f_started_stamp) AS f_time, (t.f_high_bet :: NUMERIC / 100) AS f_limit, p.f_player_id FROM t_participation AS p, t_game AS g, t_table AS t WHERE p.f_game_id = g.f_id AND g.f_table_id = t.f_id AND g.f_started_stamp >= '2017-01-01T00:00:00' AND t.f_money_type = 'R' ), min_time AS ( SELECT DATE_TRUNC( 'hour', GREATEST( MIN(f_time), MAX(f_time) - INTERVAL '1 day' ) ) AS f_min_time FROM all_cash_players_games ), all_cash_players_by_interval AS ( SELECT date_trunc_by_interval(f_time, '5 min') AS f_stamp, f_limit, COUNT(DISTINCT f_player_id) AS f_all_players FROM all_cash_players_games, min_time WHERE f_time >= f_min_time GROUP BY f_stamp, f_limit ), bot_cash_players_games AS ( SELECT * FROM all_cash_players_games JOIN t_house_flag USING (f_player_id) WHERE f_house_flag = 1 ), bot_cash_players_by_interval AS ( SELECT date_trunc_by_interval(f_time, '5 min') AS f_stamp, f_limit, COUNT(DISTINCT f_player_id) AS f_bot_players FROM bot_cash_players_games, min_time WHERE f_time >= f_min_time GROUP BY f_stamp, f_limit ), live_cash_players_games AS ( SELECT * FROM all_cash_players_games JOIN t_house_flag USING (f_player_id) WHERE f_house_flag = 0 ), live_cash_players_by_interval AS ( SELECT date_trunc_by_interval(f_time, '5 min') AS f_stamp, f_limit, COUNT(DISTINCT f_player_id) AS f_live_players FROM live_cash_players_games, min_time WHERE f_time >= f_min_time GROUP BY f_stamp, f_limit ), house_cash_players_games AS ( SELECT * FROM all_cash_players_games JOIN t_house_flag USING (f_player_id) WHERE f_house_flag = 2 ), house_cash_players_by_interval AS ( SELECT date_trunc_by_interval(f_time, '5 min') AS f_stamp, f_limit, COUNT(DISTINCT f_player_id) AS f_house_players FROM house_cash_players_games, min_time WHERE f_time >= f_min_time GROUP BY f_stamp, f_limit ), test_cash_players_games AS ( SELECT * FROM all_cash_players_games JOIN t_house_flag USING (f_player_id) WHERE f_house_flag = 3 ), test_cash_players_by_interval AS ( SELECT date_trunc_by_interval(f_time, '5 min') AS f_stamp, f_limit, COUNT(DISTINCT f_player_id) AS f_test_players FROM test_cash_players_games, min_time WHERE f_time >= f_min_time GROUP BY f_stamp, f_limit ) SELECT f_stamp, f_limit, f_all_players, COALESCE(f_bot_players, 0) AS f_bot_players, COALESCE(f_live_players, 0) AS f_live_players, COALESCE(f_house_players, 0) AS f_house_players, COALESCE(f_test_players, 0) AS f_test_players FROM all_cash_players_by_interval LEFT JOIN bot_cash_players_by_interval USING (f_stamp, f_limit) LEFT JOIN live_cash_players_by_interval USING (f_stamp, f_limit) LEFT JOIN house_cash_players_by_interval USING (f_stamp, f_limit) LEFT JOIN test_cash_players_by_interval USING (f_stamp, f_limit) );
INSERT INTO categories (name, description) VALUES ('General Tours', 'This section consists of four general tours that go around campus!'); INSERT INTO tours (name, description) VALUES ('Freshman Residence Halls', 'Hey! This is a tour of the freshman residence halls!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (1, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730628, -73.675603, 1, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729052, -73.674105, 1, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72848, -73.67455, 1, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72928, -73.67731, 1, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72878, -73.67821, 1, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728879, -73.683268, 1, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729274, -73.682141, 1, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730761, -73.681675, 1, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73065, -73.67928, 1, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730314, -73.678076, 1, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73025, -73.67664, 1, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730625, -73.675614, 1, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,1,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (1, 1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (1, 2); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72898, -73.67414); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,2,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (2, 3); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (2, 4); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (2, 5); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72848, -73.67455); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,3,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (3, 6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (3, 7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (3, 8); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72928, -73.67731); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,4,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72878, -73.67821); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,5,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72908, -73.68335); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,6,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (6, 9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (6, 10); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.72932, -73.68208); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,7,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (7, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73082, -73.68183); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,8,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (8, 12); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (8, 13); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73065, -73.67928); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,9,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (9, 14); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.73036, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,10,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 15); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 16); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 17); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 18); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 19); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 20); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (10, 21); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.73025, -73.67664); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,11,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (11, 22); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (11, 23); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (11, 24); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (11, 25); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (1,12,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (12, 26); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (12, 27); INSERT INTO tours (name, description) VALUES ('Dining Halls', 'Hey! This is a tour of the dining halls!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (2, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 2, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 2, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 2, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 2, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 2, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 2, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 2, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 2, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 2, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 2, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 2, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 2, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,13,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (13, 28); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (13, 29); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,14,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (14, 30); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (14, 31); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (14, 32); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,15,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (15, 33); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (15, 34); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (15, 35); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,16,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,17,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,18,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (18, 36); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (18, 37); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,19,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (19, 38); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,20,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (20, 39); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (20, 40); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,21,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (21, 41); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,22,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 42); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 43); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 44); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 45); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 46); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 47); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (22, 48); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,23,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (23, 49); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (23, 50); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (23, 51); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (23, 52); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (2,24,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (24, 53); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (24, 54); INSERT INTO tours (name, description) VALUES ('Administrative Offices', 'Hey! This is a tour of the administrative offices!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (3, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 3, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 3, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 3, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 3, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 3, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 3, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 3, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 3, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 3, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 3, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 3, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 3, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,25,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (25, 55); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (25, 56); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,26,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (26, 57); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (26, 58); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (26, 59); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,27,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (27, 60); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (27, 61); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (27, 62); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,28,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,29,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,30,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (30, 63); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (30, 64); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,31,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (31, 65); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,32,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (32, 66); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (32, 67); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,33,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (33, 68); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,34,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 69); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 70); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 71); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 72); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 73); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 74); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (34, 75); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,35,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (35, 76); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (35, 77); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (35, 78); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (35, 79); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (3,36,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (36, 80); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (36, 81); INSERT INTO tours (name, description) VALUES ('Freshman Hill', 'Hey! This is a tour of freshman hill!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (4, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 4, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 4, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 4, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 4, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 4, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 4, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 4, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 4, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 4, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 4, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 4, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 4, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,37,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (37, 82); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (37, 83); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,38,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (38, 84); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (38, 85); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (38, 86); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,39,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (39, 87); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (39, 88); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (39, 89); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,40,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,41,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,42,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (42, 90); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (42, 91); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,43,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (43, 92); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,44,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (44, 93); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (44, 94); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,45,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (45, 95); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,46,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 96); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 97); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 98); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 99); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 100); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 101); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (46, 102); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,47,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (47, 103); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (47, 104); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (47, 105); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (47, 106); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (4,48,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (48, 107); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (48, 108); INSERT INTO categories (name, description) VALUES ('Athletic Tours', 'This section consists of four athletic tours that go around campus!'); INSERT INTO tours (name, description) VALUES ('Mueller Center', 'Hey! This is a tour of the Mueller Center!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (5, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 5, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 5, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 5, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 5, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 5, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 5, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 5, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 5, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 5, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 5, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 5, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 5, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,49,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (49, 109); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (49, 110); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,50,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (50, 111); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (50, 112); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (50, 113); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,51,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (51, 114); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (51, 115); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (51, 116); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,52,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,53,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,54,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (54, 117); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (54, 118); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,55,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (55, 119); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,56,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (56, 120); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (56, 121); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,57,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (57, 122); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,58,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 123); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 124); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 125); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 126); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 127); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 128); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (58, 129); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,59,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (59, 130); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (59, 131); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (59, 132); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (59, 133); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (5,60,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (60, 134); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (60, 135); INSERT INTO tours (name, description) VALUES ('''87 Gym', 'Hey! This is a tour of the ''87 Gym!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (6, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 6, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 6, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 6, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 6, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 6, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 6, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 6, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 6, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 6, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 6, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 6, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 6, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,61,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (61, 136); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (61, 137); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,62,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (62, 138); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (62, 139); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (62, 140); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,63,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (63, 141); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (63, 142); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (63, 143); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,64,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,65,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,66,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (66, 144); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (66, 145); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,67,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (67, 146); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,68,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (68, 147); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (68, 148); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,69,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (69, 149); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,70,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 150); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 151); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 152); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 153); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 154); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 155); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (70, 156); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,71,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (71, 157); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (71, 158); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (71, 159); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (71, 160); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (6,72,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (72, 161); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (72, 162); INSERT INTO tours (name, description) VALUES ('ECAV', 'Hey! This is a tour of ECAV!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (7, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 7, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 7, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 7, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 7, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 7, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 7, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 7, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 7, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 7, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 7, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 7, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 7, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,73,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (73, 163); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (73, 164); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,74,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (74, 165); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (74, 166); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (74, 167); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,75,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (75, 168); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (75, 169); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (75, 170); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,76,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,77,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,78,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (78, 171); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (78, 172); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,79,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (79, 173); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,80,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (80, 174); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (80, 175); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,81,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (81, 176); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,82,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 177); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 178); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 179); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 180); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 181); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 182); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (82, 183); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,83,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (83, 184); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (83, 185); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (83, 186); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (83, 187); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (7,84,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (84, 188); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (84, 189); INSERT INTO tours (name, description) VALUES ('Additional Sports Facilities', 'Hey! This is a tour of the additional sports facilities!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (8, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 8, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 8, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 8, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 8, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 8, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 8, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 8, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 8, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 8, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 8, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 8, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 8, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,85,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (85, 190); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (85, 191); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,86,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (86, 192); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (86, 193); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (86, 194); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,87,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (87, 195); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (87, 196); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (87, 197); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,88,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,89,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,90,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (90, 198); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (90, 199); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,91,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (91, 200); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,92,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (92, 201); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (92, 202); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,93,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (93, 203); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,94,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 204); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 205); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 206); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 207); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 208); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 209); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (94, 210); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,95,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (95, 211); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (95, 212); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (95, 213); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (95, 214); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (8,96,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (96, 215); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (96, 216); INSERT INTO categories (name, description) VALUES ('Academic Tours', 'This section consists of four academic tours that go around campus!'); INSERT INTO tours (name, description) VALUES ('Lally Tour', 'Hey! This is a tour of Lally!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (9, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 9, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 9, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 9, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 9, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 9, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 9, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 9, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 9, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 9, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 9, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 9, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 9, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,97,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (97, 217); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (97, 218); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,98,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (98, 219); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (98, 220); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (98, 221); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,99,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (99, 222); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (99, 223); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (99, 224); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,100,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,101,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,102,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (102, 225); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (102, 226); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,103,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (103, 227); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,104,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (104, 228); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (104, 229); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,105,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (105, 230); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,106,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 231); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 232); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 233); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 234); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 235); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 236); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (106, 237); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,107,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (107, 238); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (107, 239); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (107, 240); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (107, 241); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (9,108,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (108, 242); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (108, 243); INSERT INTO tours (name, description) VALUES ('JEC Tour', 'Hey! This is a tour of JEC!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (10, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 10, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 10, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 10, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 10, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 10, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 10, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 10, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 10, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 10, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 10, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 10, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 10, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,109,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (109, 244); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (109, 245); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,110,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (110, 246); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (110, 247); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (110, 248); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,111,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (111, 249); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (111, 250); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (111, 251); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,112,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,113,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,114,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (114, 252); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (114, 253); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,115,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (115, 254); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,116,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (116, 255); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (116, 256); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,117,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (117, 257); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,118,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 258); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 259); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 260); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 261); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 262); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 263); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (118, 264); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,119,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (119, 265); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (119, 266); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (119, 267); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (119, 268); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (10,120,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (120, 269); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (120, 270); INSERT INTO tours (name, description) VALUES ('JROW Tour', 'Hey! This is a tour of JROW!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (11, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 11, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 11, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 11, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 11, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 11, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 11, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 11, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 11, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 11, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 11, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 11, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 11, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,121,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (121, 271); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (121, 272); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,122,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (122, 273); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (122, 274); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (122, 275); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,123,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (123, 276); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (123, 277); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (123, 278); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,124,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,125,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,126,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (126, 279); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (126, 280); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,127,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (127, 281); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,128,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (128, 282); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (128, 283); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,129,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (129, 284); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,130,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 285); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 286); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 287); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 288); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 289); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 290); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (130, 291); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,131,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (131, 292); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (131, 293); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (131, 294); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (131, 295); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (11,132,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (132, 296); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (132, 297); INSERT INTO tours (name, description) VALUES ('DCC Tour', 'Hey! This is a tour of DCC!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (12, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 12, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 12, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 12, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 12, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 12, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 12, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 12, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 12, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 12, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 12, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 12, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 12, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,133,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (133, 298); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (133, 299); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,134,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (134, 300); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (134, 301); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (134, 302); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,135,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (135, 303); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (135, 304); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (135, 305); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,136,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,137,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,138,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (138, 306); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (138, 307); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,139,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (139, 308); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,140,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (140, 309); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (140, 310); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,141,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (141, 311); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,142,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 312); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 313); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 314); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 315); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 316); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 317); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (142, 318); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,143,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (143, 319); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (143, 320); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (143, 321); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (143, 322); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (12,144,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (144, 323); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (144, 324); INSERT INTO categories (name, description) VALUES ('Miscellaneous Tours', 'This section consists of four miscellaneous tours that go around campus!'); INSERT INTO tours (name, description) VALUES ('EMPAC Tour', 'Hey! This is an example tour brought to you by the RPI Tours SD&D team!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (13, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 13, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 13, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 13, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 13, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 13, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 13, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 13, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 13, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 13, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 13, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 13, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 13, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,145,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (145, 325); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (145, 326); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,146,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (146, 327); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (146, 328); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (146, 329); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,147,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (147, 330); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (147, 331); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (147, 332); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,148,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,149,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,150,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (150, 333); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (150, 334); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,151,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (151, 335); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,152,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (152, 336); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (152, 337); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,153,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (153, 338); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,154,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 339); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 340); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 341); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 342); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 343); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 344); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (154, 345); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,155,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (155, 346); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (155, 347); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (155, 348); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (155, 349); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (13,156,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (156, 350); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (156, 351); INSERT INTO tours (name, description) VALUES ('Winslow Tour', 'Hey! This is an example tour brought to you by the RPI Tours SD&D team!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (14, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 14, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 14, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 14, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 14, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 14, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 14, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 14, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 14, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 14, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 14, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 14, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 14, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,157,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (157, 352); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (157, 353); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,158,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (158, 354); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (158, 355); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (158, 356); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,159,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (159, 357); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (159, 358); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (159, 359); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,160,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,161,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,162,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (162, 360); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (162, 361); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,163,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (163, 362); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,164,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (164, 363); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (164, 364); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,165,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (165, 365); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,166,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 366); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 367); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 368); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 369); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 370); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 371); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (166, 372); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,167,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (167, 373); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (167, 374); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (167, 375); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (167, 376); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (14,168,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (168, 377); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (168, 378); INSERT INTO tours (name, description) VALUES ('Walker Tour', 'Hey! This is an example tour brought to you by the RPI Tours SD&D team!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (15, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 15, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728989, -73.674101, 15, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 15, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729069, -73.677017, 15, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 15, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728869, -73.683162, 15, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 15, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 15, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730542, -73.67893, 15, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730117, -73.67765, 15, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.729998, -73.676921, 15, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 15, 11); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,169,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (169, 379); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (169, 380); INSERT INTO landmarks (name, description, lat, long) VALUES ('Barton Residence Hall', 'Barton was first opened in Fall 2000 and in addition to being our newest residence hall, it also has the distinction of being the campus'' only freshman only residence hall.', 42.72912865, -73.67406964); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,170,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/102.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (170, 381); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/572.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (170, 382); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/573.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (170, 383); INSERT INTO landmarks (name, description, lat, long) VALUES ('Commons Dining Hall', 'Situated at the center of the first-year residence halls, the Commons offers several dining stations. These include the popular Asian Pacifica, a savory grill program, pasta prepared to order, a deli and Theme Cuisine.', 42.72825898, -73.67426062); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,171,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/106.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (171, 384); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/596.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (171, 385); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/597.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (171, 386); INSERT INTO landmarks (name, description, lat, long) VALUES ('Mueller Center', 'The Mueller Center is the hub of personal fitness and wellness on the Rensselaer Campus.', 42.72876217, -73.67665529); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,172,3); INSERT INTO landmarks (name, description, lat, long) VALUES ('Biotech', 'The Center for Biotechnology and Interdisciplinary Studies (CBIS) at Rensselaer Polytechnic Institute interweaves life sciences, physical sciences, and engineering into the fields of biotechnology and medicine, opening exciting new pathways to innovation and discovery.', 42.72824558, -73.67840463); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,173,4); INSERT INTO landmarks (name, description, lat, long) VALUES ('EMPAC', 'The Curtis R. Priem Experimental Media and Performing Arts Center at Rensselaer Polytechnic Institute is where the arts, sciences, and technology interact with and influence each other by using the same facilities and technologies, and by breathing the same air.', 42.72886313, -73.68382645); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,174,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/160.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (174, 387); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/162.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (174, 388); INSERT INTO landmarks (name, description, lat, long) VALUES ('Folsom Library', 'The mission of the Rensselaer Libraries is to support Rensselaer''s educational and research endeavors.', 42.7293383, -73.68253845); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,175,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/164.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (175, 389); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Laboratory', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,176,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (176, 390); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/142.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (176, 391); INSERT INTO landmarks (name, description, lat, long) VALUES ('87 Gym', 'The ''87 Gymnasium (gift of the class of 1887) has a swimming pool, two small gymnasia, an indoor track, and racquetball and squash courts.', 42.73078266, -73.67884934); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,177,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/135.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (177, 392); INSERT INTO landmarks (name, description, lat, long) VALUES ('Quad', 'The Quadrangle, or The Quad for short, was one of the first residence halls on campus and recently renovated in the 1980s.', 42.730117, -73.67765); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,178,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/131.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 393); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/133.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 394); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/603.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 395); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/604.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 396); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/605.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 397); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/606.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 398); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/607.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (178, 399); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,179,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (179, 400); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (179, 401); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (179, 402); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (179, 403); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (15,180,11); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (180, 404); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (180, 405); INSERT INTO tours (name, description) VALUES ('Resa''s Route', 'Hey! This will surely put tour guides out of business!'); INSERT INTO tour_categories (tour_id, category_id) VALUES (16, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73064179, -73.67553949, 16, 0); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72761152, -73.67349029, 16, 1); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72702598, -73.67464042, 16, 2); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72825898, -73.67426062, 16, 3); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72876217, -73.67665529, 16, 4); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72930203, -73.67700934, 16, 5); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72824558, -73.67840463, 16, 6); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728774, -73.680338, 16, 7); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72886313, -73.68382645, 16, 8); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7293383, -73.68253845, 16, 9); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72922799, -73.6817826, 16, 10); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.730165, -73.68254542, 16, 11); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73008028, -73.68189633, 16, 12); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73045701, -73.68319398, 16, 13); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73122104, -73.6832723, 16, 14); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084831, -73.68251216, 16, 15); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73084199, -73.68153101, 16, 16); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.73101145, -73.68046725, 16, 17); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.7300248, -73.68118501, 16, 18); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.728774, -73.680338, 16, 19); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72948208, -73.67905909, 16, 20); INSERT INTO waypoints (lat, long, tour_id, ordering) VALUES (42.72995146, -73.6766113, 16, 21); INSERT INTO landmarks (name, description, lat, long) VALUES ('Lally', 'This is the Lally Building.', 42.73008028, -73.68189633); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,181,0); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/170.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (181, 406); INSERT INTO landmarks (name, description, lat, long) VALUES ('Carnegie', 'This is the Carnegie Building.', 42.73045701, -73.68319398); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,182,1); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/146.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (182, 407); INSERT INTO landmarks (name, description, lat, long) VALUES ('Pittsburgh', 'This is the Pittsburgh Building.', 42.73122104, -73.6832723); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,183,2); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/148.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (183, 408); INSERT INTO landmarks (name, description, lat, long) VALUES ('Walker', 'This is the Walker Building..', 42.73084831, -73.68251216); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,184,3); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/144.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (184, 409); INSERT INTO landmarks (name, description, lat, long) VALUES ('Sage Lab', 'Russell Sage Laboratory houses a writing center, multimedia computer labs, and video production and sound editing equipment.', 42.73084199, -73.68153101); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,185,4); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/141.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (185, 410); INSERT INTO landmarks (name, description, lat, long) VALUES ('Troy Building', 'This is the Troy Building.', 42.73101145, -73.68046725); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,186,5); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/139.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (186, 411); INSERT INTO landmarks (name, description, lat, long) VALUES ('Greene', 'This is the Greene Building', 42.7300248, -73.68118501); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,187,6); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/173.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (187, 412); INSERT INTO landmarks (name, description, lat, long) VALUES ('JEC', 'This is the J. Erik Jonsson Engineering Center', 42.728774, -73.680338); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,188,7); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/175.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (188, 413); INSERT INTO landmarks (name, description, lat, long) VALUES ('DCC', 'This is the Darrin Communications Center', 42.72948208, -73.67905909); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,189,8); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/177.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (189, 414); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/179.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (189, 415); INSERT INTO landmarks (name, description, lat, long) VALUES ('Student Union', 'Rensselaer Union has been driving campus engagement and student activities at Rensselaer Polytechnic Institute (RPI) since 1890.', 42.72995146, -73.6766113); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,190,9); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/114.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (190, 416); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/600.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (190, 417); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/601.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (190, 418); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/602.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (190, 419); INSERT INTO landmarks (name, description, lat, long) VALUES ('RPI Admissions', 'This is the admissions building.', 42.73064179, -73.67553949); INSERT INTO tour_landmarks (tour_id, landmark_id, ordering) VALUES (16,191,10); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/598.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (191, 420); INSERT INTO photos (url) VALUES ('https://s3.amazonaws.com/rpi-tours-images/599.JPG'); INSERT INTO landmark_photos (landmark_id, photo_id) VALUES (191, 421);
ALTER TABLE certificate_credential ADD COLUMN trusted_ca VARCHAR(7000);
-- ============================================= -- Author: dbo -- Create date: 2020-10-16 -- Description: delete plan -- ============================================= CREATE PROCEDURE spPlans_DeletePlan @Id nvarchar(128) AS BEGIN SET NOCOUNT ON; DELETE FROM dbo.AssignedPlan WHERE AssignedPlan.PlanId = @Id DELETE FROM [dbo].[Plan] WHERE Id = @Id END
create table predictions( id INTEGER AUTO_INCREMENT PRIMARY KEY, result_type ENUM('empate', 'gana_local','gana_visitante') NOT NULL, hit BOOL DEFAULT NULL, -- Null porque no ha sido calculado score_id INTEGER, CONSTRAINT control_score_prediction FOREIGN KEY (score_id) REFERENCES scores (id), created_at DATETIME, updated_at DATETIME )ENGINE=InnoDB;
-- every user should have it's own database, which has the same name as the user CREATE DATABASE rates_dj2_app; CREATE ROLE rates_dj2_app WITH PASSWORD 'postgres'; -- set some default which will prevent lookup queries and therefore speed up all queries -- source https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-django-application-on-ubuntu-14-04 ALTER ROLE rates_dj2_app SET client_encoding TO 'utf8'; ALTER ROLE rates_dj2_app SET default_transaction_isolation TO 'read committed'; ALTER ROLE rates_dj2_app SET timezone TO 'UTC'; ALTER ROLE rates_dj2_app WITH LOGIN; ALTER ROLE rates_dj2_app WITH SUPERUSER; -- grant rights to read, write, ... and so on GRANT ALL PRIVILEGES ON DATABASE rates_dj2_app TO rates_dj2_app;
CREATE INDEX [MemberMetric_MetricEventDate] ON [dbo].MemberMetric (MetricId, EventDate) INCLUDE ([MemberMetricId],[MemberId]);
CREATE TABLE egpt_property_usage_master_aud( id integer NOT NULL, rev integer NOT NULL, usg_name character varying(100), code character varying(50), isactive boolean, revtype numeric ); ALTER TABLE ONLY egpt_property_usage_master_aud ADD CONSTRAINT pk_egpt_property_usage_master_aud PRIMARY KEY (id, rev); INSERT INTO EG_ACTION (ID, NAME, URL, QUERYPARAMS, PARENTMODULE, ORDERNUMBER, DISPLAYNAME, ENABLED, CONTEXTROOT, VERSION, CREATEDBY, CREATEDDATE, LASTMODIFIEDBY, LASTMODIFIEDDATE, APPLICATION) VALUES (nextval('SEQ_EG_ACTION'), 'Modify Usage Master', '/usage/modify', NULL, (SELECT ID FROM EG_MODULE WHERE NAME = 'PTIS-Administration'), 3, 'Modify Usage Master', true, 'ptis', 0, 1, now(), 1, now(), (SELECT id FROM eg_module WHERE name='Property Tax' AND parentmodule IS NULL)); INSERT INTO EG_ACTION (ID, NAME, URL, QUERYPARAMS, PARENTMODULE, ORDERNUMBER, DISPLAYNAME, ENABLED, CONTEXTROOT, VERSION, CREATEDBY, CREATEDDATE, LASTMODIFIEDBY, LASTMODIFIEDDATE, APPLICATION) VALUES (nextval('SEQ_EG_ACTION'), 'propertyusageMasterEditAction', '/usage/modify/', NULL, (SELECT ID FROM EG_MODULE WHERE NAME = 'PTIS-Administration'), 3, 'ModifyUsageEditAction', false, 'ptis', 0, 1, now(), 1, now(), (SELECT id FROM eg_module WHERE name='Property Tax' AND parentmodule IS NULL));
DROP DATABASE IF EXISTS game_keeper; CREATE DATABASE game_keeper;
-- MySQL dump 10.13 Distrib 5.6.38, for Linux (x86_64) -- -- Host: localhost Database: myelgg -- ------------------------------------------------------ -- Server version 5.6.38 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `elgg_access_collection_membership` -- DROP TABLE IF EXISTS `elgg_access_collection_membership`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_access_collection_membership` ( `user_guid` int(11) NOT NULL, `access_collection_id` int(11) NOT NULL, PRIMARY KEY (`user_guid`,`access_collection_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_access_collection_membership` -- LOCK TABLES `elgg_access_collection_membership` WRITE; /*!40000 ALTER TABLE `elgg_access_collection_membership` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_access_collection_membership` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_access_collections` -- DROP TABLE IF EXISTS `elgg_access_collections`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_access_collections` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text NOT NULL, `owner_guid` bigint(20) unsigned NOT NULL, `site_guid` bigint(20) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `owner_guid` (`owner_guid`), KEY `site_guid` (`site_guid`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_access_collections` -- LOCK TABLES `elgg_access_collections` WRITE; /*!40000 ALTER TABLE `elgg_access_collections` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_access_collections` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_annotations` -- DROP TABLE IF EXISTS `elgg_annotations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_annotations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entity_guid` bigint(20) unsigned NOT NULL, `name_id` int(11) NOT NULL, `value_id` int(11) NOT NULL, `value_type` enum('integer','text') NOT NULL, `owner_guid` bigint(20) unsigned NOT NULL, `access_id` int(11) NOT NULL, `time_created` int(11) NOT NULL, `enabled` enum('yes','no') NOT NULL DEFAULT 'yes', PRIMARY KEY (`id`), KEY `entity_guid` (`entity_guid`), KEY `name_id` (`name_id`), KEY `value_id` (`value_id`), KEY `owner_guid` (`owner_guid`), KEY `access_id` (`access_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_annotations` -- LOCK TABLES `elgg_annotations` WRITE; /*!40000 ALTER TABLE `elgg_annotations` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_annotations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_api_users` -- DROP TABLE IF EXISTS `elgg_api_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_api_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `site_guid` bigint(20) unsigned DEFAULT NULL, `api_key` varchar(40) DEFAULT NULL, `secret` varchar(40) NOT NULL, `active` int(1) DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `api_key` (`api_key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_api_users` -- LOCK TABLES `elgg_api_users` WRITE; /*!40000 ALTER TABLE `elgg_api_users` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_api_users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_config` -- DROP TABLE IF EXISTS `elgg_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_config` ( `name` varchar(255) NOT NULL, `value` text NOT NULL, `site_guid` int(11) NOT NULL, PRIMARY KEY (`name`,`site_guid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_config` -- LOCK TABLES `elgg_config` WRITE; /*!40000 ALTER TABLE `elgg_config` DISABLE KEYS */; INSERT INTO `elgg_config` VALUES ('view','s:7:\"default\";',1),('language','s:2:\"en\";',1),('default_access','s:1:\"2\";',1),('allow_registration','b:1;',1),('walled_garden','b:0;',1),('allow_user_default_access','s:0:\"\";',1); /*!40000 ALTER TABLE `elgg_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_datalists` -- DROP TABLE IF EXISTS `elgg_datalists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_datalists` ( `name` varchar(255) NOT NULL, `value` text NOT NULL, PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_datalists` -- LOCK TABLES `elgg_datalists` WRITE; /*!40000 ALTER TABLE `elgg_datalists` DISABLE KEYS */; INSERT INTO `elgg_datalists` VALUES ('filestore_run_once','1510271617'),('plugin_run_once','1510271617'),('elgg_widget_run_once','1510271617'),('installed','1510271899'),('path','/var/www/xsslabelgg.com/elgg/'),('dataroot','/var/run/elgg_data/'),('default_site','1'),('version','2014012000'),('simplecache_enabled','1'),('system_cache_enabled','1'),('processed_upgrades','a:45:{i:0;s:14:\"2008100701.php\";i:1;s:14:\"2008101303.php\";i:2;s:14:\"2009022701.php\";i:3;s:14:\"2009041701.php\";i:4;s:14:\"2009070101.php\";i:5;s:14:\"2009102801.php\";i:6;s:14:\"2010010501.php\";i:7;s:14:\"2010033101.php\";i:8;s:14:\"2010040201.php\";i:9;s:14:\"2010052601.php\";i:10;s:14:\"2010060101.php\";i:11;s:14:\"2010060401.php\";i:12;s:14:\"2010061501.php\";i:13;s:14:\"2010062301.php\";i:14;s:14:\"2010062302.php\";i:15;s:14:\"2010070301.php\";i:16;s:14:\"2010071001.php\";i:17;s:14:\"2010071002.php\";i:18;s:14:\"2010111501.php\";i:19;s:14:\"2010121601.php\";i:20;s:14:\"2010121602.php\";i:21;s:14:\"2010121701.php\";i:22;s:14:\"2010123101.php\";i:23;s:14:\"2011010101.php\";i:24;s:61:\"2011021800-1.8_svn-goodbye_walled_garden-083121a656d06894.php\";i:25;s:61:\"2011022000-1.8_svn-custom_profile_fields-390ac967b0bb5665.php\";i:26;s:60:\"2011030700-1.8_svn-blog_status_metadata-4645225d7b440876.php\";i:27;s:51:\"2011031300-1.8_svn-twitter_api-12b832a5a7a3e1bd.php\";i:28;s:57:\"2011031600-1.8_svn-datalist_grows_up-0b8aec5a55cc1e1c.php\";i:29;s:61:\"2011032000-1.8_svn-widgets_arent_plugins-61836261fa280a5c.php\";i:30;s:59:\"2011032200-1.8_svn-admins_like_widgets-7f19d2783c1680d3.php\";i:31;s:14:\"2011052801.php\";i:32;s:60:\"2011061200-1.8b1-sites_need_a_site_guid-6d9dcbf46c0826cc.php\";i:33;s:62:\"2011092500-1.8.0.1-forum_reply_river_view-5758ce8d86ac56ce.php\";i:34;s:54:\"2011123100-1.8.2-fix_friend_river-b17e7ff8345c2269.php\";i:35;s:53:\"2011123101-1.8.2-fix_blog_status-b14c2a0e7b9e7d55.php\";i:36;s:50:\"2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php\";i:37;s:50:\"2012012100-1.8.3-system_cache-93100e7d55a24a11.php\";i:38;s:59:\"2012041800-1.8.3-dont_filter_passwords-c0ca4a18b38ae2bc.php\";i:39;s:58:\"2012041801-1.8.3-multiple_user_tokens-852225f7fd89f6c5.php\";i:40;s:59:\"2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php\";i:41;s:62:\"2013051700-1.8.15-add_missing_group_index-52a63a3a3ffaced2.php\";i:42;s:53:\"2013052900-1.8.15-ipv6_in_syslog-f5c2cc0196e9e731.php\";i:43;s:50:\"2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php\";i:44;s:50:\"2014012000-1.8.18-remember_me-9a8a433685cf7be9.php\";}'),('admin_registered','1'),('simplecache_lastupdate_default','1510272992'),('simplecache_lastcached_default','1510272992'),('__site_secret__','zYJc_b-KOEi0aOIvpfSb89tEtMdrEYZc'),('simplecache_lastupdate_failsafe','0'),('simplecache_lastcached_failsafe','0'),('simplecache_lastupdate_foaf','0'),('simplecache_lastcached_foaf','0'),('simplecache_lastupdate_ical','0'),('simplecache_lastcached_ical','0'),('simplecache_lastupdate_installation','0'),('simplecache_lastcached_installation','0'),('simplecache_lastupdate_json','0'),('simplecache_lastcached_json','0'),('simplecache_lastupdate_opendd','0'),('simplecache_lastcached_opendd','0'),('simplecache_lastupdate_php','0'),('simplecache_lastcached_php','0'),('simplecache_lastupdate_rss','0'),('simplecache_lastcached_rss','0'),('simplecache_lastupdate_xml','0'),('simplecache_lastcached_xml','0'); /*!40000 ALTER TABLE `elgg_datalists` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_entities` -- DROP TABLE IF EXISTS `elgg_entities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_entities` ( `guid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `type` enum('object','user','group','site') NOT NULL, `subtype` int(11) DEFAULT NULL, `owner_guid` bigint(20) unsigned NOT NULL, `site_guid` bigint(20) unsigned NOT NULL, `container_guid` bigint(20) unsigned NOT NULL, `access_id` int(11) NOT NULL, `time_created` int(11) NOT NULL, `time_updated` int(11) NOT NULL, `last_action` int(11) NOT NULL DEFAULT '0', `enabled` enum('yes','no') NOT NULL DEFAULT 'yes', PRIMARY KEY (`guid`), KEY `type` (`type`), KEY `subtype` (`subtype`), KEY `owner_guid` (`owner_guid`), KEY `site_guid` (`site_guid`), KEY `container_guid` (`container_guid`), KEY `access_id` (`access_id`), KEY `time_created` (`time_created`), KEY `time_updated` (`time_updated`) ) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_entities` -- LOCK TABLES `elgg_entities` WRITE; /*!40000 ALTER TABLE `elgg_entities` DISABLE KEYS */; INSERT INTO `elgg_entities` VALUES (1,'site',0,0,1,0,2,1510271899,1510271899,1510271899,'yes'),(2,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(3,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(4,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(5,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(6,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(7,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(8,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(9,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(10,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(11,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(12,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(13,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(14,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(15,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(16,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(17,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(18,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(19,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(20,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(21,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(22,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(23,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(24,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(25,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(26,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(27,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(28,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(29,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(30,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(31,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(32,'object',2,1,1,1,2,1510271899,1510271899,1510271899,'yes'),(33,'user',0,0,1,0,2,1510271931,1510272591,1510271931,'yes'),(34,'object',3,33,1,33,0,1510271931,1510271931,1510271931,'yes'),(35,'object',3,33,1,33,0,1510271931,1510271931,1510271931,'yes'),(36,'object',3,33,1,33,0,1510271931,1510271931,1510271931,'yes'),(37,'object',3,33,1,33,0,1510271931,1510271931,1510271931,'yes'),(38,'object',3,33,1,33,0,1510271931,1510271931,1510271931,'yes'),(39,'user',0,0,1,0,2,1510272666,1510272666,1510272666,'yes'),(40,'user',0,0,1,0,2,1510272705,1510272705,1510272705,'yes'),(41,'user',0,0,1,0,2,1510272744,1510272744,1510272744,'yes'),(42,'user',0,0,1,0,2,1510272762,1510272762,1510272762,'yes'); /*!40000 ALTER TABLE `elgg_entities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_entity_relationships` -- DROP TABLE IF EXISTS `elgg_entity_relationships`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_entity_relationships` ( `id` int(11) NOT NULL AUTO_INCREMENT, `guid_one` bigint(20) unsigned NOT NULL, `relationship` varchar(50) NOT NULL, `guid_two` bigint(20) unsigned NOT NULL, `time_created` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `guid_one` (`guid_one`,`relationship`,`guid_two`), KEY `relationship` (`relationship`), KEY `guid_two` (`guid_two`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_entity_relationships` -- LOCK TABLES `elgg_entity_relationships` WRITE; /*!40000 ALTER TABLE `elgg_entity_relationships` DISABLE KEYS */; INSERT INTO `elgg_entity_relationships` VALUES (1,2,'active_plugin',1,1510271899),(2,3,'active_plugin',1,1510271899),(3,11,'active_plugin',1,1510271899),(4,12,'active_plugin',1,1510271899),(5,13,'active_plugin',1,1510271899),(7,15,'active_plugin',1,1510271899),(8,16,'active_plugin',1,1510271899),(9,17,'active_plugin',1,1510271899),(10,18,'active_plugin',1,1510271899),(11,19,'active_plugin',1,1510271899),(12,20,'active_plugin',1,1510271899),(13,21,'active_plugin',1,1510271899),(14,22,'active_plugin',1,1510271899),(15,23,'active_plugin',1,1510271899),(16,24,'active_plugin',1,1510271899),(17,25,'active_plugin',1,1510271899),(18,26,'active_plugin',1,1510271899),(19,28,'active_plugin',1,1510271899),(20,29,'active_plugin',1,1510271899),(21,31,'active_plugin',1,1510271899),(22,32,'active_plugin',1,1510271899),(23,33,'member_of_site',1,1510271931),(24,39,'member_of_site',1,1510272666),(25,40,'member_of_site',1,1510272705),(26,41,'member_of_site',1,1510272744),(27,42,'member_of_site',1,1510272762); /*!40000 ALTER TABLE `elgg_entity_relationships` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_entity_subtypes` -- DROP TABLE IF EXISTS `elgg_entity_subtypes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_entity_subtypes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` enum('object','user','group','site') NOT NULL, `subtype` varchar(50) NOT NULL, `class` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `type` (`type`,`subtype`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_entity_subtypes` -- LOCK TABLES `elgg_entity_subtypes` WRITE; /*!40000 ALTER TABLE `elgg_entity_subtypes` DISABLE KEYS */; INSERT INTO `elgg_entity_subtypes` VALUES (1,'object','file','ElggFile'),(2,'object','plugin','ElggPlugin'),(3,'object','widget','ElggWidget'),(4,'object','blog','ElggBlog'),(5,'object','thewire','ElggWire'); /*!40000 ALTER TABLE `elgg_entity_subtypes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_geocode_cache` -- DROP TABLE IF EXISTS `elgg_geocode_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_geocode_cache` ( `id` int(11) NOT NULL AUTO_INCREMENT, `location` varchar(128) DEFAULT NULL, `lat` varchar(20) DEFAULT NULL, `long` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `location` (`location`) ) ENGINE=MEMORY DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_geocode_cache` -- LOCK TABLES `elgg_geocode_cache` WRITE; /*!40000 ALTER TABLE `elgg_geocode_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_geocode_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_groups_entity` -- DROP TABLE IF EXISTS `elgg_groups_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_groups_entity` ( `guid` bigint(20) unsigned NOT NULL, `name` text NOT NULL, `description` text NOT NULL, PRIMARY KEY (`guid`), KEY `name` (`name`(50)), KEY `description` (`description`(50)), FULLTEXT KEY `name_2` (`name`,`description`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_groups_entity` -- LOCK TABLES `elgg_groups_entity` WRITE; /*!40000 ALTER TABLE `elgg_groups_entity` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_groups_entity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_hmac_cache` -- DROP TABLE IF EXISTS `elgg_hmac_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_hmac_cache` ( `hmac` varchar(255) NOT NULL, `ts` int(11) NOT NULL, PRIMARY KEY (`hmac`), KEY `ts` (`ts`) ) ENGINE=MEMORY DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_hmac_cache` -- LOCK TABLES `elgg_hmac_cache` WRITE; /*!40000 ALTER TABLE `elgg_hmac_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_hmac_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_metadata` -- DROP TABLE IF EXISTS `elgg_metadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_metadata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entity_guid` bigint(20) unsigned NOT NULL, `name_id` int(11) NOT NULL, `value_id` int(11) NOT NULL, `value_type` enum('integer','text') NOT NULL, `owner_guid` bigint(20) unsigned NOT NULL, `access_id` int(11) NOT NULL, `time_created` int(11) NOT NULL, `enabled` enum('yes','no') NOT NULL DEFAULT 'yes', PRIMARY KEY (`id`), KEY `entity_guid` (`entity_guid`), KEY `name_id` (`name_id`), KEY `value_id` (`value_id`), KEY `owner_guid` (`owner_guid`), KEY `access_id` (`access_id`) ) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_metadata` -- LOCK TABLES `elgg_metadata` WRITE; /*!40000 ALTER TABLE `elgg_metadata` DISABLE KEYS */; INSERT INTO `elgg_metadata` VALUES (1,1,1,2,'text',0,2,1510271899,'yes'),(2,33,3,4,'text',33,2,1510271931,'yes'),(3,33,5,4,'text',0,2,1510271931,'yes'),(4,33,6,7,'text',0,2,1510271931,'yes'),(5,39,3,4,'text',39,2,1510272666,'yes'),(6,39,8,4,'text',39,2,1510272666,'yes'),(7,39,9,10,'integer',39,2,1510272666,'yes'),(8,40,3,4,'text',40,2,1510272705,'yes'),(9,40,8,4,'text',40,2,1510272705,'yes'),(10,40,9,10,'integer',40,2,1510272705,'yes'),(11,41,3,4,'text',41,2,1510272744,'yes'),(12,41,8,4,'text',41,2,1510272744,'yes'),(13,41,9,10,'integer',41,2,1510272744,'yes'),(14,42,3,4,'text',42,2,1510272762,'yes'),(15,42,8,4,'text',42,2,1510272762,'yes'),(16,42,9,10,'integer',42,2,1510272762,'yes'); /*!40000 ALTER TABLE `elgg_metadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_metastrings` -- DROP TABLE IF EXISTS `elgg_metastrings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_metastrings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `string` text NOT NULL, PRIMARY KEY (`id`), KEY `string` (`string`(50)) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_metastrings` -- LOCK TABLES `elgg_metastrings` WRITE; /*!40000 ALTER TABLE `elgg_metastrings` DISABLE KEYS */; INSERT INTO `elgg_metastrings` VALUES (1,'email'),(2,'me@you.com'),(3,'notification:method:email'),(4,'1'),(5,'validated'),(6,'validated_method'),(7,'admin_user'),(8,'admin_created'),(9,'created_by_guid'),(10,'33'); /*!40000 ALTER TABLE `elgg_metastrings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_objects_entity` -- DROP TABLE IF EXISTS `elgg_objects_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_objects_entity` ( `guid` bigint(20) unsigned NOT NULL, `title` text NOT NULL, `description` text NOT NULL, PRIMARY KEY (`guid`), FULLTEXT KEY `title` (`title`,`description`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_objects_entity` -- LOCK TABLES `elgg_objects_entity` WRITE; /*!40000 ALTER TABLE `elgg_objects_entity` DISABLE KEYS */; INSERT INTO `elgg_objects_entity` VALUES (2,'blog',''),(3,'bookmarks',''),(4,'categories',''),(5,'custom_index',''),(6,'dashboard',''),(7,'developers',''),(8,'diagnostics',''),(9,'embed',''),(10,'externalpages',''),(11,'file',''),(12,'garbagecollector',''),(13,'groups',''),(14,'htmlawed',''),(15,'invitefriends',''),(16,'likes',''),(17,'logbrowser',''),(18,'logrotate',''),(19,'members',''),(20,'messageboard',''),(21,'messages',''),(22,'notifications',''),(23,'pages',''),(24,'profile',''),(25,'reportedcontent',''),(26,'search',''),(27,'tagcloud',''),(28,'thewire',''),(29,'tinymce',''),(30,'twitter_api',''),(31,'uservalidationbyemail',''),(32,'zaudio',''),(34,'',''),(35,'',''),(36,'',''),(37,'',''),(38,'',''); /*!40000 ALTER TABLE `elgg_objects_entity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_private_settings` -- DROP TABLE IF EXISTS `elgg_private_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_private_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, `entity_guid` int(11) NOT NULL, `name` varchar(128) NOT NULL, `value` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `entity_guid` (`entity_guid`,`name`), KEY `name` (`name`), KEY `value` (`value`(50)) ) ENGINE=MyISAM AUTO_INCREMENT=55 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_private_settings` -- LOCK TABLES `elgg_private_settings` WRITE; /*!40000 ALTER TABLE `elgg_private_settings` DISABLE KEYS */; INSERT INTO `elgg_private_settings` VALUES (1,2,'elgg:internal:priority','1'),(2,3,'elgg:internal:priority','2'),(3,4,'elgg:internal:priority','3'),(4,5,'elgg:internal:priority','4'),(5,6,'elgg:internal:priority','5'),(6,7,'elgg:internal:priority','6'),(7,8,'elgg:internal:priority','7'),(8,9,'elgg:internal:priority','8'),(9,10,'elgg:internal:priority','9'),(10,11,'elgg:internal:priority','10'),(11,12,'elgg:internal:priority','11'),(12,13,'elgg:internal:priority','12'),(13,14,'elgg:internal:priority','13'),(14,15,'elgg:internal:priority','14'),(15,16,'elgg:internal:priority','15'),(16,17,'elgg:internal:priority','16'),(17,18,'elgg:internal:priority','17'),(18,19,'elgg:internal:priority','18'),(19,20,'elgg:internal:priority','19'),(20,21,'elgg:internal:priority','20'),(21,22,'elgg:internal:priority','21'),(22,23,'elgg:internal:priority','22'),(23,24,'elgg:internal:priority','23'),(24,25,'elgg:internal:priority','24'),(25,26,'elgg:internal:priority','25'),(26,27,'elgg:internal:priority','26'),(27,28,'elgg:internal:priority','27'),(28,29,'elgg:internal:priority','28'),(29,30,'elgg:internal:priority','29'),(30,31,'elgg:internal:priority','30'),(31,32,'elgg:internal:priority','31'),(32,34,'handler','control_panel'),(33,34,'context','admin'),(34,34,'column','1'),(35,34,'order','0'),(36,35,'handler','admin_welcome'),(37,35,'context','admin'),(38,35,'order','10'),(39,35,'column','1'),(40,36,'handler','online_users'),(41,36,'context','admin'),(42,36,'column','2'),(43,36,'order','0'),(44,37,'handler','new_users'),(45,37,'context','admin'),(46,37,'order','10'),(47,37,'column','2'),(48,38,'handler','content_stats'),(49,38,'context','admin'),(50,38,'order','20'),(51,38,'column','2'),(52,36,'num_display','8'),(53,37,'num_display','5'),(54,38,'num_display','8'); /*!40000 ALTER TABLE `elgg_private_settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_river` -- DROP TABLE IF EXISTS `elgg_river`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_river` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(8) NOT NULL, `subtype` varchar(32) NOT NULL, `action_type` varchar(32) NOT NULL, `access_id` int(11) NOT NULL, `view` text NOT NULL, `subject_guid` int(11) NOT NULL, `object_guid` int(11) NOT NULL, `annotation_id` int(11) NOT NULL, `posted` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `type` (`type`), KEY `action_type` (`action_type`), KEY `access_id` (`access_id`), KEY `subject_guid` (`subject_guid`), KEY `object_guid` (`object_guid`), KEY `annotation_id` (`annotation_id`), KEY `posted` (`posted`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_river` -- LOCK TABLES `elgg_river` WRITE; /*!40000 ALTER TABLE `elgg_river` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_river` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_sites_entity` -- DROP TABLE IF EXISTS `elgg_sites_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_sites_entity` ( `guid` bigint(20) unsigned NOT NULL, `name` text NOT NULL, `description` text NOT NULL, `url` varchar(255) NOT NULL, PRIMARY KEY (`guid`), UNIQUE KEY `url` (`url`), FULLTEXT KEY `name` (`name`,`description`,`url`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_sites_entity` -- LOCK TABLES `elgg_sites_entity` WRITE; /*!40000 ALTER TABLE `elgg_sites_entity` DISABLE KEYS */; INSERT INTO `elgg_sites_entity` VALUES (1,'One Bad Place','','http://xsslabelgg.com/'); /*!40000 ALTER TABLE `elgg_sites_entity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_system_log` -- DROP TABLE IF EXISTS `elgg_system_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_system_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `object_id` int(11) NOT NULL, `object_class` varchar(50) NOT NULL, `object_type` varchar(50) NOT NULL, `object_subtype` varchar(50) NOT NULL, `event` varchar(50) NOT NULL, `performed_by_guid` int(11) NOT NULL, `owner_guid` int(11) NOT NULL, `access_id` int(11) NOT NULL, `enabled` enum('yes','no') NOT NULL DEFAULT 'yes', `time_created` int(11) NOT NULL, `ip_address` varchar(46) NOT NULL, PRIMARY KEY (`id`), KEY `object_id` (`object_id`), KEY `object_class` (`object_class`), KEY `object_type` (`object_type`), KEY `object_subtype` (`object_subtype`), KEY `event` (`event`), KEY `performed_by_guid` (`performed_by_guid`), KEY `access_id` (`access_id`), KEY `time_created` (`time_created`), KEY `river_key` (`object_type`,`object_subtype`,`event`) ) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_system_log` -- LOCK TABLES `elgg_system_log` WRITE; /*!40000 ALTER TABLE `elgg_system_log` DISABLE KEYS */; INSERT INTO `elgg_system_log` VALUES (1,2,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(2,3,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(3,4,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(4,5,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(5,6,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(6,7,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(7,8,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(8,9,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(9,10,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(10,11,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(11,12,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(12,13,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(13,14,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(14,15,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(15,16,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(16,17,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(17,18,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(18,19,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(19,20,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(20,21,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(21,22,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(22,23,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(23,24,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(24,25,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(25,26,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(26,27,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(27,28,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(28,29,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(29,30,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(30,31,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(31,32,'ElggPlugin','object','plugin','create',0,1,2,'yes',1510271899,'172.25.0.3'),(32,1,'ElggRelationship','relationship','active_plugin','create',0,0,2,'yes',1510271899,'172.25.0.3'),(33,23,'ElggRelationship','relationship','member_of_site','create',0,0,2,'yes',1510271931,'172.25.0.3'),(34,33,'ElggUser','user','','create',0,0,2,'yes',1510271931,'172.25.0.3'),(35,2,'ElggMetadata','metadata','notification:method:email','create',0,33,2,'yes',1510271931,'172.25.0.3'),(36,34,'ElggWidget','object','widget','create',0,33,0,'yes',1510271931,'172.25.0.3'),(37,35,'ElggWidget','object','widget','create',0,33,0,'yes',1510271931,'172.25.0.3'),(38,36,'ElggWidget','object','widget','create',0,33,0,'yes',1510271931,'172.25.0.3'),(39,37,'ElggWidget','object','widget','create',0,33,0,'yes',1510271931,'172.25.0.3'),(40,38,'ElggWidget','object','widget','create',0,33,0,'yes',1510271931,'172.25.0.3'),(41,33,'ElggUser','user','','make_admin',0,0,2,'yes',1510271931,'172.25.0.3'),(42,3,'ElggMetadata','metadata','validated','create',0,0,2,'yes',1510271931,'172.25.0.3'),(43,4,'ElggMetadata','metadata','validated_method','create',0,0,2,'yes',1510271931,'172.25.0.3'),(44,33,'ElggUser','user','','update',33,0,2,'yes',1510271931,'172.25.0.3'),(45,33,'ElggUser','user','','login',33,0,2,'yes',1510271931,'172.25.0.3'),(46,33,'ElggUser','user','','update',33,0,2,'yes',1510272591,'172.25.0.3'),(47,24,'ElggRelationship','relationship','member_of_site','create',33,0,2,'yes',1510272666,'172.25.0.3'),(48,39,'ElggUser','user','','create',33,0,2,'yes',1510272666,'172.25.0.3'),(49,5,'ElggMetadata','metadata','notification:method:email','create',33,39,2,'yes',1510272666,'172.25.0.3'),(50,39,'ElggUser','user','','update',33,0,2,'yes',1510272666,'172.25.0.3'),(51,6,'ElggMetadata','metadata','admin_created','create',33,39,2,'yes',1510272666,'172.25.0.3'),(52,7,'ElggMetadata','metadata','created_by_guid','create',33,39,2,'yes',1510272666,'172.25.0.3'),(53,25,'ElggRelationship','relationship','member_of_site','create',33,0,2,'yes',1510272705,'172.25.0.3'),(54,40,'ElggUser','user','','create',33,0,2,'yes',1510272705,'172.25.0.3'),(55,8,'ElggMetadata','metadata','notification:method:email','create',33,40,2,'yes',1510272705,'172.25.0.3'),(56,40,'ElggUser','user','','update',33,0,2,'yes',1510272705,'172.25.0.3'),(57,9,'ElggMetadata','metadata','admin_created','create',33,40,2,'yes',1510272705,'172.25.0.3'),(58,10,'ElggMetadata','metadata','created_by_guid','create',33,40,2,'yes',1510272705,'172.25.0.3'),(59,26,'ElggRelationship','relationship','member_of_site','create',33,0,2,'yes',1510272744,'172.25.0.3'),(60,41,'ElggUser','user','','create',33,0,2,'yes',1510272744,'172.25.0.3'),(61,11,'ElggMetadata','metadata','notification:method:email','create',33,41,2,'yes',1510272744,'172.25.0.3'),(62,41,'ElggUser','user','','update',33,0,2,'yes',1510272744,'172.25.0.3'),(63,12,'ElggMetadata','metadata','admin_created','create',33,41,2,'yes',1510272744,'172.25.0.3'),(64,13,'ElggMetadata','metadata','created_by_guid','create',33,41,2,'yes',1510272744,'172.25.0.3'),(65,27,'ElggRelationship','relationship','member_of_site','create',33,0,2,'yes',1510272762,'172.25.0.3'),(66,42,'ElggUser','user','','create',33,0,2,'yes',1510272762,'172.25.0.3'),(67,14,'ElggMetadata','metadata','notification:method:email','create',33,42,2,'yes',1510272762,'172.25.0.3'),(68,42,'ElggUser','user','','update',33,0,2,'yes',1510272762,'172.25.0.3'),(69,15,'ElggMetadata','metadata','admin_created','create',33,42,2,'yes',1510272762,'172.25.0.3'),(70,16,'ElggMetadata','metadata','created_by_guid','create',33,42,2,'yes',1510272762,'172.25.0.3'),(71,6,'ElggRelationship','relationship','active_plugin','delete',33,0,2,'yes',1510272992,'172.25.0.3'); /*!40000 ALTER TABLE `elgg_system_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_users_apisessions` -- DROP TABLE IF EXISTS `elgg_users_apisessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_users_apisessions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_guid` bigint(20) unsigned NOT NULL, `site_guid` bigint(20) unsigned NOT NULL, `token` varchar(40) DEFAULT NULL, `expires` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_guid` (`user_guid`,`site_guid`), KEY `token` (`token`) ) ENGINE=MEMORY DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_users_apisessions` -- LOCK TABLES `elgg_users_apisessions` WRITE; /*!40000 ALTER TABLE `elgg_users_apisessions` DISABLE KEYS */; /*!40000 ALTER TABLE `elgg_users_apisessions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_users_entity` -- DROP TABLE IF EXISTS `elgg_users_entity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_users_entity` ( `guid` bigint(20) unsigned NOT NULL, `name` text NOT NULL, `username` varchar(128) NOT NULL DEFAULT '', `password` varchar(32) NOT NULL DEFAULT '', `salt` varchar(8) NOT NULL DEFAULT '', `email` text NOT NULL, `language` varchar(6) NOT NULL DEFAULT '', `code` varchar(32) NOT NULL DEFAULT '', `banned` enum('yes','no') NOT NULL DEFAULT 'no', `admin` enum('yes','no') NOT NULL DEFAULT 'no', `last_action` int(11) NOT NULL DEFAULT '0', `prev_last_action` int(11) NOT NULL DEFAULT '0', `last_login` int(11) NOT NULL DEFAULT '0', `prev_last_login` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`guid`), UNIQUE KEY `username` (`username`), KEY `password` (`password`), KEY `email` (`email`(50)), KEY `code` (`code`), KEY `last_action` (`last_action`), KEY `last_login` (`last_login`), KEY `admin` (`admin`), FULLTEXT KEY `name` (`name`), FULLTEXT KEY `name_2` (`name`,`username`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_users_entity` -- LOCK TABLES `elgg_users_entity` WRITE; /*!40000 ALTER TABLE `elgg_users_entity` DISABLE KEYS */; INSERT INTO `elgg_users_entity` VALUES (33,'admin','admin','db4c8540eccd3f55fe0bf4dad0233052','syg7q84p','admin@here.com','en','','no','yes',1510273098,1510272993,1510271931,0),(39,'Alice','alice','028570fdf46d1e003090bdaa992b427c','Iedyj_S4','here@there.com','en','','no','no',0,0,0,0),(40,'Boby','boby','072e47d0d896eca1a6d23bbf41c80f93','jbHSKzlH','boby@seed.here','en','','no','no',0,0,0,0),(41,'Charlie','charlie','fd63939acf7b768044f1b4cb2bffab0e','I7SUvzWB','here@there.com','en','','no','no',0,0,0,0),(42,'Samy','samy','04500a568d3009d15aae00debb337efd','swwfxCpQ','sam@sam.com','en','','no','no',0,0,0,0); /*!40000 ALTER TABLE `elgg_users_entity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `elgg_users_sessions` -- DROP TABLE IF EXISTS `elgg_users_sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `elgg_users_sessions` ( `session` varchar(255) NOT NULL, `ts` int(11) unsigned NOT NULL DEFAULT '0', `data` mediumblob, PRIMARY KEY (`session`), KEY `ts` (`ts`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `elgg_users_sessions` -- LOCK TABLES `elgg_users_sessions` WRITE; /*!40000 ALTER TABLE `elgg_users_sessions` DISABLE KEYS */; INSERT INTO `elgg_users_sessions` VALUES ('voc1glcpnncnofpfkidn494oq4',1510273098,'__elgg_session|s:32:\"e339c72c0c1e16779f5f57a909be83de\";user|O:8:\"ElggUser\":8:{s:15:\"\0*\0url_override\";N;s:16:\"\0*\0icon_override\";N;s:16:\"\0*\0temp_metadata\";a:0:{}s:19:\"\0*\0temp_annotations\";a:0:{}s:24:\"\0*\0temp_private_settings\";a:0:{}s:11:\"\0*\0volatile\";a:0:{}s:13:\"\0*\0attributes\";a:25:{s:4:\"guid\";i:33;s:4:\"type\";s:4:\"user\";s:7:\"subtype\";s:1:\"0\";s:10:\"owner_guid\";s:1:\"0\";s:9:\"site_guid\";s:1:\"1\";s:14:\"container_guid\";s:1:\"0\";s:9:\"access_id\";s:1:\"2\";s:12:\"time_created\";s:10:\"1510271931\";s:12:\"time_updated\";s:10:\"1510272591\";s:11:\"last_action\";s:10:\"1510272993\";s:7:\"enabled\";s:3:\"yes\";s:12:\"tables_split\";i:2;s:13:\"tables_loaded\";i:2;s:4:\"name\";s:5:\"admin\";s:8:\"username\";s:5:\"admin\";s:8:\"password\";s:32:\"db4c8540eccd3f55fe0bf4dad0233052\";s:4:\"salt\";s:8:\"syg7q84p\";s:5:\"email\";s:14:\"admin@here.com\";s:8:\"language\";s:2:\"en\";s:4:\"code\";s:0:\"\";s:6:\"banned\";s:2:\"no\";s:5:\"admin\";s:3:\"yes\";s:16:\"prev_last_action\";s:10:\"1510272992\";s:10:\"last_login\";s:10:\"1510271931\";s:15:\"prev_last_login\";s:1:\"0\";}s:8:\"\0*\0valid\";b:0;}guid|i:33;id|i:33;username|s:5:\"admin\";name|s:5:\"admin\";msg|a:0:{}sticky_forms|a:0:{}'); /*!40000 ALTER TABLE `elgg_users_sessions` 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 2017-11-10 0:18:43
CREATE TABLE [dbo].[User]( [UserID] [uniqueidentifier] NOT NULL, [EmailAddress] [nvarchar](300) NOT NULL, [PasswordHash] [nvarchar](150) NOT NULL, [PasswordSalt] [nvarchar](150) NOT NULL, [Locked] [bit] NOT NULL, [LockedDate] [datetime] NULL, [LastLoginDate] [datetime] NULL, [CreateDate] [datetime] NOT NULL, [AccountTypeID] [uniqueidentifier] NULL, [IPAddress] [nvarchar](50) NOT NULL, [SecurityQuestionID] [uniqueidentifier] NULL, [AnswerHash] [nvarchar](150) NULL, [AnswerSalt] [nvarchar](150) NULL, [Online] [bit] NOT NULL, [Disabled] [bit] NOT NULL, [FirstName] [nvarchar](100) NULL, [LastName] [nvarchar](100) NULL, [CompanyName] [nvarchar](100) NULL, [LCID] [int] NULL, [Address] [nvarchar](300) NULL, [City] [nvarchar](100) NULL, [CountryID] [uniqueidentifier] NULL, [Phone] [nvarchar](100) NULL, [Mobile] [nvarchar](100) NULL, [Gender] [bit] NULL, [Reset] [bit] NULL, [CultureID] [int] NULL, [HasPublicProfile] bit default 0, [ProfileDescription] Nvarchar(300), [PostalCode] Nvarchar(150) PRIMARY KEY CLUSTERED ( [UserID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [dbo].[User] WITH NOCHECK ADD FOREIGN KEY([AccountTypeID]) REFERENCES [dbo].[AccountType] ([AccountTypeID]) GO ALTER TABLE [dbo].[User] WITH NOCHECK ADD FOREIGN KEY([CountryID]) REFERENCES [dbo].[Country] ([CountryID]) GO ALTER TABLE [dbo].[User] WITH NOCHECK ADD FOREIGN KEY([LCID]) REFERENCES [dbo].[PreferedLanguage] ([LCID]) GO ALTER TABLE [dbo].[User] WITH NOCHECK ADD FOREIGN KEY([SecurityQuestionID]) REFERENCES [dbo].[SecurityQuestion] ([SecurityQuestionID]) GO ALTER TABLE [dbo].[User] WITH CHECK ADD CONSTRAINT [FK_User_Culture] FOREIGN KEY([CultureID]) REFERENCES [dbo].[Culture] ([CultureID]) GO ALTER TABLE [dbo].[User] CHECK CONSTRAINT [FK_User_Culture] GO
--TEST: pass zero date/time values to dayofyear function --TEST: pass zero datetime value select dayofyear(datetime'0000-00-00 00:00:00'); select dayofyear(datetime'00/00/0000 00:00:00'); select dayofyear(datetime'00:00:00 00/00/0000'); select dayofyear(datetime'00:00:00 0000-00-00'); --TEST: pass string value select dayofyear('0000-00-00 00:00:00'); select dayofyear('00/00/0000 00:00:00'); select dayofyear('00:00:00 00/00/0000'); select dayofyear('00:00:00 0000-00-00'); --TEST: pass irregular formats select dayofyear(datetime'0:0:0.0 0/0/0'); select dayofyear('0:00:0.0 000-0-00'); --TEST: pass zero timestamp value select dayofyear(timestamp'0000-00-00 00:00:00'); select dayofyear(timestamp'00/00/0000 00:00:00'); select dayofyear(timestamp'00:0:00 00/00/0000'); select dayofyear(timestamp'00:00:00 0000-00-00'); --TEST: pass string value select dayofyear('0000-00-00 00:00:00'); select dayofyear('00/00/0000 00:00:00'); select dayofyear('00:00:00 00/00/0000'); select dayofyear('00:00:00 0000-00-00'); --TEST: pass irregular formats select dayofyear(timestamp'0:0:0 000-0-00'); select dayofyear('0:0:0 12/0/00'); --TEST: pass zero date value select dayofyear(date'0000-00-00'); select dayofyear(date'00/00/0000'); --TEST: pass string value select dayofyear('0000-00-00'); select dayofyear('00/00/0000'); --TEST: pass irregular formats select dayofyear(date'0-0-0'); select dayofyear('00/0/000');
INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (1, 'siteName', '站点名称'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (5, 'storageStrategy', '当前启用存储引擎'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (6, 'username', '管理员账号'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (7, 'password', '管理员密码'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (8, 'domain', '站点域名'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (11, 'customCss', '自定义 CSS'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (12, 'customJs', '自定义 JS (可用于统计代码)'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (13, 'tableSize', '表格大小'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (14, 'showOperator', '是否显示操作按钮'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (15, 'showDocument', '是否显示文档'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (16, 'announcement', '网站公告'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (17, 'showAnnouncement', '是否显示网站公告'); INSERT INTO SYSTEM_CONFIG (`ID`, `k`, `REMARK`) VALUES (18, 'layout', '页面布局');
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Nov 2020 pada 01.06 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `ammd_margasari` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `name` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, `image` varchar(128) NOT NULL, `password` varchar(256) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(1) NOT NULL, `date_created` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`id`, `name`, `email`, `image`, `password`, `role_id`, `is_active`, `date_created`) VALUES (12, 'Azmy Matien', 'azmymatien10@gmail.com', '20161030_140530.jpg', '$2y$10$rQ6mrOO8o4EIoKGssBrmhOSJyDaTe3OATfC1ryg0kRJoHH2qDs5/i', 1, 1, 1606141176), (14, 'Naila Mahdiya', 'matiencostum@gmail.com', 'default.jpg', '$2y$10$QFRAQ7QMq2oSjZeaJ/oIHeT46I8Zr97E/bhfIW6GfSqXnBXaXbvCm', 2, 1, 1606144509); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_access_menu` -- CREATE TABLE `user_access_menu` ( `id` int(11) NOT NULL, `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user_access_menu` -- INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES (1, 1, 1), (3, 2, 2), (7, 1, 3), (8, 1, 2); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_menu` -- CREATE TABLE `user_menu` ( `id` int(11) NOT NULL, `menu` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user_menu` -- INSERT INTO `user_menu` (`id`, `menu`) VALUES (1, 'Admin'), (2, 'User'), (3, 'Menu'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_role` -- CREATE TABLE `user_role` ( `id` int(11) NOT NULL, `role` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user_role` -- INSERT INTO `user_role` (`id`, `role`) VALUES (1, 'Administrator'), (2, 'Member'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_sub_menu` -- CREATE TABLE `user_sub_menu` ( `id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `url` varchar(128) NOT NULL, `icon` varchar(128) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `user_sub_menu` -- INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES (1, 1, 'Dashboard', 'admin', 'fas fa-fw fa-tachometer-alt', 1), (2, 2, 'My Profile', 'user', 'fas fa-fw fa-user', 1), (3, 2, 'Edit Profile', 'user/edit', 'fas fa-fw fa-user-edit', 1), (4, 3, 'Menu Management', 'menu', 'fas fa-fw fa-folder', 1), (5, 3, 'Submenu Management', 'menu/submenu', 'fas fa-fw fa-folder-open', 1), (7, 1, 'Role', 'admin/role', 'fas fa-fw fa-user-tie', 1), (8, 2, 'Change Password', 'user/changepassword', 'fas fa-fw fa-key', 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_token` -- CREATE TABLE `user_token` ( `id` int(11) NOT NULL, `email` varchar(128) NOT NULL, `token` varchar(128) NOT NULL, `date_created` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_access_menu` -- ALTER TABLE `user_access_menu` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_menu` -- ALTER TABLE `user_menu` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_role` -- ALTER TABLE `user_role` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_sub_menu` -- ALTER TABLE `user_sub_menu` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_token` -- ALTER TABLE `user_token` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT untuk tabel `user_access_menu` -- ALTER TABLE `user_access_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `user_menu` -- ALTER TABLE `user_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `user_role` -- ALTER TABLE `user_role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `user_sub_menu` -- ALTER TABLE `user_sub_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `user_token` -- ALTER TABLE `user_token` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/* Drop Tables */ DROP TABLE IF EXISTS customizations; DROP TABLE IF EXISTS application_media; DROP TABLE IF EXISTS Applications; DROP TABLE IF EXISTS status; DROP TABLE IF EXISTS users; /* Create Tables */ CREATE TABLE Applications ( application_id serial NOT NULL UNIQUE, service_provider_id int NOT NULL UNIQUE, application_name varchar(50) NOT NULL, application_description text NOT NULL, application_tosca_template xml NOT NULL, application_version varchar(10) NOT NULL, status_id int NOT NULL UNIQUE, PRIMARY KEY (application_id) ) WITHOUT OIDS; ALTER SEQUENCE Applications_application_id_SEQ INCREMENT 1 MINVALUE 1; -- Table that will hold all the media content that can be used by the Catalogue frontend to present the application. -- On developer choice the media could also be placed in the file system (so that is better retrieved) and here will be saved just the path. CREATE TABLE application_media ( media_id serial NOT NULL UNIQUE, media_content bytea, application_id int NOT NULL UNIQUE, PRIMARY KEY (media_id) ) WITHOUT OIDS; ALTER SEQUENCE application_media_media_id_SEQ INCREMENT 1 MINVALUE 1; CREATE TABLE customizations ( customization_id serial NOT NULL UNIQUE, application_id int NOT NULL UNIQUE, customer_id int NOT NULL UNIQUE, customization_tosca_file xml NOT NULL, customization_creation date, customization_activation date, customization_decommission date, status_id int NOT NULL UNIQUE, PRIMARY KEY (customization_id) ) WITHOUT OIDS; ALTER SEQUENCE customizations_customization_id_SEQ INCREMENT 1 MINVALUE 1; CREATE TABLE status ( status_id serial NOT NULL UNIQUE, status varchar(20) NOT NULL UNIQUE, PRIMARY KEY (status_id) ) WITHOUT OIDS; ALTER SEQUENCE status_status_id_SEQ INCREMENT 1 MINVALUE 1; CREATE TABLE users ( user_id int NOT NULL UNIQUE, user_name varchar(15) NOT NULL UNIQUE, user_mail varchar(100) NOT NULL UNIQUE, user_password varchar(50) NOT NULL, registration_date date NOT NULL, PRIMARY KEY (user_id) ) WITHOUT OIDS; /* Create Foreign Keys */ ALTER TABLE customizations ADD FOREIGN KEY (application_id) REFERENCES Applications (application_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; ALTER TABLE application_media ADD FOREIGN KEY (application_id) REFERENCES Applications (application_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; ALTER TABLE customizations ADD FOREIGN KEY (status_id) REFERENCES status (status_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; ALTER TABLE Applications ADD FOREIGN KEY (status_id) REFERENCES status (status_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; ALTER TABLE Applications ADD FOREIGN KEY (service_provider_id) REFERENCES users (user_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; ALTER TABLE customizations ADD FOREIGN KEY (customer_id) REFERENCES users (user_id) ON UPDATE RESTRICT ON DELETE RESTRICT ; /* Comments */ COMMENT ON TABLE application_media IS 'Table that will hold all the media content that can be used by the Catalogue frontend to present the application. On developer choice the media could also be placed in the file system (so that is better retrieved) and here will be saved just the path.';
CREATE DATABASE cooldrinkdb; USE cooldrinkdb; CREATE TABLE cooldrink ( id INT AUTO_INCREMENT, name VARCHAR(255), description VARCHAR(255), price DOUBLE, PRIMARY KEY (id) ); INSERT INTO cooldrink (name, description, price) VALUES ('Lime Soda', 'Sparkling Soda with Lime', 10.00); INSERT INTO cooldrink (name, description, price) VALUES ('Mango Juice', 'Fresh Mango Juice with milk', 15.00); INSERT INTO cooldrink (name, description, price) VALUES ('Mojito', 'White rum, sugar, lime juice, soda water, and mint. ', 20.00);
-- this takes ages and could probably be more efficent, but just needs to be run 1x INSERT INTO whse_basemapping.fwa_assessment_watersheds_lut (watershed_feature_id, assmnt_watershed_id, watershed_group_code, watershed_group_id) SELECT a.watershed_feature_id, b.watershed_feature_id as assmnt_watershed_id, a.watershed_group_code, a.watershed_group_id FROM whse_basemapping.fwa_watersheds_poly a INNER JOIN whse_basemapping.fwa_assessment_watersheds_poly b ON a.watershed_group_code = b.watershed_group_code AND ST_CoveredBy(a.geom, ST_Buffer(b.geom, 0.1)) WHERE a.watershed_group_code = :wsg
/********************************************************************************************************************* ** ** Procedure Name : h3giGetSingleTopUpLocation ** Author : ** Date Created : ** ********************************************************************************************************************** ** ** Description : This stored procedure returns all information about a specified TopUp Location ** ********************************************************************************************************************** ** ** Change Control : 1.0.0 - Initial version ** **********************************************************************************************************************/ create procedure dbo.h3giGetSingleTopUpLocation @StoreID varchar(50) as select * from h3giTopUpLocation with(nolock) where storeID = @StoreID GRANT EXECUTE ON h3giGetSingleTopUpLocation TO b4nuser GO GRANT EXECUTE ON h3giGetSingleTopUpLocation TO ofsuser GO GRANT EXECUTE ON h3giGetSingleTopUpLocation TO reportuser GO
SELECT [Name], CASE WHEN DATEPART(HOUR, [Start]) >= 0 AND DATEPART(HOUR, [Start]) < 12 THEN 'Morning' WHEN DATEPART(HOUR, [Start]) >= 12 AND DATEPART(HOUR, [Start]) < 18 THEN 'Afternoon' WHEN DATEPART(HOUR, [Start]) >= 18 AND DATEPART(HOUR, [Start]) < 24 THEN 'Evening' END AS [Part of the Day], CASE WHEN Duration <= 3 THEN 'Extra Short' WHEN Duration >= 4 AND Duration <= 6 THEN 'Short' WHEN Duration > 6 THEN 'Long' ELSE 'Extra Long' END AS [Duration] FROM Games ORDER BY [Name],Duration --SELECT * FROM Games
DROP TABLE IF EXISTS 'cart'; DROP TABLE IF EXISTS shoe; DROP TABLE IF EXISTS customer; CREATE TABLE customer ( -- This creates the attribute for the primary key -- auto_increment tells mySQL to number them {1,2,3, ...} -- not nullmeans the attribute is required! profileId INT UNSIGNED AUTO_INCREMENT NOT NULL, profileEmail VARCHAR(128) NOT NULL, profileGender CHAR(1), -- to make something optional, exclude the not null profilePhone VARCHAR(32), profileAddress VARCHAR(120) NOT NULL, -- to make sure duplicate data cannot exist, create a unique index UNIQUE(profileId), UNIQUE(profileEmail), -- this officiates the primary key for the entity PRIMARY KEY(profileId) ); CREATE TABLE shoe ( -- this is for yet another primary key... shoeId INT UNSIGNED AUTO_INCREMENT NOT NULL, -- this is for another foreign key; auto_increment is ommited by design shoeProfileId INT UNSIGNED NOT NULL, shoeColor VARCHAR(32), shoeSize VARCHAR(3), shoePrice DECIMAL(6,2) NOT NULL, -- this creates an index before making a foreign key INDEX(shoeProfileId), -- this creates the actual foreign key relation FOREIGN KEY(shoeProfileId) REFERENCES customer(profileId), -- and finally create the primary key PRIMARY KEY(shoeId) ); -- create the like entity (a weak entity from an m-to-n for profile - -> shoe) CREATE TABLE 'cart'( -- these are not auto_increment because they're still foreign keys cartProfileId INT UNSIGNED NOT NULL, cartShoeId INT UNSIGNED NOT NULL, totalPrice DECIMAL (6,2) NOT NULL, orderId INT UNSIGNED AUTO_INCREMENT NOT NULL, -- index the foreign keys INDEX(cartProfileId), INDEX(cartShoeId), -- create the foreign key relations FOREIGN KEY(cartProfileId) REFERENCES customer(profileId), FOREIGN KEY(cartShoeId) REFERENCES shoe(shoeId), -- finally create a composite foreign key with the two forign keys PRIMARY KEY(cartProfileId, cartShoeId) );
/****** Object: View [dbo].[V_Log_Errors] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW dbo.V_Log_Errors AS SELECT Entry_ID, posted_by, posting_time, type, message, Entered_By FROM T_Log_Entries WHERE (type = 'error') GO GRANT VIEW DEFINITION ON [dbo].[V_Log_Errors] TO [DDL_Viewer] AS [dbo] GO
-- phpMyAdmin SQL Dump -- version 4.1.11 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Oct 30, 2014 at 03:37 PM -- Server version: 5.5.28-log -- PHP Version: 5.5.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `csv_db` -- -- -------------------------------------------------------- -- -- Table structure for table `year_report` -- CREATE TABLE IF NOT EXISTS `year_report` ( `JobID` int(3) DEFAULT NULL, `LocactionName` varchar(5) DEFAULT NULL, `LocationID` int(4) DEFAULT NULL, `Area` varchar(7) DEFAULT NULL, `AreaID` int(4) DEFAULT NULL, `Month` int(2) DEFAULT NULL, `PointsScored` int(3) DEFAULT NULL, `PointsOutOf` int(3) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `year_report` -- INSERT INTO `year_report` (`JobID`, `LocactionName`, `LocationID`, `Area`, `AreaID`, `Month`, `PointsScored`, `PointsOutOf`) VALUES (1, 'Loc A', 123, 'Area A', 1, 1, 15, 15), (2, 'Loc B', 124, 'Area A', 1, 1, 5, 15), (3, 'Loc C', 125, 'Area A', 1, 2, 18, 20), (4, 'Loc D', 126, 'Area B', 7, 10, 23, 30), (5, 'Loc E', 127, 'Area FA', 1842, 2, 14, 20), (6, 'Loc F', 130, 'Area C', 78, 1, 75, 75), (7, 'Loc G', 1123, 'Area FA', 1842, 10, 7, 50), (8, 'Loc H', 321, 'Area C', 78, 1, 44, 60), (9, 'Loc I', 99, 'Area X', 111, 1, 45, 75), (10, 'Loc J', 97, 'Area X', 111, 1, 0, 15), (11, 'Loc A', 123, 'Area A', 1, 2, 75, 88), (12, 'Loc B', 124, 'Area A', 1, 2, 7, 15), (13, 'Loc C', 125, 'Area A', 1, 8, 1, 50), (14, 'Loc D', 126, 'Area B', 7, 9, 50, 50), (15, 'Loc E', 127, 'Area FA', 1842, 10, 20, 25), (16, 'Loc F', 130, 'Area C', 78, 2, 95, 95), (17, 'Loc G', 1123, 'Area FA', 1842, 9, 19, 75), (18, 'Loc H', 321, 'Area C', 78, 2, 60, 65), (19, 'Loc I', 99, 'Area X', 111, 2, 99, 100), (20, 'Loc J', 97, 'Area X', 111, 2, 100, 100), (21, 'Loc A', 123, 'Area A', 1, 3, 13, 60), (22, 'Loc B', 124, 'Area A', 1, 3, 15, 15), (23, 'Loc C', 125, 'Area A', 1, 7, 100, 110), (24, 'Loc D', 126, 'Area B', 7, 8, 100, 100), (25, 'Loc E', 127, 'Area FA', 1842, 6, 45, 50), (26, 'Loc F', 130, 'Area C', 78, 3, 150, 150), (27, 'Loc G', 1123, 'Area FA', 1842, 8, 100, 100), (28, 'Loc H', 321, 'Area C', 78, 3, 75, 75), (29, 'Loc I', 99, 'Area X', 111, 3, 94, 100), (30, 'Loc J', 97, 'Area X', 111, 3, 90, 150), (31, 'Loc A', 123, 'Area A', 1, 4, 100, 100), (32, 'Loc B', 124, 'Area A', 1, 4, 60, 65), (33, 'Loc C', 125, 'Area A', 1, 5, 45, 50), (34, 'Loc D', 126, 'Area B', 7, 7, 75, 100), (35, 'Loc E', 127, 'Area FA', 1842, 5, 40, 66), (36, 'Loc F', 130, 'Area C', 78, 4, 110, 110), (37, 'Loc G', 1123, 'Area FA', 1842, 7, 24, 80), (38, 'Loc H', 321, 'Area C', 78, 4, 65, 100), (39, 'Loc I', 99, 'Area X', 111, 4, 100, 100), (40, 'Loc J', 97, 'Area X', 111, 4, 0, 45), (41, 'Loc A', 123, 'Area A', 1, 5, 98, 99), (42, 'Loc B', 124, 'Area A', 1, 5, 65, 66), (43, 'Loc C', 125, 'Area A', 1, 6, 60, 65), (44, 'Loc D', 126, 'Area B', 7, 6, 65, 100), (45, 'Loc E', 127, 'Area FA', 1842, 4, 60, 75), (46, 'Loc F', 130, 'Area C', 78, 5, 85, 85), (47, 'Loc G', 1123, 'Area FA', 1842, 6, 65, 75), (48, 'Loc H', 321, 'Area C', 78, 5, 77, 99), (49, 'Loc I', 99, 'Area X', 111, 5, 100, 100), (50, 'Loc J', 97, 'Area X', 111, 5, 88, 150), (51, 'Loc A', 123, 'Area A', 1, 6, 25, 30), (52, 'Loc B', 124, 'Area A', 1, 8, 42, 50), (53, 'Loc C', 125, 'Area A', 1, 3, 99, 99), (54, 'Loc D', 126, 'Area B', 7, 5, 66, 75), (55, 'Loc E', 127, 'Area FA', 1842, 3, 75, 75), (56, 'Loc F', 130, 'Area C', 78, 6, 77, 77), (57, 'Loc G', 1123, 'Area FA', 1842, 5, 4, 100), (58, 'Loc H', 321, 'Area C', 78, 6, 100, 166), (59, 'Loc I', 99, 'Area X', 111, 6, 100, 100), (60, 'Loc J', 97, 'Area X', 111, 6, 77, 95), (61, 'Loc A', 123, 'Area A', 1, 7, 25, 25), (62, 'Loc B', 124, 'Area A', 1, 6, 44, 75), (63, 'Loc C', 125, 'Area A', 1, 4, 80, 80), (64, 'Loc D', 126, 'Area B', 7, 4, 90, 125), (65, 'Loc E', 127, 'Area FA', 1842, 1, 100, 100), (66, 'Loc F', 130, 'Area C', 78, 7, 15, 15), (67, 'Loc G', 1123, 'Area FA', 1842, 4, 6, 45), (68, 'Loc H', 321, 'Area C', 78, 7, 9, 25), (69, 'Loc I', 99, 'Area X', 111, 7, 100, 100), (70, 'Loc J', 97, 'Area X', 111, 7, 66, 100), (71, 'Loc A', 123, 'Area A', 1, 8, 50, 50), (72, 'Loc B', 124, 'Area A', 1, 7, 100, 100), (73, 'Loc C', 125, 'Area A', 1, 2, 40, 40), (74, 'Loc D', 126, 'Area B', 7, 3, 90, 90), (75, 'Loc E', 127, 'Area FA', 1842, 7, 100, 152), (76, 'Loc F', 130, 'Area C', 78, 8, 96, 96), (77, 'Loc G', 1123, 'Area FA', 1842, 3, 80, 80), (78, 'Loc H', 321, 'Area C', 78, 8, 44, 44), (79, 'Loc I', 99, 'Area X', 111, 8, 100, 100), (80, 'Loc J', 97, 'Area X', 111, 8, 0, 50), (81, 'Loc A', 123, 'Area A', 1, 9, 66, 78), (82, 'Loc B', 124, 'Area A', 1, 10, 90, 100), (83, 'Loc C', 125, 'Area A', 1, 10, 65, 65), (84, 'Loc D', 126, 'Area B', 7, 2, 14, 14), (85, 'Loc E', 127, 'Area FA', 1842, 8, 150, 150), (86, 'Loc F', 130, 'Area C', 78, 9, 55, 55), (87, 'Loc G', 1123, 'Area FA', 1842, 2, 91, 200), (88, 'Loc H', 321, 'Area C', 78, 9, 59, 60), (89, 'Loc I', 99, 'Area X', 111, 9, 100, 100), (90, 'Loc J', 97, 'Area X', 111, 9, 34, 35), (91, 'Loc A', 123, 'Area A', 1, 10, 15, 45), (92, 'Loc B', 124, 'Area A', 1, 9, 9, 50), (93, 'Loc C', 125, 'Area A', 1, 1, 70, 75), (94, 'Loc D', 126, 'Area B', 7, 1, 88, 200), (95, 'Loc E', 127, 'Area FA', 1842, 9, 14, 16), (96, 'Loc F', 130, 'Area C', 78, 10, 100, 100), (97, 'Loc G', 1123, 'Area FA', 1842, 1, 10, 15), (98, 'Loc H', 321, 'Area C', 78, 10, 100, 100), (99, 'Loc I', 99, 'Area X', 111, 10, 100, 100), (100, 'Loc J', 97, 'Area X', 111, 10, 0, 0); /*!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 */;
-- FUNCTION: core.get_user_catchment(integer) -- DROP FUNCTION core.get_user_catchment(integer); CREATE OR REPLACE FUNCTION core.get_user_catchment( _user_id integer) RETURNS TABLE(division text, district text, upazila text, union_name text, ward_name text, submission_id integer) LANGUAGE 'plpgsql' COST 100 VOLATILE ROWS 1000 AS $BODY$ DECLARE arry_cur REFCURSOR; par_loc_id int ; lvl int; par_loc text; _loc text; ret json; pid int; pname text; BEGIN CREATE temporary TABLE tmp_catchment ( div_id int, div_name text, dis_id int, dis_name text, upa_id int, upa_name text, uni_id int, uni_name text, war_id int, war_name text, vil_id int, vil_name text, submit_id int )ON COMMIT DROP; open arry_cur FOR with t as( SELECT id,parent_location_id,location_id, (SELECT name FROM core.location where id=core.users_catchment_area.parent_location_id) parent_loc FROM core.users_catchment_area where user_id=_user_id ),t1 as( select t.*,core.location.name loc,location_tag_id from t,core.location where t.location_id=core.location.id ),t2 as( select t1.*,core.location_tag.name loc_tag,core.location_tag.description loc_level from t1,core.location_tag where t1.location_tag_id=core.location_tag.id )select --loc_tag, parent_location_id,(loc_level::int-1),--location_tag_id, parent_loc, string_agg(loc,',') from t2 group by loc_tag,parent_location_id,loc_level,location_tag_id,parent_loc; loop fetch arry_cur into par_loc_id,lvl,par_loc,_loc; exit when not found; if lvl =0 then insert into tmp_catchment(div_name,submit_id) values(_loc,par_loc_id); end if; if lvl =1 then insert into tmp_catchment(div_id,div_name,dis_name,submit_id) values(par_loc_id,par_loc,_loc,par_loc_id); end if; if lvl =2 then insert into tmp_catchment(dis_id,dis_name,upa_name,submit_id) values(par_loc_id,par_loc,_loc,par_loc_id); select parent_location_id into pid from core.location where id=par_loc_id; select name into pname from core.location where id=pid; update tmp_catchment set div_id=pid,div_name=pname where submit_id=par_loc_id; end if; if lvl =3 then insert into tmp_catchment(upa_id,upa_name,uni_name,submit_id) values(par_loc_id,par_loc,_loc,par_loc_id); select parent_location_id into pid from core.location where id=par_loc_id; select name into pname from core.location where id=pid; update tmp_catchment set dis_id=pid,dis_name=pname where submit_id=par_loc_id; select parent_location_id into pid from core.location where id=pid; select name into pname from core.location where id=pid; update tmp_catchment set div_id=pid,div_name=pname where submit_id=par_loc_id; end if; if lvl =4 then insert into tmp_catchment(uni_id,uni_name,war_name,submit_id) values(par_loc_id,par_loc,_loc,par_loc_id); select parent_location_id into pid from core.location where id=par_loc_id; select name into pname from core.location where id=pid; update tmp_catchment set upa_id=pid,upa_name=pname where submit_id=par_loc_id; select parent_location_id into pid from core.location where id=pid; select name into pname from core.location where id=pid; update tmp_catchment set dis_id=pid,dis_name=pname where submit_id=par_loc_id; select parent_location_id into pid from core.location where id=pid; select name into pname from core.location where id=pid; update tmp_catchment set div_id=pid,div_name=pname where submit_id=par_loc_id; end if; end loop; close arry_cur; with t as( select div_name as division, dis_name district, upa_name as upzaila, uni_name union_name, submit_id from tmp_catchment ) select json_agg(row_to_json(t)) into ret from t; raise notice '%',ret; RETURN query select div_name , dis_name , upa_name , uni_name , war_name, submit_id from tmp_catchment; END; $BODY$; ALTER FUNCTION core.get_user_catchment(integer) OWNER TO opensrp_admin;
insert into exodus_migrations ( name ) values ( $1 )
set optimizer_print_missing_stats = off; -- -- This test case covers ALTER functionality for AOCS relations. -- -- -- Switching on these gucs may be helpful in the event of failures. -- -- set Debug_appendonly_print_storage_headers=true; -- set Debug_appendonly_print_datumstream=true; -- drop schema if exists aocs_addcol cascade; create schema aocs_addcol; set search_path=aocs_addcol,public; create table addcol1 (a int) with (appendonly=true, orientation = column) distributed by (a); -- create three varblocks insert into addcol1 select i from generate_series(-10,5)i; insert into addcol1 select i from generate_series(6,15)i; insert into addcol1 select i from generate_series(21,30)i; select count(*) from addcol1; -- basic scenario with small content vablocks in new as well as existing column. alter table addcol1 add column b varchar default 'I am in a small content varblock'; -- verification on master catalog -- Moreover, gp_toolkit schema is not populated in regression database -- select segno,column_num,physical_segno,tupcount,modcount,state -- from gp_toolkit.__gp_aocsseg(aocs_oid('addcol1')) order by segno,column_num; -- select after alter select b from addcol1 where a < 8 and a > 2; -- update and delete post alter should work update addcol1 set b = 'new value' where a < 10 and a > 0; select * from addcol1 where a < 8 and a > 3; delete from addcol1 where a > 25 or a < -5; select count(*) from addcol1; -- vacuum creates a new appendonly segment, leaving the original -- segment active with eof=0. vacuum addcol1; -- alter table with one empty and one non-empty appendonly segment. alter table addcol1 add column c float default 1.2; select * from addcol1 where a < 8 and a > 3; -- insert should result in two appendonly segments, each having eof > 0. insert into addcol1 select i, i::text, i*22/7::float from generate_series(31,40)i; -- alter table with more than one non-empty appendonly segments. alter table addcol1 add column d int default 20; select a,c,d from addcol1 where a > 9 and a < 15 order by a; -- try inserting after alter insert into addcol1 select i, 'abc', 22*i/7, -i from generate_series(1,10)i; -- add columns with compression (dense and bulk dense content varblocks) alter table addcol1 add column e float default 22/7::float encoding (compresstype=RLE_TYPE), add column f int default 20 encoding (compresstype=zlib); select * from addcol1 where a < 2 and a > -4 order by a,c; select a,f from addcol1 where a > 20 and a < 25 order by a,c; -- add column with existing compressed column (dense content) create table addcol2 (a int encoding (compresstype=zlib)) with (appendonly=true, orientation=column) distributed by (a); insert into addcol2 select i/17 from generate_series(-10000,10000)i; insert into addcol2 select i from generate_series(10001, 50000)i; alter table addcol2 add column b varchar default 'hope I end up on a magnetic disk some day' encoding (compresstype=RLE_TYPE, blocksize=8192); -- select after add column select * from addcol2 where a > 9995 and a < 10006 order by a; -- add column with existing RLE compressed column (bulk dense content) create table addcol3 (a int encoding (compresstype=RLE_TYPE, compresslevel=2)) with (appendonly=true, orientation=column) distributed by (a); insert into addcol3 select 10 from generate_series(1, 30000); insert into addcol3 select -10 from generate_series(1, 20000); insert into addcol3 select case when i < 100000 then 1 when i >= 100000 and i < 500000 then 2 when i >=500000 and i < 1000000 then 3 end from generate_series(-1000,999999)i; alter table addcol3 add column b float default 22/7::float encoding (compresstype=RLE_TYPE, compresslevel=2); -- add column with null default alter table addcol3 add column c varchar default null; select count(b) from addcol3; select count(c) from addcol3; -- verification on master catalog -- select segno,column_num,physical_segno,tupcount,modcount,state -- from gp_toolkit.__gp_aocsseg(aocs_oid('addcol3')) order by segno,column_num; -- insert after add column with null default insert into addcol3 select i, 22*i/7, 'a non-null value' from generate_series(1,100)i; select count(*) from addcol3; -- verification on master catalog -- select segno,column_num,physical_segno,tupcount,modcount,state -- from gp_toolkit.__gp_aocsseg(aocs_oid('addcol3')) order by segno,column_num; -- start with a new table, with two varblocks create table addcol4 (a int, b float) with (appendonly=true, orientation=column) distributed by (a); insert into addcol4 select i, 31/i from generate_series(1, 20)i; insert into addcol4 select -i, 37/i from generate_series(1, 20)i; select count(*) from addcol4; -- multiple alter subcommands (add column, drop column) alter table addcol4 add column c varchar default null encoding (compresstype=zlib), drop column b, add column d date default date('2014-05-01') encoding (compresstype=RLE_TYPE, compresslevel=2); select * from addcol4 where a > 5 and a < 10 order by a; -- verification on master catalog -- select segno, column_num, physical_segno, tupcount, modcount, state -- from gp_toolkit.__gp_aocsseg(aocs_oid('addcol4')) order by segno,column_num; -- TODO: multiple subcommands (add column, add constraint, alter type) -- block directory create index i4a on addcol4 (a); alter table addcol4 add column e varchar default 'wow' encoding (compresstype=zlib); -- enforce index scan so that block directory is used set enable_seqscan=off; -- index scan after adding new column select * from addcol4 where a > 5 and a < 10 order by a; create table addcol5 (a int, b float) with (appendonly=true, orientation=column) distributed by (a); create index i5a on addcol5(a); insert into addcol5 select i, 22*i/7 from generate_series(-10,10)i; insert into addcol5 select i, 22*i/7 from generate_series(11,20)i; insert into addcol5 select i, 22*i/7 from generate_series(21,30)i; alter table addcol5 add column c int default 1; -- insert after adding new column insert into addcol5 select i, 22*i/7, 311/i from generate_series(31,35)i; -- index scan after adding new column set enable_seqscan=off; select * from addcol5 where a > 25 order by a,b; -- firstRowNum of the first block starts with a value greater than 1 -- (first insert was aborted). create table addcol6 (a int, b int) with (appendonly=true, orientation=column) distributed by (a); begin; insert into addcol6 select i,i from generate_series(1,10)i; -- abort the first insert, still should advance gp_fastsequence for this -- relation. SELECT CASE WHEN xmin = 2 THEN 'FrozenXid' ELSE 'NormalXid' END, objmod, last_sequence, gp_segment_id from gp_dist_random('gp_fastsequence') WHERE objid IN (SELECT segrelid FROM pg_appendonly WHERE relid IN (SELECT oid FROM pg_class WHERE relname='addcol6')); abort; -- check gp_fastsequence remains advanced. SELECT CASE WHEN xmin = 2 THEN 'FrozenXid' ELSE 'NormalXid' END, objmod, last_sequence, gp_segment_id from gp_dist_random('gp_fastsequence') WHERE objid IN (SELECT segrelid FROM pg_appendonly WHERE relid IN (SELECT oid FROM pg_class WHERE relname='addcol6')); insert into addcol6 select i,i/2 from generate_series(1,20)i; alter table addcol6 add column c float default 1.2; select a,c from addcol6 where b > 5 order by a; -- Lets validate after alter gp_fastsequence reflects correctly. SELECT CASE WHEN xmin = 2 THEN 'FrozenXid' ELSE 'NormalXid' END, objmod, last_sequence, gp_segment_id from gp_dist_random('gp_fastsequence') WHERE objid IN (SELECT segrelid FROM pg_appendonly WHERE relid IN (SELECT oid FROM pg_class WHERE relname='addcol6')); -- add column with default value as sequence alter table addcol6 add column d serial; -- select, insert, update after 'add column' select c,d from addcol6 where d > 15 order by d; insert into addcol6 select i, i, 71/i from generate_series(21,30)i; select count(*) from addcol6; update addcol6 set b = 0, c = 0 where d > 15; select count(*) from addcol6 where b = 0 and c = 0; -- partitioned table tests create table addcol7 ( timest character varying(6), user_id numeric(16,0) not null, tag1 smallint, tag2 varchar(2)) with (appendonly=true, orientation=column, compresslevel=5, oids=false) distributed by (user_id) partition by list(timest) ( partition part201202 values('201202') with (appendonly=true, orientation=column, compresslevel=5), partition part201203 values('201203') with (appendonly=true, orientation=column, compresslevel=5)); insert into addcol7 select '201202', 100*i, i, 'a' from generate_series(1,10)i; insert into addcol7 select '201203', 101*i, i, 'b' from generate_series(11,20)i; alter table addcol7 add column new1 float default 1.2; -- select, insert post alter select * from addcol7 where tag1 > 7 and tag1 < 13 order by tag1; insert into addcol7 select '201202', 100*i, i, i::text, 22*i/7 from generate_series(21,30)i; insert into addcol7 select '201203', 101*i, i, (i+2)::text, 22*i/7 from generate_series(31,40)i; -- add new partition and a new column in the same alter table command alter table addcol7 add partition part201204 values('201204') with (appendonly=true, compresslevel=5), add column new2 varchar default 'abc'; -- insert, select, update, delete and vacuum post alter insert into addcol7 values ('201202', 101, 1, 'p1', 3/5::float, 'newcol2'), ('201202', 102, 2, 'p1', 1/6::float, 'newcol2'), ('201202', 103, 3, 'p1', 22/7::float, 'newcol2'), ('201203', 201, 4, 'p2', 1/3::float, 'newcol2'), ('201203', 202, 5, 'p2', null, null), ('201203', 203, 6, 'p2', null, null), ('201204', 301, 7, 'p3', 22/7::float, 'newcol2'), ('201204', 302, 8, 'p3', null, null), ('201204', 303, 9, 'p3', null, null); select * from addcol7 where tag2 like 'p%' order by user_id; update addcol7 set new1 = 0, tag1 = -1 where tag2 like 'p%'; delete from addcol7 where new2 is null; vacuum addcol7; select * from addcol7 where tag2 like 'p%' order by user_id; create table addcol8 (a int, b varchar(10), c int, d int) with (appendonly=true, orientation=column) distributed by (a); insert into addcol8 select i, 'abc'||i, i, i from generate_series(1,10)i; alter table addcol8 alter column b type varchar(20), add column e float default 1, drop column c; select * from addcol8 order by a; \d addcol8 -- try renaming table and see if stuff still works alter table addcol1 rename to addcol1_renamed; alter table addcol1_renamed add column new_column int default 10; alter table addcol1_renamed alter column new_column set not null; alter table addcol1_renamed add column new_column2 int not null; -- should fail select count(*) from addcol1_renamed; alter table addcol1_renamed drop column new_column; alter table addcol1_renamed rename to addcol1; -- try renaming columns and see if stuff still works alter table addcol1 rename column f to f_renamed; alter table addcol1 alter column f_renamed set default 10; select adsrc from pg_attrdef pdef, pg_attribute pattr where pdef.adrelid='addcol1'::regclass and pdef.adrelid=pattr.attrelid and pdef.adnum=pattr.attnum and pattr.attname='f_renamed'; insert into addcol1 values (999); select a, f_renamed from addcol1 where a = 999; -- try dropping and adding back the column alter table addcol1 drop column f_renamed; select attname from pg_attribute where attrelid='addcol1'::regclass and attname='f_renamed'; alter table addcol1 add column f_renamed int default 20; select a, f_renamed from addcol1 where a = 999; -- try altering statistics of a column alter table addcol1 alter column f_renamed set statistics 10000; select attstattarget from pg_attribute where attrelid = 'aocs_addcol.addcol1'::regclass and attname = 'f_renamed'; set client_min_messages to error; alter table addcol1 alter column f_renamed set statistics 10001; -- should limit to 10000 and give warning set client_min_messages to notice; select attstattarget from pg_attribute where attrelid = 'aocs_addcol.addcol1'::regclass and attname = 'f_renamed'; -- test alter distribution policy alter table addcol1 set distributed randomly; alter table addcol1 set distributed by (a); -- test some constraints (unique indexes do not work for unique and pkey) alter table addcol1 add constraint tunique unique(a); alter table addcol1 add constraint tpkey primary key(a); alter table addcol1 add constraint tcheck check (a is not null); -- test changing the storage type of a column alter table addcol1 alter column f_renamed type varchar(7); alter table addcol1 alter column f_renamed set storage plain; select attname, attstorage from pg_attribute where attrelid='addcol1'::regclass and attname='f_renamed'; alter table addcol1 alter column f_renamed set storage main; select attname, attstorage from pg_attribute where attrelid='addcol1'::regclass and attname='f_renamed'; alter table addcol1 alter column f_renamed set storage external; select attname, attstorage from pg_attribute where attrelid='addcol1'::regclass and attname='f_renamed'; alter table addcol1 alter column f_renamed set storage extended; select attname, attstorage from pg_attribute where attrelid='addcol1'::regclass and attname='f_renamed'; -- cannot set reloption appendonly alter table addcol1 set (appendonly=true, compresslevel=5, fillfactor=50); alter table addcol1 reset (appendonly, compresslevel, fillfactor); -- test some aocs partition table altering create table alter_aocs_part_table (a int, b int) with (appendonly=true, orientation=column) distributed by (a) partition by range(b) (start (1) end (5) exclusive every (1), default partition foo); insert into alter_aocs_part_table values (generate_series(1,10), generate_series(1,10)); alter table alter_aocs_part_table drop partition for (rank(1)); alter table alter_aocs_part_table split default partition start(6) inclusive end(7) exclusive; alter table alter_aocs_part_table split default partition start(6) inclusive end(8) exclusive; alter table alter_aocs_part_table split default partition start(7) inclusive end(8) exclusive; select partitionrangestart, partitionstartinclusive, partitionrangeend, partitionendinclusive, partitionisdefault from pg_partitions where tablename = 'alter_aocs_part_table'; create table alter_aocs_ao_table (a int, b int) with (appendonly=true) distributed by (a); insert into alter_aocs_ao_table values (2,2); alter table alter_aocs_part_table exchange partition for (rank(1)) with table alter_aocs_ao_table; create table alter_aocs_heap_table (a int, b int) distributed by (a); insert into alter_aocs_heap_table values (3,3); alter table alter_aocs_part_table exchange partition for (rank(2)) with table alter_aocs_heap_table; -- Test truncating and exchanging partition and then rolling back begin work; create table alter_aocs_ptable_exchange (a int, b int) with (appendonly=true, orientation=column) distributed by (a); insert into alter_aocs_ptable_exchange values (3,3), (3,3), (3,3); alter table alter_aocs_part_table truncate partition for (rank(2)); select count(*) from alter_aocs_part_table; alter table alter_aocs_part_table exchange partition for (rank(2)) with table alter_aocs_ptable_exchange; select count(*) from alter_aocs_part_table; rollback work; select count(*) from alter_aocs_part_table; -- Test AO hybrid partitioning scheme (range and list) w/ subpartitions create table aocs_multi_level_part_table (date date, region text, region1 text, amount decimal(10,2)) with (appendonly=true, orientation=column, compresstype=zlib, compresslevel=1) partition by range(date) subpartition by list(region) ( partition part1 start(date '2008-01-01') end(date '2009-01-01') (subpartition usa values ('usa'), subpartition asia values ('asia'), default subpartition def), partition part2 start(date '2009-01-01') end(date '2010-01-01') (subpartition usa values ('usa'), subpartition asia values ('asia'))); -- insert some data insert into aocs_multi_level_part_table values ('2008-02-02', 'usa', 'Texas', 10.05), ('2008-03-03', 'asia', 'China', 1.01); insert into aocs_multi_level_part_table values ('2009-02-02', 'usa', 'Utah', 10.05), ('2009-03-03', 'asia', 'Japan', 1.01); -- add a partition that is not a default partition alter table aocs_multi_level_part_table add partition part3 start(date '2010-01-01') end(date '2012-01-01') with (appendonly=true, orientation=column) (subpartition usa values ('usa'), subpartition asia values ('asia'), default subpartition def); -- Add default partition (defaults to heap storage unless set with AO) alter table aocs_multi_level_part_table add default partition yearYYYY (default subpartition def); select count(*) from pg_appendonly where relid='aocs_multi_level_part_table_1_prt_yearyyyy'::regclass; alter table aocs_multi_level_part_table drop partition yearYYYY; alter table aocs_multi_level_part_table add default partition yearYYYY with (appendonly=true, orientation=column) (default subpartition def); select count(*) from pg_appendonly where relid='aocs_multi_level_part_table_1_prt_yearyyyy'::regclass; -- index on atts 1, 4 create index ao_mlp_idx on aocs_multi_level_part_table(date, amount); select indexname from pg_indexes where tablename='aocs_multi_level_part_table'; alter index ao_mlp_idx rename to ao_mlp_idx_renamed; select indexname from pg_indexes where tablename='aocs_multi_level_part_table'; -- truncate partitions until table is empty select * from aocs_multi_level_part_table; truncate aocs_multi_level_part_table_1_prt_part1_2_prt_asia; select * from aocs_multi_level_part_table; alter table aocs_multi_level_part_table truncate partition for (rank(1)); select * from aocs_multi_level_part_table; alter table aocs_multi_level_part_table alter partition part2 truncate partition usa; select * from aocs_multi_level_part_table; alter table aocs_multi_level_part_table truncate partition part2; select * from aocs_multi_level_part_table; -- drop column in the partition table select count(*) from pg_attribute where attrelid='aocs_multi_level_part_table'::regclass and attname = 'region1'; alter table aocs_multi_level_part_table drop column region1; select count(*) from pg_attribute where attrelid='aocs_multi_level_part_table'::regclass and attname = 'region1'; -- splitting top partition of a multi-level partition should not work alter table aocs_multi_level_part_table split partition part3 at (date '2011-01-01') into (partition part3, partition part4); -- Test case: alter table add column with FirstRowNumber > 1 create table aocs_first_row_number (a int, b int) with (appendonly=true, orientation=column); create index i_aocs_first_row_number on aocs_first_row_number using btree(b); -- abort an insert transaction to generate a first row number > 1 begin; insert into aocs_first_row_number select i,i from generate_series(1,100)i; abort; insert into aocs_first_row_number select i,i from generate_series(101, 200)i; alter table aocs_first_row_number add column c int default -1; -- At this point, block directory entry for column c starts from first row number = 1, -- which is not the same as first row number for columns a and b. -- correct result using base table set enable_seqscan=on; set enable_indexscan=off; select c from aocs_first_row_number where b = 10; set enable_seqscan=off; set enable_indexscan=on; -- Used to have wrong result using index: this select returns 1 tuple when no tuples should be returned. -- expect: same result as scanning the base table select c from aocs_first_row_number where b = 10; reset enable_seqscan; reset enable_indexscan; -- cleanup so as not to affect other installcheck tests -- (e.g. column_compression). set client_min_messages='WARNING'; drop schema aocs_addcol cascade;
-- Database: firebird -- Change Parameter: columns=[column:[ -- name="id" -- type="int" -- ], ] -- Change Parameter: file=com/example/users.csv -- Change Parameter: tableName=person INSERT INTO person (username, fullname) VALUES ('nvoxland', ' Nathan Voxland'); INSERT INTO person (username, fullname) VALUES ('bob', ' Bob Bobson');
-- Auxiliary overviews FUNCTIONS -- Maximum zoom level for which overviews may be created CREATE OR REPLACE FUNCTION @extschema@._CDB_MaxOverviewLevel() RETURNS INTEGER AS $$ BEGIN -- Zoom level will be limited so that both tile coordinates -- and gridding coordinates within a tile up to 1px -- (i.e. tile coordinates / 256) -- can be stored in a 32-bit signed integer. -- We have 31 bits por positive numbers -- For zoom level Z coordinates range from 0 to 2^Z-1, so they -- need Z bits, and need 8 bits more to address pixels within a tile -- (gridding), so we'll limit Z to a maximum of 31 - 8 RETURN 23; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Maximum zoom level usable with integer coordinates CREATE OR REPLACE FUNCTION @extschema@._CDB_MaxZoomLevel() RETURNS INTEGER AS $$ BEGIN RETURN 31; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Information about tables in a schema. -- If the schema name parameter is NULL, then tables from all schemas -- that may contain user tables are returned. -- For each table, the regclass, schema name and table name are returned. -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_UserTablesInSchema(schema_name text DEFAULT NULL) RETURNS TABLE(table_regclass REGCLASS, schema_name TEXT, table_name TEXT) AS $$ SELECT c.oid::regclass AS table_regclass, n.nspname::text AS schema_name, c.relname::text AS table_relname FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind = 'r' AND c.relname NOT IN ('cdb_tablemetadata', 'cdb_analysis_catalog', 'cdb_conf', 'spatial_ref_sys') AND CASE WHEN schema_name IS NULL THEN n.nspname NOT IN ('pg_catalog', 'information_schema', 'topology', '@extschema@') ELSE n.nspname = schema_name END; $$ LANGUAGE 'sql' STABLE PARALLEL SAFE; -- Pattern that can be used to detect overview tables and Extract -- the intended zoom level from the table name. -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewTableDiscriminator() RETURNS TEXT AS $$ BEGIN RETURN '\A_vovw_(\d+)_'; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- substring(tablename from _CDB_OverviewTableDiscriminator()) -- Pattern matched by the overview tables of a given base table name. -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewTablePattern(base_table TEXT) RETURNS TEXT AS $$ BEGIN RETURN @extschema@._CDB_OverviewTableDiscriminator() || base_table; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- tablename SIMILAR TO _CDB_OverviewTablePattern(base_table) -- Name of an overview table, given the base table name and the Z level -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewTableName(base_table TEXT, z INTEGER) RETURNS TEXT AS $$ BEGIN RETURN '_vovw_' || z::text || '_' || base_table; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Condition to check if a tabla is an overview table of some base table -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_IsOverviewTableOf(base_table TEXT, otable TEXT) RETURNS BOOLEAN AS $$ BEGIN RETURN otable SIMILAR TO @extschema@._CDB_OverviewTablePattern(base_table); END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Extract the Z level from an overview table name -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewTableZ(otable TEXT) RETURNS INTEGER AS $$ BEGIN RETURN substring(otable from @extschema@._CDB_OverviewTableDiscriminator())::integer; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Name of the base table corresponding to an overview table -- Scope: private. CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewBaseTableName(overview_table TEXT) RETURNS TEXT AS $$ BEGIN IF @extschema@._CDB_OverviewTableZ(overview_table) IS NULL THEN RETURN overview_table; ELSE RETURN regexp_replace(overview_table, @extschema@._CDB_OverviewTableDiscriminator(), ''); END IF; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; CREATE OR REPLACE FUNCTION @extschema@._CDB_OverviewBaseTable(overview_table REGCLASS) RETURNS REGCLASS AS $$ DECLARE table_name TEXT; schema_name TEXT; base_name TEXT; base_table REGCLASS; BEGIN SELECT * FROM @extschema@._cdb_split_table_name(overview_table) INTO schema_name, table_name; base_name := @extschema@._CDB_OverviewBaseTableName(table_name); IF base_name != table_name THEN base_table := Format('%I.%I', schema_name, base_name)::regclass; ELSE base_table := overview_table; END IF; RETURN base_table; END; $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Schema and relation names of a table given its reloid -- Scope: private. -- Parameters -- reloid: oid of the table. -- Return (schema_name, table_name) -- note that returned names will be quoted if necessary CREATE OR REPLACE FUNCTION @extschema@._cdb_split_table_name(reloid REGCLASS, OUT schema_name TEXT, OUT table_name TEXT) AS $$ BEGIN SELECT n.nspname, c.relname INTO STRICT schema_name, table_name FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid WHERE c.oid = reloid; END $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE; -- Schema and relation names of a table given its reloid -- Scope: private. -- Parameters -- reloid: oid of the table. -- Return (schema_name, table_name) -- note that returned names will be quoted if necessary CREATE OR REPLACE FUNCTION @extschema@._cdb_schema_name(reloid REGCLASS) RETURNS TEXT AS $$ DECLARE schema_name TEXT; BEGIN SELECT n.nspname INTO STRICT schema_name FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid WHERE c.oid = reloid; RETURN schema_name; END $$ LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `dseo_usermeta`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dseo_usermeta` ( `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', `meta_key` varchar(255) DEFAULT NULL, `meta_value` longtext, PRIMARY KEY (`umeta_id`), KEY `user_id` (`user_id`), KEY `meta_key` (`meta_key`(191)) ) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; LOCK TABLES `dseo_usermeta` WRITE; /*!40000 ALTER TABLE `dseo_usermeta` DISABLE KEYS */; INSERT INTO `dseo_usermeta` VALUES (1,1,'nickname','ian.lancaster'),(2,1,'first_name','Ian'),(3,1,'last_name','Lancaster'),(4,1,'description',''),(5,1,'rich_editing','true'),(6,1,'comment_shortcuts','false'),(7,1,'admin_color','fresh'),(8,1,'use_ssl','0'),(9,1,'show_admin_bar_front','true'),(10,1,'dseo_capabilities','a:1:{s:13:\"administrator\";b:1;}'),(11,1,'dseo_user_level','10'),(12,1,'dismissed_wp_pointers','wpe_admin_pointers_1_0_toggle_toolbar'),(13,1,'show_welcome_panel','1'),(14,1,'session_tokens','a:3:{s:64:\"13952eba809655b4e1619952a6647c8f0b257c904ed7e09cbbf969b7851c7ea6\";a:4:{s:10:\"expiration\";i:1467254106;s:2:\"ip\";s:3:\"::1\";s:2:\"ua\";s:108:\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) (Coda, like Safari)\";s:5:\"login\";i:1466044506;}s:64:\"2618d38fecce2b41ee7192473f1e649e9e8cc545ae0f66e6707895be08565a19\";a:4:{s:10:\"expiration\";i:1467262956;s:2:\"ip\";s:3:\"::1\";s:2:\"ua\";s:120:\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36\";s:5:\"login\";i:1466053356;}s:64:\"3f7b98b3b04e3a24166c4005bdd60fbe442e4347167488fcf751737346a8d330\";a:4:{s:10:\"expiration\";i:1467095891;s:2:\"ip\";s:14:\"184.96.205.253\";s:2:\"ua\";s:120:\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36\";s:5:\"login\";i:1466923091;}}'),(28,1,'wpseo_seen_about_version','3.2.5'),(15,1,'dseo_dashboard_quick_press_last_post_id','125'),(16,1,'dseo_user-settings','libraryContent=browse&editor=tinymce'),(17,1,'dseo_user-settings-time','1466923089'),(18,1,'managenav-menuscolumnshidden','a:5:{i:0;s:11:\"link-target\";i:1;s:11:\"css-classes\";i:2;s:3:\"xfn\";i:3;s:11:\"description\";i:4;s:15:\"title-attribute\";}'),(19,1,'metaboxhidden_nav-menus','a:5:{i:0;s:21:\"add-post-type-project\";i:1;s:25:\"add-post-type-team-member\";i:2;s:25:\"add-post-type-testimonial\";i:3;s:12:\"add-post_tag\";i:4;s:20:\"add-project_category\";}'),(20,1,'nav_menu_recently_edited','3'),(21,1,'wpseo_ignore_tour','1'),(22,1,'aaa_wp_edit_user_meta','a:11:{s:9:\"id_column\";s:1:\"0\";s:16:\"thumbnail_column\";s:1:\"0\";s:13:\"hide_text_tab\";s:1:\"0\";s:18:\"default_visual_tab\";s:1:\"0\";s:16:\"dashboard_widget\";s:1:\"0\";s:17:\"enable_highlights\";s:1:\"0\";s:15:\"draft_highlight\";s:7:\"#FFFFFF\";s:17:\"pending_highlight\";s:7:\"#FFFFFF\";s:19:\"published_highlight\";s:7:\"#FFFFFF\";s:16:\"future_highlight\";s:7:\"#FFFFFF\";s:17:\"private_highlight\";s:7:\"#FFFFFF\";}'),(23,1,'meta-box-order_page','a:3:{s:4:\"side\";s:54:\"submitdiv,pageparentdiv,et_ptemplate_meta,postimagediv\";s:6:\"normal\";s:127:\"et_settings_meta_box,et_pb_layout,wpseo_meta,revisionsdiv,postexcerpt,postcustom,commentstatusdiv,commentsdiv,slugdiv,authordiv\";s:8:\"advanced\";s:0:\"\";}'),(24,1,'screen_layout_page','2'),(25,1,'closedpostboxes_page','a:0:{}'),(26,1,'metaboxhidden_page','a:6:{i:0;s:11:\"postexcerpt\";i:1;s:10:\"postcustom\";i:2;s:16:\"commentstatusdiv\";i:3;s:11:\"commentsdiv\";i:4;s:7:\"slugdiv\";i:5;s:9:\"authordiv\";}'),(27,1,'gform_recent_forms','a:1:{i:0;s:1:\"1\";}'); /*!40000 ALTER TABLE `dseo_usermeta` 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 */;
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 03, 2019 at 01:50 PM -- Server version: 5.7.21 -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `lisi_lisi` -- -- -------------------------------------------------------- -- -- Table structure for table `about_projects` -- DROP TABLE IF EXISTS `about_projects`; CREATE TABLE IF NOT EXISTS `about_projects` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `image` int(11) DEFAULT NULL, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `link` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', PRIMARY KEY (`id`), KEY `about_projects_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `about_projects` -- INSERT INTO `about_projects` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `image`, `landing_id`, `link`) VALUES (1, NULL, '2019-03-05 08:13:11', '2019-03-06 04:34:02', 'great project', 'great project great project', 7, 1, 'https://www.facebook.com/Lisi.Development/'); -- -------------------------------------------------------- -- -- Table structure for table `aparatmnets` -- DROP TABLE IF EXISTS `aparatmnets`; CREATE TABLE IF NOT EXISTS `aparatmnets` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `space` int(10) UNSIGNED DEFAULT NULL, `active` tinyint(1) DEFAULT '1', `rooms` varchar(256) COLLATE utf8_unicode_ci DEFAULT '[]', `floor` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `aparatmnets_floor_foreign` (`floor`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `backups` -- DROP TABLE IF EXISTS `backups`; CREATE TABLE IF NOT EXISTS `backups` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `file_name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `backup_size` varchar(10) COLLATE utf8_unicode_ci DEFAULT '', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `backups_name_unique` (`name`), UNIQUE KEY `backups_file_name_unique` (`file_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `blocks` -- DROP TABLE IF EXISTS `blocks`; CREATE TABLE IF NOT EXISTS `blocks` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image` int(11) DEFAULT NULL, `project_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `active` tinyint(1) DEFAULT '1', `floors` int(10) UNSIGNED DEFAULT NULL, PRIMARY KEY (`id`), KEY `blocks_project_id_foreign` (`project_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `blocks` -- INSERT INTO `blocks` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `title_en`, `title_ru`, `image`, `project_id`, `active`, `floors`) VALUES (1, NULL, '2019-02-22 08:26:34', '2019-02-22 09:01:08', 'Block title', NULL, NULL, 1, 1, 1, 2), (2, NULL, '2019-02-22 09:00:58', '2019-02-22 09:00:58', 'block c', NULL, NULL, 0, 1, 1, 4), (3, NULL, '2019-02-22 09:01:30', '2019-02-22 09:01:30', 'Block sd', NULL, NULL, 0, 2, 1, 4), (4, NULL, '2019-02-22 09:01:46', '2019-02-22 09:01:46', 'block hotel', NULL, NULL, 0, 2, 1, 3); -- -------------------------------------------------------- -- -- Table structure for table `callbacks` -- DROP TABLE IF EXISTS `callbacks`; CREATE TABLE IF NOT EXISTS `callbacks` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `firstname` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `project` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) DEFAULT '0', `email` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `callbacks` -- INSERT INTO `callbacks` (`id`, `deleted_at`, `created_at`, `updated_at`, `firstname`, `phone`, `project`, `active`, `email`) VALUES (1, NULL, '2019-03-11 08:26:43', '2019-03-11 08:26:43', 'vas', 're123123', 'lisi', 0, NULL), (2, NULL, '2019-03-11 08:30:03', '2019-03-11 08:30:03', 'test', '324234234234', 'lisi', 0, NULL), (3, NULL, '2019-03-11 08:31:20', '2019-03-11 08:31:20', 'test', 'asdasd', 'lisi', 0, NULL), (4, NULL, '2019-03-11 08:32:21', '2019-03-12 03:05:41', 'vas', '324234234234', 'lisi', 1, NULL), (5, NULL, '2019-03-12 03:21:39', '2019-03-12 03:21:39', NULL, NULL, NULL, 0, NULL), (6, NULL, '2019-03-12 03:21:45', '2019-03-12 03:21:45', NULL, NULL, NULL, 0, NULL), (7, NULL, '2019-03-12 03:22:07', '2019-03-12 03:22:07', NULL, NULL, NULL, 0, NULL), (8, NULL, '2019-03-12 03:22:58', '2019-03-12 03:22:58', NULL, NULL, NULL, 0, 'vaska@digitalmate.io'), (9, NULL, '2019-03-27 06:14:07', '2019-03-27 06:14:07', 'sdfsdf', '3123123', 'lisi', 0, NULL), (10, NULL, '2019-03-27 06:14:07', '2019-03-27 06:14:07', 'sdfsdf', '3123123', 'lisi', 0, NULL); -- -------------------------------------------------------- -- -- Table structure for table `catalogs` -- DROP TABLE IF EXISTS `catalogs`; CREATE TABLE IF NOT EXISTS `catalogs` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `text_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_en` text COLLATE utf8_unicode_ci, `text_ru` text COLLATE utf8_unicode_ci, `image` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `company_views` -- DROP TABLE IF EXISTS `company_views`; CREATE TABLE IF NOT EXISTS `company_views` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `text_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `company_views` -- INSERT INTO `company_views` (`id`, `deleted_at`, `created_at`, `updated_at`, `text_ka`, `text_en`, `text_ru`, `image`, `active`) VALUES (1, NULL, '2019-02-25 07:30:31', '2019-02-25 07:30:31', 'sss', NULL, NULL, 0, 1); -- -------------------------------------------------------- -- -- Table structure for table `departments` -- DROP TABLE IF EXISTS `departments`; CREATE TABLE IF NOT EXISTS `departments` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `tags` varchar(1000) COLLATE utf8_unicode_ci DEFAULT '[]', `color` varchar(50) COLLATE utf8_unicode_ci DEFAULT '', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `departments_name_unique` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `departments` -- INSERT INTO `departments` (`id`, `name`, `tags`, `color`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'Administration', '[]', '#000', NULL, '2019-02-22 06:24:06', '2019-02-22 06:24:06'); -- -------------------------------------------------------- -- -- Table structure for table `employees` -- DROP TABLE IF EXISTS `employees`; CREATE TABLE IF NOT EXISTS `employees` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `designation` varchar(50) COLLATE utf8_unicode_ci DEFAULT '', `gender` varchar(191) COLLATE utf8_unicode_ci DEFAULT 'Male', `email` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `dept` int(10) UNSIGNED NOT NULL DEFAULT '1', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `employees_email_unique` (`email`), KEY `employees_dept_foreign` (`dept`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `employees` -- INSERT INTO `employees` (`id`, `name`, `designation`, `gender`, `email`, `dept`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'admin', 'Super Admin', 'Male', 'vaska@digitalmate.io', 1, NULL, '2019-02-22 06:24:25', '2019-02-22 06:24:25'); -- -------------------------------------------------------- -- -- Table structure for table `floors` -- DROP TABLE IF EXISTS `floors`; CREATE TABLE IF NOT EXISTS `floors` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `floors` -- INSERT INTO `floors` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `title_en`, `title_ru`) VALUES (1, NULL, '2019-02-25 04:25:46', '2019-02-25 04:25:46', 'pirveli ', 'first', 'pervi'), (2, NULL, '2019-02-25 04:37:56', '2019-02-25 04:37:56', 'meore', 'second', 'vtaroi'), (4, NULL, '2019-02-25 04:39:16', '2019-02-25 04:39:16', 'mesame', 'third', 'treti'), (5, NULL, '2019-02-25 04:39:16', '2019-02-25 04:39:16', 'moetxe', 'fourth', 'chitiri'); -- -------------------------------------------------------- -- -- Table structure for table `green_zones` -- DROP TABLE IF EXISTS `green_zones`; CREATE TABLE IF NOT EXISTS `green_zones` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT '0', `tag_id` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `green_zones_tag_id_foreign` (`tag_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `green_zones` -- INSERT INTO `green_zones` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `title_en`, `title_ru`, `image`, `active`, `tag_id`) VALUES (1, NULL, '2019-02-25 07:10:59', '2019-02-26 05:27:38', '80 procenti', '80 Percent', NULL, 3, 1, 1), (2, NULL, '2019-02-26 05:26:20', '2019-02-26 05:27:30', '20 percent', '20 %', NULL, 0, 1, 1), (3, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '10', NULL, NULL, 0, 1, 1), (4, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '20', NULL, NULL, 0, 1, 1), (5, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '30', NULL, NULL, 0, 1, 2), (6, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '40', NULL, NULL, 0, 1, 2), (7, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '50', NULL, NULL, 0, 1, 2), (8, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '60', NULL, NULL, 0, 1, 2), (9, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '70', NULL, NULL, 0, 1, 2), (10, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '80', NULL, NULL, 0, 1, 2), (11, NULL, '2019-02-26 05:26:20', '2019-02-26 05:26:20', '90', NULL, NULL, 0, 1, 2); -- -------------------------------------------------------- -- -- Table structure for table `home_sliders` -- DROP TABLE IF EXISTS `home_sliders`; CREATE TABLE IF NOT EXISTS `home_sliders` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `text_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image_id` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `home_sliders` -- INSERT INTO `home_sliders` (`id`, `deleted_at`, `created_at`, `updated_at`, `text_ka`, `text_en`, `text_ru`, `image_id`, `active`) VALUES (1, NULL, '2019-02-22 07:22:33', '2019-02-22 07:22:33', 'სლაიდერ', 'Slider', NULL, 2, 1), (2, NULL, '2019-02-22 07:23:02', '2019-02-22 07:23:02', 'სლაიდერ 2', 'Slider 2', NULL, 3, 1), (3, NULL, '2019-02-25 06:32:27', '2019-02-25 06:32:27', 'სლაიდერ 3', 'slider 3', NULL, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `landings` -- DROP TABLE IF EXISTS `landings`; CREATE TABLE IF NOT EXISTS `landings` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `landing_home` tinyint(1) DEFAULT '1', `season` tinyint(1) DEFAULT '1', `about_project` tinyint(1) DEFAULT '1', `project_info` tinyint(1) DEFAULT '1', `project_summary` tinyint(1) DEFAULT '1', `landing_apartment` tinyint(1) DEFAULT '1', `footer` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `landings` -- INSERT INTO `landings` (`id`, `deleted_at`, `created_at`, `updated_at`, `title`, `landing_home`, `season`, `about_project`, `project_info`, `project_summary`, `landing_apartment`, `footer`) VALUES (1, NULL, '2019-02-27 03:05:20', '2019-03-06 08:13:58', 'lisi', 1, 1, 1, 1, 1, 1, 0), (2, NULL, '2019-02-27 03:05:25', '2019-03-07 04:44:04', 'kokhta', 1, 1, 0, 0, 0, 0, 0), (3, NULL, '2019-02-27 03:05:31', '2019-02-27 03:07:09', 'batumi', 1, 1, 1, 1, 1, 1, 1), (4, '2019-02-27 05:24:39', '2019-02-27 05:17:31', '2019-02-27 05:24:39', 'lisi', 1, 1, 1, 1, 1, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `landing_apartments` -- DROP TABLE IF EXISTS `landing_apartments`; CREATE TABLE IF NOT EXISTS `landing_apartments` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image` int(11) DEFAULT NULL, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `landing_apartments_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `landing_apartments` -- INSERT INTO `landing_apartments` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `image`, `landing_id`) VALUES (1, NULL, '2019-03-06 08:26:07', '2019-03-06 08:26:07', 'Apartment', 'text apartment', 8, 1); -- -------------------------------------------------------- -- -- Table structure for table `landing_footers` -- DROP TABLE IF EXISTS `landing_footers`; CREATE TABLE IF NOT EXISTS `landing_footers` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `email` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `phone` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `address` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `landing_footers_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `landing_footers` -- INSERT INTO `landing_footers` (`id`, `deleted_at`, `created_at`, `updated_at`, `email`, `phone`, `address`, `landing_id`) VALUES (1, NULL, '2019-03-06 04:42:55', '2019-03-06 04:42:55', 'lisi@lisi.ge', '+958875 67815', 'Bolsunovska 13-15, Kiev', 1), (2, NULL, '2019-03-06 08:43:58', '2019-03-06 08:43:58', 'kokhta@kokhta.ge', '+995778822', 'bakuriani', 2); -- -------------------------------------------------------- -- -- Table structure for table `landing_homes` -- DROP TABLE IF EXISTS `landing_homes`; CREATE TABLE IF NOT EXISTS `landing_homes` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `image` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `landing_homes_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `landing_homes` -- INSERT INTO `landing_homes` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `landing_id`, `image`) VALUES (1, NULL, '2019-03-05 06:57:11', '2019-03-06 04:22:33', 'LIsi is perfect', 'ქართულად ლისი', 1, 6), (2, NULL, '2019-03-06 03:30:44', '2019-03-06 08:44:29', 'landing kokhta', 'kokhta text', 2, 8); -- -------------------------------------------------------- -- -- Table structure for table `landing_socials` -- DROP TABLE IF EXISTS `landing_socials`; CREATE TABLE IF NOT EXISTS `landing_socials` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `facebook` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `twitter` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `instagram` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `youtube` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `landing_socials_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `landing_socials` -- INSERT INTO `landing_socials` (`id`, `deleted_at`, `created_at`, `updated_at`, `facebook`, `twitter`, `instagram`, `youtube`, `email`, `landing_id`) VALUES (1, NULL, '2019-03-05 08:36:26', '2019-03-05 08:36:26', 'https://www.facebook.com/Lisi.Development/', 'https://www.facebook.com/Lisi.Development/', 'https://www.facebook.com/Lisi.Development/', 'https://www.facebook.com/Lisi.Development/', 'https://www.facebook.com/Lisi.Development/', 1); -- -------------------------------------------------------- -- -- Table structure for table `la_configs` -- DROP TABLE IF EXISTS `la_configs`; CREATE TABLE IF NOT EXISTS `la_configs` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `key` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `section` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `la_configs` -- INSERT INTO `la_configs` (`id`, `key`, `section`, `value`, `created_at`, `updated_at`) VALUES (1, 'sitename', '', 'Admin', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (2, 'sitename_part1', '', 'Admin', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (3, 'sitename_part2', '', 'Skeleton', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (4, 'sitename_short', '', 'AS', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (5, 'site_description', '', 'Admin Panel Description', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (6, 'sidebar_search', '', '1', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (7, 'show_messages', '', '1', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (8, 'show_notifications', '', '1', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (9, 'show_tasks', '', '1', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (10, 'show_rightsidebar', '', '1', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (11, 'skin', '', 'skin-white', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (12, 'layout', '', 'fixed', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (13, 'default_email', '', 'test@example.com', '2019-02-22 06:24:06', '2019-02-22 06:24:06'); -- -------------------------------------------------------- -- -- Table structure for table `la_menus` -- DROP TABLE IF EXISTS `la_menus`; CREATE TABLE IF NOT EXISTS `la_menus` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `url` varchar(256) COLLATE utf8_unicode_ci NOT NULL, `icon` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'fa-cube', `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'module', `parent` int(10) UNSIGNED NOT NULL DEFAULT '0', `hierarchy` int(10) UNSIGNED NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `la_menus` -- INSERT INTO `la_menus` (`id`, `name`, `url`, `icon`, `type`, `parent`, `hierarchy`, `created_at`, `updated_at`) VALUES (1, 'Team', '#', 'fa-group', 'custom', 0, 1, '2019-02-22 06:24:05', '2019-02-22 06:24:05'), (2, 'Users', 'users', 'fa-group', 'module', 1, 0, '2019-02-22 06:24:05', '2019-02-22 06:24:05'), (3, 'Uploads', 'uploads', 'fa-files-o', 'module', 0, 0, '2019-02-22 06:24:05', '2019-02-22 06:24:05'), (4, 'Departments', 'departments', 'fa-tags', 'module', 1, 0, '2019-02-22 06:24:05', '2019-02-22 06:24:05'), (5, 'Employees', 'employees', 'fa-group', 'module', 1, 0, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (6, 'Roles', 'roles', 'fa-user-plus', 'module', 1, 0, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (7, 'Permissions', 'permissions', 'fa-magic', 'module', 1, 0, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (8, 'Tests', 'tests', 'fa fa-cube', 'module', 0, 0, '2019-02-22 06:29:20', '2019-02-22 06:29:20'), (11, 'Navigations', 'navigations', 'fa fa-cube', 'module', 0, 0, '2019-02-22 06:59:00', '2019-02-22 06:59:00'), (12, 'Home_sliders', 'home_sliders', 'fa fa-cube', 'module', 0, 0, '2019-02-22 07:08:10', '2019-02-22 07:08:10'), (14, 'Green_zones', 'green_zones', 'fa fa-cube', 'module', 0, 0, '2019-02-22 07:14:32', '2019-02-22 07:14:32'), (15, 'Catalogs', 'catalogs', 'fa fa-cube', 'module', 0, 0, '2019-02-22 07:27:14', '2019-02-22 07:27:14'), (16, 'Company_views', 'company_views', 'fa fa-cube', 'module', 0, 0, '2019-02-22 07:34:47', '2019-02-22 07:34:47'), (18, 'Teams', 'teams', 'fa fa-cube', 'module', 0, 0, '2019-02-22 08:10:03', '2019-02-22 08:10:03'), (19, 'Projects', 'projects', 'fa fa-cube', 'module', 0, 0, '2019-02-22 08:13:18', '2019-02-22 08:13:18'), (20, 'Blocks', 'blocks', 'fa fa-cube', 'module', 0, 0, '2019-02-22 08:25:32', '2019-02-22 08:25:32'), (21, 'Floors', 'floors', 'fa fa-cube', 'module', 0, 0, '2019-02-22 08:53:06', '2019-02-22 08:53:06'), (22, 'Aparatmnets', 'aparatmnets', 'fa fa-cube', 'module', 0, 0, '2019-02-22 08:57:16', '2019-02-22 08:57:16'), (23, 'Tags', 'tags', 'fa fa-tags', 'module', 0, 0, '2019-02-26 05:23:10', '2019-02-26 05:23:10'), (24, 'Text_Images', 'text_images', 'fa fa-cube', 'module', 0, 0, '2019-02-26 06:10:59', '2019-02-26 06:10:59'), (25, 'Landings', 'landings', 'fa fa-cube', 'module', 0, 0, '2019-02-27 03:00:37', '2019-02-27 03:00:37'), (29, 'Landing_Homes', 'landing_homes', 'fa fa-cube', 'module', 0, 0, '2019-03-05 06:56:38', '2019-03-05 06:56:38'), (30, 'Seasons', 'seasons', 'fa fa-cube', 'module', 0, 0, '2019-03-05 07:50:57', '2019-03-05 07:50:57'), (31, 'About_projects', 'about_projects', 'fa fa-cube', 'module', 0, 0, '2019-03-05 08:09:49', '2019-03-05 08:09:49'), (32, 'Landing_socials', 'landing_socials', 'fa fa-cube', 'module', 0, 0, '2019-03-05 08:35:27', '2019-03-05 08:35:27'), (34, 'Landing_footers', 'landing_footers', 'fa fa-cube', 'module', 0, 0, '2019-03-06 04:42:28', '2019-03-06 04:42:28'), (35, 'Project_infos', 'project_infos', 'fa fa-cube', 'module', 0, 0, '2019-03-06 05:09:50', '2019-03-06 05:09:50'), (36, 'Project_summaries', 'project_summaries', 'fa fa-cube', 'module', 0, 0, '2019-03-06 07:10:31', '2019-03-06 07:10:31'), (37, 'Landing_apartments', 'landing_apartments', 'fa fa-cube', 'module', 0, 0, '2019-03-06 08:24:21', '2019-03-06 08:24:21'), (38, 'Callbacks', 'callbacks', 'fa fa-cube', 'module', 0, 0, '2019-03-11 05:53:42', '2019-03-11 05:53:42'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(191) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_05_26_050000_create_modules_table', 1), (2, '2014_05_26_055000_create_module_field_types_table', 1), (3, '2014_05_26_060000_create_module_fields_table', 1), (4, '2014_10_12_000000_create_users_table', 1), (5, '2014_10_12_100000_create_password_resets_table', 1), (6, '2014_12_01_000000_create_uploads_table', 1), (7, '2016_05_26_064006_create_departments_table', 1), (8, '2016_05_26_064007_create_employees_table', 1), (9, '2016_05_26_064446_create_roles_table', 1), (10, '2016_07_05_115343_create_role_user_table', 1), (11, '2016_07_07_134058_create_backups_table', 1), (12, '2016_07_07_134058_create_menus_table', 1), (13, '2016_09_10_163337_create_permissions_table', 1), (14, '2016_09_10_163520_create_permission_role_table', 1), (15, '2016_09_22_105958_role_module_fields_table', 1), (16, '2016_09_22_110008_role_module_table', 1), (17, '2016_10_06_115413_create_la_configs_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `modules` -- DROP TABLE IF EXISTS `modules`; CREATE TABLE IF NOT EXISTS `modules` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `name_db` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `view_col` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `model` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `controller` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `fa_icon` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'fa-cube', `is_gen` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `modules` -- INSERT INTO `modules` (`id`, `name`, `label`, `name_db`, `view_col`, `model`, `controller`, `fa_icon`, `is_gen`, `created_at`, `updated_at`) VALUES (1, 'Users', 'Users', 'users', 'name', 'User', 'UsersController', 'fa-group', 1, '2019-02-22 06:24:03', '2019-02-22 06:24:06'), (2, 'Uploads', 'Uploads', 'uploads', 'name', 'Upload', 'UploadsController', 'fa-files-o', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (3, 'Departments', 'Departments', 'departments', 'name', 'Department', 'DepartmentsController', 'fa-tags', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (4, 'Employees', 'Employees', 'employees', 'name', 'Employee', 'EmployeesController', 'fa-group', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (5, 'Roles', 'Roles', 'roles', 'name', 'Role', 'RolesController', 'fa-user-plus', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (6, 'Backups', 'Backups', 'backups', 'name', 'Backup', 'BackupsController', 'fa-hdd-o', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (7, 'Permissions', 'Permissions', 'permissions', 'name', 'Permission', 'PermissionsController', 'fa-magic', 1, '2019-02-22 06:24:04', '2019-02-22 06:24:06'), (9, 'Tests', 'Tests', 'tests', 'title', 'Test', 'TestsController', 'fa-cube', 1, '2019-02-22 06:28:53', '2019-02-22 06:29:20'), (16, 'Navigations', 'Navigations', 'navigations', 'menu_ka', 'Navigation', 'NavigationsController', 'fa-cube', 1, '2019-02-22 06:51:16', '2019-02-22 06:59:00'), (17, 'Home_sliders', 'Home_sliders', 'home_sliders', 'text_ka', 'Home_slider', 'Home_slidersController', 'fa-cube', 1, '2019-02-22 07:05:08', '2019-02-22 07:08:10'), (19, 'Green_zones', 'Green_zones', 'green_zones', 'title_ka', 'Green_zone', 'Green_zonesController', 'fa-cube', 1, '2019-02-22 07:13:03', '2019-02-22 07:14:32'), (20, 'Catalogs', 'Catalogs', 'catalogs', 'text_ka', 'Catalog', 'CatalogsController', 'fa-cube', 1, '2019-02-22 07:24:14', '2019-02-22 07:27:14'), (21, 'Company_views', 'Company_views', 'company_views', 'text_ka', 'Company_view', 'Company_viewsController', 'fa-cube', 1, '2019-02-22 07:32:26', '2019-02-22 07:34:47'), (23, 'Teams', 'Teams', 'teams', 'fullname_ka', 'Team', 'TeamsController', 'fa-cube', 1, '2019-02-22 07:50:07', '2019-02-22 08:10:03'), (24, 'Projects', 'Projects', 'projects', 'title_ka', 'Project', 'ProjectsController', 'fa-cube', 1, '2019-02-22 08:10:48', '2019-02-25 08:52:25'), (25, 'Blocks', 'Blocks', 'blocks', 'title_ka', 'Block', 'BlocksController', 'fa-cube', 1, '2019-02-22 08:18:57', '2019-02-22 08:25:32'), (26, 'Floors', 'Floors', 'floors', 'title_ka', 'Floor', 'FloorsController', 'fa-cube', 1, '2019-02-22 08:42:58', '2019-02-22 08:53:06'), (27, 'Aparatmnets', 'Aparatmnets', 'aparatmnets', 'block_id', 'Aparatmnet', 'AparatmnetsController', 'fa-cube', 1, '2019-02-22 08:53:48', '2019-02-25 05:24:56'), (28, 'Tags', 'Tags', 'tags', 'title', 'Tag', 'TagsController', 'fa-tags', 1, '2019-02-26 05:22:32', '2019-02-26 05:23:10'), (29, 'Text_Images', 'Text_Images', 'text_images', 'title_ka', 'Text_Image', 'Text_ImagesController', 'fa-cube', 1, '2019-02-26 06:08:01', '2019-02-26 06:10:59'), (30, 'Landings', 'Landings', 'landings', 'title', 'Landing', 'LandingsController', 'fa-cube', 1, '2019-02-27 02:59:12', '2019-02-27 03:06:23'), (34, 'Landing_Homes', 'Landing_Homes', 'landing_homes', 'title_ka', 'Landing_Home', 'Landing_HomesController', 'fa-cube', 1, '2019-03-05 06:55:08', '2019-03-05 06:56:38'), (35, 'Seasons', 'Seasons', 'seasons', 'title_ka', 'Season', 'SeasonsController', 'fa-cube', 1, '2019-03-05 07:49:35', '2019-03-05 07:50:57'), (36, 'About_projects', 'About_projects', 'about_projects', 'title_ka', 'About_project', 'About_projectsController', 'fa-cube', 1, '2019-03-05 08:08:40', '2019-03-05 08:09:49'), (37, 'Landing_socials', 'Landing_socials', 'landing_socials', 'facebook', 'Landing_social', 'Landing_socialsController', 'fa-cube', 1, '2019-03-05 08:33:34', '2019-03-05 08:35:27'), (39, 'Landing_footers', 'Landing_footers', 'landing_footers', 'email', 'Landing_footer', 'Landing_footersController', 'fa-cube', 1, '2019-03-06 04:40:48', '2019-03-06 04:42:28'), (40, 'Project_infos', 'Project_infos', 'project_infos', 'title_ka', 'Project_info', 'Project_infosController', 'fa-cube', 1, '2019-03-06 05:07:21', '2019-03-06 05:09:50'), (41, 'Project_summaries', 'Project_summaries', 'project_summaries', 'title_ka', 'Project_summary', 'Project_summariesController', 'fa-cube', 1, '2019-03-06 07:03:30', '2019-03-06 07:10:31'), (42, 'Landing_apartments', 'Landing_apartments', 'landing_apartments', 'title_ka', 'Landing_apartment', 'Landing_apartmentsController', 'fa-cube', 1, '2019-03-06 08:20:26', '2019-03-06 08:24:21'), (43, 'Callbacks', 'Callbacks', 'callbacks', 'firstname', 'Callback', 'CallbacksController', 'fa-cube', 1, '2019-03-11 05:51:50', '2019-03-11 05:53:42'); -- -------------------------------------------------------- -- -- Table structure for table `module_fields` -- DROP TABLE IF EXISTS `module_fields`; CREATE TABLE IF NOT EXISTS `module_fields` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `colname` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `label` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `module` int(10) UNSIGNED NOT NULL, `field_type` int(10) UNSIGNED NOT NULL, `unique` tinyint(1) NOT NULL DEFAULT '0', `defaultvalue` varchar(191) COLLATE utf8_unicode_ci NOT NULL, `minlength` int(10) UNSIGNED NOT NULL DEFAULT '0', `maxlength` int(10) UNSIGNED NOT NULL DEFAULT '0', `required` tinyint(1) NOT NULL DEFAULT '0', `popup_vals` text COLLATE utf8_unicode_ci NOT NULL, `sort` int(10) UNSIGNED NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `module_fields_module_foreign` (`module`), KEY `module_fields_field_type_foreign` (`field_type`) ) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `module_fields` -- INSERT INTO `module_fields` (`id`, `colname`, `label`, `module`, `field_type`, `unique`, `defaultvalue`, `minlength`, `maxlength`, `required`, `popup_vals`, `sort`, `created_at`, `updated_at`) VALUES (1, 'name', 'Name', 1, 16, 0, '', 5, 250, 1, '', 0, '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (2, 'context_id', 'Context', 1, 13, 0, '0', 0, 0, 0, '', 0, '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (3, 'email', 'Email', 1, 8, 1, '', 0, 250, 0, '', 0, '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (4, 'password', 'Password', 1, 17, 0, '', 6, 250, 1, '', 0, '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (5, 'type', 'User Type', 1, 7, 0, 'Employee', 0, 0, 0, '[\"Employee\",\"Client\"]', 0, '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (6, 'name', 'Name', 2, 16, 0, '', 5, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (7, 'path', 'Path', 2, 19, 0, '', 0, 250, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (8, 'extension', 'Extension', 2, 19, 0, '', 0, 20, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (9, 'user_id', 'Owner', 2, 7, 0, '1', 0, 0, 0, '@users', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (10, 'public', 'Is Public', 2, 2, 0, '0', 0, 0, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (11, 'type', 'Type', 2, 13, 0, '0', 0, 20, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (12, 'size', 'Size', 2, 22, 0, '', 0, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (13, 'url', 'Url', 2, 19, 0, '', 0, 250, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (14, 'name', 'Name', 3, 16, 1, '', 1, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (15, 'tags', 'Tags', 3, 20, 0, '[]', 0, 0, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (16, 'color', 'Color', 3, 19, 0, '', 0, 50, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (17, 'name', 'Name', 4, 16, 0, '', 5, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (18, 'designation', 'Designation', 4, 19, 0, '', 0, 50, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (19, 'gender', 'Gender', 4, 18, 0, 'Male', 0, 0, 1, '[\"Male\",\"Female\"]', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (20, 'email', 'Email', 4, 8, 1, '', 5, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (21, 'dept', 'Department', 4, 7, 0, '0', 0, 0, 1, '@departments', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (22, 'name', 'Name', 5, 16, 1, '', 1, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (23, 'display_name', 'Display Name', 5, 19, 0, '', 0, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (24, 'description', 'Description', 5, 21, 0, '', 0, 1000, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (25, 'parent', 'Parent Role', 5, 7, 0, '1', 0, 0, 0, '@roles', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (26, 'dept', 'Department', 5, 7, 0, '1', 0, 0, 0, '@departments', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (27, 'name', 'Name', 6, 16, 1, '', 0, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (28, 'file_name', 'File Name', 6, 19, 1, '', 0, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (29, 'backup_size', 'File Size', 6, 19, 0, '0', 0, 10, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (30, 'name', 'Name', 7, 16, 1, '', 1, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (31, 'display_name', 'Display Name', 7, 19, 0, '', 0, 250, 1, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (32, 'description', 'Description', 7, 21, 0, '', 0, 1000, 0, '', 0, '2019-02-22 06:24:04', '2019-02-22 06:24:04'), (35, 'title', 'title', 9, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 06:29:05', '2019-02-22 06:29:05'), (36, 'new_field', 'new_field', 9, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 06:30:23', '2019-02-22 06:30:23'), (49, 'menu', 'menu', 9, 15, 0, '', 0, 0, 0, '[\"header\",\"burger\",\"footer\"]', 0, '2019-02-22 06:46:11', '2019-02-22 06:49:47'), (50, 'menu_ka', 'menu ka', 16, 19, 0, '', 0, 256, 1, '', 0, '2019-02-22 06:57:19', '2019-02-22 06:57:19'), (51, 'menu_en', 'menu en', 16, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 06:57:36', '2019-02-22 06:57:36'), (52, 'menu_ru', 'menu ru', 16, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 06:57:51', '2019-02-22 06:57:51'), (53, 'active', 'Active', 16, 2, 0, 'true', 0, 0, 0, '', 0, '2019-02-22 06:58:12', '2019-02-22 07:01:10'), (54, 'menu_location', 'menu location', 16, 15, 0, '', 0, 0, 0, '[\"Menu\",\"Burger\",\"Footer\"]', 0, '2019-02-22 06:59:49', '2019-02-25 04:00:50'), (55, 'text_ka', 'text ka', 17, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:05:30', '2019-02-22 07:05:30'), (56, 'text_en', 'text en', 17, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:06:09', '2019-02-22 07:06:09'), (57, 'text_ru', 'text ru', 17, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:06:27', '2019-02-22 07:06:27'), (58, 'image_id', 'Image', 17, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:07:52', '2019-02-25 07:45:48'), (63, 'title_ka', 'Title ka', 19, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:13:24', '2019-02-22 07:13:24'), (64, 'title_en', 'Title en', 19, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:13:38', '2019-02-22 07:13:38'), (65, 'title_ru', 'Title ru', 19, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:13:55', '2019-02-22 07:13:55'), (66, 'image', 'Image', 19, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:14:09', '2019-02-22 07:14:09'), (67, 'active', 'Active', 19, 2, 0, 'false', 0, 0, 0, '', 0, '2019-02-22 07:14:22', '2019-02-22 07:14:22'), (68, 'active', 'Active', 17, 2, 0, 'false', 0, 0, 1, '', 0, '2019-02-22 07:15:59', '2019-02-22 07:15:59'), (69, 'text_ka', 'Catalog Title ka', 20, 21, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:24:54', '2019-02-22 07:25:46'), (70, 'text_en', 'Catalog Title en', 20, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:26:05', '2019-02-22 07:26:05'), (71, 'text_ru', 'Catalog Title ru', 20, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:26:25', '2019-02-22 07:26:25'), (72, 'image', 'Image', 20, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:26:43', '2019-02-22 07:26:43'), (73, 'active', 'Active', 20, 2, 0, 'false', 0, 0, 0, '', 0, '2019-02-22 07:27:04', '2019-02-22 07:27:04'), (74, 'text_ka', 'Company View Text ka', 21, 22, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:33:04', '2019-02-22 07:33:04'), (75, 'text_en', 'Company View Text en', 21, 22, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:33:28', '2019-02-22 07:33:28'), (76, 'text_ru', 'Company View Text ru', 21, 22, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:33:49', '2019-02-22 07:33:49'), (77, 'image', 'Image', 21, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 07:34:08', '2019-02-22 07:34:08'), (78, 'active', 'Active', 21, 2, 0, 'true', 0, 0, 0, '', 0, '2019-02-22 07:34:30', '2019-02-22 07:34:30'), (84, 'fullname_ka', 'Full name ka', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:50:59', '2019-02-22 07:50:59'), (85, 'full_name en', 'Full name en', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:53:15', '2019-02-22 07:53:15'), (86, 'Full name ru', 'Full name ru', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 07:53:27', '2019-02-22 07:53:27'), (87, 'image', 'Image', 23, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:08:41', '2019-02-22 08:08:41'), (88, 'position_ka', 'Position ka', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:09:00', '2019-02-22 08:09:00'), (89, 'position_en', 'Position en', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:09:16', '2019-02-22 08:09:16'), (90, 'position_ru', 'Position ru', 23, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:09:37', '2019-02-22 08:09:37'), (91, 'active', 'Active', 23, 2, 0, 'true', 0, 0, 1, '', 0, '2019-02-22 08:09:54', '2019-02-22 08:09:54'), (92, 'title_ka', 'Title ka', 24, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:11:18', '2019-02-22 08:11:18'), (93, 'title_en', 'Title en', 24, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:11:28', '2019-02-22 08:11:28'), (94, 'title_ru', 'Title ru', 24, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:11:44', '2019-02-22 08:11:44'), (95, 'text_ka', 'Text ka', 24, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:12:12', '2019-02-22 08:12:12'), (96, 'text_en', 'Text en', 24, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:12:28', '2019-02-22 08:12:28'), (97, 'text_ru', 'Text ru', 24, 21, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:12:51', '2019-02-22 08:12:51'), (98, 'image', 'Image', 24, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:13:10', '2019-02-22 08:13:10'), (99, 'title_ka', 'Block Title ka', 25, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:19:24', '2019-02-22 08:19:24'), (100, 'title_en', 'Block Title en', 25, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:19:45', '2019-02-22 08:19:45'), (101, 'title_ru', 'Block Title ru', 25, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:19:54', '2019-02-22 08:19:54'), (102, 'image', 'Image', 25, 12, 0, '', 0, 0, 0, '', 0, '2019-02-22 08:24:29', '2019-02-22 08:24:29'), (103, 'project_id', 'Project', 25, 7, 0, '', 0, 0, 0, '@projects', 0, '2019-02-22 08:25:05', '2019-02-22 08:25:05'), (104, 'active', 'Active', 25, 2, 0, 'true', 0, 0, 0, '', 0, '2019-02-22 08:25:24', '2019-02-22 08:25:24'), (105, 'floors', 'Floors', 25, 13, 0, '', 0, 11, 0, '', 0, '2019-02-22 08:28:49', '2019-02-22 08:28:49'), (106, 'title_ka', 'Floor ka', 26, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:50:16', '2019-02-22 08:50:16'), (107, 'title_en', 'Floor en', 26, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:50:48', '2019-02-22 08:50:48'), (108, 'title_ru', 'Floor ru', 26, 19, 0, '', 0, 256, 0, '', 0, '2019-02-22 08:50:59', '2019-02-22 08:50:59'), (111, 'title_ka', 'Title ka', 27, 19, 0, '', 0, 256, 0, '', 1, '2019-02-22 08:54:33', '2019-02-22 08:55:04'), (112, 'title_en', 'Title en', 27, 19, 0, '', 0, 256, 0, '', 2, '2019-02-22 08:55:15', '2019-02-22 08:55:15'), (113, 'title_ru', 'Title ru', 27, 19, 0, '', 0, 256, 0, '', 3, '2019-02-22 08:55:28', '2019-02-22 08:55:28'), (114, 'space', 'Space', 27, 13, 0, '', 0, 11, 0, '', 5, '2019-02-22 08:56:10', '2019-02-22 08:56:10'), (116, 'active', 'Sold', 27, 2, 0, 'true', 0, 0, 0, '', 6, '2019-02-22 08:57:04', '2019-02-22 08:57:04'), (117, 'rooms', 'Rooms', 27, 15, 0, '', 0, 0, 0, '[\"bedroom\",\"kitchen\",\"balcony\",\"toilet\"]', 7, '2019-02-22 08:59:43', '2019-02-22 08:59:43'), (120, 'floor', 'Floor', 27, 7, 0, '', 0, 0, 0, '@floors', 4, '2019-02-25 05:18:31', '2019-02-25 05:18:31'), (122, 'slug', 'Slug', 24, 19, 0, '', 0, 256, 0, '', 0, '2019-02-25 08:52:13', '2019-02-25 08:52:13'), (123, 'title', 'Name', 28, 19, 1, '', 0, 256, 1, '', 0, '2019-02-26 05:22:55', '2019-02-26 05:22:55'), (124, 'tag_id', 'Tag', 19, 7, 0, '', 0, 0, 0, '@tags', 0, '2019-02-26 05:26:04', '2019-02-26 05:26:04'), (125, 'title_ka', 'Title', 29, 19, 0, '', 0, 256, 0, '', 0, '2019-02-26 06:08:19', '2019-02-26 06:08:19'), (126, 'title_en', 'Title en', 29, 19, 0, '', 0, 256, 0, '', 0, '2019-02-26 06:08:33', '2019-02-26 06:08:33'), (127, 'title_ru', 'Title ru', 29, 19, 0, '', 0, 256, 0, '', 0, '2019-02-26 06:08:50', '2019-02-26 06:08:50'), (128, 'text_ka', 'Text', 29, 21, 0, '', 0, 0, 0, '', 0, '2019-02-26 06:09:10', '2019-02-26 06:09:10'), (129, 'text_en', 'text en', 29, 21, 0, '', 0, 0, 0, '', 0, '2019-02-26 06:09:23', '2019-02-26 06:09:23'), (130, 'text_ru', 'Text ru', 29, 21, 0, '', 0, 0, 0, '', 0, '2019-02-26 06:09:39', '2019-02-26 06:09:39'), (131, 'image', 'Image', 29, 12, 0, '', 0, 0, 0, '', 0, '2019-02-26 06:09:50', '2019-02-26 06:09:50'), (132, 'active', 'Active', 29, 2, 0, 'true', 0, 0, 0, '', 0, '2019-02-26 06:10:08', '2019-02-26 06:10:08'), (133, 'tag_id', 'Tag', 29, 7, 0, '', 0, 256, 0, '@tags', 0, '2019-02-26 06:10:48', '2019-02-26 06:13:36'), (142, 'title', 'Title', 30, 19, 0, '', 0, 256, 0, '', 1, '2019-02-27 03:06:07', '2019-02-27 03:06:07'), (143, 'landing_home', 'Landing_home', 30, 2, 0, 'true', 0, 0, 0, '', 2, '2019-02-27 05:18:23', '2019-03-05 07:13:32'), (147, 'title_ka', 'Title', 34, 19, 0, '', 0, 256, 0, '', 1, '2019-03-05 06:55:45', '2019-03-05 06:55:45'), (148, 'text_ka', 'Text', 34, 21, 0, '', 0, 0, 0, '', 2, '2019-03-05 06:55:58', '2019-03-05 06:55:58'), (149, 'landing_id', 'Landing', 34, 7, 0, '', 0, 0, 0, '@landings', 4, '2019-03-05 06:56:30', '2019-03-05 06:56:30'), (150, 'title_ka', 'Title', 35, 19, 0, '', 0, 256, 0, '', 1, '2019-03-05 07:49:56', '2019-03-05 07:49:56'), (151, 'text_ka', 'Text', 35, 21, 0, '', 0, 0, 0, '', 2, '2019-03-05 07:50:08', '2019-03-05 07:50:08'), (152, 'landing_id', 'Landing', 35, 7, 0, '', 0, 0, 0, '@landings', 4, '2019-03-05 07:50:41', '2019-03-05 07:50:41'), (153, 'season', 'Season', 30, 2, 0, 'true', 0, 0, 0, '', 3, '2019-03-05 07:52:02', '2019-03-05 08:15:49'), (154, 'about_project', 'About Project', 30, 2, 0, 'true', 0, 0, 0, '', 4, '2019-03-05 07:52:56', '2019-03-05 07:52:56'), (155, 'project_info', 'Project Info', 30, 2, 0, 'true', 0, 0, 0, '', 5, '2019-03-05 07:53:17', '2019-03-05 07:53:17'), (156, 'project_summary', 'Project Summary', 30, 2, 0, 'true', 0, 0, 0, '', 6, '2019-03-05 07:53:50', '2019-03-05 07:53:50'), (157, 'landing_apartment', 'Landing Apartment', 30, 2, 0, 'true', 0, 0, 0, '', 7, '2019-03-05 07:54:08', '2019-03-06 08:16:51'), (158, 'footer', 'Footer', 30, 2, 0, 'true', 0, 0, 0, '', 8, '2019-03-05 07:54:27', '2019-03-05 07:54:27'), (159, 'title_ka', 'Title', 36, 19, 0, '', 0, 256, 0, '', 1, '2019-03-05 08:08:58', '2019-03-05 08:08:58'), (160, 'text_ka', 'Text', 36, 21, 0, '', 0, 0, 0, '', 2, '2019-03-05 08:09:09', '2019-03-05 08:09:09'), (161, 'image', 'Image', 36, 12, 0, '', 0, 0, 0, '', 3, '2019-03-05 08:09:21', '2019-03-05 08:09:21'), (162, 'landing_id', 'Landing', 36, 7, 0, '', 0, 0, 0, '@landings', 5, '2019-03-05 08:09:39', '2019-03-05 08:09:39'), (163, 'facebook', 'Facebook', 37, 19, 0, '', 0, 256, 0, '', 0, '2019-03-05 08:34:05', '2019-03-05 08:34:05'), (164, 'twitter', 'Twitter', 37, 19, 0, '', 0, 256, 0, '', 0, '2019-03-05 08:34:19', '2019-03-05 08:44:22'), (165, 'instagram', 'Instagram', 37, 19, 0, '', 0, 256, 0, '', 0, '2019-03-05 08:34:39', '2019-03-05 08:34:39'), (166, 'youtube', 'Youtube', 37, 19, 0, '', 0, 256, 0, '', 0, '2019-03-05 08:35:02', '2019-03-05 08:35:02'), (167, 'email', 'Email', 37, 19, 0, '', 0, 256, 0, '', 0, '2019-03-05 08:35:19', '2019-03-05 08:35:19'), (168, 'landing_id', 'Landing', 37, 7, 0, '', 0, 0, 0, '@landings', 0, '2019-03-05 08:37:14', '2019-03-05 08:37:14'), (169, 'image', 'Image', 34, 12, 0, '', 0, 256, 0, '', 3, '2019-03-06 04:21:46', '2019-03-06 04:21:56'), (170, 'image', 'Image', 35, 12, 0, '', 0, 0, 0, '', 3, '2019-03-06 04:23:54', '2019-03-06 04:23:54'), (171, 'link', 'Link', 36, 19, 0, '', 0, 256, 1, '', 4, '2019-03-06 04:32:20', '2019-03-06 04:32:42'), (176, 'email', 'Email', 39, 8, 0, '', 0, 256, 1, '', 0, '2019-03-06 04:41:02', '2019-03-06 04:41:02'), (177, 'phone', 'Phone', 39, 19, 0, '', 0, 256, 1, '', 0, '2019-03-06 04:41:16', '2019-03-06 04:41:16'), (178, 'address', 'Address', 39, 19, 0, '', 0, 256, 1, '', 0, '2019-03-06 04:41:30', '2019-03-06 04:41:30'), (179, 'landing_id', 'Landing', 39, 7, 0, '', 0, 0, 0, '@landings', 0, '2019-03-06 04:42:18', '2019-03-06 04:42:18'), (180, 'title_ka', 'Title', 40, 19, 0, '', 0, 256, 0, '', 0, '2019-03-06 05:08:00', '2019-03-06 05:08:00'), (181, 'text_ka', 'Text', 40, 21, 0, '', 0, 0, 0, '', 0, '2019-03-06 05:08:15', '2019-03-06 05:08:15'), (182, 'icon', 'Icon', 40, 22, 0, '', 0, 256, 0, '', 0, '2019-03-06 05:08:34', '2019-03-06 05:08:34'), (184, 'landing_id', 'Landing', 40, 7, 0, '', 0, 0, 0, '@landings', 0, '2019-03-06 05:09:36', '2019-03-06 05:09:36'), (185, 'title_ka', 'Title', 41, 19, 0, '', 0, 256, 0, '', 0, '2019-03-06 07:07:13', '2019-03-06 07:16:53'), (186, 'text_ka', 'Text', 41, 21, 0, '', 0, 0, 0, '', 0, '2019-03-06 07:07:27', '2019-03-06 07:07:27'), (187, 'sub_text', 'Sub Text', 41, 19, 0, '', 0, 256, 0, '', 0, '2019-03-06 07:08:21', '2019-03-06 07:14:50'), (188, 'prefix', 'Prefix', 41, 19, 0, '', 0, 3, 0, '', 0, '2019-03-06 07:08:44', '2019-03-06 07:08:44'), (189, 'number', 'Number', 41, 19, 0, '', 0, 256, 0, '', 0, '2019-03-06 07:09:32', '2019-03-06 07:14:40'), (190, 'sufix', 'Sufix', 41, 19, 0, '', 0, 3, 0, '', 0, '2019-03-06 07:09:46', '2019-03-06 07:09:46'), (191, 'landing_id', 'Landing', 41, 7, 0, '', 0, 0, 0, '@landings', 0, '2019-03-06 07:13:13', '2019-03-06 07:13:13'), (192, 'is_title', 'Is Title', 41, 2, 0, '0', 0, 0, 1, '', 0, '2019-03-06 07:13:54', '2019-03-06 07:16:25'), (193, 'title_ka', 'Title', 42, 19, 0, '', 0, 256, 0, '', 0, '2019-03-06 08:20:55', '2019-03-06 08:20:55'), (194, 'text_ka', 'Text', 42, 22, 0, '', 0, 256, 0, '', 0, '2019-03-06 08:22:07', '2019-03-06 08:22:07'), (195, 'image', 'Image', 42, 12, 0, '', 0, 0, 0, '', 0, '2019-03-06 08:23:40', '2019-03-06 08:23:40'), (196, 'landing_id', 'Landing', 42, 7, 0, '', 0, 0, 0, '@landings', 0, '2019-03-06 08:24:05', '2019-03-06 08:24:05'), (197, 'firstname', 'Name', 43, 19, 0, '', 0, 256, 0, '', 1, '2019-03-11 05:52:21', '2019-03-11 05:52:21'), (198, 'phone', 'Phone', 43, 19, 0, '', 0, 256, 0, '', 2, '2019-03-11 05:52:48', '2019-03-11 05:52:48'), (199, 'project', 'Project', 43, 19, 0, '', 0, 256, 0, '', 3, '2019-03-11 05:53:07', '2019-03-11 05:53:07'), (200, 'active', 'Contacted Back', 43, 2, 0, 'false', 0, 0, 0, '', 5, '2019-03-11 05:53:33', '2019-03-12 03:03:20'), (201, 'email', 'Email', 43, 8, 0, '', 0, 256, 0, '', 4, '2019-03-12 03:02:55', '2019-03-12 03:05:26'); -- -------------------------------------------------------- -- -- Table structure for table `module_field_types` -- DROP TABLE IF EXISTS `module_field_types`; CREATE TABLE IF NOT EXISTS `module_field_types` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `module_field_types` -- INSERT INTO `module_field_types` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Address', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (2, 'Checkbox', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (3, 'Currency', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (4, 'Date', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (5, 'Datetime', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (6, 'Decimal', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (7, 'Dropdown', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (8, 'Email', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (9, 'File', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (10, 'Float', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (11, 'HTML', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (12, 'Image', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (13, 'Integer', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (14, 'Mobile', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (15, 'Multiselect', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (16, 'Name', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (17, 'Password', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (18, 'Radio', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (19, 'String', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (20, 'Taginput', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (21, 'Textarea', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (22, 'TextField', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (23, 'URL', '2019-02-22 06:24:03', '2019-02-22 06:24:03'), (24, 'Files', '2019-02-22 06:24:03', '2019-02-22 06:24:03'); -- -------------------------------------------------------- -- -- Table structure for table `navigations` -- DROP TABLE IF EXISTS `navigations`; CREATE TABLE IF NOT EXISTS `navigations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `menu_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `menu_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `menu_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) DEFAULT '1', `menu_location` varchar(256) COLLATE utf8_unicode_ci DEFAULT '[]', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `navigations` -- INSERT INTO `navigations` (`id`, `deleted_at`, `created_at`, `updated_at`, `menu_ka`, `menu_en`, `menu_ru`, `active`, `menu_location`) VALUES (1, NULL, '2019-02-22 07:00:22', '2019-02-22 07:00:30', 'მთავარი', 'Home', NULL, 1, '[\"Menu\"]'), (2, NULL, '2019-02-22 07:02:10', '2019-02-22 07:03:17', 'ჩვენს შესახებ', 'About', NULL, 1, '[\"Menu\"]'), (3, NULL, '2019-02-22 07:02:23', '2019-02-25 04:01:10', 'ბურგერ', 'BUrger', NULL, 1, '[\"Burger\"]'), (4, NULL, '2019-02-22 07:02:37', '2019-02-25 04:01:22', 'ბურგერ მენუ', 'BUrger 3', NULL, 1, '[\"Menu\",\"Burger\"]'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(191) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- DROP TABLE IF EXISTS `permissions`; CREATE TABLE IF NOT EXISTS `permissions` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `display_name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `description` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `permissions_name_unique` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `display_name`, `description`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'ADMIN_PANEL', 'Admin Panel', 'Admin Panel Permission', NULL, '2019-02-22 06:24:06', '2019-02-22 06:24:06'); -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- DROP TABLE IF EXISTS `permission_role`; CREATE TABLE IF NOT EXISTS `permission_role` ( `permission_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`permission_id`,`role_id`), KEY `permission_role_role_id_foreign` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `permission_role` -- INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES (1, 1), (1, 2); -- -------------------------------------------------------- -- -- Table structure for table `projects` -- DROP TABLE IF EXISTS `projects`; CREATE TABLE IF NOT EXISTS `projects` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `text_en` text COLLATE utf8_unicode_ci, `text_ru` text COLLATE utf8_unicode_ci, `image` int(11) DEFAULT NULL, `slug` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `projects` -- INSERT INTO `projects` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `title_en`, `title_ru`, `text_ka`, `text_en`, `text_ru`, `image`, `slug`) VALUES (1, NULL, '2019-02-22 08:26:14', '2019-02-25 08:58:29', 'lisi greens', 'lisi greens english', NULL, NULL, NULL, NULL, 4, 'lisi-greens'), (2, NULL, '2019-02-22 09:00:39', '2019-02-25 08:58:36', 'lisi kokhta', NULL, NULL, NULL, NULL, NULL, 0, 'lisi-kokhta'); -- -------------------------------------------------------- -- -- Table structure for table `project_infos` -- DROP TABLE IF EXISTS `project_infos`; CREATE TABLE IF NOT EXISTS `project_infos` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `icon` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `project_infos_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `project_infos` -- INSERT INTO `project_infos` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `icon`, `landing_id`) VALUES (1, NULL, '2019-03-06 05:10:43', '2019-03-06 05:10:43', 'About Project', 'text herere', '<i class=\"fas fa-air-freshener\"></i>', 1), (2, NULL, '2019-03-06 05:11:00', '2019-03-06 05:11:00', 'About 2', 'lorme text', '<i class=\"fas fa-air-freshener\"></i>', 1), (3, NULL, '2019-03-06 05:11:23', '2019-03-06 05:11:23', 'about 3', 'lorem dolares ipsum', '<i class=\"fas fa-air-freshener\"></i>', 1); -- -------------------------------------------------------- -- -- Table structure for table `project_summaries` -- DROP TABLE IF EXISTS `project_summaries`; CREATE TABLE IF NOT EXISTS `project_summaries` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `text_ka` text COLLATE utf8_unicode_ci, `sub_text` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `prefix` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `number` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', `sufix` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `is_title` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `project_summaries_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `project_summaries` -- INSERT INTO `project_summaries` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `sub_text`, `prefix`, `number`, `sufix`, `landing_id`, `is_title`) VALUES (1, NULL, '2019-03-06 07:11:19', '2019-03-06 07:15:18', 'Summary', 'long text for title', 'small text with numbers', '$', '1', NULL, 1, 1), (2, NULL, '2019-03-06 07:17:23', '2019-03-07 05:34:00', '', NULL, 'Грузии был оформлен', '$', '1', NULL, 1, 0), (3, NULL, '2019-03-06 07:17:42', '2019-03-06 07:17:42', '', NULL, 'again small 2', NULL, '150', 'k', 1, 0), (4, NULL, '2019-03-06 07:17:57', '2019-03-06 07:17:57', '', NULL, 'sub text of three', NULL, '500', NULL, 1, 0), (5, NULL, '2019-03-06 07:18:12', '2019-03-06 07:18:12', '', NULL, 'three more and', NULL, '166', 'k', 1, 0), (6, NULL, '2019-03-06 07:18:30', '2019-03-06 07:18:30', '', NULL, 'two more and', '$', '500', NULL, 1, 0), (7, '2019-03-07 04:45:13', '2019-03-06 07:18:49', '2019-03-07 04:45:13', '', NULL, 'last one i think', NULL, '80', NULL, 1, 0), (8, NULL, '2019-03-07 04:45:29', '2019-03-07 04:45:29', '', NULL, 'sub text', '$', '150', NULL, 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- DROP TABLE IF EXISTS `roles`; CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `display_name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `description` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL, `parent` int(10) UNSIGNED NOT NULL DEFAULT '1', `dept` int(10) UNSIGNED NOT NULL DEFAULT '1', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `roles_name_unique` (`name`), KEY `roles_parent_foreign` (`parent`), KEY `roles_dept_foreign` (`dept`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `parent`, `dept`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'SUPER_ADMIN', 'Super Admin', 'Full Access Role', 1, 1, NULL, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (2, 'ADMIN', 'admin', NULL, 1, 1, NULL, '2019-02-22 06:28:33', '2019-02-22 06:28:33'); -- -------------------------------------------------------- -- -- Table structure for table `role_module` -- DROP TABLE IF EXISTS `role_module`; CREATE TABLE IF NOT EXISTS `role_module` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `role_id` int(10) UNSIGNED NOT NULL, `module_id` int(10) UNSIGNED NOT NULL, `acc_view` tinyint(1) NOT NULL, `acc_create` tinyint(1) NOT NULL, `acc_edit` tinyint(1) NOT NULL, `acc_delete` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `role_module_role_id_foreign` (`role_id`), KEY `role_module_module_id_foreign` (`module_id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `role_module` -- INSERT INTO `role_module` (`id`, `role_id`, `module_id`, `acc_view`, `acc_create`, `acc_edit`, `acc_delete`, `created_at`, `updated_at`) VALUES (1, 1, 1, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (2, 1, 2, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (3, 1, 3, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (4, 1, 4, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (5, 1, 5, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (6, 1, 6, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (7, 1, 7, 1, 1, 1, 1, '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (8, 2, 1, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (9, 2, 2, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (10, 2, 3, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (11, 2, 4, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (12, 2, 5, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (13, 2, 6, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (14, 2, 7, 1, 0, 0, 0, '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (15, 1, 9, 1, 1, 1, 1, '2019-02-22 06:29:20', '2019-02-22 06:29:20'), (18, 1, 16, 1, 1, 1, 1, '2019-02-22 06:59:00', '2019-02-22 06:59:00'), (19, 1, 17, 1, 1, 1, 1, '2019-02-22 07:08:10', '2019-02-22 07:08:10'), (21, 1, 19, 1, 1, 1, 1, '2019-02-22 07:14:32', '2019-02-22 07:14:32'), (22, 1, 20, 1, 1, 1, 1, '2019-02-22 07:27:14', '2019-02-22 07:27:14'), (23, 1, 21, 1, 1, 1, 1, '2019-02-22 07:34:47', '2019-02-22 07:34:47'), (25, 1, 23, 1, 1, 1, 1, '2019-02-22 08:10:03', '2019-02-22 08:10:03'), (26, 1, 24, 1, 1, 1, 1, '2019-02-22 08:13:18', '2019-02-22 08:13:18'), (27, 1, 25, 1, 1, 1, 1, '2019-02-22 08:25:32', '2019-02-22 08:25:32'), (28, 1, 26, 1, 1, 1, 1, '2019-02-22 08:53:06', '2019-02-22 08:53:06'), (29, 1, 27, 1, 1, 1, 1, '2019-02-22 08:57:16', '2019-02-22 08:57:16'), (30, 1, 28, 1, 1, 1, 1, '2019-02-26 05:23:10', '2019-02-26 05:23:10'), (31, 1, 29, 1, 1, 1, 1, '2019-02-26 06:10:59', '2019-02-26 06:10:59'), (32, 1, 30, 1, 1, 1, 1, '2019-02-27 03:00:37', '2019-02-27 03:00:37'), (36, 1, 34, 1, 1, 1, 1, '2019-03-05 06:56:38', '2019-03-05 06:56:38'), (37, 1, 35, 1, 1, 1, 1, '2019-03-05 07:50:57', '2019-03-05 07:50:57'), (38, 1, 36, 1, 1, 1, 1, '2019-03-05 08:09:49', '2019-03-05 08:09:49'), (39, 1, 37, 1, 1, 1, 1, '2019-03-05 08:35:27', '2019-03-05 08:35:27'), (41, 1, 39, 1, 1, 1, 1, '2019-03-06 04:42:28', '2019-03-06 04:42:28'), (42, 1, 40, 1, 1, 1, 1, '2019-03-06 05:09:50', '2019-03-06 05:09:50'), (43, 1, 41, 1, 1, 1, 1, '2019-03-06 07:10:31', '2019-03-06 07:10:31'), (44, 1, 42, 1, 1, 1, 1, '2019-03-06 08:24:21', '2019-03-06 08:24:21'), (45, 1, 43, 1, 1, 1, 1, '2019-03-11 05:53:42', '2019-03-11 05:53:42'); -- -------------------------------------------------------- -- -- Table structure for table `role_module_fields` -- DROP TABLE IF EXISTS `role_module_fields`; CREATE TABLE IF NOT EXISTS `role_module_fields` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `role_id` int(10) UNSIGNED NOT NULL, `field_id` int(10) UNSIGNED NOT NULL, `access` enum('invisible','readonly','write') COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `role_module_fields_role_id_foreign` (`role_id`), KEY `role_module_fields_field_id_foreign` (`field_id`) ) ENGINE=InnoDB AUTO_INCREMENT=234 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `role_module_fields` -- INSERT INTO `role_module_fields` (`id`, `role_id`, `field_id`, `access`, `created_at`, `updated_at`) VALUES (1, 1, 1, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (2, 1, 2, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (3, 1, 3, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (4, 1, 4, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (5, 1, 5, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (6, 1, 6, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (7, 1, 7, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (8, 1, 8, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (9, 1, 9, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (10, 1, 10, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (11, 1, 11, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (12, 1, 12, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (13, 1, 13, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (14, 1, 14, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (15, 1, 15, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (16, 1, 16, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (17, 1, 17, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (18, 1, 18, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (19, 1, 19, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (20, 1, 20, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (21, 1, 21, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (22, 1, 22, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (23, 1, 23, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (24, 1, 24, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (25, 1, 25, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (26, 1, 26, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (27, 1, 27, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (28, 1, 28, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (29, 1, 29, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (30, 1, 30, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (31, 1, 31, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (32, 1, 32, 'write', '2019-02-22 06:24:06', '2019-02-22 06:24:06'), (35, 2, 1, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (36, 2, 2, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (37, 2, 3, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (38, 2, 4, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (39, 2, 5, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (40, 2, 6, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (41, 2, 7, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (42, 2, 8, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (43, 2, 9, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (44, 2, 10, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (45, 2, 11, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (46, 2, 12, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (47, 2, 13, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (48, 2, 14, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (49, 2, 15, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (50, 2, 16, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (51, 2, 17, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (52, 2, 18, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (53, 2, 19, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (54, 2, 20, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (55, 2, 21, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (56, 2, 22, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (57, 2, 23, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (58, 2, 24, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (59, 2, 25, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (60, 2, 26, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (61, 2, 27, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (62, 2, 28, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (63, 2, 29, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (64, 2, 30, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (65, 2, 31, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (66, 2, 32, 'readonly', '2019-02-22 06:28:33', '2019-02-22 06:28:33'), (67, 1, 35, 'write', '2019-02-22 06:29:05', '2019-02-22 06:29:05'), (68, 1, 36, 'write', '2019-02-22 06:30:24', '2019-02-22 06:30:24'), (81, 1, 49, 'write', '2019-02-22 06:46:11', '2019-02-22 06:46:11'), (82, 1, 50, 'write', '2019-02-22 06:57:19', '2019-02-22 06:57:19'), (83, 1, 51, 'write', '2019-02-22 06:57:36', '2019-02-22 06:57:36'), (84, 1, 52, 'write', '2019-02-22 06:57:51', '2019-02-22 06:57:51'), (85, 1, 53, 'write', '2019-02-22 06:58:12', '2019-02-22 06:58:12'), (86, 1, 54, 'write', '2019-02-22 06:59:49', '2019-02-22 06:59:49'), (87, 1, 55, 'write', '2019-02-22 07:05:30', '2019-02-22 07:05:30'), (88, 1, 56, 'write', '2019-02-22 07:06:09', '2019-02-22 07:06:09'), (89, 1, 57, 'write', '2019-02-22 07:06:27', '2019-02-22 07:06:27'), (90, 1, 58, 'write', '2019-02-22 07:07:52', '2019-02-22 07:07:52'), (95, 1, 63, 'write', '2019-02-22 07:13:25', '2019-02-22 07:13:25'), (96, 1, 64, 'write', '2019-02-22 07:13:38', '2019-02-22 07:13:38'), (97, 1, 65, 'write', '2019-02-22 07:13:55', '2019-02-22 07:13:55'), (98, 1, 66, 'write', '2019-02-22 07:14:09', '2019-02-22 07:14:09'), (99, 1, 67, 'write', '2019-02-22 07:14:22', '2019-02-22 07:14:22'), (100, 1, 68, 'write', '2019-02-22 07:15:59', '2019-02-22 07:15:59'), (101, 1, 69, 'write', '2019-02-22 07:24:54', '2019-02-22 07:24:54'), (102, 1, 70, 'write', '2019-02-22 07:26:05', '2019-02-22 07:26:05'), (103, 1, 71, 'write', '2019-02-22 07:26:25', '2019-02-22 07:26:25'), (104, 1, 72, 'write', '2019-02-22 07:26:43', '2019-02-22 07:26:43'), (105, 1, 73, 'write', '2019-02-22 07:27:04', '2019-02-22 07:27:04'), (106, 1, 74, 'write', '2019-02-22 07:33:07', '2019-02-22 07:33:07'), (107, 1, 75, 'write', '2019-02-22 07:33:28', '2019-02-22 07:33:28'), (108, 1, 76, 'write', '2019-02-22 07:33:49', '2019-02-22 07:33:49'), (109, 1, 77, 'write', '2019-02-22 07:34:08', '2019-02-22 07:34:08'), (110, 1, 78, 'write', '2019-02-22 07:34:30', '2019-02-22 07:34:30'), (116, 1, 84, 'write', '2019-02-22 07:50:59', '2019-02-22 07:50:59'), (117, 1, 85, 'write', '2019-02-22 07:53:15', '2019-02-22 07:53:15'), (118, 1, 86, 'write', '2019-02-22 07:53:27', '2019-02-22 07:53:27'), (119, 1, 87, 'write', '2019-02-22 08:08:41', '2019-02-22 08:08:41'), (120, 1, 88, 'write', '2019-02-22 08:09:00', '2019-02-22 08:09:00'), (121, 1, 89, 'write', '2019-02-22 08:09:16', '2019-02-22 08:09:16'), (122, 1, 90, 'write', '2019-02-22 08:09:37', '2019-02-22 08:09:37'), (123, 1, 91, 'write', '2019-02-22 08:09:54', '2019-02-22 08:09:54'), (124, 1, 92, 'write', '2019-02-22 08:11:18', '2019-02-22 08:11:18'), (125, 1, 93, 'write', '2019-02-22 08:11:28', '2019-02-22 08:11:28'), (126, 1, 94, 'write', '2019-02-22 08:11:44', '2019-02-22 08:11:44'), (127, 1, 95, 'write', '2019-02-22 08:12:12', '2019-02-22 08:12:12'), (128, 1, 96, 'write', '2019-02-22 08:12:28', '2019-02-22 08:12:28'), (129, 1, 97, 'write', '2019-02-22 08:12:51', '2019-02-22 08:12:51'), (130, 1, 98, 'write', '2019-02-22 08:13:10', '2019-02-22 08:13:10'), (131, 1, 99, 'write', '2019-02-22 08:19:24', '2019-02-22 08:19:24'), (132, 1, 100, 'write', '2019-02-22 08:19:45', '2019-02-22 08:19:45'), (133, 1, 101, 'write', '2019-02-22 08:19:54', '2019-02-22 08:19:54'), (134, 1, 102, 'write', '2019-02-22 08:24:29', '2019-02-22 08:24:29'), (135, 1, 103, 'write', '2019-02-22 08:25:05', '2019-02-22 08:25:05'), (136, 1, 104, 'write', '2019-02-22 08:25:24', '2019-02-22 08:25:24'), (137, 1, 105, 'write', '2019-02-22 08:28:49', '2019-02-22 08:28:49'), (138, 1, 106, 'write', '2019-02-22 08:50:33', '2019-02-22 08:50:33'), (139, 1, 107, 'write', '2019-02-22 08:50:48', '2019-02-22 08:50:48'), (140, 1, 108, 'write', '2019-02-22 08:51:00', '2019-02-22 08:51:00'), (143, 1, 111, 'write', '2019-02-22 08:54:33', '2019-02-22 08:54:33'), (144, 1, 112, 'write', '2019-02-22 08:55:15', '2019-02-22 08:55:15'), (145, 1, 113, 'write', '2019-02-22 08:55:28', '2019-02-22 08:55:28'), (146, 1, 114, 'write', '2019-02-22 08:56:10', '2019-02-22 08:56:10'), (148, 1, 116, 'write', '2019-02-22 08:57:04', '2019-02-22 08:57:04'), (149, 1, 117, 'write', '2019-02-22 08:59:43', '2019-02-22 08:59:43'), (152, 1, 120, 'write', '2019-02-25 05:18:31', '2019-02-25 05:18:31'), (154, 1, 122, 'write', '2019-02-25 08:52:13', '2019-02-25 08:52:13'), (155, 1, 123, 'write', '2019-02-26 05:22:56', '2019-02-26 05:22:56'), (156, 1, 124, 'write', '2019-02-26 05:26:04', '2019-02-26 05:26:04'), (157, 1, 125, 'write', '2019-02-26 06:08:19', '2019-02-26 06:08:19'), (158, 1, 126, 'write', '2019-02-26 06:08:33', '2019-02-26 06:08:33'), (159, 1, 127, 'write', '2019-02-26 06:08:51', '2019-02-26 06:08:51'), (160, 1, 128, 'write', '2019-02-26 06:09:10', '2019-02-26 06:09:10'), (161, 1, 129, 'write', '2019-02-26 06:09:23', '2019-02-26 06:09:23'), (162, 1, 130, 'write', '2019-02-26 06:09:39', '2019-02-26 06:09:39'), (163, 1, 131, 'write', '2019-02-26 06:09:50', '2019-02-26 06:09:50'), (164, 1, 132, 'write', '2019-02-26 06:10:25', '2019-02-26 06:10:25'), (165, 1, 133, 'write', '2019-02-26 06:10:48', '2019-02-26 06:10:48'), (174, 1, 142, 'write', '2019-02-27 03:06:07', '2019-02-27 03:06:07'), (175, 1, 143, 'write', '2019-02-27 05:18:41', '2019-02-27 05:18:41'), (179, 1, 147, 'write', '2019-03-05 06:55:45', '2019-03-05 06:55:45'), (180, 1, 148, 'write', '2019-03-05 06:55:58', '2019-03-05 06:55:58'), (181, 1, 149, 'write', '2019-03-05 06:56:30', '2019-03-05 06:56:30'), (182, 1, 150, 'write', '2019-03-05 07:49:56', '2019-03-05 07:49:56'), (183, 1, 151, 'write', '2019-03-05 07:50:08', '2019-03-05 07:50:08'), (184, 1, 152, 'write', '2019-03-05 07:50:41', '2019-03-05 07:50:41'), (185, 1, 153, 'write', '2019-03-05 07:52:02', '2019-03-05 07:52:02'), (186, 1, 154, 'write', '2019-03-05 07:52:56', '2019-03-05 07:52:56'), (187, 1, 155, 'write', '2019-03-05 07:53:17', '2019-03-05 07:53:17'), (188, 1, 156, 'write', '2019-03-05 07:53:50', '2019-03-05 07:53:50'), (189, 1, 157, 'write', '2019-03-05 07:54:08', '2019-03-05 07:54:08'), (190, 1, 158, 'write', '2019-03-05 07:54:27', '2019-03-05 07:54:27'), (191, 1, 159, 'write', '2019-03-05 08:08:58', '2019-03-05 08:08:58'), (192, 1, 160, 'write', '2019-03-05 08:09:09', '2019-03-05 08:09:09'), (193, 1, 161, 'write', '2019-03-05 08:09:21', '2019-03-05 08:09:21'), (194, 1, 162, 'write', '2019-03-05 08:09:39', '2019-03-05 08:09:39'), (195, 1, 163, 'write', '2019-03-05 08:34:05', '2019-03-05 08:34:05'), (196, 1, 164, 'write', '2019-03-05 08:34:19', '2019-03-05 08:34:19'), (197, 1, 165, 'write', '2019-03-05 08:34:39', '2019-03-05 08:34:39'), (198, 1, 166, 'write', '2019-03-05 08:35:03', '2019-03-05 08:35:03'), (199, 1, 167, 'write', '2019-03-05 08:35:20', '2019-03-05 08:35:20'), (200, 1, 168, 'write', '2019-03-05 08:37:14', '2019-03-05 08:37:14'), (201, 1, 169, 'write', '2019-03-06 04:21:47', '2019-03-06 04:21:47'), (202, 1, 170, 'write', '2019-03-06 04:23:54', '2019-03-06 04:23:54'), (203, 1, 171, 'write', '2019-03-06 04:32:20', '2019-03-06 04:32:20'), (208, 1, 176, 'write', '2019-03-06 04:41:02', '2019-03-06 04:41:02'), (209, 1, 177, 'write', '2019-03-06 04:41:16', '2019-03-06 04:41:16'), (210, 1, 178, 'write', '2019-03-06 04:41:46', '2019-03-06 04:41:46'), (211, 1, 179, 'write', '2019-03-06 04:42:18', '2019-03-06 04:42:18'), (212, 1, 180, 'write', '2019-03-06 05:08:00', '2019-03-06 05:08:00'), (213, 1, 181, 'write', '2019-03-06 05:08:15', '2019-03-06 05:08:15'), (214, 1, 182, 'write', '2019-03-06 05:08:34', '2019-03-06 05:08:34'), (216, 1, 184, 'write', '2019-03-06 05:09:36', '2019-03-06 05:09:36'), (217, 1, 185, 'write', '2019-03-06 07:07:13', '2019-03-06 07:07:13'), (218, 1, 186, 'write', '2019-03-06 07:07:27', '2019-03-06 07:07:27'), (219, 1, 187, 'write', '2019-03-06 07:08:21', '2019-03-06 07:08:21'), (220, 1, 188, 'write', '2019-03-06 07:08:44', '2019-03-06 07:08:44'), (221, 1, 189, 'write', '2019-03-06 07:09:32', '2019-03-06 07:09:32'), (222, 1, 190, 'write', '2019-03-06 07:09:46', '2019-03-06 07:09:46'), (223, 1, 191, 'write', '2019-03-06 07:13:13', '2019-03-06 07:13:13'), (224, 1, 192, 'write', '2019-03-06 07:13:54', '2019-03-06 07:13:54'), (225, 1, 193, 'write', '2019-03-06 08:20:56', '2019-03-06 08:20:56'), (226, 1, 194, 'write', '2019-03-06 08:22:07', '2019-03-06 08:22:07'), (227, 1, 195, 'write', '2019-03-06 08:23:40', '2019-03-06 08:23:40'), (228, 1, 196, 'write', '2019-03-06 08:24:05', '2019-03-06 08:24:05'), (229, 1, 197, 'write', '2019-03-11 05:52:21', '2019-03-11 05:52:21'), (230, 1, 198, 'write', '2019-03-11 05:52:48', '2019-03-11 05:52:48'), (231, 1, 199, 'write', '2019-03-11 05:53:07', '2019-03-11 05:53:07'), (232, 1, 200, 'write', '2019-03-11 05:53:33', '2019-03-11 05:53:33'), (233, 1, 201, 'write', '2019-03-12 03:02:55', '2019-03-12 03:02:55'); -- -------------------------------------------------------- -- -- Table structure for table `role_user` -- DROP TABLE IF EXISTS `role_user`; CREATE TABLE IF NOT EXISTS `role_user` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `role_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `role_user_role_id_foreign` (`role_id`), KEY `role_user_user_id_foreign` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `role_user` -- INSERT INTO `role_user` (`id`, `role_id`, `user_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `seasons` -- DROP TABLE IF EXISTS `seasons`; CREATE TABLE IF NOT EXISTS `seasons` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `landing_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `image` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `seasons_landing_id_foreign` (`landing_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `seasons` -- INSERT INTO `seasons` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `text_ka`, `landing_id`, `image`) VALUES (1, NULL, '2019-03-05 07:56:29', '2019-03-06 04:26:27', 'აქტიური 4 სეზონის მაძილზე', 'აქტიური 4 სეზონის მაძილზე აქტიური 4 სეზონის მაძილზე', 1, 1), (2, NULL, '2019-03-07 04:43:45', '2019-03-07 04:43:45', 'kokhta', 'asdasd asd asd ad', 2, 8); -- -------------------------------------------------------- -- -- Table structure for table `tags` -- DROP TABLE IF EXISTS `tags`; CREATE TABLE IF NOT EXISTS `tags` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(256) COLLATE utf8_unicode_ci DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tags` -- INSERT INTO `tags` (`id`, `deleted_at`, `created_at`, `updated_at`, `title`) VALUES (1, NULL, '2019-02-26 05:23:31', '2019-02-26 05:23:31', 'greenzone'), (2, NULL, '2019-02-26 05:24:48', '2019-02-26 05:24:48', 'views'), (3, NULL, '2019-02-26 05:24:58', '2019-02-26 05:24:58', 'mission'); -- -------------------------------------------------------- -- -- Table structure for table `teams` -- DROP TABLE IF EXISTS `teams`; CREATE TABLE IF NOT EXISTS `teams` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `fullname_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `full_name en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `Full name ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `image` int(11) DEFAULT NULL, `position_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `position_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `position_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `teams` -- INSERT INTO `teams` (`id`, `deleted_at`, `created_at`, `updated_at`, `fullname_ka`, `full_name en`, `Full name ru`, `image`, `position_ka`, `position_en`, `position_ru`, `active`) VALUES (1, NULL, '2019-02-25 08:04:20', '2019-02-25 08:04:20', 'Full name ka :', NULL, NULL, 1, 'Position ka :', 'Position ka :', 'Position ka :', 1), (2, NULL, NULL, NULL, 'giorgi rekchi', 'george', NULL, NULL, NULL, NULL, NULL, 0), (3, NULL, NULL, NULL, 'vaxo', 'vakho', NULL, NULL, NULL, NULL, NULL, 0); -- -------------------------------------------------------- -- -- Table structure for table `tests` -- DROP TABLE IF EXISTS `tests`; CREATE TABLE IF NOT EXISTS `tests` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `new_field` text COLLATE utf8_unicode_ci, `menu` varchar(256) COLLATE utf8_unicode_ci DEFAULT '[]', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tests` -- INSERT INTO `tests` (`id`, `deleted_at`, `created_at`, `updated_at`, `title`, `new_field`, `menu`) VALUES (1, '2019-02-22 06:44:05', '2019-02-22 06:32:13', '2019-02-22 06:44:05', 'safsdf', 'dsfsd', NULL), (2, NULL, '2019-02-22 06:50:09', '2019-02-22 06:50:09', 'ტურები', 'uuu', '[\"header\",\"burger\"]'); -- -------------------------------------------------------- -- -- Table structure for table `text_images` -- DROP TABLE IF EXISTS `text_images`; CREATE TABLE IF NOT EXISTS `text_images` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title_ka` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_en` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `title_ru` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL, `text_ka` text COLLATE utf8_unicode_ci, `text_en` text COLLATE utf8_unicode_ci, `text_ru` text COLLATE utf8_unicode_ci, `image` int(11) DEFAULT NULL, `active` tinyint(1) DEFAULT '1', `tag_id` int(10) UNSIGNED DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `text_images` -- INSERT INTO `text_images` (`id`, `deleted_at`, `created_at`, `updated_at`, `title_ka`, `title_en`, `title_ru`, `text_ka`, `text_en`, `text_ru`, `image`, `active`, `tag_id`) VALUES (1, NULL, '2019-02-26 06:12:02', '2019-02-26 06:14:13', 'სათაური', NULL, NULL, 'ტექსტი ქართულად', NULL, NULL, 5, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `uploads` -- DROP TABLE IF EXISTS `uploads`; CREATE TABLE IF NOT EXISTS `uploads` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `path` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `extension` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `user_id` int(10) UNSIGNED NOT NULL DEFAULT '1', `public` tinyint(1) DEFAULT '0', `type` int(10) UNSIGNED DEFAULT NULL, `size` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `url` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `uploads_user_id_foreign` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `uploads` -- INSERT INTO `uploads` (`id`, `name`, `path`, `extension`, `user_id`, `public`, `type`, `size`, `url`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, '12de8d4e66b0643ac998aa928c8abda4--campfire-tumblr-tumblr-camping.jpg', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-02-22\\1.jpg', 'jpg', 1, 0, 3, '62029', 'image/2019-02-22/1.jpg', NULL, '2019-02-22 06:38:04', '2019-02-22 06:38:04'), (2, 'DMDIKcyWsAEsKDj.jpg', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-02-22\\2.jpg', 'jpg', 1, 0, 3, '354449', 'image/2019-02-22/2.jpg', NULL, '2019-02-22 07:22:29', '2019-02-22 07:22:30'), (3, 'wallpaper2you_404548.jpg', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-02-22\\3.jpg', 'jpg', 1, 0, 3, '527134', 'image/2019-02-22/3.jpg', NULL, '2019-02-22 07:22:59', '2019-02-22 07:23:00'), (4, 'batumi3.jpg', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-02-22\\4.jpg', 'jpg', 1, 0, 3, '189194', 'image/2019-02-22/4.jpg', NULL, '2019-02-22 08:26:10', '2019-02-22 08:26:10'), (5, 'Random_Wallpaper_NexusandMe-102.jpg', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-02-26\\5.jpg', 'jpg', 1, 0, 3, '946098', 'image/2019-02-26/5.jpg', NULL, '2019-02-26 06:11:53', '2019-02-26 06:11:53'), (6, 'about_project.png', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-03-05\\6.png', 'png', 1, 0, 3, '791022', 'image/2019-03-05/6.png', NULL, '2019-03-05 08:12:57', '2019-03-05 08:12:58'), (7, 'bg1.png', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-03-05\\7.png', 'png', 1, 0, 3, '1183560', 'image/2019-03-05/7.png', NULL, '2019-03-05 08:13:02', '2019-03-05 08:13:03'), (8, 'flat.png', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-03-05\\8.png', 'png', 1, 0, 3, '683801', 'image/2019-03-05/8.png', NULL, '2019-03-05 08:13:03', '2019-03-05 08:13:04'), (9, 'summary.png', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-03-05\\9.png', 'png', 1, 0, 3, '982552', 'image/2019-03-05/9.png', NULL, '2019-03-05 08:13:04', '2019-03-05 08:13:04'), (10, '268A2809 copy copy copy.png', 'C:\\wamp64\\www\\code_online\\lisi.digitalmate.io\\public\\files\\image\\2019-03-06\\10.png', 'png', 1, 0, 3, '939499', 'image/2019-03-06/10.png', NULL, '2019-03-06 04:25:17', '2019-03-06 04:25:17'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `context_id` int(10) UNSIGNED DEFAULT '0', `email` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(250) COLLATE utf8_unicode_ci DEFAULT '', `type` varchar(191) COLLATE utf8_unicode_ci DEFAULT 'Employee', `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `context_id`, `email`, `password`, `type`, `remember_token`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'admin', 1, 'vaska@digitalmate.io', '$2y$10$fffxDiiuSga38RvNAAN8xOCH.4f.rMreF5UaBScTgxEajMU0m5MCi', 'Employee', NULL, NULL, '2019-02-22 06:24:25', '2019-02-22 06:24:25'); -- -- Constraints for dumped tables -- -- -- Constraints for table `about_projects` -- ALTER TABLE `about_projects` ADD CONSTRAINT `about_projects_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `aparatmnets` -- ALTER TABLE `aparatmnets` ADD CONSTRAINT `aparatmnets_floor_foreign` FOREIGN KEY (`floor`) REFERENCES `floors` (`id`); -- -- Constraints for table `blocks` -- ALTER TABLE `blocks` ADD CONSTRAINT `blocks_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`); -- -- Constraints for table `employees` -- ALTER TABLE `employees` ADD CONSTRAINT `employees_dept_foreign` FOREIGN KEY (`dept`) REFERENCES `departments` (`id`); -- -- Constraints for table `green_zones` -- ALTER TABLE `green_zones` ADD CONSTRAINT `green_zones_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`); -- -- Constraints for table `landing_apartments` -- ALTER TABLE `landing_apartments` ADD CONSTRAINT `landing_apartments_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `landing_footers` -- ALTER TABLE `landing_footers` ADD CONSTRAINT `landing_footers_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `landing_homes` -- ALTER TABLE `landing_homes` ADD CONSTRAINT `landing_homes_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `landing_socials` -- ALTER TABLE `landing_socials` ADD CONSTRAINT `landing_socials_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `module_fields` -- ALTER TABLE `module_fields` ADD CONSTRAINT `module_fields_field_type_foreign` FOREIGN KEY (`field_type`) REFERENCES `module_field_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `module_fields_module_foreign` FOREIGN KEY (`module`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `permission_role` -- ALTER TABLE `permission_role` ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `project_infos` -- ALTER TABLE `project_infos` ADD CONSTRAINT `project_infos_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `project_summaries` -- ALTER TABLE `project_summaries` ADD CONSTRAINT `project_summaries_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `roles` -- ALTER TABLE `roles` ADD CONSTRAINT `roles_dept_foreign` FOREIGN KEY (`dept`) REFERENCES `departments` (`id`), ADD CONSTRAINT `roles_parent_foreign` FOREIGN KEY (`parent`) REFERENCES `roles` (`id`); -- -- Constraints for table `role_module` -- ALTER TABLE `role_module` ADD CONSTRAINT `role_module_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `role_module_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `role_module_fields` -- ALTER TABLE `role_module_fields` ADD CONSTRAINT `role_module_fields_field_id_foreign` FOREIGN KEY (`field_id`) REFERENCES `module_fields` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `role_module_fields_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `seasons` -- ALTER TABLE `seasons` ADD CONSTRAINT `seasons_landing_id_foreign` FOREIGN KEY (`landing_id`) REFERENCES `landings` (`id`); -- -- Constraints for table `uploads` -- ALTER TABLE `uploads` ADD CONSTRAINT `uploads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- Create database -- Example run: -- psql -p 5432 -U postgres -h 127.0.0.1 -f ./create_database_pghero.sql SET client_encoding = 'UTF8'; SET client_min_messages = 'warning'; \echo Creating database pghero CREATE DATABASE pghero OWNER pghero; COMMENT ON DATABASE pghero IS 'Historical data for monitoring https://github.com/ankane/pghero/'
IF (NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = '$TABLENAME$')) BEGIN CREATE TABLE [dbo].[$TABLENAME$]( [LogFilename] [varchar](255) NOT NULL, [LogRow] [int] NOT NULL, [TimeStamp] [datetime] NULL, [cIp] [varchar](255) NULL, [csUsername] [varchar](255) NULL, [sSitename] [varchar](255) NULL, [sComputername] [varchar](255) NULL, [sIp] [varchar](255) NULL, [sPort] [int] NULL, [csMethod] [varchar](255) NULL, [csUriStem] [varchar](2048) NULL, [csUriQuery] [varchar](max) NULL, [scStatus] [int] NULL, [scSubstatus] [int] NULL, [scWin32Status] [int] NULL, [scBytes] [int] NULL, [csBytes] [int] NULL, [timeTaken] [int] NULL, [csVersion] [varchar](255) NULL, [csHost] [varchar](255) NULL, [csUserAgent] [varchar](2048) NULL, [csCookie] [varchar](max) NULL, [csReferer] [varchar](2048) NULL, [sEvent] [varchar](255) NULL, [sProcessType] [varchar](255) NULL, [sUserTime] [real] NULL, [sKernelTime] [real] NULL, [sPageFaults] [int] NULL, [sTotalProcs] [int] NULL, [sActiveProcs] [int] NULL, [sStoppedProcs] [int] NULL, [CountryName] [nvarchar](255) NULL, [CountryCode] [char](2) NULL, [CleanUri] [varchar](2048) NULL, CONSTRAINT [PK_$TABLENAME$] PRIMARY KEY CLUSTERED ([LogFilename] ASC, [LogRow] ASC) ON [PRIMARY] ) ON [PRIMARY] END
CREATE TABLE sec.system ( code character varying(50) NOT NULL, name character varying(256) NOT NULL, description character varying(500), short_name character varying, icon character varying, url character varying, public_access boolean, view_order integer, show_on_interface boolean, CONSTRAINT system_pkey PRIMARY KEY (code) ); COMMENT ON TABLE sec.system IS 'Системы'; COMMENT ON COLUMN sec.system.code IS 'Код системы'; COMMENT ON COLUMN sec.system.name IS 'Наименование системы'; COMMENT ON COLUMN sec.system.description IS 'Текстовое описание системы'; COMMENT ON COLUMN sec.system.short_name IS 'Порядок отображения подсистемы'; COMMENT ON COLUMN sec.system.show_on_interface IS 'Отображение систем в едином интерфейсе';
SELECT 1 AS q, home_score_q1 % 10 AS hs, away_score_q1 % 10 AS vs FROM base.game WHERE (home_score_q1 IS NOT NULL AND home_score_q2 IS NOT NULL AND home_score_q3 IS NOT NULL AND home_score_q4 IS NOT NULL) UNION ALL SELECT 2 AS q, (home_score_q1 + home_score_q2) % 10 AS hs, (away_score_q1 + away_score_q2) % 10 AS vs FROM base.game WHERE (home_score_q1 IS NOT NULL AND home_score_q2 IS NOT NULL AND home_score_q3 IS NOT NULL AND home_score_q4 IS NOT NULL) UNION ALL SELECT 3 AS q, (home_score_q1 + home_score_q2 + home_score_q3) % 10 AS hs, (away_score_q1 + away_score_q2 + away_score_q3) % 10 AS vs FROM base.game WHERE (home_score_q1 IS NOT NULL AND home_score_q2 IS NOT NULL AND home_score_q3 IS NOT NULL AND home_score_q4 IS NOT NULL) UNION ALL SELECT 4 AS q, (home_score_q1 + home_score_q2 + home_score_q3 + home_score_q4) % 10 AS hs, (away_score_q1 + away_score_q2 + away_score_q3 + away_score_q4) % 10 AS vs FROM base.game WHERE (home_score_q1 IS NOT NULL AND home_score_q2 IS NOT NULL AND home_score_q3 IS NOT NULL AND home_score_q4 IS NOT NULL)
CREATE TABLE [dbo].[TBL_FAM_RETIREMENT_REQUEST] ( [rtr_id_Pk] BIGINT IDENTITY NOT NULL PRIMARY KEY, [rtr_number] VARCHAR(MAX) NOT NULL, [rtr_external_identifier] NVARCHAR(500) NOT NULL, [rtr_informed_Fk] INT NOT NULL, [rtr_responsible_Fk] INT NOT NULL, [rtr_accountable_Fk] INT NOT NULL, [rtr_novelty_Fk] BIGINT NOT NULL, [rtr_details] NVARCHAR(500) NOT NULL, [rtr_type_Fk] BIGINT NOT NULL, [rtr_topic] NVARCHAR(50) NOT NULL, [rtr_registered_at] DATETIME NOT NULL DEFAULT GETDATE(), [rtr_registered_by] NVARCHAR(20) NOT NULL, [rtr_updated_at] DATETIME NULL, [rtr_updated_by] NVARCHAR(20) NULL, [rtr_status] NVARCHAR(10) NOT NULL, [rtr_comments] NVARCHAR(500) NOT NULL, [rtr_reason] NVARCHAR(500) NOT NULL CONSTRAINT [FK_TBL_FAM_RETIREMENT_REQUEST_TBL_SRA_EMPLOYEE_APP] FOREIGN KEY ([rtr_informed_Fk]) REFERENCES [TBL_SRA_EMPLOYEE]([id]), CONSTRAINT [FK_TBL_FAM_RETIREMENT_REQUEST_TBL_SRA_EMPLOYEE_RES] FOREIGN KEY ([rtr_responsible_Fk]) REFERENCES [TBL_SRA_EMPLOYEE]([id]), CONSTRAINT [FK_TBL_FAM_RETIREMENT_REQUEST_TBL_SRA_EMPLOYEE_ACC] FOREIGN KEY ([rtr_accountable_Fk]) REFERENCES [TBL_SRA_EMPLOYEE]([id]), CONSTRAINT [FK_TBL_FAM_RETIREMENT_REQUEST_TBL_FAM_NOVELTY_id] FOREIGN KEY ([rtr_novelty_Fk]) REFERENCES [TBL_FAM_NOVELTY]([nvlrqs_id_Pk]) )
-- 침투: 시스템 콘텐츠 추출 ( select * from fuzzy_result_content_set where rule_set = 81 and pidnum = 'sys' order by rand() limit 1 ) union -- 검색: 네트워크 콘텐츠 추출 ( select * from fuzzy_result_content_set where rule_set = 81 and pidnum = 'net' order by rand() limit 1 ) union -- 수집: 웹/응용 콘텐츠 추출 ( select * from fuzzy_result_content_set where rule_set = 81 and pidnum = 'web' order by rand() limit 1 ) union -- 유출: 악성코드 콘텐츠 추출 ( select * from fuzzy_result_content_set where rule_set = 81 and pidnum = 'mal' order by rand() limit 1 )
--Drop sequence for tables drop table superpowers; drop table heroes; drop table elementTypes; --creating tables create table elementTypes ( id int identity primary key, elementType varchar(20) not null ); create table heroes ( id int identity primary key, heroName varchar(100) not null, hp int not null, elementType int references elementTypes(id) ); create table superpowers ( id int identity primary key, name varchar(50) not null, description varchar(100) not null, damage int not null, hero int references heroes(id) ); --Adding seed data insert into elementTypes (elementType) values ('Water'), ('Earth'), ('Air'), ('Fire'); insert into heroes (heroName, hp, elementType) values ('Spiderman', 100, 2), ('Thor', 1000, 4); insert into superpowers (name, description, damage, hero) values ('Spidey senses', 'Anything a spider can', 10, 1), ('Lightning control', 'Using a hammer as a conduit he controls lightning', 100, 2); select * from heroes inner join superpowers on heroes.id = superpowers.hero;
select prefs.id as 'ID', prefs.groupID as 'gID', prefs.settingID as 'sID', groups.name as 'SourceURL', prefs.value as 'TargetFolder', datetime(prefs.timestamp,'unixepoch','localtime') as 'TimeStamp', settings.name as 'Setting' from prefs join groups on prefs.groupID = groups.id join settings on prefs.settingID = settings.id order by TimeStamp desc
/****** Object: Schema [DMS_Experiment_Entry] ******/ CREATE SCHEMA [DMS_Experiment_Entry] GO
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2018 at 11:17 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `lv1` -- -- -------------------------------------------------------- -- -- Table structure for table `accounts` -- CREATE TABLE `accounts` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `balance` double(10,4) NOT NULL DEFAULT '0.0000', `total_credit` double(10,4) NOT NULL DEFAULT '0.0000', `total_debit` double(10,4) NOT NULL DEFAULT '0.0000', `withdrawal_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'bank', `payment_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `bank_branch` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `bank_account` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `applied_for_payout` int(11) NOT NULL DEFAULT '0', `paid` int(11) NOT NULL DEFAULT '0', `date_applied` date DEFAULT NULL, `last_date_paid` date DEFAULT NULL, `country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `other_details` longtext COLLATE utf8mb4_unicode_ci, `deleted_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 `accounts` -- INSERT INTO `accounts` (`id`, `user_id`, `balance`, `total_credit`, `total_debit`, `withdrawal_method`, `payment_email`, `bank_name`, `bank_branch`, `bank_account`, `applied_for_payout`, `paid`, `date_applied`, `last_date_paid`, `country`, `other_details`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 1, 200.0000, 1000.0000, 23.0000, 'bank', 'thihazaw@gmail.com', 'KBZ', 'Mandalay', '3365236869', 0, 0, NULL, NULL, 'MY', 'No other detail', NULL, '2018-11-23 02:06:21', '2018-11-23 02:06:21'); -- -------------------------------------------------------- -- -- Table structure for table `account_histories` -- CREATE TABLE `account_histories` ( `id` int(10) UNSIGNED NOT NULL, `account_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `message` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `deleted_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; -- -------------------------------------------------------- -- -- 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 (15, '2014_10_12_000000_create_users_table', 1), (16, '2014_10_12_100000_create_password_resets_table', 1), (17, '2018_11_16_035841_create_qrcodes_table', 1), (18, '2018_11_16_040004_create_transcations_table', 1), (19, '2018_11_16_040056_create_roles_table', 1), (20, '2018_11_23_074434_create_accounts_table', 1), (21, '2018_11_23_074548_create_account_histories_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `qrcodes` -- CREATE TABLE `qrcodes` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `product_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `product_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `callback_url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `qrcode_path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `amount` double(10,4) NOT NULL, `status` tinyint(4) DEFAULT '1', `deleted_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 `qrcodes` -- INSERT INTO `qrcodes` (`id`, `user_id`, `website`, `product_name`, `product_url`, `company_name`, `callback_url`, `qrcode_path`, `amount`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 1, 'https://microstack.co', 'Mi5', 'Karaoke Software', 'Microstack', 'https/microstack.co/thihazaw', 'qr/1.png', 4.0000, 1, NULL, '2018-11-23 02:20:20', '2018-11-23 02:20:20'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `deleted_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 `roles` -- INSERT INTO `roles` (`id`, `name`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'Admin', NULL, '2018-11-23 02:15:36', '2018-11-23 02:15:36'), (2, 'Moderator', NULL, '2018-11-23 02:15:48', '2018-11-23 02:15:48'), (3, 'Webmaster', NULL, '2018-11-23 02:15:56', '2018-11-23 02:15:56'), (4, 'Buyer', NULL, '2018-11-23 02:16:02', '2018-11-23 02:16:02'); -- -------------------------------------------------------- -- -- Table structure for table `transcations` -- CREATE TABLE `transcations` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `qrcode_owner_id` int(11) DEFAULT NULL, `qrcode_id` int(11) NOT NULL, `payment_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` longtext COLLATE utf8mb4_unicode_ci, `amount` double(10,4) NOT NULL, `status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'initiated', `deleted_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; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `role_id` int(11) NOT NULL DEFAULT '4', `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `deleted_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 `users` -- INSERT INTO `users` (`id`, `name`, `role_id`, `email`, `email_verified_at`, `password`, `remember_token`, `deleted_at`, `created_at`, `updated_at`) VALUES (1, 'Thihazaw', 1, 'thihazaw@gmail.com', NULL, '$2y$10$/7jBFg4JjSD8eWZUMTZ/B.0b9.d6xCHoLsNrhA5MLBVE9v8Pn8QCm', 'wOfxcrmZMjegLoHd18L61ySkgyUV5z3MDDuwEFzrZvskAXFhiD9KI1NgmqO3', NULL, '2018-11-23 01:46:09', '2018-11-23 01:46:09'), (2, 'Thant sin soe', 4, 'thantsinsoe@gmail.com', NULL, '$2y$10$dyeKmklEVJDWQXHVbcJMHONYAmRY5mUYx/PYKJ0YTz47e9j0DtvrW', 'PoHQSzhMlhJBkGplG9V2BbvPtda1cx9puZ78PBgDovakvgfgP2sbylpwtXbU', NULL, '2018-11-23 02:27:13', '2018-11-23 02:27:13'); -- -- Indexes for dumped tables -- -- -- Indexes for table `accounts` -- ALTER TABLE `accounts` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `user_id` (`user_id`); -- -- Indexes for table `account_histories` -- ALTER TABLE `account_histories` 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 `qrcodes` -- ALTER TABLE `qrcodes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`); -- -- Indexes for table `transcations` -- ALTER TABLE `transcations` 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 `accounts` -- ALTER TABLE `accounts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `account_histories` -- ALTER TABLE `account_histories` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `qrcodes` -- ALTER TABLE `qrcodes` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `transcations` -- ALTER TABLE `transcations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- UPDATE PLAN -- 11 TABLES ARE BEING USED BY DBT -- 7 NO_PII TABLES - CREATE THE INDIVIDUAL READ ROLES FOR THESE -- 4 PII TABLE - THERE ALREADY IS A PII_READER SET UP FOR MOST OF THESE TABLES - "AIRFLOW_WAREHOUSE.RAW.AIRFLOW_HFD.pii.reader.role" -- CREATE THE 4 VIEW FOR THE PII TABLE. CREATE A READ ROLE FOR IT -- ADD THE 7 TABLES AND 4 VIEW ROLES TO THE NO_PII GROUP ROLE -- ADD THE NO_PII GROUP ROLE TO BOTH DBT ROLES -- NOTE - THIS NO PII ROLE HAS ALREADY BEEN SET UP - BUT HAS NO PRIVILEGES SET TO IT - "AIRFLOW_WAREHOUSE.RAW.HFD.no_pii.reader.role" -- -- NOTE TRANSFORMER ROLE HAS OWNERSHIP OF MANY TABLES HERE AND WILL TAKE SOME WORK TO DE-HOOK ALL ITS RIGHTS HERE -- BUT EVENTUALLY THIS SHOULD BE REPLACED BY THE FINANCE DATAMART SO MAY JUST LET IT DIE NATURALLY --RAW.AIRFLOW_HFD.AGING --RAW.AIRFLOW_HFD.AMORTIZATION_REPORT --RAW.AIRFLOW_HFD.CUSTOMER_ADJUSTED_TERM_LENGTHS --RAW.AIRFLOW_HFD.CUSTOMER_PORTAL_ACCESS_LAST60 --RAW.AIRFLOW_HFD.CUSTOMERS_WITHOUT_PATRON_ACCOUNT --RAW.AIRFLOW_HFD.DOCD_AND_ACTIVATED --RAW.AIRFLOW_HFD.MISSED_AND_MANUAL_PAYMENTS --RAW.AIRFLOW_HFD.OPEN_APPS --RAW.AIRFLOW_HFD.PAYMENT_REPORT --RAW.AIRFLOW_HFD.PAYMENT_REPORT_SUBMITTED_FUNDS --RAW.AIRFLOW_HFD.SUMMARY_AND_DETAIL USE ROLE AIRFLOW_SERVICE_ROLE; USE DATABASE RAW; USE SCHEMA AIRFLOW_HFD; CREATE OR REPLACE VIEW VW_CUSTOMERS_WITHOUT_PATRON_ACCOUNT COPY GRANTS AS ( SELECT APPLICATIONID , CASE WHEN PII_ACCESS = TRUE THEN EMAIL ELSE sha2(EMAIL,512) END AS EMAIL, ACTIVATEDON , PAYMENTSTATUS , PROCESSED_TIME FROM CUSTOMERS_WITHOUT_PATRON_ACCOUNT LEFT JOIN DATAENG_UTILS.MAPPINGS.PII_MAPPINGS PII ON PII.ROLE = CURRENT_ROLE() ); CREATE OR REPLACE VIEW VW_DOCD_AND_ACTIVATED COPY GRANTS AS ( SELECT DOCDON , ACTIVATEDON , PATIENTID , INVOICETOTAL , TOTALDOWNPAYMENT , FINANCEAMOUNT , BEGINNINGPRINCIPALAMOUNT , DOCSTAMPTAX , STATUS , HFD_ID , CASE WHEN PII_ACCESS = TRUE THEN EMAIL ELSE sha2(EMAIL,512) END AS EMAIL, CASE WHEN PII_ACCESS = TRUE THEN CUSTOMERNAME ELSE sha2(CUSTOMERNAME,512) END AS CUSTOMERNAME, PROVIDERID , PROCESSED_TIME FROM DOCD_AND_ACTIVATED LEFT JOIN DATAENG_UTILS.MAPPINGS.PII_MAPPINGS PII ON PII.ROLE = CURRENT_ROLE() ); CREATE OR REPLACE VIEW VW_OPEN_APPS COPY GRANTS AS ( SELECT HFD_ID , PATIENTID , CASE WHEN PII_ACCESS = TRUE THEN CUSTOMERNAME ELSE sha2(CUSTOMERNAME,512) END AS CUSTOMERNAME, CASE WHEN PII_ACCESS = TRUE THEN PERSONRECEIVINGSERVICENAME ELSE sha2(PERSONRECEIVINGSERVICENAME,512) END AS PERSONRECEIVINGSERVICENAME, SUBMITTEDON , CREATEDON , STATUS , PROVIDERID , PROCESSED_TIME FROM OPEN_APPS LEFT JOIN DATAENG_UTILS.MAPPINGS.PII_MAPPINGS PII ON PII.ROLE = CURRENT_ROLE() ); CREATE OR REPLACE VIEW VW_SUMMARY_AND_DETAIL COPY GRANTS AS ( SELECT DOCSTAMPTAX , DOCDYM , DOCDDATE , DOCWEEK , CONFPROCEDUREDATE , CONFDATEYM , ACTIVATEDONYM , LASTPAYMENTDATE , NEXTPAYMENTDATE , SCHPMT , PMTDAOFMTH , PAYMENTSTATUS , ACTIVATEDON , CURRENTMONTHACTIVATIONS , ORIGINALPRINCIPAL , TOTALPRINCIPALAMOUNTCOLLECTED , WRITEOFFAMOUNT , WRITEOFFINTERESTAMOUNT , ADJUSTMENTAMOUNT , CANCELEDAMOUNT , ENDINGPRINCIPALBALANCE , ACCRUEDINTEREST , FUTUREINTEREST , INTERESTPAID , OUTSTANDINGACCUREDINTEREST , TOTALPAYMENTS , ENDINGARBALANCE , TERM , CURRENTMONTHLYAMOUNTOWED , ACCURREDTHROUGHENDOFMONTH , CURRENTMONTHACCRUEDINTEREST , HFDID , PATIENTID , CASE WHEN PII_ACCESS = TRUE THEN CUSTOMERNAME ELSE sha2(CUSTOMERNAME,512) END AS CUSTOMERNAME, CASE WHEN PII_ACCESS = TRUE THEN PERSONRECEIVINGSERVICENAME ELSE sha2(PERSONRECEIVINGSERVICENAME,512) END AS PERSONRECEIVINGSERVICENAME, ADJUSTMENTDATE , WRITEOFFDATE , CANCELEDDATE , CURRENTMONTHADJUSTMENT , CURRENTMONTHWRITEOFF , CURRENTMONTHWRITEOFFINTERESTAMOUNT , CURRENTMONTHCANCELATION , CURRENTMONTHWAC , WAC , CURRENTMONTHPRINCIPALAMOUNTPAID , CURRENTMONTHINTERESTAMOUNTPAID , ORIGINATINGSTATE , DETAILSTATUS , TOTALDOWNPAYMENT , TOTALPROCEDURECOST , COUNTPASTDUEACCTS , AMOUNTFINANCED , TOTALINTEREST , TOTALPAYMENTDUE , INTERESTRATE , MOSTRECENTAGINGBUCKET , EXPECTEDPAYMENTS , PMTMINUSEXP , PMTAHEADOFSCH , UPDATEDPAYMENTSTATUS , MISSEDPMT , CUREDACCTS , CURRENTACCTS , HASBEENCHARGED , PROVIDERID , PROCESSED_TIME FROM SUMMARY_AND_DETAIL LEFT JOIN DATAENG_UTILS.MAPPINGS.PII_MAPPINGS PII ON PII.ROLE = CURRENT_ROLE() ); USE ROLE SECURITYADMIN; -- RENANE THE CURRENT NO PII ROLE TO MAKE IN LINE WITH OUR NAMING COVENTION ALTER ROLE "AIRFLOW_WAREHOUSE.RAW.HFD.no_pii.reader.role" RENAME TO "RAW.AIRFLOW_HFD.no_pii.reader.role"; GRANT USAGE ON DATABASE RAW TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role"; GRANT USAGE ON SCHEMA RAW.AIRFLOW_HFD TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; -- CREATE THE INDIVIDUAL TABLE ROLES AND VIEW ROLEs CREATE ROLE "RAW.AIRFLOW_HFD.AGING.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.AMORTIZATION_REPORT.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.CUSTOMER_ADJUSTED_TERM_LENGTHS.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.CUSTOMER_PORTAL_ACCESS_LAST60.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.MISSED_AND_MANUAL_PAYMENTS.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT_SUBMITTED_FUNDS.no_pii.table.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.CUSTOMERS_WITHOUT_PATRON_ACCOUNT.no_pii.view.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.DOCD_AND_ACTIVATED.no_pii.view.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.OPEN_APPS.no_pii.view.reader"; CREATE ROLE "RAW.AIRFLOW_HFD.SUMMARY_AND_DETAIL.no_pii.view.reader"; -- ADD THE INVIDUAL ROLES TO THIER TABLES/VIEW GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."AGING" TO ROLE "RAW.AIRFLOW_HFD.AGING.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."AMORTIZATION_REPORT" TO ROLE "RAW.AIRFLOW_HFD.AMORTIZATION_REPORT.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."CUSTOMER_ADJUSTED_TERM_LENGTHS" TO ROLE "RAW.AIRFLOW_HFD.CUSTOMER_ADJUSTED_TERM_LENGTHS.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."CUSTOMER_PORTAL_ACCESS_LAST60" TO ROLE "RAW.AIRFLOW_HFD.CUSTOMER_PORTAL_ACCESS_LAST60.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."MISSED_AND_MANUAL_PAYMENTS" TO ROLE "RAW.AIRFLOW_HFD.MISSED_AND_MANUAL_PAYMENTS.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."PAYMENT_REPORT" TO ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT.no_pii.table.reader"; GRANT SELECT ON TABLE "RAW"."AIRFLOW_HFD"."PAYMENT_REPORT_SUBMITTED_FUNDS" TO ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT_SUBMITTED_FUNDS.no_pii.table.reader"; GRANT SELECT ON VIEW "RAW"."AIRFLOW_HFD"."VW_CUSTOMERS_WITHOUT_PATRON_ACCOUNT" TO ROLE "RAW.AIRFLOW_HFD.CUSTOMERS_WITHOUT_PATRON_ACCOUNT.no_pii.view.reader"; GRANT SELECT ON VIEW "RAW"."AIRFLOW_HFD"."VW_DOCD_AND_ACTIVATED" TO ROLE "RAW.AIRFLOW_HFD.DOCD_AND_ACTIVATED.no_pii.view.reader"; GRANT SELECT ON VIEW "RAW"."AIRFLOW_HFD"."VW_OPEN_APPS" TO ROLE "RAW.AIRFLOW_HFD.OPEN_APPS.no_pii.view.reader"; GRANT SELECT ON VIEW "RAW"."AIRFLOW_HFD"."VW_SUMMARY_AND_DETAIL" TO ROLE "RAW.AIRFLOW_HFD.SUMMARY_AND_DETAIL.no_pii.view.reader"; -- ADD THE INVIDUAL ROLES TO ITS GrOUP ROLES GRANT ROLE "RAW.AIRFLOW_HFD.AGING.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.AMORTIZATION_REPORT.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.CUSTOMER_ADJUSTED_TERM_LENGTHS.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.CUSTOMER_PORTAL_ACCESS_LAST60.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.MISSED_AND_MANUAL_PAYMENTS.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.PAYMENT_REPORT_SUBMITTED_FUNDS.no_pii.table.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.CUSTOMERS_WITHOUT_PATRON_ACCOUNT.no_pii.view.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.DOCD_AND_ACTIVATED.no_pii.view.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.OPEN_APPS.no_pii.view.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; GRANT ROLE "RAW.AIRFLOW_HFD.SUMMARY_AND_DETAIL.no_pii.view.reader" TO ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" ; -- ADD GROUP ROLES TO THE DBT ROLE GRANT ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" TO ROLE DBT_DEV; GRANT ROLE "RAW.AIRFLOW_HFD.no_pii.reader.role" TO ROLE DBT_PROD; -------############################################################ -- TEST AND JUNK STUFF BELOW ---------------------------- ------############################################################### USE WAREHOUSE TRANSFORMING_WAREHOUSE; USE DATABASE RAW; USE SCHEMA AIRFLOW_HFD; -- TRANSFORMER ROLE HERE HAS ALL RIGHTS ON THE SCHEMA show grants on schema AIRFLOW_HFD; -- AND OWNS MANY OF THE TABLES HERE -- EXAMPLES show grants on table RAW.AIRFLOW_hfd.customer_card_info ; show grants on table RAW.AIRFLOW_hfd.AGING; show grants on table RAW.AIRFLOW_hfd.DOCD_AND_ACTIVATED; show grants to ROLE "AIRFLOW_WAREHOUSE.RAW.AIRFLOW_HFD.pii.reader.role" ; show grants ON ROLE "AIRFLOW_WAREHOUSE.RAW.AIRFLOW_HFD.pii.reader.role" ; SECURITYADMIN transforming_warehouse.analytics.finance.pii.role -- WILL RENAME AND REUSE THIS SHOW GRANTS TO ROLE "AIRFLOW_WAREHOUSE.RAW.HFD.no_pii.reader.role" SHOW GRANTS ON ROLE "AIRFLOW_WAREHOUSE.RAW.HFD.no_pii.reader.role"
-- 2020-03-09T14:53:12.021Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_AttachmentListener (AD_Client_ID,AD_JavaClass_ID,AD_Org_ID,AD_Table_AttachmentListener_ID,AD_Table_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,540053,0,540004,540409,TO_TIMESTAMP('2020-03-09 16:53:11','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2020-03-09 16:53:11','YYYY-MM-DD HH24:MI:SS'),100) ;
SELECT CAST([(1, 'Hello'), (2, 'World')] AS Array(Tuple(a UInt64, b String)));
-- ---------------------------- -- Table structure for notice -- ---------------------------- DROP TABLE IF EXISTS `circular`; CREATE TABLE `circular` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `content` mediumtext NOT NULL COMMENT '公告内容', `start` datetime NOT NULL COMMENT '开始时间', `end` datetime NOT NULL COMMENT '结束时间', `visible` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0,不可见,1可见', `url` VARCHAR (255) NOT NULL DEFAULT '' COMMENT 'url', `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公告|jiac|20180117';
-- phpMyAdmin SQL Dump -- version 4.4.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Erstellungszeit: 16. Mai 2015 um 14:57 -- Server-Version: 5.5.42 -- PHP-Version: 5.6.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Datenbank: `WebShop_development` -- -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `articles` -- CREATE TABLE `articles` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `price` float DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `photo_file_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `photo_content_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `photo_file_size` int(11) DEFAULT NULL, `photo_updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `articles` -- INSERT INTO `articles` (`id`, `name`, `description`, `price`, `deleted_at`, `created_at`, `updated_at`, `photo_file_name`, `photo_content_type`, `photo_file_size`, `photo_updated_at`) VALUES (10, 'Serious Rockaway 26"', 'Das smarte Rockaway ist ein Freizeitbike, das überall zu Hause ist - von Alltagsstrecken in der Stadt bis auf Ausflugstouren übers Land. Ob auf Feld- und Waldwegen, auf Schotterstraßen oder asphaltierten Radwegen, das Rockaway bringt seinen Fahrer zuverlässig und flott ans Ziel. Auf kleinen Anstiegen findet sich mit der zuverlässigen Shimano Altus 21 Gang Schaltung schnell die passende Übersetzung. In Kombination mit Shimano Umwerfer und Shimano Zahnkranz sorgt dieser Antrieb für nachhaltigen Fahrspaß.', 279.95, NULL, '2015-05-16 08:41:00', NULL, 'Serious_Rockaway_26_01.jpg', 'jpg', NULL, NULL), (11, 'Ortler van Dyck Black', 'Nostalgie pur - zeitlos schönes Design und solides Handwerk ergeben ein Hollandrad, wie es klassischer nicht sein könnte. Gefertigt in traditioneller Muffenbauweise aus belastbarem Stahl und ausgestattet mit dem Blick für das Wesentliche. Reduziert, aber höchst funktional und langlebig - ein echtes Ortler Qualitätsrad.', 299, NULL, '2015-05-16 08:43:00', NULL, 'Ortler_Van_Dyck_black_01.jpg', 'jpg', NULL, NULL), (12, 'Ortler Monet Herren', 'In der Stadt und über Land sitzen Sie souverän im Sattel mit dem Ortler Monet. Mal eben ein paar Einkäufe erledigen oder ins nächste Cafe ohne die lästige Suche nach einem Parkplatz? Mit dem hochwertigen 7-Gang Monet Cityrad können alltägliche Kurzstrecken in der Stadt schnell und ökologisch vertretbar bewältigt werden.', 449.99, NULL, '2015-05-16 08:47:00', NULL, 'Ortler_Monet_Herren_01.jpg', 'jpg', NULL, NULL), (13, 'Kreisler Raise RT5 LTD Damen 24"', 'Schicks Damenfahrrad', 499.99, NULL, '2015-05-16 08:50:00', NULL, 'Kreidler_Raise_RT5_LTD_Damen_24G_Deore_schwarz_glanz_01.jpg', 'jpg', NULL, NULL), (14, 'Dartmoor Two6Player Rahmen', 'Material: Aluminium\r\nTyp: Hardtail', 209.95, NULL, '2015-05-16 10:36:00', NULL, 'T6P_grey_rahmen.jpg', 'jpg', NULL, NULL), (15, 'VOTEC VE160 Rahmen', 'Das VE160 ist unsere Antwort auf jede Endurobike-Herausforderung: Lang, tief, mit flachem Lenkwinkel und steilem Sitzwinkel. Dank 160mm vollaktivem Federweg Heck jagt es sicher über Steinfelder und Wurzelteppiche - kompromisslos auf der Abfahrt und dynamisch-druckvoll im Gegenanstieg. Der VOTEC-eigene Viergelenk-Hinterbau mit Horst Link entkoppelt wirkungsvoll Bremseinflüsse von der Federung für noch mehr Traktion genau dann, wenn sie dringend gebraucht wird.', 249, NULL, '2015-05-16 10:38:00', NULL, 'VOTEC_VE160_Rahmen.jpg', 'jpg', NULL, NULL), (16, 'Mavic Crossone VR 650b Reifen', 'Viele Jahre Erfahrung in der Laufrad-Entwicklung lassen sich auch in ein preisgünstiges Laufrad packen. Sämtliche Komponenten sind auf perfektes Zusammenspiel ausgelegt - für maximale Langlebigkeit und das Fahrgefühl eines echten Systemlaufrades. Einfach, zuverlässig, Crossone.', 87.7, NULL, '2015-05-16 10:41:00', NULL, 'mavic_crossone_reifen.jpg', 'jpg', NULL, NULL), (17, 'Mavic V-Rad 26x1.75 Deore', 'Material: Aluminium\r\nBauart: Hohlkammer', 65.95, NULL, '2015-05-16 10:44:00', NULL, 'Deore_LX.jpg', 'jpg', NULL, NULL), (18, 'Cube GTS Sattel', 'Silikonkissen mit unterschiedlicher Stärke.', 39.95, NULL, '2015-05-16 10:57:00', NULL, 'cube_gts_sattel.jpg', 'jpg', NULL, NULL); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `article_structures` -- CREATE TABLE `article_structures` ( `amount` int(11) DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `upper_part_id` int(11) NOT NULL DEFAULT '0', `lower_part_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Daten für Tabelle `article_structures` -- INSERT INTO `article_structures` (`amount`, `deleted_at`, `upper_part_id`, `lower_part_id`, `created_at`, `updated_at`) VALUES (1, NULL, 10, 14, '2015-05-16 11:29:00', NULL), (2, NULL, 10, 16, '2015-05-16 11:28:00', NULL), (1, NULL, 11, 15, '2015-05-16 11:27:00', NULL), (2, NULL, 11, 16, '2015-05-16 11:26:00', NULL), (1, NULL, 12, 15, '2015-05-16 11:25:00', NULL), (2, NULL, 12, 16, '2015-05-16 11:24:00', NULL), (1, NULL, 13, 14, '2015-05-16 11:23:00', NULL), (2, NULL, 13, 16, '2015-05-16 11:22:00', NULL), (1, NULL, 14, 18, '2015-05-16 11:30:00', NULL), (1, NULL, 15, 18, '2015-05-16 11:31:00', NULL), (1, NULL, 16, 17, '2015-05-16 11:32:00', NULL); -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `article_to_tags` -- CREATE TABLE `article_to_tags` ( `article_id` int(11) NOT NULL, `tag_id` int(11) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `bills` -- CREATE TABLE `bills` ( `id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `bill_entries` -- CREATE TABLE `bill_entries` ( `amount` int(11) DEFAULT NULL, `bill_id` int(11) NOT NULL DEFAULT '0', `article_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `news` -- CREATE TABLE `news` ( `id` int(11) NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `shopping_cart_entries` -- CREATE TABLE `shopping_cart_entries` ( `amount` int(11) DEFAULT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `article_id` int(11) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `tags` -- CREATE TABLE `tags` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `firstname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `lastname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password_digest` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `remember_digest` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `role` int(11) DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Indizes der exportierten Tabellen -- -- -- Indizes für die Tabelle `articles` -- ALTER TABLE `articles` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `article_structures` -- ALTER TABLE `article_structures` ADD PRIMARY KEY (`upper_part_id`,`lower_part_id`), ADD KEY `fk_article_structures_articles1_idx` (`lower_part_id`); -- -- Indizes für die Tabelle `article_to_tags` -- ALTER TABLE `article_to_tags` ADD PRIMARY KEY (`article_id`,`tag_id`), ADD KEY `fk_article_to_tags_articles_idx` (`article_id`), ADD KEY `fk_article_to_tags_tags1_idx` (`tag_id`); -- -- Indizes für die Tabelle `bills` -- ALTER TABLE `bills` ADD PRIMARY KEY (`id`), ADD KEY `fk_bills_users1_idx` (`user_id`); -- -- Indizes für die Tabelle `bill_entries` -- ALTER TABLE `bill_entries` ADD PRIMARY KEY (`bill_id`,`article_id`), ADD KEY `fk_bill_entries_articles1_idx` (`article_id`); -- -- Indizes für die Tabelle `news` -- ALTER TABLE `news` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `shopping_cart_entries` -- ALTER TABLE `shopping_cart_entries` ADD PRIMARY KEY (`user_id`,`article_id`), ADD KEY `fk_shopping_cart_entries_articles1_idx` (`article_id`); -- -- Indizes für die Tabelle `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Indizes für die Tabelle `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT für exportierte Tabellen -- -- -- AUTO_INCREMENT für Tabelle `articles` -- ALTER TABLE `articles` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19; -- -- AUTO_INCREMENT für Tabelle `bills` -- ALTER TABLE `bills` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT für Tabelle `news` -- ALTER TABLE `news` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT für Tabelle `tags` -- ALTER TABLE `tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11; -- -- AUTO_INCREMENT für Tabelle `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- Constraints der exportierten Tabellen -- -- -- Constraints der Tabelle `article_structures` -- ALTER TABLE `article_structures` ADD CONSTRAINT `fk_article_structures_articles1` FOREIGN KEY (`lower_part_id`) REFERENCES `articles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_article_structures_articles2` FOREIGN KEY (`upper_part_id`) REFERENCES `articles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints der Tabelle `article_to_tags` -- ALTER TABLE `article_to_tags` ADD CONSTRAINT `fk_article_to_tags_articles` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_article_to_tags_tags1` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints der Tabelle `bills` -- ALTER TABLE `bills` ADD CONSTRAINT `fk_bills_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints der Tabelle `bill_entries` -- ALTER TABLE `bill_entries` ADD CONSTRAINT `fk_bill_entries_bills1` FOREIGN KEY (`bill_id`) REFERENCES `bills` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_bill_entries_articles1` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints der Tabelle `shopping_cart_entries` -- ALTER TABLE `shopping_cart_entries` ADD CONSTRAINT `fk_shopping_cart_entries_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_shopping_cart_entries_articles1` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
CREATE TRIGGER dbo.TR_InventoryDecrementForEachProductIDINSERT3 ON dbo.ORDERLINES after INSERT AS BEGIN update Inventorys set inventorys.quantity = inventorys.quantity - inserted.quantity from inserted where inventorys.productid = inserted.productid END select * from Inventorys insert into OrderLines (ProductID, OrderID, Quantity) Values (7, 8, 5)
CREATE TABLE IF NOT EXISTS `PREFIX_htl_testimonials_block_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `designation` text NOT NULL, `testimonial_heading` text NOT NULL, `testimonial_description` text NOT NULL, `testimonial_content` text NOT NULL, `testimonial_image` text NOT NULL, `parent_data` int(1) NOT NULL, `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- Performs a hard reset of the public schema. DROP SCHEMA public CASCADE; CREATE SCHEMA public;
/****************************************************** NAME: SP_fetch_lane_bookings FUNCTION: Fetch lane detail MySql > CALL SP_fetch_lane_bookings(?) FIRST CREATED: 20211117 UPDATED: 20211117 ******************************************************/ USE cric_shop_api; SELECT "Dropping PROCEDURE SP_fetch_lane_bookings"; DROP PROCEDURE IF EXISTS SP_fetch_lane_bookings; SELECT "Creating PROCEDURE SP_fetch_lane_bookings"; DELIMITER // CREATE PROCEDURE SP_fetch_lane_bookings( IN lane_id INTEGER ) BEGIN SELECT lane_booking.started_at, lane_booking.finished_at FROM lane_booking WHERE lane_booking.lane_id = lane_id AND lane_booking.status IN ('CONFIRMED','INITIATED','PENDING','UPDATED') AND lane_booking.started_at >= UNIX_TIMESTAMP()*1000; END // DELIMITER ; SELECT "PROCEDURE SP_fetch_lane_bookings created successfully";
insert into Authors (Id, FullName) values (1, 'Lelah Durgan'); insert into Authors (Id, FullName) values (2, 'Rowen Payze'); insert into Authors (Id, FullName) values (3, 'Arnoldo Hales'); insert into Authors (Id, FullName) values (4, 'Helge Fellis'); insert into Authors (Id, FullName) values (5, 'Myrta O''Driscoll'); insert into Authors (Id, FullName) values (6, 'Marnia Andryunin'); insert into Authors (Id, FullName) values (7, 'Dara Laker'); insert into Authors (Id, FullName) values (8, 'Nataline Canton'); insert into Authors (Id, FullName) values (9, 'Nerte Edgington'); insert into Authors (Id, FullName) values (10, 'Weider Ludman');
-- @testpoint: 空,空格,null SELECT bit_length(''); select bit_length(' '); select bit_length(null);
select sites.site, sites."domain", sites.region, regions.name as region_name, sites.created, sites.updated, sites.tags, sites.description, sites.labels from sites join regions on sites.region = regions.region where (sites.site::varchar(128) = $1::varchar(128) or sites.domain::varchar(256) = $1::varchar(256)) and sites.deleted = false
USE `cosinee`; -- ----------------- -- prepare variables -- ----------------- SET @dbname = DATABASE ( ); SET @tablename = "uk_callcenter_pbxhost"; SET @columnname = "apiport"; SET @preparedStatement = ( SELECT IF ( ( SELECT COUNT( * ) FROM INFORMATION_SCHEMA.COLUMNS WHERE ( table_name = @tablename ) AND ( table_schema = @dbname ) AND ( column_name = @columnname ) ) > 0, "SELECT 1", CONCAT( "ALTER TABLE ", @tablename, " ADD ", @columnname, " int(11) NOT NULL COMMENT 'Chatopera Switch API端口';" ) ) ); PREPARE alterIfNotExists FROM @preparedStatement; EXECUTE alterIfNotExists; DEALLOCATE PREPARE alterIfNotExists;
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 09, 2018 at 12:09 PM -- Server version: 5.6.14 -- PHP Version: 5.3.13 -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- SET time_zone = "+00:00"; SET IDENTITY_INSERT transres_antibodyList ON; INSERT INTO transres_antibodyList (id, category, name, altname, company, catalog, lot, igconcentration, clone, host, reactivity, control, protocol, retrieval, dilution, storage, comment, datasheet, pdf) VALUES (1, 'M', 'Androgen Receptor', 'AR ', 'Abcam', 'ab74272', 'GR32463-1', '0.2 mg/ml', 'Poly', 'Rabbit ', 'Human, mouse', 'Xenograft Control/Prostate Ca.', 'Envision Rabbit R. ', 'H130', '1:200', '-20 oC', 'Project: 12743 RS#: 30323 PI: Rubin/Kyung Condition confirmed by Dr. Rubin/Kyung on 03/09/2011', 'http://www.abcam.com/Androgen-Receptor-antibody-ab74272.html', 'upload/pdf/1296507249.pdf'); INSERT INTO transres_antibodyList (id, category, name, altname, company, catalog, lot, igconcentration, clone, host, reactivity, control, protocol, retrieval, dilution, storage, comment, datasheet, pdf) VALUES (3, 'M', 'Bcl-6 - Rabbit Anti-mouse', NULL, 'Santa Cruz', 'Bcl6 (sc-858)', '', '200 ug/ml', 'Poly', 'Rabbit', 'Mouse, human, rat', 'I08-995 A1 (#22)) Flip CD19 Promotor/', 'Envision Rabbit Refine', 'H230', '1 to 50', '4C', 'Project: 10820 RS#: PI: Cesarman ', 'http://www.scbt.com/datasheet-858-bcl-6-n-3-antibody.html', ' '); SET IDENTITY_INSERT transres_antibodyList OFF;
-- !Ups ALTER TABLE reports ADD COLUMN forward_to_reponseconso BOOLEAN NOT NULL DEFAULT false; -- !Downs ALTER TABLE reports DROP COLUMN forward_to_reponseconso;
{{ config( indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}], unique_key = '_airbyte_ab_id', schema = "_airbyte_test_normalization", tags = [ "top-level-intermediate" ] ) }} -- SQL model to cast each column to its adequate SQL type converted from the JSON schema type -- depends_on: {{ ref('conflict_stream_scalar_ab1') }} select cast({{ adapter.quote('id') }} as {{ dbt_utils.type_string() }}) as {{ adapter.quote('id') }}, cast(conflict_stream_scalar as {{ dbt_utils.type_bigint() }}) as conflict_stream_scalar, _airbyte_ab_id, _airbyte_emitted_at, {{ current_timestamp() }} as _airbyte_normalized_at from {{ ref('conflict_stream_scalar_ab1') }} -- conflict_stream_scalar where 1 = 1
CREATE ROLE "{{name}}" CREATEDB LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';
// @Test: ExpressionDef context Patient define Foo: 'Bar' // @Test: ExpressionRef define Life: 42 define Foo: Life // @Test: FunctionDefinitions define function "foo bar"(a Integer, b Integer) : a + b define testValue: "foo bar"(1,2) // @Test: FunctionOverloadsWithSingleArgument define function process(a System.Integer) : a + 1 define function process(a System.String) : 'Hello ' + a define testValue1: process(1) define testValue2: process('World') // @Test: FunctionOverloadsWithMultipleArguments define function process(inverse System.Boolean, a System.Integer) : if inverse then a - 1 else a + 1 define function process(inverse System.Boolean, a System.String) : if inverse then 'Goodbye ' + a else 'Hello ' + a define testValue1: process(true, 1) define testValue2: process(true, 'World') // @Test: FunctionOverloadsWithDifferentNumberOfArguments define function process(a System.String) : 'Hello ' + a define function process(a System.String, isSpanish System.Boolean) : if isSpanish then 'Hola ' + a + ' from Spain' else 'Hello ' + a + ' from England' define testValue1: process('World') define testValue2: process('World', true) define testValue3: process('World', false) // @Test: FunctionOverloadsWithArgumentsFromCustomDataModel define function process(e Simple.Encounter) : 'Encounter ' + e.id define function process(c Simple.Condition) : 'Condition ' + c.id define testValue1: process(First([Encounter])) define testValue2: process(First([Condition]))
-- Copyright © 2018 Chris Rink -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- :name oauth-state :? :1 -- :doc Get the OAuth state, if it exists. SELECT state FROM oauth WHERE state = :state -- :name start-oauth :! :n -- :doc Create a new OAuth flow. INSERT INTO oauth (state) VALUES (:state) -- :name delete-oauth :! :n -- :doc Delete OAuth state. DELETE FROM oauth WHERE state = :state -- :name new-workspace :! :n -- :doc Create a new workspace/team. INSERT INTO teams (workspace_id, oauth_access_token, app_user_id) VALUES (:workspace_id, :oauth_access_token, :app_user_id) -- :name workspace-details :? :1 -- :doc Get details about the workspace, if it exists. SELECT workspace_id, oauth_access_token, app_user_id FROM teams WHERE workspace_id = :workspace_id
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 29-Out-2020 às 09:30 -- Versão do servidor: 10.1.40-MariaDB -- versão do PHP: 7.3.5 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: `javaweb` -- CREATE DATABASE IF NOT EXISTS `javaweb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `javaweb`; -- -------------------------------------------------------- -- -- Estrutura da tabela `usuarios` -- CREATE TABLE `usuarios` ( `Id` int(11) NOT NULL, `nome` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `senha` varchar(50) NOT NULL, `nivel` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `usuarios` -- INSERT INTO `usuarios` (`Id`, `nome`, `email`, `senha`, `nivel`) VALUES (1, 'Biazinha', 'bia@gmail.com', 'biapass', 'top'), (2, 'User', 'email@gmail.com', 'senhapadrao', 'comum'), (3, 'Usuario novo', 'usernv@hotmail.com', '12345', 'comum'), (5, 'Teste', 'teste@gmail.com', '4567', 'comum'), (7, 'Teste2', 'emaildeexemplo@gmail.com', '789', 'comum'), (8, 'Admin', 'adm@email.com', '123', 'top'); -- -- Indexes for dumped tables -- -- -- Indexes for table `usuarios` -- ALTER TABLE `usuarios` ADD PRIMARY KEY (`Id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `usuarios` -- ALTER TABLE `usuarios` MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
create database tasks;
DROP FUNCTION IF EXISTS fetchq_queue_set_current_version(CHARACTER VARYING, INTEGER); CREATE OR REPLACE FUNCTION fetchq_queue_set_current_version ( PAR_queue VARCHAR, PAR_newVersion INTEGER, OUT affected_rows INTEGER, OUT was_reindexed BOOLEAN ) AS $$ DECLARE VAR_q VARCHAR; VAR_r RECORD; BEGIN -- initial values affected_rows = 0; was_reindexed = true; -- change max_attempts in the table VAR_q = ''; VAR_q = VAR_q || 'UPDATE fetchq_sys_queues '; VAR_q = VAR_q || 'SET current_version = %s '; VAR_q = VAR_q || 'WHERE name = ''%s'' RETURNING max_attempts'; VAR_q = FORMAT(VAR_q, PAR_newVersion, PAR_queue); EXECUTE VAR_q INTO VAR_r; GET DIAGNOSTICS affected_rows := ROW_COUNT; -- drop max_attempts related indexes -- VAR_q = 'DROP INDEX IF EXISTS fetchq_%s_for_pick_idx'; -- EXECUTE FORMAT(VAR_q, PAR_queue); -- VAR_q = 'DROP INDEX IF EXISTS fetchq_%s_for_pnd_idx'; -- EXECUTE FORMAT(VAR_q, PAR_queue); -- re-index the table PERFORM fetchq_queue_create_indexes(PAR_queue, PAR_newVersion, VAR_r.max_attempts); EXCEPTION WHEN OTHERS THEN BEGIN was_reindexed = false; END; END; $$ LANGUAGE plpgsql;
-- AlterTable ALTER TABLE "Goal" ALTER COLUMN "key" DROP NOT NULL, ALTER COLUMN "personal" DROP NOT NULL, ALTER COLUMN "private" DROP NOT NULL;
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE deparment ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL, ); CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) NOT NULL, salary DECIMAL NOT NULL, deparment_id INT, ); CREATE TABLE employee ( id INT PRIMARY KEY AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT, manager );
CREATE TABLE STUDENTS( ID INT UNIQUE, NAME VARCHAR(50) NOT NULL, GENDER VARCHAR NOT NULL, MARKS INT CHECK(MARKS >= 35), STATUS VARCHAR(50) DEFAULT 'NOT VACCINATED' ); INSERT INTO STUDENTS VALUES(514, 'NIGA1', 'M', 43, 'VACCINATED'), (122, 'NIGA2', 'F', 69, DEFAULT); SELECT * FROM STUDENTS;
ALTER TABLE `mkt_feed_shelf_membership` ADD COLUMN `group` int(11) UNSIGNED NULL UNIQUE; ALTER TABLE `mkt_feed_shelf_membership` ADD CONSTRAINT `mkt_feed_shelf_membership_group` FOREIGN KEY (`group`) REFERENCES `translations` (`id`);
-- -- 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. -- DELETE FROM TRV_ACCT_TYPE / INSERT INTO TRV_ACCT_TYPE(ACCT_TYPE, ACCT_TYPE_NAME, OBJ_ID, VER_NBR) VALUES('CAT', 'Clearing', 'CAT', 1) / INSERT INTO TRV_ACCT_TYPE(ACCT_TYPE, ACCT_TYPE_NAME, OBJ_ID, VER_NBR) VALUES('EAT', 'Expense', 'EAT', 1) / INSERT INTO TRV_ACCT_TYPE(ACCT_TYPE, ACCT_TYPE_NAME, OBJ_ID, VER_NBR) VALUES('IAT', 'Income', 'IAT', 1) / COMMIT /
-- Upgrade MetaStore schema from 0.7.0 to 0.8.0 RUN '008-HIVE-2246.derby.sql'; RUN '009-HIVE-2215.derby.sql';
do $$ begin if exists ( select 1 from information_schema.tables where table_name = 'allowed_emails' ) then alter table allowed_emails rename to beta_email_invites; end if; end$$; do $$ begin if not exists ( select 1 from information_schema.columns where table_name = 'beta_email_invites' and column_name = 'approved' ) then alter table beta_email_invites add column approved boolean default false, add column approved_by uuid, add column approved_date timestamp with time zone, add constraint beta_email_invites_approved_by_fkey foreign key (approved_by) references users(id); end if; end$$;
CREATE PROCEDURE [dbo].[FindCreateLinkType] @ReferenceName nvarchar(200), @DisplayName nvarchar(200), @SourceArtifactTypeId int, @TargetArtifactTypeId int, @ExtendedProperty nvarchar(max), @Id int output AS SELECT @Id = Id from LINK_LINK_TYPE where ReferenceName = @ReferenceName and DisplayName = @DisplayName and SourceArtifactTypeId = @SourceArtifactTypeId and TargetArtifactTypeId = @TargetArtifactTypeId; if @Id is null begin insert into LINK_LINK_TYPE (ReferenceName, DisplayName, SourceArtifactTypeId, TargetArtifactTypeId, ExtendedProperty) values (@ReferenceName, @DisplayName, @SourceArtifactTypeId, @TargetArtifactTypeId, @ExtendedProperty); select @Id = @@identity; end RETURN 0;
DROP VIEW v_Subj16Department CASCADE; CREATE OR REPLACE VIEW v_Subj16Department AS SELECT innerRel.x1 AS att1 FROM ( SELECT ca_0.individual AS x1 FROM concept_assertion ca_0 WHERE ca_0.concept=28 ) as innerRel
CREATE TYPE [dbo].[SQLDB] AS TABLE ( [name] [sysname] NOT NULL, [database_id] INT NOT NULL, [source_database_id] INT NULL, [owner_sid] VARBINARY(85) NULL, [create_date] DATETIME NOT NULL, [compatibility_level] TINYINT NOT NULL, [collation_name] [sysname] NULL, [user_access] TINYINT NULL, [is_read_only] BIT NULL, [is_auto_close_on] BIT NOT NULL, [is_auto_shrink_on] BIT NULL, [state] TINYINT NULL, [is_in_standby] BIT NULL, [is_cleanly_shutdown] BIT NULL, [is_supplemental_logging_enabled] BIT NULL, [snapshot_isolation_state] TINYINT NULL, [is_read_committed_snapshot_on] BIT NULL, [recovery_model] TINYINT NULL, [page_verify_option] TINYINT NULL, [is_auto_create_stats_on] BIT NULL, [is_auto_create_stats_incremental_on] BIT NULL, [is_auto_update_stats_on] BIT NULL, [is_auto_update_stats_async_on] BIT NULL, [is_ansi_null_default_on] BIT NULL, [is_ansi_nulls_on] BIT NULL, [is_ansi_padding_on] BIT NULL, [is_ansi_warnings_on] BIT NULL, [is_arithabort_on] BIT NULL, [is_concat_null_yields_null_on] BIT NULL, [is_numeric_roundabort_on] BIT NULL, [is_quoted_identifier_on] BIT NULL, [is_recursive_triggers_on] BIT NULL, [is_cursor_close_on_commit_on] BIT NULL, [is_local_cursor_default] BIT NULL, [is_fulltext_enabled] BIT NULL, [is_trustworthy_on] BIT NULL, [is_db_chaining_on] BIT NULL, [is_parameterization_forced] BIT NULL, [is_master_key_encrypted_by_server] BIT NOT NULL, [is_query_store_on] BIT NULL, [is_published] BIT NOT NULL, [is_subscribed] BIT NOT NULL, [is_merge_published] BIT NOT NULL, [is_distributor] BIT NOT NULL, [is_sync_with_backup] BIT NOT NULL, [is_broker_enabled] BIT NOT NULL, [log_reuse_wait] TINYINT NULL, [is_date_correlation_on] BIT NOT NULL, [is_cdc_enabled] BIT NULL, [is_encrypted] BIT NULL, [is_honor_broker_priority_on] BIT NULL, [replica_id] UNIQUEIDENTIFIER NULL, [group_database_id] UNIQUEIDENTIFIER NULL, [resource_pool_id] INT NULL, [default_language_lcid] SMALLINT NULL, [default_language_name] NVARCHAR (128) NULL, [default_fulltext_language_lcid] INT NULL, [default_fulltext_language_name] NVARCHAR (128) NULL, [is_nested_triggers_on] BIT NULL, [is_transform_noise_words_on] BIT NULL, [two_digit_year_cutoff] SMALLINT NULL, [containment] TINYINT NULL, [target_recovery_time_in_seconds] INT NULL, [delayed_durability] INT NULL, [is_memory_optimized_elevate_to_snapshot_on] BIT NULL, [is_federation_member] BIT NULL, [is_remote_data_archive_enabled] BIT NULL, [is_mixed_page_allocation_on] BIT NULL, PRIMARY KEY CLUSTERED ([database_id] ASC));
-- @testpoint: radius函数计算圆的半径,整数半径 SELECT radius(circle '((0,0),2)') AS RESULT;
INSERT INTO statuses ( 'name') VALUES ( 'Новое'), ( 'В работе'), ( 'Выполнено'), ( 'Отменено'), ( 'Провалено'), ( '')
alter table egtl_license add column ASSESSMENTNO character varying(64);
select distinct account.display_name from tag t1, site s1, question q1, tag_question tq1, so_user u1, tag t2, site s2, question q2, tag_question tq2, so_user u2, account where -- group theory askers s1.site_name='stackoverflow' and t1.name = 'textview' and t1.site_id = s1.site_id and q1.site_id = s1.site_id and tq1.site_id = s1.site_id and tq1.question_id = q1.id and tq1.tag_id = t1.id and q1.owner_user_id = u1.id and q1.site_id = u1.site_id and -- D&D askers s2.site_name='gis' and t2.name = 'python' and t2.site_id = s2.site_id and q2.site_id = s2.site_id and tq2.site_id = s2.site_id and tq2.question_id = q2.id and tq2.tag_id = t2.id and q2.owner_user_id = u2.id and q2.site_id = u2.site_id and -- intersect u1.account_id = u2.account_id and account.id = u1.account_id;
-- Deploy seattleflu/schema:warehouse/identifier-set/use-not-null to pg -- requires: warehouse/identifier-set/use begin; alter table warehouse.identifier_set alter column use set not null; commit;
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] EMBL-European Bioinformatics Institute -- -- 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. # patch_40_41_e # # title: update schema version # # description: # Update schema_version in meta table to 41 UPDATE meta SET meta_value='41' WHERE meta_key='schema_version'; # patch identifier INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_40_41_e.sql|schema_version');
-- Blog posts drop table if exists posts; create table posts ( id serial, title text not null, content text not null, author varchar(64) not null, created timestamp(0) default now() not null, comments integer default 0 not null, primary key (id) ); -- Blog comments drop table if exists comments; create table comments ( id serial, sender varchar(64) not null, email varchar(64), url varchar(1024), body text not null, created timestamp(0) default now() not null, post bigint not null, foreign key (post) references posts(id) );
/* Navicat Premium Data Transfer Source Server : SAKILA TGSAL Source Server Type : MySQL Source Server Version : 50564 Source Host : 103.219.112.2:3306 Source Schema : sierpekade_v0_1_proses Target Server Type : MySQL Target Server Version : 50564 File Encoding : 65001 Date: 04/09/2020 14:22:02 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tmrekening_akuns -- ---------------------------- DROP TABLE IF EXISTS `tmrekening_akuns`; CREATE TABLE `tmrekening_akuns` ( `id` varchar(1) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'menu rekening/kode akun', `kd_rek_akun` varchar(1) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '', `nm_rek_akun` varchar(30) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, `kd_rekening` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, `kd_rek_akrual` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, `kd_rek_aset` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, `kd_rek_utang` varchar(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, `created_by` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_by` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `neraca` tinyint(1) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `kd_rek_akun`(`kd_rek_akun`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of tmrekening_akuns -- ---------------------------- INSERT INTO `tmrekening_akuns` VALUES ('1', '1', 'ASET', NULL, NULL, NULL, NULL, '', '2020-02-03 16:11:29', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('2', '2', 'KEWAJIBAN', NULL, NULL, NULL, NULL, '', '2020-02-03 16:11:48', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('3', '3', 'EKUITAS', NULL, NULL, NULL, NULL, '', '2020-02-03 16:11:49', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('4', '4', 'PENDAPATAN DAERAH', NULL, NULL, NULL, NULL, '', '2020-02-03 16:11:49', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('5', '5', 'BELANJA DAERAH', NULL, NULL, NULL, NULL, '', '2020-02-03 16:11:54', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('6', '6', 'PEMBIAYAAN DAERAH', NULL, NULL, NULL, NULL, '', '2020-02-11 15:33:00', 'admin', '2020-02-11 08:19:34', NULL); INSERT INTO `tmrekening_akuns` VALUES ('7', '7', 'PENDAPATAN DAERAH-LO', NULL, NULL, NULL, NULL, '', '2020-02-03 16:12:15', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('8', '8', 'BEBAN DAERAH', NULL, NULL, NULL, NULL, '', '2020-02-03 16:12:23', NULL, NULL, NULL); INSERT INTO `tmrekening_akuns` VALUES ('9', '9', 'PERHITUNGAN FIHAK KETIGA (PFK)', NULL, NULL, NULL, NULL, 'admin', '2020-07-16 03:45:41', NULL, '2020-07-16 03:45:41', NULL); SET FOREIGN_KEY_CHECKS = 1;
SELECT * FROM roles WHERE server_id=%s;
DROP TABLE IF EXISTS department; CREATE TABLE department ( department_id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(255) NOT NULL UNIQUE, PRIMARY KEY (department_id) ); DROP TABLE IF EXISTS employee; CREATE TABLE employee ( employee_id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL UNIQUE, salary INT NOT NULL, department_id INT NOT NULL, PRIMARY KEY (employee_id), FOREIGN KEY (department_id) REFERENCES department(department_id) );
-- -- Indexes for MySQL -- CREATE INDEX at_tv_idx ON access_token(token_value(767)); CREATE INDEX ts_oi_idx ON token_scope(owner_id); CREATE INDEX at_exp_idx ON access_token(expiration); CREATE INDEX rf_ahi_idx ON refresh_token(auth_holder_id); CREATE INDEX rf_tv_idx ON refresh_token(token_value(105)); CREATE INDEX cd_ci_idx ON client_details(client_id); CREATE INDEX at_ahi_idx ON access_token(auth_holder_id); CREATE INDEX aha_oi_idx ON authentication_holder_authority(owner_id); CREATE INDEX ahe_oi_idx ON authentication_holder_extension(owner_id); CREATE INDEX ahrp_oi_idx ON authentication_holder_request_parameter(owner_id); CREATE INDEX ahri_oi_idx ON authentication_holder_resource_id(owner_id); CREATE INDEX ahrt_oi_idx ON authentication_holder_response_type(owner_id); CREATE INDEX ahs_oi_idx ON authentication_holder_scope(owner_id); CREATE INDEX ac_ahi_idx ON authorization_code(auth_holder_id); CREATE INDEX suaa_oi_idx ON saved_user_auth_authority(owner_id);
CREATE TABLE [dbo].[Employee] ( [ID] UNIQUEIDENTIFIER NOT NULL, [Active] BIT NOT NULL, [DeleteDate] DATETIME2 (7) NULL, [Timestamp] DATETIME2 (7) NOT NULL, [user] UNIQUEIDENTIFIER NOT NULL, [company] UNIQUEIDENTIFIER NOT NULL, [InstanceID] UNIQUEIDENTIFIER NOT NULL, [RFC] NVARCHAR(13) NOT NULL, [BirthDate] DATETIME2 NULL, [NSS] NVARCHAR(11) NOT NULL, [BornPlace] NVARCHAR(100) NULL, [CivilStatus] INT NULL, [Code] NVARCHAR(100) NOT NULL, [CURP] NVARCHAR(18) NOT NULL, [Name] NVARCHAR(150) NOT NULL, [FirstLastName] NVARCHAR(150) NOT NULL, [SecondLastName] NVARCHAR(150) NULL, [Gender] INT NOT NULL, [JobPositionID] UNIQUEIDENTIFIER NOT NULL, [DepartmentID] UNIQUEIDENTIFIER NOT NULL, [PeriodTypeID] UNIQUEIDENTIFIER NOT NULL, [WorkshiftID] UNIQUEIDENTIFIER NOT NULL, [BankID] UNIQUEIDENTIFIER NULL, [EntryDate] DATETIME2 NULL, [ReEntryDate] DATETIME2 NULL, [ContractType] INT NULL, [DailySalary] DECIMAL(18, 6) NULL, [ContributionBase] INT NULL, [SBCFixedPart] DECIMAL(18, 6) NULL, [SBCVariablePart] DECIMAL(18, 6) NULL, [SBCMax25UMA] DECIMAL(18, 6) NULL, [PaymentBase] INT NULL, [PaymentMethod] INT NULL, [SalaryZone] INT NULL, [RegimeType] INT NULL, [Email] NVARCHAR(320) NULL, [UMF] NVARCHAR(100) NULL, [Phone] NVARCHAR(50) NULL, [BankAccount] NVARCHAR(50) NULL, [EmployerRegistrationID] UNIQUEIDENTIFIER NULL, [ZipCode] NVARCHAR(100) NULL, [FederalEntity] NVARCHAR(100) NULL, [Municipality] NVARCHAR(100) NULL, [Street] NVARCHAR(100) NULL, [ExteriorNumber] NVARCHAR(100) NULL, [InteriorNumber] NVARCHAR(100) NULL, [Suburb] NVARCHAR(100) NULL, [Reference] NVARCHAR(100) NULL, [StatusID] INT NOT NULL, [Description] NVARCHAR (250) NOT NULL, [CreationDate] DATETIME2 (7) NOT NULL, [IdentityUserID] UNIQUEIDENTIFIER NULL, [EmployeeTrustLevel] INT NOT NULL default(1), [SettlementSalaryBase] DECIMAL(18, 6) NOT NULL DEFAULT(0), [BankBranchNumber] NVARCHAR(50) NULL, [CLABE] NVARCHAR(20) NULL, [LocalStatus] INT NOT NULL DEFAULT(0), [LastStatusChange] DATETIME2 (7) NOT NULL , [BenefitType] INT NOT NULL default(1), [ImmediateLeaderEmployeeID] uniqueidentifier NULL, [UnregisteredDate] DATETIME2 NULL, [Cellphone] NVARCHAR(15) NULL, [IsKioskEnabled] bit NOT NULL default(0), CONSTRAINT [PK_Employee] PRIMARY KEY CLUSTERED ([ID] ASC), CONSTRAINT [FK_Employee_JobPosition] FOREIGN KEY (JobPositionID) REFERENCES JobPosition([ID]), CONSTRAINT [FK_Employee_Department] FOREIGN KEY (DepartmentID) REFERENCES Department([ID]), CONSTRAINT [FK_Employee_PeriodType] FOREIGN KEY (PeriodTypeID) REFERENCES PeriodType([ID]), CONSTRAINT [FK_Employee_Workshift] FOREIGN KEY (WorkshiftID) REFERENCES Workshift([ID]), CONSTRAINT [FK_Employee_EmployerRegistration] FOREIGN KEY (EmployerRegistrationID) REFERENCES EmployerRegistration([ID]), CONSTRAINT [FK_Employee_Bank] FOREIGN KEY (BankID) REFERENCES Bank([ID]), CONSTRAINT [FK_Employee_LeaderEmployee] FOREIGN KEY (ImmediateLeaderEmployeeID) REFERENCES Employee([ID]), ); GO --GetAll CREATE NONCLUSTERED INDEX [IX_Employee_InstanceID] ON [dbo].[Employee]([InstanceID], [Active]); GO --GetBy InstanceId and Company CREATE NONCLUSTERED INDEX [IX_Employee_InstanceID_company] ON [dbo].[Employee]([InstanceID], [company]); GO --GetBy RegistrationId CREATE NONCLUSTERED INDEX [IX_Employee_RegistrationID] ON [dbo].[Employee]([InstanceID], [company], [EmployerRegistrationID]); GO --GetUserIdentityID CREATE NONCLUSTERED INDEX [IX_Employee_IdentityUserID] ON [dbo].[Employee]([IdentityUserID], [Active]); GO
create procedure [CommonSchemaTests].[test log4Private.SqlException.UtcDate defaults to UTC insert date-time] as begin declare @_start datetime2(4) = getutcdate(); --! Assemble exec tSQLt.FakeTable @TableName = 'log4Private.SqlException', @Defaults = 1; --! Act insert log4Private.SqlException (ExceptionId) values (1); --! Assert declare @_actual datetime2(4) = (select UtcDate from log4Private.SqlException) declare @_end datetime2(4) = getutcdate(); if coalesce(@_actual, '19000101') not between @_start and @_end begin declare @msg varchar(500) = 'Expected UtcDate between ' + format(@_start, 'yyyy-MM-dd HH:mm:ss.mmmm') + ' and ' + format(@_end, 'yyyy-MM-dd HH:mm:ss.mmmm') + ' but was ' + coalesce(format(@_actual, 'yyyy-MM-dd HH:mm:ss.mmmm'), 'NULL') exec tSQLt.Fail @msg ; end end
IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[Person].[vAdditionalContactInfo]')) DROP VIEW [Person].[vAdditionalContactInfo] GO CREATE VIEW [Person].[vAdditionalContactInfo] AS SELECT [BusinessEntityID] ,[FirstName] ,[MiddleName] ,[LastName] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:telephoneNumber)[1]/act:number', 'nvarchar(50)') AS [TelephoneNumber] ,LTRIM(RTRIM([ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:telephoneNumber/act:SpecialInstructions/text())[1]', 'nvarchar(max)'))) AS [TelephoneSpecialInstructions] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:Street)[1]', 'nvarchar(50)') AS [Street] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:City)[1]', 'nvarchar(50)') AS [City] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:StateProvince)[1]', 'nvarchar(50)') AS [StateProvince] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:PostalCode)[1]', 'nvarchar(50)') AS [PostalCode] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:CountryRegion)[1]', 'nvarchar(50)') AS [CountryRegion] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:homePostalAddress/act:SpecialInstructions/text())[1]', 'nvarchar(max)') AS [HomeAddressSpecialInstructions] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:eMail/act:eMailAddress)[1]', 'nvarchar(128)') AS [EMailAddress] ,LTRIM(RTRIM([ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:eMail/act:SpecialInstructions/text())[1]', 'nvarchar(max)'))) AS [EMailSpecialInstructions] ,[ContactInfo].ref.value(N'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; declare namespace act="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactTypes"; (act:eMail/act:SpecialInstructions/act:telephoneNumber/act:number)[1]', 'nvarchar(50)') AS [EMailTelephoneNumber] ,[rowguid] ,[ModifiedDate] FROM [Person].[Person] OUTER APPLY [AdditionalContactInfo].nodes( 'declare namespace ci="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ContactInfo"; /ci:AdditionalContactInfo') AS ContactInfo(ref) WHERE [AdditionalContactInfo] IS NOT NULL; GO
---------------------------数据字典生成工具(V1.0)-------------------------------- declare tableExist number; begin select count(1) into tableExist from user_tables where upper(table_name)=upper('SYS_DEPARTMENT') ; if tableExist = 0 then execute immediate ' CREATE TABLE SYS_DEPARTMENT( DEPARTMENTID VARCHAR2(32) DEFAULT sys_guid() NOT NULL , BUNAME NVARCHAR2(50) , BUFULLNAME NVARCHAR2(100) , BUCODE NVARCHAR2(50) , HIERARCHYCODE NVARCHAR2(500) , PARENTGUID VARCHAR2(32) , WEBSITE NVARCHAR2(50) , FAX NVARCHAR2(20) , COMPANYADDR NVARCHAR2(100) , CHARTER NVARCHAR2(50) , CORPORATIONDEPUTY NVARCHAR2(20) , CREATEDON DATE , MODIFIEDON DATE , CREATEDBY VARCHAR2(32) , COMMENTS NVARCHAR2(500) , MODIFIEDBY VARCHAR2(32) , ISENDCOMPANY NUMBER(1,0) DEFAULT 0 , ISCOMPANY NUMBER(1,0) DEFAULT 0 , BULEVEL INTEGER DEFAULT 0 , BUTYPE NUMBER(3,0) DEFAULT 0 , ORDERCODE NVARCHAR2(20) , ORDERHIERARCHYCODE NVARCHAR2(500) , AREACODE VARCHAR2(10) , SIMPLECODE NVARCHAR2(50) ) '; execute immediate 'comment ON TABLE SYS_DEPARTMENT IS ''组织机构表'''; execute immediate 'comment on column SYS_DEPARTMENT.DEPARTMENTID is ''单位GUID'''; execute immediate 'comment on column SYS_DEPARTMENT.BUNAME is ''单位简称'''; execute immediate 'comment on column SYS_DEPARTMENT.BUFULLNAME is ''单位全称'''; execute immediate 'comment on column SYS_DEPARTMENT.BUCODE is ''单位代码'''; execute immediate 'comment on column SYS_DEPARTMENT.HIERARCHYCODE is ''层级代码'''; execute immediate 'comment on column SYS_DEPARTMENT.PARENTGUID is ''父级GUID'''; execute immediate 'comment on column SYS_DEPARTMENT.WEBSITE is ''网址'''; execute immediate 'comment on column SYS_DEPARTMENT.FAX is ''传真'''; execute immediate 'comment on column SYS_DEPARTMENT.COMPANYADDR is ''公司地址'''; execute immediate 'comment on column SYS_DEPARTMENT.CHARTER is ''营业执照'''; execute immediate 'comment on column SYS_DEPARTMENT.CORPORATIONDEPUTY is ''法人代表'''; execute immediate 'comment on column SYS_DEPARTMENT.CREATEDON is ''创建时间'''; execute immediate 'comment on column SYS_DEPARTMENT.MODIFIEDON is ''修改时间'''; execute immediate 'comment on column SYS_DEPARTMENT.CREATEDBY is ''创建人'''; execute immediate 'comment on column SYS_DEPARTMENT.COMMENTS is ''说明'''; execute immediate 'comment on column SYS_DEPARTMENT.MODIFIEDBY is ''修改人'''; execute immediate 'comment on column SYS_DEPARTMENT.ISENDCOMPANY is ''是否末级公司'''; execute immediate 'comment on column SYS_DEPARTMENT.ISCOMPANY is ''是否公司'''; execute immediate 'comment on column SYS_DEPARTMENT.BULEVEL is ''层级数'''; execute immediate 'comment on column SYS_DEPARTMENT.BUTYPE is ''组织类型'''; execute immediate 'comment on column SYS_DEPARTMENT.ORDERCODE is ''排序代码'''; execute immediate 'comment on column SYS_DEPARTMENT.ORDERHIERARCHYCODE is ''排序层级代码'''; execute immediate 'comment on column SYS_DEPARTMENT.AREACODE is ''单位所属区域编码'''; execute immediate 'comment on column SYS_DEPARTMENT.SIMPLECODE is ''单位简码'''; end if; end;
CREATE USER carinsurance IDENTIFIED BY carinsurance; GRANT ALL PRIVILEGES TO carinsurance; exit /
#Reviews INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('JenniferLawrence', '86101', '4', '2017-02-02 14:00:00', 'This project is good!'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('DanStevens', '86101', '5', '2017-02-02 17:00:00', 'I agree with Jenn.'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('LukeEvans', '86101', '5', '2017-02-03 22:00:00', 'My pledges worth!'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('EmmaWatson', '86102', '4', '2017-01-31 18:00:00', 'Well Done!'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('CobieSmulders', '86102', '5', '2017-02-04 09:00:00', 'This is the best project I have seen. Good job!'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('ChrisEvans', '86104', '4', '2017-04-17 11:30:00', 'Good job!'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('JamesMcAvoy', '86104', '3', '2017-04-17 21:50:00', 'Well, it is not bad.'); INSERT INTO Reviews (UID, ProjID, Rating, RateTime, UserReview) VALUES('JenniferLawrence', '86104', '5', '2017-04-19 13:15:00', 'This is a good project.');
INSERT INTO KODEVERK (KODE, KODEVERK_EIER, KODEVERK_EIER_REF, KODEVERK_EIER_VER, KODEVERK_EIER_NAVN, KODEVERK_SYNK_NYE, KODEVERK_SYNK_EKSISTERENDE, NAVN, BESKRIVELSE, SAMMENSATT) VALUES ('LANDKODER', 'Kodeverkforvaltning', 'http://nav.no/kodeverk/Kodeverk/Landkoder', '1', 'Landkoder', 'J', 'J', 'Landkoder', 'NAV kopi av ISO 3166-1-alpha-3 3-bokstav landkoder', 'N'); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '???', '???', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '349', '349', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '546', '546', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '556', '556', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '669', '669', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ABW', 'ABW', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AFG', 'AFG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AGO', 'AGO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AIA', 'AIA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ALA', 'ALA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ALB', 'ALB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AND', 'AND', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ANT', 'ANT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ARE', 'ARE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ARG', 'ARG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ARM', 'ARM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ASM', 'ASM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ATF', 'ATF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ATG', 'ATG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AUS', 'AUS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AUT', 'AUT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'AZE', 'AZE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BDI', 'BDI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BEL', 'BEL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BEN', 'BEN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BES', 'BES', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BFA', 'BFA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BGD', 'BGD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BGR', 'BGR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BHR', 'BHR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BHS', 'BHS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BIH', 'BIH', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BLM', 'BLM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BLR', 'BLR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BLZ', 'BLZ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BMU', 'BMU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BOL', 'BOL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BRA', 'BRA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BRB', 'BRB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BRN', 'BRN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BTN', 'BTN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BVT', 'BVT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'BWA', 'BWA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CAF', 'CAF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CAN', 'CAN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CCK', 'CCK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CHE', 'CHE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CHL', 'CHL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CHN', 'CHN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CIV', 'CIV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CMR', 'CMR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'COD', 'COD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'COG', 'COG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'COK', 'COK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'COL', 'COL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'COM', 'COM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CPV', 'CPV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CRI', 'CRI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CSK', 'CSK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CUB', 'CUB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CUW', 'CUW', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CXR', 'CXR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CYM', 'CYM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CYP', 'CYP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'CZE', 'CZE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DDR', 'DDR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DEU', 'DEU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DJI', 'DJI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DMA', 'DMA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DNK', 'DNK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DOM', 'DOM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'DZA', 'DZA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ECU', 'ECU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'EGY', 'EGY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ERI', 'ERI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ESH', 'ESH', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ESP', 'ESP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'EST', 'EST', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ETH', 'ETH', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FIN', 'FIN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FJI', 'FJI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FLK', 'FLK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FRA', 'FRA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FRO', 'FRO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'FSM', 'FSM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GAB', 'GAB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GBR', 'GBR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GEO', 'GEO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GGY', 'GGY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GHA', 'GHA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GIB', 'GIB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GIN', 'GIN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GLP', 'GLP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GMB', 'GMB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GNB', 'GNB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GNQ', 'GNQ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GRC', 'GRC', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GRD', 'GRD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GRL', 'GRL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GTM', 'GTM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GUF', 'GUF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GUM', 'GUM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'GUY', 'GUY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HKG', 'HKG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HMD', 'HMD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HND', 'HND', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HRV', 'HRV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HTI', 'HTI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'HUN', 'HUN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IDN', 'IDN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IMN', 'IMN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IND', 'IND', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IOT', 'IOT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IRL', 'IRL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IRN', 'IRN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'IRQ', 'IRQ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ISL', 'ISL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ISR', 'ISR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ITA', 'ITA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'JAM', 'JAM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'JEY', 'JEY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'JOR', 'JOR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'JPN', 'JPN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KAZ', 'KAZ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KEN', 'KEN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KGZ', 'KGZ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KHM', 'KHM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KIR', 'KIR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KNA', 'KNA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KOR', 'KOR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'KWT', 'KWT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LAO', 'LAO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LBN', 'LBN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LBR', 'LBR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LBY', 'LBY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LCA', 'LCA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LIE', 'LIE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LKA', 'LKA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LSO', 'LSO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LTU', 'LTU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LUX', 'LUX', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'LVA', 'LVA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MAC', 'MAC', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MAF', 'MAF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MAR', 'MAR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MCO', 'MCO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MDA', 'MDA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MDG', 'MDG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MDV', 'MDV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MEX', 'MEX', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MHL', 'MHL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MKD', 'MKD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MLI', 'MLI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MLT', 'MLT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MMR', 'MMR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MNE', 'MNE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MNG', 'MNG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MNP', 'MNP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MOZ', 'MOZ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MRT', 'MRT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MSR', 'MSR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MTQ', 'MTQ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MUS', 'MUS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MWI', 'MWI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MYS', 'MYS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'MYT', 'MYT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NAM', 'NAM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NCL', 'NCL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NER', 'NER', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NFK', 'NFK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NGA', 'NGA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NIC', 'NIC', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NIU', 'NIU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NLD', 'NLD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NOR', 'NOR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NPL', 'NPL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NRU', 'NRU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'NZL', 'NZL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'OMN', 'OMN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PAK', 'PAK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PAN', 'PAN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PCN', 'PCN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PER', 'PER', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PHL', 'PHL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PLW', 'PLW', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PNG', 'PNG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'POL', 'POL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PRI', 'PRI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PRK', 'PRK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PRT', 'PRT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PRY', 'PRY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PSE', 'PSE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'PYF', 'PYF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'QAT', 'QAT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'REU', 'REU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ROU', 'ROU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'RUS', 'RUS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'RWA', 'RWA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SAU', 'SAU', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SCG', 'SCG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SDN', 'SDN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SEN', 'SEN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SGP', 'SGP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SGS', 'SGS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SHN', 'SHN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SJM', 'SJM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SLB', 'SLB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SLE', 'SLE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SLV', 'SLV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SMR', 'SMR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SOM', 'SOM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SPM', 'SPM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SRB', 'SRB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SSD', 'SSD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'STP', 'STP', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SUN', 'SUN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SUR', 'SUR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SVK', 'SVK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SVN', 'SVN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SWE', 'SWE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SWZ', 'SWZ', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SXM', 'SXM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SYC', 'SYC', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'SYR', 'SYR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TCA', 'TCA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TCD', 'TCD', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TGO', 'TGO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'THA', 'THA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TJK', 'TJK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TKL', 'TKL', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TKM', 'TKM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TLS', 'TLS', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TON', 'TON', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TTO', 'TTO', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TUN', 'TUN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TUR', 'TUR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TUV', 'TUV', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TWN', 'TWN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'TZA', 'TZA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'UGA', 'UGA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'UKR', 'UKR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'UMI', 'UMI', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'URY', 'URY', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'USA', 'USA', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'UZB', 'UZB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VAT', 'VAT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VCT', 'VCT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VEN', 'VEN', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VGB', 'VGB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VIR', 'VIR', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VNM', 'VNM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'VUT', 'VUT', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'WAK', 'WAK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'WLF', 'WLF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'WSM', 'WSM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'XXK', 'XXK', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'XXX', 'XXX', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'YEM', 'YEM', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'YUG', 'YUG', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ZAF', 'ZAF', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ZMB', 'ZMB', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', 'ZWE', 'ZWE', null); INSERT INTO KODELISTE (ID, KODEVERK, KODE, OFFISIELL_KODE, BESKRIVELSE) VALUES (nextval('seq_kodeliste'), 'LANDKODER', '-', null, 'Ikke definert');
alter table TW_ST_ACTIVITY drop constraint FK45CFE371A81325B9; alter table TW_ST_ACTIVITY_CHANGE drop constraint FK59903EF159C421; alter table TW_ST_ACTIVITY_LOG drop constraint FK4B8B1956A81325B9; alter table TW_ST_ACTIVITY_LOG drop constraint FK4B8B1956659F6B12; alter table TW_ST_APP drop constraint FK27D8C85F33D59626; alter table TW_ST_APP drop constraint FK27D8C85FAF796BCF; alter table TW_ST_BUILD drop constraint FK94D8792CF536A28E; alter table TW_ST_BUILD_PARAM drop constraint FK230E6B9AA81325B9; alter table TW_ST_NOTIFY_APP drop constraint FK51ED5BEDC8AAC8D0; alter table TW_ST_NOTIFY_SYS drop constraint FK51EDA099C15A9B4A; alter table TW_ST_NOTIFY_USERS drop constraint FK8D2128D45531FC2E; alter table TW_ST_PROJECT drop constraint FKA06B4257F2D5AF2D; alter table TW_ST_SYSTEM drop constraint FK23761711A7EA1EE7; alter table TW_ST_SYSTEM drop constraint FK23761711F536A28E; alter table TW_ST_SYSTEM_BUILD drop constraint FKB78F7A0A81325B9; alter table TW_ST_SYSTEM_BUILD drop constraint FKB78F7A044182AD2; drop table TW_ST_ACTIVITY; drop table TW_ST_ACTIVITY_CHANGE; drop table TW_ST_ACTIVITY_LOG; drop table TW_ST_AGENT; drop table TW_ST_APP; drop table TW_ST_BTS; drop table TW_ST_BUILD; drop table TW_ST_BUILD_PARAM; drop table TW_ST_NOTIFY_APP; drop table TW_ST_NOTIFY_GROUP; drop table TW_ST_NOTIFY_SYS; drop table TW_ST_NOTIFY_USERS; drop table TW_ST_PROJECT; drop table TW_ST_SCM; drop table TW_ST_SYSTEM; drop table TW_ST_SYSTEM_BUILD;
518 ENSG00000251841 ENSG00000184895 ENSG00000237659 ENSG00000232195 ENSG00000129824 ENSG00000227289 ENSG00000229163 ENSG00000278847 ENSG00000067646 ENSG00000233070 ENSG00000223600 ENSG00000231535 ENSG00000234652 ENSG00000216777 ENSG00000176679 ENSG00000232927 ENSG00000225653 ENSG00000218410 ENSG00000229518 ENSG00000229308 ENSG00000252900 ENSG00000225878 ENSG00000277930 ENSG00000099715 ENSG00000252468 ENSG00000231341 ENSG00000235001 ENSG00000214207 ENSG00000278585 ENSG00000235175 ENSG00000285470 ENSG00000237195 ENSG00000250204 ENSG00000168757 ENSG00000234830 ENSG00000238235 ENSG00000275352 ENSG00000234583 ENSG00000235094 ENSG00000242879 ENSG00000223744 ENSG00000229643 ENSG00000129816 ENSG00000212856 ENSG00000237563 ENSG00000147753 ENSG00000185700 ENSG00000235895 ENSG00000232620 ENSG00000224953 ENSG00000274365 ENSG00000233634 ENSG00000099721 ENSG00000237701 ENSG00000092377 ENSG00000273906 ENSG00000232583 ENSG00000099725 ENSG00000252633 ENSG00000251996 ENSG00000252155 ENSG00000252472 ENSG00000275280 ENSG00000238073 ENSG00000223422 ENSG00000236435 ENSG00000236690 ENSG00000225520 ENSG00000234795 ENSG00000237048 ENSG00000278854 ENSG00000215603 ENSG00000273863 ENSG00000244246 ENSG00000229745 ENSG00000241200 ENSG00000239893 ENSG00000227204 ENSG00000225809 ENSG00000215601 ENSG00000224634 ENSG00000223955 ENSG00000234179 ENSG00000226529 ENSG00000234850 ENSG00000227830 ENSG00000216824 ENSG00000275866 ENSG00000232348 ENSG00000233699 ENSG00000232419 ENSG00000180910 ENSG00000228207 ENSG00000173357 ENSG00000273731 ENSG00000230025 ENSG00000231988 ENSG00000232235 ENSG00000224408 ENSG00000238154 ENSG00000232924 ENSG00000197038 ENSG00000275310 ENSG00000232808 ENSG00000233803 ENSG00000225560 ENSG00000229549 ENSG00000228383 ENSG00000188656 ENSG00000237802 ENSG00000228927 ENSG00000225516 ENSG00000258992 ENSG00000274196 ENSG00000238074 ENSG00000230066 ENSG00000270073 ENSG00000234803 ENSG00000236424 ENSG00000224336 ENSG00000236786 ENSG00000231436 ENSG00000234110 ENSG00000226223 ENSG00000232617 ENSG00000183385 ENSG00000147761 ENSG00000228890 ENSG00000212855 ENSG00000129845 ENSG00000224075 ENSG00000228379 ENSG00000229208 ENSG00000274445 ENSG00000231874 ENSG00000187657 ENSG00000239225 ENSG00000234950 ENSG00000236718 ENSG00000243643 ENSG00000225685 ENSG00000278478 ENSG00000235193 ENSG00000251766 ENSG00000235691 ENSG00000252289 ENSG00000226975 ENSG00000231411 ENSG00000226061 ENSG00000237447 ENSG00000225840 ENSG00000251705 ENSG00000273858 ENSG00000273693 ENSG00000271365 ENSG00000271309 ENSG00000270570 ENSG00000274231 ENSG00000278212 ENSG00000274502 ENSG00000274162 ENSG00000258567 ENSG00000259154 ENSG00000259029 ENSG00000258991 ENSG00000270455 ENSG00000183704 ENSG00000270242 ENSG00000275828 ENSG00000225433 ENSG00000224567 ENSG00000271375 ENSG00000234385 ENSG00000215583 ENSG00000235649 ENSG00000236477 ENSG00000232226 ENSG00000243980 ENSG00000232730 ENSG00000224060 ENSG00000225117 ENSG00000206159 ENSG00000227447 ENSG00000226863 ENSG00000233774 ENSG00000233864 ENSG00000114374 ENSG00000228411 ENSG00000067048 ENSG00000234059 ENSG00000224035 ENSG00000235462 ENSG00000223915 ENSG00000183878 ENSG00000215414 ENSG00000154620 ENSG00000241859 ENSG00000129864 ENSG00000129862 ENSG00000235451 ENSG00000223517 ENSG00000165246 ENSG00000226555 ENSG00000228787 ENSG00000236131 ENSG00000227949 ENSG00000224518 ENSG00000234620 ENSG00000227166 ENSG00000252689 ENSG00000252173 ENSG00000252323 ENSG00000228518 ENSG00000271595 ENSG00000224989 ENSG00000283076 ENSG00000228578 ENSG00000230663 ENSG00000252315 ENSG00000252012 ENSG00000273966 ENSG00000238191 ENSG00000226353 ENSG00000275578 ENSG00000226449 ENSG00000225896 ENSG00000224166 ENSG00000229129 ENSG00000250868 ENSG00000223555 ENSG00000235521 ENSG00000252513 ENSG00000224964 ENSG00000226011 ENSG00000225740 ENSG00000129873 ENSG00000229138 ENSG00000224485 ENSG00000226116 ENSG00000237558 ENSG00000233378 ENSG00000237616 ENSG00000224033 ENSG00000182415 ENSG00000230412 ENSG00000226611 ENSG00000225895 ENSG00000233120 ENSG00000252166 ENSG00000232744 ENSG00000244646 ENSG00000229465 ENSG00000231311 ENSG00000236599 ENSG00000232899 ENSG00000229302 ENSG00000228945 ENSG00000233522 ENSG00000278391 ENSG00000251953 ENSG00000252667 ENSG00000249726 ENSG00000282909 ENSG00000226362 ENSG00000225716 ENSG00000229406 ENSG00000227494 ENSG00000252209 ENSG00000249634 ENSG00000251510 ENSG00000238067 ENSG00000233546 ENSG00000230377 ENSG00000250951 ENSG00000172468 ENSG00000230458 ENSG00000131007 ENSG00000240438 ENSG00000235479 ENSG00000249606 ENSG00000242153 ENSG00000169953 ENSG00000236429 ENSG00000249501 ENSG00000228193 ENSG00000248573 ENSG00000230904 ENSG00000238135 ENSG00000224151 ENSG00000251970 ENSG00000238088 ENSG00000217179 ENSG00000176728 ENSG00000217896 ENSG00000185275 ENSG00000252766 ENSG00000274282 ENSG00000234529 ENSG00000215580 ENSG00000131002 ENSG00000267793 ENSG00000260197 ENSG00000012817 ENSG00000274837 ENSG00000237997 ENSG00000232522 ENSG00000228764 ENSG00000229236 ENSG00000277438 ENSG00000198692 ENSG00000225624 ENSG00000280969 ENSG00000224482 ENSG00000216844 ENSG00000229551 ENSG00000226504 ENSG00000254488 ENSG00000237427 ENSG00000232634 ENSG00000226918 ENSG00000183146 ENSG00000223637 ENSG00000236615 ENSG00000237269 ENSG00000235719 ENSG00000169849 ENSG00000169811 ENSG00000242393 ENSG00000242875 ENSG00000234414 ENSG00000228257 ENSG00000227989 ENSG00000184991 ENSG00000271123 ENSG00000226042 ENSG00000237023 ENSG00000229416 ENSG00000230029 ENSG00000277519 ENSG00000229725 ENSG00000244395 ENSG00000251618 ENSG00000242389 ENSG00000227444 ENSG00000226092 ENSG00000237968 ENSG00000231159 ENSG00000232475 ENSG00000229553 ENSG00000228850 ENSG00000232029 ENSG00000169807 ENSG00000236951 ENSG00000131548 ENSG00000169800 ENSG00000229159 ENSG00000225615 ENSG00000229234 ENSG00000215560 ENSG00000229940 ENSG00000243040 ENSG00000259247 ENSG00000237902 ENSG00000226941 ENSG00000235059 ENSG00000131538 ENSG00000169789 ENSG00000234131 ENSG00000224873 ENSG00000230814 ENSG00000228571 ENSG00000230476 ENSG00000273589 ENSG00000224657 ENSG00000224917 ENSG00000230727 ENSG00000228240 ENSG00000276829 ENSG00000215537 ENSG00000226906 ENSG00000183753 ENSG00000244000 ENSG00000232764 ENSG00000233126 ENSG00000227251 ENSG00000188120 ENSG00000205944 ENSG00000205936 ENSG00000251925 ENSG00000225189 ENSG00000230073 ENSG00000215540 ENSG00000236647 ENSG00000225466 ENSG00000224169 ENSG00000223407 ENSG00000226873 ENSG00000227915 ENSG00000169763 ENSG00000236620 ENSG00000224866 ENSG00000232424 ENSG00000252681 ENSG00000232910 ENSG00000232845 ENSG00000237302 ENSG00000231540 ENSG00000223362 ENSG00000231026 ENSG00000224571 ENSG00000226369 ENSG00000280961 ENSG00000227871 ENSG00000251917 ENSG00000231423 ENSG00000228465 ENSG00000232585 ENSG00000234081 ENSG00000172352 ENSG00000231375 ENSG00000237467 ENSG00000229250 ENSG00000232205 ENSG00000235981 ENSG00000223698 ENSG00000242854 ENSG00000230977 ENSG00000244231 ENSG00000172342 ENSG00000284071 ENSG00000239533 ENSG00000274234 ENSG00000225491 ENSG00000224827 ENSG00000233740 ENSG00000248792 ENSG00000279274 ENSG00000234399 ENSG00000227439 ENSG00000224210 ENSG00000232003 ENSG00000235412 ENSG00000183795 ENSG00000240566 ENSG00000232976 ENSG00000226270 ENSG00000227837 ENSG00000187191 ENSG00000205916 ENSG00000278602 ENSG00000223978 ENSG00000278197 ENSG00000230819 ENSG00000185894 ENSG00000228296 ENSG00000236379 ENSG00000274899 ENSG00000223641 ENSG00000227633 ENSG00000279115 ENSG00000228786 ENSG00000233652 ENSG00000233944 ENSG00000223636 ENSG00000172297 ENSG00000278242 ENSG00000284380 ENSG00000172294 ENSG00000240450 ENSG00000239304 ENSG00000233619 ENSG00000197092 ENSG00000235583 ENSG00000237823 ENSG00000229709 ENSG00000232064 ENSG00000225609 ENSG00000172288 ENSG00000270535 ENSG00000225287 ENSG00000225256 ENSG00000223856 ENSG00000235004 ENSG00000252426 ENSG00000231141 ENSG00000232614 ENSG00000225326 ENSG00000223406 ENSG00000229343 ENSG00000232695 ENSG00000235511 ENSG00000232914 ENSG00000223655 ENSG00000230854 ENSG00000252625 ENSG00000227635 ENSG00000237546 ENSG00000172283 ENSG00000227867 ENSG00000231716 ENSG00000234744 ENSG00000233156 ENSG00000234888 ENSG00000215507 ENSG00000235014 ENSG00000225876 ENSG00000251796 ENSG00000229238 ENSG00000252948 ENSG00000233843 ENSG00000188399 ENSG00000277146 ENSG00000215506 ENSG00000224240 ENSG00000227629 ENSG00000237917 ENSG00000231514 ENSG00000235857
SELECT CONCAT(s.FirstName, ' ', s.MiddleName + ' ', s.LastName) AS FullName FROM Students AS s LEFT JOIN StudentsSubjects AS ss ON s.Id = ss.StudentId WHERE ss.SubjectId IS NULL ORDER BY FullName ASC
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 80015 Source Host : localhost:3306 Source Database : spider Target Server Type : MYSQL Target Server Version : 80015 File Encoding : 65001 Date: 2020-07-18 21:25:50 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for lgzp -- ---------------------------- DROP TABLE IF EXISTS `lgzp`; CREATE TABLE `lgzp` ( `job_name` varchar(255) DEFAULT NULL, `salary` varchar(255) DEFAULT NULL, `place` varchar(255) DEFAULT NULL, `experience` varchar(255) DEFAULT NULL, `degree` varchar(255) DEFAULT NULL, `category` varchar(255) DEFAULT NULL, `update_time` varchar(255) DEFAULT NULL, `tag` varchar(255) DEFAULT NULL, `workplace` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `company` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of lgzp -- ----------------------------
SELECT dt.d_year, item.i_category_id, item.i_category, sum(ss_ext_sales_price) FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manager_id = 1 AND dt.d_moy=11 AND dt.d_year=2000 GROUP BY dt.d_year, item.i_category_id, item.i_category ORDER BY sum(ss_ext_sales_price) DESC,dt.d_year, item.i_category_id, item.i_category LIMIT 100 ;
create table if not exists log ( created datetime, facility varchar(30), level int, severity varchar(10), message text, module varchar(20), func varchar(20), lineno int, exception text, process int, thread text, thread_name text )
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 11, 2019 at 09:29 AM -- Server version: 5.7.19 -- PHP Version: 7.0.23 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: `borey_db` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_branch` -- DROP TABLE IF EXISTS `tbl_branch`; CREATE TABLE IF NOT EXISTS `tbl_branch` ( `bra_id` int(11) NOT NULL AUTO_INCREMENT, `bra_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `bra_phone1` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `bra_phone2` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `bra_email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `bra_addr` text COLLATE utf8_unicode_ci, `bra_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `bra_type_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, `bra_nm_kh` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`bra_id`) ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_branch` -- INSERT INTO `tbl_branch` (`bra_id`, `bra_nm`, `bra_phone1`, `bra_phone2`, `bra_email`, `bra_addr`, `bra_des`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `bra_type_id`, `com_id`, `bra_nm_kh`) VALUES (1, 'Tulip DNUUUUU', '0123467822', '0123456789', 'eamsocheat@gmail.com', 'AAA', 'AAA', '2018-09-15 09:04:07', '2018-09-17 04:49:04', 'N', 5, 5, 2, 5, 'តេស'), (2, 'Tulip AOEN', '0123467822', '0123456789', 'eamsocheat@gmail.com', '', '', '2018-09-13 08:46:37', '2018-10-23 07:11:12', 'N', 5, 5, 2, 5, 'តេស១'), (3, '2333pppppp', '2', '2', '', '2', '2', '2018-09-15 09:09:22', '2018-10-25 04:45:02', 'Y', 5, 5, 1, 5, '2'), (4, '3', '3', '3', '', '3', '3', '2018-09-15 08:51:43', '2018-10-25 04:46:49', 'N', 5, 5, 1, 5, '3'), (5, '4u', '4444444', '', '', '', '', '2018-09-15 08:08:11', NULL, 'Y', 5, 5, 1, 5, '4'), (6, '5', '5', '', '', '', '', '2018-09-13 08:47:19', NULL, 'Y', 5, 0, 1, 5, '5'), (7, '6', '6', '', '', '', '', '2018-09-15 09:03:50', NULL, 'Y', 5, 5, 1, 5, '6'), (8, '7up', '7', '7', '', 'AA', 'AAA', '2018-09-15 09:11:28', '2018-09-17 05:01:28', 'N', 5, 5, 1, 5, '7'), (9, '8', '8', '', '', '', '', '2018-09-13 08:47:39', NULL, 'Y', 5, 0, 1, 5, '8'), (10, '9', '9', '', '', '', '', '2018-09-13 08:47:44', '2018-10-25 04:47:44', 'N', 5, 5, 1, 5, '9'), (11, '1155', '11', '11', '', '', '', '2018-09-13 08:47:52', '2018-10-23 07:22:14', 'Y', 5, 5, 1, 5, '1'), (12, '22', '22', '22', '', '', '', '2018-09-13 08:47:58', NULL, 'Y', 5, 0, 1, 5, '22'), (13, '33llllllll', '33', '3333333', '', '', '', '2018-09-13 08:48:04', '2018-10-25 04:45:37', 'Y', 5, 5, 1, 5, '33'), (14, '4444', '444', '44', '', '', '', '2018-09-13 08:48:11', '2018-09-17 04:52:25', 'N', 5, 5, 1, 5, '44'), (15, '55', '555555555', '5', '', '', '', '2018-09-13 08:48:17', '2018-09-17 04:52:25', 'N', 5, 5, 1, 5, '55'), (16, 'Tulip DN', '01234678223333', '0123456789', 'eamsocheat@gmail.com', 'AAA', 'AAA', '2018-09-15 04:55:41', NULL, 'Y', 5, 0, 2, 5, 'តេស'), (17, 'Tulip DNAA', '0123467822', '0123456789', 'eamsocheat@gmail.com', 'AAA', 'AAA', '2018-09-15 04:59:04', '2018-09-17 05:01:38', 'N', 5, 5, 2, 5, 'តេស'), (18, '33WWWWW', '3', '33', '', '33', '33', '2018-10-22 08:32:55', '2018-10-23 02:46:51', 'Y', 5, 5, 1, 5, '333'), (19, 'ttt99999', '0123467822', '0123456789', '', '', '', '2018-10-22 08:45:00', '2018-10-23 03:01:56', 'Y', 5, 5, 1, 5, 'AAAAAAAAAA'), (20, '111RRRRRRRRRR', '111', '111', '', '', '', '2018-10-23 04:40:15', '2018-10-25 04:46:07', 'Y', 5, 5, 1, 5, '111'), (21, 'a', '555555555', '', '', '', '', '2018-10-23 04:44:08', '2018-10-23 07:33:23', 'Y', 5, 5, 1, 5, 'AAA'), (22, '5555', '555', '555', '', '', '', '2018-10-23 06:56:24', '2018-10-25 04:47:53', 'N', 5, 5, 1, 5, '5555'), (23, 'ttttttyyy', '0987654321', '', '', '', '', '2018-10-23 06:57:06', NULL, 'Y', 5, 0, 1, 5, 'yyyy'), (24, '99999', '9999', '99999', '', '', '', '2018-10-23 06:58:36', NULL, 'Y', 5, 0, 1, 5, '99999'), (25, 'iiiii', '0987654321', '', '', '', '', '2018-10-23 07:05:35', NULL, 'Y', 5, 0, 1, 5, 'iiii'), (26, 'uuu', '899999', '99', '', '', '', '2018-10-23 07:33:05', NULL, 'Y', 5, 0, 1, 5, 'uuu'), (27, 'ww', '111', '1111', '', '', '', '2019-01-06 07:06:14', NULL, 'Y', 5, 0, 1, 5, 'ww'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_branch_type` -- DROP TABLE IF EXISTS `tbl_branch_type`; CREATE TABLE IF NOT EXISTS `tbl_branch_type` ( `bra_type_id` int(11) NOT NULL AUTO_INCREMENT, `bra_nm` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `bra_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regUsr` int(11) DEFAULT NULL, `upUsr` int(11) DEFAULT NULL, `com_id` int(11) DEFAULT NULL, `bra_nm_kh` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`bra_type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_branch_type` -- INSERT INTO `tbl_branch_type` (`bra_type_id`, `bra_nm`, `bra_des`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `com_id`, `bra_nm_kh`) VALUES (1, 'Sub branch', NULL, '2018-08-24 03:58:01', NULL, NULL, NULL, NULL, NULL, 'អនុសាខា'), (2, 'Head branch', NULL, '2018-08-24 03:57:37', NULL, NULL, NULL, NULL, NULL, 'សាខាធំ'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_category` -- DROP TABLE IF EXISTS `tbl_category`; CREATE TABLE IF NOT EXISTS `tbl_category` ( `cat_id` int(11) NOT NULL AUTO_INCREMENT, `cat_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `cat_nm_kh` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `cat_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `upUsr` int(11) NOT NULL, `regUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, `cat_photo` text COLLATE utf8_unicode_ci, PRIMARY KEY (`cat_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_category` -- INSERT INTO `tbl_category` (`cat_id`, `cat_nm`, `cat_nm_kh`, `cat_des`, `regDt`, `upDt`, `useYn`, `upUsr`, `regUsr`, `com_id`, `cat_photo`) VALUES (1, 'aaaaa', 'aaaaaaa', 'aaaaaaaa', '2019-07-11 09:02:20', NULL, 'Y', 0, 6, 9, ''); -- -------------------------------------------------------- -- -- Table structure for table `tbl_company` -- DROP TABLE IF EXISTS `tbl_company`; CREATE TABLE IF NOT EXISTS `tbl_company` ( `com_id` int(11) NOT NULL AUTO_INCREMENT, `com_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `com_phone` varchar(15) COLLATE utf8_unicode_ci NOT NULL, `com_email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `com_addr` text COLLATE utf8_unicode_ci, `com_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`com_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_company` -- INSERT INTO `tbl_company` (`com_id`, `com_nm`, `com_phone`, `com_email`, `com_addr`, `com_des`, `regDt`, `upDt`, `useYn`) VALUES (1, '1', '1', NULL, NULL, NULL, '2018-09-12 11:50:39', NULL, 'Y'), (2, '2', '2', NULL, NULL, NULL, '2018-09-12 11:54:03', NULL, 'N'), (3, '3', '3', NULL, NULL, NULL, '2018-09-12 12:04:03', NULL, 'Y'), (4, '4', '4', NULL, NULL, NULL, '2018-09-12 13:05:35', NULL, 'Y'), (5, '5', '5', NULL, NULL, NULL, '2018-09-12 13:14:32', NULL, 'Y'), (9, 'Galaxy', '010527752', NULL, NULL, NULL, '2019-07-10 11:29:12', NULL, 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_import` -- DROP TABLE IF EXISTS `tbl_import`; CREATE TABLE IF NOT EXISTS `tbl_import` ( `imp_id` int(11) NOT NULL AUTO_INCREMENT, `imp_total_qty` int(11) DEFAULT NULL, `imp_total_price` double DEFAULT NULL, `imp_date` date NOT NULL, `imp_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `sup_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`imp_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_import_detail` -- DROP TABLE IF EXISTS `tbl_import_detail`; CREATE TABLE IF NOT EXISTS `tbl_import_detail` ( `imp_id` int(11) NOT NULL, `pro_id` int(11) NOT NULL, `pro_unit_price` double DEFAULT NULL, `pro_sale_price` double DEFAULT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`imp_id`,`pro_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_menu` -- DROP TABLE IF EXISTS `tbl_menu`; CREATE TABLE IF NOT EXISTS `tbl_menu` ( `menu_id` int(11) NOT NULL AUTO_INCREMENT, `menu_nm` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `menu_nm_kh` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `regDt` datetime DEFAULT NULL, `menu_icon_nm` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `menu_level` int(11) DEFAULT NULL, `menu_order` int(11) DEFAULT NULL, `menu_group` int(11) DEFAULT NULL, PRIMARY KEY (`menu_id`) ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_menu` -- INSERT INTO `tbl_menu` (`menu_id`, `menu_nm`, `menu_nm_kh`, `regDt`, `menu_icon_nm`, `menu_level`, `menu_order`, `menu_group`) VALUES (1, 'Branch', 'គំរោង', '2018-08-24 01:02:15', 'fa fa-home', NULL, 2, 1), (3, 'Position', 'តួនាទីបុគ្គលិក', '2018-08-24 02:59:23', 'fa fa-user-plus', NULL, 4, 1), (4, 'Staff', 'បុគ្គលិក', '2018-08-24 02:59:23', 'fa fa-users', 0, 8, 2), (5, 'User Account', 'គណនី​អ្នកប្រើប្រាស់', '2018-08-24 02:59:23', 'fa fa-user-circle-o', NULL, 5, 1), (6, 'Supplier', 'អ្នកផ្គត់ផ្គង់', '2018-08-24 02:59:23', 'fa fa-address-card-o', NULL, 7, 2), (7, 'Category', 'ប្រភេទ', '2018-08-24 02:59:23', 'fa fa-tags', NULL, 3, 1), (8, 'House', 'អចលនទ្រព្យ', '2018-08-24 02:59:23', 'fa fa-building-o', NULL, 10, 2), (9, 'Reservation', 'កក់ប្រាក់', '2018-08-24 02:59:23', 'fa fa-credit-card', NULL, 11, 3), (10, 'Sell', 'លក់ចេញ', '2018-08-24 02:59:23', 'fa fa-shopping-cart', NULL, 12, 3), (11, 'Installment Payment', 'បង់ប្រាក់រំលួស', '2018-08-24 02:59:23', 'fa fa-line-chart', NULL, 13, 3), (12, 'Dashboard', 'ផ្ទាំងគ្រប់គ្រង', '2018-08-24 03:02:26', 'fa fa-dashboard', NULL, 1, 0), (13, 'Commission Report', 'កំរៃជើងសារ', '2019-07-10 11:09:02', 'fa fa-pie-chart', NULL, 16, 3), (14, 'Expend', 'ការចំណាយ', '2019-07-10 11:15:28', 'fa fa-bar-chart', NULL, 14, 3), (15, 'Payment Report', 'របាយការណ៏បង់ប្រាក់', '2019-07-10 11:15:28', 'fa fa-area-chart', NULL, 17, 3), (16, 'Salary', 'ប្រាក់ខែបុគ្គលិក', '2019-07-10 11:15:28', 'fa fa-university', NULL, 15, 3), (17, 'Income Expenses', 'ចំនូល-ចំណាយ', '2019-07-10 11:15:28', 'fa fa-battery-full', NULL, 18, 3), (18, 'Commission Setting', 'កំណត់កំរៃជើងសារ', '2019-07-10 11:18:24', 'fa fa-money', NULL, 6, 1), (19, 'Customer', 'អតិថិជន', '2019-07-11 14:40:11', 'fa fa-address-card', NULL, 9, 2); -- -------------------------------------------------------- -- -- Table structure for table `tbl_menu_company` -- DROP TABLE IF EXISTS `tbl_menu_company`; CREATE TABLE IF NOT EXISTS `tbl_menu_company` ( `menu_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, `upDt` datetime DEFAULT NULL, `regDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`menu_id`,`com_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_menu_company` -- INSERT INTO `tbl_menu_company` (`menu_id`, `com_id`, `upDt`, `regDt`, `useYn`) VALUES (1, 1, NULL, '2018-09-12 04:54:29', 'Y'), (1, 2, NULL, '2018-09-12 04:57:53', 'Y'), (1, 3, NULL, '2018-09-12 05:07:53', 'Y'), (1, 4, NULL, '2018-09-12 06:09:25', 'Y'), (1, 5, NULL, '2018-09-12 06:18:22', 'Y'), (1, 9, NULL, '2019-07-10 11:29:12', 'Y'), (2, 1, NULL, '2018-09-12 04:54:29', 'Y'), (2, 2, NULL, '2018-09-12 04:57:53', 'Y'), (2, 3, NULL, '2018-09-12 05:07:53', 'Y'), (2, 4, NULL, '2018-09-12 06:09:25', 'Y'), (2, 5, NULL, '2018-09-12 06:18:22', 'Y'), (3, 1, NULL, '2018-09-12 04:54:29', 'Y'), (3, 2, NULL, '2018-09-12 04:57:53', 'Y'), (3, 3, NULL, '2018-09-12 05:07:53', 'Y'), (3, 4, NULL, '2018-09-12 06:09:25', 'Y'), (3, 5, NULL, '2018-09-12 06:18:22', 'Y'), (3, 9, NULL, '2019-07-10 11:29:12', 'Y'), (4, 1, NULL, '2018-09-12 04:54:29', 'Y'), (4, 2, NULL, '2018-09-12 04:57:53', 'Y'), (4, 3, NULL, '2018-09-12 05:07:53', 'Y'), (4, 4, NULL, '2018-09-12 06:09:25', 'Y'), (4, 5, NULL, '2018-09-12 06:18:22', 'Y'), (4, 9, NULL, '2019-07-10 11:29:12', 'Y'), (5, 1, NULL, '2018-09-12 04:54:29', 'Y'), (5, 2, NULL, '2018-09-12 04:57:53', 'Y'), (5, 3, NULL, '2018-09-12 05:07:53', 'Y'), (5, 4, NULL, '2018-09-12 06:09:25', 'Y'), (5, 5, NULL, '2018-09-12 06:18:22', 'Y'), (5, 9, NULL, '2019-07-10 11:29:12', 'Y'), (6, 1, NULL, '2018-09-12 04:54:29', 'Y'), (6, 2, NULL, '2018-09-12 04:57:53', 'Y'), (6, 3, NULL, '2018-09-12 05:07:53', 'Y'), (6, 4, NULL, '2018-09-12 06:09:25', 'Y'), (6, 5, NULL, '2018-09-12 06:18:22', 'Y'), (6, 9, NULL, '2019-07-10 11:29:12', 'Y'), (7, 1, NULL, '2018-09-12 04:54:29', 'Y'), (7, 2, NULL, '2018-09-12 04:57:53', 'Y'), (7, 3, NULL, '2018-09-12 05:07:53', 'Y'), (7, 4, NULL, '2018-09-12 06:09:25', 'Y'), (7, 5, NULL, '2018-09-12 06:18:22', 'Y'), (7, 9, NULL, '2019-07-10 11:29:12', 'Y'), (8, 1, NULL, '2018-09-12 04:54:29', 'Y'), (8, 2, NULL, '2018-09-12 04:57:53', 'Y'), (8, 3, NULL, '2018-09-12 05:07:53', 'Y'), (8, 4, NULL, '2018-09-12 06:09:25', 'Y'), (8, 5, NULL, '2018-09-12 06:18:22', 'Y'), (8, 9, NULL, '2019-07-10 11:29:12', 'Y'), (9, 1, NULL, '2018-09-12 04:54:29', 'Y'), (9, 2, NULL, '2018-09-12 04:57:53', 'Y'), (9, 3, NULL, '2018-09-12 05:07:53', 'Y'), (9, 4, NULL, '2018-09-12 06:09:25', 'Y'), (9, 5, NULL, '2018-09-12 06:18:22', 'Y'), (9, 9, NULL, '2019-07-10 11:29:12', 'Y'), (10, 1, NULL, '2018-09-12 04:54:29', 'Y'), (10, 2, NULL, '2018-09-12 04:57:53', 'Y'), (10, 3, NULL, '2018-09-12 05:07:53', 'Y'), (10, 4, NULL, '2018-09-12 06:09:25', 'Y'), (10, 5, NULL, '2018-09-12 06:18:22', 'Y'), (10, 9, NULL, '2019-07-10 11:29:12', 'Y'), (11, 1, NULL, '2018-09-12 04:54:29', 'Y'), (11, 2, NULL, '2018-09-12 04:57:53', 'Y'), (11, 3, NULL, '2018-09-12 05:07:53', 'Y'), (11, 4, NULL, '2018-09-12 06:09:25', 'Y'), (11, 5, NULL, '2018-09-12 06:18:22', 'Y'), (11, 9, NULL, '2019-07-10 11:29:12', 'Y'), (12, 1, NULL, '2018-09-12 04:54:29', 'Y'), (12, 2, NULL, '2018-09-12 04:57:53', 'Y'), (12, 3, NULL, '2018-09-12 05:07:53', 'Y'), (12, 4, NULL, '2018-09-12 06:09:25', 'Y'), (12, 5, NULL, '2018-09-12 06:18:22', 'Y'), (12, 9, NULL, '2019-07-10 11:29:12', 'Y'), (13, 9, NULL, '2019-07-10 11:29:12', 'Y'), (14, 9, NULL, '2019-07-10 11:29:12', 'Y'), (15, 9, NULL, '2019-07-10 11:29:12', 'Y'), (16, 9, NULL, '2019-07-10 11:29:12', 'Y'), (17, 9, NULL, '2019-07-10 11:29:12', 'Y'), (18, 9, NULL, '2019-07-10 11:29:12', 'Y'), (19, 9, '2019-07-11 14:42:50', '2019-07-11 14:42:50', 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_menu_user` -- DROP TABLE IF EXISTS `tbl_menu_user`; CREATE TABLE IF NOT EXISTS `tbl_menu_user` ( `menu_id` int(11) NOT NULL, `usr_id` int(11) NOT NULL, `upDt` datetime DEFAULT NULL, `regDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`menu_id`,`usr_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_menu_user` -- INSERT INTO `tbl_menu_user` (`menu_id`, `usr_id`, `upDt`, `regDt`, `useYn`) VALUES (1, 1, NULL, '2018-09-12 04:54:29', 'Y'), (1, 2, NULL, '2018-09-12 04:57:53', 'Y'), (1, 3, NULL, '2018-09-12 05:07:53', 'Y'), (1, 4, NULL, '2018-09-12 06:09:25', 'Y'), (1, 5, NULL, '2018-09-12 06:18:22', 'Y'), (1, 6, NULL, '2019-07-10 11:29:12', 'Y'), (2, 1, NULL, '2018-09-12 04:54:29', 'Y'), (2, 2, NULL, '2018-09-12 04:57:53', 'Y'), (2, 3, NULL, '2018-09-12 05:07:53', 'Y'), (2, 4, NULL, '2018-09-12 06:09:25', 'Y'), (2, 5, NULL, '2018-09-12 06:18:22', 'Y'), (3, 1, NULL, '2018-09-12 04:54:29', 'Y'), (3, 2, NULL, '2018-09-12 04:57:53', 'Y'), (3, 3, NULL, '2018-09-12 05:07:53', 'Y'), (3, 4, NULL, '2018-09-12 06:09:25', 'Y'), (3, 5, NULL, '2018-09-12 06:18:22', 'Y'), (3, 6, NULL, '2019-07-10 11:29:12', 'Y'), (4, 1, NULL, '2018-09-12 04:54:29', 'Y'), (4, 2, NULL, '2018-09-12 04:57:53', 'Y'), (4, 3, NULL, '2018-09-12 05:07:53', 'Y'), (4, 4, NULL, '2018-09-12 06:09:25', 'Y'), (4, 5, NULL, '2018-09-12 06:18:22', 'Y'), (4, 6, NULL, '2019-07-10 11:29:12', 'Y'), (5, 1, NULL, '2018-09-12 04:54:29', 'Y'), (5, 2, NULL, '2018-09-12 04:57:53', 'Y'), (5, 3, NULL, '2018-09-12 05:07:53', 'Y'), (5, 4, NULL, '2018-09-12 06:09:25', 'Y'), (5, 5, NULL, '2018-09-12 06:18:22', 'Y'), (5, 6, NULL, '2019-07-10 11:29:12', 'Y'), (6, 1, NULL, '2018-09-12 04:54:29', 'Y'), (6, 2, NULL, '2018-09-12 04:57:53', 'Y'), (6, 3, NULL, '2018-09-12 05:07:53', 'Y'), (6, 4, NULL, '2018-09-12 06:09:25', 'Y'), (6, 5, NULL, '2018-09-12 06:18:22', 'Y'), (6, 6, NULL, '2019-07-10 11:29:12', 'Y'), (7, 1, NULL, '2018-09-12 04:54:29', 'Y'), (7, 2, NULL, '2018-09-12 04:57:53', 'Y'), (7, 3, NULL, '2018-09-12 05:07:53', 'Y'), (7, 4, NULL, '2018-09-12 06:09:25', 'Y'), (7, 5, NULL, '2018-09-12 06:18:22', 'Y'), (7, 6, NULL, '2019-07-10 11:29:12', 'Y'), (8, 1, NULL, '2018-09-12 04:54:29', 'Y'), (8, 2, NULL, '2018-09-12 04:57:53', 'Y'), (8, 3, NULL, '2018-09-12 05:07:53', 'Y'), (8, 4, NULL, '2018-09-12 06:09:25', 'Y'), (8, 5, NULL, '2018-09-12 06:18:22', 'Y'), (8, 6, NULL, '2019-07-10 11:29:12', 'Y'), (9, 1, NULL, '2018-09-12 04:54:29', 'Y'), (9, 2, NULL, '2018-09-12 04:57:53', 'Y'), (9, 3, NULL, '2018-09-12 05:07:53', 'Y'), (9, 4, NULL, '2018-09-12 06:09:25', 'Y'), (9, 5, NULL, '2018-09-12 06:18:22', 'Y'), (9, 6, NULL, '2019-07-10 11:29:12', 'Y'), (10, 1, NULL, '2018-09-12 04:54:29', 'Y'), (10, 2, NULL, '2018-09-12 04:57:53', 'Y'), (10, 3, NULL, '2018-09-12 05:07:53', 'Y'), (10, 4, NULL, '2018-09-12 06:09:25', 'Y'), (10, 5, NULL, '2018-09-12 06:18:22', 'Y'), (10, 6, NULL, '2019-07-10 11:29:12', 'Y'), (11, 1, NULL, '2018-09-12 04:54:29', 'Y'), (11, 2, NULL, '2018-09-12 04:57:53', 'Y'), (11, 3, NULL, '2018-09-12 05:07:53', 'Y'), (11, 4, NULL, '2018-09-12 06:09:25', 'Y'), (11, 5, NULL, '2018-09-12 06:18:22', 'Y'), (11, 6, NULL, '2019-07-10 11:29:12', 'Y'), (12, 1, NULL, '2018-09-12 04:54:29', 'Y'), (12, 2, NULL, '2018-09-12 04:57:53', 'Y'), (12, 3, NULL, '2018-09-12 05:07:53', 'Y'), (12, 4, NULL, '2018-09-12 06:09:25', 'Y'), (12, 5, NULL, '2018-09-12 06:18:22', 'Y'), (12, 6, NULL, '2019-07-10 11:29:12', 'Y'), (13, 6, NULL, '2019-07-10 11:29:12', 'Y'), (14, 6, NULL, '2019-07-10 11:29:12', 'Y'), (15, 6, NULL, '2019-07-10 11:29:12', 'Y'), (16, 6, NULL, '2019-07-10 11:29:12', 'Y'), (17, 6, NULL, '2019-07-10 11:29:12', 'Y'), (18, 6, NULL, '2019-07-10 11:29:12', 'Y'), (19, 6, '2019-07-11 14:47:29', '2019-07-11 14:47:29', 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_move` -- DROP TABLE IF EXISTS `tbl_move`; CREATE TABLE IF NOT EXISTS `tbl_move` ( `mov_id` int(11) NOT NULL AUTO_INCREMENT, `mov_total_qty` int(11) NOT NULL, `mov_date` date NOT NULL, `mov_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `sto_out_id` int(11) NOT NULL, `sto_in_id` int(11) NOT NULL, `sta_id` int(11) NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`mov_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_move_detail` -- DROP TABLE IF EXISTS `tbl_move_detail`; CREATE TABLE IF NOT EXISTS `tbl_move_detail` ( `mov_id` int(11) NOT NULL, `pro_id` int(11) NOT NULL, `pro_qty` int(11) NOT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`mov_id`,`pro_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_position` -- DROP TABLE IF EXISTS `tbl_position`; CREATE TABLE IF NOT EXISTS `tbl_position` ( `pos_id` int(11) NOT NULL AUTO_INCREMENT, `pos_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `pos_nm_kh` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `pos_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`pos_id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_position` -- INSERT INTO `tbl_position` (`pos_id`, `pos_nm`, `pos_nm_kh`, `pos_des`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `com_id`) VALUES (1, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2018-09-12 11:50:39', NULL, 'Y', 0, 0, 1), (2, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2018-09-12 11:54:03', NULL, 'Y', 0, 0, 2), (3, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2018-09-12 12:04:03', NULL, 'Y', 0, 0, 3), (4, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2018-09-12 13:05:35', NULL, 'Y', 0, 0, 4), (5, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2018-09-12 13:14:32', '2018-09-29 04:01:35', 'Y', 0, 0, 5), (6, 'AAARRR', 'AAAAA', 'AAAAA', '2018-09-29 06:33:46', '2018-10-26 07:29:17', 'Y', 5, 0, 5), (7, 'BBB', 'BBB', 'BBBB', '2018-09-29 06:37:02', '2018-10-26 08:15:59', 'N', 5, 0, 5), (8, 'CCUpdate', 'CCCC', 'CCCC', '2018-09-29 06:38:17', '2018-09-29 06:39:03', 'Y', 5, 0, 5), (9, 'kkk', 'kkkk', 'kkk', '2018-10-26 07:06:49', NULL, 'Y', 5, 0, 5), (10, 'RRR', 'rRR', '', '2018-10-26 07:26:22', NULL, 'Y', 5, 0, 5), (11, 'TTTT', 'ខ្មែរ', '', '2018-10-26 07:28:51', '2018-11-07 07:05:08', 'Y', 5, 0, 5), (12, 'Admin', 'ម្ចាស់ក្រុមហ៊ុន', NULL, '2019-07-10 11:29:12', NULL, 'Y', 0, 0, 9); -- -------------------------------------------------------- -- -- Table structure for table `tbl_product` -- DROP TABLE IF EXISTS `tbl_product`; CREATE TABLE IF NOT EXISTS `tbl_product` ( `pro_id` int(11) NOT NULL AUTO_INCREMENT, `pro_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `pro_nm_kh` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `pro_vol` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `pro_price` double DEFAULT NULL, `pro_sale_price` double DEFAULT NULL, `pro_qty` int(11) DEFAULT NULL, `pro_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `cat_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`pro_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_staff` -- DROP TABLE IF EXISTS `tbl_staff`; CREATE TABLE IF NOT EXISTS `tbl_staff` ( `sta_id` int(11) NOT NULL AUTO_INCREMENT, `sta_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `sta_nm_kh` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `sta_gender` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `sta_dob` date DEFAULT NULL, `sta_photo` text COLLATE utf8_unicode_ci, `sta_phone1` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `sta_phone2` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `sta_email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `sta_addr` text COLLATE utf8_unicode_ci, `sta_des` text COLLATE utf8_unicode_ci, `sta_start_dt` date DEFAULT NULL, `sta_end_dt` date DEFAULT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `pos_id` int(11) NOT NULL, `bra_id` int(11) DEFAULT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`sta_id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_staff` -- INSERT INTO `tbl_staff` (`sta_id`, `sta_nm`, `sta_nm_kh`, `sta_gender`, `sta_dob`, `sta_photo`, `sta_phone1`, `sta_phone2`, `sta_email`, `sta_addr`, `sta_des`, `sta_start_dt`, `sta_end_dt`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `pos_id`, `bra_id`, `com_id`) VALUES (1, '1', NULL, '', NULL, NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-12 11:50:39', NULL, 'Y', 0, 0, 1, NULL, 1), (2, '2', NULL, '', NULL, NULL, '2', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-12 11:54:03', NULL, 'Y', 0, 0, 2, NULL, 2), (3, '3', NULL, '', NULL, NULL, '3', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-12 12:04:03', NULL, 'Y', 0, 0, 3, NULL, 3), (4, '4', NULL, '', NULL, NULL, '4', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-12 13:05:35', NULL, 'Y', 0, 0, 4, NULL, 4), (5, '5', NULL, '', NULL, NULL, '5', NULL, NULL, NULL, NULL, NULL, NULL, '2018-09-12 13:14:32', NULL, 'Y', 0, 0, 5, NULL, 5), (6, 'AAAA', 'aa', 'F', '0000-00-00', NULL, NULL, '999', 'AAAAAA@email.com', 'pp', 'A', '0000-00-00', NULL, '2018-10-29 08:39:46', '2018-11-07 07:41:50', 'N', 5, 5, 11, 26, 5), (7, 'AAA4444', 'AAAA', 'F', '1992-01-01', '/stock/staff/2018-11-07-06-59-01_5_5.jpg', '1011222', '6565', '', 'TTT', '55', '2018-01-01', NULL, '2018-10-29 09:22:17', '2018-11-07 07:41:50', 'N', 5, 5, 11, 26, 5), (8, '444', '444', 'F', '1992-01-01', '', '444', '4444', 'socheat@mail.com', '44', '333', '2018-01-01', '1970-01-01', '2018-11-06 07:54:50', '2019-01-06 07:09:25', 'Y', 5, 5, 10, 26, 5), (9, 'AAA', 'AAAA', 'F', '1992-01-01', '/stock/staff/2018-11-06-08-48-55_5_5.jpg', '1011222', '6565', '', 'TTT', '55', '2018-01-01', NULL, '2018-11-06 08:48:55', '2018-11-07 07:35:55', 'N', 5, 5, 11, 26, 5), (10, 'TTTTT', 'តេស', 'M', '1970-01-01', '', '012232401', '6565', 'socheat@mail.com', 'TTT', 'oooo', '2018-11-12', '1970-01-01', '2018-11-12 07:06:02', '2019-01-06 07:06:45', 'Y', 5, 5, 5, 24, 5), (11, 'a', NULL, '', NULL, NULL, '010527752', NULL, NULL, NULL, NULL, NULL, NULL, '2019-07-10 11:29:12', NULL, 'Y', 0, 0, 12, NULL, 9); -- -------------------------------------------------------- -- -- Table structure for table `tbl_stock` -- DROP TABLE IF EXISTS `tbl_stock`; CREATE TABLE IF NOT EXISTS `tbl_stock` ( `sto_id` int(11) NOT NULL AUTO_INCREMENT, `sto_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `sto_nm_kh` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `sto_addr` text COLLATE utf8_unicode_ci, `sto_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `bra_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`sto_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_stock_product` -- DROP TABLE IF EXISTS `tbl_stock_product`; CREATE TABLE IF NOT EXISTS `tbl_stock_product` ( `sto_id` int(11) NOT NULL, `pro_id` int(11) NOT NULL, `imp_mov_id` int(11) NOT NULL, `imp_mov_status` int(11) NOT NULL, `pro_qty` int(11) DEFAULT NULL, `pro_unit_price` double DEFAULT NULL, `pro_sale_price` double DEFAULT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`sto_id`,`pro_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_supplier` -- DROP TABLE IF EXISTS `tbl_supplier`; CREATE TABLE IF NOT EXISTS `tbl_supplier` ( `sup_id` int(11) NOT NULL AUTO_INCREMENT, `sup_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `sup_phone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `sup_email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `sup_addr` text COLLATE utf8_unicode_ci, `sup_des` text COLLATE utf8_unicode_ci, `sup_cont` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, `sup_nm_kh` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`sup_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_supplier` -- INSERT INTO `tbl_supplier` (`sup_id`, `sup_nm`, `sup_phone`, `sup_email`, `sup_addr`, `sup_des`, `sup_cont`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `com_id`, `sup_nm_kh`) VALUES (1, 'AAAAAAUUUUUUU', '0123456789', 'eamsocheatsmart@gmail.com', 'AAAAAAAAAA', 'AAAAAAAAAAAAAAAAAA', NULL, '2018-10-29 03:32:42', '2018-10-29 03:38:26', 'N', 5, 0, 5, 'ខ្មែរ'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_use` -- DROP TABLE IF EXISTS `tbl_use`; CREATE TABLE IF NOT EXISTS `tbl_use` ( `use_id` int(11) NOT NULL AUTO_INCREMENT, `use_total_qty` int(11) NOT NULL, `use_date` date NOT NULL, `use_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `sto_id` int(11) NOT NULL, `sta_id` int(11) NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`use_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_user` -- DROP TABLE IF EXISTS `tbl_user`; CREATE TABLE IF NOT EXISTS `tbl_user` ( `usr_id` int(11) NOT NULL AUTO_INCREMENT, `usr_nm` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `usr_pwd` text COLLATE utf8_unicode_ci NOT NULL, `usr_wri_yn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `usr_menu` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `sta_id` int(11) NOT NULL, `com_id` int(11) NOT NULL, `usr_str` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`usr_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `tbl_user` -- INSERT INTO `tbl_user` (`usr_id`, `usr_nm`, `usr_pwd`, `usr_wri_yn`, `usr_menu`, `regDt`, `upDt`, `useYn`, `regUsr`, `upUsr`, `sta_id`, `com_id`, `usr_str`) VALUES (1, '1', 'X/Cf1cmof5aDa8iuIVN2oNgoJfmUQd8gqvPSGDMhgemDRsKhQYzdFHCzdqX3uQIBQIe0n79RnGMMMpynqvkTQg==', 'Y', NULL, '2018-09-12 11:50:39', NULL, 'Y', 0, 0, 1, 1, 'Y'), (2, '2', 'UFAmn6pBQ/wWmNHnGL7pQtAB/Sm2jRyrGFVGheCCGK6tzD4hB4GDw58ndNPZIJwSjLp1qNi5N+yVVL4El2TZ1Q==', 'Y', NULL, '2018-09-12 11:54:03', NULL, 'Y', 0, 0, 2, 2, 'Y'), (3, '3', '1AjILh2WSR7Js5Xkprm0kVoDnHvpMGVj2i3nKUfmb8M8Pa9USbFLZBej/uGxPOOLMPTfVc+l093D2WLdJkcHAg==', 'Y', NULL, '2018-09-12 12:04:03', NULL, 'Y', 0, 0, 3, 3, 'Y'), (4, '4', 'qis8su6y7KgIF9Dsm/QFsA2RMU8YiPtVwcGHmhW2vqXjxMOf7Z3PEv1jbUFx2QrgFsR/Pp9ORoraQDjb8LcofA==', 'Y', NULL, '2018-09-12 13:05:35', NULL, 'Y', 0, 0, 4, 4, 'Y'), (5, '5', 'N0UOR8kWY8jHrALGmJyhNaaP7eHlSTxz5Fxn1+YEIutetEJ/VmcuaNzU4lx9CRMwvcJSaXcakndkw/B9I0+GSQ==', 'Y', NULL, '2018-09-12 13:14:32', NULL, 'Y', 0, 0, 5, 5, 'Y'), (6, 'a', 'N0UOR8kWY8jHrALGmJyhNaaP7eHlSTxz5Fxn1+YEIutetEJ/VmcuaNzU4lx9CRMwvcJSaXcakndkw/B9I0+GSQ==', 'Y', NULL, '2019-07-10 11:29:12', NULL, 'Y', 0, 0, 11, 9, 'Y'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_use_detail` -- DROP TABLE IF EXISTS `tbl_use_detail`; CREATE TABLE IF NOT EXISTS `tbl_use_detail` ( `use_id` int(11) NOT NULL, `pro_id` int(11) NOT NULL, `pro_qty` int(11) DEFAULT NULL, `use_status` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci DEFAULT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`use_id`,`pro_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tbl_use_detail_status` -- DROP TABLE IF EXISTS `tbl_use_detail_status`; CREATE TABLE IF NOT EXISTS `tbl_use_detail_status` ( `use_stat_id` int(11) NOT NULL AUTO_INCREMENT, `use_id` int(11) NOT NULL, `pro_id` int(11) NOT NULL, `use_stat_des` text COLLATE utf8_unicode_ci, `regDt` datetime DEFAULT NULL, `upDt` datetime DEFAULT NULL, `useYn` varchar(1) COLLATE utf8_unicode_ci NOT NULL, `regUsr` int(11) NOT NULL, `upUsr` int(11) NOT NULL, `com_id` int(11) NOT NULL, PRIMARY KEY (`use_stat_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 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 */;
-- @description query01 for PXF Hive Small Column subset test SELECT * from pxf_hive_small_data WHERE num1 <= 10 ORDER BY fmt, num1;
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 11, 2018 at 03:53 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `menufi` -- -- -------------------------------------------------------- -- -- Table structure for table `addresses` -- CREATE TABLE `addresses` ( `id` int(11) NOT NULL, `mobile` varchar(15) NOT NULL, `address` text NOT NULL, `name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `addresses` -- INSERT INTO `addresses` (`id`, `mobile`, `address`, `name`) VALUES (1, '9820181342', 'Test address', ''), (2, '9820181347', 'Test', 'jatin'), (4, '9820181343', '1', 'Uhu'); -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `id` int(11) NOT NULL, `username` varchar(20) DEFAULT NULL, `password` varchar(20) DEFAULT NULL, `user_type` varchar(255) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`id`, `username`, `password`, `user_type`) VALUES (1, 'admin', 'admin', 'chef'), (2, 'admin1', 'admin1', 'Manager'), (3, 'admin2', 'admin2', 'Owner'), (4, 'adminf', '2222', 'manager'); -- -------------------------------------------------------- -- -- Table structure for table `background_image` -- CREATE TABLE `background_image` ( `id` int(11) NOT NULL, `img_name` varchar(100) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `background_image` -- INSERT INTO `background_image` (`id`, `img_name`) VALUES (1, 'y2.png'); -- -------------------------------------------------------- -- -- Table structure for table `batter` -- CREATE TABLE `batter` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `batter` -- INSERT INTO `batter` (`id`, `name`) VALUES (5, 'Ricce'), (6, 'Neer'), (7, 'Millet'), (8, 'Rava'), (9, 'Rava'), (10, 'Rice'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`id`, `name`) VALUES (6, 'Beer'), (7, 'Scotch'), (8, 'SeaFood'), (9, 'Tandoori Specials'), (10, 'Vegetable Dishes'), (12, 'Side Orders - Bread'), (13, 'Side Orders - Sundries'); -- -------------------------------------------------------- -- -- Table structure for table `coupons` -- CREATE TABLE `coupons` ( `id` int(11) NOT NULL, `c_type` varchar(255) NOT NULL, `c_code` varchar(255) NOT NULL, `c_minvalue` varchar(255) NOT NULL, `c_status` varchar(255) NOT NULL, `c_value` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `coupons` -- INSERT INTO `coupons` (`id`, `c_type`, `c_code`, `c_minvalue`, `c_status`, `c_value`) VALUES (2, 'flat', 'PRA02', '2000', 'ON', '20'), (3, 'percent', 'MDH02', '1000', 'ON', '10'), (4, 'flat', 'PRA03', '300', 'ON', '100'); -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `customer_id` int(255) NOT NULL, `mobile` varchar(15) NOT NULL, `email` varchar(100) NOT NULL, `otp` varchar(50) NOT NULL, `views` bigint(255) NOT NULL, `revenue` double NOT NULL, `Last_Visited` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`customer_id`, `mobile`, `email`, `otp`, `views`, `revenue`, `Last_Visited`) VALUES (1, '9820181347', '', '1', 18, 0, '2018-06-11 19:21:51'), (2, '9820181343', '', '0', 7, 0, '2018-06-11 18:23:41'), (3, '9820181341', '', '0', 6, 0, '2018-06-11 19:15:08'); -- -------------------------------------------------------- -- -- Table structure for table `customer_order` -- CREATE TABLE `customer_order` ( `id` int(20) NOT NULL, `Order_id` int(11) NOT NULL, `Menu_Id` int(11) NOT NULL, `Quantity` int(11) NOT NULL, `Addons` varchar(25555) DEFAULT NULL, `Batter` int(11) NOT NULL, `Optional_ingredients` text, `comments` text, `item_status` int(2) NOT NULL DEFAULT '1', `spice_level` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `customer_order` -- INSERT INTO `customer_order` (`id`, `Order_id`, `Menu_Id`, `Quantity`, `Addons`, `Batter`, `Optional_ingredients`, `comments`, `item_status`, `spice_level`, `customer_id`) VALUES (1, 2, 3, 2, '2,', 1, NULL, 'comments', 2, NULL, 1), (2, 3, 3, 3, '', 1, NULL, 'comments', 2, NULL, 1), (3, 4, 3, 3, '', 1, NULL, 'comments', 2, NULL, 1), (4, 5, 3, 1, NULL, 0, NULL, 'comments', 2, NULL, NULL), (5, 7, 5, 2, '', 1, NULL, 'comments', 2, NULL, 2), (6, 8, 3, 2, '', 1, NULL, 'comments', 2, NULL, 1), (7, 9, 3, 1, '', 1, NULL, 'comments', 2, NULL, 1), (8, 9, 3, 2, '2,', 1, NULL, 'comments', 2, NULL, 1), (9, 10, 3, 2, '3,', 1, NULL, 'comments', 2, NULL, 2), (10, 14, 3, 1, '2,', 1, NULL, 'comments', 2, NULL, 2), (11, 14, 4, 2, '4,', 1, NULL, 'comments', 2, NULL, 2), (12, 15, 3, 1, '2,', 1, NULL, 'comments', 2, NULL, 1), (13, 15, 4, 1, '4,', 1, NULL, 'comments', 2, NULL, 1), (14, 15, 3, 1, '2,', 1, NULL, 'comments', 2, NULL, 1), (15, 15, 4, 1, '4,', 1, NULL, 'comments', 2, NULL, 1), (16, 15, 3, 1, '2,', 1, NULL, 'comments', 2, NULL, 1), (17, 15, 4, 1, '4,', 1, NULL, 'comments', 2, NULL, 1), (18, 15, 3, 1, '2,', 1, NULL, 'comments', 2, NULL, 1), (19, 15, 4, 1, '4,', 1, NULL, 'comments', 2, NULL, 1), (22, 17, 4, 1, '4,', 1, NULL, 'comments', 2, NULL, 3), (23, 18, 3, 5, '2,', 4, NULL, 'comments', 2, NULL, 3), (24, 19, 3, 4, '2,', 4, NULL, 'comments', 2, NULL, 1), (31, 28, 5, 1, '', 1, NULL, 'comments', 2, NULL, 2), (33, 29, 3, 1, '', 1, NULL, 'comments', 2, NULL, 1), (34, 30, 1, 1, '7,', 6, NULL, 'comments', 2, NULL, 3), (35, 31, 1, 7, '11,', 5, NULL, 'comments', 2, NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `expenses` -- CREATE TABLE `expenses` ( `id` int(20) NOT NULL, `nameOfPerson` varchar(255) NOT NULL, `amount` int(11) NOT NULL, `type` text NOT NULL, `reason` varchar(2555) NOT NULL, `date` date NOT NULL, `time` varchar(2555) NOT NULL, `name` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `expenses` -- INSERT INTO `expenses` (`id`, `nameOfPerson`, `amount`, `type`, `reason`, `date`, `time`, `name`) VALUES (6, 'Jatin', 3, 'general', '3', '2018-06-07', '11:11', '32'), (7, 'Parab', 333, 'grossary', '123', '2018-06-11', '18:30', '12'); -- -------------------------------------------------------- -- -- Table structure for table `fake_order` -- CREATE TABLE `fake_order` ( `id` int(255) NOT NULL, `Menu_id` varchar(255) NOT NULL, `Customer_id` varchar(255) NOT NULL, `Quantity` varchar(255) NOT NULL, `addon` varchar(25555) NOT NULL, `batter` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `feedback` -- CREATE TABLE `feedback` ( `id` int(11) NOT NULL, `variety` int(11) DEFAULT NULL, `quality` int(11) DEFAULT NULL, `serving_portion` int(11) DEFAULT NULL, `presentation` int(11) DEFAULT NULL, `value_for_money` int(11) DEFAULT NULL, `speed` int(11) DEFAULT NULL, `staff_courtesy` int(11) DEFAULT NULL, `staff_knowledge` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `timestamp` datetime DEFAULT NULL, `login_type` varchar(20) DEFAULT NULL, `order_id` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `feedback` -- INSERT INTO `feedback` (`id`, `variety`, `quality`, `serving_portion`, `presentation`, `value_for_money`, `speed`, `staff_courtesy`, `staff_knowledge`, `customer_id`, `timestamp`, `login_type`, `order_id`) VALUES (1, 5, 4, 3, 2, 1, 5, 4, 3, NULL, NULL, NULL, NULL), (52, 2, 2, 2, 2, 2, 2, 2, 2, 42, '2018-02-10 09:34:53', 'mobile', 465), (53, 3, 3, 3, 3, 3, 3, 3, 3, 26, '2018-02-10 09:39:13', 'mobile', 466), (54, 5, 5, 5, 5, 5, 1, 1, 1, 25, '2018-02-12 17:14:24', 'mobile', 476), (55, 3, 3, 3, 3, 5, 4, 5, 5, 51, '2018-02-13 20:12:31', 'mobile', 490); -- -------------------------------------------------------- -- -- Table structure for table `fonts` -- CREATE TABLE `fonts` ( `id` int(11) NOT NULL, `name` varchar(50) DEFAULT NULL, `font-family` varchar(50) DEFAULT NULL, `font-style` varchar(20) DEFAULT NULL, `font-weight` varchar(20) DEFAULT NULL, `src` varchar(500) DEFAULT NULL, `is_active` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `fonts` -- INSERT INTO `fonts` (`id`, `name`, `font-family`, `font-style`, `font-weight`, `src`, `is_active`) VALUES (1, 'Berkshire Swash', 'Berkshire Swash', 'normal', '400', 'url(https://fonts.gstatic.com/s/berkshireswash/v6/4RZJjVRPjYnC2939hKCAiiJH4brlqpr7zMNWu0xQjN8.woff2)', 1), (3, 'Comfortaa Regular', 'Comfortaa Regular', NULL, NULL, 'url(https://fonts.gstatic.com/s/comfortaa/v12/-DackuIFgo7Hfy3rR14C3xJtnKITppOI_IvcXXDNrsc.woff2)', 0), (9, 'DancingScript-Regular', 'DancingScript-Regular', NULL, NULL, 'url(https://fonts.gstatic.com/s/dancingscript/v9/DK0eTGXiZjN6yA8zAEyM2Ud0sm1ffa_JvZxsF_BEwQk.woff2)', 0), (10, 'Lobster-Regular', 'Lobster-Regular', NULL, NULL, 'url(https://fonts.gstatic.com/s/lobster/v20/cycBf3mfbGkh66G5NhszPQ.woff2)', 0), (11, 'Lobster Two', 'Lobster Two', NULL, NULL, 'url(https://fonts.gstatic.com/s/lobstertwo/v10/Law3VVulBOoxyKPkrNsAaI4P5ICox8Kq3LLUNMylGO4.woff2)', 0), (12, 'Macondo Swash Caps', 'Macondo Swash Caps', NULL, NULL, 'url(https://fonts.gstatic.com/s/macondoswashcaps/v5/SsSR706z-MlvEH7_LS6JAPL0dWkwMqAinnMVaAgLtdw.woff2)', 0), (13, 'Pacifico-Regular', 'Pacifico-Regular', NULL, NULL, 'url(https://fonts.gstatic.com/s/pacifico/v12/Q_Z9mv4hySLTMoMjnk_rCfesZW2xOQ-xsNqO47m55DA.woff2)', 0), (14, 'Raleway-Regular', 'Raleway-Regular', NULL, NULL, 'url(https://fonts.gstatic.com/s/raleway/v12/0dTEPzkLWceF7z0koJaX1A.woff2)', 0), (15, 'Satisfy', 'Satisfy', NULL, NULL, 'url(https://fonts.gstatic.com/s/satisfy/v8/2OzALGYfHwQjkPYWELy-cw.woff2)', 0); -- -------------------------------------------------------- -- -- Table structure for table `hotel_name_addr` -- CREATE TABLE `hotel_name_addr` ( `id` int(20) NOT NULL, `name` varchar(50) NOT NULL, `address` varchar(100) NOT NULL, `contact` varchar(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `hotel_name_addr` -- INSERT INTO `hotel_name_addr` (`id`, `name`, `address`, `contact`) VALUES (1, 'Paaji Balaji', 'Shop no 32, Vedant complex, Next to ICICI bank', '8433840004'); -- -------------------------------------------------------- -- -- Table structure for table `ingredients` -- CREATE TABLE `ingredients` ( `Ingredients_id` int(10) NOT NULL, `Name` text NOT NULL, `quantity` float NOT NULL, `min_quantity` float NOT NULL, `addons` int(5) NOT NULL DEFAULT '0', `cost` double DEFAULT NULL COMMENT 'cost per kg' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ingredients` -- INSERT INTO `ingredients` (`Ingredients_id`, `Name`, `quantity`, `min_quantity`, `addons`, `cost`) VALUES (2, 'self-raising flour', 58, 20, 2, 15), (3, 'chilli powder', 36, 40, 1, 13), (4, 'garam masala', 1790, 190, 1, 14), (5, 'tandoori masala powder', 200, 190, 0, 15), (6, 'potatoes', 40, 0, 0, 2), (7, 'onions', 280, 0, 0, 10), (8, 'spring onions', 130, 0, 0, 22), (9, 'spinach leaves', 100, 0, 0, 12), (10, 'green chilli', 80, 0, 0, 11), (11, 'salt', 320, 0, 0, 22), (13, 'Tomato', 100, 10, 0, 12), (14, 'burger buns', 100, 20, 0, 12); -- -------------------------------------------------------- -- -- Table structure for table `inventory` -- CREATE TABLE `inventory` ( `inventory_id` int(10) NOT NULL, `inventory_name` varchar(255) NOT NULL, `quantity` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `logo` -- CREATE TABLE `logo` ( `id` int(11) NOT NULL, `img_name` varchar(100) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `logo` -- INSERT INTO `logo` (`id`, `img_name`) VALUES (1, 'menufi_1.png'); -- -------------------------------------------------------- -- -- Table structure for table `menu` -- CREATE TABLE `menu` ( `Menu_Id` int(11) NOT NULL, `Name` varchar(100) NOT NULL, `Price` float NOT NULL, `Description` varchar(500) NOT NULL, `Type` varchar(20) DEFAULT NULL, `Category` varchar(30) NOT NULL, `Image` varchar(255) NOT NULL, `time` varchar(20) DEFAULT NULL, `spice_level` int(11) DEFAULT NULL COMMENT '1:lowest, 2:medium, 3:spicy' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `menu` -- INSERT INTO `menu` (`Menu_Id`, `Name`, `Price`, `Description`, `Type`, `Category`, `Image`, `time`, `spice_level`) VALUES (1, 'Butter Dosa', 70, 'Butter dosa', 'Veg', 'Dosa', 'butter uthappa.jpg', '10', 1), (3, 'Coconut Neer dosa', 75, 'c', 'Veg', 'Dosa', '', '10', 1), (4, 'Rava Butter Dosa', 75, 'rbd', 'Veg', 'Dosa', '', '10', 1), (5, 'Masala Dosa', 75, 'md', 'Veg', 'Dosa', '', '10', 1), (6, 'Mysore Dosa', 80, 'md', 'Veg', 'Dosa', '', '10', 1), (7, 'Mysore Masala Dosa', 85, 'mmd', 'Veg', 'Dosa', '', '10', 1), (8, 'Ghee Gunpowder Dosa', 110, 'ggd', 'Veg', 'Dosa', '', '10', 2), (9, 'Table Top Dosa', 150, 'ttd', 'Veg', 'Dosa', '', '10', 2), (10, 'Butter Uthappa', 70, 'bu', 'Veg', 'Uthappa', '', '10', 1), (11, 'Onion Uthappa', 80, 'OU', 'Veg', 'Uthappa', '', '10', 1), (12, 'Tomato Uthappa', 70, 'TU', 'Veg', 'Uthappa', '', '10', 2), (13, 'Masala Uthappa', 80, 'mu', 'Veg', 'Uthappa', '', '10', 2), (14, 'Mix Veg Uthappa', 80, 'mvu', 'Veg', 'Uthappa', '', '10', 2), (15, 'Burnt Garlic Cheese Uthappa', 85, 'bgcu', 'Veg', 'Uthappa', '', '10', 2), (16, 'Coconut Uthappa', 75, 'cu', 'Veg', 'Uthappa', '', '10', 1), (17, 'Corn and cheese Uthappa', 90, 'ccu', 'Veg', 'Uthappa', '', '10', 1), (18, 'Dum Aloo', 140, 'da', 'Veg', 'Fusion', '', '10', 2), (19, 'Tawa Methi Mushroom', 170, 'tmm', 'Veg', 'Fusion', 'butter uthappa.jpg', '10', 2), (21, 'Paneer Makhni', 170, 'pm', 'Veg', 'Fusion', '', '10', 2), (22, 'Palak Paneer', 170, 'pp', 'Veg', 'Fusion', '', '10', 1), (23, 'Bhuna Paneer', 170, 'b', 'Veg', 'Fusion', '', '10', 2), (24, 'Sarson ka saag', 180, 'sks', 'Veg', 'Fusion', '', '10', 2), (25, 'Kadi Pakoda', 160, 'kp', 'Veg', 'Fusion', '', '10', 2), (26, 'Dal Makhni', 160, 'dm', 'Veg', 'Fusion', '', '10', 1), (27, 'Pindi Chole', 170, 'pc', 'Veg', 'Fusion', '', '10', 2), (28, 'Baida Curry', 170, 'bc', 'Non-Veg', 'Fusion', '', '10', 2), (29, 'Bhuna Murgh', 190, 'bm', 'Non-Veg', 'Fusion', '', '10', 2), (30, 'Butter Chicken', 210, 'bc', 'Non-Veg', 'Fusion', '', '10', 1), (31, 'Tawa Methi Chicken', 210, 'tmc', 'Non-Veg', 'Fusion', '', '10', 2), (32, 'Gosht ka kheema', 220, 'gkk', 'Non-Veg', 'Fusion', '', '10', 2), (33, 'Mutton Rogan Josh', 220, 'gmrj', 'Non-Veg', 'Dosa', 'butter uthappa.jpg', '10', 2), (34, 'Ghee Mutton Rogan Josh', 220, 'gmrj', 'Non-Veg', 'Fusion', '', '10', 2), (35, 'Gosht Seekh Kadhi', 220, 'gsk', 'Non-Veg', 'Fusion', '', '10', 2), (36, 'Masala Scrambled Paneer Wrap', 140, 'mspw', 'Non-Veg', 'Wraps', 'dosa wrap.jpg', '10', 2), (37, 'Masala Scrambled Paneer Wrap', 140, 'mspw', 'Non-Veg', 'Wraps', '', '10', 2), (38, 'Dilli Wali Tikki Wrap', 140, 'dwtw', 'Veg', 'Wraps', '', '10', 1), (39, 'Mushroom Chilli Wrap', 150, 'mcw', 'Veg', 'Wraps', '', '10', 2), (40, 'Dhuadhar Paneer Wrap', 160, 'dpw', 'Veg', 'Wraps', '', '10', 2), (41, 'Cheese Burst Wrap', 190, 'cbw', 'Veg', 'Wraps', '', '10', 2), (42, 'Baida Wrap', 140, 'bw', 'Non-Veg', 'Wraps', '', '10', 2), (43, 'Murgh Patiala Wrap', 170, 'mpw', 'Non-Veg', 'Wraps', 'dosa wrap.jpg', '10', 2), (44, 'Murgh Patiala Wrap', 170, 'mpw', 'Non-Veg', 'Wraps', '', '10', 2), (45, 'Dhuadhar Murgh wrap', 170, 'dmw', 'Non-Veg', 'Wraps', '', '10', 2), (46, 'Chicken Chilli Wrap', 170, 'ccw', 'Non-Veg', 'Wraps', '', '10', 2), (47, 'Chicken Kheema Wrap', 180, 'ckw', 'Non-Veg', 'Wraps', '', '10', 2), (48, 'Mutton Kheema Wrap', 190, 'mkw', 'Non-Veg', 'Wraps', '', '10', 2), (49, 'Chicken Cheese Burst', 210, 'ccb', 'Non-Veg', 'Wraps', '', '10', 2), (50, 'Dosa Tacos', 180, 'dt', 'Veg', 'Pardesi', '', '10', 1), (51, 'Cheese Fries Crisp Salad', 180, 'cfcs', 'Veg', 'Pardesi', '', '10', 2), (52, 'Pizza', 220, 'P', 'Veg', 'Pardesi', '', '10', 2), (53, 'Murgh Dosa Tacos', 190, 'mdt', 'Non-Veg', 'Fusion', '', '10', 2), (54, 'Creamy Chicken Crisp Salad', 190, 'cccs', 'Non-Veg', 'Pardesi', '', '190', 1), (55, 'Chicken Pizza', 230, 'cp', 'Non-Veg', 'Pardesi', '', '10', 2), (56, 'Veg Thali', 260, 'vt', 'Veg', 'ThalI', '', '10', 2), (57, 'Murgh Thali', 290, 'mt', 'Non-Veg', 'ThalI', '', '10', 2), (58, 'Gosht Thali', 330, 'gt', 'Non-Veg', 'ThalI', '', '10', 2), (59, 'Uthappam Superstar', 180, 'us', 'Veg', 'ThalI', '', '10', 2), (60, 'Rang De Basanti Dosa', 190, 'rd', 'Veg', 'ThalI', '', '10', 2), (61, 'Banana pancakes', 150, 'bp', 'Veg', 'Desserts', '', '10', 1), (62, 'Honey Jaggery pancakes', 160, 'hjp', 'Veg', 'Desserts', '', '10', 1), (63, 'Chocolate Wrap', 150, 'cw', 'Veg', 'Desserts', '', '10', 1), (64, 'Sweet Coconut wrap', 90, 'scw', 'Veg', 'Desserts', 'ice cream dosa.png', '90', 1), (65, 'Sweet Coconut wrap', 90, 'scw', 'Veg', 'Desserts', '', '90', 1), (66, 'Chocolate Banana Wrap', 120, 'cbw', 'Veg', 'Desserts', '', '10', 1), (67, 'Fried Ice cream', 180, 'fic', 'Veg', 'Desserts', '', '10', 2), (68, 'cheese', 30, 'cheese', 'Veg', 'Sides', '', '2', 1); -- -------------------------------------------------------- -- -- Table structure for table `menu_batter_rel` -- CREATE TABLE `menu_batter_rel` ( `id` int(20) NOT NULL, `menu_id` int(20) NOT NULL, `batter_id` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `menu_batter_rel` -- INSERT INTO `menu_batter_rel` (`id`, `menu_id`, `batter_id`) VALUES (2, 1, 10), (3, 1, 6), (4, 1, 8), (5, 1, 7), (6, 18, 10), (7, 18, 6), (8, 18, 8), (9, 18, 7), (10, 19, 10), (11, 19, 6), (12, 19, 7), (13, 21, 10), (14, 21, 9), (15, 19, 8), (16, 21, 6), (17, 22, 10), (18, 22, 9), (19, 22, 7), (20, 22, 6), (21, 23, 10), (22, 23, 9), (23, 23, 7), (24, 23, 6), (25, 24, 10), (26, 24, 9), (27, 24, 7), (28, 24, 6), (29, 25, 10), (30, 25, 8), (31, 25, 7), (32, 25, 6), (33, 26, 10), (34, 26, 9), (35, 26, 7), (36, 26, 6), (37, 27, 10), (38, 27, 9), (39, 27, 7), (40, 27, 6); -- -------------------------------------------------------- -- -- Table structure for table `menu_ingridient_rel` -- CREATE TABLE `menu_ingridient_rel` ( `id` int(10) NOT NULL, `Menu_id` int(10) NOT NULL, `Ingredients_id` int(10) NOT NULL, `quantity_rel` float NOT NULL, `addons` int(11) DEFAULT '0' COMMENT '0-mandatory 2-optional 1-addon ', `addon_price` int(11) NOT NULL, `batters` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `menu_ingridient_rel` -- INSERT INTO `menu_ingridient_rel` (`id`, `Menu_id`, `Ingredients_id`, `quantity_rel`, `addons`, `addon_price`, `batters`) VALUES (2, 1, 7, 0.01, 1, 0, ''), (3, 3, 7, 0.01, 1, 0, ''), (4, 4, 7, 0.01, 1, 0, ''), (5, 5, 7, 1, 1, 0, ''), (6, 6, 7, 1, 1, 0, ''), (7, 7, 7, 1, 1, 0, ''), (8, 8, 7, 1, 1, 0, ''), (9, 9, 7, 1, 1, 0, ''), (10, 10, 7, 1, 1, 0, ''), (11, 11, 7, 1, 1, 0, ''), (12, 12, 7, 1, 1, 0, ''), (13, 13, 7, 1, 1, 0, ''), (14, 14, 7, 1, 1, 0, ''), (15, 15, 7, 1, 1, 0, ''), (16, 16, 7, 1, 1, 0, ''), (17, 17, 7, 1, 1, 0, ''), (18, 18, 7, 1, 1, 0, ''), (19, 19, 7, 1, 1, 0, ''), (20, 21, 7, 1, 1, 0, ''), (21, 22, 7, 1, 1, 0, ''), (22, 23, 7, 1, 1, 0, ''), (23, 24, 7, 1, 1, 0, ''), (24, 25, 7, 1, 1, 0, ''), (25, 26, 7, 1, 1, 0, ''), (26, 27, 7, 1, 1, 0, ''), (27, 28, 7, 1, 1, 0, ''), (28, 29, 7, 1, 1, 0, ''), (29, 30, 7, 1, 1, 0, ''), (30, 31, 7, 2, 1, 0, ''), (31, 32, 7, 1, 1, 0, ''), (32, 33, 7, 1, 1, 0, ''), (33, 34, 7, 1, 1, 0, ''), (34, 35, 7, 1, 1, 0, ''), (35, 36, 7, 1, 1, 0, ''), (36, 38, 7, 1, 1, 0, ''), (37, 39, 7, 1, 1, 0, ''), (38, 40, 7, 1, 1, 0, ''), (39, 41, 7, 1, 1, 0, ''), (40, 42, 7, 1, 1, 0, ''), (41, 45, 7, 1, 1, 0, ''), (42, 46, 7, 1, 1, 0, ''), (43, 47, 7, 1, 1, 0, ''), (44, 48, 7, 1, 1, 0, ''), (45, 49, 7, 1, 1, 0, ''), (46, 50, 7, 1, 1, 0, ''), (47, 51, 7, 1, 1, 0, ''), (48, 52, 7, 1, 1, 0, ''), (49, 53, 7, 1, 1, 0, ''), (50, 54, 7, 1, 1, 0, ''), (51, 55, 7, 1, 1, 0, ''), (52, 56, 7, 1, 1, 0, ''), (53, 57, 7, 1, 1, 0, ''), (54, 58, 7, 1, 1, 0, ''), (55, 59, 7, 1, 1, 0, ''), (56, 60, 7, 1, 1, 0, ''), (57, 61, 7, 1, 1, 0, ''), (58, 62, 7, 1, 1, 0, ''), (59, 64, 7, 1, 1, 0, ''), (60, 66, 7, 1, 1, 0, ''), (61, 67, 7, 1, 1, 0, ''), (62, 1, 6, 11, 1, 0, ''), (63, 3, 6, 11, 1, 0, ''), (64, 4, 6, 11, 1, 0, ''), (65, 5, 6, 11, 1, 0, ''), (66, 6, 6, 11, 1, 0, ''), (67, 7, 6, 11, 1, 0, ''), (68, 10, 6, 11, 1, 0, ''), (69, 11, 6, 11, 1, 0, ''), (70, 13, 6, 11, 1, 0, ''), (71, 18, 6, 11, 1, 0, ''), (72, 1, 11, 2, 1, 90, ''); -- -------------------------------------------------------- -- -- Table structure for table `opening_amount` -- CREATE TABLE `opening_amount` ( `opening_amount_id` int(11) NOT NULL, `opening_amount` varchar(155) DEFAULT NULL, `added_date` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `opening_amount` -- INSERT INTO `opening_amount` (`opening_amount_id`, `opening_amount`, `added_date`) VALUES (1, '300', '2018-06-09 23:00:34'), (2, '400', '2018-06-10 00:00:40'), (14, '3', '2018-06-10 12:40:20'), (15, '343', '2018-06-10 12:44:51'); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `Order_id` int(10) NOT NULL, `Table_id` int(10) NOT NULL, `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `order_type` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `orders` -- INSERT INTO `orders` (`Order_id`, `Table_id`, `Timestamp`, `order_type`) VALUES (1, 2, '2018-06-10 21:15:11', 'Dine In'), (2, 2, '2018-06-10 21:15:12', 'Dine In'), (3, 99, '2018-06-10 21:19:53', 'Take Away'), (4, 5, '2018-06-10 21:20:52', 'Dine In'), (5, 1, '2018-06-10 21:21:35', ''), (6, 2, '2018-06-10 21:25:07', 'Dine In'), (7, 2, '2018-06-10 21:25:08', 'Dine In'), (8, 3, '2018-06-10 21:54:51', 'Dine In'), (9, 6, '2018-06-10 22:02:56', 'Dine In'), (10, 5, '2018-06-10 22:27:41', 'Dine In'), (13, 2, '2018-06-10 22:45:21', 'Dine In'), (14, 4, '2018-06-10 23:14:36', 'Dine In'), (15, 7, '2018-06-10 23:16:07', 'Dine In'), (16, 4, '2018-06-10 23:21:23', 'Dine In'), (17, 4, '2018-06-10 23:21:24', 'Dine In'), (18, 99, '2018-06-10 23:22:50', 'Take Away'), (19, 1, '2018-06-10 23:40:59', 'Dine In'), (20, 4, '2018-06-11 07:35:54', 'Dine In'), (21, 4, '2018-06-11 07:58:49', 'Dine In'), (22, 1, '2018-06-11 09:26:09', 'Dine In'), (23, 2, '2018-06-11 09:31:15', 'Dine In'), (24, 1, '2018-06-11 09:31:58', 'Dine In'), (25, 3, '2018-06-11 09:44:13', 'Dine In'), (26, 4, '2018-06-11 12:41:59', 'Dine In'), (27, 4, '2018-06-11 12:42:16', 'Dine In'), (28, 3, '2018-06-11 12:53:41', 'Dine In'), (29, 4, '2018-06-11 12:54:29', 'Dine In'), (30, 4, '2018-06-11 13:45:08', 'Dine In'), (31, 8, '2018-06-11 13:51:51', 'Dine In'); -- -------------------------------------------------------- -- -- Table structure for table `order_status` -- CREATE TABLE `order_status` ( `id` int(11) NOT NULL, `Order_id` int(11) NOT NULL, `status` int(11) NOT NULL DEFAULT '0', `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `seen` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `order_status` -- INSERT INTO `order_status` (`id`, `Order_id`, `status`, `Timestamp`, `seen`) VALUES (1, 2, 4, '2018-06-10 21:15:12', 0), (2, 3, 3, '2018-06-10 21:19:53', 0), (3, 4, 4, '2018-06-10 21:20:52', 0), (4, 5, 4, '2018-06-10 21:21:35', 0), (5, 7, 4, '2018-06-10 21:25:08', 0), (6, 8, 4, '2018-06-10 21:54:51', 0), (7, 9, 4, '2018-06-10 22:02:56', 0), (8, 10, 4, '2018-06-10 22:27:41', 0), (11, 13, 1, '2018-06-10 22:45:21', 0), (12, 14, 4, '2018-06-10 23:14:36', 0), (13, 15, 4, '2018-06-10 23:16:07', 0), (14, 17, 4, '2018-06-10 23:21:24', 0), (15, 18, 4, '2018-06-10 23:22:50', 0), (16, 19, 4, '2018-06-10 23:40:59', 0), (17, 20, 1, '2018-06-11 07:35:54', 0), (18, 21, 1, '2018-06-11 07:58:49', 0), (19, 22, 3, '2018-06-11 09:26:09', 0), (20, 23, 3, '2018-06-11 09:31:15', 0), (21, 24, 3, '2018-06-11 09:31:58', 0), (22, 25, 3, '2018-06-11 09:44:13', 0), (23, 26, 1, '2018-06-11 12:41:59', 0), (24, 27, 3, '2018-06-11 12:42:16', 0), (25, 28, 4, '2018-06-11 12:53:41', 0), (26, 29, 4, '2018-06-11 12:54:29', 0), (27, 30, 4, '2018-06-11 13:45:08', 0), (28, 31, 4, '2018-06-11 13:51:51', 0); -- -------------------------------------------------------- -- -- Table structure for table `payment_details` -- CREATE TABLE `payment_details` ( `payment_details_id` int(11) NOT NULL, `Order_id` int(11) DEFAULT NULL, `payment_type` varchar(55) DEFAULT NULL, `total_amount` varchar(255) DEFAULT NULL, `given_amount` varchar(255) DEFAULT NULL, `return_amount` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `added_date` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `payment_details` -- INSERT INTO `payment_details` (`payment_details_id`, `Order_id`, `payment_type`, `total_amount`, `given_amount`, `return_amount`, `added_by`, `added_date`) VALUES (1, 5, 'Online', '189', '189', '0', NULL, NULL), (2, 7, 'Online', '1200', '1200', '0', NULL, NULL), (3, 8, 'Card', '360', '360', '0', NULL, NULL), (4, 9, 'Online', '540', '540', '0', NULL, NULL), (5, 10, 'Cash', '360', '400', '40', NULL, NULL), (6, 14, 'Cash', '480', '500', '20', NULL, NULL), (7, 15, 'Online', '118415', '118415', '0', NULL, NULL), (8, 17, 'Online', '23483', '23483', '0', NULL, NULL), (9, 18, 'Cash', '1000', '1000', '0', NULL, NULL), (10, 19, 'Cash', '800', '2000', '1200', NULL, NULL), (11, 28, 'Cash', '600', '600', '0', NULL, NULL), (12, 29, 'Online', '330', '330', '0', NULL, NULL), (13, 30, 'Online', '70', '70', '0', NULL, NULL), (14, 30, 'Online', '70', '70', '0', NULL, NULL), (15, 31, 'Online', '1120', '1120', '0', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `sales` -- CREATE TABLE `sales` ( `sales_id` int(10) NOT NULL, `Order_id` int(10) NOT NULL, `cgst` float NOT NULL, `sgst` float NOT NULL, `net_total` float NOT NULL, `coupon_apply` int(11) DEFAULT NULL, `coupon_code` varchar(255) NOT NULL, `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `customer_id` int(11) DEFAULT NULL, `login_type` varchar(20) DEFAULT NULL, `refund` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `sales` -- INSERT INTO `sales` (`sales_id`, `Order_id`, `cgst`, `sgst`, `net_total`, `coupon_apply`, `coupon_code`, `Timestamp`, `customer_id`, `login_type`, `refund`) VALUES (1, 5, 4.5, 4.5, 189, NULL, '', '2018-06-10 21:21:56', 1, 'mobile', 0), (2, 7, 0, 0, 1200, NULL, '', '2018-06-10 21:25:18', 2, 'Manual', 0), (3, 8, 0, 0, 360, NULL, '', '2018-06-10 21:55:00', 1, 'Manual', 0), (4, 9, 0, 0, 540, NULL, '', '2018-06-10 22:03:31', 1, 'Manual', 0), (5, 10, 0, 0, 360, NULL, '', '2018-06-10 22:27:52', 2, 'Manual', 0), (6, 14, 0, 0, 480, NULL, '', '2018-06-10 23:14:47', 2, 'Manual', 0), (7, 15, 0, 0, 118415, NULL, '', '2018-06-10 23:20:21', 1, 'Manual', 0), (8, 17, 0, 0, 23483, NULL, '', '2018-06-10 23:21:32', 3, 'Manual', 0), (9, 18, 0, 0, 1000, NULL, '', '2018-06-10 23:23:11', 3, 'Manual', 0), (10, 19, 0, 0, 800, NULL, '', '2018-06-10 23:41:09', 1, 'Manual', 0), (11, 22, 0, 0, 400, NULL, '', '2018-06-11 09:26:19', 1, 'Manual', 0), (12, 23, 0, 0, 260, NULL, '', '2018-06-11 09:31:29', 3, 'Manual', 0), (13, 24, 0, 0, 360, NULL, '', '2018-06-11 09:32:04', 2, 'Manual', 0), (14, 25, 0, 0, 180, NULL, '', '2018-06-11 09:44:21', 3, 'Manual', 0), (15, 27, 0, 0, 510, NULL, '', '2018-06-11 12:42:46', 1, 'Manual', 0), (16, 28, 0, 0, 600, NULL, '', '2018-06-11 12:53:49', 2, 'Manual', 0), (17, 29, 0, 0, 330, NULL, '', '2018-06-11 12:54:39', 1, 'Manual', 0), (18, 30, 0, 0, 70, NULL, '', '2018-06-11 13:45:21', 3, 'Manual', 0), (19, 31, 0, 0, 1120, NULL, '', '2018-06-11 13:52:05', 1, 'Manual', 0); -- -------------------------------------------------------- -- -- Table structure for table `staff_management` -- CREATE TABLE `staff_management` ( `id` int(255) NOT NULL, `name` varchar(20) NOT NULL, `salary` int(255) NOT NULL, `shifts` time NOT NULL, `chores` varchar(20) NOT NULL, `table_no` int(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `staff_management` -- INSERT INTO `staff_management` (`id`, `name`, `salary`, `shifts`, `chores`, `table_no`) VALUES (23, 'Ankit', 20000, '14:00:00', 'Chef', 87), (32, 'Srijan', 20000, '09:00:00', 'Chef', 22); -- -- Indexes for dumped tables -- -- -- Indexes for table `addresses` -- ALTER TABLE `addresses` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `mobile` (`mobile`); -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id`); -- -- Indexes for table `background_image` -- ALTER TABLE `background_image` ADD PRIMARY KEY (`id`); -- -- Indexes for table `batter` -- ALTER TABLE `batter` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `coupons` -- ALTER TABLE `coupons` ADD PRIMARY KEY (`id`); -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`customer_id`), ADD KEY `customer_id` (`customer_id`), ADD KEY `customer_id_2` (`customer_id`); -- -- Indexes for table `customer_order` -- ALTER TABLE `customer_order` ADD PRIMARY KEY (`id`), ADD KEY `Menu_constraint` (`Menu_Id`), ADD KEY `Order_constraint` (`Order_id`); -- -- Indexes for table `expenses` -- ALTER TABLE `expenses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fake_order` -- ALTER TABLE `fake_order` ADD PRIMARY KEY (`id`); -- -- Indexes for table `feedback` -- ALTER TABLE `feedback` ADD PRIMARY KEY (`id`); -- -- Indexes for table `fonts` -- ALTER TABLE `fonts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `hotel_name_addr` -- ALTER TABLE `hotel_name_addr` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ingredients` -- ALTER TABLE `ingredients` ADD PRIMARY KEY (`Ingredients_id`); -- -- Indexes for table `inventory` -- ALTER TABLE `inventory` ADD PRIMARY KEY (`inventory_id`); -- -- Indexes for table `logo` -- ALTER TABLE `logo` ADD PRIMARY KEY (`id`); -- -- Indexes for table `menu` -- ALTER TABLE `menu` ADD PRIMARY KEY (`Menu_Id`,`Name`); -- -- Indexes for table `menu_batter_rel` -- ALTER TABLE `menu_batter_rel` ADD PRIMARY KEY (`id`); -- -- Indexes for table `menu_ingridient_rel` -- ALTER TABLE `menu_ingridient_rel` ADD PRIMARY KEY (`id`), ADD KEY `menu_id_constraint` (`Menu_id`), ADD KEY `Ingredients_id` (`Ingredients_id`), ADD KEY `Ingredients_id_2` (`Ingredients_id`); -- -- Indexes for table `opening_amount` -- ALTER TABLE `opening_amount` ADD PRIMARY KEY (`opening_amount_id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`Order_id`); -- -- Indexes for table `order_status` -- ALTER TABLE `order_status` ADD PRIMARY KEY (`id`), ADD KEY `order_status` (`Order_id`); -- -- Indexes for table `payment_details` -- ALTER TABLE `payment_details` ADD PRIMARY KEY (`payment_details_id`); -- -- Indexes for table `sales` -- ALTER TABLE `sales` ADD PRIMARY KEY (`sales_id`), ADD KEY `sale_order` (`Order_id`); -- -- Indexes for table `staff_management` -- ALTER TABLE `staff_management` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `addresses` -- ALTER TABLE `addresses` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `background_image` -- ALTER TABLE `background_image` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `batter` -- ALTER TABLE `batter` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `coupons` -- ALTER TABLE `coupons` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `customer_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `customer_order` -- ALTER TABLE `customer_order` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36; -- -- AUTO_INCREMENT for table `expenses` -- ALTER TABLE `expenses` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `fake_order` -- ALTER TABLE `fake_order` MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48; -- -- AUTO_INCREMENT for table `feedback` -- ALTER TABLE `feedback` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56; -- -- AUTO_INCREMENT for table `fonts` -- ALTER TABLE `fonts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `hotel_name_addr` -- ALTER TABLE `hotel_name_addr` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `ingredients` -- ALTER TABLE `ingredients` MODIFY `Ingredients_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `inventory` -- ALTER TABLE `inventory` MODIFY `inventory_id` int(10) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `logo` -- ALTER TABLE `logo` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `menu` -- ALTER TABLE `menu` MODIFY `Menu_Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69; -- -- AUTO_INCREMENT for table `menu_batter_rel` -- ALTER TABLE `menu_batter_rel` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `menu_ingridient_rel` -- ALTER TABLE `menu_ingridient_rel` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73; -- -- AUTO_INCREMENT for table `opening_amount` -- ALTER TABLE `opening_amount` MODIFY `opening_amount_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `Order_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT for table `order_status` -- ALTER TABLE `order_status` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `payment_details` -- ALTER TABLE `payment_details` MODIFY `payment_details_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `sales` -- ALTER TABLE `sales` MODIFY `sales_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- Constraints for dumped tables -- -- -- Constraints for table `customer_order` -- ALTER TABLE `customer_order` ADD CONSTRAINT `Order_constraint` FOREIGN KEY (`Order_id`) REFERENCES `orders` (`Order_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `order_status` -- ALTER TABLE `order_status` ADD CONSTRAINT `order_status` FOREIGN KEY (`Order_id`) REFERENCES `orders` (`Order_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `sales` -- ALTER TABLE `sales` ADD CONSTRAINT `sale_order` FOREIGN KEY (`Order_id`) REFERENCES `orders` (`Order_id`); /*!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 `mountains` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `peaks` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `mountain_id` INT NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `fk_peaks_mountains` FOREIGN KEY (`mountain_id`) REFERENCES `mountains`(`id`) ON DELETE CASCADE );