From a0ef184f4f51d3fd917cd55278ee39551d3bc82e Mon Sep 17 00:00:00 2001 From: Joshua Chudy Date: Tue, 13 Aug 2024 13:55:38 -0700 Subject: [PATCH] product schema/data from chaise test cases. Update association schema to have a multi-valued attribute --- testScripts/createProductAdd.js | 41 + .../data/edit_w_association/keyword.json | 5 + .../data/edit_w_association/main_keyword.json | 1 + testScripts/data/product/accommodation.json | 120 +++ .../product/accommodation_collection.json | 116 +++ .../data/product/accommodation_image.json | 9 + .../product/accommodation_image_assoc.json | 5 + .../data/product/accommodation_inbound1.json | 11 + .../data/product/accommodation_inbound2.json | 11 + .../data/product/accommodation_inbound3.json | 11 + .../data/product/accommodation_outbound1.json | 4 + .../accommodation_outbound1_outbound1.json | 4 + .../accommodation_outbound1_outbound2.json | 3 + .../accommodation_outbound1_outbound3.json | 3 + .../accommodation_outbound1_outbound4.json | 3 + .../data/product/association_table.json | 4 + .../product/association_table_markdown.json | 4 + .../product/association_table_null_keys.json | 1 + .../product/association_table_null_keys2.json | 1 + testScripts/data/product/booking.json | 108 +++ testScripts/data/product/category.json | 5 + .../data/product/category_collection.json | 5 + .../data/product/category_collection_2.json | 5 + .../data/product/category_collection_3.json | 5 + .../data/product/category_collection_4.json | 5 + .../data/product/category_collection_5.json | 5 + .../data/product/category_collection_6.json | 5 + testScripts/data/product/delete_table.json | 1 + testScripts/data/product/delete_table_2.json | 1 + testScripts/data/product/facilities.json | 29 + testScripts/data/product/file.json | 14 + .../data/product/inbound_null_key.json | 1 + ...d_related_to_accommodation_for_delete.json | 1 + .../data/product/inbound_to_delete_table.json | 1 + testScripts/data/product/media.json | 2 + .../data/product/media_collection.json | 4 + testScripts/data/product/more-files.json | 4 + testScripts/data/product/more-media.json | 3 + .../data/product/more_related_table.json | 1 + .../data/product/multiple_records.json | 5 + testScripts/data/product/new_media.json | 4 + testScripts/data/product/new_media_2.json | 4 + testScripts/data/product/new_media_3.json | 4 + testScripts/data/product/new_media_4.json | 4 + testScripts/data/product/new_media_5.json | 4 + testScripts/data/product/new_media_6.json | 4 + testScripts/data/product/new_media_7.json | 4 + testScripts/data/product/new_media_8.json | 4 + testScripts/data/product/new_media_9.json | 4 + testScripts/data/product/person.json | 3 + testScripts/data/product/related_table.json | 5 + testScripts/data/product/related_table_2.json | 4 + .../data/product/related_table_markdown.json | 4 + .../data/product/related_table_null_key.json | 5 + testScripts/data/product/schedule.json | 6 + .../data/product/table_w_aggregates.json | 5 + .../table_w_invalid_row_markdown_pattern.json | 4 + testScripts/data/product/table_w_rowname.json | 7 + testScripts/schema/edit_w_association.json | 150 +++- testScripts/schema/product_add.json | 805 ++++++++++++++++++ 60 files changed, 1599 insertions(+), 2 deletions(-) create mode 100644 testScripts/createProductAdd.js create mode 100644 testScripts/data/edit_w_association/keyword.json create mode 100644 testScripts/data/edit_w_association/main_keyword.json create mode 100644 testScripts/data/product/accommodation.json create mode 100644 testScripts/data/product/accommodation_collection.json create mode 100644 testScripts/data/product/accommodation_image.json create mode 100644 testScripts/data/product/accommodation_image_assoc.json create mode 100644 testScripts/data/product/accommodation_inbound1.json create mode 100644 testScripts/data/product/accommodation_inbound2.json create mode 100644 testScripts/data/product/accommodation_inbound3.json create mode 100644 testScripts/data/product/accommodation_outbound1.json create mode 100644 testScripts/data/product/accommodation_outbound1_outbound1.json create mode 100644 testScripts/data/product/accommodation_outbound1_outbound2.json create mode 100644 testScripts/data/product/accommodation_outbound1_outbound3.json create mode 100644 testScripts/data/product/accommodation_outbound1_outbound4.json create mode 100644 testScripts/data/product/association_table.json create mode 100644 testScripts/data/product/association_table_markdown.json create mode 100644 testScripts/data/product/association_table_null_keys.json create mode 100644 testScripts/data/product/association_table_null_keys2.json create mode 100644 testScripts/data/product/booking.json create mode 100644 testScripts/data/product/category.json create mode 100644 testScripts/data/product/category_collection.json create mode 100644 testScripts/data/product/category_collection_2.json create mode 100644 testScripts/data/product/category_collection_3.json create mode 100644 testScripts/data/product/category_collection_4.json create mode 100644 testScripts/data/product/category_collection_5.json create mode 100644 testScripts/data/product/category_collection_6.json create mode 100644 testScripts/data/product/delete_table.json create mode 100644 testScripts/data/product/delete_table_2.json create mode 100644 testScripts/data/product/facilities.json create mode 100644 testScripts/data/product/file.json create mode 100644 testScripts/data/product/inbound_null_key.json create mode 100644 testScripts/data/product/inbound_related_to_accommodation_for_delete.json create mode 100644 testScripts/data/product/inbound_to_delete_table.json create mode 100644 testScripts/data/product/media.json create mode 100644 testScripts/data/product/media_collection.json create mode 100644 testScripts/data/product/more-files.json create mode 100644 testScripts/data/product/more-media.json create mode 100644 testScripts/data/product/more_related_table.json create mode 100644 testScripts/data/product/multiple_records.json create mode 100644 testScripts/data/product/new_media.json create mode 100644 testScripts/data/product/new_media_2.json create mode 100644 testScripts/data/product/new_media_3.json create mode 100644 testScripts/data/product/new_media_4.json create mode 100644 testScripts/data/product/new_media_5.json create mode 100644 testScripts/data/product/new_media_6.json create mode 100644 testScripts/data/product/new_media_7.json create mode 100644 testScripts/data/product/new_media_8.json create mode 100644 testScripts/data/product/new_media_9.json create mode 100644 testScripts/data/product/person.json create mode 100644 testScripts/data/product/related_table.json create mode 100644 testScripts/data/product/related_table_2.json create mode 100644 testScripts/data/product/related_table_markdown.json create mode 100644 testScripts/data/product/related_table_null_key.json create mode 100644 testScripts/data/product/schedule.json create mode 100644 testScripts/data/product/table_w_aggregates.json create mode 100644 testScripts/data/product/table_w_invalid_row_markdown_pattern.json create mode 100644 testScripts/data/product/table_w_rowname.json create mode 100644 testScripts/schema/product_add.json diff --git a/testScripts/createProductAdd.js b/testScripts/createProductAdd.js new file mode 100644 index 0000000..8a9a43f --- /dev/null +++ b/testScripts/createProductAdd.js @@ -0,0 +1,41 @@ +var dataUtils = require('./../import.js'); +var Catalog = require('./../model/catalog.js'); + +var configuration = { + setup: { + "catalog": {}, + "schema": { + "name": "product-add", + "createNew": true, + "path": "schema/product_add.json" + }, + "tables": { + "createNew": true + }, + "entities": { + "createNew": true, + "path": "data/product" + } + }, + url: process.env.ERMREST_URL, + authCookie: process.env.AUTH_COOKIE, + cleanup: false +}; + +dataUtils.importData(configuration).then(function(data) { + console.log("Data imported with catalogId " + data.catalogId); + console.log("Please remember to clean up the catalog."); + + // Anyone in "isrd-staff" can read ACL + // return Catalog.addACLs(data.schema.url, data.catalogId, {"select": ["https://auth.globus.org/176baec4-ed26-11e5-8e88-22000ab4b42b"]}); + // Anyone can read ACL + return Catalog.addACLs(data.schema.url, data.catalogId, {"select": ["*"]}); +}, function(err) { + console.log("Unable to import data"); + console.dir(err); +}).then(function(data) { + console.log("ACLs set"); +}, function(err) { + console.log("Unable to set ACLs"); + console.dir(err); +}); diff --git a/testScripts/data/edit_w_association/keyword.json b/testScripts/data/edit_w_association/keyword.json new file mode 100644 index 0000000..47735b5 --- /dev/null +++ b/testScripts/data/edit_w_association/keyword.json @@ -0,0 +1,5 @@ +[{"id": 1, "name": "keyword ONE" }, + {"id": 2, "name": "keyword TWO" }, + {"id": 3, "name": "keyword THREE" }, + {"id": 4, "name": "keyword FOUR" }, + {"id": 5, "name": "keyword FIVE" }] diff --git a/testScripts/data/edit_w_association/main_keyword.json b/testScripts/data/edit_w_association/main_keyword.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/testScripts/data/edit_w_association/main_keyword.json @@ -0,0 +1 @@ +[] diff --git a/testScripts/data/product/accommodation.json b/testScripts/data/product/accommodation.json new file mode 100644 index 0000000..0840739 --- /dev/null +++ b/testScripts/data/product/accommodation.json @@ -0,0 +1,120 @@ +[{ + "id": 2003, + "extra_id": 1, + "no_of_rooms": 15, + "title": "NH Munich Resort", + "website": "http://www.nh-hotels.com/hotels/munich", + "category": "Resort", + "rating": 3.2, + "summary": "NH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche church, Stachus (Karlsplatz) and the Viktualienmarkt. Other places of interest to explore in Munich are the English garden, the spectacular Nymphenburg Palace and the German Museum, a museum of science and technology very much in keeping with the industrial spirit of the city. Do not forget to visit Munich at the end of September and beginning of October, the time for its most famous international festival: Oktoberfest! Beer, sausages, baked knuckles and other gastronomic specialities await you in a festive atmosphere on the grasslands of Theresienwiese. Not to be missed! And with NH Hotels you can choose the hotels in Munich which best suit your travel plans, with free WiFi and the possibility to bring your pets with you. NH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche church, Stachus (Karlsplatz) and the Viktualienmarkt. Other places of interest to explore in Munich are the English garden, the spectacular Nymphenburg Palace and the German Museum, a museum of science and technology very much in keeping with the industrial spirit of the city. Do not forget to visit Munich at the end of September and beginning of October, the time for its most famous international festival: Oktoberfest! Beer, sausages, baked knuckles and other gastronomic specialities await you in a festive atmosphere on the grasslands of Theresienwiese. Not to be missed! And with NH Hotels you can choose the hotels in Munich which best suit your travel plans, with free WiFi and the possibility to bring your pets with you.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3001, + "cover": 3001, + "opened_on": "1976-06-15T00:00:00-07:00", + "json_col":{"name":"testing_json"}, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true, + "color_rgb_hex_column": "#123456" + }, + { + "id": 2001, + "extra_id": 2, + "no_of_rooms": 46, + "title": "Radisson Hotel", + "website": "http://www.radisson.com/", + "category": "Hotel", + "rating": 4.7, + "summary": "Radisson Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3002, + "cover": 3002, + "opened_on": "2002-01-22T00:00:00-08:00", + "json_col":{"name":"testing_json"}, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true, + "color_rgb_hex_column": "#223456" + }, + { + "id": 2002, + "extra_id": 3, + "no_of_rooms": 23, + "title": "Sherathon Hotel", + "website": "http://www.starwoodhotels.com/sheraton/index.html", + "category": "Hotel", + "rating": 4.3, + "summary": "Sherathon Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "**CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": null, + "cover": 3005, + "opened_on": "2008-12-09T00:00:00-08:00", + "json_col":null, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true, + "fk_col_outbound1": "o1_1", + "color_rgb_hex_column": "#323456" + }, + { + "id": 2004, + "extra_id": 4, + "no_of_rooms": 35, + "title": "Super 8 North Hollywood Motel", + "website": "https://www.kayak.com/hotels/Super-8-North-Hollywood-c31809-h40498/2016-06-09/2016-06-10/2guests", + "category": "Motel", + "rating": 2.8, + "summary": "Fair Hotel. Close to Universal Studios. Located near shopping areas with easy access to parking. Professional staff and clean rooms. Poorly-maintained rooms.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3004, + "cover": 3011, + "opened_on": "2013-06-11T00:00:00-07:00", + "json_col":{"name":"Testing","age":25}, + "json_col_with_markdown": "Processing", + "date_col": "12/9/2008", + "luxurious": false, + "nullable_assoc_key2": "value", + "fk_col_outbound1": "o1_2", + "color_rgb_hex_column": "#423456" +}, +{ + "id": 4004, + "extra_id": 5, + "no_of_rooms": 96, + "title": "Hilton Hotel", + "website": null, + "category": "Hotel", + "rating": 4.2, + "summary": "Great Hotel. We've got the best prices out of anyone. Stay here to make America great again. Located near shopping areas with easy access to parking. Professional staff and clean rooms. Poorly-maintained rooms.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "opened_on": "2013-06-11T00:00:00-07:00", + "json_col":9876.3543, + "json_col_with_markdown": "Processing", + "date_col": "12/9/2008", + "luxurious": true, + "color_rgb_hex_column": "#523456" +}, +{ + "id": 2000, + "extra_id": 6, + "no_of_rooms": 23, + "title": "Sherathon Hotel", + "website": "http://www.starwoodhotels.com/sheraton/index.html", + "category": "Hotel", + "rating": 4.3, + "summary": "Sherathon Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "**CARING. SHARING. DARING.**", + "thumbnail": null, + "cover": 3005, + "opened_on": "2008-12-09T00:00:00-08:00", + "date_col": "12/9/2008", + "luxurious": true, + "text_array": ["v2", "v3"], + "boolean_array": [false], + "int4_array": [1], + "float4_array": [1.1, 2.2], + "date_array": null, + "timestamp_array": ["2003-03-03T03:03:03"], + "timestamptz_array": ["2002-02-02T02:02:02-08:00"], + "color_rgb_hex_column": "#623456" +}] diff --git a/testScripts/data/product/accommodation_collection.json b/testScripts/data/product/accommodation_collection.json new file mode 100644 index 0000000..bea8969 --- /dev/null +++ b/testScripts/data/product/accommodation_collection.json @@ -0,0 +1,116 @@ +[{ + "id": 2003, + "no_of_rooms": 15, + "title": "NH Munich Resort", + "website": "http://www.nh-hotels.com/hotels/munich", + "category": "Resort", + "rating": 3.2, + "summary": "NH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche church, Stachus (Karlsplatz) and the Viktualienmarkt. Other places of interest to explore in Munich are the English garden, the spectacular Nymphenburg Palace and the German Museum, a museum of science and technology very much in keeping with the industrial spirit of the city. Do not forget to visit Munich at the end of September and beginning of October, the time for its most famous international festival: Oktoberfest! Beer, sausages, baked knuckles and other gastronomic specialities await you in a festive atmosphere on the grasslands of Theresienwiese. Not to be missed! And with NH Hotels you can choose the hotels in Munich which best suit your travel plans, with free WiFi and the possibility to bring your pets with you.\n\n NH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche church, Stachus (Karlsplatz) and the Viktualienmarkt. Other places of interest to explore in Munich are the English garden, the spectacular Nymphenburg Palace and the German Museum, a museum of science and technology very much in keeping with the industrial spirit of the city. Do not forget to visit Munich at the end of September and beginning of October, the time for its most famous international festival: Oktoberfest! Beer, sausages, baked knuckles and other gastronomic specialities await you in a festive atmosphere on the grasslands of Theresienwiese. Not to be missed! And with NH Hotels you can choose the hotels in Munich which best suit your travel plans, with free WiFi and the possibility to bring your pets with you.\n\nNH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche church, Stachus (Karlsplatz) and the Viktualienmarkt. Other places of interest to explore in Munich are the English garden, the spectacular Nymphenburg Palace and the German Museum, a museum of science and technology very much in keeping with the industrial spirit of the city. Do not forget to visit Munich at the end of September and beginning of October, the time for its most famous international festival: Oktoberfest! Beer, sausages, baked knuckles and other gastronomic specialities await you in a festive atmosphere on the grasslands of Theresienwiese. Not to be missed! And with NH Hotels you can choose the hotels in Munich which best suit your travel plans, with free WiFi and the possibility to bring your pets with you.\n\n NH Hotels has six resorts in the city of Munich. Very close to Munich Main Train Station -- the train being one of the most interesting choices of transport for travelling around Germany -- is the four-star NH München Deutscher Kaiser Hotel. In addition to the excellent quality of accommodation that it offers, the hotel is located close to Marienplatz, the monumental central square in the city, the Frauenkirche", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.\n** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.\n* ** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3001, + "cover": 3001, + "opened_on": "1976-06-15T00:00:00-07:00", + "json_col":{ + "name":"testing_json", + "image": { + "src": "Images/Sun.png", + "name": "sun1", + "hOffset": 250, + "vOffset": 250, + "alignment": "center" + }, + "text": { + "data": "Click Here", + "size": 36, + "style": "bold", + "name": "text1", + "hOffset": 250, + "vOffset": 100, + "alignment": "center", + "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" + } + }, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true + }, + { + "id": 2001, + "no_of_rooms": 46, + "title": "Radisson Hotel", + "website": "http://www.radisson.com/", + "category": "Hotel", + "rating": 4.7, + "summary": "Radisson Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3002, + "cover": 3002, + "opened_on": "2002-01-22T00:00:00-08:00", + "json_col":{"name":"testing_json"}, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true + }, + { + "id": 2002, + "no_of_rooms": 23, + "title": "Sherathon Hotel", + "website": "http://www.starwoodhotels.com/sheraton/index.html", + "category": "Hotel", + "rating": 4.3, + "summary": "Sherathon Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "**CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": null, + "cover": 3005, + "opened_on": "2008-12-09T00:00:00-08:00", + "json_col":null, + "json_col_with_markdown": "delivered", + "date_col": "12/9/2008", + "luxurious": true + }, + { + "id": 2004, + "no_of_rooms": 35, + "title": "Super 8 North Hollywood Motel", + "website": "https://www.kayak.com/hotels/Super-8-North-Hollywood-c31809-h40498/2016-06-09/2016-06-10/2guests", + "category": "Motel", + "rating": 2.8, + "summary": "Fair Hotel. Close to Universal Studios. Located near shopping areas with easy access to parking. Professional staff and clean rooms. Poorly-maintained rooms.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "thumbnail": 3004, + "cover": 3011, + "opened_on": "2013-06-11T00:00:00-07:00", + "json_col":{"name":"Testing","age":25}, + "date_col": "12/9/2008", + "luxurious": false +}, +{ + "id": 4004, + "no_of_rooms": 96, + "title": "Hilton Hotel", + "website": null, + "category": "Hotel", + "rating": 4.2, + "summary": "Great Hotel. We've got the best prices out of anyone. Stay here to make America great again. Located near shopping areas with easy access to parking. Professional staff and clean rooms. Poorly-maintained rooms.", + "description": "** CARING. SHARING. DARING.**\nRadisson^®^ is synonymous with outstanding levels of service and comfort delivered with utmost style. And today, we deliver even more to make sure we maintain our position at the forefront of the hospitality industry now and in the future.\nOur hotels are service driven, responsible, socially and locally connected and demonstrate a modern friendly attitude in everything we do. Our aim is to deliver our outstanding `Yes I Can!` ^SM^ service, comfort and style where you need us.\n\n**THE RADISSON^®^ WAY** Always positive, always smiling and always professional, Radisson people set Radisson apart. Every member of the team has a dedication to `Yes I Can!` ^SM^ hospitality – a passion for ensuring the total wellbeing and satisfaction of each individual guest. Imaginative, understanding and truly empathetic to the needs of the modern traveler, they are people on a special mission to deliver exceptional Extra Thoughtful Care.", + "opened_on": "2013-06-11T00:00:00-07:00", + "json_col":9876.3543, + "json_col_with_markdown": "Processing", + "date_col": "12/9/2008", + "luxurious": true +}, +{ + "id": 2000, + "no_of_rooms": 23, + "title": "Sherathon Hotel", + "website": "http://www.starwoodhotels.com/sheraton/index.html", + "category": "Hotel", + "rating": 4.3, + "summary": "Sherathon Hotels is an international hotel company with more than 990 locations in 73 countries. The first Radisson Hotel was built in 1909 in Minneapolis, Minnesota, US. It is named after the 17th-century French explorer Pierre-Esprit Radisson.", + "description": "**CARING. SHARING. DARING.**", + "thumbnail": 3005, + "cover": 3005, + "opened_on": "2008-12-09T00:00:00-08:00", + "date_col": "12/9/2008", + "luxurious": true +}] diff --git a/testScripts/data/product/accommodation_image.json b/testScripts/data/product/accommodation_image.json new file mode 100644 index 0000000..29f4cf8 --- /dev/null +++ b/testScripts/data/product/accommodation_image.json @@ -0,0 +1,9 @@ +[{"accommodation_id":2003,"image_id":3001}, + {"accommodation_id":2001,"image_id":3002}, + {"accommodation_id":2002,"image_id":3005}, + {"accommodation_id":2002,"image_id":3006}, + {"accommodation_id":2002,"image_id":3008}, + {"accommodation_id":2004,"image_id":3009}, + {"accommodation_id":2004,"image_id":3010}, + {"accommodation_id":2004,"image_id":3011}, + {"accommodation_id":2002,"image_id":30007}] diff --git a/testScripts/data/product/accommodation_image_assoc.json b/testScripts/data/product/accommodation_image_assoc.json new file mode 100644 index 0000000..3369577 --- /dev/null +++ b/testScripts/data/product/accommodation_image_assoc.json @@ -0,0 +1,5 @@ +[ + {"accommodation_id": "2003", "image_id": "3005"}, + {"accommodation_id": "2002", "image_id": "3005"}, + {"accommodation_id": "2004", "image_id": "3005"} +] diff --git a/testScripts/data/product/accommodation_inbound1.json b/testScripts/data/product/accommodation_inbound1.json new file mode 100644 index 0000000..425a3a1 --- /dev/null +++ b/testScripts/data/product/accommodation_inbound1.json @@ -0,0 +1,11 @@ +[ + {"id": "i1_1", "name": "accommodation_inbound1 one", "fk1_col": 2002}, + {"id": "i1_2", "name": "accommodation_inbound1 two"}, + {"id": "i1_3", "name": "accommodation_inbound1 three", "fk1_col": 2002}, + {"id": "i1_4", "name": "accommodation_inbound1 four"}, + {"id": "i1_5", "name": "accommodation_inbound1 five", "fk1_col": 2002}, + {"id": "i1_6", "name": "accommodation_inbound1 six", "fk1_col": 2003}, + {"id": "i1_7", "name": "accommodation_inbound1 seven", "fk1_col": 2004}, + {"id": "i1_8", "name": "accommodation_inbound1 eight", "fk1_col": 2004}, + {"id": "i1_9", "name": "accommodation_inbound1 nine", "fk1_col": 2004} +] diff --git a/testScripts/data/product/accommodation_inbound2.json b/testScripts/data/product/accommodation_inbound2.json new file mode 100644 index 0000000..55f116a --- /dev/null +++ b/testScripts/data/product/accommodation_inbound2.json @@ -0,0 +1,11 @@ +[ + {"id": "i2_1", "name": "accommodation_inbound2 one", "fk1_col": 2002}, + {"id": "i2_2", "name": "accommodation_inbound2 two"}, + {"id": "i2_3", "name": "accommodation_inbound2 three", "fk1_col": 2002}, + {"id": "i2_4", "name": "accommodation_inbound2 four"}, + {"id": "i2_5", "name": "accommodation_inbound2 five", "fk1_col": 2002}, + {"id": "i2_6", "name": "accommodation_inbound2 six", "fk1_col": 2003}, + {"id": "i2_7", "name": "accommodation_inbound2 seven", "fk1_col": 2004}, + {"id": "i2_8", "name": "accommodation_inbound2 eight", "fk1_col": 2004}, + {"id": "i2_9", "name": "accommodation_inbound2 nine", "fk1_col": 2004} +] diff --git a/testScripts/data/product/accommodation_inbound3.json b/testScripts/data/product/accommodation_inbound3.json new file mode 100644 index 0000000..d951c92 --- /dev/null +++ b/testScripts/data/product/accommodation_inbound3.json @@ -0,0 +1,11 @@ +[ + {"id": "i3_1", "name": "accommodation_inbound3 one", "fk1_col": 2002}, + {"id": "i3_2", "name": "accommodation_inbound3 two"}, + {"id": "i3_3", "name": "accommodation_inbound3 three", "fk1_col": 2002}, + {"id": "i3_4", "name": "accommodation_inbound3 four"}, + {"id": "i3_5", "name": "accommodation_inbound3 five", "fk1_col": 2002}, + {"id": "i3_6", "name": "accommodation_inbound3 six", "fk1_col": 2003}, + {"id": "i3_7", "name": "accommodation_inbound3 seven", "fk1_col": 2004}, + {"id": "i3_8", "name": "accommodation_inbound3 eight", "fk1_col": 2004}, + {"id": "i3_9", "name": "accommodation_inbound3 nine", "fk1_col": 2004} +] diff --git a/testScripts/data/product/accommodation_outbound1.json b/testScripts/data/product/accommodation_outbound1.json new file mode 100644 index 0000000..43a6871 --- /dev/null +++ b/testScripts/data/product/accommodation_outbound1.json @@ -0,0 +1,4 @@ +[ + {"id": "o1_1", "fk1_col": "o1_o1_1", "fk2_col": "o1_o2_1", "fk3_col": "o1_o3_1", "fk4_col": "o1_o4_1", "name": "accommodation_outbound1 one"}, + {"id": "o1_2", "fk1_col": "o1_o1_2", "name": "accommodation_outbound1 two"} +] diff --git a/testScripts/data/product/accommodation_outbound1_outbound1.json b/testScripts/data/product/accommodation_outbound1_outbound1.json new file mode 100644 index 0000000..608218b --- /dev/null +++ b/testScripts/data/product/accommodation_outbound1_outbound1.json @@ -0,0 +1,4 @@ +[ + {"id": "o1_o1_1", "name": "accommodation_outbound1_outbound1 one"}, + {"id": "o1_o1_2", "name": "accommodation_outbound1_outbound1 two"} +] diff --git a/testScripts/data/product/accommodation_outbound1_outbound2.json b/testScripts/data/product/accommodation_outbound1_outbound2.json new file mode 100644 index 0000000..cd0c63f --- /dev/null +++ b/testScripts/data/product/accommodation_outbound1_outbound2.json @@ -0,0 +1,3 @@ +[ + {"id": "o1_o2_1", "name": "accommodation_outbound1_outbound2 one"} +] diff --git a/testScripts/data/product/accommodation_outbound1_outbound3.json b/testScripts/data/product/accommodation_outbound1_outbound3.json new file mode 100644 index 0000000..948ce34 --- /dev/null +++ b/testScripts/data/product/accommodation_outbound1_outbound3.json @@ -0,0 +1,3 @@ +[ + {"id": "o1_o3_1", "name": "accommodation_outbound1_outbound3 one"} +] diff --git a/testScripts/data/product/accommodation_outbound1_outbound4.json b/testScripts/data/product/accommodation_outbound1_outbound4.json new file mode 100644 index 0000000..1510b86 --- /dev/null +++ b/testScripts/data/product/accommodation_outbound1_outbound4.json @@ -0,0 +1,3 @@ +[ + {"id": "o1_o4_1", "name": "accommodation_outbound1_outbound4 one"} +] diff --git a/testScripts/data/product/association_table.json b/testScripts/data/product/association_table.json new file mode 100644 index 0000000..dd18a2e --- /dev/null +++ b/testScripts/data/product/association_table.json @@ -0,0 +1,4 @@ +[{"id_related":"1" ,"id_base":"2004"}, +{"id_related":"2" ,"id_base":"2001"}, +{"id_related":"3" ,"id_base":"2002"}, +{"id_related":"4" ,"id_base":"4004"}] diff --git a/testScripts/data/product/association_table_markdown.json b/testScripts/data/product/association_table_markdown.json new file mode 100644 index 0000000..dd18a2e --- /dev/null +++ b/testScripts/data/product/association_table_markdown.json @@ -0,0 +1,4 @@ +[{"id_related":"1" ,"id_base":"2004"}, +{"id_related":"2" ,"id_base":"2001"}, +{"id_related":"3" ,"id_base":"2002"}, +{"id_related":"4" ,"id_base":"4004"}] diff --git a/testScripts/data/product/association_table_null_keys.json b/testScripts/data/product/association_table_null_keys.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/testScripts/data/product/association_table_null_keys.json @@ -0,0 +1 @@ +[] diff --git a/testScripts/data/product/association_table_null_keys2.json b/testScripts/data/product/association_table_null_keys2.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/testScripts/data/product/association_table_null_keys2.json @@ -0,0 +1 @@ +[] diff --git a/testScripts/data/product/booking.json b/testScripts/data/product/booking.json new file mode 100644 index 0000000..15e387c --- /dev/null +++ b/testScripts/data/product/booking.json @@ -0,0 +1,108 @@ +[ + { + "id": 1, + "accommodation_id": 2001, + "fk2_col": 2, + "fk4_col_2_fk5_col": 2, + "price": 300, + "booking_date": "2016-04-06T00:00:00-07:00" + }, + { + "id": 2, + "accommodation_id": 2002, + "fk2_col": 3, + "fk4_col_2_fk5_col": 3, + "price": 350, + "booking_date": "2016-04-18T00:00:00-07:00", + "image_id":3005 + }, + { + "id": 3, + "accommodation_id": 2001, + "fk2_col": 2, + "fk4_col_2_fk5_col": 2, + "price": 260, + "booking_date": "2016-02-15T00:00:00-08:00" + }, + { + "id": 4, + "accommodation_id": 2002, + "fk2_col": 3, + "fk4_col_2_fk5_col": 3, + "price": 200, + "booking_date": "2016-05-31T00:00:00-07:00", + "image_id":3006 + }, + { + "id": 5, + "accommodation_id": 2003, + "fk2_col": 1, + "fk4_col_2_fk5_col": 1, + "price": 240, + "booking_date": "2016-01-25T00:00:00-08:00" + }, + { + "id": 6, + "accommodation_id": 2003, + "fk2_col": 1, + "fk4_col_2_fk5_col": 1, + "price": 320, + "booking_date": "2016-02-09T00:00:00-08:00" + }, + { + "id": 7, + "accommodation_id": 2003, + "fk2_col": 1, + "fk4_col_2_fk5_col": 1, + "price": 280, + "booking_date": "2016-03-07T00:00:00-08:00" + }, + { + "id": 8, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 125, + "booking_date": "2016-03-12T00:00:00-08:00" + }, + { + "id": 9, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 100, + "booking_date": "2016-06-01T00:00:00-07:00" + }, + { + "id": 10, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 110, + "booking_date": "2016-05-19T01:00:00-07:00" + }, + { + "id": 11, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 120, + "booking_date": "2015-11-10T00:00:00-08:00" + }, + { + "id": 12, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 180, + "booking_date": "2016-09-04T01:00:00-07:00" + }, + { + "id": 13, + "accommodation_id": 2004, + "fk2_col": 4, + "fk4_col_2_fk5_col": 4, + "price": 80, + "booking_date": "2016-01-01T00:00:00-08:00" + } +] diff --git a/testScripts/data/product/category.json b/testScripts/data/product/category.json new file mode 100644 index 0000000..1b59ef7 --- /dev/null +++ b/testScripts/data/product/category.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","type_of_facilities":"Luxury"}, + {"id":10003,"term":"Hotel","type_of_facilities":"Upscale"}, + {"id":10005,"term":"Motel","type_of_facilities":"Basic"}, + {"id":10004,"term":"Ranch","type_of_facilities":"Basic"}, + {"id":10006,"term":"Resort","type_of_facilities":"Luxury"}] diff --git a/testScripts/data/product/category_collection.json b/testScripts/data/product/category_collection.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/category_collection_2.json b/testScripts/data/product/category_collection_2.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection_2.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/category_collection_3.json b/testScripts/data/product/category_collection_3.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection_3.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/category_collection_4.json b/testScripts/data/product/category_collection_4.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection_4.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/category_collection_5.json b/testScripts/data/product/category_collection_5.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection_5.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/category_collection_6.json b/testScripts/data/product/category_collection_6.json new file mode 100644 index 0000000..c3c589b --- /dev/null +++ b/testScripts/data/product/category_collection_6.json @@ -0,0 +1,5 @@ +[{"id":10007,"term":"Castle","category_collection_id" : 2003}, + {"id":10003,"term":"Hotel", "category_collection_id" : 2003}, + {"id":10005,"term":"Motel", "category_collection_id" : 2003}, + {"id":10004,"term":"Ranch", "category_collection_id" : 2003}, + {"id":10006,"term":"Resort", "category_collection_id" : 2003}] diff --git a/testScripts/data/product/delete_table.json b/testScripts/data/product/delete_table.json new file mode 100644 index 0000000..facdc21 --- /dev/null +++ b/testScripts/data/product/delete_table.json @@ -0,0 +1 @@ +[{"id": "1", "name": "one"}] diff --git a/testScripts/data/product/delete_table_2.json b/testScripts/data/product/delete_table_2.json new file mode 100644 index 0000000..d3e1b01 --- /dev/null +++ b/testScripts/data/product/delete_table_2.json @@ -0,0 +1 @@ +[{"id": "4004", "name": "Four thousand four"}] diff --git a/testScripts/data/product/facilities.json b/testScripts/data/product/facilities.json new file mode 100644 index 0000000..bb69227 --- /dev/null +++ b/testScripts/data/product/facilities.json @@ -0,0 +1,29 @@ +[ + { + "id": 1111, + "type": "Luxury", + "conference_room": true, + "golf_course": true, + "fine_dining": true, + "gym": true, + "wifi": true + }, + { + "id": 1112, + "type": "Upscale", + "conference_room": false, + "golf_course": false, + "fine_dining": true, + "gym": true, + "wifi": true + }, + { + "id": 1113, + "type": "Basic", + "conference_room": false, + "golf_course": false, + "fine_dining": false, + "gym": false, + "wifi": true + } +] \ No newline at end of file diff --git a/testScripts/data/product/file.json b/testScripts/data/product/file.json new file mode 100644 index 0000000..13c4334 --- /dev/null +++ b/testScripts/data/product/file.json @@ -0,0 +1,14 @@ +[{"id":3001,"filename":"NH Hotel, Munich","uri":"http://blobstorage.s3.amazonaws.com/65543799716315855/_applications/65545550151418706/_deployments/65545553847649199/170071F7C72018C","content_type":"image/png","bytes":null,"timestamp":"2015-11-27T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3002,"filename":"Hotel Radission","uri":"http://blobstorage.s3.amazonaws.com/65543799716315855/_applications/65545550151418706/_deployments/65545553847649199/16FF9BF78920122","content_type":"image/png","bytes":0,"timestamp":"2016-06-15T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}, + {"id":3003,"filename":"Four Points Sherathon","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_188_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-01-11T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3004,"filename":"Motel thumbnail","uri":"https://a2.r9cdn.net/rimg/himg/3a/56/69/ice-32193-photo.aspx_did=2692_brochureid=32193_publicid=19615231_instanceid=10-image.jpg?width=315&height=225&crop=true","content_type":"image/png","bytes":0,"timestamp":"2016-01-11T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3005,"filename":"Four Points Sherathon 1","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_190_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-01-18T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3006,"filename":"Four Points Sherathon 2","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_190_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-06-05T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}, + {"id":3008,"filename":"Four Points Sherathon 4","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_193_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-01-03T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3009,"filename":"Motel North Hollywood 1","uri":"https://www.kayak.com/rimg/himg/3a/56/69/ice-32193-photo.aspx_did=2692_brochureid=32193_publicid=19615243_instanceid=10-image.jpg?width=400&height=400&crop=true","content_type":"image/png","bytes":0,"timestamp":"2016-06-14T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}, + {"id":3010,"filename":"Motel North Hollywood 2","uri":"https://www.kayak.com/rimg/himg/3a/56/69/ice-32193-photo.aspx_did=2692_brochureid=32193_publicid=19615255_instanceid=10-image.jpg?width=200&height=200&crop=true","content_type":"image/png","bytes":0,"timestamp":"2016-02-08T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3011,"filename":"Motel North Hollywood 3","uri":"https://www.kayak.com/rimg/himg/3a/56/69/ice-32193-photo.aspx_did=2692_brochureid=32193_publicid=19615255_instanceid=10-image.jpg?width=200&height=200&crop=true","content_type":"image/png","bytes":0,"timestamp":"2016-01-03T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":3012,"filename":"Motel North Hollywood 4","uri":"https://www.kayak.com/rimg/himg/3a/56/69/ice-32193-photo.aspx_did=2692_brochureid=32193_publicid=19615255_instanceid=10-image.jpg?width=200&height=200&crop=true","content_type":"image/png","bytes":0,"timestamp":"2016-01-03T00:00:00-08:00","image_width":null,"image_height":null,"preview":null}, + {"id":30007,"filename":"Four Points Sherathon 3","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_191_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-06-05T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}, + {"id":90007,"filename":"Four Points Sherathon 3","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_191_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-06-05T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}, + {"id":90008,"filename":"Four Points Sherathon 3","uri":"http://images.trvl-media.com/hotels/1000000/30000/28200/28110/28110_191_z.jpg","content_type":"image/jpeg","bytes":0,"timestamp":"2016-06-05T00:00:00-07:00","image_width":null,"image_height":null,"preview":null}] diff --git a/testScripts/data/product/inbound_null_key.json b/testScripts/data/product/inbound_null_key.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/testScripts/data/product/inbound_null_key.json @@ -0,0 +1 @@ +[] diff --git a/testScripts/data/product/inbound_related_to_accommodation_for_delete.json b/testScripts/data/product/inbound_related_to_accommodation_for_delete.json new file mode 100644 index 0000000..d3e1b01 --- /dev/null +++ b/testScripts/data/product/inbound_related_to_accommodation_for_delete.json @@ -0,0 +1 @@ +[{"id": "4004", "name": "Four thousand four"}] diff --git a/testScripts/data/product/inbound_to_delete_table.json b/testScripts/data/product/inbound_to_delete_table.json new file mode 100644 index 0000000..facdc21 --- /dev/null +++ b/testScripts/data/product/inbound_to_delete_table.json @@ -0,0 +1 @@ +[{"id": "1", "name": "one"}] diff --git a/testScripts/data/product/media.json b/testScripts/data/product/media.json new file mode 100644 index 0000000..203e7c9 --- /dev/null +++ b/testScripts/data/product/media.json @@ -0,0 +1,2 @@ +[{"accommodation_id": 2001}, + {"accommodation_id": 2004}] diff --git a/testScripts/data/product/media_collection.json b/testScripts/data/product/media_collection.json new file mode 100644 index 0000000..d558506 --- /dev/null +++ b/testScripts/data/product/media_collection.json @@ -0,0 +1,4 @@ +[{"id": 1001, "accommodation_collection_id": 2001}, + {"id": 1002, "accommodation_collection_id": 2002}, + {"id": 1003, "accommodation_collection_id": 2003}, + {"id": 1004, "accommodation_collection_id": 2004}] diff --git a/testScripts/data/product/more-files.json b/testScripts/data/product/more-files.json new file mode 100644 index 0000000..1952589 --- /dev/null +++ b/testScripts/data/product/more-files.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002} + +] diff --git a/testScripts/data/product/more-media.json b/testScripts/data/product/more-media.json new file mode 100644 index 0000000..cf40df3 --- /dev/null +++ b/testScripts/data/product/more-media.json @@ -0,0 +1,3 @@ +[ + {"id":1, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/more_related_table.json b/testScripts/data/product/more_related_table.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/testScripts/data/product/more_related_table.json @@ -0,0 +1 @@ +[] diff --git a/testScripts/data/product/multiple_records.json b/testScripts/data/product/multiple_records.json new file mode 100644 index 0000000..46d03bc --- /dev/null +++ b/testScripts/data/product/multiple_records.json @@ -0,0 +1,5 @@ +[ + {"id":10007, "telno":12345678, "term":"Castle"}, + {"id":10007, "telno":90345678, "term":"Resort"}, + {"id":10003, "telno":12345678, "term":"Hotel"} + ] diff --git a/testScripts/data/product/new_media.json b/testScripts/data/product/new_media.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_2.json b/testScripts/data/product/new_media_2.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_2.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_3.json b/testScripts/data/product/new_media_3.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_3.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_4.json b/testScripts/data/product/new_media_4.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_4.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_5.json b/testScripts/data/product/new_media_5.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_5.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_6.json b/testScripts/data/product/new_media_6.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_6.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_7.json b/testScripts/data/product/new_media_7.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_7.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_8.json b/testScripts/data/product/new_media_8.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_8.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/new_media_9.json b/testScripts/data/product/new_media_9.json new file mode 100644 index 0000000..f7df602 --- /dev/null +++ b/testScripts/data/product/new_media_9.json @@ -0,0 +1,4 @@ +[ + {"id":1, "accommodation_id": 2002}, + {"id":2, "accommodation_id": 2002} +] diff --git a/testScripts/data/product/person.json b/testScripts/data/product/person.json new file mode 100644 index 0000000..13b617d --- /dev/null +++ b/testScripts/data/product/person.json @@ -0,0 +1,3 @@ +[{"id": 1, "first_name": "John", "last_name": "Doe", "index": 0}, + {"id": 2, "first_name": "Jane", "last_name": "Doe", "index": 0}, + {"id": 3, "first_name": "Harold", "last_name": "Jones", "index": 0}] diff --git a/testScripts/data/product/related_table.json b/testScripts/data/product/related_table.json new file mode 100644 index 0000000..dbb5508 --- /dev/null +++ b/testScripts/data/product/related_table.json @@ -0,0 +1,5 @@ +[{"id": 1, "facility": "Television"}, + {"id": 2, "facility": "Air Conditioning"}, + {"id": 3, "facility": "Coffee Maker"}, + {"id": 4, "facility": "UHD TV"}, + {"id": 5, "facility": "Space Heater"}] diff --git a/testScripts/data/product/related_table_2.json b/testScripts/data/product/related_table_2.json new file mode 100644 index 0000000..59ba138 --- /dev/null +++ b/testScripts/data/product/related_table_2.json @@ -0,0 +1,4 @@ +[{"id": 1, "col": "one", "fk_to_rel": 1}, + {"id": 2, "col": "two", "fk_to_rel": 2}, + {"id": 3, "col": "three", "fk_to_rel": 3}, + {"id": 4, "col": "four", "fk_to_rel": 4}] diff --git a/testScripts/data/product/related_table_markdown.json b/testScripts/data/product/related_table_markdown.json new file mode 100644 index 0000000..d6c9ebc --- /dev/null +++ b/testScripts/data/product/related_table_markdown.json @@ -0,0 +1,4 @@ +[{"id": 1, "facility": "Television"}, + {"id": 2, "facility": "Air Conditioning"}, + {"id": 3, "facility": "Coffee Maker"}, + {"id": 4, "facility": "UHD TV"}] diff --git a/testScripts/data/product/related_table_null_key.json b/testScripts/data/product/related_table_null_key.json new file mode 100644 index 0000000..b9ac1fb --- /dev/null +++ b/testScripts/data/product/related_table_null_key.json @@ -0,0 +1,5 @@ +[{"term": "one"}, + {"term": "two"}, + {"id": "3", "term": "three"}, + {"id": "4", "term": "four"}, + {"term": "five"}] diff --git a/testScripts/data/product/schedule.json b/testScripts/data/product/schedule.json new file mode 100644 index 0000000..ab21480 --- /dev/null +++ b/testScripts/data/product/schedule.json @@ -0,0 +1,6 @@ +[ + {"id":1, "accn_id": 2002, "summary":"test is gyi tyaqwq dvqwymkfgok dergji"}, + {"id":2, "accn_id": 2002, "summary":"ert yutst is gyi tyaqwq dsyuu gfd"}, + {"id":3, "accn_id": 2004, "summary":"hjkio test is gyi tyaqwq dsyuu gfd"}, + {"id":4, "accn_id": 2004, "summary":"koip rtyi gyi tyaqwq dsyuu gfd"} +] diff --git a/testScripts/data/product/table_w_aggregates.json b/testScripts/data/product/table_w_aggregates.json new file mode 100644 index 0000000..73a08e5 --- /dev/null +++ b/testScripts/data/product/table_w_aggregates.json @@ -0,0 +1,5 @@ +[ + {"id": "1", "fk_to_accommodation": "2004", "value": "100"}, + {"id": "2", "fk_to_accommodation": "2004", "value": "101"}, + {"id": "3", "fk_to_accommodation": "2002", "value": "102"} +] diff --git a/testScripts/data/product/table_w_invalid_row_markdown_pattern.json b/testScripts/data/product/table_w_invalid_row_markdown_pattern.json new file mode 100644 index 0000000..e300675 --- /dev/null +++ b/testScripts/data/product/table_w_invalid_row_markdown_pattern.json @@ -0,0 +1,4 @@ +[ + {"id": "2002", "value": "two"}, + {"id": "2004", "value": "four"} +] diff --git a/testScripts/data/product/table_w_rowname.json b/testScripts/data/product/table_w_rowname.json new file mode 100644 index 0000000..ec07175 --- /dev/null +++ b/testScripts/data/product/table_w_rowname.json @@ -0,0 +1,7 @@ +[ + {"id": 1, "name": "one"}, + {"id": 2, "name": "two"}, + {"id": 3, "name": "three"}, + {"id": 4, "name": "four"}, + {"id": 5, "name": "five"} +] diff --git a/testScripts/schema/edit_w_association.json b/testScripts/schema/edit_w_association.json index 541fefb..f3e67d3 100644 --- a/testScripts/schema/edit_w_association.json +++ b/testScripts/schema/edit_w_association.json @@ -35,7 +35,28 @@ "annotations": { "tag:isrd.isi.edu,2016:visible-columns": { "detailed": [ - "id", "col_for_association", "RID" + "id", + "col_for_association", + "RID" + ], + "entry": [ + "id", "col_for_association", + [ + "edit_w_association", + "keyword_main_fkey" + ] + ] + }, + "tag:isrd.isi.edu,2016:visible-foreign-keys": { + "detailed": [ + [ + "edit_w_association", + "main_fkey" + ], + [ + "edit_w_association", + "keyword_main_fkey" + ] ] } } @@ -162,6 +183,95 @@ } } }, + "main_keyword": { + "kind": "table", + "schema_name": "edit_w_association", + "table_name": "main_keyword", + "column_definitions": [ + { + "name": "id", + "nullok": false, + "type": { + "typename": "serial4" + } + }, + { + "name": "fk_to_keyword", + "nullok": false, + "type": { + "typename": "text" + } + }, + { + "name": "fk_to_main", + "nullok": false, + "type": { + "typename": "text" + } + } + ], + "keys": [ + { + "unique_columns": [ + "id" + ] + }, + { + "unique_columns": [ + "fk_to_main", + "fk_to_keyword" + ] + } + ], + "foreign_keys": [ + { + "RID": "14-381J", + "foreign_key_columns": [ + { + "schema_name": "edit_w_association", + "table_name": "main_keyword", + "column_name": "fk_to_keyword" + } + ], + "referenced_columns": [ + { + "schema_name": "edit_w_association", + "table_name": "keyword", + "column_name": "id" + } + ], + "names": [ + [ + "edit_w_association", + "keyword_keyword_fkey" + ] + ] + }, + { + "foreign_key_columns": [ + { + "schema_name": "edit_w_association", + "table_name": "main_keyword", + "column_name": "fk_to_main" + } + ], + "referenced_columns": [ + { + "schema_name": "edit_w_association", + "table_name": "main", + "column_name": "id" + } + ], + "names": [ + [ + "edit_w_association", + "keyword_main_fkey" + ] + ] + } + ], + "annotations": {} + }, "leaf": { "kind": "table", "schema_name": "edit_w_association", @@ -204,7 +314,43 @@ }, "tag:isrd.isi.edu,2016:visible-columns": { "compact": [ - "id", "col_for_association" + "id", + "col_for_association" + ] + } + } + }, + "keyword": { + "kind": "table", + "schema_name": "edit_w_association", + "table_name": "keyword", + "keys": [ + { + "unique_columns": [ + "id" + ] + } + ], + "column_definitions": [ + { + "name": "id", + "nullok": false, + "type": { + "typename": "text" + } + }, + { + "name": "name", + "type": { + "typename": "text" + } + } + ], + "annotations": { + "tag:isrd.isi.edu,2016:visible-columns": { + "compact": [ + "id", + "name" ] } } diff --git a/testScripts/schema/product_add.json b/testScripts/schema/product_add.json new file mode 100644 index 0000000..688faa9 --- /dev/null +++ b/testScripts/schema/product_add.json @@ -0,0 +1,805 @@ +{ + "tables": { + "accommodation": { + "comment": "List of different types of accommodations", + "kind": "table", + "entityCount": 0, + "keys": [ + { + "comment": null, + "annotations": {}, + "unique_columns": [ + "id" + ] + } + ], + "foreign_keys": [ + { + "comment": null, + "names": [["product-add", "fk_category"]], + "foreign_key_columns": [ + { + "table_name": "accommodation", + "schema_name": "product-add", + "column_name": "category" + } + ], + "annotations": {}, + "referenced_columns": [ + { + "table_name": "category", + "schema_name": "product-add", + "column_name": "term" + } + ] + }, + { + "comment": null, + "names": [["product-add", "fk_thumbnail"]], + "foreign_key_columns": [ + { + "table_name": "accommodation", + "schema_name": "product-add", + "column_name": "thumbnail" + } + ], + "annotations": { + "comment": ["thumbnail"] + }, + "referenced_columns": [ + { + "table_name": "file", + "schema_name": "product-add", + "column_name": "id" + } + ] + }, + { + "comment": null, + "names": [["product-add", "fk_cover"]], + "foreign_key_columns": [ + { + "table_name": "accommodation", + "schema_name": "product-add", + "column_name": "cover" + } + ], + "annotations": { + "comment": ["thumbnail"] + }, + "referenced_columns": [ + { + "table_name": "file", + "schema_name": "product-add", + "column_name": "id" + } + ] + } + ], + "table_name": "accommodation", + "schema_name": "product-add", + "column_definitions": [ + { + "comment": null, + "name": "id", + "default": null, + "nullok": false, + "type": { + "typename": "serial4" + }, + "annotations": { + "comment": [ + "hidden" + ], + "tag:misd.isi.edu,2015:display": { + "name" : "Id" + }, + "tag:isrd.isi.edu,2016:generated": null, + "tag:isrd.isi.edu,2016:immutable": null + } + }, + { + "comment": null, + "name": "title", + "default": null, + "nullok": false, + "type": { + "typename": "text" + }, + "annotations": { + "comment": [ + "title", + "top", + "orderby" + ], + "description": { + "display": "Name of Accommodation" + }, + "tag:misd.isi.edu,2015:display" : { + "name" : "Name of Accommodation" + }, + "facetOrder": [ + "1" + ] + } + }, + { + "comment": "A valid url of the accommodation", + "name": "website", + "default": null, + "nullok": true, + "type": { + "typename": "text" + }, + "annotations": { + "tag:misd.isi.edu,2015:url" : { + "url" : "{cname}" + }, + "tag:isrd.isi.edu,2016:column-display" : { + "*": { + "markdown_pattern" : "[Link to Website]({{website}})" + } + }, + "tag:misd.isi.edu,2015:display": { + "name": "Website" + } + } + }, + { + "comment": "Type of accommodation (Resort, Hotel, or Motel)", + "name": "category", + "default": null, + "nullok": false, + "type": { + "typename": "text" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Category" + } + } + }, + { + "comment": null, + "name": "rating", + "default": null, + "nullok": false, + "type": { + "typename": "float4" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "User Rating" + } + } + }, + { + "comment": null, + "name": "summary", + "default": null, + "nullok": false, + "type": { + "typename": "longtext" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Summary" + } + } + }, + { + "comment": null, + "name": "description", + "default": null, + "nullok": true, + "type": { + "typename": "markdown" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Description" + } + } + }, + { + "name": "json_col", + "default": null, + "nullok": true, + "type": { + "typename": "json" + }, + "annotations": {} + }, + { + "comment": "This shows the number of rooms!", + "name": "no_of_rooms", + "default": null, + "nullok": true, + "type": { + "typename": "int4" + }, + "annotations": { + "comment" : ["top"], + "tag:misd.isi.edu,2015:display": { + "name": "Number of Rooms", + "comment_display": { + "entry": { + "column_comment_display": "inline" + } + } + } + } + }, + { + "comment": null, + "name": "thumbnail", + "default": null, + "nullok": true, + "type": { + "typename": "int4" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Thumbnail" + } + } + }, + { + "comment": null, + "name": "cover", + "default": null, + "nullok": true, + "type": { + "typename": "int4" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Cover Image" + } + } + }, + { + "comment": null, + "name": "opened_on", + "default": null, + "nullok": false, + "type": { + "typename": "timestamptz" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Operational Since" + } + } + }, + { + "comment": null, + "name": "luxurious", + "nullok": false, + "type": { + "typename": "boolean" + }, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Is Luxurious" + }, + "tag:isrd.isi.edu,2016:ignore" : ["record"] + } + }, + { + "name": "date_col", + "type": { + "typename": "date" + } + }, + { + "name": "text_array", + "type": { + "is_array": true, + "typename": "text[]", + "base_type": { + "typename": "text" + } + } + }, + { + "name": "boolean_array", + "type": { + "is_array": true, + "typename": "boolean[]", + "base_type": { + "typename": "boolean" + } + } + }, + { + "name": "date_array", + "type": { + "is_array": true, + "typename": "date[]", + "base_type": { + "typename": "date" + } + } + }, + { + "name": "timestamp_array", + "type": { + "is_array": true, + "typename": "timestamp[]", + "base_type": { + "typename": "timestamp" + } + } + }, + { + "name": "timestamptz_array", + "type": { + "is_array": true, + "typename": "timestamptz[]", + "base_type": { + "typename": "timestamptz" + } + } + }, + { + "name": "float4_array", + "type": { + "is_array": true, + "typename": "float4[]", + "base_type": { + "typename": "float4" + } + } + }, + { + "name": "int4_array", + "type": { + "is_array": true, + "typename": "int4[]", + "base_type": { + "typename": "int4" + } + } + }, + { + "name": "color_rgb_hex_column", + "nullok": false, + "type": { + "typename": "color_rgb_hex" + } + } + ], + "annotations": { + "comment": [ + "default" + ], + "tag:misd.isi.edu,2015:display": { + "name": "Accommodations" + }, + "tag:isrd.isi.edu,2016:visible-columns" : { + "detailed" : ["id", "title", "website", ["product-add", "fk_category"], "rating", "summary", "description", "json_col","no_of_rooms", "opened_on", "date_col", "luxurious"], + "entry/create": [ + "id", "title", "website", ["product-add", "fk_category"], "rating", + { "source": "summary", "comment": "A comment displayed for the _summary_ column", "comment_display": "inline"}, + "description","json_col", "no_of_rooms", "opened_on", "date_col","luxurious", + "text_array", "boolean_array", "int4_array", "float4_array", "date_array", "timestamp_array", "timestamptz_array", + "color_rgb_hex_column" + ], + "entry/edit": [ + "id", "title", "website", ["product-add", "fk_category"], "rating", "summary", "description","json_col", "no_of_rooms", "opened_on", "date_col","luxurious" + ], + "compact" : [ + "title", "website", ["product-add", "fk_category"], "rating", + "summary", "description","json_col", "no_of_rooms", "opened_on", "date_col", "luxurious", + "text_array", "boolean_array", "int4_array", "float4_array", "date_array", "timestamp_array", "timestamptz_array", + "color_rgb_hex_column" + ] + }, + "tag:isrd.isi.edu,2016:visible-foreign-keys" : { + "*" : [ + ["product-add", "fk_booking_accommodation"], + ["product-add", "fk_accommodation_image"] + ] + }, + "tag:isrd.isi.edu,2016:table-display": { + "compact": { + "page_size": 15 + } + } + } + }, + "booking": { + "comment": null, + "kind": "table", + "entityCount": 0, + "keys": [ + { + "comment": null, + "annotations": {}, + "unique_columns": [ + "id", + "accommodation_id" + ] + } + ], + "foreign_keys": [ + { + "names" : [["product-add", "fk_booking_accommodation"]], + "comment": null, + "foreign_key_columns": [ + { + "table_name": "booking", + "schema_name": "product-add", + "column_name": "accommodation_id" + } + ], + "annotations": {}, + "referenced_columns": [ + { + "table_name": "accommodation", + "schema_name": "product-add", + "column_name": "id" + } + ] + } + ], + "table_name": "booking", + "schema_name": "product-add", + "column_definitions": [ + { + "comment": null, + "name": "id", + "default": null, + "nullok": false, + "type": { + "typename": "serial4" + }, + "annotations": { + "comment": ["hidden"], + "tag:isrd.isi.edu,2016:generated": null, + "tag:isrd.isi.edu,2016:immutable": null + } + }, + { + "comment": null, + "name": "accommodation_id", + "default": null, + "nullok": false, + "type": { + "typename": "int4" + }, + "annotations": { + "comment": ["hidden"] + } + }, + { + "comment": null, + "name": "price", + "default": null, + "nullok": false, + "type": { + "typename": "float4" + }, + "annotations": { + "description": { + "display": "Price" + }, + "facetOrder": ["4"] + } + }, + { + "comment": null, + "name": "booking_date", + "default": null, + "nullok": true, + "type": { + "typename": "timestamptz" + }, + "annotations": { + "description": { + "display": "Date of Booking" + }, + "facetOrder": ["5"] + } + } + ], + "annotations": { + "tag:isrd.isi.edu,2016:visible-columns": { + "*": ["id", ["product-add", "fk_booking_accommodation"], "price", "booking_date"] + } + } + }, + "file": { + "comment": "asset/object", + "kind": "table", + "keys": [ + { + "comment": null, + "annotations": {}, + "unique_columns": [ + "id" + ] + } + ], + "entityCount": 0, + "foreign_keys": [], + "table_name": "file", + "schema_name": "product-add", + "column_definitions": [ + { + "comment": null, + "name": "id", + "default": null, + "nullok": false, + "type": { + "typename": "serial4" + }, + "annotations": { + "tag:isrd.isi.edu,2016:generated": null + } + }, + { + "comment": null, + "name": "fileid", + "default": null, + "nullok": true, + "type": { + "typename": "int4" + } + }, + { + "comment": "asset/reference", + "name": "uri", + "default": null, + "nullok": true, + "type": { + "typename": "text" + }, + "annotations": { + "tag:isrd.isi.edu,2017:asset": { + "url_pattern":"/hatrac/js/chaise/{{{_timestamp_txt}}}/{{{_fileid}}}/{{{_uri.filename_ext}}}/{{{_uri.md5_hex}}}", + "filename_column" : "filename", + "byte_count_column": "bytes", + "md5": "md5", + "filename_ext_filter": [".txt", ".png"] + } + } + }, + { + "comment": null, + "name": "filename", + "default": null, + "nullok": true, + "type": { + "typename": "text" + } + }, + { + "comment": null, + "name": "bytes", + "default": null, + "nullok": true, + "type": { + "typename": "int8" + } + }, + { + "comment": null, + "name": "md5", + "default": null, + "nullok": true, + "type": { + "typename": "text" + } + }, + { + "comment": null, + "name": "timestamp_txt", + "type": { + "typename": "text" + } + } + ], + "annotations": { + "tag:isrd.isi.edu,2016:table-display": { + "compact": { + "page_size": 5 + } + }, + "tag:isrd.isi.edu,2016:visible-columns": { + "*": ["fileid", "uri", "filename", "bytes"], + "entry": ["fileid", "uri", "timestamp_txt"] + } + } + }, + "accommodation_image": { + "comment": "this contains asset/thumbnails", + "kind": "table", + "keys": [ + { + "comment": "vocabulary", + "annotations": {}, + "unique_columns": [ + "image_id", + "accommodation_id" + ] + } + ], + "entityCount": 0, + "foreign_keys": [ + { + "names" : [["product-add", "fk_accommodation_image"]], + "comment": null, + "foreign_key_columns": [ + { + "table_name": "accommodation_image", + "schema_name": "product-add", + "column_name": "accommodation_id" + } + ], + "annotations": {}, + "referenced_columns": [ + { + "table_name": "accommodation", + "schema_name": "product-add", + "column_name": "id" + } + ] + }, + { + "comment": null, + "names" : [["product-add-record", "fk_accommodation_image_2"]], + "foreign_key_columns": [ + { + "table_name": "accommodation_image", + "schema_name": "product-add", + "column_name": "image_id" + } + ], + "annotations": {}, + "referenced_columns": [ + { + "table_name": "file", + "schema_name": "product-add", + "column_name": "id" + } + ] + } + ], + "table_name": "accommodation_image", + "schema_name": "product-add", + "column_definitions": [ + { + "comment": null, + "name": "accommodation_id", + "default": null, + "nullok": false, + "type": { + "typename": "int4" + }, + "annotations": { + "comment": [ + "dataset" + ] + } + }, + { + "comment": "this is an asset/thumbnail", + "name": "image_id", + "default": null, + "nullok": false, + "type": { + "typename": "int4" + }, + "annotations": { + "comment": [ + "image" + ], + "description": { + "display": "Image" + } + } + } + ], + "annotations": { + "comment": [ + "image" + ], + "description": { + "display": "Accommodation Images" + }, + "tag:isrd.isi.edu,2016:visible-columns": { + "*": [["product-add", "fk_accommodation_image"], ["product-add", "fk_accommodation_image_2"]] + } + } + }, + "category": { + "comment": "domain", + "kind": "table", + "keys": [ + { + "comment": "vocabulary", + "annotations": {}, + "unique_columns": [ + "id" + ] + }, + { + "comment": "vocabulary", + "annotations": {}, + "unique_columns": [ + "term" + ] + } + ], + "entityCount": 0, + "foreign_keys": [], + "table_name": "category", + "schema_name": "product-add", + "column_definitions": [ + { + "comment": null, + "name": "id", + "default": null, + "nullok": false, + "type": { + "typename": "int4" + }, + "annotations": { + "comment": [ + "hidden" + ] + } + }, + { + "comment": null, + "name": "term", + "default": null, + "nullok": false, + "type": { + "typename": "text" + }, + "annotations": { + "comment": ["top"] + } + } + ], + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "Categories" + }, + "description": { + "display": "Categories" + }, + "tag:isrd.isi.edu,2016:visible-columns": { + "*": ["id", "term"] + }, + "tag:isrd.isi.edu,2016:table-display": { + "compact": { + "row_order": [{"column": "id"}] + } + } + } + } + }, + "table_names": [ + "category", + "file", + "accommodation", + "accommodation_image", + "booking" + ], + "comment": null, + "annotations": { + "tag:misd.isi.edu,2015:display": { + "name": "accommodation" + }, + "tag:isrd.isi.edu,2016:app-links": { + "detailed": "tag:isrd.isi.edu,2016:chaise:record", + "compact": "tag:isrd.isi.edu,2016:chaise:recordset", + "entry": "tag:isrd.isi.edu,2016:chaise:recordedit" + } + }, + "schema_name": "product-add" +}