landable 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +15 -0
- data/MIT-LICENSE +20 -0
- data/README.md +56 -0
- data/Rakefile +22 -0
- data/app/controllers/concerns/landable/variables_concern.rb +38 -0
- data/app/controllers/landable/api/access_tokens_controller.rb +48 -0
- data/app/controllers/landable/api/assets_controller.rb +55 -0
- data/app/controllers/landable/api/categories_controller.rb +13 -0
- data/app/controllers/landable/api/directories_controller.rb +19 -0
- data/app/controllers/landable/api/page_revisions_controller.rb +38 -0
- data/app/controllers/landable/api/pages_controller.rb +96 -0
- data/app/controllers/landable/api/templates_controller.rb +33 -0
- data/app/controllers/landable/api/themes_controller.rb +57 -0
- data/app/controllers/landable/api_controller.rb +75 -0
- data/app/controllers/landable/application_controller.rb +4 -0
- data/app/controllers/landable/public/pages_controller.rb +25 -0
- data/app/controllers/landable/public/preview/page_revisions_controller.rb +16 -0
- data/app/controllers/landable/public/preview/pages_controller.rb +16 -0
- data/app/controllers/landable/public/sitemap_controller.rb +18 -0
- data/app/decorators/landable/null_page_decorator.rb +26 -0
- data/app/decorators/landable/page_decorator.rb +40 -0
- data/app/helpers/landable/application_helper.rb +13 -0
- data/app/helpers/landable/pages_helper.rb +20 -0
- data/app/models/concerns/landable/has_assets.rb +74 -0
- data/app/models/concerns/landable/table_name.rb +12 -0
- data/app/models/concerns/landable/traffic/table_name.rb +14 -0
- data/app/models/landable/access_token.rb +20 -0
- data/app/models/landable/asset.rb +63 -0
- data/app/models/landable/asset_search_engine.rb +20 -0
- data/app/models/landable/author.rb +12 -0
- data/app/models/landable/category.rb +27 -0
- data/app/models/landable/directory.rb +23 -0
- data/app/models/landable/page.rb +259 -0
- data/app/models/landable/page_revision.rb +74 -0
- data/app/models/landable/page_search_engine.rb +20 -0
- data/app/models/landable/search_engine.rb +39 -0
- data/app/models/landable/template.rb +24 -0
- data/app/models/landable/theme.rb +20 -0
- data/app/models/landable/traffic/access.rb +11 -0
- data/app/models/landable/traffic/ad_group.rb +11 -0
- data/app/models/landable/traffic/ad_type.rb +11 -0
- data/app/models/landable/traffic/attribution.rb +38 -0
- data/app/models/landable/traffic/bid_match_type.rb +11 -0
- data/app/models/landable/traffic/browser.rb +11 -0
- data/app/models/landable/traffic/campaign.rb +11 -0
- data/app/models/landable/traffic/city.rb +11 -0
- data/app/models/landable/traffic/content.rb +11 -0
- data/app/models/landable/traffic/cookie.rb +16 -0
- data/app/models/landable/traffic/country.rb +11 -0
- data/app/models/landable/traffic/creative.rb +11 -0
- data/app/models/landable/traffic/device.rb +11 -0
- data/app/models/landable/traffic/device_type.rb +11 -0
- data/app/models/landable/traffic/domain.rb +12 -0
- data/app/models/landable/traffic/event.rb +12 -0
- data/app/models/landable/traffic/event_type.rb +11 -0
- data/app/models/landable/traffic/experiment.rb +11 -0
- data/app/models/landable/traffic/http_method.rb +11 -0
- data/app/models/landable/traffic/ip_address.rb +11 -0
- data/app/models/landable/traffic/ip_lookup.rb +12 -0
- data/app/models/landable/traffic/keyword.rb +11 -0
- data/app/models/landable/traffic/location.rb +11 -0
- data/app/models/landable/traffic/match_type.rb +11 -0
- data/app/models/landable/traffic/medium.rb +11 -0
- data/app/models/landable/traffic/mime_type.rb +11 -0
- data/app/models/landable/traffic/network.rb +11 -0
- data/app/models/landable/traffic/owner.rb +10 -0
- data/app/models/landable/traffic/ownership.rb +10 -0
- data/app/models/landable/traffic/page_view.rb +24 -0
- data/app/models/landable/traffic/path.rb +13 -0
- data/app/models/landable/traffic/placement.rb +11 -0
- data/app/models/landable/traffic/platform.rb +11 -0
- data/app/models/landable/traffic/position.rb +11 -0
- data/app/models/landable/traffic/query_string.rb +12 -0
- data/app/models/landable/traffic/referer.rb +11 -0
- data/app/models/landable/traffic/region.rb +11 -0
- data/app/models/landable/traffic/search_term.rb +11 -0
- data/app/models/landable/traffic/source.rb +11 -0
- data/app/models/landable/traffic/target.rb +11 -0
- data/app/models/landable/traffic/user_agent.rb +28 -0
- data/app/models/landable/traffic/user_agent_type.rb +11 -0
- data/app/models/landable/traffic/visit.rb +15 -0
- data/app/models/landable/traffic/visitor.rb +13 -0
- data/app/responders/landable/api_responder.rb +76 -0
- data/app/responders/landable/page_render_responder.rb +15 -0
- data/app/serializers/landable/access_token_serializer.rb +6 -0
- data/app/serializers/landable/asset_serializer.rb +14 -0
- data/app/serializers/landable/author_serializer.rb +5 -0
- data/app/serializers/landable/category_serializer.rb +5 -0
- data/app/serializers/landable/directory_serializer.rb +8 -0
- data/app/serializers/landable/page_revision_serializer.rb +15 -0
- data/app/serializers/landable/page_serializer.rb +31 -0
- data/app/serializers/landable/template_serializer.rb +5 -0
- data/app/serializers/landable/theme_serializer.rb +7 -0
- data/app/services/landable/authentication_service.rb +44 -0
- data/app/services/landable/registration_service.rb +13 -0
- data/app/services/landable/render_service.rb +86 -0
- data/app/services/landable/tidy_service.rb +155 -0
- data/app/uploaders/landable/asset_uploader.rb +9 -0
- data/app/validators/path_validator.rb +12 -0
- data/app/validators/url_validator.rb +13 -0
- data/app/views/templates/preview.liquid +122 -0
- data/bin/rails +8 -0
- data/bin/redb +7 -0
- data/config.ru +7 -0
- data/config/cucumber.yml +5 -0
- data/config/routes.rb +62 -0
- data/db/migrate/20130510221424_create_landable_schema.rb +338 -0
- data/db/migrate/20130909182713_landable_pages__add_updated_by.rb +11 -0
- data/db/migrate/20130909182715_landable_page_revisions__break_out_snapshot.rb +72 -0
- data/db/migrate/20130909191153_landable_pages__add_lock_version.rb +5 -0
- data/db/migrate/20131002220041_file_based_themes.rb +12 -0
- data/db/migrate/20131008164204_create_head_tag_on_page.rb +19 -0
- data/db/migrate/20131008193544_drop_status_codes_model.rb +44 -0
- data/db/migrate/20131028145652_add_traffic_schema.rb +276 -0
- data/db/migrate/20131101213623_add_dnt_column_to_visits.rb +7 -0
- data/db/migrate/20131104224120_add_meta_on_events.rb +7 -0
- data/db/migrate/20131106185946_add_index_on_page_revisions_path.rb +6 -0
- data/db/migrate/20131106193021_page_revisisons__path_status_code_index.rb +9 -0
- data/db/migrate/20131108212501_traffic_owner_ids_are_serials.rb +20 -0
- data/db/migrate/20131121150902_add_attribution_id_to_unique_index.rb +10 -0
- data/db/migrate/20131216214027_drop_browser_screenshot_tables.rb +6 -0
- data/db/migrate/20140128170659_file_backed_templates.rb +8 -0
- data/db/migrate/20140205193757_fix_status_codes.rb +24 -0
- data/db/migrate/20140206211322_add_response_time_to_traffic_page_views.rb +7 -0
- data/db/migrate/20140220170324_add_slug_to_categories.rb +14 -0
- data/db/migrate/20140220174630_add_abstract_and_hero_asset_to_pages_and_page_revisions.rb +8 -0
- data/db/migrate/20140224205516_rename_traffic_schema.rb +40 -0
- data/db/pgtap/pgtap.sql +9034 -0
- data/db/test/landable.access_tokens.sql +13 -0
- data/db/test/landable.assets.sql +16 -0
- data/db/test/landable.authors.sql +22 -0
- data/db/test/landable.categories.sql +9 -0
- data/db/test/landable.page_revisions.sql +41 -0
- data/db/test/landable.pages.sql +19 -0
- data/db/test/landable.templates.sql +15 -0
- data/db/test/landable.themes.sql +25 -0
- data/doc/schema/access_token.json +22 -0
- data/doc/schema/asset.json +65 -0
- data/doc/schema/author.json +30 -0
- data/doc/schema/directory.json +24 -0
- data/doc/schema/page.json +95 -0
- data/doc/schema/page_revision.json +70 -0
- data/doc/schema/theme.json +37 -0
- data/doc/schema/uuid.json +6 -0
- data/features/api/access_tokens.feature +84 -0
- data/features/api/assets.feature +46 -0
- data/features/api/cors.feature +25 -0
- data/features/api/pages.feature +42 -0
- data/features/api/preview.feature +16 -0
- data/features/api/templates.feature +33 -0
- data/features/api/themes.feature +33 -0
- data/features/liquid/body.feature +35 -0
- data/features/liquid/drops/categories.feature +54 -0
- data/features/liquid/tags.feature +168 -0
- data/features/public/content_types.feature +17 -0
- data/features/public/publishing.feature +45 -0
- data/features/public/status_codes.feature +25 -0
- data/features/public/views.feature +17 -0
- data/features/step_definitions/asset_steps.rb +60 -0
- data/features/step_definitions/core_api_steps.rb +139 -0
- data/features/step_definitions/debug_steps.rb +3 -0
- data/features/step_definitions/factory_steps.rb +124 -0
- data/features/step_definitions/html_steps.rb +9 -0
- data/features/step_definitions/liquid_steps.rb +79 -0
- data/features/step_definitions/revision_steps.rb +5 -0
- data/features/step_definitions/theme_steps.rb +43 -0
- data/features/support/env.rb +66 -0
- data/features/support/usefulness.rb +13 -0
- data/landable.gemspec +54 -0
- data/lib/generators/landable/collection/collection_generator.rb +0 -0
- data/lib/generators/landable/collection/templates/stylesheets/landable/%file_name%.less +0 -0
- data/lib/generators/landable/collection/templates/stylesheets/landable/%file_name%/mixins.less +0 -0
- data/lib/generators/landable/collection/templates/stylesheets/landable/%file_name%/variables.less +0 -0
- data/lib/generators/landable/component/component_generator.rb +0 -0
- data/lib/generators/landable/component/templates/javascripts/landable/%file_name%.less +0 -0
- data/lib/generators/landable/component/templates/stylesheets/landable/%file_name%.less +0 -0
- data/lib/generators/landable/install_generator.rb +19 -0
- data/lib/generators/landable/landable_generator.rb +22 -0
- data/lib/generators/templates/landable.rb +34 -0
- data/lib/landable.rb +30 -0
- data/lib/landable/configuration.rb +115 -0
- data/lib/landable/core_ext/ipaddr.rb +18 -0
- data/lib/landable/engine.rb +69 -0
- data/lib/landable/error.rb +16 -0
- data/lib/landable/inflections.rb +4 -0
- data/lib/landable/layout.rb +60 -0
- data/lib/landable/liquid.rb +27 -0
- data/lib/landable/liquid/asset_tags.rb +76 -0
- data/lib/landable/liquid/drops.rb +46 -0
- data/lib/landable/liquid/filters.rb +11 -0
- data/lib/landable/liquid/tags.rb +91 -0
- data/lib/landable/migration.rb +40 -0
- data/lib/landable/mime_types.rb +15 -0
- data/lib/landable/partial.rb +46 -0
- data/lib/landable/seeds.rb +36 -0
- data/lib/landable/traffic.rb +34 -0
- data/lib/landable/traffic/crawl_tracker.rb +9 -0
- data/lib/landable/traffic/noop_tracker.rb +8 -0
- data/lib/landable/traffic/ping_tracker.rb +9 -0
- data/lib/landable/traffic/scan_tracker.rb +9 -0
- data/lib/landable/traffic/scrape_tracker.rb +9 -0
- data/lib/landable/traffic/tracker.rb +283 -0
- data/lib/landable/traffic/user_tracker.rb +65 -0
- data/lib/landable/version.rb +10 -0
- data/lib/tasks/landable/cucumber.rake +67 -0
- data/lib/tasks/landable/data.rake +166 -0
- data/lib/tasks/landable/pgtap.rake +26 -0
- data/lib/tasks/landable/rdoc.rake +11 -0
- data/lib/tasks/landable/seed.rake +16 -0
- data/lib/tasks/landable/spec.rake +15 -0
- data/script/cucumber +10 -0
- data/spec/concerns/landable/has_assets_spec.rb +75 -0
- data/spec/concerns/landable/table_name_spec.rb +15 -0
- data/spec/concerns/landable/traffic/table_name_spec.rb +16 -0
- data/spec/controllers/concerns/landable/variables_concern_spec.rb +66 -0
- data/spec/controllers/landable/api/assets_controller_spec.rb +24 -0
- data/spec/controllers/landable/api/categories_controller_spec.rb +45 -0
- data/spec/controllers/landable/api/directories_controller_spec.rb +56 -0
- data/spec/controllers/landable/api/page_revisions_controller_spec.rb +29 -0
- data/spec/controllers/landable/api/pages_controller_spec.rb +271 -0
- data/spec/controllers/landable/api_controller_spec.rb +189 -0
- data/spec/controllers/public/preview/page_revisions_controller_spec.rb +41 -0
- data/spec/controllers/public/preview/pages_controller_spec.rb +36 -0
- data/spec/controllers/public/sitemap_controller_spec.rb +25 -0
- data/spec/decorators/page_decorator_spec.rb +90 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/foo.jpg +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +10 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/priority_controller.rb +7 -0
- data/spec/dummy/app/helpers/application_helper.rb +5 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/priority.html.erb +18 -0
- data/spec/dummy/app/views/partials/_foobazz.html +1 -0
- data/spec/dummy/app/views/priority/show.html.erb +11 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +21 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +60 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/landable.rb +22 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/structure.sql +3736 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/asset.rb +29 -0
- data/spec/factories/authors.rb +12 -0
- data/spec/factories/category.rb +6 -0
- data/spec/factories/page_revision.rb +6 -0
- data/spec/factories/pages.rb +33 -0
- data/spec/factories/template.rb +13 -0
- data/spec/factories/theme.rb +14 -0
- data/spec/fixtures/assets/cthulhu.jpg +0 -0
- data/spec/fixtures/assets/panda.png +0 -0
- data/spec/fixtures/assets/sloth.png +0 -0
- data/spec/fixtures/assets/small.pdf +0 -0
- data/spec/helpers/pages_helper_spec.rb +35 -0
- data/spec/lib/landable/configuration_spec.rb +20 -0
- data/spec/lib/landable/layout_spec.rb +25 -0
- data/spec/lib/landable/liquid_spec.rb +24 -0
- data/spec/lib/landable/migration_spec.rb +51 -0
- data/spec/lib/landable/partial_spec.rb +84 -0
- data/spec/lib/landable/tracking_spec.rb +62 -0
- data/spec/lib/landable/traffic_spec.rb +45 -0
- data/spec/models/landable/access_token_spec.rb +13 -0
- data/spec/models/landable/asset_spec.rb +48 -0
- data/spec/models/landable/directory_spec.rb +36 -0
- data/spec/models/landable/page/errors_spec.rb +30 -0
- data/spec/models/landable/page_revision_spec.rb +75 -0
- data/spec/models/landable/page_spec.rb +377 -0
- data/spec/models/landable/template_spec.rb +47 -0
- data/spec/models/landable/theme_spec.rb +8 -0
- data/spec/responders/page_render_responder_spec.rb +43 -0
- data/spec/routing/public_page_route_spec.rb +36 -0
- data/spec/services/landable/authentication_service_spec.rb +61 -0
- data/spec/services/landable/render_service_spec.rb +103 -0
- data/spec/services/landable/tidy_service_spec.rb +157 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/behaviors.rb +107 -0
- data/spec/support/carrier_wave.rb +17 -0
- data/spec/support/categories.yml +2 -0
- data/spec/support/helpers.rb +22 -0
- metadata +795 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
|
4
|
+
# is enabled by default.
|
|
5
|
+
|
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
|
13
|
+
# self.include_root_in_json = true
|
|
14
|
+
# end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
+
# than English, add the necessary files in this directory.
|
|
4
|
+
#
|
|
5
|
+
# To use the locales, use `I18n.t`:
|
|
6
|
+
#
|
|
7
|
+
# I18n.t 'hello'
|
|
8
|
+
#
|
|
9
|
+
# In views, this is aliased to just `t`:
|
|
10
|
+
#
|
|
11
|
+
# <%= t('hello') %>
|
|
12
|
+
#
|
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
|
14
|
+
#
|
|
15
|
+
# I18n.locale = :es
|
|
16
|
+
#
|
|
17
|
+
# This would use the information in config/locales/es.yml.
|
|
18
|
+
#
|
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
|
21
|
+
|
|
22
|
+
en:
|
|
23
|
+
hello: "Hello world"
|
|
@@ -0,0 +1,3736 @@
|
|
|
1
|
+
--
|
|
2
|
+
-- PostgreSQL database dump
|
|
3
|
+
--
|
|
4
|
+
|
|
5
|
+
SET statement_timeout = 0;
|
|
6
|
+
SET client_encoding = 'UTF8';
|
|
7
|
+
SET standard_conforming_strings = on;
|
|
8
|
+
SET check_function_bodies = false;
|
|
9
|
+
SET client_min_messages = warning;
|
|
10
|
+
|
|
11
|
+
--
|
|
12
|
+
-- Name: dummy_landable; Type: SCHEMA; Schema: -; Owner: -
|
|
13
|
+
--
|
|
14
|
+
|
|
15
|
+
CREATE SCHEMA dummy_landable;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
--
|
|
19
|
+
-- Name: dummy_landable_traffic; Type: SCHEMA; Schema: -; Owner: -
|
|
20
|
+
--
|
|
21
|
+
|
|
22
|
+
CREATE SCHEMA dummy_landable_traffic;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
--
|
|
26
|
+
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
27
|
+
--
|
|
28
|
+
|
|
29
|
+
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
--
|
|
33
|
+
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
34
|
+
--
|
|
35
|
+
|
|
36
|
+
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
--
|
|
40
|
+
-- Name: hstore; Type: EXTENSION; Schema: -; Owner: -
|
|
41
|
+
--
|
|
42
|
+
|
|
43
|
+
CREATE EXTENSION IF NOT EXISTS hstore WITH SCHEMA public;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
--
|
|
47
|
+
-- Name: EXTENSION hstore; Type: COMMENT; Schema: -; Owner: -
|
|
48
|
+
--
|
|
49
|
+
|
|
50
|
+
COMMENT ON EXTENSION hstore IS 'data type for storing sets of (key, value) pairs';
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
--
|
|
54
|
+
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
|
|
55
|
+
--
|
|
56
|
+
|
|
57
|
+
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
--
|
|
61
|
+
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -
|
|
62
|
+
--
|
|
63
|
+
|
|
64
|
+
COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
--
|
|
68
|
+
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
|
|
69
|
+
--
|
|
70
|
+
|
|
71
|
+
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
--
|
|
75
|
+
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -
|
|
76
|
+
--
|
|
77
|
+
|
|
78
|
+
COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)';
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
SET search_path = dummy_landable, pg_catalog;
|
|
82
|
+
|
|
83
|
+
--
|
|
84
|
+
-- Name: pages_revision_ordinal(); Type: FUNCTION; Schema: dummy_landable; Owner: -
|
|
85
|
+
--
|
|
86
|
+
|
|
87
|
+
CREATE FUNCTION pages_revision_ordinal() RETURNS trigger
|
|
88
|
+
LANGUAGE plpgsql
|
|
89
|
+
AS $_$
|
|
90
|
+
BEGIN
|
|
91
|
+
|
|
92
|
+
IF NEW.ordinal IS NOT NULL THEN
|
|
93
|
+
RAISE EXCEPTION $$Must not supply ordinal value manually.$$;
|
|
94
|
+
END IF;
|
|
95
|
+
|
|
96
|
+
NEW.ordinal = (SELECT COALESCE(MAX(ordinal)+1,1)
|
|
97
|
+
FROM dummy_landable.page_revisions
|
|
98
|
+
WHERE page_id = NEW.page_id);
|
|
99
|
+
|
|
100
|
+
RETURN NEW;
|
|
101
|
+
|
|
102
|
+
END
|
|
103
|
+
$_$;
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
--
|
|
107
|
+
-- Name: tg_disallow(); Type: FUNCTION; Schema: dummy_landable; Owner: -
|
|
108
|
+
--
|
|
109
|
+
|
|
110
|
+
CREATE FUNCTION tg_disallow() RETURNS trigger
|
|
111
|
+
LANGUAGE plpgsql
|
|
112
|
+
AS $_$
|
|
113
|
+
BEGIN
|
|
114
|
+
|
|
115
|
+
IF TG_LEVEL <> 'STATEMENT' THEN
|
|
116
|
+
RAISE EXCEPTION $$You should use a statement-level trigger (trigger %, table %)$$, TG_NAME, TG_RELID::regclass;
|
|
117
|
+
END IF;
|
|
118
|
+
|
|
119
|
+
RAISE EXCEPTION $$%s are not allowed on table %$$, TG_OP, TG_RELNAME;
|
|
120
|
+
|
|
121
|
+
RETURN NULL;
|
|
122
|
+
|
|
123
|
+
END
|
|
124
|
+
$_$;
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
SET default_tablespace = '';
|
|
128
|
+
|
|
129
|
+
SET default_with_oids = false;
|
|
130
|
+
|
|
131
|
+
--
|
|
132
|
+
-- Name: access_tokens; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
133
|
+
--
|
|
134
|
+
|
|
135
|
+
CREATE TABLE access_tokens (
|
|
136
|
+
access_token_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
137
|
+
author_id uuid NOT NULL,
|
|
138
|
+
expires_at timestamp without time zone NOT NULL,
|
|
139
|
+
created_at timestamp without time zone,
|
|
140
|
+
updated_at timestamp without time zone
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
--
|
|
145
|
+
-- Name: TABLE access_tokens; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
146
|
+
--
|
|
147
|
+
|
|
148
|
+
COMMENT ON TABLE access_tokens IS 'Access tokens provide authentication information for specific users.';
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
--
|
|
152
|
+
-- Name: assets; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
153
|
+
--
|
|
154
|
+
|
|
155
|
+
CREATE TABLE assets (
|
|
156
|
+
asset_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
157
|
+
author_id uuid NOT NULL,
|
|
158
|
+
name text NOT NULL,
|
|
159
|
+
description text,
|
|
160
|
+
data text NOT NULL,
|
|
161
|
+
md5sum text NOT NULL,
|
|
162
|
+
mime_type text NOT NULL,
|
|
163
|
+
file_size integer,
|
|
164
|
+
created_at timestamp without time zone,
|
|
165
|
+
updated_at timestamp without time zone
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
--
|
|
170
|
+
-- Name: TABLE assets; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
171
|
+
--
|
|
172
|
+
|
|
173
|
+
COMMENT ON TABLE assets IS 'List of all assets uploaded.
|
|
174
|
+
Examples of assets include images (jpg, png, gif) and documents (PDF).
|
|
175
|
+
data, md5sum, mime_type, file_size are populated via the rails gem CarrierWave when a record is created.';
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
--
|
|
179
|
+
-- Name: authors; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
180
|
+
--
|
|
181
|
+
|
|
182
|
+
CREATE TABLE authors (
|
|
183
|
+
author_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
184
|
+
email text NOT NULL,
|
|
185
|
+
username text NOT NULL,
|
|
186
|
+
first_name text NOT NULL,
|
|
187
|
+
last_name text NOT NULL,
|
|
188
|
+
created_at timestamp without time zone,
|
|
189
|
+
updated_at timestamp without time zone
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
--
|
|
194
|
+
-- Name: TABLE authors; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
195
|
+
--
|
|
196
|
+
|
|
197
|
+
COMMENT ON TABLE authors IS 'A list of authors that have accessed the website. Feeds foreign keys so we know which authors have published pages and updated assets.';
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
--
|
|
201
|
+
-- Name: categories; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
202
|
+
--
|
|
203
|
+
|
|
204
|
+
CREATE TABLE categories (
|
|
205
|
+
category_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
206
|
+
name text,
|
|
207
|
+
description text,
|
|
208
|
+
slug text NOT NULL
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
--
|
|
213
|
+
-- Name: TABLE categories; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
214
|
+
--
|
|
215
|
+
|
|
216
|
+
COMMENT ON TABLE categories IS 'Categories are used to sort pages.
|
|
217
|
+
Examples could include SEO, PPC.';
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
--
|
|
221
|
+
-- Name: page_assets; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
222
|
+
--
|
|
223
|
+
|
|
224
|
+
CREATE TABLE page_assets (
|
|
225
|
+
page_asset_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
226
|
+
page_id uuid NOT NULL,
|
|
227
|
+
asset_id uuid NOT NULL
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
--
|
|
232
|
+
-- Name: page_revision_assets; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
233
|
+
--
|
|
234
|
+
|
|
235
|
+
CREATE TABLE page_revision_assets (
|
|
236
|
+
page_revision_asset_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
237
|
+
page_revision_id uuid NOT NULL,
|
|
238
|
+
asset_id uuid NOT NULL
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
--
|
|
243
|
+
-- Name: page_revisions; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
244
|
+
--
|
|
245
|
+
|
|
246
|
+
CREATE TABLE page_revisions (
|
|
247
|
+
page_revision_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
248
|
+
ordinal integer,
|
|
249
|
+
notes text,
|
|
250
|
+
is_minor boolean DEFAULT false,
|
|
251
|
+
is_published boolean DEFAULT true,
|
|
252
|
+
page_id uuid NOT NULL,
|
|
253
|
+
author_id uuid NOT NULL,
|
|
254
|
+
created_at timestamp without time zone,
|
|
255
|
+
updated_at timestamp without time zone,
|
|
256
|
+
theme_id uuid,
|
|
257
|
+
category_id uuid,
|
|
258
|
+
redirect_url text,
|
|
259
|
+
body text,
|
|
260
|
+
title text,
|
|
261
|
+
path text,
|
|
262
|
+
meta_tags public.hstore,
|
|
263
|
+
head_content text,
|
|
264
|
+
status_code smallint,
|
|
265
|
+
abstract text,
|
|
266
|
+
hero_asset_id uuid
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
--
|
|
271
|
+
-- Name: TABLE page_revisions; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
272
|
+
--
|
|
273
|
+
|
|
274
|
+
COMMENT ON TABLE page_revisions IS 'Page revisions serve as a historical reference to pages as they were published.
|
|
275
|
+
The attributes of the page at the time of publishing are stored in snapshot_attributes, as essentially a text representation of a hash.
|
|
276
|
+
The current/active/live revision can be identified by referring to its corresponding PAGES record, OR by looking for the max(ordinal) for a given page_id.';
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
--
|
|
280
|
+
-- Name: pages; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
281
|
+
--
|
|
282
|
+
|
|
283
|
+
CREATE TABLE pages (
|
|
284
|
+
page_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
285
|
+
published_revision_id uuid,
|
|
286
|
+
is_publishable boolean DEFAULT true NOT NULL,
|
|
287
|
+
theme_id uuid,
|
|
288
|
+
category_id uuid,
|
|
289
|
+
path text NOT NULL,
|
|
290
|
+
title text,
|
|
291
|
+
body text,
|
|
292
|
+
redirect_url text,
|
|
293
|
+
meta_tags public.hstore,
|
|
294
|
+
imported_at timestamp without time zone,
|
|
295
|
+
created_at timestamp without time zone,
|
|
296
|
+
updated_at timestamp without time zone,
|
|
297
|
+
updated_by_author_id uuid,
|
|
298
|
+
lock_version integer DEFAULT 0 NOT NULL,
|
|
299
|
+
head_content text,
|
|
300
|
+
status_code smallint DEFAULT 200 NOT NULL,
|
|
301
|
+
abstract text,
|
|
302
|
+
hero_asset_id uuid,
|
|
303
|
+
CONSTRAINT only_valid_paths CHECK ((path ~ '^/[a-zA-Z0-9/_.~-]*$'::text))
|
|
304
|
+
);
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
--
|
|
308
|
+
-- Name: TABLE pages; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
309
|
+
--
|
|
310
|
+
|
|
311
|
+
COMMENT ON TABLE pages IS 'Pages serve as a draft, where you can make changes, preview and save those changes without having to update the live page on the website.
|
|
312
|
+
Pages also point to their published version, where applicable.';
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
--
|
|
316
|
+
-- Name: templates; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
317
|
+
--
|
|
318
|
+
|
|
319
|
+
CREATE TABLE templates (
|
|
320
|
+
template_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
321
|
+
name text NOT NULL,
|
|
322
|
+
slug text NOT NULL,
|
|
323
|
+
body text NOT NULL,
|
|
324
|
+
description text NOT NULL,
|
|
325
|
+
thumbnail_url text,
|
|
326
|
+
is_layout boolean DEFAULT false NOT NULL,
|
|
327
|
+
created_at timestamp without time zone,
|
|
328
|
+
updated_at timestamp without time zone,
|
|
329
|
+
file text,
|
|
330
|
+
editable boolean DEFAULT true
|
|
331
|
+
);
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
--
|
|
335
|
+
-- Name: TABLE templates; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
336
|
+
--
|
|
337
|
+
|
|
338
|
+
COMMENT ON TABLE templates IS 'Created templates to be consumed by pages.
|
|
339
|
+
A template can supply ''starter'' code for a page.
|
|
340
|
+
A template can also supply code to create elements on a page (sidebars, for example).';
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
--
|
|
344
|
+
-- Name: theme_assets; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
345
|
+
--
|
|
346
|
+
|
|
347
|
+
CREATE TABLE theme_assets (
|
|
348
|
+
theme_asset_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
349
|
+
theme_id uuid NOT NULL,
|
|
350
|
+
asset_id uuid NOT NULL
|
|
351
|
+
);
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
--
|
|
355
|
+
-- Name: themes; Type: TABLE; Schema: dummy_landable; Owner: -; Tablespace:
|
|
356
|
+
--
|
|
357
|
+
|
|
358
|
+
CREATE TABLE themes (
|
|
359
|
+
theme_id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
|
|
360
|
+
name text NOT NULL,
|
|
361
|
+
body text NOT NULL,
|
|
362
|
+
description text NOT NULL,
|
|
363
|
+
thumbnail_url text,
|
|
364
|
+
created_at timestamp without time zone,
|
|
365
|
+
updated_at timestamp without time zone,
|
|
366
|
+
file text,
|
|
367
|
+
extension text,
|
|
368
|
+
editable boolean DEFAULT true NOT NULL
|
|
369
|
+
);
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
--
|
|
373
|
+
-- Name: TABLE themes; Type: COMMENT; Schema: dummy_landable; Owner: -
|
|
374
|
+
--
|
|
375
|
+
|
|
376
|
+
COMMENT ON TABLE themes IS 'Created themes to be consumed by pages. Themes supply formatting (css) rules and can supply header/footer content as well.';
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
SET search_path = dummy_landable_traffic, pg_catalog;
|
|
380
|
+
|
|
381
|
+
--
|
|
382
|
+
-- Name: accesses; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
383
|
+
--
|
|
384
|
+
|
|
385
|
+
CREATE TABLE accesses (
|
|
386
|
+
access_id integer NOT NULL,
|
|
387
|
+
path_id integer NOT NULL,
|
|
388
|
+
visitor_id integer NOT NULL,
|
|
389
|
+
last_accessed_at timestamp with time zone DEFAULT now() NOT NULL
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
--
|
|
394
|
+
-- Name: accesses_access_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
395
|
+
--
|
|
396
|
+
|
|
397
|
+
CREATE SEQUENCE accesses_access_id_seq
|
|
398
|
+
START WITH 1
|
|
399
|
+
INCREMENT BY 1
|
|
400
|
+
NO MINVALUE
|
|
401
|
+
NO MAXVALUE
|
|
402
|
+
CACHE 1;
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
--
|
|
406
|
+
-- Name: accesses_access_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
407
|
+
--
|
|
408
|
+
|
|
409
|
+
ALTER SEQUENCE accesses_access_id_seq OWNED BY accesses.access_id;
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
--
|
|
413
|
+
-- Name: ad_groups; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
414
|
+
--
|
|
415
|
+
|
|
416
|
+
CREATE TABLE ad_groups (
|
|
417
|
+
ad_group_id integer NOT NULL,
|
|
418
|
+
ad_group text NOT NULL
|
|
419
|
+
);
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
--
|
|
423
|
+
-- Name: ad_groups_ad_group_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
424
|
+
--
|
|
425
|
+
|
|
426
|
+
CREATE SEQUENCE ad_groups_ad_group_id_seq
|
|
427
|
+
START WITH 1
|
|
428
|
+
INCREMENT BY 1
|
|
429
|
+
NO MINVALUE
|
|
430
|
+
NO MAXVALUE
|
|
431
|
+
CACHE 1;
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
--
|
|
435
|
+
-- Name: ad_groups_ad_group_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
436
|
+
--
|
|
437
|
+
|
|
438
|
+
ALTER SEQUENCE ad_groups_ad_group_id_seq OWNED BY ad_groups.ad_group_id;
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
--
|
|
442
|
+
-- Name: ad_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
443
|
+
--
|
|
444
|
+
|
|
445
|
+
CREATE TABLE ad_types (
|
|
446
|
+
ad_type_id smallint NOT NULL,
|
|
447
|
+
ad_type text NOT NULL
|
|
448
|
+
);
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
--
|
|
452
|
+
-- Name: ad_types_ad_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
453
|
+
--
|
|
454
|
+
|
|
455
|
+
CREATE SEQUENCE ad_types_ad_type_id_seq
|
|
456
|
+
START WITH 1
|
|
457
|
+
INCREMENT BY 1
|
|
458
|
+
NO MINVALUE
|
|
459
|
+
NO MAXVALUE
|
|
460
|
+
CACHE 1;
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
--
|
|
464
|
+
-- Name: ad_types_ad_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
465
|
+
--
|
|
466
|
+
|
|
467
|
+
ALTER SEQUENCE ad_types_ad_type_id_seq OWNED BY ad_types.ad_type_id;
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
--
|
|
471
|
+
-- Name: attributions; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
472
|
+
--
|
|
473
|
+
|
|
474
|
+
CREATE TABLE attributions (
|
|
475
|
+
attribution_id integer NOT NULL,
|
|
476
|
+
ad_type_id smallint,
|
|
477
|
+
ad_group_id integer,
|
|
478
|
+
bid_match_type_id smallint,
|
|
479
|
+
campaign_id integer,
|
|
480
|
+
content_id integer,
|
|
481
|
+
creative_id integer,
|
|
482
|
+
device_type_id smallint,
|
|
483
|
+
experiment_id integer,
|
|
484
|
+
keyword_id integer,
|
|
485
|
+
match_type_id smallint,
|
|
486
|
+
medium_id integer,
|
|
487
|
+
network_id integer,
|
|
488
|
+
placement_id integer,
|
|
489
|
+
position_id smallint,
|
|
490
|
+
search_term_id integer,
|
|
491
|
+
source_id integer,
|
|
492
|
+
target_id integer,
|
|
493
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL
|
|
494
|
+
);
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
--
|
|
498
|
+
-- Name: attributions_attribution_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
499
|
+
--
|
|
500
|
+
|
|
501
|
+
CREATE SEQUENCE attributions_attribution_id_seq
|
|
502
|
+
START WITH 1
|
|
503
|
+
INCREMENT BY 1
|
|
504
|
+
NO MINVALUE
|
|
505
|
+
NO MAXVALUE
|
|
506
|
+
CACHE 1;
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
--
|
|
510
|
+
-- Name: attributions_attribution_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
511
|
+
--
|
|
512
|
+
|
|
513
|
+
ALTER SEQUENCE attributions_attribution_id_seq OWNED BY attributions.attribution_id;
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
--
|
|
517
|
+
-- Name: bid_match_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
518
|
+
--
|
|
519
|
+
|
|
520
|
+
CREATE TABLE bid_match_types (
|
|
521
|
+
bid_match_type_id smallint NOT NULL,
|
|
522
|
+
bid_match_type text NOT NULL
|
|
523
|
+
);
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
--
|
|
527
|
+
-- Name: bid_match_types_bid_match_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
528
|
+
--
|
|
529
|
+
|
|
530
|
+
CREATE SEQUENCE bid_match_types_bid_match_type_id_seq
|
|
531
|
+
START WITH 1
|
|
532
|
+
INCREMENT BY 1
|
|
533
|
+
NO MINVALUE
|
|
534
|
+
NO MAXVALUE
|
|
535
|
+
CACHE 1;
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
--
|
|
539
|
+
-- Name: bid_match_types_bid_match_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
540
|
+
--
|
|
541
|
+
|
|
542
|
+
ALTER SEQUENCE bid_match_types_bid_match_type_id_seq OWNED BY bid_match_types.bid_match_type_id;
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
--
|
|
546
|
+
-- Name: browsers; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
547
|
+
--
|
|
548
|
+
|
|
549
|
+
CREATE TABLE browsers (
|
|
550
|
+
browser_id smallint NOT NULL,
|
|
551
|
+
browser text NOT NULL
|
|
552
|
+
);
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
--
|
|
556
|
+
-- Name: browsers_browser_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
557
|
+
--
|
|
558
|
+
|
|
559
|
+
CREATE SEQUENCE browsers_browser_id_seq
|
|
560
|
+
START WITH 1
|
|
561
|
+
INCREMENT BY 1
|
|
562
|
+
NO MINVALUE
|
|
563
|
+
NO MAXVALUE
|
|
564
|
+
CACHE 1;
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
--
|
|
568
|
+
-- Name: browsers_browser_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
569
|
+
--
|
|
570
|
+
|
|
571
|
+
ALTER SEQUENCE browsers_browser_id_seq OWNED BY browsers.browser_id;
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
--
|
|
575
|
+
-- Name: campaigns; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
576
|
+
--
|
|
577
|
+
|
|
578
|
+
CREATE TABLE campaigns (
|
|
579
|
+
campaign_id integer NOT NULL,
|
|
580
|
+
campaign text NOT NULL
|
|
581
|
+
);
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
--
|
|
585
|
+
-- Name: campaigns_campaign_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
586
|
+
--
|
|
587
|
+
|
|
588
|
+
CREATE SEQUENCE campaigns_campaign_id_seq
|
|
589
|
+
START WITH 1
|
|
590
|
+
INCREMENT BY 1
|
|
591
|
+
NO MINVALUE
|
|
592
|
+
NO MAXVALUE
|
|
593
|
+
CACHE 1;
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
--
|
|
597
|
+
-- Name: campaigns_campaign_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
598
|
+
--
|
|
599
|
+
|
|
600
|
+
ALTER SEQUENCE campaigns_campaign_id_seq OWNED BY campaigns.campaign_id;
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
--
|
|
604
|
+
-- Name: cities; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
605
|
+
--
|
|
606
|
+
|
|
607
|
+
CREATE TABLE cities (
|
|
608
|
+
city_id integer NOT NULL,
|
|
609
|
+
city text NOT NULL
|
|
610
|
+
);
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
--
|
|
614
|
+
-- Name: cities_city_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
615
|
+
--
|
|
616
|
+
|
|
617
|
+
CREATE SEQUENCE cities_city_id_seq
|
|
618
|
+
START WITH 1
|
|
619
|
+
INCREMENT BY 1
|
|
620
|
+
NO MINVALUE
|
|
621
|
+
NO MAXVALUE
|
|
622
|
+
CACHE 1;
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
--
|
|
626
|
+
-- Name: cities_city_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
627
|
+
--
|
|
628
|
+
|
|
629
|
+
ALTER SEQUENCE cities_city_id_seq OWNED BY cities.city_id;
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
--
|
|
633
|
+
-- Name: contents; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
634
|
+
--
|
|
635
|
+
|
|
636
|
+
CREATE TABLE contents (
|
|
637
|
+
content_id integer NOT NULL,
|
|
638
|
+
content text NOT NULL
|
|
639
|
+
);
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
--
|
|
643
|
+
-- Name: contents_content_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
644
|
+
--
|
|
645
|
+
|
|
646
|
+
CREATE SEQUENCE contents_content_id_seq
|
|
647
|
+
START WITH 1
|
|
648
|
+
INCREMENT BY 1
|
|
649
|
+
NO MINVALUE
|
|
650
|
+
NO MAXVALUE
|
|
651
|
+
CACHE 1;
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
--
|
|
655
|
+
-- Name: contents_content_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
656
|
+
--
|
|
657
|
+
|
|
658
|
+
ALTER SEQUENCE contents_content_id_seq OWNED BY contents.content_id;
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
--
|
|
662
|
+
-- Name: cookies; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
663
|
+
--
|
|
664
|
+
|
|
665
|
+
CREATE TABLE cookies (
|
|
666
|
+
cookie_id uuid DEFAULT public.uuid_generate_v4() NOT NULL
|
|
667
|
+
);
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
--
|
|
671
|
+
-- Name: countries; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
672
|
+
--
|
|
673
|
+
|
|
674
|
+
CREATE TABLE countries (
|
|
675
|
+
country_id integer NOT NULL,
|
|
676
|
+
country text NOT NULL
|
|
677
|
+
);
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
--
|
|
681
|
+
-- Name: countries_country_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
682
|
+
--
|
|
683
|
+
|
|
684
|
+
CREATE SEQUENCE countries_country_id_seq
|
|
685
|
+
START WITH 1
|
|
686
|
+
INCREMENT BY 1
|
|
687
|
+
NO MINVALUE
|
|
688
|
+
NO MAXVALUE
|
|
689
|
+
CACHE 1;
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
--
|
|
693
|
+
-- Name: countries_country_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
694
|
+
--
|
|
695
|
+
|
|
696
|
+
ALTER SEQUENCE countries_country_id_seq OWNED BY countries.country_id;
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
--
|
|
700
|
+
-- Name: creatives; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
701
|
+
--
|
|
702
|
+
|
|
703
|
+
CREATE TABLE creatives (
|
|
704
|
+
creative_id integer NOT NULL,
|
|
705
|
+
creative text NOT NULL
|
|
706
|
+
);
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
--
|
|
710
|
+
-- Name: creatives_creative_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
711
|
+
--
|
|
712
|
+
|
|
713
|
+
CREATE SEQUENCE creatives_creative_id_seq
|
|
714
|
+
START WITH 1
|
|
715
|
+
INCREMENT BY 1
|
|
716
|
+
NO MINVALUE
|
|
717
|
+
NO MAXVALUE
|
|
718
|
+
CACHE 1;
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
--
|
|
722
|
+
-- Name: creatives_creative_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
723
|
+
--
|
|
724
|
+
|
|
725
|
+
ALTER SEQUENCE creatives_creative_id_seq OWNED BY creatives.creative_id;
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
--
|
|
729
|
+
-- Name: device_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
730
|
+
--
|
|
731
|
+
|
|
732
|
+
CREATE TABLE device_types (
|
|
733
|
+
device_type_id smallint NOT NULL,
|
|
734
|
+
device_type text NOT NULL
|
|
735
|
+
);
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
--
|
|
739
|
+
-- Name: device_types_device_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
740
|
+
--
|
|
741
|
+
|
|
742
|
+
CREATE SEQUENCE device_types_device_type_id_seq
|
|
743
|
+
START WITH 1
|
|
744
|
+
INCREMENT BY 1
|
|
745
|
+
NO MINVALUE
|
|
746
|
+
NO MAXVALUE
|
|
747
|
+
CACHE 1;
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
--
|
|
751
|
+
-- Name: device_types_device_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
752
|
+
--
|
|
753
|
+
|
|
754
|
+
ALTER SEQUENCE device_types_device_type_id_seq OWNED BY device_types.device_type_id;
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
--
|
|
758
|
+
-- Name: devices; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
759
|
+
--
|
|
760
|
+
|
|
761
|
+
CREATE TABLE devices (
|
|
762
|
+
device_id integer NOT NULL,
|
|
763
|
+
device text NOT NULL
|
|
764
|
+
);
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
--
|
|
768
|
+
-- Name: devices_device_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
769
|
+
--
|
|
770
|
+
|
|
771
|
+
CREATE SEQUENCE devices_device_id_seq
|
|
772
|
+
START WITH 1
|
|
773
|
+
INCREMENT BY 1
|
|
774
|
+
NO MINVALUE
|
|
775
|
+
NO MAXVALUE
|
|
776
|
+
CACHE 1;
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
--
|
|
780
|
+
-- Name: devices_device_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
781
|
+
--
|
|
782
|
+
|
|
783
|
+
ALTER SEQUENCE devices_device_id_seq OWNED BY devices.device_id;
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
--
|
|
787
|
+
-- Name: domains; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
788
|
+
--
|
|
789
|
+
|
|
790
|
+
CREATE TABLE domains (
|
|
791
|
+
domain_id integer NOT NULL,
|
|
792
|
+
domain text NOT NULL
|
|
793
|
+
);
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
--
|
|
797
|
+
-- Name: domains_domain_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
798
|
+
--
|
|
799
|
+
|
|
800
|
+
CREATE SEQUENCE domains_domain_id_seq
|
|
801
|
+
START WITH 1
|
|
802
|
+
INCREMENT BY 1
|
|
803
|
+
NO MINVALUE
|
|
804
|
+
NO MAXVALUE
|
|
805
|
+
CACHE 1;
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
--
|
|
809
|
+
-- Name: domains_domain_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
810
|
+
--
|
|
811
|
+
|
|
812
|
+
ALTER SEQUENCE domains_domain_id_seq OWNED BY domains.domain_id;
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
--
|
|
816
|
+
-- Name: event_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
817
|
+
--
|
|
818
|
+
|
|
819
|
+
CREATE TABLE event_types (
|
|
820
|
+
event_type_id integer NOT NULL,
|
|
821
|
+
event_type text NOT NULL
|
|
822
|
+
);
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
--
|
|
826
|
+
-- Name: event_types_event_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
827
|
+
--
|
|
828
|
+
|
|
829
|
+
CREATE SEQUENCE event_types_event_type_id_seq
|
|
830
|
+
START WITH 1
|
|
831
|
+
INCREMENT BY 1
|
|
832
|
+
NO MINVALUE
|
|
833
|
+
NO MAXVALUE
|
|
834
|
+
CACHE 1;
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
--
|
|
838
|
+
-- Name: event_types_event_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
839
|
+
--
|
|
840
|
+
|
|
841
|
+
ALTER SEQUENCE event_types_event_type_id_seq OWNED BY event_types.event_type_id;
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
--
|
|
845
|
+
-- Name: events; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
846
|
+
--
|
|
847
|
+
|
|
848
|
+
CREATE TABLE events (
|
|
849
|
+
event_id integer NOT NULL,
|
|
850
|
+
event_type_id integer NOT NULL,
|
|
851
|
+
visit_id integer NOT NULL,
|
|
852
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL,
|
|
853
|
+
meta public.hstore
|
|
854
|
+
);
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
--
|
|
858
|
+
-- Name: events_event_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
859
|
+
--
|
|
860
|
+
|
|
861
|
+
CREATE SEQUENCE events_event_id_seq
|
|
862
|
+
START WITH 1
|
|
863
|
+
INCREMENT BY 1
|
|
864
|
+
NO MINVALUE
|
|
865
|
+
NO MAXVALUE
|
|
866
|
+
CACHE 1;
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
--
|
|
870
|
+
-- Name: events_event_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
871
|
+
--
|
|
872
|
+
|
|
873
|
+
ALTER SEQUENCE events_event_id_seq OWNED BY events.event_id;
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
--
|
|
877
|
+
-- Name: experiments; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
878
|
+
--
|
|
879
|
+
|
|
880
|
+
CREATE TABLE experiments (
|
|
881
|
+
experiment_id integer NOT NULL,
|
|
882
|
+
experiment text NOT NULL
|
|
883
|
+
);
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
--
|
|
887
|
+
-- Name: experiments_experiment_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
888
|
+
--
|
|
889
|
+
|
|
890
|
+
CREATE SEQUENCE experiments_experiment_id_seq
|
|
891
|
+
START WITH 1
|
|
892
|
+
INCREMENT BY 1
|
|
893
|
+
NO MINVALUE
|
|
894
|
+
NO MAXVALUE
|
|
895
|
+
CACHE 1;
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
--
|
|
899
|
+
-- Name: experiments_experiment_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
900
|
+
--
|
|
901
|
+
|
|
902
|
+
ALTER SEQUENCE experiments_experiment_id_seq OWNED BY experiments.experiment_id;
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
--
|
|
906
|
+
-- Name: http_methods; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
907
|
+
--
|
|
908
|
+
|
|
909
|
+
CREATE TABLE http_methods (
|
|
910
|
+
http_method_id smallint NOT NULL,
|
|
911
|
+
http_method text NOT NULL
|
|
912
|
+
);
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
--
|
|
916
|
+
-- Name: http_methods_http_method_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
917
|
+
--
|
|
918
|
+
|
|
919
|
+
CREATE SEQUENCE http_methods_http_method_id_seq
|
|
920
|
+
START WITH 1
|
|
921
|
+
INCREMENT BY 1
|
|
922
|
+
NO MINVALUE
|
|
923
|
+
NO MAXVALUE
|
|
924
|
+
CACHE 1;
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
--
|
|
928
|
+
-- Name: http_methods_http_method_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
929
|
+
--
|
|
930
|
+
|
|
931
|
+
ALTER SEQUENCE http_methods_http_method_id_seq OWNED BY http_methods.http_method_id;
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
--
|
|
935
|
+
-- Name: ip_addresses; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
936
|
+
--
|
|
937
|
+
|
|
938
|
+
CREATE TABLE ip_addresses (
|
|
939
|
+
ip_address_id integer NOT NULL,
|
|
940
|
+
ip_address inet NOT NULL
|
|
941
|
+
);
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
--
|
|
945
|
+
-- Name: ip_addresses_ip_address_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
946
|
+
--
|
|
947
|
+
|
|
948
|
+
CREATE SEQUENCE ip_addresses_ip_address_id_seq
|
|
949
|
+
START WITH 1
|
|
950
|
+
INCREMENT BY 1
|
|
951
|
+
NO MINVALUE
|
|
952
|
+
NO MAXVALUE
|
|
953
|
+
CACHE 1;
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
--
|
|
957
|
+
-- Name: ip_addresses_ip_address_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
958
|
+
--
|
|
959
|
+
|
|
960
|
+
ALTER SEQUENCE ip_addresses_ip_address_id_seq OWNED BY ip_addresses.ip_address_id;
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
--
|
|
964
|
+
-- Name: ip_lookups; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
965
|
+
--
|
|
966
|
+
|
|
967
|
+
CREATE TABLE ip_lookups (
|
|
968
|
+
ip_lookup_id integer NOT NULL,
|
|
969
|
+
ip_address_id integer NOT NULL,
|
|
970
|
+
domain_id integer,
|
|
971
|
+
location_id integer,
|
|
972
|
+
latitude real,
|
|
973
|
+
longitude real,
|
|
974
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL
|
|
975
|
+
);
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
--
|
|
979
|
+
-- Name: ip_lookups_ip_lookup_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
980
|
+
--
|
|
981
|
+
|
|
982
|
+
CREATE SEQUENCE ip_lookups_ip_lookup_id_seq
|
|
983
|
+
START WITH 1
|
|
984
|
+
INCREMENT BY 1
|
|
985
|
+
NO MINVALUE
|
|
986
|
+
NO MAXVALUE
|
|
987
|
+
CACHE 1;
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
--
|
|
991
|
+
-- Name: ip_lookups_ip_lookup_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
992
|
+
--
|
|
993
|
+
|
|
994
|
+
ALTER SEQUENCE ip_lookups_ip_lookup_id_seq OWNED BY ip_lookups.ip_lookup_id;
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
--
|
|
998
|
+
-- Name: keywords; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
999
|
+
--
|
|
1000
|
+
|
|
1001
|
+
CREATE TABLE keywords (
|
|
1002
|
+
keyword_id integer NOT NULL,
|
|
1003
|
+
keyword text NOT NULL
|
|
1004
|
+
);
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
--
|
|
1008
|
+
-- Name: keywords_keyword_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1009
|
+
--
|
|
1010
|
+
|
|
1011
|
+
CREATE SEQUENCE keywords_keyword_id_seq
|
|
1012
|
+
START WITH 1
|
|
1013
|
+
INCREMENT BY 1
|
|
1014
|
+
NO MINVALUE
|
|
1015
|
+
NO MAXVALUE
|
|
1016
|
+
CACHE 1;
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
--
|
|
1020
|
+
-- Name: keywords_keyword_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1021
|
+
--
|
|
1022
|
+
|
|
1023
|
+
ALTER SEQUENCE keywords_keyword_id_seq OWNED BY keywords.keyword_id;
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
--
|
|
1027
|
+
-- Name: locations; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1028
|
+
--
|
|
1029
|
+
|
|
1030
|
+
CREATE TABLE locations (
|
|
1031
|
+
location_id integer NOT NULL,
|
|
1032
|
+
country_id integer,
|
|
1033
|
+
region_id integer,
|
|
1034
|
+
city_id integer
|
|
1035
|
+
);
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
--
|
|
1039
|
+
-- Name: locations_location_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1040
|
+
--
|
|
1041
|
+
|
|
1042
|
+
CREATE SEQUENCE locations_location_id_seq
|
|
1043
|
+
START WITH 1
|
|
1044
|
+
INCREMENT BY 1
|
|
1045
|
+
NO MINVALUE
|
|
1046
|
+
NO MAXVALUE
|
|
1047
|
+
CACHE 1;
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
--
|
|
1051
|
+
-- Name: locations_location_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1052
|
+
--
|
|
1053
|
+
|
|
1054
|
+
ALTER SEQUENCE locations_location_id_seq OWNED BY locations.location_id;
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
--
|
|
1058
|
+
-- Name: match_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1059
|
+
--
|
|
1060
|
+
|
|
1061
|
+
CREATE TABLE match_types (
|
|
1062
|
+
match_type_id smallint NOT NULL,
|
|
1063
|
+
match_type text NOT NULL
|
|
1064
|
+
);
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
--
|
|
1068
|
+
-- Name: match_types_match_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1069
|
+
--
|
|
1070
|
+
|
|
1071
|
+
CREATE SEQUENCE match_types_match_type_id_seq
|
|
1072
|
+
START WITH 1
|
|
1073
|
+
INCREMENT BY 1
|
|
1074
|
+
NO MINVALUE
|
|
1075
|
+
NO MAXVALUE
|
|
1076
|
+
CACHE 1;
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
--
|
|
1080
|
+
-- Name: match_types_match_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1081
|
+
--
|
|
1082
|
+
|
|
1083
|
+
ALTER SEQUENCE match_types_match_type_id_seq OWNED BY match_types.match_type_id;
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
--
|
|
1087
|
+
-- Name: mediums; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1088
|
+
--
|
|
1089
|
+
|
|
1090
|
+
CREATE TABLE mediums (
|
|
1091
|
+
medium_id integer NOT NULL,
|
|
1092
|
+
medium text NOT NULL
|
|
1093
|
+
);
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
--
|
|
1097
|
+
-- Name: mediums_medium_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1098
|
+
--
|
|
1099
|
+
|
|
1100
|
+
CREATE SEQUENCE mediums_medium_id_seq
|
|
1101
|
+
START WITH 1
|
|
1102
|
+
INCREMENT BY 1
|
|
1103
|
+
NO MINVALUE
|
|
1104
|
+
NO MAXVALUE
|
|
1105
|
+
CACHE 1;
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
--
|
|
1109
|
+
-- Name: mediums_medium_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1110
|
+
--
|
|
1111
|
+
|
|
1112
|
+
ALTER SEQUENCE mediums_medium_id_seq OWNED BY mediums.medium_id;
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
--
|
|
1116
|
+
-- Name: mime_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1117
|
+
--
|
|
1118
|
+
|
|
1119
|
+
CREATE TABLE mime_types (
|
|
1120
|
+
mime_type_id smallint NOT NULL,
|
|
1121
|
+
mime_type text NOT NULL
|
|
1122
|
+
);
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
--
|
|
1126
|
+
-- Name: mime_types_mime_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1127
|
+
--
|
|
1128
|
+
|
|
1129
|
+
CREATE SEQUENCE mime_types_mime_type_id_seq
|
|
1130
|
+
START WITH 1
|
|
1131
|
+
INCREMENT BY 1
|
|
1132
|
+
NO MINVALUE
|
|
1133
|
+
NO MAXVALUE
|
|
1134
|
+
CACHE 1;
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
--
|
|
1138
|
+
-- Name: mime_types_mime_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1139
|
+
--
|
|
1140
|
+
|
|
1141
|
+
ALTER SEQUENCE mime_types_mime_type_id_seq OWNED BY mime_types.mime_type_id;
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
--
|
|
1145
|
+
-- Name: networks; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1146
|
+
--
|
|
1147
|
+
|
|
1148
|
+
CREATE TABLE networks (
|
|
1149
|
+
network_id integer NOT NULL,
|
|
1150
|
+
network text NOT NULL
|
|
1151
|
+
);
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
--
|
|
1155
|
+
-- Name: networks_network_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1156
|
+
--
|
|
1157
|
+
|
|
1158
|
+
CREATE SEQUENCE networks_network_id_seq
|
|
1159
|
+
START WITH 1
|
|
1160
|
+
INCREMENT BY 1
|
|
1161
|
+
NO MINVALUE
|
|
1162
|
+
NO MAXVALUE
|
|
1163
|
+
CACHE 1;
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
--
|
|
1167
|
+
-- Name: networks_network_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1168
|
+
--
|
|
1169
|
+
|
|
1170
|
+
ALTER SEQUENCE networks_network_id_seq OWNED BY networks.network_id;
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
--
|
|
1174
|
+
-- Name: owners; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1175
|
+
--
|
|
1176
|
+
|
|
1177
|
+
CREATE TABLE owners (
|
|
1178
|
+
owner_id integer NOT NULL,
|
|
1179
|
+
owner integer NOT NULL
|
|
1180
|
+
);
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
--
|
|
1184
|
+
-- Name: owners_owner_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1185
|
+
--
|
|
1186
|
+
|
|
1187
|
+
CREATE SEQUENCE owners_owner_id_seq
|
|
1188
|
+
START WITH 1
|
|
1189
|
+
INCREMENT BY 1
|
|
1190
|
+
NO MINVALUE
|
|
1191
|
+
NO MAXVALUE
|
|
1192
|
+
CACHE 1;
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
--
|
|
1196
|
+
-- Name: owners_owner_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1197
|
+
--
|
|
1198
|
+
|
|
1199
|
+
ALTER SEQUENCE owners_owner_id_seq OWNED BY owners.owner_id;
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
--
|
|
1203
|
+
-- Name: ownerships; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1204
|
+
--
|
|
1205
|
+
|
|
1206
|
+
CREATE TABLE ownerships (
|
|
1207
|
+
owner_id integer NOT NULL,
|
|
1208
|
+
cookie_id uuid NOT NULL
|
|
1209
|
+
);
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
--
|
|
1213
|
+
-- Name: page_views; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1214
|
+
--
|
|
1215
|
+
|
|
1216
|
+
CREATE TABLE page_views (
|
|
1217
|
+
page_view_id integer NOT NULL,
|
|
1218
|
+
visit_id integer NOT NULL,
|
|
1219
|
+
path_id integer NOT NULL,
|
|
1220
|
+
query_string_id integer NOT NULL,
|
|
1221
|
+
mime_type_id smallint NOT NULL,
|
|
1222
|
+
http_method_id smallint NOT NULL,
|
|
1223
|
+
page_revision_id uuid,
|
|
1224
|
+
request_id uuid,
|
|
1225
|
+
click_id text,
|
|
1226
|
+
content_length integer,
|
|
1227
|
+
http_status integer,
|
|
1228
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL,
|
|
1229
|
+
response_time integer
|
|
1230
|
+
);
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
--
|
|
1234
|
+
-- Name: page_views_page_view_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1235
|
+
--
|
|
1236
|
+
|
|
1237
|
+
CREATE SEQUENCE page_views_page_view_id_seq
|
|
1238
|
+
START WITH 1
|
|
1239
|
+
INCREMENT BY 1
|
|
1240
|
+
NO MINVALUE
|
|
1241
|
+
NO MAXVALUE
|
|
1242
|
+
CACHE 1;
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
--
|
|
1246
|
+
-- Name: page_views_page_view_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1247
|
+
--
|
|
1248
|
+
|
|
1249
|
+
ALTER SEQUENCE page_views_page_view_id_seq OWNED BY page_views.page_view_id;
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
--
|
|
1253
|
+
-- Name: paths; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1254
|
+
--
|
|
1255
|
+
|
|
1256
|
+
CREATE TABLE paths (
|
|
1257
|
+
path_id integer NOT NULL,
|
|
1258
|
+
path text NOT NULL
|
|
1259
|
+
);
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
--
|
|
1263
|
+
-- Name: paths_path_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1264
|
+
--
|
|
1265
|
+
|
|
1266
|
+
CREATE SEQUENCE paths_path_id_seq
|
|
1267
|
+
START WITH 1
|
|
1268
|
+
INCREMENT BY 1
|
|
1269
|
+
NO MINVALUE
|
|
1270
|
+
NO MAXVALUE
|
|
1271
|
+
CACHE 1;
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
--
|
|
1275
|
+
-- Name: paths_path_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1276
|
+
--
|
|
1277
|
+
|
|
1278
|
+
ALTER SEQUENCE paths_path_id_seq OWNED BY paths.path_id;
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
--
|
|
1282
|
+
-- Name: placements; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1283
|
+
--
|
|
1284
|
+
|
|
1285
|
+
CREATE TABLE placements (
|
|
1286
|
+
placement_id integer NOT NULL,
|
|
1287
|
+
placement text NOT NULL
|
|
1288
|
+
);
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
--
|
|
1292
|
+
-- Name: placements_placement_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1293
|
+
--
|
|
1294
|
+
|
|
1295
|
+
CREATE SEQUENCE placements_placement_id_seq
|
|
1296
|
+
START WITH 1
|
|
1297
|
+
INCREMENT BY 1
|
|
1298
|
+
NO MINVALUE
|
|
1299
|
+
NO MAXVALUE
|
|
1300
|
+
CACHE 1;
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
--
|
|
1304
|
+
-- Name: placements_placement_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1305
|
+
--
|
|
1306
|
+
|
|
1307
|
+
ALTER SEQUENCE placements_placement_id_seq OWNED BY placements.placement_id;
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
--
|
|
1311
|
+
-- Name: platforms; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1312
|
+
--
|
|
1313
|
+
|
|
1314
|
+
CREATE TABLE platforms (
|
|
1315
|
+
platform_id smallint NOT NULL,
|
|
1316
|
+
platform text NOT NULL
|
|
1317
|
+
);
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
--
|
|
1321
|
+
-- Name: platforms_platform_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1322
|
+
--
|
|
1323
|
+
|
|
1324
|
+
CREATE SEQUENCE platforms_platform_id_seq
|
|
1325
|
+
START WITH 1
|
|
1326
|
+
INCREMENT BY 1
|
|
1327
|
+
NO MINVALUE
|
|
1328
|
+
NO MAXVALUE
|
|
1329
|
+
CACHE 1;
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
--
|
|
1333
|
+
-- Name: platforms_platform_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1334
|
+
--
|
|
1335
|
+
|
|
1336
|
+
ALTER SEQUENCE platforms_platform_id_seq OWNED BY platforms.platform_id;
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
--
|
|
1340
|
+
-- Name: positions; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1341
|
+
--
|
|
1342
|
+
|
|
1343
|
+
CREATE TABLE positions (
|
|
1344
|
+
position_id smallint NOT NULL,
|
|
1345
|
+
"position" text NOT NULL
|
|
1346
|
+
);
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
--
|
|
1350
|
+
-- Name: positions_position_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1351
|
+
--
|
|
1352
|
+
|
|
1353
|
+
CREATE SEQUENCE positions_position_id_seq
|
|
1354
|
+
START WITH 1
|
|
1355
|
+
INCREMENT BY 1
|
|
1356
|
+
NO MINVALUE
|
|
1357
|
+
NO MAXVALUE
|
|
1358
|
+
CACHE 1;
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
--
|
|
1362
|
+
-- Name: positions_position_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1363
|
+
--
|
|
1364
|
+
|
|
1365
|
+
ALTER SEQUENCE positions_position_id_seq OWNED BY positions.position_id;
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
--
|
|
1369
|
+
-- Name: query_strings; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1370
|
+
--
|
|
1371
|
+
|
|
1372
|
+
CREATE TABLE query_strings (
|
|
1373
|
+
query_string_id integer NOT NULL,
|
|
1374
|
+
query_string text NOT NULL
|
|
1375
|
+
);
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
--
|
|
1379
|
+
-- Name: query_strings_query_string_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1380
|
+
--
|
|
1381
|
+
|
|
1382
|
+
CREATE SEQUENCE query_strings_query_string_id_seq
|
|
1383
|
+
START WITH 1
|
|
1384
|
+
INCREMENT BY 1
|
|
1385
|
+
NO MINVALUE
|
|
1386
|
+
NO MAXVALUE
|
|
1387
|
+
CACHE 1;
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
--
|
|
1391
|
+
-- Name: query_strings_query_string_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1392
|
+
--
|
|
1393
|
+
|
|
1394
|
+
ALTER SEQUENCE query_strings_query_string_id_seq OWNED BY query_strings.query_string_id;
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
--
|
|
1398
|
+
-- Name: referers; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1399
|
+
--
|
|
1400
|
+
|
|
1401
|
+
CREATE TABLE referers (
|
|
1402
|
+
referer_id integer NOT NULL,
|
|
1403
|
+
domain_id integer NOT NULL,
|
|
1404
|
+
path_id integer NOT NULL,
|
|
1405
|
+
query_string_id integer NOT NULL,
|
|
1406
|
+
attribution_id integer NOT NULL
|
|
1407
|
+
);
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
--
|
|
1411
|
+
-- Name: referers_referer_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1412
|
+
--
|
|
1413
|
+
|
|
1414
|
+
CREATE SEQUENCE referers_referer_id_seq
|
|
1415
|
+
START WITH 1
|
|
1416
|
+
INCREMENT BY 1
|
|
1417
|
+
NO MINVALUE
|
|
1418
|
+
NO MAXVALUE
|
|
1419
|
+
CACHE 1;
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
--
|
|
1423
|
+
-- Name: referers_referer_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1424
|
+
--
|
|
1425
|
+
|
|
1426
|
+
ALTER SEQUENCE referers_referer_id_seq OWNED BY referers.referer_id;
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
--
|
|
1430
|
+
-- Name: regions; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1431
|
+
--
|
|
1432
|
+
|
|
1433
|
+
CREATE TABLE regions (
|
|
1434
|
+
region_id integer NOT NULL,
|
|
1435
|
+
region text NOT NULL
|
|
1436
|
+
);
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
--
|
|
1440
|
+
-- Name: regions_region_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1441
|
+
--
|
|
1442
|
+
|
|
1443
|
+
CREATE SEQUENCE regions_region_id_seq
|
|
1444
|
+
START WITH 1
|
|
1445
|
+
INCREMENT BY 1
|
|
1446
|
+
NO MINVALUE
|
|
1447
|
+
NO MAXVALUE
|
|
1448
|
+
CACHE 1;
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
--
|
|
1452
|
+
-- Name: regions_region_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1453
|
+
--
|
|
1454
|
+
|
|
1455
|
+
ALTER SEQUENCE regions_region_id_seq OWNED BY regions.region_id;
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
--
|
|
1459
|
+
-- Name: search_terms; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1460
|
+
--
|
|
1461
|
+
|
|
1462
|
+
CREATE TABLE search_terms (
|
|
1463
|
+
search_term_id integer NOT NULL,
|
|
1464
|
+
search_term text NOT NULL
|
|
1465
|
+
);
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
--
|
|
1469
|
+
-- Name: search_terms_search_term_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1470
|
+
--
|
|
1471
|
+
|
|
1472
|
+
CREATE SEQUENCE search_terms_search_term_id_seq
|
|
1473
|
+
START WITH 1
|
|
1474
|
+
INCREMENT BY 1
|
|
1475
|
+
NO MINVALUE
|
|
1476
|
+
NO MAXVALUE
|
|
1477
|
+
CACHE 1;
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
--
|
|
1481
|
+
-- Name: search_terms_search_term_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1482
|
+
--
|
|
1483
|
+
|
|
1484
|
+
ALTER SEQUENCE search_terms_search_term_id_seq OWNED BY search_terms.search_term_id;
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
--
|
|
1488
|
+
-- Name: sources; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1489
|
+
--
|
|
1490
|
+
|
|
1491
|
+
CREATE TABLE sources (
|
|
1492
|
+
source_id integer NOT NULL,
|
|
1493
|
+
source text NOT NULL
|
|
1494
|
+
);
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
--
|
|
1498
|
+
-- Name: sources_source_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1499
|
+
--
|
|
1500
|
+
|
|
1501
|
+
CREATE SEQUENCE sources_source_id_seq
|
|
1502
|
+
START WITH 1
|
|
1503
|
+
INCREMENT BY 1
|
|
1504
|
+
NO MINVALUE
|
|
1505
|
+
NO MAXVALUE
|
|
1506
|
+
CACHE 1;
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
--
|
|
1510
|
+
-- Name: sources_source_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1511
|
+
--
|
|
1512
|
+
|
|
1513
|
+
ALTER SEQUENCE sources_source_id_seq OWNED BY sources.source_id;
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
--
|
|
1517
|
+
-- Name: targets; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1518
|
+
--
|
|
1519
|
+
|
|
1520
|
+
CREATE TABLE targets (
|
|
1521
|
+
target_id integer NOT NULL,
|
|
1522
|
+
target text NOT NULL
|
|
1523
|
+
);
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
--
|
|
1527
|
+
-- Name: targets_target_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1528
|
+
--
|
|
1529
|
+
|
|
1530
|
+
CREATE SEQUENCE targets_target_id_seq
|
|
1531
|
+
START WITH 1
|
|
1532
|
+
INCREMENT BY 1
|
|
1533
|
+
NO MINVALUE
|
|
1534
|
+
NO MAXVALUE
|
|
1535
|
+
CACHE 1;
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
--
|
|
1539
|
+
-- Name: targets_target_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1540
|
+
--
|
|
1541
|
+
|
|
1542
|
+
ALTER SEQUENCE targets_target_id_seq OWNED BY targets.target_id;
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
--
|
|
1546
|
+
-- Name: user_agent_types; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1547
|
+
--
|
|
1548
|
+
|
|
1549
|
+
CREATE TABLE user_agent_types (
|
|
1550
|
+
user_agent_type_id smallint NOT NULL,
|
|
1551
|
+
user_agent_type text NOT NULL
|
|
1552
|
+
);
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
--
|
|
1556
|
+
-- Name: user_agent_types_user_agent_type_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1557
|
+
--
|
|
1558
|
+
|
|
1559
|
+
CREATE SEQUENCE user_agent_types_user_agent_type_id_seq
|
|
1560
|
+
START WITH 1
|
|
1561
|
+
INCREMENT BY 1
|
|
1562
|
+
NO MINVALUE
|
|
1563
|
+
NO MAXVALUE
|
|
1564
|
+
CACHE 1;
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
--
|
|
1568
|
+
-- Name: user_agent_types_user_agent_type_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1569
|
+
--
|
|
1570
|
+
|
|
1571
|
+
ALTER SEQUENCE user_agent_types_user_agent_type_id_seq OWNED BY user_agent_types.user_agent_type_id;
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
--
|
|
1575
|
+
-- Name: user_agents; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1576
|
+
--
|
|
1577
|
+
|
|
1578
|
+
CREATE TABLE user_agents (
|
|
1579
|
+
user_agent_id integer NOT NULL,
|
|
1580
|
+
user_agent_type_id smallint,
|
|
1581
|
+
device_id integer,
|
|
1582
|
+
platform_id smallint,
|
|
1583
|
+
browser_id smallint,
|
|
1584
|
+
browser_version text,
|
|
1585
|
+
user_agent text NOT NULL,
|
|
1586
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL
|
|
1587
|
+
);
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
--
|
|
1591
|
+
-- Name: user_agents_user_agent_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1592
|
+
--
|
|
1593
|
+
|
|
1594
|
+
CREATE SEQUENCE user_agents_user_agent_id_seq
|
|
1595
|
+
START WITH 1
|
|
1596
|
+
INCREMENT BY 1
|
|
1597
|
+
NO MINVALUE
|
|
1598
|
+
NO MAXVALUE
|
|
1599
|
+
CACHE 1;
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
--
|
|
1603
|
+
-- Name: user_agents_user_agent_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1604
|
+
--
|
|
1605
|
+
|
|
1606
|
+
ALTER SEQUENCE user_agents_user_agent_id_seq OWNED BY user_agents.user_agent_id;
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
--
|
|
1610
|
+
-- Name: visitors; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1611
|
+
--
|
|
1612
|
+
|
|
1613
|
+
CREATE TABLE visitors (
|
|
1614
|
+
visitor_id integer NOT NULL,
|
|
1615
|
+
ip_address_id integer NOT NULL,
|
|
1616
|
+
user_agent_id integer NOT NULL
|
|
1617
|
+
);
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
--
|
|
1621
|
+
-- Name: visitors_visitor_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1622
|
+
--
|
|
1623
|
+
|
|
1624
|
+
CREATE SEQUENCE visitors_visitor_id_seq
|
|
1625
|
+
START WITH 1
|
|
1626
|
+
INCREMENT BY 1
|
|
1627
|
+
NO MINVALUE
|
|
1628
|
+
NO MAXVALUE
|
|
1629
|
+
CACHE 1;
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
--
|
|
1633
|
+
-- Name: visitors_visitor_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1634
|
+
--
|
|
1635
|
+
|
|
1636
|
+
ALTER SEQUENCE visitors_visitor_id_seq OWNED BY visitors.visitor_id;
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
--
|
|
1640
|
+
-- Name: visits; Type: TABLE; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
1641
|
+
--
|
|
1642
|
+
|
|
1643
|
+
CREATE TABLE visits (
|
|
1644
|
+
visit_id integer NOT NULL,
|
|
1645
|
+
cookie_id uuid NOT NULL,
|
|
1646
|
+
visitor_id integer NOT NULL,
|
|
1647
|
+
attribution_id integer NOT NULL,
|
|
1648
|
+
referer_id integer,
|
|
1649
|
+
owner_id integer,
|
|
1650
|
+
created_at timestamp with time zone DEFAULT now() NOT NULL,
|
|
1651
|
+
do_not_track boolean
|
|
1652
|
+
);
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
--
|
|
1656
|
+
-- Name: visits_visit_id_seq; Type: SEQUENCE; Schema: dummy_landable_traffic; Owner: -
|
|
1657
|
+
--
|
|
1658
|
+
|
|
1659
|
+
CREATE SEQUENCE visits_visit_id_seq
|
|
1660
|
+
START WITH 1
|
|
1661
|
+
INCREMENT BY 1
|
|
1662
|
+
NO MINVALUE
|
|
1663
|
+
NO MAXVALUE
|
|
1664
|
+
CACHE 1;
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
--
|
|
1668
|
+
-- Name: visits_visit_id_seq; Type: SEQUENCE OWNED BY; Schema: dummy_landable_traffic; Owner: -
|
|
1669
|
+
--
|
|
1670
|
+
|
|
1671
|
+
ALTER SEQUENCE visits_visit_id_seq OWNED BY visits.visit_id;
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
SET search_path = public, pg_catalog;
|
|
1675
|
+
|
|
1676
|
+
--
|
|
1677
|
+
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
|
1678
|
+
--
|
|
1679
|
+
|
|
1680
|
+
CREATE TABLE schema_migrations (
|
|
1681
|
+
version character varying(255) NOT NULL
|
|
1682
|
+
);
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
SET search_path = dummy_landable_traffic, pg_catalog;
|
|
1686
|
+
|
|
1687
|
+
--
|
|
1688
|
+
-- Name: access_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1689
|
+
--
|
|
1690
|
+
|
|
1691
|
+
ALTER TABLE ONLY accesses ALTER COLUMN access_id SET DEFAULT nextval('accesses_access_id_seq'::regclass);
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
--
|
|
1695
|
+
-- Name: ad_group_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1696
|
+
--
|
|
1697
|
+
|
|
1698
|
+
ALTER TABLE ONLY ad_groups ALTER COLUMN ad_group_id SET DEFAULT nextval('ad_groups_ad_group_id_seq'::regclass);
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
--
|
|
1702
|
+
-- Name: ad_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1703
|
+
--
|
|
1704
|
+
|
|
1705
|
+
ALTER TABLE ONLY ad_types ALTER COLUMN ad_type_id SET DEFAULT nextval('ad_types_ad_type_id_seq'::regclass);
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
--
|
|
1709
|
+
-- Name: attribution_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1710
|
+
--
|
|
1711
|
+
|
|
1712
|
+
ALTER TABLE ONLY attributions ALTER COLUMN attribution_id SET DEFAULT nextval('attributions_attribution_id_seq'::regclass);
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
--
|
|
1716
|
+
-- Name: bid_match_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1717
|
+
--
|
|
1718
|
+
|
|
1719
|
+
ALTER TABLE ONLY bid_match_types ALTER COLUMN bid_match_type_id SET DEFAULT nextval('bid_match_types_bid_match_type_id_seq'::regclass);
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
--
|
|
1723
|
+
-- Name: browser_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1724
|
+
--
|
|
1725
|
+
|
|
1726
|
+
ALTER TABLE ONLY browsers ALTER COLUMN browser_id SET DEFAULT nextval('browsers_browser_id_seq'::regclass);
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
--
|
|
1730
|
+
-- Name: campaign_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1731
|
+
--
|
|
1732
|
+
|
|
1733
|
+
ALTER TABLE ONLY campaigns ALTER COLUMN campaign_id SET DEFAULT nextval('campaigns_campaign_id_seq'::regclass);
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
--
|
|
1737
|
+
-- Name: city_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1738
|
+
--
|
|
1739
|
+
|
|
1740
|
+
ALTER TABLE ONLY cities ALTER COLUMN city_id SET DEFAULT nextval('cities_city_id_seq'::regclass);
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
--
|
|
1744
|
+
-- Name: content_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1745
|
+
--
|
|
1746
|
+
|
|
1747
|
+
ALTER TABLE ONLY contents ALTER COLUMN content_id SET DEFAULT nextval('contents_content_id_seq'::regclass);
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
--
|
|
1751
|
+
-- Name: country_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1752
|
+
--
|
|
1753
|
+
|
|
1754
|
+
ALTER TABLE ONLY countries ALTER COLUMN country_id SET DEFAULT nextval('countries_country_id_seq'::regclass);
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
--
|
|
1758
|
+
-- Name: creative_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1759
|
+
--
|
|
1760
|
+
|
|
1761
|
+
ALTER TABLE ONLY creatives ALTER COLUMN creative_id SET DEFAULT nextval('creatives_creative_id_seq'::regclass);
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
--
|
|
1765
|
+
-- Name: device_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1766
|
+
--
|
|
1767
|
+
|
|
1768
|
+
ALTER TABLE ONLY device_types ALTER COLUMN device_type_id SET DEFAULT nextval('device_types_device_type_id_seq'::regclass);
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
--
|
|
1772
|
+
-- Name: device_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1773
|
+
--
|
|
1774
|
+
|
|
1775
|
+
ALTER TABLE ONLY devices ALTER COLUMN device_id SET DEFAULT nextval('devices_device_id_seq'::regclass);
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
--
|
|
1779
|
+
-- Name: domain_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1780
|
+
--
|
|
1781
|
+
|
|
1782
|
+
ALTER TABLE ONLY domains ALTER COLUMN domain_id SET DEFAULT nextval('domains_domain_id_seq'::regclass);
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
--
|
|
1786
|
+
-- Name: event_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1787
|
+
--
|
|
1788
|
+
|
|
1789
|
+
ALTER TABLE ONLY event_types ALTER COLUMN event_type_id SET DEFAULT nextval('event_types_event_type_id_seq'::regclass);
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
--
|
|
1793
|
+
-- Name: event_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1794
|
+
--
|
|
1795
|
+
|
|
1796
|
+
ALTER TABLE ONLY events ALTER COLUMN event_id SET DEFAULT nextval('events_event_id_seq'::regclass);
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
--
|
|
1800
|
+
-- Name: experiment_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1801
|
+
--
|
|
1802
|
+
|
|
1803
|
+
ALTER TABLE ONLY experiments ALTER COLUMN experiment_id SET DEFAULT nextval('experiments_experiment_id_seq'::regclass);
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
--
|
|
1807
|
+
-- Name: http_method_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1808
|
+
--
|
|
1809
|
+
|
|
1810
|
+
ALTER TABLE ONLY http_methods ALTER COLUMN http_method_id SET DEFAULT nextval('http_methods_http_method_id_seq'::regclass);
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
--
|
|
1814
|
+
-- Name: ip_address_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1815
|
+
--
|
|
1816
|
+
|
|
1817
|
+
ALTER TABLE ONLY ip_addresses ALTER COLUMN ip_address_id SET DEFAULT nextval('ip_addresses_ip_address_id_seq'::regclass);
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
--
|
|
1821
|
+
-- Name: ip_lookup_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1822
|
+
--
|
|
1823
|
+
|
|
1824
|
+
ALTER TABLE ONLY ip_lookups ALTER COLUMN ip_lookup_id SET DEFAULT nextval('ip_lookups_ip_lookup_id_seq'::regclass);
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
--
|
|
1828
|
+
-- Name: keyword_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1829
|
+
--
|
|
1830
|
+
|
|
1831
|
+
ALTER TABLE ONLY keywords ALTER COLUMN keyword_id SET DEFAULT nextval('keywords_keyword_id_seq'::regclass);
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
--
|
|
1835
|
+
-- Name: location_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1836
|
+
--
|
|
1837
|
+
|
|
1838
|
+
ALTER TABLE ONLY locations ALTER COLUMN location_id SET DEFAULT nextval('locations_location_id_seq'::regclass);
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
--
|
|
1842
|
+
-- Name: match_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1843
|
+
--
|
|
1844
|
+
|
|
1845
|
+
ALTER TABLE ONLY match_types ALTER COLUMN match_type_id SET DEFAULT nextval('match_types_match_type_id_seq'::regclass);
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
--
|
|
1849
|
+
-- Name: medium_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1850
|
+
--
|
|
1851
|
+
|
|
1852
|
+
ALTER TABLE ONLY mediums ALTER COLUMN medium_id SET DEFAULT nextval('mediums_medium_id_seq'::regclass);
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
--
|
|
1856
|
+
-- Name: mime_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1857
|
+
--
|
|
1858
|
+
|
|
1859
|
+
ALTER TABLE ONLY mime_types ALTER COLUMN mime_type_id SET DEFAULT nextval('mime_types_mime_type_id_seq'::regclass);
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
--
|
|
1863
|
+
-- Name: network_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1864
|
+
--
|
|
1865
|
+
|
|
1866
|
+
ALTER TABLE ONLY networks ALTER COLUMN network_id SET DEFAULT nextval('networks_network_id_seq'::regclass);
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
--
|
|
1870
|
+
-- Name: owner_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1871
|
+
--
|
|
1872
|
+
|
|
1873
|
+
ALTER TABLE ONLY owners ALTER COLUMN owner_id SET DEFAULT nextval('owners_owner_id_seq'::regclass);
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
--
|
|
1877
|
+
-- Name: page_view_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1878
|
+
--
|
|
1879
|
+
|
|
1880
|
+
ALTER TABLE ONLY page_views ALTER COLUMN page_view_id SET DEFAULT nextval('page_views_page_view_id_seq'::regclass);
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
--
|
|
1884
|
+
-- Name: path_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1885
|
+
--
|
|
1886
|
+
|
|
1887
|
+
ALTER TABLE ONLY paths ALTER COLUMN path_id SET DEFAULT nextval('paths_path_id_seq'::regclass);
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
--
|
|
1891
|
+
-- Name: placement_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1892
|
+
--
|
|
1893
|
+
|
|
1894
|
+
ALTER TABLE ONLY placements ALTER COLUMN placement_id SET DEFAULT nextval('placements_placement_id_seq'::regclass);
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
--
|
|
1898
|
+
-- Name: platform_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1899
|
+
--
|
|
1900
|
+
|
|
1901
|
+
ALTER TABLE ONLY platforms ALTER COLUMN platform_id SET DEFAULT nextval('platforms_platform_id_seq'::regclass);
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
--
|
|
1905
|
+
-- Name: position_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1906
|
+
--
|
|
1907
|
+
|
|
1908
|
+
ALTER TABLE ONLY positions ALTER COLUMN position_id SET DEFAULT nextval('positions_position_id_seq'::regclass);
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
--
|
|
1912
|
+
-- Name: query_string_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1913
|
+
--
|
|
1914
|
+
|
|
1915
|
+
ALTER TABLE ONLY query_strings ALTER COLUMN query_string_id SET DEFAULT nextval('query_strings_query_string_id_seq'::regclass);
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
--
|
|
1919
|
+
-- Name: referer_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1920
|
+
--
|
|
1921
|
+
|
|
1922
|
+
ALTER TABLE ONLY referers ALTER COLUMN referer_id SET DEFAULT nextval('referers_referer_id_seq'::regclass);
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
--
|
|
1926
|
+
-- Name: region_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1927
|
+
--
|
|
1928
|
+
|
|
1929
|
+
ALTER TABLE ONLY regions ALTER COLUMN region_id SET DEFAULT nextval('regions_region_id_seq'::regclass);
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
--
|
|
1933
|
+
-- Name: search_term_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1934
|
+
--
|
|
1935
|
+
|
|
1936
|
+
ALTER TABLE ONLY search_terms ALTER COLUMN search_term_id SET DEFAULT nextval('search_terms_search_term_id_seq'::regclass);
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
--
|
|
1940
|
+
-- Name: source_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1941
|
+
--
|
|
1942
|
+
|
|
1943
|
+
ALTER TABLE ONLY sources ALTER COLUMN source_id SET DEFAULT nextval('sources_source_id_seq'::regclass);
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
--
|
|
1947
|
+
-- Name: target_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1948
|
+
--
|
|
1949
|
+
|
|
1950
|
+
ALTER TABLE ONLY targets ALTER COLUMN target_id SET DEFAULT nextval('targets_target_id_seq'::regclass);
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
--
|
|
1954
|
+
-- Name: user_agent_type_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1955
|
+
--
|
|
1956
|
+
|
|
1957
|
+
ALTER TABLE ONLY user_agent_types ALTER COLUMN user_agent_type_id SET DEFAULT nextval('user_agent_types_user_agent_type_id_seq'::regclass);
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
--
|
|
1961
|
+
-- Name: user_agent_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1962
|
+
--
|
|
1963
|
+
|
|
1964
|
+
ALTER TABLE ONLY user_agents ALTER COLUMN user_agent_id SET DEFAULT nextval('user_agents_user_agent_id_seq'::regclass);
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
--
|
|
1968
|
+
-- Name: visitor_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1969
|
+
--
|
|
1970
|
+
|
|
1971
|
+
ALTER TABLE ONLY visitors ALTER COLUMN visitor_id SET DEFAULT nextval('visitors_visitor_id_seq'::regclass);
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
--
|
|
1975
|
+
-- Name: visit_id; Type: DEFAULT; Schema: dummy_landable_traffic; Owner: -
|
|
1976
|
+
--
|
|
1977
|
+
|
|
1978
|
+
ALTER TABLE ONLY visits ALTER COLUMN visit_id SET DEFAULT nextval('visits_visit_id_seq'::regclass);
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
SET search_path = dummy_landable, pg_catalog;
|
|
1982
|
+
|
|
1983
|
+
--
|
|
1984
|
+
-- Name: access_tokens_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
1985
|
+
--
|
|
1986
|
+
|
|
1987
|
+
ALTER TABLE ONLY access_tokens
|
|
1988
|
+
ADD CONSTRAINT access_tokens_pkey PRIMARY KEY (access_token_id);
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
--
|
|
1992
|
+
-- Name: assets_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
1993
|
+
--
|
|
1994
|
+
|
|
1995
|
+
ALTER TABLE ONLY assets
|
|
1996
|
+
ADD CONSTRAINT assets_pkey PRIMARY KEY (asset_id);
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
--
|
|
2000
|
+
-- Name: authors_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2001
|
+
--
|
|
2002
|
+
|
|
2003
|
+
ALTER TABLE ONLY authors
|
|
2004
|
+
ADD CONSTRAINT authors_pkey PRIMARY KEY (author_id);
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
--
|
|
2008
|
+
-- Name: categories_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2009
|
+
--
|
|
2010
|
+
|
|
2011
|
+
ALTER TABLE ONLY categories
|
|
2012
|
+
ADD CONSTRAINT categories_pkey PRIMARY KEY (category_id);
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
--
|
|
2016
|
+
-- Name: page_assets_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2017
|
+
--
|
|
2018
|
+
|
|
2019
|
+
ALTER TABLE ONLY page_assets
|
|
2020
|
+
ADD CONSTRAINT page_assets_pkey PRIMARY KEY (page_asset_id);
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
--
|
|
2024
|
+
-- Name: page_revision_assets_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2025
|
+
--
|
|
2026
|
+
|
|
2027
|
+
ALTER TABLE ONLY page_revision_assets
|
|
2028
|
+
ADD CONSTRAINT page_revision_assets_pkey PRIMARY KEY (page_revision_asset_id);
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
--
|
|
2032
|
+
-- Name: page_revisions_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2033
|
+
--
|
|
2034
|
+
|
|
2035
|
+
ALTER TABLE ONLY page_revisions
|
|
2036
|
+
ADD CONSTRAINT page_revisions_pkey PRIMARY KEY (page_revision_id);
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
--
|
|
2040
|
+
-- Name: pages_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2041
|
+
--
|
|
2042
|
+
|
|
2043
|
+
ALTER TABLE ONLY pages
|
|
2044
|
+
ADD CONSTRAINT pages_pkey PRIMARY KEY (page_id);
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
--
|
|
2048
|
+
-- Name: templates_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2049
|
+
--
|
|
2050
|
+
|
|
2051
|
+
ALTER TABLE ONLY templates
|
|
2052
|
+
ADD CONSTRAINT templates_pkey PRIMARY KEY (template_id);
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
--
|
|
2056
|
+
-- Name: theme_assets_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2057
|
+
--
|
|
2058
|
+
|
|
2059
|
+
ALTER TABLE ONLY theme_assets
|
|
2060
|
+
ADD CONSTRAINT theme_assets_pkey PRIMARY KEY (theme_asset_id);
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
--
|
|
2064
|
+
-- Name: themes_pkey; Type: CONSTRAINT; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2065
|
+
--
|
|
2066
|
+
|
|
2067
|
+
ALTER TABLE ONLY themes
|
|
2068
|
+
ADD CONSTRAINT themes_pkey PRIMARY KEY (theme_id);
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
SET search_path = dummy_landable_traffic, pg_catalog;
|
|
2072
|
+
|
|
2073
|
+
--
|
|
2074
|
+
-- Name: accesses_path_id_visitor_id_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2075
|
+
--
|
|
2076
|
+
|
|
2077
|
+
ALTER TABLE ONLY accesses
|
|
2078
|
+
ADD CONSTRAINT accesses_path_id_visitor_id_key UNIQUE (path_id, visitor_id);
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
--
|
|
2082
|
+
-- Name: accesses_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2083
|
+
--
|
|
2084
|
+
|
|
2085
|
+
ALTER TABLE ONLY accesses
|
|
2086
|
+
ADD CONSTRAINT accesses_pkey PRIMARY KEY (access_id);
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
--
|
|
2090
|
+
-- Name: ad_groups_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2091
|
+
--
|
|
2092
|
+
|
|
2093
|
+
ALTER TABLE ONLY ad_groups
|
|
2094
|
+
ADD CONSTRAINT ad_groups_pkey PRIMARY KEY (ad_group_id);
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
--
|
|
2098
|
+
-- Name: ad_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2099
|
+
--
|
|
2100
|
+
|
|
2101
|
+
ALTER TABLE ONLY ad_types
|
|
2102
|
+
ADD CONSTRAINT ad_types_pkey PRIMARY KEY (ad_type_id);
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
--
|
|
2106
|
+
-- Name: attributions_ad_type_id_ad_group_id_bid_match_type_id_campa_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2107
|
+
--
|
|
2108
|
+
|
|
2109
|
+
ALTER TABLE ONLY attributions
|
|
2110
|
+
ADD CONSTRAINT attributions_ad_type_id_ad_group_id_bid_match_type_id_campa_key UNIQUE (ad_type_id, ad_group_id, bid_match_type_id, campaign_id, content_id, creative_id, device_type_id, experiment_id, keyword_id, match_type_id, medium_id, network_id, placement_id, position_id, search_term_id, source_id, target_id);
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
--
|
|
2114
|
+
-- Name: attributions_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2115
|
+
--
|
|
2116
|
+
|
|
2117
|
+
ALTER TABLE ONLY attributions
|
|
2118
|
+
ADD CONSTRAINT attributions_pkey PRIMARY KEY (attribution_id);
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
--
|
|
2122
|
+
-- Name: bid_match_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2123
|
+
--
|
|
2124
|
+
|
|
2125
|
+
ALTER TABLE ONLY bid_match_types
|
|
2126
|
+
ADD CONSTRAINT bid_match_types_pkey PRIMARY KEY (bid_match_type_id);
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
--
|
|
2130
|
+
-- Name: browsers_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2131
|
+
--
|
|
2132
|
+
|
|
2133
|
+
ALTER TABLE ONLY browsers
|
|
2134
|
+
ADD CONSTRAINT browsers_pkey PRIMARY KEY (browser_id);
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
--
|
|
2138
|
+
-- Name: campaigns_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2139
|
+
--
|
|
2140
|
+
|
|
2141
|
+
ALTER TABLE ONLY campaigns
|
|
2142
|
+
ADD CONSTRAINT campaigns_pkey PRIMARY KEY (campaign_id);
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
--
|
|
2146
|
+
-- Name: cities_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2147
|
+
--
|
|
2148
|
+
|
|
2149
|
+
ALTER TABLE ONLY cities
|
|
2150
|
+
ADD CONSTRAINT cities_pkey PRIMARY KEY (city_id);
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
--
|
|
2154
|
+
-- Name: contents_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2155
|
+
--
|
|
2156
|
+
|
|
2157
|
+
ALTER TABLE ONLY contents
|
|
2158
|
+
ADD CONSTRAINT contents_pkey PRIMARY KEY (content_id);
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
--
|
|
2162
|
+
-- Name: cookies_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2163
|
+
--
|
|
2164
|
+
|
|
2165
|
+
ALTER TABLE ONLY cookies
|
|
2166
|
+
ADD CONSTRAINT cookies_pkey PRIMARY KEY (cookie_id);
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
--
|
|
2170
|
+
-- Name: countries_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2171
|
+
--
|
|
2172
|
+
|
|
2173
|
+
ALTER TABLE ONLY countries
|
|
2174
|
+
ADD CONSTRAINT countries_pkey PRIMARY KEY (country_id);
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
--
|
|
2178
|
+
-- Name: creatives_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2179
|
+
--
|
|
2180
|
+
|
|
2181
|
+
ALTER TABLE ONLY creatives
|
|
2182
|
+
ADD CONSTRAINT creatives_pkey PRIMARY KEY (creative_id);
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
--
|
|
2186
|
+
-- Name: device_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2187
|
+
--
|
|
2188
|
+
|
|
2189
|
+
ALTER TABLE ONLY device_types
|
|
2190
|
+
ADD CONSTRAINT device_types_pkey PRIMARY KEY (device_type_id);
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
--
|
|
2194
|
+
-- Name: devices_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2195
|
+
--
|
|
2196
|
+
|
|
2197
|
+
ALTER TABLE ONLY devices
|
|
2198
|
+
ADD CONSTRAINT devices_pkey PRIMARY KEY (device_id);
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
--
|
|
2202
|
+
-- Name: domains_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2203
|
+
--
|
|
2204
|
+
|
|
2205
|
+
ALTER TABLE ONLY domains
|
|
2206
|
+
ADD CONSTRAINT domains_pkey PRIMARY KEY (domain_id);
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
--
|
|
2210
|
+
-- Name: event_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2211
|
+
--
|
|
2212
|
+
|
|
2213
|
+
ALTER TABLE ONLY event_types
|
|
2214
|
+
ADD CONSTRAINT event_types_pkey PRIMARY KEY (event_type_id);
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
--
|
|
2218
|
+
-- Name: events_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2219
|
+
--
|
|
2220
|
+
|
|
2221
|
+
ALTER TABLE ONLY events
|
|
2222
|
+
ADD CONSTRAINT events_pkey PRIMARY KEY (event_id);
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
--
|
|
2226
|
+
-- Name: experiments_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2227
|
+
--
|
|
2228
|
+
|
|
2229
|
+
ALTER TABLE ONLY experiments
|
|
2230
|
+
ADD CONSTRAINT experiments_pkey PRIMARY KEY (experiment_id);
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
--
|
|
2234
|
+
-- Name: http_methods_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2235
|
+
--
|
|
2236
|
+
|
|
2237
|
+
ALTER TABLE ONLY http_methods
|
|
2238
|
+
ADD CONSTRAINT http_methods_pkey PRIMARY KEY (http_method_id);
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
--
|
|
2242
|
+
-- Name: ip_addresses_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2243
|
+
--
|
|
2244
|
+
|
|
2245
|
+
ALTER TABLE ONLY ip_addresses
|
|
2246
|
+
ADD CONSTRAINT ip_addresses_pkey PRIMARY KEY (ip_address_id);
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
--
|
|
2250
|
+
-- Name: ip_lookups_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2251
|
+
--
|
|
2252
|
+
|
|
2253
|
+
ALTER TABLE ONLY ip_lookups
|
|
2254
|
+
ADD CONSTRAINT ip_lookups_pkey PRIMARY KEY (ip_lookup_id);
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
--
|
|
2258
|
+
-- Name: keywords_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2259
|
+
--
|
|
2260
|
+
|
|
2261
|
+
ALTER TABLE ONLY keywords
|
|
2262
|
+
ADD CONSTRAINT keywords_pkey PRIMARY KEY (keyword_id);
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
--
|
|
2266
|
+
-- Name: locations_country_id_region_id_city_id_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2267
|
+
--
|
|
2268
|
+
|
|
2269
|
+
ALTER TABLE ONLY locations
|
|
2270
|
+
ADD CONSTRAINT locations_country_id_region_id_city_id_key UNIQUE (country_id, region_id, city_id);
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
--
|
|
2274
|
+
-- Name: locations_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2275
|
+
--
|
|
2276
|
+
|
|
2277
|
+
ALTER TABLE ONLY locations
|
|
2278
|
+
ADD CONSTRAINT locations_pkey PRIMARY KEY (location_id);
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
--
|
|
2282
|
+
-- Name: match_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2283
|
+
--
|
|
2284
|
+
|
|
2285
|
+
ALTER TABLE ONLY match_types
|
|
2286
|
+
ADD CONSTRAINT match_types_pkey PRIMARY KEY (match_type_id);
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
--
|
|
2290
|
+
-- Name: mediums_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2291
|
+
--
|
|
2292
|
+
|
|
2293
|
+
ALTER TABLE ONLY mediums
|
|
2294
|
+
ADD CONSTRAINT mediums_pkey PRIMARY KEY (medium_id);
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
--
|
|
2298
|
+
-- Name: mime_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2299
|
+
--
|
|
2300
|
+
|
|
2301
|
+
ALTER TABLE ONLY mime_types
|
|
2302
|
+
ADD CONSTRAINT mime_types_pkey PRIMARY KEY (mime_type_id);
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
--
|
|
2306
|
+
-- Name: networks_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2307
|
+
--
|
|
2308
|
+
|
|
2309
|
+
ALTER TABLE ONLY networks
|
|
2310
|
+
ADD CONSTRAINT networks_pkey PRIMARY KEY (network_id);
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
--
|
|
2314
|
+
-- Name: owners_owner_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2315
|
+
--
|
|
2316
|
+
|
|
2317
|
+
ALTER TABLE ONLY owners
|
|
2318
|
+
ADD CONSTRAINT owners_owner_key UNIQUE (owner);
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
--
|
|
2322
|
+
-- Name: owners_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2323
|
+
--
|
|
2324
|
+
|
|
2325
|
+
ALTER TABLE ONLY owners
|
|
2326
|
+
ADD CONSTRAINT owners_pkey PRIMARY KEY (owner_id);
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
--
|
|
2330
|
+
-- Name: ownerships_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2331
|
+
--
|
|
2332
|
+
|
|
2333
|
+
ALTER TABLE ONLY ownerships
|
|
2334
|
+
ADD CONSTRAINT ownerships_pkey PRIMARY KEY (owner_id, cookie_id);
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
--
|
|
2338
|
+
-- Name: page_views_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2339
|
+
--
|
|
2340
|
+
|
|
2341
|
+
ALTER TABLE ONLY page_views
|
|
2342
|
+
ADD CONSTRAINT page_views_pkey PRIMARY KEY (page_view_id);
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
--
|
|
2346
|
+
-- Name: paths_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2347
|
+
--
|
|
2348
|
+
|
|
2349
|
+
ALTER TABLE ONLY paths
|
|
2350
|
+
ADD CONSTRAINT paths_pkey PRIMARY KEY (path_id);
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
--
|
|
2354
|
+
-- Name: placements_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2355
|
+
--
|
|
2356
|
+
|
|
2357
|
+
ALTER TABLE ONLY placements
|
|
2358
|
+
ADD CONSTRAINT placements_pkey PRIMARY KEY (placement_id);
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
--
|
|
2362
|
+
-- Name: platforms_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2363
|
+
--
|
|
2364
|
+
|
|
2365
|
+
ALTER TABLE ONLY platforms
|
|
2366
|
+
ADD CONSTRAINT platforms_pkey PRIMARY KEY (platform_id);
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
--
|
|
2370
|
+
-- Name: positions_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2371
|
+
--
|
|
2372
|
+
|
|
2373
|
+
ALTER TABLE ONLY positions
|
|
2374
|
+
ADD CONSTRAINT positions_pkey PRIMARY KEY (position_id);
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
--
|
|
2378
|
+
-- Name: query_strings_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2379
|
+
--
|
|
2380
|
+
|
|
2381
|
+
ALTER TABLE ONLY query_strings
|
|
2382
|
+
ADD CONSTRAINT query_strings_pkey PRIMARY KEY (query_string_id);
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
--
|
|
2386
|
+
-- Name: referers_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2387
|
+
--
|
|
2388
|
+
|
|
2389
|
+
ALTER TABLE ONLY referers
|
|
2390
|
+
ADD CONSTRAINT referers_pkey PRIMARY KEY (referer_id);
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
--
|
|
2394
|
+
-- Name: regions_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2395
|
+
--
|
|
2396
|
+
|
|
2397
|
+
ALTER TABLE ONLY regions
|
|
2398
|
+
ADD CONSTRAINT regions_pkey PRIMARY KEY (region_id);
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
--
|
|
2402
|
+
-- Name: search_terms_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2403
|
+
--
|
|
2404
|
+
|
|
2405
|
+
ALTER TABLE ONLY search_terms
|
|
2406
|
+
ADD CONSTRAINT search_terms_pkey PRIMARY KEY (search_term_id);
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
--
|
|
2410
|
+
-- Name: sources_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2411
|
+
--
|
|
2412
|
+
|
|
2413
|
+
ALTER TABLE ONLY sources
|
|
2414
|
+
ADD CONSTRAINT sources_pkey PRIMARY KEY (source_id);
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
--
|
|
2418
|
+
-- Name: targets_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2419
|
+
--
|
|
2420
|
+
|
|
2421
|
+
ALTER TABLE ONLY targets
|
|
2422
|
+
ADD CONSTRAINT targets_pkey PRIMARY KEY (target_id);
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
--
|
|
2426
|
+
-- Name: user_agent_types_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2427
|
+
--
|
|
2428
|
+
|
|
2429
|
+
ALTER TABLE ONLY user_agent_types
|
|
2430
|
+
ADD CONSTRAINT user_agent_types_pkey PRIMARY KEY (user_agent_type_id);
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
--
|
|
2434
|
+
-- Name: user_agents_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2435
|
+
--
|
|
2436
|
+
|
|
2437
|
+
ALTER TABLE ONLY user_agents
|
|
2438
|
+
ADD CONSTRAINT user_agents_pkey PRIMARY KEY (user_agent_id);
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
--
|
|
2442
|
+
-- Name: user_agents_user_agent_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2443
|
+
--
|
|
2444
|
+
|
|
2445
|
+
ALTER TABLE ONLY user_agents
|
|
2446
|
+
ADD CONSTRAINT user_agents_user_agent_key UNIQUE (user_agent);
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
--
|
|
2450
|
+
-- Name: visitors_ip_address_id_user_agent_id_key; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2451
|
+
--
|
|
2452
|
+
|
|
2453
|
+
ALTER TABLE ONLY visitors
|
|
2454
|
+
ADD CONSTRAINT visitors_ip_address_id_user_agent_id_key UNIQUE (ip_address_id, user_agent_id);
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
--
|
|
2458
|
+
-- Name: visitors_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2459
|
+
--
|
|
2460
|
+
|
|
2461
|
+
ALTER TABLE ONLY visitors
|
|
2462
|
+
ADD CONSTRAINT visitors_pkey PRIMARY KEY (visitor_id);
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
--
|
|
2466
|
+
-- Name: visits_pkey; Type: CONSTRAINT; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2467
|
+
--
|
|
2468
|
+
|
|
2469
|
+
ALTER TABLE ONLY visits
|
|
2470
|
+
ADD CONSTRAINT visits_pkey PRIMARY KEY (visit_id);
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
SET search_path = dummy_landable, pg_catalog;
|
|
2474
|
+
|
|
2475
|
+
--
|
|
2476
|
+
-- Name: dummy_landable_access_tokens__author_id; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2477
|
+
--
|
|
2478
|
+
|
|
2479
|
+
CREATE INDEX dummy_landable_access_tokens__author_id ON access_tokens USING btree (author_id);
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
--
|
|
2483
|
+
-- Name: dummy_landable_assets__author_id; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2484
|
+
--
|
|
2485
|
+
|
|
2486
|
+
CREATE INDEX dummy_landable_assets__author_id ON assets USING btree (author_id);
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
--
|
|
2490
|
+
-- Name: dummy_landable_assets__u_data; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2491
|
+
--
|
|
2492
|
+
|
|
2493
|
+
CREATE UNIQUE INDEX dummy_landable_assets__u_data ON assets USING btree (data);
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
--
|
|
2497
|
+
-- Name: dummy_landable_assets__u_lower_name; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2498
|
+
--
|
|
2499
|
+
|
|
2500
|
+
CREATE UNIQUE INDEX dummy_landable_assets__u_lower_name ON assets USING btree (lower(name));
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
--
|
|
2504
|
+
-- Name: dummy_landable_assets__u_md5sum; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2505
|
+
--
|
|
2506
|
+
|
|
2507
|
+
CREATE UNIQUE INDEX dummy_landable_assets__u_md5sum ON assets USING btree (md5sum);
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
--
|
|
2511
|
+
-- Name: dummy_landable_authors__u_email; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2512
|
+
--
|
|
2513
|
+
|
|
2514
|
+
CREATE UNIQUE INDEX dummy_landable_authors__u_email ON authors USING btree (lower(email));
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
--
|
|
2518
|
+
-- Name: dummy_landable_authors__u_username; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2519
|
+
--
|
|
2520
|
+
|
|
2521
|
+
CREATE UNIQUE INDEX dummy_landable_authors__u_username ON authors USING btree (username);
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
--
|
|
2525
|
+
-- Name: dummy_landable_categories__u_name; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2526
|
+
--
|
|
2527
|
+
|
|
2528
|
+
CREATE UNIQUE INDEX dummy_landable_categories__u_name ON categories USING btree (lower(name));
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
--
|
|
2532
|
+
-- Name: dummy_landable_page_assets__u_page_id_asset_id; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2533
|
+
--
|
|
2534
|
+
|
|
2535
|
+
CREATE UNIQUE INDEX dummy_landable_page_assets__u_page_id_asset_id ON page_assets USING btree (page_id, asset_id);
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
--
|
|
2539
|
+
-- Name: dummy_landable_page_revision_assets__u_page_revision_id_asset_i; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2540
|
+
--
|
|
2541
|
+
|
|
2542
|
+
CREATE UNIQUE INDEX dummy_landable_page_revision_assets__u_page_revision_id_asset_i ON page_revision_assets USING btree (page_revision_id, asset_id);
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
--
|
|
2546
|
+
-- Name: dummy_landable_page_revisions__path_status_code; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2547
|
+
--
|
|
2548
|
+
|
|
2549
|
+
CREATE INDEX dummy_landable_page_revisions__path_status_code ON page_revisions USING btree (path, status_code);
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
--
|
|
2553
|
+
-- Name: dummy_landable_pages__trgm_path; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2554
|
+
--
|
|
2555
|
+
|
|
2556
|
+
CREATE INDEX dummy_landable_pages__trgm_path ON pages USING gin (path public.gin_trgm_ops);
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
--
|
|
2560
|
+
-- Name: dummy_landable_pages__u_path; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2561
|
+
--
|
|
2562
|
+
|
|
2563
|
+
CREATE UNIQUE INDEX dummy_landable_pages__u_path ON pages USING btree (lower(path));
|
|
2564
|
+
|
|
2565
|
+
|
|
2566
|
+
--
|
|
2567
|
+
-- Name: dummy_landable_templates__u_name; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2568
|
+
--
|
|
2569
|
+
|
|
2570
|
+
CREATE UNIQUE INDEX dummy_landable_templates__u_name ON templates USING btree (lower(name));
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
--
|
|
2574
|
+
-- Name: dummy_landable_theme_assets__u_theme_id_asset_id; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2575
|
+
--
|
|
2576
|
+
|
|
2577
|
+
CREATE UNIQUE INDEX dummy_landable_theme_assets__u_theme_id_asset_id ON theme_assets USING btree (theme_id, asset_id);
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
--
|
|
2581
|
+
-- Name: dummy_landable_themes__u_file; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2582
|
+
--
|
|
2583
|
+
|
|
2584
|
+
CREATE UNIQUE INDEX dummy_landable_themes__u_file ON themes USING btree (lower(file));
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
--
|
|
2588
|
+
-- Name: dummy_landable_themes__u_name; Type: INDEX; Schema: dummy_landable; Owner: -; Tablespace:
|
|
2589
|
+
--
|
|
2590
|
+
|
|
2591
|
+
CREATE UNIQUE INDEX dummy_landable_themes__u_name ON themes USING btree (lower(name));
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
SET search_path = dummy_landable_traffic, pg_catalog;
|
|
2595
|
+
|
|
2596
|
+
--
|
|
2597
|
+
-- Name: accesses_visitor_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2598
|
+
--
|
|
2599
|
+
|
|
2600
|
+
CREATE INDEX accesses_visitor_id_idx ON accesses USING btree (visitor_id);
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
--
|
|
2604
|
+
-- Name: ad_groups__u_ad_group; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2605
|
+
--
|
|
2606
|
+
|
|
2607
|
+
CREATE UNIQUE INDEX ad_groups__u_ad_group ON ad_groups USING btree (ad_group);
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
--
|
|
2611
|
+
-- Name: ad_types__u_ad_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2612
|
+
--
|
|
2613
|
+
|
|
2614
|
+
CREATE UNIQUE INDEX ad_types__u_ad_type ON ad_types USING btree (ad_type);
|
|
2615
|
+
|
|
2616
|
+
|
|
2617
|
+
--
|
|
2618
|
+
-- Name: attributions_ad_group_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2619
|
+
--
|
|
2620
|
+
|
|
2621
|
+
CREATE INDEX attributions_ad_group_id_idx ON attributions USING btree (ad_group_id);
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
--
|
|
2625
|
+
-- Name: attributions_ad_type_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2626
|
+
--
|
|
2627
|
+
|
|
2628
|
+
CREATE INDEX attributions_ad_type_id_idx ON attributions USING btree (ad_type_id);
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
--
|
|
2632
|
+
-- Name: attributions_bid_match_type_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2633
|
+
--
|
|
2634
|
+
|
|
2635
|
+
CREATE INDEX attributions_bid_match_type_id_idx ON attributions USING btree (bid_match_type_id);
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
--
|
|
2639
|
+
-- Name: attributions_campaign_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2640
|
+
--
|
|
2641
|
+
|
|
2642
|
+
CREATE INDEX attributions_campaign_id_idx ON attributions USING btree (campaign_id);
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
--
|
|
2646
|
+
-- Name: attributions_content_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2647
|
+
--
|
|
2648
|
+
|
|
2649
|
+
CREATE INDEX attributions_content_id_idx ON attributions USING btree (content_id);
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
--
|
|
2653
|
+
-- Name: attributions_creative_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2654
|
+
--
|
|
2655
|
+
|
|
2656
|
+
CREATE INDEX attributions_creative_id_idx ON attributions USING btree (creative_id);
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
--
|
|
2660
|
+
-- Name: attributions_device_type_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2661
|
+
--
|
|
2662
|
+
|
|
2663
|
+
CREATE INDEX attributions_device_type_id_idx ON attributions USING btree (device_type_id);
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
--
|
|
2667
|
+
-- Name: attributions_experiment_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2668
|
+
--
|
|
2669
|
+
|
|
2670
|
+
CREATE INDEX attributions_experiment_id_idx ON attributions USING btree (experiment_id);
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
--
|
|
2674
|
+
-- Name: attributions_keyword_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2675
|
+
--
|
|
2676
|
+
|
|
2677
|
+
CREATE INDEX attributions_keyword_id_idx ON attributions USING btree (keyword_id);
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
--
|
|
2681
|
+
-- Name: attributions_match_type_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2682
|
+
--
|
|
2683
|
+
|
|
2684
|
+
CREATE INDEX attributions_match_type_id_idx ON attributions USING btree (match_type_id);
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
--
|
|
2688
|
+
-- Name: attributions_medium_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2689
|
+
--
|
|
2690
|
+
|
|
2691
|
+
CREATE INDEX attributions_medium_id_idx ON attributions USING btree (medium_id);
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
--
|
|
2695
|
+
-- Name: attributions_network_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2696
|
+
--
|
|
2697
|
+
|
|
2698
|
+
CREATE INDEX attributions_network_id_idx ON attributions USING btree (network_id);
|
|
2699
|
+
|
|
2700
|
+
|
|
2701
|
+
--
|
|
2702
|
+
-- Name: attributions_placement_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2703
|
+
--
|
|
2704
|
+
|
|
2705
|
+
CREATE INDEX attributions_placement_id_idx ON attributions USING btree (placement_id);
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
--
|
|
2709
|
+
-- Name: attributions_position_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2710
|
+
--
|
|
2711
|
+
|
|
2712
|
+
CREATE INDEX attributions_position_id_idx ON attributions USING btree (position_id);
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
--
|
|
2716
|
+
-- Name: attributions_search_term_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2717
|
+
--
|
|
2718
|
+
|
|
2719
|
+
CREATE INDEX attributions_search_term_id_idx ON attributions USING btree (search_term_id);
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
--
|
|
2723
|
+
-- Name: attributions_source_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2724
|
+
--
|
|
2725
|
+
|
|
2726
|
+
CREATE INDEX attributions_source_id_idx ON attributions USING btree (source_id);
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
--
|
|
2730
|
+
-- Name: attributions_target_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2731
|
+
--
|
|
2732
|
+
|
|
2733
|
+
CREATE INDEX attributions_target_id_idx ON attributions USING btree (target_id);
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
--
|
|
2737
|
+
-- Name: bid_match_types__u_bid_match_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2738
|
+
--
|
|
2739
|
+
|
|
2740
|
+
CREATE UNIQUE INDEX bid_match_types__u_bid_match_type ON bid_match_types USING btree (bid_match_type);
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
--
|
|
2744
|
+
-- Name: browsers__u_browser; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2745
|
+
--
|
|
2746
|
+
|
|
2747
|
+
CREATE UNIQUE INDEX browsers__u_browser ON browsers USING btree (browser);
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
--
|
|
2751
|
+
-- Name: campaigns__u_campaign; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2752
|
+
--
|
|
2753
|
+
|
|
2754
|
+
CREATE UNIQUE INDEX campaigns__u_campaign ON campaigns USING btree (campaign);
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
--
|
|
2758
|
+
-- Name: cities__u_city; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2759
|
+
--
|
|
2760
|
+
|
|
2761
|
+
CREATE UNIQUE INDEX cities__u_city ON cities USING btree (city);
|
|
2762
|
+
|
|
2763
|
+
|
|
2764
|
+
--
|
|
2765
|
+
-- Name: contents__u_content; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2766
|
+
--
|
|
2767
|
+
|
|
2768
|
+
CREATE UNIQUE INDEX contents__u_content ON contents USING btree (content);
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
--
|
|
2772
|
+
-- Name: countries__u_country; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2773
|
+
--
|
|
2774
|
+
|
|
2775
|
+
CREATE UNIQUE INDEX countries__u_country ON countries USING btree (country);
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
--
|
|
2779
|
+
-- Name: creatives__u_creative; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2780
|
+
--
|
|
2781
|
+
|
|
2782
|
+
CREATE UNIQUE INDEX creatives__u_creative ON creatives USING btree (creative);
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
--
|
|
2786
|
+
-- Name: device_types__u_device_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2787
|
+
--
|
|
2788
|
+
|
|
2789
|
+
CREATE UNIQUE INDEX device_types__u_device_type ON device_types USING btree (device_type);
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
--
|
|
2793
|
+
-- Name: devices__u_device; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2794
|
+
--
|
|
2795
|
+
|
|
2796
|
+
CREATE UNIQUE INDEX devices__u_device ON devices USING btree (device);
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
--
|
|
2800
|
+
-- Name: domains__u_domain; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2801
|
+
--
|
|
2802
|
+
|
|
2803
|
+
CREATE UNIQUE INDEX domains__u_domain ON domains USING btree (domain);
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
--
|
|
2807
|
+
-- Name: event_types__u_event_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2808
|
+
--
|
|
2809
|
+
|
|
2810
|
+
CREATE UNIQUE INDEX event_types__u_event_type ON event_types USING btree (event_type);
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
--
|
|
2814
|
+
-- Name: events_event_type_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2815
|
+
--
|
|
2816
|
+
|
|
2817
|
+
CREATE INDEX events_event_type_id_idx ON events USING btree (event_type_id);
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
--
|
|
2821
|
+
-- Name: events_visit_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2822
|
+
--
|
|
2823
|
+
|
|
2824
|
+
CREATE INDEX events_visit_id_idx ON events USING btree (visit_id);
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
--
|
|
2828
|
+
-- Name: experiments__u_experiment; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2829
|
+
--
|
|
2830
|
+
|
|
2831
|
+
CREATE UNIQUE INDEX experiments__u_experiment ON experiments USING btree (experiment);
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
--
|
|
2835
|
+
-- Name: http_methods__u_http_method; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2836
|
+
--
|
|
2837
|
+
|
|
2838
|
+
CREATE UNIQUE INDEX http_methods__u_http_method ON http_methods USING btree (http_method);
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
--
|
|
2842
|
+
-- Name: ip_addresses__u_ip_address; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2843
|
+
--
|
|
2844
|
+
|
|
2845
|
+
CREATE UNIQUE INDEX ip_addresses__u_ip_address ON ip_addresses USING btree (ip_address);
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
--
|
|
2849
|
+
-- Name: ip_lookups_domain_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2850
|
+
--
|
|
2851
|
+
|
|
2852
|
+
CREATE INDEX ip_lookups_domain_id_idx ON ip_lookups USING btree (domain_id);
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
--
|
|
2856
|
+
-- Name: ip_lookups_ip_address_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2857
|
+
--
|
|
2858
|
+
|
|
2859
|
+
CREATE INDEX ip_lookups_ip_address_id_idx ON ip_lookups USING btree (ip_address_id);
|
|
2860
|
+
|
|
2861
|
+
|
|
2862
|
+
--
|
|
2863
|
+
-- Name: ip_lookups_location_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2864
|
+
--
|
|
2865
|
+
|
|
2866
|
+
CREATE INDEX ip_lookups_location_id_idx ON ip_lookups USING btree (location_id);
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
--
|
|
2870
|
+
-- Name: keywords__u_keyword; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2871
|
+
--
|
|
2872
|
+
|
|
2873
|
+
CREATE UNIQUE INDEX keywords__u_keyword ON keywords USING btree (keyword);
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
--
|
|
2877
|
+
-- Name: locations_city_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2878
|
+
--
|
|
2879
|
+
|
|
2880
|
+
CREATE INDEX locations_city_id_idx ON locations USING btree (city_id);
|
|
2881
|
+
|
|
2882
|
+
|
|
2883
|
+
--
|
|
2884
|
+
-- Name: locations_country_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2885
|
+
--
|
|
2886
|
+
|
|
2887
|
+
CREATE INDEX locations_country_id_idx ON locations USING btree (country_id);
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
--
|
|
2891
|
+
-- Name: locations_region_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2892
|
+
--
|
|
2893
|
+
|
|
2894
|
+
CREATE INDEX locations_region_id_idx ON locations USING btree (region_id);
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
--
|
|
2898
|
+
-- Name: match_types__u_match_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2899
|
+
--
|
|
2900
|
+
|
|
2901
|
+
CREATE UNIQUE INDEX match_types__u_match_type ON match_types USING btree (match_type);
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
--
|
|
2905
|
+
-- Name: mediums__u_medium; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2906
|
+
--
|
|
2907
|
+
|
|
2908
|
+
CREATE UNIQUE INDEX mediums__u_medium ON mediums USING btree (medium);
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
--
|
|
2912
|
+
-- Name: mime_types__u_mime_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2913
|
+
--
|
|
2914
|
+
|
|
2915
|
+
CREATE UNIQUE INDEX mime_types__u_mime_type ON mime_types USING btree (mime_type);
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
--
|
|
2919
|
+
-- Name: networks__u_network; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2920
|
+
--
|
|
2921
|
+
|
|
2922
|
+
CREATE UNIQUE INDEX networks__u_network ON networks USING btree (network);
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
--
|
|
2926
|
+
-- Name: page_views_click_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2927
|
+
--
|
|
2928
|
+
|
|
2929
|
+
CREATE INDEX page_views_click_id_idx ON page_views USING btree (click_id);
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
--
|
|
2933
|
+
-- Name: page_views_page_revision_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2934
|
+
--
|
|
2935
|
+
|
|
2936
|
+
CREATE INDEX page_views_page_revision_id_idx ON page_views USING btree (page_revision_id);
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
--
|
|
2940
|
+
-- Name: page_views_path_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2941
|
+
--
|
|
2942
|
+
|
|
2943
|
+
CREATE INDEX page_views_path_id_idx ON page_views USING btree (path_id);
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
--
|
|
2947
|
+
-- Name: page_views_query_string_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2948
|
+
--
|
|
2949
|
+
|
|
2950
|
+
CREATE INDEX page_views_query_string_id_idx ON page_views USING btree (query_string_id);
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
--
|
|
2954
|
+
-- Name: page_views_request_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2955
|
+
--
|
|
2956
|
+
|
|
2957
|
+
CREATE INDEX page_views_request_id_idx ON page_views USING btree (request_id);
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
--
|
|
2961
|
+
-- Name: page_views_visit_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2962
|
+
--
|
|
2963
|
+
|
|
2964
|
+
CREATE INDEX page_views_visit_id_idx ON page_views USING btree (visit_id);
|
|
2965
|
+
|
|
2966
|
+
|
|
2967
|
+
--
|
|
2968
|
+
-- Name: paths__u_path; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2969
|
+
--
|
|
2970
|
+
|
|
2971
|
+
CREATE UNIQUE INDEX paths__u_path ON paths USING btree (path);
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
--
|
|
2975
|
+
-- Name: placements__u_placement; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2976
|
+
--
|
|
2977
|
+
|
|
2978
|
+
CREATE UNIQUE INDEX placements__u_placement ON placements USING btree (placement);
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
--
|
|
2982
|
+
-- Name: platforms__u_platform; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2983
|
+
--
|
|
2984
|
+
|
|
2985
|
+
CREATE UNIQUE INDEX platforms__u_platform ON platforms USING btree (platform);
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
--
|
|
2989
|
+
-- Name: positions__u_position; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2990
|
+
--
|
|
2991
|
+
|
|
2992
|
+
CREATE UNIQUE INDEX positions__u_position ON positions USING btree ("position");
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
--
|
|
2996
|
+
-- Name: query_strings__u_query_string; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
2997
|
+
--
|
|
2998
|
+
|
|
2999
|
+
CREATE UNIQUE INDEX query_strings__u_query_string ON query_strings USING btree (query_string);
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
--
|
|
3003
|
+
-- Name: referers_domain_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3004
|
+
--
|
|
3005
|
+
|
|
3006
|
+
CREATE INDEX referers_domain_id_idx ON referers USING btree (domain_id);
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
--
|
|
3010
|
+
-- Name: referers_domain_id_path_id_query_string_id_attribution_id; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3011
|
+
--
|
|
3012
|
+
|
|
3013
|
+
CREATE UNIQUE INDEX referers_domain_id_path_id_query_string_id_attribution_id ON referers USING btree (domain_id, path_id, query_string_id, attribution_id);
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
--
|
|
3017
|
+
-- Name: referers_path_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3018
|
+
--
|
|
3019
|
+
|
|
3020
|
+
CREATE INDEX referers_path_id_idx ON referers USING btree (path_id);
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
--
|
|
3024
|
+
-- Name: referers_query_string_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3025
|
+
--
|
|
3026
|
+
|
|
3027
|
+
CREATE INDEX referers_query_string_id_idx ON referers USING btree (query_string_id);
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
--
|
|
3031
|
+
-- Name: regions__u_region; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3032
|
+
--
|
|
3033
|
+
|
|
3034
|
+
CREATE UNIQUE INDEX regions__u_region ON regions USING btree (region);
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
--
|
|
3038
|
+
-- Name: search_terms__u_search_term; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3039
|
+
--
|
|
3040
|
+
|
|
3041
|
+
CREATE UNIQUE INDEX search_terms__u_search_term ON search_terms USING btree (search_term);
|
|
3042
|
+
|
|
3043
|
+
|
|
3044
|
+
--
|
|
3045
|
+
-- Name: sources__u_source; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3046
|
+
--
|
|
3047
|
+
|
|
3048
|
+
CREATE UNIQUE INDEX sources__u_source ON sources USING btree (source);
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
--
|
|
3052
|
+
-- Name: targets__u_target; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3053
|
+
--
|
|
3054
|
+
|
|
3055
|
+
CREATE UNIQUE INDEX targets__u_target ON targets USING btree (target);
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
--
|
|
3059
|
+
-- Name: user_agent_types__u_user_agent_type; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3060
|
+
--
|
|
3061
|
+
|
|
3062
|
+
CREATE UNIQUE INDEX user_agent_types__u_user_agent_type ON user_agent_types USING btree (user_agent_type);
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
--
|
|
3066
|
+
-- Name: user_agents_browser_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3067
|
+
--
|
|
3068
|
+
|
|
3069
|
+
CREATE INDEX user_agents_browser_id_idx ON user_agents USING btree (browser_id);
|
|
3070
|
+
|
|
3071
|
+
|
|
3072
|
+
--
|
|
3073
|
+
-- Name: user_agents_device_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3074
|
+
--
|
|
3075
|
+
|
|
3076
|
+
CREATE INDEX user_agents_device_id_idx ON user_agents USING btree (device_id);
|
|
3077
|
+
|
|
3078
|
+
|
|
3079
|
+
--
|
|
3080
|
+
-- Name: user_agents_platform_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3081
|
+
--
|
|
3082
|
+
|
|
3083
|
+
CREATE INDEX user_agents_platform_id_idx ON user_agents USING btree (platform_id);
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
--
|
|
3087
|
+
-- Name: visitors_user_agent_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3088
|
+
--
|
|
3089
|
+
|
|
3090
|
+
CREATE INDEX visitors_user_agent_id_idx ON visitors USING btree (user_agent_id);
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
--
|
|
3094
|
+
-- Name: visits_attribution_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3095
|
+
--
|
|
3096
|
+
|
|
3097
|
+
CREATE INDEX visits_attribution_id_idx ON visits USING btree (attribution_id);
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
--
|
|
3101
|
+
-- Name: visits_cookie_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3102
|
+
--
|
|
3103
|
+
|
|
3104
|
+
CREATE INDEX visits_cookie_id_idx ON visits USING btree (cookie_id);
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
--
|
|
3108
|
+
-- Name: visits_owner_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3109
|
+
--
|
|
3110
|
+
|
|
3111
|
+
CREATE INDEX visits_owner_id_idx ON visits USING btree (owner_id);
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
--
|
|
3115
|
+
-- Name: visits_referer_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3116
|
+
--
|
|
3117
|
+
|
|
3118
|
+
CREATE INDEX visits_referer_id_idx ON visits USING btree (referer_id);
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
--
|
|
3122
|
+
-- Name: visits_visitor_id_idx; Type: INDEX; Schema: dummy_landable_traffic; Owner: -; Tablespace:
|
|
3123
|
+
--
|
|
3124
|
+
|
|
3125
|
+
CREATE INDEX visits_visitor_id_idx ON visits USING btree (visitor_id);
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
SET search_path = public, pg_catalog;
|
|
3129
|
+
|
|
3130
|
+
--
|
|
3131
|
+
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
|
3132
|
+
--
|
|
3133
|
+
|
|
3134
|
+
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
SET search_path = dummy_landable, pg_catalog;
|
|
3138
|
+
|
|
3139
|
+
--
|
|
3140
|
+
-- Name: dummy_landable_page_revisions__bfr_insert; Type: TRIGGER; Schema: dummy_landable; Owner: -
|
|
3141
|
+
--
|
|
3142
|
+
|
|
3143
|
+
CREATE TRIGGER dummy_landable_page_revisions__bfr_insert BEFORE INSERT ON page_revisions FOR EACH ROW EXECUTE PROCEDURE pages_revision_ordinal();
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
--
|
|
3147
|
+
-- Name: dummy_landable_page_revisions__no_delete; Type: TRIGGER; Schema: dummy_landable; Owner: -
|
|
3148
|
+
--
|
|
3149
|
+
|
|
3150
|
+
CREATE TRIGGER dummy_landable_page_revisions__no_delete BEFORE DELETE ON page_revisions FOR EACH STATEMENT EXECUTE PROCEDURE tg_disallow();
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
--
|
|
3154
|
+
-- Name: dummy_landable_page_revisions__no_update; Type: TRIGGER; Schema: dummy_landable; Owner: -
|
|
3155
|
+
--
|
|
3156
|
+
|
|
3157
|
+
CREATE TRIGGER dummy_landable_page_revisions__no_update BEFORE UPDATE OF notes, is_minor, page_id, author_id, created_at, ordinal, theme_id, status_code, category_id, redirect_url, body ON page_revisions FOR EACH STATEMENT EXECUTE PROCEDURE tg_disallow();
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
--
|
|
3161
|
+
-- Name: asset_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3162
|
+
--
|
|
3163
|
+
|
|
3164
|
+
ALTER TABLE ONLY page_assets
|
|
3165
|
+
ADD CONSTRAINT asset_id_fk FOREIGN KEY (asset_id) REFERENCES assets(asset_id);
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
--
|
|
3169
|
+
-- Name: asset_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3170
|
+
--
|
|
3171
|
+
|
|
3172
|
+
ALTER TABLE ONLY page_revision_assets
|
|
3173
|
+
ADD CONSTRAINT asset_id_fk FOREIGN KEY (asset_id) REFERENCES assets(asset_id);
|
|
3174
|
+
|
|
3175
|
+
|
|
3176
|
+
--
|
|
3177
|
+
-- Name: asset_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3178
|
+
--
|
|
3179
|
+
|
|
3180
|
+
ALTER TABLE ONLY theme_assets
|
|
3181
|
+
ADD CONSTRAINT asset_id_fk FOREIGN KEY (asset_id) REFERENCES assets(asset_id);
|
|
3182
|
+
|
|
3183
|
+
|
|
3184
|
+
--
|
|
3185
|
+
-- Name: author_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3186
|
+
--
|
|
3187
|
+
|
|
3188
|
+
ALTER TABLE ONLY access_tokens
|
|
3189
|
+
ADD CONSTRAINT author_id_fk FOREIGN KEY (author_id) REFERENCES authors(author_id);
|
|
3190
|
+
|
|
3191
|
+
|
|
3192
|
+
--
|
|
3193
|
+
-- Name: author_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3194
|
+
--
|
|
3195
|
+
|
|
3196
|
+
ALTER TABLE ONLY assets
|
|
3197
|
+
ADD CONSTRAINT author_id_fk FOREIGN KEY (author_id) REFERENCES authors(author_id);
|
|
3198
|
+
|
|
3199
|
+
|
|
3200
|
+
--
|
|
3201
|
+
-- Name: author_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3202
|
+
--
|
|
3203
|
+
|
|
3204
|
+
ALTER TABLE ONLY page_revisions
|
|
3205
|
+
ADD CONSTRAINT author_id_fk FOREIGN KEY (author_id) REFERENCES authors(author_id);
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
--
|
|
3209
|
+
-- Name: category_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3210
|
+
--
|
|
3211
|
+
|
|
3212
|
+
ALTER TABLE ONLY pages
|
|
3213
|
+
ADD CONSTRAINT category_id_fk FOREIGN KEY (category_id) REFERENCES categories(category_id);
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
--
|
|
3217
|
+
-- Name: category_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3218
|
+
--
|
|
3219
|
+
|
|
3220
|
+
ALTER TABLE ONLY page_revisions
|
|
3221
|
+
ADD CONSTRAINT category_id_fk FOREIGN KEY (category_id) REFERENCES categories(category_id);
|
|
3222
|
+
|
|
3223
|
+
|
|
3224
|
+
--
|
|
3225
|
+
-- Name: page_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3226
|
+
--
|
|
3227
|
+
|
|
3228
|
+
ALTER TABLE ONLY page_assets
|
|
3229
|
+
ADD CONSTRAINT page_id_fk FOREIGN KEY (page_id) REFERENCES pages(page_id);
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
--
|
|
3233
|
+
-- Name: page_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3234
|
+
--
|
|
3235
|
+
|
|
3236
|
+
ALTER TABLE ONLY page_revisions
|
|
3237
|
+
ADD CONSTRAINT page_id_fk FOREIGN KEY (page_id) REFERENCES pages(page_id);
|
|
3238
|
+
|
|
3239
|
+
|
|
3240
|
+
--
|
|
3241
|
+
-- Name: page_revision_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3242
|
+
--
|
|
3243
|
+
|
|
3244
|
+
ALTER TABLE ONLY page_revision_assets
|
|
3245
|
+
ADD CONSTRAINT page_revision_id_fk FOREIGN KEY (page_revision_id) REFERENCES page_revisions(page_revision_id);
|
|
3246
|
+
|
|
3247
|
+
|
|
3248
|
+
--
|
|
3249
|
+
-- Name: revision_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3250
|
+
--
|
|
3251
|
+
|
|
3252
|
+
ALTER TABLE ONLY pages
|
|
3253
|
+
ADD CONSTRAINT revision_id_fk FOREIGN KEY (published_revision_id) REFERENCES page_revisions(page_revision_id);
|
|
3254
|
+
|
|
3255
|
+
|
|
3256
|
+
--
|
|
3257
|
+
-- Name: theme_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3258
|
+
--
|
|
3259
|
+
|
|
3260
|
+
ALTER TABLE ONLY theme_assets
|
|
3261
|
+
ADD CONSTRAINT theme_id_fk FOREIGN KEY (theme_id) REFERENCES themes(theme_id);
|
|
3262
|
+
|
|
3263
|
+
|
|
3264
|
+
--
|
|
3265
|
+
-- Name: theme_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3266
|
+
--
|
|
3267
|
+
|
|
3268
|
+
ALTER TABLE ONLY pages
|
|
3269
|
+
ADD CONSTRAINT theme_id_fk FOREIGN KEY (theme_id) REFERENCES themes(theme_id);
|
|
3270
|
+
|
|
3271
|
+
|
|
3272
|
+
--
|
|
3273
|
+
-- Name: theme_id_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3274
|
+
--
|
|
3275
|
+
|
|
3276
|
+
ALTER TABLE ONLY page_revisions
|
|
3277
|
+
ADD CONSTRAINT theme_id_fk FOREIGN KEY (theme_id) REFERENCES themes(theme_id);
|
|
3278
|
+
|
|
3279
|
+
|
|
3280
|
+
--
|
|
3281
|
+
-- Name: updated_author_fk; Type: FK CONSTRAINT; Schema: dummy_landable; Owner: -
|
|
3282
|
+
--
|
|
3283
|
+
|
|
3284
|
+
ALTER TABLE ONLY pages
|
|
3285
|
+
ADD CONSTRAINT updated_author_fk FOREIGN KEY (updated_by_author_id) REFERENCES authors(author_id);
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
SET search_path = dummy_landable_traffic, pg_catalog;
|
|
3289
|
+
|
|
3290
|
+
--
|
|
3291
|
+
-- Name: accesses_path_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3292
|
+
--
|
|
3293
|
+
|
|
3294
|
+
ALTER TABLE ONLY accesses
|
|
3295
|
+
ADD CONSTRAINT accesses_path_id_fkey FOREIGN KEY (path_id) REFERENCES paths(path_id);
|
|
3296
|
+
|
|
3297
|
+
|
|
3298
|
+
--
|
|
3299
|
+
-- Name: accesses_visitor_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3300
|
+
--
|
|
3301
|
+
|
|
3302
|
+
ALTER TABLE ONLY accesses
|
|
3303
|
+
ADD CONSTRAINT accesses_visitor_id_fkey FOREIGN KEY (visitor_id) REFERENCES visitors(visitor_id);
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
--
|
|
3307
|
+
-- Name: attributions_ad_group_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3308
|
+
--
|
|
3309
|
+
|
|
3310
|
+
ALTER TABLE ONLY attributions
|
|
3311
|
+
ADD CONSTRAINT attributions_ad_group_id_fkey FOREIGN KEY (ad_group_id) REFERENCES ad_groups(ad_group_id);
|
|
3312
|
+
|
|
3313
|
+
|
|
3314
|
+
--
|
|
3315
|
+
-- Name: attributions_ad_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3316
|
+
--
|
|
3317
|
+
|
|
3318
|
+
ALTER TABLE ONLY attributions
|
|
3319
|
+
ADD CONSTRAINT attributions_ad_type_id_fkey FOREIGN KEY (ad_type_id) REFERENCES ad_types(ad_type_id);
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
--
|
|
3323
|
+
-- Name: attributions_bid_match_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3324
|
+
--
|
|
3325
|
+
|
|
3326
|
+
ALTER TABLE ONLY attributions
|
|
3327
|
+
ADD CONSTRAINT attributions_bid_match_type_id_fkey FOREIGN KEY (bid_match_type_id) REFERENCES bid_match_types(bid_match_type_id);
|
|
3328
|
+
|
|
3329
|
+
|
|
3330
|
+
--
|
|
3331
|
+
-- Name: attributions_campaign_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3332
|
+
--
|
|
3333
|
+
|
|
3334
|
+
ALTER TABLE ONLY attributions
|
|
3335
|
+
ADD CONSTRAINT attributions_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES campaigns(campaign_id);
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
--
|
|
3339
|
+
-- Name: attributions_content_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3340
|
+
--
|
|
3341
|
+
|
|
3342
|
+
ALTER TABLE ONLY attributions
|
|
3343
|
+
ADD CONSTRAINT attributions_content_id_fkey FOREIGN KEY (content_id) REFERENCES contents(content_id);
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
--
|
|
3347
|
+
-- Name: attributions_creative_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3348
|
+
--
|
|
3349
|
+
|
|
3350
|
+
ALTER TABLE ONLY attributions
|
|
3351
|
+
ADD CONSTRAINT attributions_creative_id_fkey FOREIGN KEY (creative_id) REFERENCES creatives(creative_id);
|
|
3352
|
+
|
|
3353
|
+
|
|
3354
|
+
--
|
|
3355
|
+
-- Name: attributions_device_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3356
|
+
--
|
|
3357
|
+
|
|
3358
|
+
ALTER TABLE ONLY attributions
|
|
3359
|
+
ADD CONSTRAINT attributions_device_type_id_fkey FOREIGN KEY (device_type_id) REFERENCES device_types(device_type_id);
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
--
|
|
3363
|
+
-- Name: attributions_experiment_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3364
|
+
--
|
|
3365
|
+
|
|
3366
|
+
ALTER TABLE ONLY attributions
|
|
3367
|
+
ADD CONSTRAINT attributions_experiment_id_fkey FOREIGN KEY (experiment_id) REFERENCES experiments(experiment_id);
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
--
|
|
3371
|
+
-- Name: attributions_keyword_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3372
|
+
--
|
|
3373
|
+
|
|
3374
|
+
ALTER TABLE ONLY attributions
|
|
3375
|
+
ADD CONSTRAINT attributions_keyword_id_fkey FOREIGN KEY (keyword_id) REFERENCES keywords(keyword_id);
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
--
|
|
3379
|
+
-- Name: attributions_match_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3380
|
+
--
|
|
3381
|
+
|
|
3382
|
+
ALTER TABLE ONLY attributions
|
|
3383
|
+
ADD CONSTRAINT attributions_match_type_id_fkey FOREIGN KEY (match_type_id) REFERENCES match_types(match_type_id);
|
|
3384
|
+
|
|
3385
|
+
|
|
3386
|
+
--
|
|
3387
|
+
-- Name: attributions_medium_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3388
|
+
--
|
|
3389
|
+
|
|
3390
|
+
ALTER TABLE ONLY attributions
|
|
3391
|
+
ADD CONSTRAINT attributions_medium_id_fkey FOREIGN KEY (medium_id) REFERENCES mediums(medium_id);
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
--
|
|
3395
|
+
-- Name: attributions_network_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3396
|
+
--
|
|
3397
|
+
|
|
3398
|
+
ALTER TABLE ONLY attributions
|
|
3399
|
+
ADD CONSTRAINT attributions_network_id_fkey FOREIGN KEY (network_id) REFERENCES networks(network_id);
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
--
|
|
3403
|
+
-- Name: attributions_placement_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3404
|
+
--
|
|
3405
|
+
|
|
3406
|
+
ALTER TABLE ONLY attributions
|
|
3407
|
+
ADD CONSTRAINT attributions_placement_id_fkey FOREIGN KEY (placement_id) REFERENCES placements(placement_id);
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
--
|
|
3411
|
+
-- Name: attributions_position_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3412
|
+
--
|
|
3413
|
+
|
|
3414
|
+
ALTER TABLE ONLY attributions
|
|
3415
|
+
ADD CONSTRAINT attributions_position_id_fkey FOREIGN KEY (position_id) REFERENCES positions(position_id);
|
|
3416
|
+
|
|
3417
|
+
|
|
3418
|
+
--
|
|
3419
|
+
-- Name: attributions_search_term_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3420
|
+
--
|
|
3421
|
+
|
|
3422
|
+
ALTER TABLE ONLY attributions
|
|
3423
|
+
ADD CONSTRAINT attributions_search_term_id_fkey FOREIGN KEY (search_term_id) REFERENCES search_terms(search_term_id);
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
--
|
|
3427
|
+
-- Name: attributions_source_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3428
|
+
--
|
|
3429
|
+
|
|
3430
|
+
ALTER TABLE ONLY attributions
|
|
3431
|
+
ADD CONSTRAINT attributions_source_id_fkey FOREIGN KEY (source_id) REFERENCES sources(source_id);
|
|
3432
|
+
|
|
3433
|
+
|
|
3434
|
+
--
|
|
3435
|
+
-- Name: attributions_target_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3436
|
+
--
|
|
3437
|
+
|
|
3438
|
+
ALTER TABLE ONLY attributions
|
|
3439
|
+
ADD CONSTRAINT attributions_target_id_fkey FOREIGN KEY (target_id) REFERENCES targets(target_id);
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
--
|
|
3443
|
+
-- Name: events_event_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3444
|
+
--
|
|
3445
|
+
|
|
3446
|
+
ALTER TABLE ONLY events
|
|
3447
|
+
ADD CONSTRAINT events_event_type_id_fkey FOREIGN KEY (event_type_id) REFERENCES event_types(event_type_id);
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
--
|
|
3451
|
+
-- Name: events_visit_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3452
|
+
--
|
|
3453
|
+
|
|
3454
|
+
ALTER TABLE ONLY events
|
|
3455
|
+
ADD CONSTRAINT events_visit_id_fkey FOREIGN KEY (visit_id) REFERENCES visits(visit_id);
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
--
|
|
3459
|
+
-- Name: ip_lookups_domain_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3460
|
+
--
|
|
3461
|
+
|
|
3462
|
+
ALTER TABLE ONLY ip_lookups
|
|
3463
|
+
ADD CONSTRAINT ip_lookups_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES domains(domain_id);
|
|
3464
|
+
|
|
3465
|
+
|
|
3466
|
+
--
|
|
3467
|
+
-- Name: ip_lookups_ip_address_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3468
|
+
--
|
|
3469
|
+
|
|
3470
|
+
ALTER TABLE ONLY ip_lookups
|
|
3471
|
+
ADD CONSTRAINT ip_lookups_ip_address_id_fkey FOREIGN KEY (ip_address_id) REFERENCES ip_addresses(ip_address_id);
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
--
|
|
3475
|
+
-- Name: ip_lookups_location_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3476
|
+
--
|
|
3477
|
+
|
|
3478
|
+
ALTER TABLE ONLY ip_lookups
|
|
3479
|
+
ADD CONSTRAINT ip_lookups_location_id_fkey FOREIGN KEY (location_id) REFERENCES locations(location_id);
|
|
3480
|
+
|
|
3481
|
+
|
|
3482
|
+
--
|
|
3483
|
+
-- Name: locations_city_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3484
|
+
--
|
|
3485
|
+
|
|
3486
|
+
ALTER TABLE ONLY locations
|
|
3487
|
+
ADD CONSTRAINT locations_city_id_fkey FOREIGN KEY (city_id) REFERENCES cities(city_id);
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
--
|
|
3491
|
+
-- Name: locations_country_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3492
|
+
--
|
|
3493
|
+
|
|
3494
|
+
ALTER TABLE ONLY locations
|
|
3495
|
+
ADD CONSTRAINT locations_country_id_fkey FOREIGN KEY (country_id) REFERENCES countries(country_id);
|
|
3496
|
+
|
|
3497
|
+
|
|
3498
|
+
--
|
|
3499
|
+
-- Name: locations_region_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3500
|
+
--
|
|
3501
|
+
|
|
3502
|
+
ALTER TABLE ONLY locations
|
|
3503
|
+
ADD CONSTRAINT locations_region_id_fkey FOREIGN KEY (region_id) REFERENCES regions(region_id);
|
|
3504
|
+
|
|
3505
|
+
|
|
3506
|
+
--
|
|
3507
|
+
-- Name: ownerships_cookie_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3508
|
+
--
|
|
3509
|
+
|
|
3510
|
+
ALTER TABLE ONLY ownerships
|
|
3511
|
+
ADD CONSTRAINT ownerships_cookie_id_fkey FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id);
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
--
|
|
3515
|
+
-- Name: ownerships_owner_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3516
|
+
--
|
|
3517
|
+
|
|
3518
|
+
ALTER TABLE ONLY ownerships
|
|
3519
|
+
ADD CONSTRAINT ownerships_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES owners(owner_id);
|
|
3520
|
+
|
|
3521
|
+
|
|
3522
|
+
--
|
|
3523
|
+
-- Name: page_views_http_method_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3524
|
+
--
|
|
3525
|
+
|
|
3526
|
+
ALTER TABLE ONLY page_views
|
|
3527
|
+
ADD CONSTRAINT page_views_http_method_id_fkey FOREIGN KEY (http_method_id) REFERENCES http_methods(http_method_id);
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
--
|
|
3531
|
+
-- Name: page_views_mime_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3532
|
+
--
|
|
3533
|
+
|
|
3534
|
+
ALTER TABLE ONLY page_views
|
|
3535
|
+
ADD CONSTRAINT page_views_mime_type_id_fkey FOREIGN KEY (mime_type_id) REFERENCES mime_types(mime_type_id);
|
|
3536
|
+
|
|
3537
|
+
|
|
3538
|
+
--
|
|
3539
|
+
-- Name: page_views_page_revision_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3540
|
+
--
|
|
3541
|
+
|
|
3542
|
+
ALTER TABLE ONLY page_views
|
|
3543
|
+
ADD CONSTRAINT page_views_page_revision_id_fkey FOREIGN KEY (page_revision_id) REFERENCES dummy_landable.page_revisions(page_revision_id);
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
--
|
|
3547
|
+
-- Name: page_views_path_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3548
|
+
--
|
|
3549
|
+
|
|
3550
|
+
ALTER TABLE ONLY page_views
|
|
3551
|
+
ADD CONSTRAINT page_views_path_id_fkey FOREIGN KEY (path_id) REFERENCES paths(path_id);
|
|
3552
|
+
|
|
3553
|
+
|
|
3554
|
+
--
|
|
3555
|
+
-- Name: page_views_query_string_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3556
|
+
--
|
|
3557
|
+
|
|
3558
|
+
ALTER TABLE ONLY page_views
|
|
3559
|
+
ADD CONSTRAINT page_views_query_string_id_fkey FOREIGN KEY (query_string_id) REFERENCES query_strings(query_string_id);
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
--
|
|
3563
|
+
-- Name: page_views_visit_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3564
|
+
--
|
|
3565
|
+
|
|
3566
|
+
ALTER TABLE ONLY page_views
|
|
3567
|
+
ADD CONSTRAINT page_views_visit_id_fkey FOREIGN KEY (visit_id) REFERENCES visits(visit_id);
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
--
|
|
3571
|
+
-- Name: referers_attribution_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3572
|
+
--
|
|
3573
|
+
|
|
3574
|
+
ALTER TABLE ONLY referers
|
|
3575
|
+
ADD CONSTRAINT referers_attribution_id_fkey FOREIGN KEY (attribution_id) REFERENCES attributions(attribution_id);
|
|
3576
|
+
|
|
3577
|
+
|
|
3578
|
+
--
|
|
3579
|
+
-- Name: referers_domain_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3580
|
+
--
|
|
3581
|
+
|
|
3582
|
+
ALTER TABLE ONLY referers
|
|
3583
|
+
ADD CONSTRAINT referers_domain_id_fkey FOREIGN KEY (domain_id) REFERENCES domains(domain_id);
|
|
3584
|
+
|
|
3585
|
+
|
|
3586
|
+
--
|
|
3587
|
+
-- Name: referers_path_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3588
|
+
--
|
|
3589
|
+
|
|
3590
|
+
ALTER TABLE ONLY referers
|
|
3591
|
+
ADD CONSTRAINT referers_path_id_fkey FOREIGN KEY (path_id) REFERENCES paths(path_id);
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
--
|
|
3595
|
+
-- Name: referers_query_string_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3596
|
+
--
|
|
3597
|
+
|
|
3598
|
+
ALTER TABLE ONLY referers
|
|
3599
|
+
ADD CONSTRAINT referers_query_string_id_fkey FOREIGN KEY (query_string_id) REFERENCES query_strings(query_string_id);
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
--
|
|
3603
|
+
-- Name: user_agents_browser_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3604
|
+
--
|
|
3605
|
+
|
|
3606
|
+
ALTER TABLE ONLY user_agents
|
|
3607
|
+
ADD CONSTRAINT user_agents_browser_id_fkey FOREIGN KEY (browser_id) REFERENCES browsers(browser_id);
|
|
3608
|
+
|
|
3609
|
+
|
|
3610
|
+
--
|
|
3611
|
+
-- Name: user_agents_device_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3612
|
+
--
|
|
3613
|
+
|
|
3614
|
+
ALTER TABLE ONLY user_agents
|
|
3615
|
+
ADD CONSTRAINT user_agents_device_id_fkey FOREIGN KEY (device_id) REFERENCES devices(device_id);
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
--
|
|
3619
|
+
-- Name: user_agents_platform_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3620
|
+
--
|
|
3621
|
+
|
|
3622
|
+
ALTER TABLE ONLY user_agents
|
|
3623
|
+
ADD CONSTRAINT user_agents_platform_id_fkey FOREIGN KEY (platform_id) REFERENCES platforms(platform_id);
|
|
3624
|
+
|
|
3625
|
+
|
|
3626
|
+
--
|
|
3627
|
+
-- Name: user_agents_user_agent_type_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3628
|
+
--
|
|
3629
|
+
|
|
3630
|
+
ALTER TABLE ONLY user_agents
|
|
3631
|
+
ADD CONSTRAINT user_agents_user_agent_type_id_fkey FOREIGN KEY (user_agent_type_id) REFERENCES user_agent_types(user_agent_type_id);
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
--
|
|
3635
|
+
-- Name: visitors_ip_address_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3636
|
+
--
|
|
3637
|
+
|
|
3638
|
+
ALTER TABLE ONLY visitors
|
|
3639
|
+
ADD CONSTRAINT visitors_ip_address_id_fkey FOREIGN KEY (ip_address_id) REFERENCES ip_addresses(ip_address_id);
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
--
|
|
3643
|
+
-- Name: visitors_user_agent_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3644
|
+
--
|
|
3645
|
+
|
|
3646
|
+
ALTER TABLE ONLY visitors
|
|
3647
|
+
ADD CONSTRAINT visitors_user_agent_id_fkey FOREIGN KEY (user_agent_id) REFERENCES user_agents(user_agent_id);
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
--
|
|
3651
|
+
-- Name: visits_attribution_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3652
|
+
--
|
|
3653
|
+
|
|
3654
|
+
ALTER TABLE ONLY visits
|
|
3655
|
+
ADD CONSTRAINT visits_attribution_id_fkey FOREIGN KEY (attribution_id) REFERENCES attributions(attribution_id);
|
|
3656
|
+
|
|
3657
|
+
|
|
3658
|
+
--
|
|
3659
|
+
-- Name: visits_cookie_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3660
|
+
--
|
|
3661
|
+
|
|
3662
|
+
ALTER TABLE ONLY visits
|
|
3663
|
+
ADD CONSTRAINT visits_cookie_id_fkey FOREIGN KEY (cookie_id) REFERENCES cookies(cookie_id);
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
--
|
|
3667
|
+
-- Name: visits_owner_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3668
|
+
--
|
|
3669
|
+
|
|
3670
|
+
ALTER TABLE ONLY visits
|
|
3671
|
+
ADD CONSTRAINT visits_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES owners(owner_id);
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
--
|
|
3675
|
+
-- Name: visits_referer_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3676
|
+
--
|
|
3677
|
+
|
|
3678
|
+
ALTER TABLE ONLY visits
|
|
3679
|
+
ADD CONSTRAINT visits_referer_id_fkey FOREIGN KEY (referer_id) REFERENCES referers(referer_id);
|
|
3680
|
+
|
|
3681
|
+
|
|
3682
|
+
--
|
|
3683
|
+
-- Name: visits_visitor_id_fkey; Type: FK CONSTRAINT; Schema: dummy_landable_traffic; Owner: -
|
|
3684
|
+
--
|
|
3685
|
+
|
|
3686
|
+
ALTER TABLE ONLY visits
|
|
3687
|
+
ADD CONSTRAINT visits_visitor_id_fkey FOREIGN KEY (visitor_id) REFERENCES visitors(visitor_id);
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
--
|
|
3691
|
+
-- PostgreSQL database dump complete
|
|
3692
|
+
--
|
|
3693
|
+
|
|
3694
|
+
SET search_path TO "$user", public;
|
|
3695
|
+
|
|
3696
|
+
INSERT INTO schema_migrations (version) VALUES ('20130510221424');
|
|
3697
|
+
|
|
3698
|
+
INSERT INTO schema_migrations (version) VALUES ('20130909182713');
|
|
3699
|
+
|
|
3700
|
+
INSERT INTO schema_migrations (version) VALUES ('20130909182715');
|
|
3701
|
+
|
|
3702
|
+
INSERT INTO schema_migrations (version) VALUES ('20130909191153');
|
|
3703
|
+
|
|
3704
|
+
INSERT INTO schema_migrations (version) VALUES ('20131002220041');
|
|
3705
|
+
|
|
3706
|
+
INSERT INTO schema_migrations (version) VALUES ('20131008164204');
|
|
3707
|
+
|
|
3708
|
+
INSERT INTO schema_migrations (version) VALUES ('20131008193544');
|
|
3709
|
+
|
|
3710
|
+
INSERT INTO schema_migrations (version) VALUES ('20131028145652');
|
|
3711
|
+
|
|
3712
|
+
INSERT INTO schema_migrations (version) VALUES ('20131101213623');
|
|
3713
|
+
|
|
3714
|
+
INSERT INTO schema_migrations (version) VALUES ('20131104224120');
|
|
3715
|
+
|
|
3716
|
+
INSERT INTO schema_migrations (version) VALUES ('20131106185946');
|
|
3717
|
+
|
|
3718
|
+
INSERT INTO schema_migrations (version) VALUES ('20131106193021');
|
|
3719
|
+
|
|
3720
|
+
INSERT INTO schema_migrations (version) VALUES ('20131108212501');
|
|
3721
|
+
|
|
3722
|
+
INSERT INTO schema_migrations (version) VALUES ('20131121150902');
|
|
3723
|
+
|
|
3724
|
+
INSERT INTO schema_migrations (version) VALUES ('20131216214027');
|
|
3725
|
+
|
|
3726
|
+
INSERT INTO schema_migrations (version) VALUES ('20140128170659');
|
|
3727
|
+
|
|
3728
|
+
INSERT INTO schema_migrations (version) VALUES ('20140205193757');
|
|
3729
|
+
|
|
3730
|
+
INSERT INTO schema_migrations (version) VALUES ('20140206211322');
|
|
3731
|
+
|
|
3732
|
+
INSERT INTO schema_migrations (version) VALUES ('20140220170324');
|
|
3733
|
+
|
|
3734
|
+
INSERT INTO schema_migrations (version) VALUES ('20140220174630');
|
|
3735
|
+
|
|
3736
|
+
INSERT INTO schema_migrations (version) VALUES ('20140224205516');
|