| { |
| "name": "customer_search_0", |
| "description": "Tracks customer search behavior and technology use", |
| "primary_key_column": [ |
| "customer_id", |
| "search_id" |
| ], |
| "clustering_column": [ |
| "search_date", |
| "search_time" |
| ], |
| "partitioning_column": [ |
| "search_date" |
| ], |
| "type": "Type 1 Fact Table", |
| "columns": [ |
| { |
| "name": "customer_id", |
| "description": "Unique identifier for a customer", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "Y", |
| "enum": [], |
| "dimension_group": "customer_dimension_group" |
| }, |
| { |
| "name": "search_id", |
| "description": "Unique identifier for a search event", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "" |
| }, |
| { |
| "name": "search_date", |
| "description": "Date when the search was made", |
| "data_type": "DATE", |
| "format": "YYYY-MM-DD", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "time_dimension_group" |
| }, |
| { |
| "name": "search_time", |
| "description": "Time when the search was made", |
| "data_type": "TIME", |
| "format": "HH:MM:SS", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "time_dimension_group" |
| }, |
| { |
| "name": "search_term", |
| "description": "Keywords used in the search", |
| "data_type": "STRING", |
| "format": "LowerCase", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "device_type", |
| "description": "Type of device used for searching", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "desktop", |
| "mobile", |
| "tablet" |
| ], |
| "dimension_group": "device_dimension_group" |
| }, |
| { |
| "name": "browser_type", |
| "description": "Type of browser used for searching", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "chrome", |
| "firefox", |
| "safari", |
| "edge", |
| "other" |
| ], |
| "dimension_group": "device_dimension_group" |
| }, |
| { |
| "name": "os_type", |
| "description": "Operating system of the device", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "windows", |
| "macos", |
| "linux", |
| "android", |
| "ios", |
| "other" |
| ], |
| "dimension_group": "device_dimension_group" |
| }, |
| { |
| "name": "search_result_count", |
| "description": "Number of results returned", |
| "data_type": "INTEGER", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "click_through_rate", |
| "description": "Rate of clicks per search shown", |
| "data_type": "FLOAT", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "session_id", |
| "description": "Session identifier for the search", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "session_interaction_dimension_group" |
| }, |
| { |
| "name": "ip_address", |
| "description": "IP address of the searching device", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "Y", |
| "enum": [], |
| "dimension_group": "geographic_dimension_group" |
| }, |
| { |
| "name": "country", |
| "description": "Country from where the search was made", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "geographic_dimension_group" |
| }, |
| { |
| "name": "city", |
| "description": "City from where the search was made", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "geographic_dimension_group" |
| }, |
| { |
| "name": "zip_code", |
| "description": "ZIP code of the search location", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "geographic_dimension_group" |
| }, |
| { |
| "name": "time_spent_on_page", |
| "description": "Time spent on the search results page", |
| "data_type": "FLOAT", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "pages_visited", |
| "description": "Number of pages visited during the session", |
| "data_type": "INTEGER", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "ads_clicked", |
| "description": "Number of ads clicked during the session", |
| "data_type": "INTEGER", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "returning_visitor", |
| "description": "Whether the visitor is returning", |
| "data_type": "BOOLEAN", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "true", |
| "false" |
| ], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "purchase_made", |
| "description": "Whether a purchase was made post-search", |
| "data_type": "BOOLEAN", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "true", |
| "false" |
| ], |
| "dimension_group": "behavior_dimension_group" |
| }, |
| { |
| "name": "product_category_searched", |
| "description": "Product category that was searched", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "category_dimension_group" |
| }, |
| { |
| "name": "search_origin", |
| "description": "Origin of search, e.g., internal, external", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [ |
| "internal", |
| "external" |
| ], |
| "dimension_group": "referral_dimension_group" |
| }, |
| { |
| "name": "referral_source", |
| "description": "Referral source if any", |
| "data_type": "STRING", |
| "format": "", |
| "is_pii_column": "N", |
| "enum": [], |
| "dimension_group": "referral_dimension_group" |
| } |
| ] |
| } |