metasploit_data_models 3.0.5 → 3.0.6
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +2 -1
- data/app/models/mdm/payload.rb +118 -0
- data/app/models/mdm/workspace.rb +3 -0
- data/db/migrate/20180904120211_create_payloads.rb +21 -0
- data/lib/mdm.rb +2 -1
- data/lib/metasploit_data_models/version.rb +1 -1
- data/spec/dummy/db/structure.sql +440 -327
- metadata +4 -2
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: efbf351f64b4a93f1afd048bb165bf2296afbfd9
         | 
| 4 | 
            +
              data.tar.gz: e66caa2b50cc9b68d2c7a28590b3f4bbcebf6198
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bba1790cd8dceb51f909cd8badf9d2e16f18e7539e817b1bfaf520c80ccaf9f89708d49da2bdec9a6ebf960d48fe031375afcbec25f0f3d063d4dba58bff2a73
         | 
| 7 | 
            +
              data.tar.gz: d1d1271a17cd7debe802fb0ee717b3c59764e374fabc76c34e555ab955c12d92890fef71a6f7a6723d1d178740d985f0ce816135d4cd6dbae945c13e2f61852c
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/.travis.yml
    CHANGED
    
    | @@ -16,6 +16,7 @@ before_script: | |
| 16 16 | 
             
              - bundle exec rake --version
         | 
| 17 17 | 
             
              - bundle exec rake db:create db:migrate
         | 
| 18 18 | 
             
            script:
         | 
| 19 | 
            -
               | 
| 19 | 
            +
              # Disabling this check because it is proving unreliable
         | 
| 20 | 
            +
              #- git diff --exit-code spec/dummy/db/structure.sql
         | 
| 20 21 | 
             
              - bundle exec rake spec
         | 
| 21 22 | 
             
              - bundle exec rake yard
         | 
| @@ -0,0 +1,118 @@ | |
| 1 | 
            +
            # A payload that has been generated by Metasploit and used to establish {Mdm::Session}.
         | 
| 2 | 
            +
            class Mdm::Payload < ActiveRecord::Base
         | 
| 3 | 
            +
              extend ActiveSupport::Autoload
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              include Metasploit::Model::Search
         | 
| 6 | 
            +
             | 
| 7 | 
            +
              #
         | 
| 8 | 
            +
              # Associations
         | 
| 9 | 
            +
              #
         | 
| 10 | 
            +
             | 
| 11 | 
            +
              # @!attribute [rw] workspace
         | 
| 12 | 
            +
              # {Mdm::Workspace} in which this payload was created.
         | 
| 13 | 
            +
              #
         | 
| 14 | 
            +
              #   @return [Mdm::Workspace]
         | 
| 15 | 
            +
              belongs_to :workspace,
         | 
| 16 | 
            +
                         class_name: 'Mdm::Workspace',
         | 
| 17 | 
            +
                         inverse_of: :payloads
         | 
| 18 | 
            +
             | 
| 19 | 
            +
             | 
| 20 | 
            +
              #
         | 
| 21 | 
            +
              # Attributes
         | 
| 22 | 
            +
              #
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              # @!attribute [rw] name
         | 
| 25 | 
            +
              #   The name of this payload.
         | 
| 26 | 
            +
              #
         | 
| 27 | 
            +
              #   @return [String]
         | 
| 28 | 
            +
             | 
| 29 | 
            +
              # @!attribute [rw] uuid
         | 
| 30 | 
            +
              #   A unique identifier for this payload. The UUID is encoded to include specific information.
         | 
| 31 | 
            +
              #   See lib/msf/core/payload/uuid.rb in the https://github.com/rapid7/metasploit-framework repo.
         | 
| 32 | 
            +
              #
         | 
| 33 | 
            +
              #   @return [String]
         | 
| 34 | 
            +
             | 
| 35 | 
            +
              # @!attribute [rw] uuid_mask
         | 
| 36 | 
            +
              #   The number of bytes of the UUID that this payload has embedded within it. This is to support
         | 
| 37 | 
            +
              #   legacy payloads that limit the UUID to 8 bytes
         | 
| 38 | 
            +
              #
         | 
| 39 | 
            +
              #   @return [Integer]
         | 
| 40 | 
            +
             | 
| 41 | 
            +
              # @!attribute [rw] timestamp
         | 
| 42 | 
            +
              #   The Unix format timestamp when this payload was created.
         | 
| 43 | 
            +
              #
         | 
| 44 | 
            +
              #   @return [Integer]
         | 
| 45 | 
            +
             | 
| 46 | 
            +
              # @!attribute [rw] arch
         | 
| 47 | 
            +
              #   The architecture this payload supports.
         | 
| 48 | 
            +
              #   Valid values are located at lib/msf/core/payload/uuid.rb in the https://github.com/rapid7/metasploit-framework repo.
         | 
| 49 | 
            +
              #
         | 
| 50 | 
            +
              #   @return [String]
         | 
| 51 | 
            +
             | 
| 52 | 
            +
              # @!attribute [rw] platform
         | 
| 53 | 
            +
              #   The platform this payload supports.
         | 
| 54 | 
            +
              #   Valid values are located at lib/msf/core/payload/uuid.rb in the https://github.com/rapid7/metasploit-framework repo.
         | 
| 55 | 
            +
              #
         | 
| 56 | 
            +
              #   @return [String]
         | 
| 57 | 
            +
             | 
| 58 | 
            +
              # @!attribute [rw] urls
         | 
| 59 | 
            +
              #   The unique, encoded urls used to host this payload. Only applicable for http(s) payloads
         | 
| 60 | 
            +
              #
         | 
| 61 | 
            +
              #   @return [Array]
         | 
| 62 | 
            +
             | 
| 63 | 
            +
              # @!attribute [rw] description
         | 
| 64 | 
            +
              #   A description of why this payload was created and what it is being used for.
         | 
| 65 | 
            +
              #
         | 
| 66 | 
            +
              #   @return [String]
         | 
| 67 | 
            +
             | 
| 68 | 
            +
              # @!attribute [rw] workspace_id
         | 
| 69 | 
            +
              #   The ID of the workspace this payload belongs to.
         | 
| 70 | 
            +
              #
         | 
| 71 | 
            +
              #   @return [Integer]
         | 
| 72 | 
            +
             | 
| 73 | 
            +
              # @!attribute [rw] raw_payload
         | 
| 74 | 
            +
              #   A URL pointing to where the binary payload can be downloaded from.
         | 
| 75 | 
            +
              #
         | 
| 76 | 
            +
              #   @return [String]
         | 
| 77 | 
            +
             | 
| 78 | 
            +
              # @!attribute [rw] raw_payload_hash
         | 
| 79 | 
            +
              #   The unique hash value for the generated payload binary
         | 
| 80 | 
            +
              #
         | 
| 81 | 
            +
              #   @return [String]
         | 
| 82 | 
            +
             | 
| 83 | 
            +
              # @!attribute [rw] build_status
         | 
| 84 | 
            +
              #   The current status of the job building the payload binary. Valid values are "started", "completed", and "error"
         | 
| 85 | 
            +
              #
         | 
| 86 | 
            +
              #   @return [String]
         | 
| 87 | 
            +
             | 
| 88 | 
            +
              # @!attribute [rw] build_opts
         | 
| 89 | 
            +
              #   A hash containing various options used to build this payload
         | 
| 90 | 
            +
              #
         | 
| 91 | 
            +
              #   @return [Hash]
         | 
| 92 | 
            +
             | 
| 93 | 
            +
             | 
| 94 | 
            +
              #
         | 
| 95 | 
            +
              # Validations
         | 
| 96 | 
            +
              #
         | 
| 97 | 
            +
             | 
| 98 | 
            +
              validates :workspace, :presence => true
         | 
| 99 | 
            +
             | 
| 100 | 
            +
             | 
| 101 | 
            +
              #
         | 
| 102 | 
            +
              # Search Attributes
         | 
| 103 | 
            +
              #
         | 
| 104 | 
            +
             | 
| 105 | 
            +
              search_attribute :uuid,
         | 
| 106 | 
            +
                               type: :string
         | 
| 107 | 
            +
             | 
| 108 | 
            +
              #
         | 
| 109 | 
            +
              # Serializations
         | 
| 110 | 
            +
              #
         | 
| 111 | 
            +
             | 
| 112 | 
            +
              serialize :urls
         | 
| 113 | 
            +
              serialize :build_opts
         | 
| 114 | 
            +
             | 
| 115 | 
            +
              public
         | 
| 116 | 
            +
             | 
| 117 | 
            +
              Metasploit::Concern.run(self)
         | 
| 118 | 
            +
            end
         | 
    
        data/app/models/mdm/workspace.rb
    CHANGED
    
    | @@ -81,6 +81,9 @@ class Mdm::Workspace < ActiveRecord::Base | |
| 81 81 | 
             
              # Sessions opened on {#hosts} in this workspace.
         | 
| 82 82 | 
             
              has_many :sessions, :through => :hosts, :class_name => 'Mdm::Session'
         | 
| 83 83 |  | 
| 84 | 
            +
              # Payloads for this workspace.
         | 
| 85 | 
            +
              has_many :payloads, :class_name => 'Mdm::Payload'
         | 
| 86 | 
            +
             | 
| 84 87 | 
             
              #
         | 
| 85 88 | 
             
              # Attributes
         | 
| 86 89 | 
             
              #
         | 
| @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            class CreatePayloads < ActiveRecord::Migration
         | 
| 2 | 
            +
              def change
         | 
| 3 | 
            +
                create_table :payloads do |t|
         | 
| 4 | 
            +
                  t.string :name
         | 
| 5 | 
            +
                  t.string :uuid
         | 
| 6 | 
            +
                  t.integer :uuid_mask
         | 
| 7 | 
            +
                  t.integer :timestamp
         | 
| 8 | 
            +
                  t.string :arch
         | 
| 9 | 
            +
                  t.string :platform
         | 
| 10 | 
            +
                  t.string :urls
         | 
| 11 | 
            +
                  t.string :description
         | 
| 12 | 
            +
                  t.references :workspace
         | 
| 13 | 
            +
                  t.string :raw_payload
         | 
| 14 | 
            +
                  t.string :raw_payload_hash
         | 
| 15 | 
            +
                  t.string :build_status
         | 
| 16 | 
            +
                  t.string :build_opts
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                  t.timestamps null: false
         | 
| 19 | 
            +
                end
         | 
| 20 | 
            +
              end
         | 
| 21 | 
            +
            end
         | 
    
        data/lib/mdm.rb
    CHANGED
    
    | @@ -18,6 +18,7 @@ module Mdm | |
| 18 18 | 
             
              autoload :Module
         | 
| 19 19 | 
             
              autoload :NexposeConsole
         | 
| 20 20 | 
             
              autoload :Note
         | 
| 21 | 
            +
              autoload :Payload
         | 
| 21 22 | 
             
              autoload :Profile
         | 
| 22 23 | 
             
              autoload :Ref
         | 
| 23 24 | 
             
              autoload :Route
         | 
| @@ -52,4 +53,4 @@ module Mdm | |
| 52 53 | 
             
              def self.use_relative_model_naming?
         | 
| 53 54 | 
             
                true
         | 
| 54 55 | 
             
              end
         | 
| 55 | 
            -
            end
         | 
| 56 | 
            +
            end
         | 
    
        data/spec/dummy/db/structure.sql
    CHANGED
    
    | @@ -2,14 +2,15 @@ | |
| 2 2 | 
             
            -- PostgreSQL database dump
         | 
| 3 3 | 
             
            --
         | 
| 4 4 |  | 
| 5 | 
            -
            -- Dumped from database version  | 
| 6 | 
            -
            -- Dumped by pg_dump version  | 
| 5 | 
            +
            -- Dumped from database version 10.3
         | 
| 6 | 
            +
            -- Dumped by pg_dump version 10.3
         | 
| 7 7 |  | 
| 8 8 | 
             
            SET statement_timeout = 0;
         | 
| 9 9 | 
             
            SET lock_timeout = 0;
         | 
| 10 10 | 
             
            SET idle_in_transaction_session_timeout = 0;
         | 
| 11 11 | 
             
            SET client_encoding = 'UTF8';
         | 
| 12 12 | 
             
            SET standard_conforming_strings = on;
         | 
| 13 | 
            +
            SELECT pg_catalog.set_config('search_path', '', false);
         | 
| 13 14 | 
             
            SET check_function_bodies = false;
         | 
| 14 15 | 
             
            SET client_min_messages = warning;
         | 
| 15 16 | 
             
            SET row_security = off;
         | 
| @@ -28,8 +29,6 @@ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; | |
| 28 29 | 
             
            COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
         | 
| 29 30 |  | 
| 30 31 |  | 
| 31 | 
            -
            SET search_path = public, pg_catalog;
         | 
| 32 | 
            -
             | 
| 33 32 | 
             
            SET default_tablespace = '';
         | 
| 34 33 |  | 
| 35 34 | 
             
            SET default_with_oids = false;
         | 
| @@ -38,7 +37,7 @@ SET default_with_oids = false; | |
| 38 37 | 
             
            -- Name: api_keys; Type: TABLE; Schema: public; Owner: -
         | 
| 39 38 | 
             
            --
         | 
| 40 39 |  | 
| 41 | 
            -
            CREATE TABLE api_keys (
         | 
| 40 | 
            +
            CREATE TABLE public.api_keys (
         | 
| 42 41 | 
             
                id integer NOT NULL,
         | 
| 43 42 | 
             
                token text,
         | 
| 44 43 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -50,7 +49,8 @@ CREATE TABLE api_keys ( | |
| 50 49 | 
             
            -- Name: api_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 51 50 | 
             
            --
         | 
| 52 51 |  | 
| 53 | 
            -
            CREATE SEQUENCE api_keys_id_seq
         | 
| 52 | 
            +
            CREATE SEQUENCE public.api_keys_id_seq
         | 
| 53 | 
            +
                AS integer
         | 
| 54 54 | 
             
                START WITH 1
         | 
| 55 55 | 
             
                INCREMENT BY 1
         | 
| 56 56 | 
             
                NO MINVALUE
         | 
| @@ -62,14 +62,14 @@ CREATE SEQUENCE api_keys_id_seq | |
| 62 62 | 
             
            -- Name: api_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 63 63 | 
             
            --
         | 
| 64 64 |  | 
| 65 | 
            -
            ALTER SEQUENCE api_keys_id_seq OWNED BY api_keys.id;
         | 
| 65 | 
            +
            ALTER SEQUENCE public.api_keys_id_seq OWNED BY public.api_keys.id;
         | 
| 66 66 |  | 
| 67 67 |  | 
| 68 68 | 
             
            --
         | 
| 69 69 | 
             
            -- Name: automatic_exploitation_match_results; Type: TABLE; Schema: public; Owner: -
         | 
| 70 70 | 
             
            --
         | 
| 71 71 |  | 
| 72 | 
            -
            CREATE TABLE automatic_exploitation_match_results (
         | 
| 72 | 
            +
            CREATE TABLE public.automatic_exploitation_match_results (
         | 
| 73 73 | 
             
                id integer NOT NULL,
         | 
| 74 74 | 
             
                match_id integer,
         | 
| 75 75 | 
             
                run_id integer,
         | 
| @@ -83,7 +83,8 @@ CREATE TABLE automatic_exploitation_match_results ( | |
| 83 83 | 
             
            -- Name: automatic_exploitation_match_results_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 84 84 | 
             
            --
         | 
| 85 85 |  | 
| 86 | 
            -
            CREATE SEQUENCE automatic_exploitation_match_results_id_seq
         | 
| 86 | 
            +
            CREATE SEQUENCE public.automatic_exploitation_match_results_id_seq
         | 
| 87 | 
            +
                AS integer
         | 
| 87 88 | 
             
                START WITH 1
         | 
| 88 89 | 
             
                INCREMENT BY 1
         | 
| 89 90 | 
             
                NO MINVALUE
         | 
| @@ -95,14 +96,14 @@ CREATE SEQUENCE automatic_exploitation_match_results_id_seq | |
| 95 96 | 
             
            -- Name: automatic_exploitation_match_results_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 96 97 | 
             
            --
         | 
| 97 98 |  | 
| 98 | 
            -
            ALTER SEQUENCE automatic_exploitation_match_results_id_seq OWNED BY automatic_exploitation_match_results.id;
         | 
| 99 | 
            +
            ALTER SEQUENCE public.automatic_exploitation_match_results_id_seq OWNED BY public.automatic_exploitation_match_results.id;
         | 
| 99 100 |  | 
| 100 101 |  | 
| 101 102 | 
             
            --
         | 
| 102 103 | 
             
            -- Name: automatic_exploitation_match_sets; Type: TABLE; Schema: public; Owner: -
         | 
| 103 104 | 
             
            --
         | 
| 104 105 |  | 
| 105 | 
            -
            CREATE TABLE automatic_exploitation_match_sets (
         | 
| 106 | 
            +
            CREATE TABLE public.automatic_exploitation_match_sets (
         | 
| 106 107 | 
             
                id integer NOT NULL,
         | 
| 107 108 | 
             
                workspace_id integer,
         | 
| 108 109 | 
             
                user_id integer,
         | 
| @@ -115,7 +116,8 @@ CREATE TABLE automatic_exploitation_match_sets ( | |
| 115 116 | 
             
            -- Name: automatic_exploitation_match_sets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 116 117 | 
             
            --
         | 
| 117 118 |  | 
| 118 | 
            -
            CREATE SEQUENCE automatic_exploitation_match_sets_id_seq
         | 
| 119 | 
            +
            CREATE SEQUENCE public.automatic_exploitation_match_sets_id_seq
         | 
| 120 | 
            +
                AS integer
         | 
| 119 121 | 
             
                START WITH 1
         | 
| 120 122 | 
             
                INCREMENT BY 1
         | 
| 121 123 | 
             
                NO MINVALUE
         | 
| @@ -127,14 +129,14 @@ CREATE SEQUENCE automatic_exploitation_match_sets_id_seq | |
| 127 129 | 
             
            -- Name: automatic_exploitation_match_sets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 128 130 | 
             
            --
         | 
| 129 131 |  | 
| 130 | 
            -
            ALTER SEQUENCE automatic_exploitation_match_sets_id_seq OWNED BY automatic_exploitation_match_sets.id;
         | 
| 132 | 
            +
            ALTER SEQUENCE public.automatic_exploitation_match_sets_id_seq OWNED BY public.automatic_exploitation_match_sets.id;
         | 
| 131 133 |  | 
| 132 134 |  | 
| 133 135 | 
             
            --
         | 
| 134 136 | 
             
            -- Name: automatic_exploitation_matches; Type: TABLE; Schema: public; Owner: -
         | 
| 135 137 | 
             
            --
         | 
| 136 138 |  | 
| 137 | 
            -
            CREATE TABLE automatic_exploitation_matches (
         | 
| 139 | 
            +
            CREATE TABLE public.automatic_exploitation_matches (
         | 
| 138 140 | 
             
                id integer NOT NULL,
         | 
| 139 141 | 
             
                module_detail_id integer,
         | 
| 140 142 | 
             
                state character varying,
         | 
| @@ -152,7 +154,8 @@ CREATE TABLE automatic_exploitation_matches ( | |
| 152 154 | 
             
            -- Name: automatic_exploitation_matches_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 153 155 | 
             
            --
         | 
| 154 156 |  | 
| 155 | 
            -
            CREATE SEQUENCE automatic_exploitation_matches_id_seq
         | 
| 157 | 
            +
            CREATE SEQUENCE public.automatic_exploitation_matches_id_seq
         | 
| 158 | 
            +
                AS integer
         | 
| 156 159 | 
             
                START WITH 1
         | 
| 157 160 | 
             
                INCREMENT BY 1
         | 
| 158 161 | 
             
                NO MINVALUE
         | 
| @@ -164,14 +167,14 @@ CREATE SEQUENCE automatic_exploitation_matches_id_seq | |
| 164 167 | 
             
            -- Name: automatic_exploitation_matches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 165 168 | 
             
            --
         | 
| 166 169 |  | 
| 167 | 
            -
            ALTER SEQUENCE automatic_exploitation_matches_id_seq OWNED BY automatic_exploitation_matches.id;
         | 
| 170 | 
            +
            ALTER SEQUENCE public.automatic_exploitation_matches_id_seq OWNED BY public.automatic_exploitation_matches.id;
         | 
| 168 171 |  | 
| 169 172 |  | 
| 170 173 | 
             
            --
         | 
| 171 174 | 
             
            -- Name: automatic_exploitation_runs; Type: TABLE; Schema: public; Owner: -
         | 
| 172 175 | 
             
            --
         | 
| 173 176 |  | 
| 174 | 
            -
            CREATE TABLE automatic_exploitation_runs (
         | 
| 177 | 
            +
            CREATE TABLE public.automatic_exploitation_runs (
         | 
| 175 178 | 
             
                id integer NOT NULL,
         | 
| 176 179 | 
             
                workspace_id integer,
         | 
| 177 180 | 
             
                user_id integer,
         | 
| @@ -185,7 +188,8 @@ CREATE TABLE automatic_exploitation_runs ( | |
| 185 188 | 
             
            -- Name: automatic_exploitation_runs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 186 189 | 
             
            --
         | 
| 187 190 |  | 
| 188 | 
            -
            CREATE SEQUENCE automatic_exploitation_runs_id_seq
         | 
| 191 | 
            +
            CREATE SEQUENCE public.automatic_exploitation_runs_id_seq
         | 
| 192 | 
            +
                AS integer
         | 
| 189 193 | 
             
                START WITH 1
         | 
| 190 194 | 
             
                INCREMENT BY 1
         | 
| 191 195 | 
             
                NO MINVALUE
         | 
| @@ -197,14 +201,14 @@ CREATE SEQUENCE automatic_exploitation_runs_id_seq | |
| 197 201 | 
             
            -- Name: automatic_exploitation_runs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 198 202 | 
             
            --
         | 
| 199 203 |  | 
| 200 | 
            -
            ALTER SEQUENCE automatic_exploitation_runs_id_seq OWNED BY automatic_exploitation_runs.id;
         | 
| 204 | 
            +
            ALTER SEQUENCE public.automatic_exploitation_runs_id_seq OWNED BY public.automatic_exploitation_runs.id;
         | 
| 201 205 |  | 
| 202 206 |  | 
| 203 207 | 
             
            --
         | 
| 204 208 | 
             
            -- Name: clients; Type: TABLE; Schema: public; Owner: -
         | 
| 205 209 | 
             
            --
         | 
| 206 210 |  | 
| 207 | 
            -
            CREATE TABLE clients (
         | 
| 211 | 
            +
            CREATE TABLE public.clients (
         | 
| 208 212 | 
             
                id integer NOT NULL,
         | 
| 209 213 | 
             
                host_id integer,
         | 
| 210 214 | 
             
                created_at timestamp without time zone,
         | 
| @@ -219,7 +223,8 @@ CREATE TABLE clients ( | |
| 219 223 | 
             
            -- Name: clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 220 224 | 
             
            --
         | 
| 221 225 |  | 
| 222 | 
            -
            CREATE SEQUENCE clients_id_seq
         | 
| 226 | 
            +
            CREATE SEQUENCE public.clients_id_seq
         | 
| 227 | 
            +
                AS integer
         | 
| 223 228 | 
             
                START WITH 1
         | 
| 224 229 | 
             
                INCREMENT BY 1
         | 
| 225 230 | 
             
                NO MINVALUE
         | 
| @@ -231,14 +236,14 @@ CREATE SEQUENCE clients_id_seq | |
| 231 236 | 
             
            -- Name: clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 232 237 | 
             
            --
         | 
| 233 238 |  | 
| 234 | 
            -
            ALTER SEQUENCE clients_id_seq OWNED BY clients.id;
         | 
| 239 | 
            +
            ALTER SEQUENCE public.clients_id_seq OWNED BY public.clients.id;
         | 
| 235 240 |  | 
| 236 241 |  | 
| 237 242 | 
             
            --
         | 
| 238 243 | 
             
            -- Name: creds; Type: TABLE; Schema: public; Owner: -
         | 
| 239 244 | 
             
            --
         | 
| 240 245 |  | 
| 241 | 
            -
            CREATE TABLE creds (
         | 
| 246 | 
            +
            CREATE TABLE public.creds (
         | 
| 242 247 | 
             
                id integer NOT NULL,
         | 
| 243 248 | 
             
                service_id integer NOT NULL,
         | 
| 244 249 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -257,7 +262,8 @@ CREATE TABLE creds ( | |
| 257 262 | 
             
            -- Name: creds_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 258 263 | 
             
            --
         | 
| 259 264 |  | 
| 260 | 
            -
            CREATE SEQUENCE creds_id_seq
         | 
| 265 | 
            +
            CREATE SEQUENCE public.creds_id_seq
         | 
| 266 | 
            +
                AS integer
         | 
| 261 267 | 
             
                START WITH 1
         | 
| 262 268 | 
             
                INCREMENT BY 1
         | 
| 263 269 | 
             
                NO MINVALUE
         | 
| @@ -269,14 +275,14 @@ CREATE SEQUENCE creds_id_seq | |
| 269 275 | 
             
            -- Name: creds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 270 276 | 
             
            --
         | 
| 271 277 |  | 
| 272 | 
            -
            ALTER SEQUENCE creds_id_seq OWNED BY creds.id;
         | 
| 278 | 
            +
            ALTER SEQUENCE public.creds_id_seq OWNED BY public.creds.id;
         | 
| 273 279 |  | 
| 274 280 |  | 
| 275 281 | 
             
            --
         | 
| 276 282 | 
             
            -- Name: events; Type: TABLE; Schema: public; Owner: -
         | 
| 277 283 | 
             
            --
         | 
| 278 284 |  | 
| 279 | 
            -
            CREATE TABLE events (
         | 
| 285 | 
            +
            CREATE TABLE public.events (
         | 
| 280 286 | 
             
                id integer NOT NULL,
         | 
| 281 287 | 
             
                workspace_id integer,
         | 
| 282 288 | 
             
                host_id integer,
         | 
| @@ -294,7 +300,8 @@ CREATE TABLE events ( | |
| 294 300 | 
             
            -- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 295 301 | 
             
            --
         | 
| 296 302 |  | 
| 297 | 
            -
            CREATE SEQUENCE events_id_seq
         | 
| 303 | 
            +
            CREATE SEQUENCE public.events_id_seq
         | 
| 304 | 
            +
                AS integer
         | 
| 298 305 | 
             
                START WITH 1
         | 
| 299 306 | 
             
                INCREMENT BY 1
         | 
| 300 307 | 
             
                NO MINVALUE
         | 
| @@ -306,14 +313,14 @@ CREATE SEQUENCE events_id_seq | |
| 306 313 | 
             
            -- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 307 314 | 
             
            --
         | 
| 308 315 |  | 
| 309 | 
            -
            ALTER SEQUENCE events_id_seq OWNED BY events.id;
         | 
| 316 | 
            +
            ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id;
         | 
| 310 317 |  | 
| 311 318 |  | 
| 312 319 | 
             
            --
         | 
| 313 320 | 
             
            -- Name: exploit_attempts; Type: TABLE; Schema: public; Owner: -
         | 
| 314 321 | 
             
            --
         | 
| 315 322 |  | 
| 316 | 
            -
            CREATE TABLE exploit_attempts (
         | 
| 323 | 
            +
            CREATE TABLE public.exploit_attempts (
         | 
| 317 324 | 
             
                id integer NOT NULL,
         | 
| 318 325 | 
             
                host_id integer,
         | 
| 319 326 | 
             
                service_id integer,
         | 
| @@ -335,7 +342,8 @@ CREATE TABLE exploit_attempts ( | |
| 335 342 | 
             
            -- Name: exploit_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 336 343 | 
             
            --
         | 
| 337 344 |  | 
| 338 | 
            -
            CREATE SEQUENCE exploit_attempts_id_seq
         | 
| 345 | 
            +
            CREATE SEQUENCE public.exploit_attempts_id_seq
         | 
| 346 | 
            +
                AS integer
         | 
| 339 347 | 
             
                START WITH 1
         | 
| 340 348 | 
             
                INCREMENT BY 1
         | 
| 341 349 | 
             
                NO MINVALUE
         | 
| @@ -347,14 +355,14 @@ CREATE SEQUENCE exploit_attempts_id_seq | |
| 347 355 | 
             
            -- Name: exploit_attempts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 348 356 | 
             
            --
         | 
| 349 357 |  | 
| 350 | 
            -
            ALTER SEQUENCE exploit_attempts_id_seq OWNED BY exploit_attempts.id;
         | 
| 358 | 
            +
            ALTER SEQUENCE public.exploit_attempts_id_seq OWNED BY public.exploit_attempts.id;
         | 
| 351 359 |  | 
| 352 360 |  | 
| 353 361 | 
             
            --
         | 
| 354 362 | 
             
            -- Name: exploited_hosts; Type: TABLE; Schema: public; Owner: -
         | 
| 355 363 | 
             
            --
         | 
| 356 364 |  | 
| 357 | 
            -
            CREATE TABLE exploited_hosts (
         | 
| 365 | 
            +
            CREATE TABLE public.exploited_hosts (
         | 
| 358 366 | 
             
                id integer NOT NULL,
         | 
| 359 367 | 
             
                host_id integer NOT NULL,
         | 
| 360 368 | 
             
                service_id integer,
         | 
| @@ -370,7 +378,8 @@ CREATE TABLE exploited_hosts ( | |
| 370 378 | 
             
            -- Name: exploited_hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 371 379 | 
             
            --
         | 
| 372 380 |  | 
| 373 | 
            -
            CREATE SEQUENCE exploited_hosts_id_seq
         | 
| 381 | 
            +
            CREATE SEQUENCE public.exploited_hosts_id_seq
         | 
| 382 | 
            +
                AS integer
         | 
| 374 383 | 
             
                START WITH 1
         | 
| 375 384 | 
             
                INCREMENT BY 1
         | 
| 376 385 | 
             
                NO MINVALUE
         | 
| @@ -382,14 +391,14 @@ CREATE SEQUENCE exploited_hosts_id_seq | |
| 382 391 | 
             
            -- Name: exploited_hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 383 392 | 
             
            --
         | 
| 384 393 |  | 
| 385 | 
            -
            ALTER SEQUENCE exploited_hosts_id_seq OWNED BY exploited_hosts.id;
         | 
| 394 | 
            +
            ALTER SEQUENCE public.exploited_hosts_id_seq OWNED BY public.exploited_hosts.id;
         | 
| 386 395 |  | 
| 387 396 |  | 
| 388 397 | 
             
            --
         | 
| 389 398 | 
             
            -- Name: host_details; Type: TABLE; Schema: public; Owner: -
         | 
| 390 399 | 
             
            --
         | 
| 391 400 |  | 
| 392 | 
            -
            CREATE TABLE host_details (
         | 
| 401 | 
            +
            CREATE TABLE public.host_details (
         | 
| 393 402 | 
             
                id integer NOT NULL,
         | 
| 394 403 | 
             
                host_id integer,
         | 
| 395 404 | 
             
                nx_console_id integer,
         | 
| @@ -406,7 +415,8 @@ CREATE TABLE host_details ( | |
| 406 415 | 
             
            -- Name: host_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 407 416 | 
             
            --
         | 
| 408 417 |  | 
| 409 | 
            -
            CREATE SEQUENCE host_details_id_seq
         | 
| 418 | 
            +
            CREATE SEQUENCE public.host_details_id_seq
         | 
| 419 | 
            +
                AS integer
         | 
| 410 420 | 
             
                START WITH 1
         | 
| 411 421 | 
             
                INCREMENT BY 1
         | 
| 412 422 | 
             
                NO MINVALUE
         | 
| @@ -418,14 +428,14 @@ CREATE SEQUENCE host_details_id_seq | |
| 418 428 | 
             
            -- Name: host_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 419 429 | 
             
            --
         | 
| 420 430 |  | 
| 421 | 
            -
            ALTER SEQUENCE host_details_id_seq OWNED BY host_details.id;
         | 
| 431 | 
            +
            ALTER SEQUENCE public.host_details_id_seq OWNED BY public.host_details.id;
         | 
| 422 432 |  | 
| 423 433 |  | 
| 424 434 | 
             
            --
         | 
| 425 435 | 
             
            -- Name: hosts; Type: TABLE; Schema: public; Owner: -
         | 
| 426 436 | 
             
            --
         | 
| 427 437 |  | 
| 428 | 
            -
            CREATE TABLE hosts (
         | 
| 438 | 
            +
            CREATE TABLE public.hosts (
         | 
| 429 439 | 
             
                id integer NOT NULL,
         | 
| 430 440 | 
             
                created_at timestamp without time zone,
         | 
| 431 441 | 
             
                address inet NOT NULL,
         | 
| @@ -460,7 +470,8 @@ CREATE TABLE hosts ( | |
| 460 470 | 
             
            -- Name: hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 461 471 | 
             
            --
         | 
| 462 472 |  | 
| 463 | 
            -
            CREATE SEQUENCE hosts_id_seq
         | 
| 473 | 
            +
            CREATE SEQUENCE public.hosts_id_seq
         | 
| 474 | 
            +
                AS integer
         | 
| 464 475 | 
             
                START WITH 1
         | 
| 465 476 | 
             
                INCREMENT BY 1
         | 
| 466 477 | 
             
                NO MINVALUE
         | 
| @@ -472,14 +483,14 @@ CREATE SEQUENCE hosts_id_seq | |
| 472 483 | 
             
            -- Name: hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 473 484 | 
             
            --
         | 
| 474 485 |  | 
| 475 | 
            -
            ALTER SEQUENCE hosts_id_seq OWNED BY hosts.id;
         | 
| 486 | 
            +
            ALTER SEQUENCE public.hosts_id_seq OWNED BY public.hosts.id;
         | 
| 476 487 |  | 
| 477 488 |  | 
| 478 489 | 
             
            --
         | 
| 479 490 | 
             
            -- Name: hosts_tags; Type: TABLE; Schema: public; Owner: -
         | 
| 480 491 | 
             
            --
         | 
| 481 492 |  | 
| 482 | 
            -
            CREATE TABLE hosts_tags (
         | 
| 493 | 
            +
            CREATE TABLE public.hosts_tags (
         | 
| 483 494 | 
             
                host_id integer,
         | 
| 484 495 | 
             
                tag_id integer,
         | 
| 485 496 | 
             
                id integer NOT NULL
         | 
| @@ -490,7 +501,8 @@ CREATE TABLE hosts_tags ( | |
| 490 501 | 
             
            -- Name: hosts_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 491 502 | 
             
            --
         | 
| 492 503 |  | 
| 493 | 
            -
            CREATE SEQUENCE hosts_tags_id_seq
         | 
| 504 | 
            +
            CREATE SEQUENCE public.hosts_tags_id_seq
         | 
| 505 | 
            +
                AS integer
         | 
| 494 506 | 
             
                START WITH 1
         | 
| 495 507 | 
             
                INCREMENT BY 1
         | 
| 496 508 | 
             
                NO MINVALUE
         | 
| @@ -502,14 +514,14 @@ CREATE SEQUENCE hosts_tags_id_seq | |
| 502 514 | 
             
            -- Name: hosts_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 503 515 | 
             
            --
         | 
| 504 516 |  | 
| 505 | 
            -
            ALTER SEQUENCE hosts_tags_id_seq OWNED BY hosts_tags.id;
         | 
| 517 | 
            +
            ALTER SEQUENCE public.hosts_tags_id_seq OWNED BY public.hosts_tags.id;
         | 
| 506 518 |  | 
| 507 519 |  | 
| 508 520 | 
             
            --
         | 
| 509 521 | 
             
            -- Name: listeners; Type: TABLE; Schema: public; Owner: -
         | 
| 510 522 | 
             
            --
         | 
| 511 523 |  | 
| 512 | 
            -
            CREATE TABLE listeners (
         | 
| 524 | 
            +
            CREATE TABLE public.listeners (
         | 
| 513 525 | 
             
                id integer NOT NULL,
         | 
| 514 526 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| 515 527 | 
             
                updated_at timestamp without time zone NOT NULL,
         | 
| @@ -529,7 +541,8 @@ CREATE TABLE listeners ( | |
| 529 541 | 
             
            -- Name: listeners_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 530 542 | 
             
            --
         | 
| 531 543 |  | 
| 532 | 
            -
            CREATE SEQUENCE listeners_id_seq
         | 
| 544 | 
            +
            CREATE SEQUENCE public.listeners_id_seq
         | 
| 545 | 
            +
                AS integer
         | 
| 533 546 | 
             
                START WITH 1
         | 
| 534 547 | 
             
                INCREMENT BY 1
         | 
| 535 548 | 
             
                NO MINVALUE
         | 
| @@ -541,14 +554,14 @@ CREATE SEQUENCE listeners_id_seq | |
| 541 554 | 
             
            -- Name: listeners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 542 555 | 
             
            --
         | 
| 543 556 |  | 
| 544 | 
            -
            ALTER SEQUENCE listeners_id_seq OWNED BY listeners.id;
         | 
| 557 | 
            +
            ALTER SEQUENCE public.listeners_id_seq OWNED BY public.listeners.id;
         | 
| 545 558 |  | 
| 546 559 |  | 
| 547 560 | 
             
            --
         | 
| 548 561 | 
             
            -- Name: loots; Type: TABLE; Schema: public; Owner: -
         | 
| 549 562 | 
             
            --
         | 
| 550 563 |  | 
| 551 | 
            -
            CREATE TABLE loots (
         | 
| 564 | 
            +
            CREATE TABLE public.loots (
         | 
| 552 565 | 
             
                id integer NOT NULL,
         | 
| 553 566 | 
             
                workspace_id integer DEFAULT 1 NOT NULL,
         | 
| 554 567 | 
             
                host_id integer,
         | 
| @@ -569,7 +582,8 @@ CREATE TABLE loots ( | |
| 569 582 | 
             
            -- Name: loots_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 570 583 | 
             
            --
         | 
| 571 584 |  | 
| 572 | 
            -
            CREATE SEQUENCE loots_id_seq
         | 
| 585 | 
            +
            CREATE SEQUENCE public.loots_id_seq
         | 
| 586 | 
            +
                AS integer
         | 
| 573 587 | 
             
                START WITH 1
         | 
| 574 588 | 
             
                INCREMENT BY 1
         | 
| 575 589 | 
             
                NO MINVALUE
         | 
| @@ -581,14 +595,14 @@ CREATE SEQUENCE loots_id_seq | |
| 581 595 | 
             
            -- Name: loots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 582 596 | 
             
            --
         | 
| 583 597 |  | 
| 584 | 
            -
            ALTER SEQUENCE loots_id_seq OWNED BY loots.id;
         | 
| 598 | 
            +
            ALTER SEQUENCE public.loots_id_seq OWNED BY public.loots.id;
         | 
| 585 599 |  | 
| 586 600 |  | 
| 587 601 | 
             
            --
         | 
| 588 602 | 
             
            -- Name: macros; Type: TABLE; Schema: public; Owner: -
         | 
| 589 603 | 
             
            --
         | 
| 590 604 |  | 
| 591 | 
            -
            CREATE TABLE macros (
         | 
| 605 | 
            +
            CREATE TABLE public.macros (
         | 
| 592 606 | 
             
                id integer NOT NULL,
         | 
| 593 607 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| 594 608 | 
             
                updated_at timestamp without time zone NOT NULL,
         | 
| @@ -604,7 +618,8 @@ CREATE TABLE macros ( | |
| 604 618 | 
             
            -- Name: macros_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 605 619 | 
             
            --
         | 
| 606 620 |  | 
| 607 | 
            -
            CREATE SEQUENCE macros_id_seq
         | 
| 621 | 
            +
            CREATE SEQUENCE public.macros_id_seq
         | 
| 622 | 
            +
                AS integer
         | 
| 608 623 | 
             
                START WITH 1
         | 
| 609 624 | 
             
                INCREMENT BY 1
         | 
| 610 625 | 
             
                NO MINVALUE
         | 
| @@ -616,14 +631,14 @@ CREATE SEQUENCE macros_id_seq | |
| 616 631 | 
             
            -- Name: macros_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 617 632 | 
             
            --
         | 
| 618 633 |  | 
| 619 | 
            -
            ALTER SEQUENCE macros_id_seq OWNED BY macros.id;
         | 
| 634 | 
            +
            ALTER SEQUENCE public.macros_id_seq OWNED BY public.macros.id;
         | 
| 620 635 |  | 
| 621 636 |  | 
| 622 637 | 
             
            --
         | 
| 623 638 | 
             
            -- Name: mod_refs; Type: TABLE; Schema: public; Owner: -
         | 
| 624 639 | 
             
            --
         | 
| 625 640 |  | 
| 626 | 
            -
            CREATE TABLE mod_refs (
         | 
| 641 | 
            +
            CREATE TABLE public.mod_refs (
         | 
| 627 642 | 
             
                id integer NOT NULL,
         | 
| 628 643 | 
             
                module character varying(1024),
         | 
| 629 644 | 
             
                mtype character varying(128),
         | 
| @@ -635,7 +650,8 @@ CREATE TABLE mod_refs ( | |
| 635 650 | 
             
            -- Name: mod_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 636 651 | 
             
            --
         | 
| 637 652 |  | 
| 638 | 
            -
            CREATE SEQUENCE mod_refs_id_seq
         | 
| 653 | 
            +
            CREATE SEQUENCE public.mod_refs_id_seq
         | 
| 654 | 
            +
                AS integer
         | 
| 639 655 | 
             
                START WITH 1
         | 
| 640 656 | 
             
                INCREMENT BY 1
         | 
| 641 657 | 
             
                NO MINVALUE
         | 
| @@ -647,14 +663,14 @@ CREATE SEQUENCE mod_refs_id_seq | |
| 647 663 | 
             
            -- Name: mod_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 648 664 | 
             
            --
         | 
| 649 665 |  | 
| 650 | 
            -
            ALTER SEQUENCE mod_refs_id_seq OWNED BY mod_refs.id;
         | 
| 666 | 
            +
            ALTER SEQUENCE public.mod_refs_id_seq OWNED BY public.mod_refs.id;
         | 
| 651 667 |  | 
| 652 668 |  | 
| 653 669 | 
             
            --
         | 
| 654 670 | 
             
            -- Name: module_actions; Type: TABLE; Schema: public; Owner: -
         | 
| 655 671 | 
             
            --
         | 
| 656 672 |  | 
| 657 | 
            -
            CREATE TABLE module_actions (
         | 
| 673 | 
            +
            CREATE TABLE public.module_actions (
         | 
| 658 674 | 
             
                id integer NOT NULL,
         | 
| 659 675 | 
             
                detail_id integer,
         | 
| 660 676 | 
             
                name text
         | 
| @@ -665,7 +681,8 @@ CREATE TABLE module_actions ( | |
| 665 681 | 
             
            -- Name: module_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 666 682 | 
             
            --
         | 
| 667 683 |  | 
| 668 | 
            -
            CREATE SEQUENCE module_actions_id_seq
         | 
| 684 | 
            +
            CREATE SEQUENCE public.module_actions_id_seq
         | 
| 685 | 
            +
                AS integer
         | 
| 669 686 | 
             
                START WITH 1
         | 
| 670 687 | 
             
                INCREMENT BY 1
         | 
| 671 688 | 
             
                NO MINVALUE
         | 
| @@ -677,14 +694,14 @@ CREATE SEQUENCE module_actions_id_seq | |
| 677 694 | 
             
            -- Name: module_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 678 695 | 
             
            --
         | 
| 679 696 |  | 
| 680 | 
            -
            ALTER SEQUENCE module_actions_id_seq OWNED BY module_actions.id;
         | 
| 697 | 
            +
            ALTER SEQUENCE public.module_actions_id_seq OWNED BY public.module_actions.id;
         | 
| 681 698 |  | 
| 682 699 |  | 
| 683 700 | 
             
            --
         | 
| 684 701 | 
             
            -- Name: module_archs; Type: TABLE; Schema: public; Owner: -
         | 
| 685 702 | 
             
            --
         | 
| 686 703 |  | 
| 687 | 
            -
            CREATE TABLE module_archs (
         | 
| 704 | 
            +
            CREATE TABLE public.module_archs (
         | 
| 688 705 | 
             
                id integer NOT NULL,
         | 
| 689 706 | 
             
                detail_id integer,
         | 
| 690 707 | 
             
                name text
         | 
| @@ -695,7 +712,8 @@ CREATE TABLE module_archs ( | |
| 695 712 | 
             
            -- Name: module_archs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 696 713 | 
             
            --
         | 
| 697 714 |  | 
| 698 | 
            -
            CREATE SEQUENCE module_archs_id_seq
         | 
| 715 | 
            +
            CREATE SEQUENCE public.module_archs_id_seq
         | 
| 716 | 
            +
                AS integer
         | 
| 699 717 | 
             
                START WITH 1
         | 
| 700 718 | 
             
                INCREMENT BY 1
         | 
| 701 719 | 
             
                NO MINVALUE
         | 
| @@ -707,14 +725,14 @@ CREATE SEQUENCE module_archs_id_seq | |
| 707 725 | 
             
            -- Name: module_archs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 708 726 | 
             
            --
         | 
| 709 727 |  | 
| 710 | 
            -
            ALTER SEQUENCE module_archs_id_seq OWNED BY module_archs.id;
         | 
| 728 | 
            +
            ALTER SEQUENCE public.module_archs_id_seq OWNED BY public.module_archs.id;
         | 
| 711 729 |  | 
| 712 730 |  | 
| 713 731 | 
             
            --
         | 
| 714 732 | 
             
            -- Name: module_authors; Type: TABLE; Schema: public; Owner: -
         | 
| 715 733 | 
             
            --
         | 
| 716 734 |  | 
| 717 | 
            -
            CREATE TABLE module_authors (
         | 
| 735 | 
            +
            CREATE TABLE public.module_authors (
         | 
| 718 736 | 
             
                id integer NOT NULL,
         | 
| 719 737 | 
             
                detail_id integer,
         | 
| 720 738 | 
             
                name text,
         | 
| @@ -726,7 +744,8 @@ CREATE TABLE module_authors ( | |
| 726 744 | 
             
            -- Name: module_authors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 727 745 | 
             
            --
         | 
| 728 746 |  | 
| 729 | 
            -
            CREATE SEQUENCE module_authors_id_seq
         | 
| 747 | 
            +
            CREATE SEQUENCE public.module_authors_id_seq
         | 
| 748 | 
            +
                AS integer
         | 
| 730 749 | 
             
                START WITH 1
         | 
| 731 750 | 
             
                INCREMENT BY 1
         | 
| 732 751 | 
             
                NO MINVALUE
         | 
| @@ -738,14 +757,14 @@ CREATE SEQUENCE module_authors_id_seq | |
| 738 757 | 
             
            -- Name: module_authors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 739 758 | 
             
            --
         | 
| 740 759 |  | 
| 741 | 
            -
            ALTER SEQUENCE module_authors_id_seq OWNED BY module_authors.id;
         | 
| 760 | 
            +
            ALTER SEQUENCE public.module_authors_id_seq OWNED BY public.module_authors.id;
         | 
| 742 761 |  | 
| 743 762 |  | 
| 744 763 | 
             
            --
         | 
| 745 764 | 
             
            -- Name: module_details; Type: TABLE; Schema: public; Owner: -
         | 
| 746 765 | 
             
            --
         | 
| 747 766 |  | 
| 748 | 
            -
            CREATE TABLE module_details (
         | 
| 767 | 
            +
            CREATE TABLE public.module_details (
         | 
| 749 768 | 
             
                id integer NOT NULL,
         | 
| 750 769 | 
             
                mtime timestamp without time zone,
         | 
| 751 770 | 
             
                file text,
         | 
| @@ -769,7 +788,8 @@ CREATE TABLE module_details ( | |
| 769 788 | 
             
            -- Name: module_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 770 789 | 
             
            --
         | 
| 771 790 |  | 
| 772 | 
            -
            CREATE SEQUENCE module_details_id_seq
         | 
| 791 | 
            +
            CREATE SEQUENCE public.module_details_id_seq
         | 
| 792 | 
            +
                AS integer
         | 
| 773 793 | 
             
                START WITH 1
         | 
| 774 794 | 
             
                INCREMENT BY 1
         | 
| 775 795 | 
             
                NO MINVALUE
         | 
| @@ -781,14 +801,14 @@ CREATE SEQUENCE module_details_id_seq | |
| 781 801 | 
             
            -- Name: module_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 782 802 | 
             
            --
         | 
| 783 803 |  | 
| 784 | 
            -
            ALTER SEQUENCE module_details_id_seq OWNED BY module_details.id;
         | 
| 804 | 
            +
            ALTER SEQUENCE public.module_details_id_seq OWNED BY public.module_details.id;
         | 
| 785 805 |  | 
| 786 806 |  | 
| 787 807 | 
             
            --
         | 
| 788 808 | 
             
            -- Name: module_mixins; Type: TABLE; Schema: public; Owner: -
         | 
| 789 809 | 
             
            --
         | 
| 790 810 |  | 
| 791 | 
            -
            CREATE TABLE module_mixins (
         | 
| 811 | 
            +
            CREATE TABLE public.module_mixins (
         | 
| 792 812 | 
             
                id integer NOT NULL,
         | 
| 793 813 | 
             
                detail_id integer,
         | 
| 794 814 | 
             
                name text
         | 
| @@ -799,7 +819,8 @@ CREATE TABLE module_mixins ( | |
| 799 819 | 
             
            -- Name: module_mixins_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 800 820 | 
             
            --
         | 
| 801 821 |  | 
| 802 | 
            -
            CREATE SEQUENCE module_mixins_id_seq
         | 
| 822 | 
            +
            CREATE SEQUENCE public.module_mixins_id_seq
         | 
| 823 | 
            +
                AS integer
         | 
| 803 824 | 
             
                START WITH 1
         | 
| 804 825 | 
             
                INCREMENT BY 1
         | 
| 805 826 | 
             
                NO MINVALUE
         | 
| @@ -811,14 +832,14 @@ CREATE SEQUENCE module_mixins_id_seq | |
| 811 832 | 
             
            -- Name: module_mixins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 812 833 | 
             
            --
         | 
| 813 834 |  | 
| 814 | 
            -
            ALTER SEQUENCE module_mixins_id_seq OWNED BY module_mixins.id;
         | 
| 835 | 
            +
            ALTER SEQUENCE public.module_mixins_id_seq OWNED BY public.module_mixins.id;
         | 
| 815 836 |  | 
| 816 837 |  | 
| 817 838 | 
             
            --
         | 
| 818 839 | 
             
            -- Name: module_platforms; Type: TABLE; Schema: public; Owner: -
         | 
| 819 840 | 
             
            --
         | 
| 820 841 |  | 
| 821 | 
            -
            CREATE TABLE module_platforms (
         | 
| 842 | 
            +
            CREATE TABLE public.module_platforms (
         | 
| 822 843 | 
             
                id integer NOT NULL,
         | 
| 823 844 | 
             
                detail_id integer,
         | 
| 824 845 | 
             
                name text
         | 
| @@ -829,7 +850,8 @@ CREATE TABLE module_platforms ( | |
| 829 850 | 
             
            -- Name: module_platforms_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 830 851 | 
             
            --
         | 
| 831 852 |  | 
| 832 | 
            -
            CREATE SEQUENCE module_platforms_id_seq
         | 
| 853 | 
            +
            CREATE SEQUENCE public.module_platforms_id_seq
         | 
| 854 | 
            +
                AS integer
         | 
| 833 855 | 
             
                START WITH 1
         | 
| 834 856 | 
             
                INCREMENT BY 1
         | 
| 835 857 | 
             
                NO MINVALUE
         | 
| @@ -841,14 +863,14 @@ CREATE SEQUENCE module_platforms_id_seq | |
| 841 863 | 
             
            -- Name: module_platforms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 842 864 | 
             
            --
         | 
| 843 865 |  | 
| 844 | 
            -
            ALTER SEQUENCE module_platforms_id_seq OWNED BY module_platforms.id;
         | 
| 866 | 
            +
            ALTER SEQUENCE public.module_platforms_id_seq OWNED BY public.module_platforms.id;
         | 
| 845 867 |  | 
| 846 868 |  | 
| 847 869 | 
             
            --
         | 
| 848 870 | 
             
            -- Name: module_refs; Type: TABLE; Schema: public; Owner: -
         | 
| 849 871 | 
             
            --
         | 
| 850 872 |  | 
| 851 | 
            -
            CREATE TABLE module_refs (
         | 
| 873 | 
            +
            CREATE TABLE public.module_refs (
         | 
| 852 874 | 
             
                id integer NOT NULL,
         | 
| 853 875 | 
             
                detail_id integer,
         | 
| 854 876 | 
             
                name text
         | 
| @@ -859,7 +881,8 @@ CREATE TABLE module_refs ( | |
| 859 881 | 
             
            -- Name: module_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 860 882 | 
             
            --
         | 
| 861 883 |  | 
| 862 | 
            -
            CREATE SEQUENCE module_refs_id_seq
         | 
| 884 | 
            +
            CREATE SEQUENCE public.module_refs_id_seq
         | 
| 885 | 
            +
                AS integer
         | 
| 863 886 | 
             
                START WITH 1
         | 
| 864 887 | 
             
                INCREMENT BY 1
         | 
| 865 888 | 
             
                NO MINVALUE
         | 
| @@ -871,14 +894,14 @@ CREATE SEQUENCE module_refs_id_seq | |
| 871 894 | 
             
            -- Name: module_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 872 895 | 
             
            --
         | 
| 873 896 |  | 
| 874 | 
            -
            ALTER SEQUENCE module_refs_id_seq OWNED BY module_refs.id;
         | 
| 897 | 
            +
            ALTER SEQUENCE public.module_refs_id_seq OWNED BY public.module_refs.id;
         | 
| 875 898 |  | 
| 876 899 |  | 
| 877 900 | 
             
            --
         | 
| 878 901 | 
             
            -- Name: module_runs; Type: TABLE; Schema: public; Owner: -
         | 
| 879 902 | 
             
            --
         | 
| 880 903 |  | 
| 881 | 
            -
            CREATE TABLE module_runs (
         | 
| 904 | 
            +
            CREATE TABLE public.module_runs (
         | 
| 882 905 | 
             
                id integer NOT NULL,
         | 
| 883 906 | 
             
                attempted_at timestamp without time zone,
         | 
| 884 907 | 
             
                fail_detail text,
         | 
| @@ -901,7 +924,8 @@ CREATE TABLE module_runs ( | |
| 901 924 | 
             
            -- Name: module_runs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 902 925 | 
             
            --
         | 
| 903 926 |  | 
| 904 | 
            -
            CREATE SEQUENCE module_runs_id_seq
         | 
| 927 | 
            +
            CREATE SEQUENCE public.module_runs_id_seq
         | 
| 928 | 
            +
                AS integer
         | 
| 905 929 | 
             
                START WITH 1
         | 
| 906 930 | 
             
                INCREMENT BY 1
         | 
| 907 931 | 
             
                NO MINVALUE
         | 
| @@ -913,14 +937,14 @@ CREATE SEQUENCE module_runs_id_seq | |
| 913 937 | 
             
            -- Name: module_runs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 914 938 | 
             
            --
         | 
| 915 939 |  | 
| 916 | 
            -
            ALTER SEQUENCE module_runs_id_seq OWNED BY module_runs.id;
         | 
| 940 | 
            +
            ALTER SEQUENCE public.module_runs_id_seq OWNED BY public.module_runs.id;
         | 
| 917 941 |  | 
| 918 942 |  | 
| 919 943 | 
             
            --
         | 
| 920 944 | 
             
            -- Name: module_targets; Type: TABLE; Schema: public; Owner: -
         | 
| 921 945 | 
             
            --
         | 
| 922 946 |  | 
| 923 | 
            -
            CREATE TABLE module_targets (
         | 
| 947 | 
            +
            CREATE TABLE public.module_targets (
         | 
| 924 948 | 
             
                id integer NOT NULL,
         | 
| 925 949 | 
             
                detail_id integer,
         | 
| 926 950 | 
             
                index integer,
         | 
| @@ -932,7 +956,8 @@ CREATE TABLE module_targets ( | |
| 932 956 | 
             
            -- Name: module_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 933 957 | 
             
            --
         | 
| 934 958 |  | 
| 935 | 
            -
            CREATE SEQUENCE module_targets_id_seq
         | 
| 959 | 
            +
            CREATE SEQUENCE public.module_targets_id_seq
         | 
| 960 | 
            +
                AS integer
         | 
| 936 961 | 
             
                START WITH 1
         | 
| 937 962 | 
             
                INCREMENT BY 1
         | 
| 938 963 | 
             
                NO MINVALUE
         | 
| @@ -944,14 +969,14 @@ CREATE SEQUENCE module_targets_id_seq | |
| 944 969 | 
             
            -- Name: module_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 945 970 | 
             
            --
         | 
| 946 971 |  | 
| 947 | 
            -
            ALTER SEQUENCE module_targets_id_seq OWNED BY module_targets.id;
         | 
| 972 | 
            +
            ALTER SEQUENCE public.module_targets_id_seq OWNED BY public.module_targets.id;
         | 
| 948 973 |  | 
| 949 974 |  | 
| 950 975 | 
             
            --
         | 
| 951 976 | 
             
            -- Name: nexpose_consoles; Type: TABLE; Schema: public; Owner: -
         | 
| 952 977 | 
             
            --
         | 
| 953 978 |  | 
| 954 | 
            -
            CREATE TABLE nexpose_consoles (
         | 
| 979 | 
            +
            CREATE TABLE public.nexpose_consoles (
         | 
| 955 980 | 
             
                id integer NOT NULL,
         | 
| 956 981 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| 957 982 | 
             
                updated_at timestamp without time zone NOT NULL,
         | 
| @@ -973,7 +998,8 @@ CREATE TABLE nexpose_consoles ( | |
| 973 998 | 
             
            -- Name: nexpose_consoles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 974 999 | 
             
            --
         | 
| 975 1000 |  | 
| 976 | 
            -
            CREATE SEQUENCE nexpose_consoles_id_seq
         | 
| 1001 | 
            +
            CREATE SEQUENCE public.nexpose_consoles_id_seq
         | 
| 1002 | 
            +
                AS integer
         | 
| 977 1003 | 
             
                START WITH 1
         | 
| 978 1004 | 
             
                INCREMENT BY 1
         | 
| 979 1005 | 
             
                NO MINVALUE
         | 
| @@ -985,14 +1011,14 @@ CREATE SEQUENCE nexpose_consoles_id_seq | |
| 985 1011 | 
             
            -- Name: nexpose_consoles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 986 1012 | 
             
            --
         | 
| 987 1013 |  | 
| 988 | 
            -
            ALTER SEQUENCE nexpose_consoles_id_seq OWNED BY nexpose_consoles.id;
         | 
| 1014 | 
            +
            ALTER SEQUENCE public.nexpose_consoles_id_seq OWNED BY public.nexpose_consoles.id;
         | 
| 989 1015 |  | 
| 990 1016 |  | 
| 991 1017 | 
             
            --
         | 
| 992 1018 | 
             
            -- Name: notes; Type: TABLE; Schema: public; Owner: -
         | 
| 993 1019 | 
             
            --
         | 
| 994 1020 |  | 
| 995 | 
            -
            CREATE TABLE notes (
         | 
| 1021 | 
            +
            CREATE TABLE public.notes (
         | 
| 996 1022 | 
             
                id integer NOT NULL,
         | 
| 997 1023 | 
             
                created_at timestamp without time zone,
         | 
| 998 1024 | 
             
                ntype character varying(512),
         | 
| @@ -1011,7 +1037,8 @@ CREATE TABLE notes ( | |
| 1011 1037 | 
             
            -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1012 1038 | 
             
            --
         | 
| 1013 1039 |  | 
| 1014 | 
            -
            CREATE SEQUENCE notes_id_seq
         | 
| 1040 | 
            +
            CREATE SEQUENCE public.notes_id_seq
         | 
| 1041 | 
            +
                AS integer
         | 
| 1015 1042 | 
             
                START WITH 1
         | 
| 1016 1043 | 
             
                INCREMENT BY 1
         | 
| 1017 1044 | 
             
                NO MINVALUE
         | 
| @@ -1023,14 +1050,57 @@ CREATE SEQUENCE notes_id_seq | |
| 1023 1050 | 
             
            -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1024 1051 | 
             
            --
         | 
| 1025 1052 |  | 
| 1026 | 
            -
            ALTER SEQUENCE notes_id_seq OWNED BY notes.id;
         | 
| 1053 | 
            +
            ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id;
         | 
| 1054 | 
            +
             | 
| 1055 | 
            +
             | 
| 1056 | 
            +
            --
         | 
| 1057 | 
            +
            -- Name: payloads; Type: TABLE; Schema: public; Owner: -
         | 
| 1058 | 
            +
            --
         | 
| 1059 | 
            +
             | 
| 1060 | 
            +
            CREATE TABLE public.payloads (
         | 
| 1061 | 
            +
                id integer NOT NULL,
         | 
| 1062 | 
            +
                name character varying,
         | 
| 1063 | 
            +
                uuid character varying,
         | 
| 1064 | 
            +
                registered boolean,
         | 
| 1065 | 
            +
                "timestamp" integer,
         | 
| 1066 | 
            +
                arch character varying,
         | 
| 1067 | 
            +
                platform character varying,
         | 
| 1068 | 
            +
                urls character varying,
         | 
| 1069 | 
            +
                description character varying,
         | 
| 1070 | 
            +
                workspace_id integer,
         | 
| 1071 | 
            +
                raw_payload character varying,
         | 
| 1072 | 
            +
                raw_payload_hash character varying,
         | 
| 1073 | 
            +
                build_opts character varying,
         | 
| 1074 | 
            +
                created_at timestamp without time zone NOT NULL,
         | 
| 1075 | 
            +
                updated_at timestamp without time zone NOT NULL
         | 
| 1076 | 
            +
            );
         | 
| 1077 | 
            +
             | 
| 1078 | 
            +
             | 
| 1079 | 
            +
            --
         | 
| 1080 | 
            +
            -- Name: payloads_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1081 | 
            +
            --
         | 
| 1082 | 
            +
             | 
| 1083 | 
            +
            CREATE SEQUENCE public.payloads_id_seq
         | 
| 1084 | 
            +
                AS integer
         | 
| 1085 | 
            +
                START WITH 1
         | 
| 1086 | 
            +
                INCREMENT BY 1
         | 
| 1087 | 
            +
                NO MINVALUE
         | 
| 1088 | 
            +
                NO MAXVALUE
         | 
| 1089 | 
            +
                CACHE 1;
         | 
| 1090 | 
            +
             | 
| 1091 | 
            +
             | 
| 1092 | 
            +
            --
         | 
| 1093 | 
            +
            -- Name: payloads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1094 | 
            +
            --
         | 
| 1095 | 
            +
             | 
| 1096 | 
            +
            ALTER SEQUENCE public.payloads_id_seq OWNED BY public.payloads.id;
         | 
| 1027 1097 |  | 
| 1028 1098 |  | 
| 1029 1099 | 
             
            --
         | 
| 1030 1100 | 
             
            -- Name: profiles; Type: TABLE; Schema: public; Owner: -
         | 
| 1031 1101 | 
             
            --
         | 
| 1032 1102 |  | 
| 1033 | 
            -
            CREATE TABLE profiles (
         | 
| 1103 | 
            +
            CREATE TABLE public.profiles (
         | 
| 1034 1104 | 
             
                id integer NOT NULL,
         | 
| 1035 1105 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| 1036 1106 | 
             
                updated_at timestamp without time zone NOT NULL,
         | 
| @@ -1045,7 +1115,8 @@ CREATE TABLE profiles ( | |
| 1045 1115 | 
             
            -- Name: profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1046 1116 | 
             
            --
         | 
| 1047 1117 |  | 
| 1048 | 
            -
            CREATE SEQUENCE profiles_id_seq
         | 
| 1118 | 
            +
            CREATE SEQUENCE public.profiles_id_seq
         | 
| 1119 | 
            +
                AS integer
         | 
| 1049 1120 | 
             
                START WITH 1
         | 
| 1050 1121 | 
             
                INCREMENT BY 1
         | 
| 1051 1122 | 
             
                NO MINVALUE
         | 
| @@ -1057,14 +1128,14 @@ CREATE SEQUENCE profiles_id_seq | |
| 1057 1128 | 
             
            -- Name: profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1058 1129 | 
             
            --
         | 
| 1059 1130 |  | 
| 1060 | 
            -
            ALTER SEQUENCE profiles_id_seq OWNED BY profiles.id;
         | 
| 1131 | 
            +
            ALTER SEQUENCE public.profiles_id_seq OWNED BY public.profiles.id;
         | 
| 1061 1132 |  | 
| 1062 1133 |  | 
| 1063 1134 | 
             
            --
         | 
| 1064 1135 | 
             
            -- Name: refs; Type: TABLE; Schema: public; Owner: -
         | 
| 1065 1136 | 
             
            --
         | 
| 1066 1137 |  | 
| 1067 | 
            -
            CREATE TABLE refs (
         | 
| 1138 | 
            +
            CREATE TABLE public.refs (
         | 
| 1068 1139 | 
             
                id integer NOT NULL,
         | 
| 1069 1140 | 
             
                ref_id integer,
         | 
| 1070 1141 | 
             
                created_at timestamp without time zone,
         | 
| @@ -1077,7 +1148,8 @@ CREATE TABLE refs ( | |
| 1077 1148 | 
             
            -- Name: refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1078 1149 | 
             
            --
         | 
| 1079 1150 |  | 
| 1080 | 
            -
            CREATE SEQUENCE refs_id_seq
         | 
| 1151 | 
            +
            CREATE SEQUENCE public.refs_id_seq
         | 
| 1152 | 
            +
                AS integer
         | 
| 1081 1153 | 
             
                START WITH 1
         | 
| 1082 1154 | 
             
                INCREMENT BY 1
         | 
| 1083 1155 | 
             
                NO MINVALUE
         | 
| @@ -1089,14 +1161,14 @@ CREATE SEQUENCE refs_id_seq | |
| 1089 1161 | 
             
            -- Name: refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1090 1162 | 
             
            --
         | 
| 1091 1163 |  | 
| 1092 | 
            -
            ALTER SEQUENCE refs_id_seq OWNED BY refs.id;
         | 
| 1164 | 
            +
            ALTER SEQUENCE public.refs_id_seq OWNED BY public.refs.id;
         | 
| 1093 1165 |  | 
| 1094 1166 |  | 
| 1095 1167 | 
             
            --
         | 
| 1096 1168 | 
             
            -- Name: report_templates; Type: TABLE; Schema: public; Owner: -
         | 
| 1097 1169 | 
             
            --
         | 
| 1098 1170 |  | 
| 1099 | 
            -
            CREATE TABLE report_templates (
         | 
| 1171 | 
            +
            CREATE TABLE public.report_templates (
         | 
| 1100 1172 | 
             
                id integer NOT NULL,
         | 
| 1101 1173 | 
             
                workspace_id integer DEFAULT 1 NOT NULL,
         | 
| 1102 1174 | 
             
                created_by character varying,
         | 
| @@ -1111,7 +1183,8 @@ CREATE TABLE report_templates ( | |
| 1111 1183 | 
             
            -- Name: report_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1112 1184 | 
             
            --
         | 
| 1113 1185 |  | 
| 1114 | 
            -
            CREATE SEQUENCE report_templates_id_seq
         | 
| 1186 | 
            +
            CREATE SEQUENCE public.report_templates_id_seq
         | 
| 1187 | 
            +
                AS integer
         | 
| 1115 1188 | 
             
                START WITH 1
         | 
| 1116 1189 | 
             
                INCREMENT BY 1
         | 
| 1117 1190 | 
             
                NO MINVALUE
         | 
| @@ -1123,14 +1196,14 @@ CREATE SEQUENCE report_templates_id_seq | |
| 1123 1196 | 
             
            -- Name: report_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1124 1197 | 
             
            --
         | 
| 1125 1198 |  | 
| 1126 | 
            -
            ALTER SEQUENCE report_templates_id_seq OWNED BY report_templates.id;
         | 
| 1199 | 
            +
            ALTER SEQUENCE public.report_templates_id_seq OWNED BY public.report_templates.id;
         | 
| 1127 1200 |  | 
| 1128 1201 |  | 
| 1129 1202 | 
             
            --
         | 
| 1130 1203 | 
             
            -- Name: reports; Type: TABLE; Schema: public; Owner: -
         | 
| 1131 1204 | 
             
            --
         | 
| 1132 1205 |  | 
| 1133 | 
            -
            CREATE TABLE reports (
         | 
| 1206 | 
            +
            CREATE TABLE public.reports (
         | 
| 1134 1207 | 
             
                id integer NOT NULL,
         | 
| 1135 1208 | 
             
                workspace_id integer DEFAULT 1 NOT NULL,
         | 
| 1136 1209 | 
             
                created_by character varying,
         | 
| @@ -1149,7 +1222,8 @@ CREATE TABLE reports ( | |
| 1149 1222 | 
             
            -- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1150 1223 | 
             
            --
         | 
| 1151 1224 |  | 
| 1152 | 
            -
            CREATE SEQUENCE reports_id_seq
         | 
| 1225 | 
            +
            CREATE SEQUENCE public.reports_id_seq
         | 
| 1226 | 
            +
                AS integer
         | 
| 1153 1227 | 
             
                START WITH 1
         | 
| 1154 1228 | 
             
                INCREMENT BY 1
         | 
| 1155 1229 | 
             
                NO MINVALUE
         | 
| @@ -1161,14 +1235,14 @@ CREATE SEQUENCE reports_id_seq | |
| 1161 1235 | 
             
            -- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1162 1236 | 
             
            --
         | 
| 1163 1237 |  | 
| 1164 | 
            -
            ALTER SEQUENCE reports_id_seq OWNED BY reports.id;
         | 
| 1238 | 
            +
            ALTER SEQUENCE public.reports_id_seq OWNED BY public.reports.id;
         | 
| 1165 1239 |  | 
| 1166 1240 |  | 
| 1167 1241 | 
             
            --
         | 
| 1168 1242 | 
             
            -- Name: routes; Type: TABLE; Schema: public; Owner: -
         | 
| 1169 1243 | 
             
            --
         | 
| 1170 1244 |  | 
| 1171 | 
            -
            CREATE TABLE routes (
         | 
| 1245 | 
            +
            CREATE TABLE public.routes (
         | 
| 1172 1246 | 
             
                id integer NOT NULL,
         | 
| 1173 1247 | 
             
                session_id integer,
         | 
| 1174 1248 | 
             
                subnet character varying,
         | 
| @@ -1180,7 +1254,8 @@ CREATE TABLE routes ( | |
| 1180 1254 | 
             
            -- Name: routes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1181 1255 | 
             
            --
         | 
| 1182 1256 |  | 
| 1183 | 
            -
            CREATE SEQUENCE routes_id_seq
         | 
| 1257 | 
            +
            CREATE SEQUENCE public.routes_id_seq
         | 
| 1258 | 
            +
                AS integer
         | 
| 1184 1259 | 
             
                START WITH 1
         | 
| 1185 1260 | 
             
                INCREMENT BY 1
         | 
| 1186 1261 | 
             
                NO MINVALUE
         | 
| @@ -1192,14 +1267,14 @@ CREATE SEQUENCE routes_id_seq | |
| 1192 1267 | 
             
            -- Name: routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1193 1268 | 
             
            --
         | 
| 1194 1269 |  | 
| 1195 | 
            -
            ALTER SEQUENCE routes_id_seq OWNED BY routes.id;
         | 
| 1270 | 
            +
            ALTER SEQUENCE public.routes_id_seq OWNED BY public.routes.id;
         | 
| 1196 1271 |  | 
| 1197 1272 |  | 
| 1198 1273 | 
             
            --
         | 
| 1199 1274 | 
             
            -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
         | 
| 1200 1275 | 
             
            --
         | 
| 1201 1276 |  | 
| 1202 | 
            -
            CREATE TABLE schema_migrations (
         | 
| 1277 | 
            +
            CREATE TABLE public.schema_migrations (
         | 
| 1203 1278 | 
             
                version character varying NOT NULL
         | 
| 1204 1279 | 
             
            );
         | 
| 1205 1280 |  | 
| @@ -1208,7 +1283,7 @@ CREATE TABLE schema_migrations ( | |
| 1208 1283 | 
             
            -- Name: services; Type: TABLE; Schema: public; Owner: -
         | 
| 1209 1284 | 
             
            --
         | 
| 1210 1285 |  | 
| 1211 | 
            -
            CREATE TABLE services (
         | 
| 1286 | 
            +
            CREATE TABLE public.services (
         | 
| 1212 1287 | 
             
                id integer NOT NULL,
         | 
| 1213 1288 | 
             
                host_id integer,
         | 
| 1214 1289 | 
             
                created_at timestamp without time zone,
         | 
| @@ -1225,7 +1300,8 @@ CREATE TABLE services ( | |
| 1225 1300 | 
             
            -- Name: services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1226 1301 | 
             
            --
         | 
| 1227 1302 |  | 
| 1228 | 
            -
            CREATE SEQUENCE services_id_seq
         | 
| 1303 | 
            +
            CREATE SEQUENCE public.services_id_seq
         | 
| 1304 | 
            +
                AS integer
         | 
| 1229 1305 | 
             
                START WITH 1
         | 
| 1230 1306 | 
             
                INCREMENT BY 1
         | 
| 1231 1307 | 
             
                NO MINVALUE
         | 
| @@ -1237,14 +1313,14 @@ CREATE SEQUENCE services_id_seq | |
| 1237 1313 | 
             
            -- Name: services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1238 1314 | 
             
            --
         | 
| 1239 1315 |  | 
| 1240 | 
            -
            ALTER SEQUENCE services_id_seq OWNED BY services.id;
         | 
| 1316 | 
            +
            ALTER SEQUENCE public.services_id_seq OWNED BY public.services.id;
         | 
| 1241 1317 |  | 
| 1242 1318 |  | 
| 1243 1319 | 
             
            --
         | 
| 1244 1320 | 
             
            -- Name: session_events; Type: TABLE; Schema: public; Owner: -
         | 
| 1245 1321 | 
             
            --
         | 
| 1246 1322 |  | 
| 1247 | 
            -
            CREATE TABLE session_events (
         | 
| 1323 | 
            +
            CREATE TABLE public.session_events (
         | 
| 1248 1324 | 
             
                id integer NOT NULL,
         | 
| 1249 1325 | 
             
                session_id integer,
         | 
| 1250 1326 | 
             
                etype character varying,
         | 
| @@ -1260,7 +1336,8 @@ CREATE TABLE session_events ( | |
| 1260 1336 | 
             
            -- Name: session_events_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1261 1337 | 
             
            --
         | 
| 1262 1338 |  | 
| 1263 | 
            -
            CREATE SEQUENCE session_events_id_seq
         | 
| 1339 | 
            +
            CREATE SEQUENCE public.session_events_id_seq
         | 
| 1340 | 
            +
                AS integer
         | 
| 1264 1341 | 
             
                START WITH 1
         | 
| 1265 1342 | 
             
                INCREMENT BY 1
         | 
| 1266 1343 | 
             
                NO MINVALUE
         | 
| @@ -1272,14 +1349,14 @@ CREATE SEQUENCE session_events_id_seq | |
| 1272 1349 | 
             
            -- Name: session_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1273 1350 | 
             
            --
         | 
| 1274 1351 |  | 
| 1275 | 
            -
            ALTER SEQUENCE session_events_id_seq OWNED BY session_events.id;
         | 
| 1352 | 
            +
            ALTER SEQUENCE public.session_events_id_seq OWNED BY public.session_events.id;
         | 
| 1276 1353 |  | 
| 1277 1354 |  | 
| 1278 1355 | 
             
            --
         | 
| 1279 1356 | 
             
            -- Name: sessions; Type: TABLE; Schema: public; Owner: -
         | 
| 1280 1357 | 
             
            --
         | 
| 1281 1358 |  | 
| 1282 | 
            -
            CREATE TABLE sessions (
         | 
| 1359 | 
            +
            CREATE TABLE public.sessions (
         | 
| 1283 1360 | 
             
                id integer NOT NULL,
         | 
| 1284 1361 | 
             
                host_id integer,
         | 
| 1285 1362 | 
             
                stype character varying,
         | 
| @@ -1302,7 +1379,8 @@ CREATE TABLE sessions ( | |
| 1302 1379 | 
             
            -- Name: sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1303 1380 | 
             
            --
         | 
| 1304 1381 |  | 
| 1305 | 
            -
            CREATE SEQUENCE sessions_id_seq
         | 
| 1382 | 
            +
            CREATE SEQUENCE public.sessions_id_seq
         | 
| 1383 | 
            +
                AS integer
         | 
| 1306 1384 | 
             
                START WITH 1
         | 
| 1307 1385 | 
             
                INCREMENT BY 1
         | 
| 1308 1386 | 
             
                NO MINVALUE
         | 
| @@ -1314,14 +1392,14 @@ CREATE SEQUENCE sessions_id_seq | |
| 1314 1392 | 
             
            -- Name: sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1315 1393 | 
             
            --
         | 
| 1316 1394 |  | 
| 1317 | 
            -
            ALTER SEQUENCE sessions_id_seq OWNED BY sessions.id;
         | 
| 1395 | 
            +
            ALTER SEQUENCE public.sessions_id_seq OWNED BY public.sessions.id;
         | 
| 1318 1396 |  | 
| 1319 1397 |  | 
| 1320 1398 | 
             
            --
         | 
| 1321 1399 | 
             
            -- Name: tags; Type: TABLE; Schema: public; Owner: -
         | 
| 1322 1400 | 
             
            --
         | 
| 1323 1401 |  | 
| 1324 | 
            -
            CREATE TABLE tags (
         | 
| 1402 | 
            +
            CREATE TABLE public.tags (
         | 
| 1325 1403 | 
             
                id integer NOT NULL,
         | 
| 1326 1404 | 
             
                user_id integer,
         | 
| 1327 1405 | 
             
                name character varying(1024),
         | 
| @@ -1338,7 +1416,8 @@ CREATE TABLE tags ( | |
| 1338 1416 | 
             
            -- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1339 1417 | 
             
            --
         | 
| 1340 1418 |  | 
| 1341 | 
            -
            CREATE SEQUENCE tags_id_seq
         | 
| 1419 | 
            +
            CREATE SEQUENCE public.tags_id_seq
         | 
| 1420 | 
            +
                AS integer
         | 
| 1342 1421 | 
             
                START WITH 1
         | 
| 1343 1422 | 
             
                INCREMENT BY 1
         | 
| 1344 1423 | 
             
                NO MINVALUE
         | 
| @@ -1350,14 +1429,14 @@ CREATE SEQUENCE tags_id_seq | |
| 1350 1429 | 
             
            -- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1351 1430 | 
             
            --
         | 
| 1352 1431 |  | 
| 1353 | 
            -
            ALTER SEQUENCE tags_id_seq OWNED BY tags.id;
         | 
| 1432 | 
            +
            ALTER SEQUENCE public.tags_id_seq OWNED BY public.tags.id;
         | 
| 1354 1433 |  | 
| 1355 1434 |  | 
| 1356 1435 | 
             
            --
         | 
| 1357 1436 | 
             
            -- Name: task_creds; Type: TABLE; Schema: public; Owner: -
         | 
| 1358 1437 | 
             
            --
         | 
| 1359 1438 |  | 
| 1360 | 
            -
            CREATE TABLE task_creds (
         | 
| 1439 | 
            +
            CREATE TABLE public.task_creds (
         | 
| 1361 1440 | 
             
                id integer NOT NULL,
         | 
| 1362 1441 | 
             
                task_id integer NOT NULL,
         | 
| 1363 1442 | 
             
                cred_id integer NOT NULL,
         | 
| @@ -1370,7 +1449,8 @@ CREATE TABLE task_creds ( | |
| 1370 1449 | 
             
            -- Name: task_creds_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1371 1450 | 
             
            --
         | 
| 1372 1451 |  | 
| 1373 | 
            -
            CREATE SEQUENCE task_creds_id_seq
         | 
| 1452 | 
            +
            CREATE SEQUENCE public.task_creds_id_seq
         | 
| 1453 | 
            +
                AS integer
         | 
| 1374 1454 | 
             
                START WITH 1
         | 
| 1375 1455 | 
             
                INCREMENT BY 1
         | 
| 1376 1456 | 
             
                NO MINVALUE
         | 
| @@ -1382,14 +1462,14 @@ CREATE SEQUENCE task_creds_id_seq | |
| 1382 1462 | 
             
            -- Name: task_creds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1383 1463 | 
             
            --
         | 
| 1384 1464 |  | 
| 1385 | 
            -
            ALTER SEQUENCE task_creds_id_seq OWNED BY task_creds.id;
         | 
| 1465 | 
            +
            ALTER SEQUENCE public.task_creds_id_seq OWNED BY public.task_creds.id;
         | 
| 1386 1466 |  | 
| 1387 1467 |  | 
| 1388 1468 | 
             
            --
         | 
| 1389 1469 | 
             
            -- Name: task_hosts; Type: TABLE; Schema: public; Owner: -
         | 
| 1390 1470 | 
             
            --
         | 
| 1391 1471 |  | 
| 1392 | 
            -
            CREATE TABLE task_hosts (
         | 
| 1472 | 
            +
            CREATE TABLE public.task_hosts (
         | 
| 1393 1473 | 
             
                id integer NOT NULL,
         | 
| 1394 1474 | 
             
                task_id integer NOT NULL,
         | 
| 1395 1475 | 
             
                host_id integer NOT NULL,
         | 
| @@ -1402,7 +1482,8 @@ CREATE TABLE task_hosts ( | |
| 1402 1482 | 
             
            -- Name: task_hosts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1403 1483 | 
             
            --
         | 
| 1404 1484 |  | 
| 1405 | 
            -
            CREATE SEQUENCE task_hosts_id_seq
         | 
| 1485 | 
            +
            CREATE SEQUENCE public.task_hosts_id_seq
         | 
| 1486 | 
            +
                AS integer
         | 
| 1406 1487 | 
             
                START WITH 1
         | 
| 1407 1488 | 
             
                INCREMENT BY 1
         | 
| 1408 1489 | 
             
                NO MINVALUE
         | 
| @@ -1414,14 +1495,14 @@ CREATE SEQUENCE task_hosts_id_seq | |
| 1414 1495 | 
             
            -- Name: task_hosts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1415 1496 | 
             
            --
         | 
| 1416 1497 |  | 
| 1417 | 
            -
            ALTER SEQUENCE task_hosts_id_seq OWNED BY task_hosts.id;
         | 
| 1498 | 
            +
            ALTER SEQUENCE public.task_hosts_id_seq OWNED BY public.task_hosts.id;
         | 
| 1418 1499 |  | 
| 1419 1500 |  | 
| 1420 1501 | 
             
            --
         | 
| 1421 1502 | 
             
            -- Name: task_services; Type: TABLE; Schema: public; Owner: -
         | 
| 1422 1503 | 
             
            --
         | 
| 1423 1504 |  | 
| 1424 | 
            -
            CREATE TABLE task_services (
         | 
| 1505 | 
            +
            CREATE TABLE public.task_services (
         | 
| 1425 1506 | 
             
                id integer NOT NULL,
         | 
| 1426 1507 | 
             
                task_id integer NOT NULL,
         | 
| 1427 1508 | 
             
                service_id integer NOT NULL,
         | 
| @@ -1434,7 +1515,8 @@ CREATE TABLE task_services ( | |
| 1434 1515 | 
             
            -- Name: task_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1435 1516 | 
             
            --
         | 
| 1436 1517 |  | 
| 1437 | 
            -
            CREATE SEQUENCE task_services_id_seq
         | 
| 1518 | 
            +
            CREATE SEQUENCE public.task_services_id_seq
         | 
| 1519 | 
            +
                AS integer
         | 
| 1438 1520 | 
             
                START WITH 1
         | 
| 1439 1521 | 
             
                INCREMENT BY 1
         | 
| 1440 1522 | 
             
                NO MINVALUE
         | 
| @@ -1446,14 +1528,14 @@ CREATE SEQUENCE task_services_id_seq | |
| 1446 1528 | 
             
            -- Name: task_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1447 1529 | 
             
            --
         | 
| 1448 1530 |  | 
| 1449 | 
            -
            ALTER SEQUENCE task_services_id_seq OWNED BY task_services.id;
         | 
| 1531 | 
            +
            ALTER SEQUENCE public.task_services_id_seq OWNED BY public.task_services.id;
         | 
| 1450 1532 |  | 
| 1451 1533 |  | 
| 1452 1534 | 
             
            --
         | 
| 1453 1535 | 
             
            -- Name: task_sessions; Type: TABLE; Schema: public; Owner: -
         | 
| 1454 1536 | 
             
            --
         | 
| 1455 1537 |  | 
| 1456 | 
            -
            CREATE TABLE task_sessions (
         | 
| 1538 | 
            +
            CREATE TABLE public.task_sessions (
         | 
| 1457 1539 | 
             
                id integer NOT NULL,
         | 
| 1458 1540 | 
             
                task_id integer NOT NULL,
         | 
| 1459 1541 | 
             
                session_id integer NOT NULL,
         | 
| @@ -1466,7 +1548,8 @@ CREATE TABLE task_sessions ( | |
| 1466 1548 | 
             
            -- Name: task_sessions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1467 1549 | 
             
            --
         | 
| 1468 1550 |  | 
| 1469 | 
            -
            CREATE SEQUENCE task_sessions_id_seq
         | 
| 1551 | 
            +
            CREATE SEQUENCE public.task_sessions_id_seq
         | 
| 1552 | 
            +
                AS integer
         | 
| 1470 1553 | 
             
                START WITH 1
         | 
| 1471 1554 | 
             
                INCREMENT BY 1
         | 
| 1472 1555 | 
             
                NO MINVALUE
         | 
| @@ -1478,14 +1561,14 @@ CREATE SEQUENCE task_sessions_id_seq | |
| 1478 1561 | 
             
            -- Name: task_sessions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1479 1562 | 
             
            --
         | 
| 1480 1563 |  | 
| 1481 | 
            -
            ALTER SEQUENCE task_sessions_id_seq OWNED BY task_sessions.id;
         | 
| 1564 | 
            +
            ALTER SEQUENCE public.task_sessions_id_seq OWNED BY public.task_sessions.id;
         | 
| 1482 1565 |  | 
| 1483 1566 |  | 
| 1484 1567 | 
             
            --
         | 
| 1485 1568 | 
             
            -- Name: tasks; Type: TABLE; Schema: public; Owner: -
         | 
| 1486 1569 | 
             
            --
         | 
| 1487 1570 |  | 
| 1488 | 
            -
            CREATE TABLE tasks (
         | 
| 1571 | 
            +
            CREATE TABLE public.tasks (
         | 
| 1489 1572 | 
             
                id integer NOT NULL,
         | 
| 1490 1573 | 
             
                workspace_id integer DEFAULT 1 NOT NULL,
         | 
| 1491 1574 | 
             
                created_by character varying,
         | 
| @@ -1509,7 +1592,8 @@ CREATE TABLE tasks ( | |
| 1509 1592 | 
             
            -- Name: tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1510 1593 | 
             
            --
         | 
| 1511 1594 |  | 
| 1512 | 
            -
            CREATE SEQUENCE tasks_id_seq
         | 
| 1595 | 
            +
            CREATE SEQUENCE public.tasks_id_seq
         | 
| 1596 | 
            +
                AS integer
         | 
| 1513 1597 | 
             
                START WITH 1
         | 
| 1514 1598 | 
             
                INCREMENT BY 1
         | 
| 1515 1599 | 
             
                NO MINVALUE
         | 
| @@ -1521,14 +1605,14 @@ CREATE SEQUENCE tasks_id_seq | |
| 1521 1605 | 
             
            -- Name: tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1522 1606 | 
             
            --
         | 
| 1523 1607 |  | 
| 1524 | 
            -
            ALTER SEQUENCE tasks_id_seq OWNED BY tasks.id;
         | 
| 1608 | 
            +
            ALTER SEQUENCE public.tasks_id_seq OWNED BY public.tasks.id;
         | 
| 1525 1609 |  | 
| 1526 1610 |  | 
| 1527 1611 | 
             
            --
         | 
| 1528 1612 | 
             
            -- Name: users; Type: TABLE; Schema: public; Owner: -
         | 
| 1529 1613 | 
             
            --
         | 
| 1530 1614 |  | 
| 1531 | 
            -
            CREATE TABLE users (
         | 
| 1615 | 
            +
            CREATE TABLE public.users (
         | 
| 1532 1616 | 
             
                id integer NOT NULL,
         | 
| 1533 1617 | 
             
                username character varying,
         | 
| 1534 1618 | 
             
                crypted_password character varying,
         | 
| @@ -1549,7 +1633,8 @@ CREATE TABLE users ( | |
| 1549 1633 | 
             
            -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1550 1634 | 
             
            --
         | 
| 1551 1635 |  | 
| 1552 | 
            -
            CREATE SEQUENCE users_id_seq
         | 
| 1636 | 
            +
            CREATE SEQUENCE public.users_id_seq
         | 
| 1637 | 
            +
                AS integer
         | 
| 1553 1638 | 
             
                START WITH 1
         | 
| 1554 1639 | 
             
                INCREMENT BY 1
         | 
| 1555 1640 | 
             
                NO MINVALUE
         | 
| @@ -1561,14 +1646,14 @@ CREATE SEQUENCE users_id_seq | |
| 1561 1646 | 
             
            -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1562 1647 | 
             
            --
         | 
| 1563 1648 |  | 
| 1564 | 
            -
            ALTER SEQUENCE users_id_seq OWNED BY users.id;
         | 
| 1649 | 
            +
            ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
         | 
| 1565 1650 |  | 
| 1566 1651 |  | 
| 1567 1652 | 
             
            --
         | 
| 1568 1653 | 
             
            -- Name: vuln_attempts; Type: TABLE; Schema: public; Owner: -
         | 
| 1569 1654 | 
             
            --
         | 
| 1570 1655 |  | 
| 1571 | 
            -
            CREATE TABLE vuln_attempts (
         | 
| 1656 | 
            +
            CREATE TABLE public.vuln_attempts (
         | 
| 1572 1657 | 
             
                id integer NOT NULL,
         | 
| 1573 1658 | 
             
                vuln_id integer,
         | 
| 1574 1659 | 
             
                attempted_at timestamp without time zone,
         | 
| @@ -1586,7 +1671,8 @@ CREATE TABLE vuln_attempts ( | |
| 1586 1671 | 
             
            -- Name: vuln_attempts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1587 1672 | 
             
            --
         | 
| 1588 1673 |  | 
| 1589 | 
            -
            CREATE SEQUENCE vuln_attempts_id_seq
         | 
| 1674 | 
            +
            CREATE SEQUENCE public.vuln_attempts_id_seq
         | 
| 1675 | 
            +
                AS integer
         | 
| 1590 1676 | 
             
                START WITH 1
         | 
| 1591 1677 | 
             
                INCREMENT BY 1
         | 
| 1592 1678 | 
             
                NO MINVALUE
         | 
| @@ -1598,14 +1684,14 @@ CREATE SEQUENCE vuln_attempts_id_seq | |
| 1598 1684 | 
             
            -- Name: vuln_attempts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1599 1685 | 
             
            --
         | 
| 1600 1686 |  | 
| 1601 | 
            -
            ALTER SEQUENCE vuln_attempts_id_seq OWNED BY vuln_attempts.id;
         | 
| 1687 | 
            +
            ALTER SEQUENCE public.vuln_attempts_id_seq OWNED BY public.vuln_attempts.id;
         | 
| 1602 1688 |  | 
| 1603 1689 |  | 
| 1604 1690 | 
             
            --
         | 
| 1605 1691 | 
             
            -- Name: vuln_details; Type: TABLE; Schema: public; Owner: -
         | 
| 1606 1692 | 
             
            --
         | 
| 1607 1693 |  | 
| 1608 | 
            -
            CREATE TABLE vuln_details (
         | 
| 1694 | 
            +
            CREATE TABLE public.vuln_details (
         | 
| 1609 1695 | 
             
                id integer NOT NULL,
         | 
| 1610 1696 | 
             
                vuln_id integer,
         | 
| 1611 1697 | 
             
                cvss_score double precision,
         | 
| @@ -1636,7 +1722,8 @@ CREATE TABLE vuln_details ( | |
| 1636 1722 | 
             
            -- Name: vuln_details_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1637 1723 | 
             
            --
         | 
| 1638 1724 |  | 
| 1639 | 
            -
            CREATE SEQUENCE vuln_details_id_seq
         | 
| 1725 | 
            +
            CREATE SEQUENCE public.vuln_details_id_seq
         | 
| 1726 | 
            +
                AS integer
         | 
| 1640 1727 | 
             
                START WITH 1
         | 
| 1641 1728 | 
             
                INCREMENT BY 1
         | 
| 1642 1729 | 
             
                NO MINVALUE
         | 
| @@ -1648,14 +1735,14 @@ CREATE SEQUENCE vuln_details_id_seq | |
| 1648 1735 | 
             
            -- Name: vuln_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1649 1736 | 
             
            --
         | 
| 1650 1737 |  | 
| 1651 | 
            -
            ALTER SEQUENCE vuln_details_id_seq OWNED BY vuln_details.id;
         | 
| 1738 | 
            +
            ALTER SEQUENCE public.vuln_details_id_seq OWNED BY public.vuln_details.id;
         | 
| 1652 1739 |  | 
| 1653 1740 |  | 
| 1654 1741 | 
             
            --
         | 
| 1655 1742 | 
             
            -- Name: vulns; Type: TABLE; Schema: public; Owner: -
         | 
| 1656 1743 | 
             
            --
         | 
| 1657 1744 |  | 
| 1658 | 
            -
            CREATE TABLE vulns (
         | 
| 1745 | 
            +
            CREATE TABLE public.vulns (
         | 
| 1659 1746 | 
             
                id integer NOT NULL,
         | 
| 1660 1747 | 
             
                host_id integer,
         | 
| 1661 1748 | 
             
                service_id integer,
         | 
| @@ -1675,7 +1762,8 @@ CREATE TABLE vulns ( | |
| 1675 1762 | 
             
            -- Name: vulns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1676 1763 | 
             
            --
         | 
| 1677 1764 |  | 
| 1678 | 
            -
            CREATE SEQUENCE vulns_id_seq
         | 
| 1765 | 
            +
            CREATE SEQUENCE public.vulns_id_seq
         | 
| 1766 | 
            +
                AS integer
         | 
| 1679 1767 | 
             
                START WITH 1
         | 
| 1680 1768 | 
             
                INCREMENT BY 1
         | 
| 1681 1769 | 
             
                NO MINVALUE
         | 
| @@ -1687,14 +1775,14 @@ CREATE SEQUENCE vulns_id_seq | |
| 1687 1775 | 
             
            -- Name: vulns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1688 1776 | 
             
            --
         | 
| 1689 1777 |  | 
| 1690 | 
            -
            ALTER SEQUENCE vulns_id_seq OWNED BY vulns.id;
         | 
| 1778 | 
            +
            ALTER SEQUENCE public.vulns_id_seq OWNED BY public.vulns.id;
         | 
| 1691 1779 |  | 
| 1692 1780 |  | 
| 1693 1781 | 
             
            --
         | 
| 1694 1782 | 
             
            -- Name: vulns_refs; Type: TABLE; Schema: public; Owner: -
         | 
| 1695 1783 | 
             
            --
         | 
| 1696 1784 |  | 
| 1697 | 
            -
            CREATE TABLE vulns_refs (
         | 
| 1785 | 
            +
            CREATE TABLE public.vulns_refs (
         | 
| 1698 1786 | 
             
                ref_id integer,
         | 
| 1699 1787 | 
             
                vuln_id integer,
         | 
| 1700 1788 | 
             
                id integer NOT NULL
         | 
| @@ -1705,7 +1793,8 @@ CREATE TABLE vulns_refs ( | |
| 1705 1793 | 
             
            -- Name: vulns_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1706 1794 | 
             
            --
         | 
| 1707 1795 |  | 
| 1708 | 
            -
            CREATE SEQUENCE vulns_refs_id_seq
         | 
| 1796 | 
            +
            CREATE SEQUENCE public.vulns_refs_id_seq
         | 
| 1797 | 
            +
                AS integer
         | 
| 1709 1798 | 
             
                START WITH 1
         | 
| 1710 1799 | 
             
                INCREMENT BY 1
         | 
| 1711 1800 | 
             
                NO MINVALUE
         | 
| @@ -1717,14 +1806,14 @@ CREATE SEQUENCE vulns_refs_id_seq | |
| 1717 1806 | 
             
            -- Name: vulns_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1718 1807 | 
             
            --
         | 
| 1719 1808 |  | 
| 1720 | 
            -
            ALTER SEQUENCE vulns_refs_id_seq OWNED BY vulns_refs.id;
         | 
| 1809 | 
            +
            ALTER SEQUENCE public.vulns_refs_id_seq OWNED BY public.vulns_refs.id;
         | 
| 1721 1810 |  | 
| 1722 1811 |  | 
| 1723 1812 | 
             
            --
         | 
| 1724 1813 | 
             
            -- Name: web_forms; Type: TABLE; Schema: public; Owner: -
         | 
| 1725 1814 | 
             
            --
         | 
| 1726 1815 |  | 
| 1727 | 
            -
            CREATE TABLE web_forms (
         | 
| 1816 | 
            +
            CREATE TABLE public.web_forms (
         | 
| 1728 1817 | 
             
                id integer NOT NULL,
         | 
| 1729 1818 | 
             
                web_site_id integer NOT NULL,
         | 
| 1730 1819 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -1740,7 +1829,8 @@ CREATE TABLE web_forms ( | |
| 1740 1829 | 
             
            -- Name: web_forms_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1741 1830 | 
             
            --
         | 
| 1742 1831 |  | 
| 1743 | 
            -
            CREATE SEQUENCE web_forms_id_seq
         | 
| 1832 | 
            +
            CREATE SEQUENCE public.web_forms_id_seq
         | 
| 1833 | 
            +
                AS integer
         | 
| 1744 1834 | 
             
                START WITH 1
         | 
| 1745 1835 | 
             
                INCREMENT BY 1
         | 
| 1746 1836 | 
             
                NO MINVALUE
         | 
| @@ -1752,14 +1842,14 @@ CREATE SEQUENCE web_forms_id_seq | |
| 1752 1842 | 
             
            -- Name: web_forms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1753 1843 | 
             
            --
         | 
| 1754 1844 |  | 
| 1755 | 
            -
            ALTER SEQUENCE web_forms_id_seq OWNED BY web_forms.id;
         | 
| 1845 | 
            +
            ALTER SEQUENCE public.web_forms_id_seq OWNED BY public.web_forms.id;
         | 
| 1756 1846 |  | 
| 1757 1847 |  | 
| 1758 1848 | 
             
            --
         | 
| 1759 1849 | 
             
            -- Name: web_pages; Type: TABLE; Schema: public; Owner: -
         | 
| 1760 1850 | 
             
            --
         | 
| 1761 1851 |  | 
| 1762 | 
            -
            CREATE TABLE web_pages (
         | 
| 1852 | 
            +
            CREATE TABLE public.web_pages (
         | 
| 1763 1853 | 
             
                id integer NOT NULL,
         | 
| 1764 1854 | 
             
                web_site_id integer NOT NULL,
         | 
| 1765 1855 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -1782,7 +1872,8 @@ CREATE TABLE web_pages ( | |
| 1782 1872 | 
             
            -- Name: web_pages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1783 1873 | 
             
            --
         | 
| 1784 1874 |  | 
| 1785 | 
            -
            CREATE SEQUENCE web_pages_id_seq
         | 
| 1875 | 
            +
            CREATE SEQUENCE public.web_pages_id_seq
         | 
| 1876 | 
            +
                AS integer
         | 
| 1786 1877 | 
             
                START WITH 1
         | 
| 1787 1878 | 
             
                INCREMENT BY 1
         | 
| 1788 1879 | 
             
                NO MINVALUE
         | 
| @@ -1794,14 +1885,14 @@ CREATE SEQUENCE web_pages_id_seq | |
| 1794 1885 | 
             
            -- Name: web_pages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1795 1886 | 
             
            --
         | 
| 1796 1887 |  | 
| 1797 | 
            -
            ALTER SEQUENCE web_pages_id_seq OWNED BY web_pages.id;
         | 
| 1888 | 
            +
            ALTER SEQUENCE public.web_pages_id_seq OWNED BY public.web_pages.id;
         | 
| 1798 1889 |  | 
| 1799 1890 |  | 
| 1800 1891 | 
             
            --
         | 
| 1801 1892 | 
             
            -- Name: web_sites; Type: TABLE; Schema: public; Owner: -
         | 
| 1802 1893 | 
             
            --
         | 
| 1803 1894 |  | 
| 1804 | 
            -
            CREATE TABLE web_sites (
         | 
| 1895 | 
            +
            CREATE TABLE public.web_sites (
         | 
| 1805 1896 | 
             
                id integer NOT NULL,
         | 
| 1806 1897 | 
             
                service_id integer NOT NULL,
         | 
| 1807 1898 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -1816,7 +1907,8 @@ CREATE TABLE web_sites ( | |
| 1816 1907 | 
             
            -- Name: web_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1817 1908 | 
             
            --
         | 
| 1818 1909 |  | 
| 1819 | 
            -
            CREATE SEQUENCE web_sites_id_seq
         | 
| 1910 | 
            +
            CREATE SEQUENCE public.web_sites_id_seq
         | 
| 1911 | 
            +
                AS integer
         | 
| 1820 1912 | 
             
                START WITH 1
         | 
| 1821 1913 | 
             
                INCREMENT BY 1
         | 
| 1822 1914 | 
             
                NO MINVALUE
         | 
| @@ -1828,14 +1920,14 @@ CREATE SEQUENCE web_sites_id_seq | |
| 1828 1920 | 
             
            -- Name: web_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1829 1921 | 
             
            --
         | 
| 1830 1922 |  | 
| 1831 | 
            -
            ALTER SEQUENCE web_sites_id_seq OWNED BY web_sites.id;
         | 
| 1923 | 
            +
            ALTER SEQUENCE public.web_sites_id_seq OWNED BY public.web_sites.id;
         | 
| 1832 1924 |  | 
| 1833 1925 |  | 
| 1834 1926 | 
             
            --
         | 
| 1835 1927 | 
             
            -- Name: web_vulns; Type: TABLE; Schema: public; Owner: -
         | 
| 1836 1928 | 
             
            --
         | 
| 1837 1929 |  | 
| 1838 | 
            -
            CREATE TABLE web_vulns (
         | 
| 1930 | 
            +
            CREATE TABLE public.web_vulns (
         | 
| 1839 1931 | 
             
                id integer NOT NULL,
         | 
| 1840 1932 | 
             
                web_site_id integer NOT NULL,
         | 
| 1841 1933 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -1862,7 +1954,8 @@ CREATE TABLE web_vulns ( | |
| 1862 1954 | 
             
            -- Name: web_vulns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1863 1955 | 
             
            --
         | 
| 1864 1956 |  | 
| 1865 | 
            -
            CREATE SEQUENCE web_vulns_id_seq
         | 
| 1957 | 
            +
            CREATE SEQUENCE public.web_vulns_id_seq
         | 
| 1958 | 
            +
                AS integer
         | 
| 1866 1959 | 
             
                START WITH 1
         | 
| 1867 1960 | 
             
                INCREMENT BY 1
         | 
| 1868 1961 | 
             
                NO MINVALUE
         | 
| @@ -1874,14 +1967,14 @@ CREATE SEQUENCE web_vulns_id_seq | |
| 1874 1967 | 
             
            -- Name: web_vulns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1875 1968 | 
             
            --
         | 
| 1876 1969 |  | 
| 1877 | 
            -
            ALTER SEQUENCE web_vulns_id_seq OWNED BY web_vulns.id;
         | 
| 1970 | 
            +
            ALTER SEQUENCE public.web_vulns_id_seq OWNED BY public.web_vulns.id;
         | 
| 1878 1971 |  | 
| 1879 1972 |  | 
| 1880 1973 | 
             
            --
         | 
| 1881 1974 | 
             
            -- Name: wmap_requests; Type: TABLE; Schema: public; Owner: -
         | 
| 1882 1975 | 
             
            --
         | 
| 1883 1976 |  | 
| 1884 | 
            -
            CREATE TABLE wmap_requests (
         | 
| 1977 | 
            +
            CREATE TABLE public.wmap_requests (
         | 
| 1885 1978 | 
             
                id integer NOT NULL,
         | 
| 1886 1979 | 
             
                host character varying,
         | 
| 1887 1980 | 
             
                address inet,
         | 
| @@ -1904,7 +1997,8 @@ CREATE TABLE wmap_requests ( | |
| 1904 1997 | 
             
            -- Name: wmap_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1905 1998 | 
             
            --
         | 
| 1906 1999 |  | 
| 1907 | 
            -
            CREATE SEQUENCE wmap_requests_id_seq
         | 
| 2000 | 
            +
            CREATE SEQUENCE public.wmap_requests_id_seq
         | 
| 2001 | 
            +
                AS integer
         | 
| 1908 2002 | 
             
                START WITH 1
         | 
| 1909 2003 | 
             
                INCREMENT BY 1
         | 
| 1910 2004 | 
             
                NO MINVALUE
         | 
| @@ -1916,14 +2010,14 @@ CREATE SEQUENCE wmap_requests_id_seq | |
| 1916 2010 | 
             
            -- Name: wmap_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1917 2011 | 
             
            --
         | 
| 1918 2012 |  | 
| 1919 | 
            -
            ALTER SEQUENCE wmap_requests_id_seq OWNED BY wmap_requests.id;
         | 
| 2013 | 
            +
            ALTER SEQUENCE public.wmap_requests_id_seq OWNED BY public.wmap_requests.id;
         | 
| 1920 2014 |  | 
| 1921 2015 |  | 
| 1922 2016 | 
             
            --
         | 
| 1923 2017 | 
             
            -- Name: wmap_targets; Type: TABLE; Schema: public; Owner: -
         | 
| 1924 2018 | 
             
            --
         | 
| 1925 2019 |  | 
| 1926 | 
            -
            CREATE TABLE wmap_targets (
         | 
| 2020 | 
            +
            CREATE TABLE public.wmap_targets (
         | 
| 1927 2021 | 
             
                id integer NOT NULL,
         | 
| 1928 2022 | 
             
                host character varying,
         | 
| 1929 2023 | 
             
                address inet,
         | 
| @@ -1939,7 +2033,8 @@ CREATE TABLE wmap_targets ( | |
| 1939 2033 | 
             
            -- Name: wmap_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1940 2034 | 
             
            --
         | 
| 1941 2035 |  | 
| 1942 | 
            -
            CREATE SEQUENCE wmap_targets_id_seq
         | 
| 2036 | 
            +
            CREATE SEQUENCE public.wmap_targets_id_seq
         | 
| 2037 | 
            +
                AS integer
         | 
| 1943 2038 | 
             
                START WITH 1
         | 
| 1944 2039 | 
             
                INCREMENT BY 1
         | 
| 1945 2040 | 
             
                NO MINVALUE
         | 
| @@ -1951,14 +2046,14 @@ CREATE SEQUENCE wmap_targets_id_seq | |
| 1951 2046 | 
             
            -- Name: wmap_targets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1952 2047 | 
             
            --
         | 
| 1953 2048 |  | 
| 1954 | 
            -
            ALTER SEQUENCE wmap_targets_id_seq OWNED BY wmap_targets.id;
         | 
| 2049 | 
            +
            ALTER SEQUENCE public.wmap_targets_id_seq OWNED BY public.wmap_targets.id;
         | 
| 1955 2050 |  | 
| 1956 2051 |  | 
| 1957 2052 | 
             
            --
         | 
| 1958 2053 | 
             
            -- Name: workspace_members; Type: TABLE; Schema: public; Owner: -
         | 
| 1959 2054 | 
             
            --
         | 
| 1960 2055 |  | 
| 1961 | 
            -
            CREATE TABLE workspace_members (
         | 
| 2056 | 
            +
            CREATE TABLE public.workspace_members (
         | 
| 1962 2057 | 
             
                workspace_id integer NOT NULL,
         | 
| 1963 2058 | 
             
                user_id integer NOT NULL
         | 
| 1964 2059 | 
             
            );
         | 
| @@ -1968,7 +2063,7 @@ CREATE TABLE workspace_members ( | |
| 1968 2063 | 
             
            -- Name: workspaces; Type: TABLE; Schema: public; Owner: -
         | 
| 1969 2064 | 
             
            --
         | 
| 1970 2065 |  | 
| 1971 | 
            -
            CREATE TABLE workspaces (
         | 
| 2066 | 
            +
            CREATE TABLE public.workspaces (
         | 
| 1972 2067 | 
             
                id integer NOT NULL,
         | 
| 1973 2068 | 
             
                name character varying,
         | 
| 1974 2069 | 
             
                created_at timestamp without time zone NOT NULL,
         | 
| @@ -1985,7 +2080,8 @@ CREATE TABLE workspaces ( | |
| 1985 2080 | 
             
            -- Name: workspaces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
         | 
| 1986 2081 | 
             
            --
         | 
| 1987 2082 |  | 
| 1988 | 
            -
            CREATE SEQUENCE workspaces_id_seq
         | 
| 2083 | 
            +
            CREATE SEQUENCE public.workspaces_id_seq
         | 
| 2084 | 
            +
                AS integer
         | 
| 1989 2085 | 
             
                START WITH 1
         | 
| 1990 2086 | 
             
                INCREMENT BY 1
         | 
| 1991 2087 | 
             
                NO MINVALUE
         | 
| @@ -1997,392 +2093,399 @@ CREATE SEQUENCE workspaces_id_seq | |
| 1997 2093 | 
             
            -- Name: workspaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
         | 
| 1998 2094 | 
             
            --
         | 
| 1999 2095 |  | 
| 2000 | 
            -
            ALTER SEQUENCE workspaces_id_seq OWNED BY workspaces.id;
         | 
| 2096 | 
            +
            ALTER SEQUENCE public.workspaces_id_seq OWNED BY public.workspaces.id;
         | 
| 2001 2097 |  | 
| 2002 2098 |  | 
| 2003 2099 | 
             
            --
         | 
| 2004 2100 | 
             
            -- Name: api_keys id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2005 2101 | 
             
            --
         | 
| 2006 2102 |  | 
| 2007 | 
            -
            ALTER TABLE ONLY api_keys ALTER COLUMN id SET DEFAULT nextval('api_keys_id_seq'::regclass);
         | 
| 2103 | 
            +
            ALTER TABLE ONLY public.api_keys ALTER COLUMN id SET DEFAULT nextval('public.api_keys_id_seq'::regclass);
         | 
| 2008 2104 |  | 
| 2009 2105 |  | 
| 2010 2106 | 
             
            --
         | 
| 2011 2107 | 
             
            -- Name: automatic_exploitation_match_results id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2012 2108 | 
             
            --
         | 
| 2013 2109 |  | 
| 2014 | 
            -
            ALTER TABLE ONLY automatic_exploitation_match_results ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_match_results_id_seq'::regclass);
         | 
| 2110 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_match_results ALTER COLUMN id SET DEFAULT nextval('public.automatic_exploitation_match_results_id_seq'::regclass);
         | 
| 2015 2111 |  | 
| 2016 2112 |  | 
| 2017 2113 | 
             
            --
         | 
| 2018 2114 | 
             
            -- Name: automatic_exploitation_match_sets id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2019 2115 | 
             
            --
         | 
| 2020 2116 |  | 
| 2021 | 
            -
            ALTER TABLE ONLY automatic_exploitation_match_sets ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_match_sets_id_seq'::regclass);
         | 
| 2117 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_match_sets ALTER COLUMN id SET DEFAULT nextval('public.automatic_exploitation_match_sets_id_seq'::regclass);
         | 
| 2022 2118 |  | 
| 2023 2119 |  | 
| 2024 2120 | 
             
            --
         | 
| 2025 2121 | 
             
            -- Name: automatic_exploitation_matches id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2026 2122 | 
             
            --
         | 
| 2027 2123 |  | 
| 2028 | 
            -
            ALTER TABLE ONLY automatic_exploitation_matches ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_matches_id_seq'::regclass);
         | 
| 2124 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_matches ALTER COLUMN id SET DEFAULT nextval('public.automatic_exploitation_matches_id_seq'::regclass);
         | 
| 2029 2125 |  | 
| 2030 2126 |  | 
| 2031 2127 | 
             
            --
         | 
| 2032 2128 | 
             
            -- Name: automatic_exploitation_runs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2033 2129 | 
             
            --
         | 
| 2034 2130 |  | 
| 2035 | 
            -
            ALTER TABLE ONLY automatic_exploitation_runs ALTER COLUMN id SET DEFAULT nextval('automatic_exploitation_runs_id_seq'::regclass);
         | 
| 2131 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_runs ALTER COLUMN id SET DEFAULT nextval('public.automatic_exploitation_runs_id_seq'::regclass);
         | 
| 2036 2132 |  | 
| 2037 2133 |  | 
| 2038 2134 | 
             
            --
         | 
| 2039 2135 | 
             
            -- Name: clients id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2040 2136 | 
             
            --
         | 
| 2041 2137 |  | 
| 2042 | 
            -
            ALTER TABLE ONLY clients ALTER COLUMN id SET DEFAULT nextval('clients_id_seq'::regclass);
         | 
| 2138 | 
            +
            ALTER TABLE ONLY public.clients ALTER COLUMN id SET DEFAULT nextval('public.clients_id_seq'::regclass);
         | 
| 2043 2139 |  | 
| 2044 2140 |  | 
| 2045 2141 | 
             
            --
         | 
| 2046 2142 | 
             
            -- Name: creds id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2047 2143 | 
             
            --
         | 
| 2048 2144 |  | 
| 2049 | 
            -
            ALTER TABLE ONLY creds ALTER COLUMN id SET DEFAULT nextval('creds_id_seq'::regclass);
         | 
| 2145 | 
            +
            ALTER TABLE ONLY public.creds ALTER COLUMN id SET DEFAULT nextval('public.creds_id_seq'::regclass);
         | 
| 2050 2146 |  | 
| 2051 2147 |  | 
| 2052 2148 | 
             
            --
         | 
| 2053 2149 | 
             
            -- Name: events id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2054 2150 | 
             
            --
         | 
| 2055 2151 |  | 
| 2056 | 
            -
            ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::regclass);
         | 
| 2152 | 
            +
            ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass);
         | 
| 2057 2153 |  | 
| 2058 2154 |  | 
| 2059 2155 | 
             
            --
         | 
| 2060 2156 | 
             
            -- Name: exploit_attempts id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2061 2157 | 
             
            --
         | 
| 2062 2158 |  | 
| 2063 | 
            -
            ALTER TABLE ONLY exploit_attempts ALTER COLUMN id SET DEFAULT nextval('exploit_attempts_id_seq'::regclass);
         | 
| 2159 | 
            +
            ALTER TABLE ONLY public.exploit_attempts ALTER COLUMN id SET DEFAULT nextval('public.exploit_attempts_id_seq'::regclass);
         | 
| 2064 2160 |  | 
| 2065 2161 |  | 
| 2066 2162 | 
             
            --
         | 
| 2067 2163 | 
             
            -- Name: exploited_hosts id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2068 2164 | 
             
            --
         | 
| 2069 2165 |  | 
| 2070 | 
            -
            ALTER TABLE ONLY exploited_hosts ALTER COLUMN id SET DEFAULT nextval('exploited_hosts_id_seq'::regclass);
         | 
| 2166 | 
            +
            ALTER TABLE ONLY public.exploited_hosts ALTER COLUMN id SET DEFAULT nextval('public.exploited_hosts_id_seq'::regclass);
         | 
| 2071 2167 |  | 
| 2072 2168 |  | 
| 2073 2169 | 
             
            --
         | 
| 2074 2170 | 
             
            -- Name: host_details id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2075 2171 | 
             
            --
         | 
| 2076 2172 |  | 
| 2077 | 
            -
            ALTER TABLE ONLY host_details ALTER COLUMN id SET DEFAULT nextval('host_details_id_seq'::regclass);
         | 
| 2173 | 
            +
            ALTER TABLE ONLY public.host_details ALTER COLUMN id SET DEFAULT nextval('public.host_details_id_seq'::regclass);
         | 
| 2078 2174 |  | 
| 2079 2175 |  | 
| 2080 2176 | 
             
            --
         | 
| 2081 2177 | 
             
            -- Name: hosts id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2082 2178 | 
             
            --
         | 
| 2083 2179 |  | 
| 2084 | 
            -
            ALTER TABLE ONLY hosts ALTER COLUMN id SET DEFAULT nextval('hosts_id_seq'::regclass);
         | 
| 2180 | 
            +
            ALTER TABLE ONLY public.hosts ALTER COLUMN id SET DEFAULT nextval('public.hosts_id_seq'::regclass);
         | 
| 2085 2181 |  | 
| 2086 2182 |  | 
| 2087 2183 | 
             
            --
         | 
| 2088 2184 | 
             
            -- Name: hosts_tags id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2089 2185 | 
             
            --
         | 
| 2090 2186 |  | 
| 2091 | 
            -
            ALTER TABLE ONLY hosts_tags ALTER COLUMN id SET DEFAULT nextval('hosts_tags_id_seq'::regclass);
         | 
| 2187 | 
            +
            ALTER TABLE ONLY public.hosts_tags ALTER COLUMN id SET DEFAULT nextval('public.hosts_tags_id_seq'::regclass);
         | 
| 2092 2188 |  | 
| 2093 2189 |  | 
| 2094 2190 | 
             
            --
         | 
| 2095 2191 | 
             
            -- Name: listeners id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2096 2192 | 
             
            --
         | 
| 2097 2193 |  | 
| 2098 | 
            -
            ALTER TABLE ONLY listeners ALTER COLUMN id SET DEFAULT nextval('listeners_id_seq'::regclass);
         | 
| 2194 | 
            +
            ALTER TABLE ONLY public.listeners ALTER COLUMN id SET DEFAULT nextval('public.listeners_id_seq'::regclass);
         | 
| 2099 2195 |  | 
| 2100 2196 |  | 
| 2101 2197 | 
             
            --
         | 
| 2102 2198 | 
             
            -- Name: loots id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2103 2199 | 
             
            --
         | 
| 2104 2200 |  | 
| 2105 | 
            -
            ALTER TABLE ONLY loots ALTER COLUMN id SET DEFAULT nextval('loots_id_seq'::regclass);
         | 
| 2201 | 
            +
            ALTER TABLE ONLY public.loots ALTER COLUMN id SET DEFAULT nextval('public.loots_id_seq'::regclass);
         | 
| 2106 2202 |  | 
| 2107 2203 |  | 
| 2108 2204 | 
             
            --
         | 
| 2109 2205 | 
             
            -- Name: macros id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2110 2206 | 
             
            --
         | 
| 2111 2207 |  | 
| 2112 | 
            -
            ALTER TABLE ONLY macros ALTER COLUMN id SET DEFAULT nextval('macros_id_seq'::regclass);
         | 
| 2208 | 
            +
            ALTER TABLE ONLY public.macros ALTER COLUMN id SET DEFAULT nextval('public.macros_id_seq'::regclass);
         | 
| 2113 2209 |  | 
| 2114 2210 |  | 
| 2115 2211 | 
             
            --
         | 
| 2116 2212 | 
             
            -- Name: mod_refs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2117 2213 | 
             
            --
         | 
| 2118 2214 |  | 
| 2119 | 
            -
            ALTER TABLE ONLY mod_refs ALTER COLUMN id SET DEFAULT nextval('mod_refs_id_seq'::regclass);
         | 
| 2215 | 
            +
            ALTER TABLE ONLY public.mod_refs ALTER COLUMN id SET DEFAULT nextval('public.mod_refs_id_seq'::regclass);
         | 
| 2120 2216 |  | 
| 2121 2217 |  | 
| 2122 2218 | 
             
            --
         | 
| 2123 2219 | 
             
            -- Name: module_actions id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2124 2220 | 
             
            --
         | 
| 2125 2221 |  | 
| 2126 | 
            -
            ALTER TABLE ONLY module_actions ALTER COLUMN id SET DEFAULT nextval('module_actions_id_seq'::regclass);
         | 
| 2222 | 
            +
            ALTER TABLE ONLY public.module_actions ALTER COLUMN id SET DEFAULT nextval('public.module_actions_id_seq'::regclass);
         | 
| 2127 2223 |  | 
| 2128 2224 |  | 
| 2129 2225 | 
             
            --
         | 
| 2130 2226 | 
             
            -- Name: module_archs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2131 2227 | 
             
            --
         | 
| 2132 2228 |  | 
| 2133 | 
            -
            ALTER TABLE ONLY module_archs ALTER COLUMN id SET DEFAULT nextval('module_archs_id_seq'::regclass);
         | 
| 2229 | 
            +
            ALTER TABLE ONLY public.module_archs ALTER COLUMN id SET DEFAULT nextval('public.module_archs_id_seq'::regclass);
         | 
| 2134 2230 |  | 
| 2135 2231 |  | 
| 2136 2232 | 
             
            --
         | 
| 2137 2233 | 
             
            -- Name: module_authors id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2138 2234 | 
             
            --
         | 
| 2139 2235 |  | 
| 2140 | 
            -
            ALTER TABLE ONLY module_authors ALTER COLUMN id SET DEFAULT nextval('module_authors_id_seq'::regclass);
         | 
| 2236 | 
            +
            ALTER TABLE ONLY public.module_authors ALTER COLUMN id SET DEFAULT nextval('public.module_authors_id_seq'::regclass);
         | 
| 2141 2237 |  | 
| 2142 2238 |  | 
| 2143 2239 | 
             
            --
         | 
| 2144 2240 | 
             
            -- Name: module_details id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2145 2241 | 
             
            --
         | 
| 2146 2242 |  | 
| 2147 | 
            -
            ALTER TABLE ONLY module_details ALTER COLUMN id SET DEFAULT nextval('module_details_id_seq'::regclass);
         | 
| 2243 | 
            +
            ALTER TABLE ONLY public.module_details ALTER COLUMN id SET DEFAULT nextval('public.module_details_id_seq'::regclass);
         | 
| 2148 2244 |  | 
| 2149 2245 |  | 
| 2150 2246 | 
             
            --
         | 
| 2151 2247 | 
             
            -- Name: module_mixins id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2152 2248 | 
             
            --
         | 
| 2153 2249 |  | 
| 2154 | 
            -
            ALTER TABLE ONLY module_mixins ALTER COLUMN id SET DEFAULT nextval('module_mixins_id_seq'::regclass);
         | 
| 2250 | 
            +
            ALTER TABLE ONLY public.module_mixins ALTER COLUMN id SET DEFAULT nextval('public.module_mixins_id_seq'::regclass);
         | 
| 2155 2251 |  | 
| 2156 2252 |  | 
| 2157 2253 | 
             
            --
         | 
| 2158 2254 | 
             
            -- Name: module_platforms id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2159 2255 | 
             
            --
         | 
| 2160 2256 |  | 
| 2161 | 
            -
            ALTER TABLE ONLY module_platforms ALTER COLUMN id SET DEFAULT nextval('module_platforms_id_seq'::regclass);
         | 
| 2257 | 
            +
            ALTER TABLE ONLY public.module_platforms ALTER COLUMN id SET DEFAULT nextval('public.module_platforms_id_seq'::regclass);
         | 
| 2162 2258 |  | 
| 2163 2259 |  | 
| 2164 2260 | 
             
            --
         | 
| 2165 2261 | 
             
            -- Name: module_refs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2166 2262 | 
             
            --
         | 
| 2167 2263 |  | 
| 2168 | 
            -
            ALTER TABLE ONLY module_refs ALTER COLUMN id SET DEFAULT nextval('module_refs_id_seq'::regclass);
         | 
| 2264 | 
            +
            ALTER TABLE ONLY public.module_refs ALTER COLUMN id SET DEFAULT nextval('public.module_refs_id_seq'::regclass);
         | 
| 2169 2265 |  | 
| 2170 2266 |  | 
| 2171 2267 | 
             
            --
         | 
| 2172 2268 | 
             
            -- Name: module_runs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2173 2269 | 
             
            --
         | 
| 2174 2270 |  | 
| 2175 | 
            -
            ALTER TABLE ONLY module_runs ALTER COLUMN id SET DEFAULT nextval('module_runs_id_seq'::regclass);
         | 
| 2271 | 
            +
            ALTER TABLE ONLY public.module_runs ALTER COLUMN id SET DEFAULT nextval('public.module_runs_id_seq'::regclass);
         | 
| 2176 2272 |  | 
| 2177 2273 |  | 
| 2178 2274 | 
             
            --
         | 
| 2179 2275 | 
             
            -- Name: module_targets id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2180 2276 | 
             
            --
         | 
| 2181 2277 |  | 
| 2182 | 
            -
            ALTER TABLE ONLY module_targets ALTER COLUMN id SET DEFAULT nextval('module_targets_id_seq'::regclass);
         | 
| 2278 | 
            +
            ALTER TABLE ONLY public.module_targets ALTER COLUMN id SET DEFAULT nextval('public.module_targets_id_seq'::regclass);
         | 
| 2183 2279 |  | 
| 2184 2280 |  | 
| 2185 2281 | 
             
            --
         | 
| 2186 2282 | 
             
            -- Name: nexpose_consoles id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2187 2283 | 
             
            --
         | 
| 2188 2284 |  | 
| 2189 | 
            -
            ALTER TABLE ONLY nexpose_consoles ALTER COLUMN id SET DEFAULT nextval('nexpose_consoles_id_seq'::regclass);
         | 
| 2285 | 
            +
            ALTER TABLE ONLY public.nexpose_consoles ALTER COLUMN id SET DEFAULT nextval('public.nexpose_consoles_id_seq'::regclass);
         | 
| 2190 2286 |  | 
| 2191 2287 |  | 
| 2192 2288 | 
             
            --
         | 
| 2193 2289 | 
             
            -- Name: notes id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2194 2290 | 
             
            --
         | 
| 2195 2291 |  | 
| 2196 | 
            -
            ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass);
         | 
| 2292 | 
            +
            ALTER TABLE ONLY public.notes ALTER COLUMN id SET DEFAULT nextval('public.notes_id_seq'::regclass);
         | 
| 2293 | 
            +
             | 
| 2294 | 
            +
             | 
| 2295 | 
            +
            --
         | 
| 2296 | 
            +
            -- Name: payloads id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2297 | 
            +
            --
         | 
| 2298 | 
            +
             | 
| 2299 | 
            +
            ALTER TABLE ONLY public.payloads ALTER COLUMN id SET DEFAULT nextval('public.payloads_id_seq'::regclass);
         | 
| 2197 2300 |  | 
| 2198 2301 |  | 
| 2199 2302 | 
             
            --
         | 
| 2200 2303 | 
             
            -- Name: profiles id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2201 2304 | 
             
            --
         | 
| 2202 2305 |  | 
| 2203 | 
            -
            ALTER TABLE ONLY profiles ALTER COLUMN id SET DEFAULT nextval('profiles_id_seq'::regclass);
         | 
| 2306 | 
            +
            ALTER TABLE ONLY public.profiles ALTER COLUMN id SET DEFAULT nextval('public.profiles_id_seq'::regclass);
         | 
| 2204 2307 |  | 
| 2205 2308 |  | 
| 2206 2309 | 
             
            --
         | 
| 2207 2310 | 
             
            -- Name: refs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2208 2311 | 
             
            --
         | 
| 2209 2312 |  | 
| 2210 | 
            -
            ALTER TABLE ONLY refs ALTER COLUMN id SET DEFAULT nextval('refs_id_seq'::regclass);
         | 
| 2313 | 
            +
            ALTER TABLE ONLY public.refs ALTER COLUMN id SET DEFAULT nextval('public.refs_id_seq'::regclass);
         | 
| 2211 2314 |  | 
| 2212 2315 |  | 
| 2213 2316 | 
             
            --
         | 
| 2214 2317 | 
             
            -- Name: report_templates id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2215 2318 | 
             
            --
         | 
| 2216 2319 |  | 
| 2217 | 
            -
            ALTER TABLE ONLY report_templates ALTER COLUMN id SET DEFAULT nextval('report_templates_id_seq'::regclass);
         | 
| 2320 | 
            +
            ALTER TABLE ONLY public.report_templates ALTER COLUMN id SET DEFAULT nextval('public.report_templates_id_seq'::regclass);
         | 
| 2218 2321 |  | 
| 2219 2322 |  | 
| 2220 2323 | 
             
            --
         | 
| 2221 2324 | 
             
            -- Name: reports id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2222 2325 | 
             
            --
         | 
| 2223 2326 |  | 
| 2224 | 
            -
            ALTER TABLE ONLY reports ALTER COLUMN id SET DEFAULT nextval('reports_id_seq'::regclass);
         | 
| 2327 | 
            +
            ALTER TABLE ONLY public.reports ALTER COLUMN id SET DEFAULT nextval('public.reports_id_seq'::regclass);
         | 
| 2225 2328 |  | 
| 2226 2329 |  | 
| 2227 2330 | 
             
            --
         | 
| 2228 2331 | 
             
            -- Name: routes id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2229 2332 | 
             
            --
         | 
| 2230 2333 |  | 
| 2231 | 
            -
            ALTER TABLE ONLY routes ALTER COLUMN id SET DEFAULT nextval('routes_id_seq'::regclass);
         | 
| 2334 | 
            +
            ALTER TABLE ONLY public.routes ALTER COLUMN id SET DEFAULT nextval('public.routes_id_seq'::regclass);
         | 
| 2232 2335 |  | 
| 2233 2336 |  | 
| 2234 2337 | 
             
            --
         | 
| 2235 2338 | 
             
            -- Name: services id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2236 2339 | 
             
            --
         | 
| 2237 2340 |  | 
| 2238 | 
            -
            ALTER TABLE ONLY services ALTER COLUMN id SET DEFAULT nextval('services_id_seq'::regclass);
         | 
| 2341 | 
            +
            ALTER TABLE ONLY public.services ALTER COLUMN id SET DEFAULT nextval('public.services_id_seq'::regclass);
         | 
| 2239 2342 |  | 
| 2240 2343 |  | 
| 2241 2344 | 
             
            --
         | 
| 2242 2345 | 
             
            -- Name: session_events id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2243 2346 | 
             
            --
         | 
| 2244 2347 |  | 
| 2245 | 
            -
            ALTER TABLE ONLY session_events ALTER COLUMN id SET DEFAULT nextval('session_events_id_seq'::regclass);
         | 
| 2348 | 
            +
            ALTER TABLE ONLY public.session_events ALTER COLUMN id SET DEFAULT nextval('public.session_events_id_seq'::regclass);
         | 
| 2246 2349 |  | 
| 2247 2350 |  | 
| 2248 2351 | 
             
            --
         | 
| 2249 2352 | 
             
            -- Name: sessions id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2250 2353 | 
             
            --
         | 
| 2251 2354 |  | 
| 2252 | 
            -
            ALTER TABLE ONLY sessions ALTER COLUMN id SET DEFAULT nextval('sessions_id_seq'::regclass);
         | 
| 2355 | 
            +
            ALTER TABLE ONLY public.sessions ALTER COLUMN id SET DEFAULT nextval('public.sessions_id_seq'::regclass);
         | 
| 2253 2356 |  | 
| 2254 2357 |  | 
| 2255 2358 | 
             
            --
         | 
| 2256 2359 | 
             
            -- Name: tags id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2257 2360 | 
             
            --
         | 
| 2258 2361 |  | 
| 2259 | 
            -
            ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass);
         | 
| 2362 | 
            +
            ALTER TABLE ONLY public.tags ALTER COLUMN id SET DEFAULT nextval('public.tags_id_seq'::regclass);
         | 
| 2260 2363 |  | 
| 2261 2364 |  | 
| 2262 2365 | 
             
            --
         | 
| 2263 2366 | 
             
            -- Name: task_creds id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2264 2367 | 
             
            --
         | 
| 2265 2368 |  | 
| 2266 | 
            -
            ALTER TABLE ONLY task_creds ALTER COLUMN id SET DEFAULT nextval('task_creds_id_seq'::regclass);
         | 
| 2369 | 
            +
            ALTER TABLE ONLY public.task_creds ALTER COLUMN id SET DEFAULT nextval('public.task_creds_id_seq'::regclass);
         | 
| 2267 2370 |  | 
| 2268 2371 |  | 
| 2269 2372 | 
             
            --
         | 
| 2270 2373 | 
             
            -- Name: task_hosts id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2271 2374 | 
             
            --
         | 
| 2272 2375 |  | 
| 2273 | 
            -
            ALTER TABLE ONLY task_hosts ALTER COLUMN id SET DEFAULT nextval('task_hosts_id_seq'::regclass);
         | 
| 2376 | 
            +
            ALTER TABLE ONLY public.task_hosts ALTER COLUMN id SET DEFAULT nextval('public.task_hosts_id_seq'::regclass);
         | 
| 2274 2377 |  | 
| 2275 2378 |  | 
| 2276 2379 | 
             
            --
         | 
| 2277 2380 | 
             
            -- Name: task_services id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2278 2381 | 
             
            --
         | 
| 2279 2382 |  | 
| 2280 | 
            -
            ALTER TABLE ONLY task_services ALTER COLUMN id SET DEFAULT nextval('task_services_id_seq'::regclass);
         | 
| 2383 | 
            +
            ALTER TABLE ONLY public.task_services ALTER COLUMN id SET DEFAULT nextval('public.task_services_id_seq'::regclass);
         | 
| 2281 2384 |  | 
| 2282 2385 |  | 
| 2283 2386 | 
             
            --
         | 
| 2284 2387 | 
             
            -- Name: task_sessions id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2285 2388 | 
             
            --
         | 
| 2286 2389 |  | 
| 2287 | 
            -
            ALTER TABLE ONLY task_sessions ALTER COLUMN id SET DEFAULT nextval('task_sessions_id_seq'::regclass);
         | 
| 2390 | 
            +
            ALTER TABLE ONLY public.task_sessions ALTER COLUMN id SET DEFAULT nextval('public.task_sessions_id_seq'::regclass);
         | 
| 2288 2391 |  | 
| 2289 2392 |  | 
| 2290 2393 | 
             
            --
         | 
| 2291 2394 | 
             
            -- Name: tasks id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2292 2395 | 
             
            --
         | 
| 2293 2396 |  | 
| 2294 | 
            -
            ALTER TABLE ONLY tasks ALTER COLUMN id SET DEFAULT nextval('tasks_id_seq'::regclass);
         | 
| 2397 | 
            +
            ALTER TABLE ONLY public.tasks ALTER COLUMN id SET DEFAULT nextval('public.tasks_id_seq'::regclass);
         | 
| 2295 2398 |  | 
| 2296 2399 |  | 
| 2297 2400 | 
             
            --
         | 
| 2298 2401 | 
             
            -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2299 2402 | 
             
            --
         | 
| 2300 2403 |  | 
| 2301 | 
            -
            ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
         | 
| 2404 | 
            +
            ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
         | 
| 2302 2405 |  | 
| 2303 2406 |  | 
| 2304 2407 | 
             
            --
         | 
| 2305 2408 | 
             
            -- Name: vuln_attempts id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2306 2409 | 
             
            --
         | 
| 2307 2410 |  | 
| 2308 | 
            -
            ALTER TABLE ONLY vuln_attempts ALTER COLUMN id SET DEFAULT nextval('vuln_attempts_id_seq'::regclass);
         | 
| 2411 | 
            +
            ALTER TABLE ONLY public.vuln_attempts ALTER COLUMN id SET DEFAULT nextval('public.vuln_attempts_id_seq'::regclass);
         | 
| 2309 2412 |  | 
| 2310 2413 |  | 
| 2311 2414 | 
             
            --
         | 
| 2312 2415 | 
             
            -- Name: vuln_details id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2313 2416 | 
             
            --
         | 
| 2314 2417 |  | 
| 2315 | 
            -
            ALTER TABLE ONLY vuln_details ALTER COLUMN id SET DEFAULT nextval('vuln_details_id_seq'::regclass);
         | 
| 2418 | 
            +
            ALTER TABLE ONLY public.vuln_details ALTER COLUMN id SET DEFAULT nextval('public.vuln_details_id_seq'::regclass);
         | 
| 2316 2419 |  | 
| 2317 2420 |  | 
| 2318 2421 | 
             
            --
         | 
| 2319 2422 | 
             
            -- Name: vulns id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2320 2423 | 
             
            --
         | 
| 2321 2424 |  | 
| 2322 | 
            -
            ALTER TABLE ONLY vulns ALTER COLUMN id SET DEFAULT nextval('vulns_id_seq'::regclass);
         | 
| 2425 | 
            +
            ALTER TABLE ONLY public.vulns ALTER COLUMN id SET DEFAULT nextval('public.vulns_id_seq'::regclass);
         | 
| 2323 2426 |  | 
| 2324 2427 |  | 
| 2325 2428 | 
             
            --
         | 
| 2326 2429 | 
             
            -- Name: vulns_refs id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2327 2430 | 
             
            --
         | 
| 2328 2431 |  | 
| 2329 | 
            -
            ALTER TABLE ONLY vulns_refs ALTER COLUMN id SET DEFAULT nextval('vulns_refs_id_seq'::regclass);
         | 
| 2432 | 
            +
            ALTER TABLE ONLY public.vulns_refs ALTER COLUMN id SET DEFAULT nextval('public.vulns_refs_id_seq'::regclass);
         | 
| 2330 2433 |  | 
| 2331 2434 |  | 
| 2332 2435 | 
             
            --
         | 
| 2333 2436 | 
             
            -- Name: web_forms id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2334 2437 | 
             
            --
         | 
| 2335 2438 |  | 
| 2336 | 
            -
            ALTER TABLE ONLY web_forms ALTER COLUMN id SET DEFAULT nextval('web_forms_id_seq'::regclass);
         | 
| 2439 | 
            +
            ALTER TABLE ONLY public.web_forms ALTER COLUMN id SET DEFAULT nextval('public.web_forms_id_seq'::regclass);
         | 
| 2337 2440 |  | 
| 2338 2441 |  | 
| 2339 2442 | 
             
            --
         | 
| 2340 2443 | 
             
            -- Name: web_pages id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2341 2444 | 
             
            --
         | 
| 2342 2445 |  | 
| 2343 | 
            -
            ALTER TABLE ONLY web_pages ALTER COLUMN id SET DEFAULT nextval('web_pages_id_seq'::regclass);
         | 
| 2446 | 
            +
            ALTER TABLE ONLY public.web_pages ALTER COLUMN id SET DEFAULT nextval('public.web_pages_id_seq'::regclass);
         | 
| 2344 2447 |  | 
| 2345 2448 |  | 
| 2346 2449 | 
             
            --
         | 
| 2347 2450 | 
             
            -- Name: web_sites id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2348 2451 | 
             
            --
         | 
| 2349 2452 |  | 
| 2350 | 
            -
            ALTER TABLE ONLY web_sites ALTER COLUMN id SET DEFAULT nextval('web_sites_id_seq'::regclass);
         | 
| 2453 | 
            +
            ALTER TABLE ONLY public.web_sites ALTER COLUMN id SET DEFAULT nextval('public.web_sites_id_seq'::regclass);
         | 
| 2351 2454 |  | 
| 2352 2455 |  | 
| 2353 2456 | 
             
            --
         | 
| 2354 2457 | 
             
            -- Name: web_vulns id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2355 2458 | 
             
            --
         | 
| 2356 2459 |  | 
| 2357 | 
            -
            ALTER TABLE ONLY web_vulns ALTER COLUMN id SET DEFAULT nextval('web_vulns_id_seq'::regclass);
         | 
| 2460 | 
            +
            ALTER TABLE ONLY public.web_vulns ALTER COLUMN id SET DEFAULT nextval('public.web_vulns_id_seq'::regclass);
         | 
| 2358 2461 |  | 
| 2359 2462 |  | 
| 2360 2463 | 
             
            --
         | 
| 2361 2464 | 
             
            -- Name: wmap_requests id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2362 2465 | 
             
            --
         | 
| 2363 2466 |  | 
| 2364 | 
            -
            ALTER TABLE ONLY wmap_requests ALTER COLUMN id SET DEFAULT nextval('wmap_requests_id_seq'::regclass);
         | 
| 2467 | 
            +
            ALTER TABLE ONLY public.wmap_requests ALTER COLUMN id SET DEFAULT nextval('public.wmap_requests_id_seq'::regclass);
         | 
| 2365 2468 |  | 
| 2366 2469 |  | 
| 2367 2470 | 
             
            --
         | 
| 2368 2471 | 
             
            -- Name: wmap_targets id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2369 2472 | 
             
            --
         | 
| 2370 2473 |  | 
| 2371 | 
            -
            ALTER TABLE ONLY wmap_targets ALTER COLUMN id SET DEFAULT nextval('wmap_targets_id_seq'::regclass);
         | 
| 2474 | 
            +
            ALTER TABLE ONLY public.wmap_targets ALTER COLUMN id SET DEFAULT nextval('public.wmap_targets_id_seq'::regclass);
         | 
| 2372 2475 |  | 
| 2373 2476 |  | 
| 2374 2477 | 
             
            --
         | 
| 2375 2478 | 
             
            -- Name: workspaces id; Type: DEFAULT; Schema: public; Owner: -
         | 
| 2376 2479 | 
             
            --
         | 
| 2377 2480 |  | 
| 2378 | 
            -
            ALTER TABLE ONLY workspaces ALTER COLUMN id SET DEFAULT nextval('workspaces_id_seq'::regclass);
         | 
| 2481 | 
            +
            ALTER TABLE ONLY public.workspaces ALTER COLUMN id SET DEFAULT nextval('public.workspaces_id_seq'::regclass);
         | 
| 2379 2482 |  | 
| 2380 2483 |  | 
| 2381 2484 | 
             
            --
         | 
| 2382 2485 | 
             
            -- Name: api_keys api_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2383 2486 | 
             
            --
         | 
| 2384 2487 |  | 
| 2385 | 
            -
            ALTER TABLE ONLY api_keys
         | 
| 2488 | 
            +
            ALTER TABLE ONLY public.api_keys
         | 
| 2386 2489 | 
             
                ADD CONSTRAINT api_keys_pkey PRIMARY KEY (id);
         | 
| 2387 2490 |  | 
| 2388 2491 |  | 
| @@ -2390,7 +2493,7 @@ ALTER TABLE ONLY api_keys | |
| 2390 2493 | 
             
            -- Name: automatic_exploitation_match_results automatic_exploitation_match_results_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2391 2494 | 
             
            --
         | 
| 2392 2495 |  | 
| 2393 | 
            -
            ALTER TABLE ONLY automatic_exploitation_match_results
         | 
| 2496 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_match_results
         | 
| 2394 2497 | 
             
                ADD CONSTRAINT automatic_exploitation_match_results_pkey PRIMARY KEY (id);
         | 
| 2395 2498 |  | 
| 2396 2499 |  | 
| @@ -2398,7 +2501,7 @@ ALTER TABLE ONLY automatic_exploitation_match_results | |
| 2398 2501 | 
             
            -- Name: automatic_exploitation_match_sets automatic_exploitation_match_sets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2399 2502 | 
             
            --
         | 
| 2400 2503 |  | 
| 2401 | 
            -
            ALTER TABLE ONLY automatic_exploitation_match_sets
         | 
| 2504 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_match_sets
         | 
| 2402 2505 | 
             
                ADD CONSTRAINT automatic_exploitation_match_sets_pkey PRIMARY KEY (id);
         | 
| 2403 2506 |  | 
| 2404 2507 |  | 
| @@ -2406,7 +2509,7 @@ ALTER TABLE ONLY automatic_exploitation_match_sets | |
| 2406 2509 | 
             
            -- Name: automatic_exploitation_matches automatic_exploitation_matches_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2407 2510 | 
             
            --
         | 
| 2408 2511 |  | 
| 2409 | 
            -
            ALTER TABLE ONLY automatic_exploitation_matches
         | 
| 2512 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_matches
         | 
| 2410 2513 | 
             
                ADD CONSTRAINT automatic_exploitation_matches_pkey PRIMARY KEY (id);
         | 
| 2411 2514 |  | 
| 2412 2515 |  | 
| @@ -2414,7 +2517,7 @@ ALTER TABLE ONLY automatic_exploitation_matches | |
| 2414 2517 | 
             
            -- Name: automatic_exploitation_runs automatic_exploitation_runs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2415 2518 | 
             
            --
         | 
| 2416 2519 |  | 
| 2417 | 
            -
            ALTER TABLE ONLY automatic_exploitation_runs
         | 
| 2520 | 
            +
            ALTER TABLE ONLY public.automatic_exploitation_runs
         | 
| 2418 2521 | 
             
                ADD CONSTRAINT automatic_exploitation_runs_pkey PRIMARY KEY (id);
         | 
| 2419 2522 |  | 
| 2420 2523 |  | 
| @@ -2422,7 +2525,7 @@ ALTER TABLE ONLY automatic_exploitation_runs | |
| 2422 2525 | 
             
            -- Name: clients clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2423 2526 | 
             
            --
         | 
| 2424 2527 |  | 
| 2425 | 
            -
            ALTER TABLE ONLY clients
         | 
| 2528 | 
            +
            ALTER TABLE ONLY public.clients
         | 
| 2426 2529 | 
             
                ADD CONSTRAINT clients_pkey PRIMARY KEY (id);
         | 
| 2427 2530 |  | 
| 2428 2531 |  | 
| @@ -2430,7 +2533,7 @@ ALTER TABLE ONLY clients | |
| 2430 2533 | 
             
            -- Name: creds creds_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2431 2534 | 
             
            --
         | 
| 2432 2535 |  | 
| 2433 | 
            -
            ALTER TABLE ONLY creds
         | 
| 2536 | 
            +
            ALTER TABLE ONLY public.creds
         | 
| 2434 2537 | 
             
                ADD CONSTRAINT creds_pkey PRIMARY KEY (id);
         | 
| 2435 2538 |  | 
| 2436 2539 |  | 
| @@ -2438,7 +2541,7 @@ ALTER TABLE ONLY creds | |
| 2438 2541 | 
             
            -- Name: events events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2439 2542 | 
             
            --
         | 
| 2440 2543 |  | 
| 2441 | 
            -
            ALTER TABLE ONLY events
         | 
| 2544 | 
            +
            ALTER TABLE ONLY public.events
         | 
| 2442 2545 | 
             
                ADD CONSTRAINT events_pkey PRIMARY KEY (id);
         | 
| 2443 2546 |  | 
| 2444 2547 |  | 
| @@ -2446,7 +2549,7 @@ ALTER TABLE ONLY events | |
| 2446 2549 | 
             
            -- Name: exploit_attempts exploit_attempts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2447 2550 | 
             
            --
         | 
| 2448 2551 |  | 
| 2449 | 
            -
            ALTER TABLE ONLY exploit_attempts
         | 
| 2552 | 
            +
            ALTER TABLE ONLY public.exploit_attempts
         | 
| 2450 2553 | 
             
                ADD CONSTRAINT exploit_attempts_pkey PRIMARY KEY (id);
         | 
| 2451 2554 |  | 
| 2452 2555 |  | 
| @@ -2454,7 +2557,7 @@ ALTER TABLE ONLY exploit_attempts | |
| 2454 2557 | 
             
            -- Name: exploited_hosts exploited_hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2455 2558 | 
             
            --
         | 
| 2456 2559 |  | 
| 2457 | 
            -
            ALTER TABLE ONLY exploited_hosts
         | 
| 2560 | 
            +
            ALTER TABLE ONLY public.exploited_hosts
         | 
| 2458 2561 | 
             
                ADD CONSTRAINT exploited_hosts_pkey PRIMARY KEY (id);
         | 
| 2459 2562 |  | 
| 2460 2563 |  | 
| @@ -2462,7 +2565,7 @@ ALTER TABLE ONLY exploited_hosts | |
| 2462 2565 | 
             
            -- Name: host_details host_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2463 2566 | 
             
            --
         | 
| 2464 2567 |  | 
| 2465 | 
            -
            ALTER TABLE ONLY host_details
         | 
| 2568 | 
            +
            ALTER TABLE ONLY public.host_details
         | 
| 2466 2569 | 
             
                ADD CONSTRAINT host_details_pkey PRIMARY KEY (id);
         | 
| 2467 2570 |  | 
| 2468 2571 |  | 
| @@ -2470,7 +2573,7 @@ ALTER TABLE ONLY host_details | |
| 2470 2573 | 
             
            -- Name: hosts hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2471 2574 | 
             
            --
         | 
| 2472 2575 |  | 
| 2473 | 
            -
            ALTER TABLE ONLY hosts
         | 
| 2576 | 
            +
            ALTER TABLE ONLY public.hosts
         | 
| 2474 2577 | 
             
                ADD CONSTRAINT hosts_pkey PRIMARY KEY (id);
         | 
| 2475 2578 |  | 
| 2476 2579 |  | 
| @@ -2478,7 +2581,7 @@ ALTER TABLE ONLY hosts | |
| 2478 2581 | 
             
            -- Name: hosts_tags hosts_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2479 2582 | 
             
            --
         | 
| 2480 2583 |  | 
| 2481 | 
            -
            ALTER TABLE ONLY hosts_tags
         | 
| 2584 | 
            +
            ALTER TABLE ONLY public.hosts_tags
         | 
| 2482 2585 | 
             
                ADD CONSTRAINT hosts_tags_pkey PRIMARY KEY (id);
         | 
| 2483 2586 |  | 
| 2484 2587 |  | 
| @@ -2486,7 +2589,7 @@ ALTER TABLE ONLY hosts_tags | |
| 2486 2589 | 
             
            -- Name: listeners listeners_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2487 2590 | 
             
            --
         | 
| 2488 2591 |  | 
| 2489 | 
            -
            ALTER TABLE ONLY listeners
         | 
| 2592 | 
            +
            ALTER TABLE ONLY public.listeners
         | 
| 2490 2593 | 
             
                ADD CONSTRAINT listeners_pkey PRIMARY KEY (id);
         | 
| 2491 2594 |  | 
| 2492 2595 |  | 
| @@ -2494,7 +2597,7 @@ ALTER TABLE ONLY listeners | |
| 2494 2597 | 
             
            -- Name: loots loots_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2495 2598 | 
             
            --
         | 
| 2496 2599 |  | 
| 2497 | 
            -
            ALTER TABLE ONLY loots
         | 
| 2600 | 
            +
            ALTER TABLE ONLY public.loots
         | 
| 2498 2601 | 
             
                ADD CONSTRAINT loots_pkey PRIMARY KEY (id);
         | 
| 2499 2602 |  | 
| 2500 2603 |  | 
| @@ -2502,7 +2605,7 @@ ALTER TABLE ONLY loots | |
| 2502 2605 | 
             
            -- Name: macros macros_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2503 2606 | 
             
            --
         | 
| 2504 2607 |  | 
| 2505 | 
            -
            ALTER TABLE ONLY macros
         | 
| 2608 | 
            +
            ALTER TABLE ONLY public.macros
         | 
| 2506 2609 | 
             
                ADD CONSTRAINT macros_pkey PRIMARY KEY (id);
         | 
| 2507 2610 |  | 
| 2508 2611 |  | 
| @@ -2510,7 +2613,7 @@ ALTER TABLE ONLY macros | |
| 2510 2613 | 
             
            -- Name: mod_refs mod_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2511 2614 | 
             
            --
         | 
| 2512 2615 |  | 
| 2513 | 
            -
            ALTER TABLE ONLY mod_refs
         | 
| 2616 | 
            +
            ALTER TABLE ONLY public.mod_refs
         | 
| 2514 2617 | 
             
                ADD CONSTRAINT mod_refs_pkey PRIMARY KEY (id);
         | 
| 2515 2618 |  | 
| 2516 2619 |  | 
| @@ -2518,7 +2621,7 @@ ALTER TABLE ONLY mod_refs | |
| 2518 2621 | 
             
            -- Name: module_actions module_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2519 2622 | 
             
            --
         | 
| 2520 2623 |  | 
| 2521 | 
            -
            ALTER TABLE ONLY module_actions
         | 
| 2624 | 
            +
            ALTER TABLE ONLY public.module_actions
         | 
| 2522 2625 | 
             
                ADD CONSTRAINT module_actions_pkey PRIMARY KEY (id);
         | 
| 2523 2626 |  | 
| 2524 2627 |  | 
| @@ -2526,7 +2629,7 @@ ALTER TABLE ONLY module_actions | |
| 2526 2629 | 
             
            -- Name: module_archs module_archs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2527 2630 | 
             
            --
         | 
| 2528 2631 |  | 
| 2529 | 
            -
            ALTER TABLE ONLY module_archs
         | 
| 2632 | 
            +
            ALTER TABLE ONLY public.module_archs
         | 
| 2530 2633 | 
             
                ADD CONSTRAINT module_archs_pkey PRIMARY KEY (id);
         | 
| 2531 2634 |  | 
| 2532 2635 |  | 
| @@ -2534,7 +2637,7 @@ ALTER TABLE ONLY module_archs | |
| 2534 2637 | 
             
            -- Name: module_authors module_authors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2535 2638 | 
             
            --
         | 
| 2536 2639 |  | 
| 2537 | 
            -
            ALTER TABLE ONLY module_authors
         | 
| 2640 | 
            +
            ALTER TABLE ONLY public.module_authors
         | 
| 2538 2641 | 
             
                ADD CONSTRAINT module_authors_pkey PRIMARY KEY (id);
         | 
| 2539 2642 |  | 
| 2540 2643 |  | 
| @@ -2542,7 +2645,7 @@ ALTER TABLE ONLY module_authors | |
| 2542 2645 | 
             
            -- Name: module_details module_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2543 2646 | 
             
            --
         | 
| 2544 2647 |  | 
| 2545 | 
            -
            ALTER TABLE ONLY module_details
         | 
| 2648 | 
            +
            ALTER TABLE ONLY public.module_details
         | 
| 2546 2649 | 
             
                ADD CONSTRAINT module_details_pkey PRIMARY KEY (id);
         | 
| 2547 2650 |  | 
| 2548 2651 |  | 
| @@ -2550,7 +2653,7 @@ ALTER TABLE ONLY module_details | |
| 2550 2653 | 
             
            -- Name: module_mixins module_mixins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2551 2654 | 
             
            --
         | 
| 2552 2655 |  | 
| 2553 | 
            -
            ALTER TABLE ONLY module_mixins
         | 
| 2656 | 
            +
            ALTER TABLE ONLY public.module_mixins
         | 
| 2554 2657 | 
             
                ADD CONSTRAINT module_mixins_pkey PRIMARY KEY (id);
         | 
| 2555 2658 |  | 
| 2556 2659 |  | 
| @@ -2558,7 +2661,7 @@ ALTER TABLE ONLY module_mixins | |
| 2558 2661 | 
             
            -- Name: module_platforms module_platforms_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2559 2662 | 
             
            --
         | 
| 2560 2663 |  | 
| 2561 | 
            -
            ALTER TABLE ONLY module_platforms
         | 
| 2664 | 
            +
            ALTER TABLE ONLY public.module_platforms
         | 
| 2562 2665 | 
             
                ADD CONSTRAINT module_platforms_pkey PRIMARY KEY (id);
         | 
| 2563 2666 |  | 
| 2564 2667 |  | 
| @@ -2566,7 +2669,7 @@ ALTER TABLE ONLY module_platforms | |
| 2566 2669 | 
             
            -- Name: module_refs module_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2567 2670 | 
             
            --
         | 
| 2568 2671 |  | 
| 2569 | 
            -
            ALTER TABLE ONLY module_refs
         | 
| 2672 | 
            +
            ALTER TABLE ONLY public.module_refs
         | 
| 2570 2673 | 
             
                ADD CONSTRAINT module_refs_pkey PRIMARY KEY (id);
         | 
| 2571 2674 |  | 
| 2572 2675 |  | 
| @@ -2574,7 +2677,7 @@ ALTER TABLE ONLY module_refs | |
| 2574 2677 | 
             
            -- Name: module_runs module_runs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2575 2678 | 
             
            --
         | 
| 2576 2679 |  | 
| 2577 | 
            -
            ALTER TABLE ONLY module_runs
         | 
| 2680 | 
            +
            ALTER TABLE ONLY public.module_runs
         | 
| 2578 2681 | 
             
                ADD CONSTRAINT module_runs_pkey PRIMARY KEY (id);
         | 
| 2579 2682 |  | 
| 2580 2683 |  | 
| @@ -2582,7 +2685,7 @@ ALTER TABLE ONLY module_runs | |
| 2582 2685 | 
             
            -- Name: module_targets module_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2583 2686 | 
             
            --
         | 
| 2584 2687 |  | 
| 2585 | 
            -
            ALTER TABLE ONLY module_targets
         | 
| 2688 | 
            +
            ALTER TABLE ONLY public.module_targets
         | 
| 2586 2689 | 
             
                ADD CONSTRAINT module_targets_pkey PRIMARY KEY (id);
         | 
| 2587 2690 |  | 
| 2588 2691 |  | 
| @@ -2590,7 +2693,7 @@ ALTER TABLE ONLY module_targets | |
| 2590 2693 | 
             
            -- Name: nexpose_consoles nexpose_consoles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2591 2694 | 
             
            --
         | 
| 2592 2695 |  | 
| 2593 | 
            -
            ALTER TABLE ONLY nexpose_consoles
         | 
| 2696 | 
            +
            ALTER TABLE ONLY public.nexpose_consoles
         | 
| 2594 2697 | 
             
                ADD CONSTRAINT nexpose_consoles_pkey PRIMARY KEY (id);
         | 
| 2595 2698 |  | 
| 2596 2699 |  | 
| @@ -2598,15 +2701,23 @@ ALTER TABLE ONLY nexpose_consoles | |
| 2598 2701 | 
             
            -- Name: notes notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2599 2702 | 
             
            --
         | 
| 2600 2703 |  | 
| 2601 | 
            -
            ALTER TABLE ONLY notes
         | 
| 2704 | 
            +
            ALTER TABLE ONLY public.notes
         | 
| 2602 2705 | 
             
                ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
         | 
| 2603 2706 |  | 
| 2604 2707 |  | 
| 2708 | 
            +
            --
         | 
| 2709 | 
            +
            -- Name: payloads payloads_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2710 | 
            +
            --
         | 
| 2711 | 
            +
             | 
| 2712 | 
            +
            ALTER TABLE ONLY public.payloads
         | 
| 2713 | 
            +
                ADD CONSTRAINT payloads_pkey PRIMARY KEY (id);
         | 
| 2714 | 
            +
             | 
| 2715 | 
            +
             | 
| 2605 2716 | 
             
            --
         | 
| 2606 2717 | 
             
            -- Name: profiles profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2607 2718 | 
             
            --
         | 
| 2608 2719 |  | 
| 2609 | 
            -
            ALTER TABLE ONLY profiles
         | 
| 2720 | 
            +
            ALTER TABLE ONLY public.profiles
         | 
| 2610 2721 | 
             
                ADD CONSTRAINT profiles_pkey PRIMARY KEY (id);
         | 
| 2611 2722 |  | 
| 2612 2723 |  | 
| @@ -2614,7 +2725,7 @@ ALTER TABLE ONLY profiles | |
| 2614 2725 | 
             
            -- Name: refs refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2615 2726 | 
             
            --
         | 
| 2616 2727 |  | 
| 2617 | 
            -
            ALTER TABLE ONLY refs
         | 
| 2728 | 
            +
            ALTER TABLE ONLY public.refs
         | 
| 2618 2729 | 
             
                ADD CONSTRAINT refs_pkey PRIMARY KEY (id);
         | 
| 2619 2730 |  | 
| 2620 2731 |  | 
| @@ -2622,7 +2733,7 @@ ALTER TABLE ONLY refs | |
| 2622 2733 | 
             
            -- Name: report_templates report_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2623 2734 | 
             
            --
         | 
| 2624 2735 |  | 
| 2625 | 
            -
            ALTER TABLE ONLY report_templates
         | 
| 2736 | 
            +
            ALTER TABLE ONLY public.report_templates
         | 
| 2626 2737 | 
             
                ADD CONSTRAINT report_templates_pkey PRIMARY KEY (id);
         | 
| 2627 2738 |  | 
| 2628 2739 |  | 
| @@ -2630,7 +2741,7 @@ ALTER TABLE ONLY report_templates | |
| 2630 2741 | 
             
            -- Name: reports reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2631 2742 | 
             
            --
         | 
| 2632 2743 |  | 
| 2633 | 
            -
            ALTER TABLE ONLY reports
         | 
| 2744 | 
            +
            ALTER TABLE ONLY public.reports
         | 
| 2634 2745 | 
             
                ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
         | 
| 2635 2746 |  | 
| 2636 2747 |  | 
| @@ -2638,7 +2749,7 @@ ALTER TABLE ONLY reports | |
| 2638 2749 | 
             
            -- Name: routes routes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2639 2750 | 
             
            --
         | 
| 2640 2751 |  | 
| 2641 | 
            -
            ALTER TABLE ONLY routes
         | 
| 2752 | 
            +
            ALTER TABLE ONLY public.routes
         | 
| 2642 2753 | 
             
                ADD CONSTRAINT routes_pkey PRIMARY KEY (id);
         | 
| 2643 2754 |  | 
| 2644 2755 |  | 
| @@ -2646,7 +2757,7 @@ ALTER TABLE ONLY routes | |
| 2646 2757 | 
             
            -- Name: services services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2647 2758 | 
             
            --
         | 
| 2648 2759 |  | 
| 2649 | 
            -
            ALTER TABLE ONLY services
         | 
| 2760 | 
            +
            ALTER TABLE ONLY public.services
         | 
| 2650 2761 | 
             
                ADD CONSTRAINT services_pkey PRIMARY KEY (id);
         | 
| 2651 2762 |  | 
| 2652 2763 |  | 
| @@ -2654,7 +2765,7 @@ ALTER TABLE ONLY services | |
| 2654 2765 | 
             
            -- Name: session_events session_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2655 2766 | 
             
            --
         | 
| 2656 2767 |  | 
| 2657 | 
            -
            ALTER TABLE ONLY session_events
         | 
| 2768 | 
            +
            ALTER TABLE ONLY public.session_events
         | 
| 2658 2769 | 
             
                ADD CONSTRAINT session_events_pkey PRIMARY KEY (id);
         | 
| 2659 2770 |  | 
| 2660 2771 |  | 
| @@ -2662,7 +2773,7 @@ ALTER TABLE ONLY session_events | |
| 2662 2773 | 
             
            -- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2663 2774 | 
             
            --
         | 
| 2664 2775 |  | 
| 2665 | 
            -
            ALTER TABLE ONLY sessions
         | 
| 2776 | 
            +
            ALTER TABLE ONLY public.sessions
         | 
| 2666 2777 | 
             
                ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
         | 
| 2667 2778 |  | 
| 2668 2779 |  | 
| @@ -2670,7 +2781,7 @@ ALTER TABLE ONLY sessions | |
| 2670 2781 | 
             
            -- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2671 2782 | 
             
            --
         | 
| 2672 2783 |  | 
| 2673 | 
            -
            ALTER TABLE ONLY tags
         | 
| 2784 | 
            +
            ALTER TABLE ONLY public.tags
         | 
| 2674 2785 | 
             
                ADD CONSTRAINT tags_pkey PRIMARY KEY (id);
         | 
| 2675 2786 |  | 
| 2676 2787 |  | 
| @@ -2678,7 +2789,7 @@ ALTER TABLE ONLY tags | |
| 2678 2789 | 
             
            -- Name: task_creds task_creds_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2679 2790 | 
             
            --
         | 
| 2680 2791 |  | 
| 2681 | 
            -
            ALTER TABLE ONLY task_creds
         | 
| 2792 | 
            +
            ALTER TABLE ONLY public.task_creds
         | 
| 2682 2793 | 
             
                ADD CONSTRAINT task_creds_pkey PRIMARY KEY (id);
         | 
| 2683 2794 |  | 
| 2684 2795 |  | 
| @@ -2686,7 +2797,7 @@ ALTER TABLE ONLY task_creds | |
| 2686 2797 | 
             
            -- Name: task_hosts task_hosts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2687 2798 | 
             
            --
         | 
| 2688 2799 |  | 
| 2689 | 
            -
            ALTER TABLE ONLY task_hosts
         | 
| 2800 | 
            +
            ALTER TABLE ONLY public.task_hosts
         | 
| 2690 2801 | 
             
                ADD CONSTRAINT task_hosts_pkey PRIMARY KEY (id);
         | 
| 2691 2802 |  | 
| 2692 2803 |  | 
| @@ -2694,7 +2805,7 @@ ALTER TABLE ONLY task_hosts | |
| 2694 2805 | 
             
            -- Name: task_services task_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2695 2806 | 
             
            --
         | 
| 2696 2807 |  | 
| 2697 | 
            -
            ALTER TABLE ONLY task_services
         | 
| 2808 | 
            +
            ALTER TABLE ONLY public.task_services
         | 
| 2698 2809 | 
             
                ADD CONSTRAINT task_services_pkey PRIMARY KEY (id);
         | 
| 2699 2810 |  | 
| 2700 2811 |  | 
| @@ -2702,7 +2813,7 @@ ALTER TABLE ONLY task_services | |
| 2702 2813 | 
             
            -- Name: task_sessions task_sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2703 2814 | 
             
            --
         | 
| 2704 2815 |  | 
| 2705 | 
            -
            ALTER TABLE ONLY task_sessions
         | 
| 2816 | 
            +
            ALTER TABLE ONLY public.task_sessions
         | 
| 2706 2817 | 
             
                ADD CONSTRAINT task_sessions_pkey PRIMARY KEY (id);
         | 
| 2707 2818 |  | 
| 2708 2819 |  | 
| @@ -2710,7 +2821,7 @@ ALTER TABLE ONLY task_sessions | |
| 2710 2821 | 
             
            -- Name: tasks tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2711 2822 | 
             
            --
         | 
| 2712 2823 |  | 
| 2713 | 
            -
            ALTER TABLE ONLY tasks
         | 
| 2824 | 
            +
            ALTER TABLE ONLY public.tasks
         | 
| 2714 2825 | 
             
                ADD CONSTRAINT tasks_pkey PRIMARY KEY (id);
         | 
| 2715 2826 |  | 
| 2716 2827 |  | 
| @@ -2718,7 +2829,7 @@ ALTER TABLE ONLY tasks | |
| 2718 2829 | 
             
            -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2719 2830 | 
             
            --
         | 
| 2720 2831 |  | 
| 2721 | 
            -
            ALTER TABLE ONLY users
         | 
| 2832 | 
            +
            ALTER TABLE ONLY public.users
         | 
| 2722 2833 | 
             
                ADD CONSTRAINT users_pkey PRIMARY KEY (id);
         | 
| 2723 2834 |  | 
| 2724 2835 |  | 
| @@ -2726,7 +2837,7 @@ ALTER TABLE ONLY users | |
| 2726 2837 | 
             
            -- Name: vuln_attempts vuln_attempts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2727 2838 | 
             
            --
         | 
| 2728 2839 |  | 
| 2729 | 
            -
            ALTER TABLE ONLY vuln_attempts
         | 
| 2840 | 
            +
            ALTER TABLE ONLY public.vuln_attempts
         | 
| 2730 2841 | 
             
                ADD CONSTRAINT vuln_attempts_pkey PRIMARY KEY (id);
         | 
| 2731 2842 |  | 
| 2732 2843 |  | 
| @@ -2734,7 +2845,7 @@ ALTER TABLE ONLY vuln_attempts | |
| 2734 2845 | 
             
            -- Name: vuln_details vuln_details_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2735 2846 | 
             
            --
         | 
| 2736 2847 |  | 
| 2737 | 
            -
            ALTER TABLE ONLY vuln_details
         | 
| 2848 | 
            +
            ALTER TABLE ONLY public.vuln_details
         | 
| 2738 2849 | 
             
                ADD CONSTRAINT vuln_details_pkey PRIMARY KEY (id);
         | 
| 2739 2850 |  | 
| 2740 2851 |  | 
| @@ -2742,7 +2853,7 @@ ALTER TABLE ONLY vuln_details | |
| 2742 2853 | 
             
            -- Name: vulns vulns_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2743 2854 | 
             
            --
         | 
| 2744 2855 |  | 
| 2745 | 
            -
            ALTER TABLE ONLY vulns
         | 
| 2856 | 
            +
            ALTER TABLE ONLY public.vulns
         | 
| 2746 2857 | 
             
                ADD CONSTRAINT vulns_pkey PRIMARY KEY (id);
         | 
| 2747 2858 |  | 
| 2748 2859 |  | 
| @@ -2750,7 +2861,7 @@ ALTER TABLE ONLY vulns | |
| 2750 2861 | 
             
            -- Name: vulns_refs vulns_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2751 2862 | 
             
            --
         | 
| 2752 2863 |  | 
| 2753 | 
            -
            ALTER TABLE ONLY vulns_refs
         | 
| 2864 | 
            +
            ALTER TABLE ONLY public.vulns_refs
         | 
| 2754 2865 | 
             
                ADD CONSTRAINT vulns_refs_pkey PRIMARY KEY (id);
         | 
| 2755 2866 |  | 
| 2756 2867 |  | 
| @@ -2758,7 +2869,7 @@ ALTER TABLE ONLY vulns_refs | |
| 2758 2869 | 
             
            -- Name: web_forms web_forms_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2759 2870 | 
             
            --
         | 
| 2760 2871 |  | 
| 2761 | 
            -
            ALTER TABLE ONLY web_forms
         | 
| 2872 | 
            +
            ALTER TABLE ONLY public.web_forms
         | 
| 2762 2873 | 
             
                ADD CONSTRAINT web_forms_pkey PRIMARY KEY (id);
         | 
| 2763 2874 |  | 
| 2764 2875 |  | 
| @@ -2766,7 +2877,7 @@ ALTER TABLE ONLY web_forms | |
| 2766 2877 | 
             
            -- Name: web_pages web_pages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2767 2878 | 
             
            --
         | 
| 2768 2879 |  | 
| 2769 | 
            -
            ALTER TABLE ONLY web_pages
         | 
| 2880 | 
            +
            ALTER TABLE ONLY public.web_pages
         | 
| 2770 2881 | 
             
                ADD CONSTRAINT web_pages_pkey PRIMARY KEY (id);
         | 
| 2771 2882 |  | 
| 2772 2883 |  | 
| @@ -2774,7 +2885,7 @@ ALTER TABLE ONLY web_pages | |
| 2774 2885 | 
             
            -- Name: web_sites web_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2775 2886 | 
             
            --
         | 
| 2776 2887 |  | 
| 2777 | 
            -
            ALTER TABLE ONLY web_sites
         | 
| 2888 | 
            +
            ALTER TABLE ONLY public.web_sites
         | 
| 2778 2889 | 
             
                ADD CONSTRAINT web_sites_pkey PRIMARY KEY (id);
         | 
| 2779 2890 |  | 
| 2780 2891 |  | 
| @@ -2782,7 +2893,7 @@ ALTER TABLE ONLY web_sites | |
| 2782 2893 | 
             
            -- Name: web_vulns web_vulns_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2783 2894 | 
             
            --
         | 
| 2784 2895 |  | 
| 2785 | 
            -
            ALTER TABLE ONLY web_vulns
         | 
| 2896 | 
            +
            ALTER TABLE ONLY public.web_vulns
         | 
| 2786 2897 | 
             
                ADD CONSTRAINT web_vulns_pkey PRIMARY KEY (id);
         | 
| 2787 2898 |  | 
| 2788 2899 |  | 
| @@ -2790,7 +2901,7 @@ ALTER TABLE ONLY web_vulns | |
| 2790 2901 | 
             
            -- Name: wmap_requests wmap_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2791 2902 | 
             
            --
         | 
| 2792 2903 |  | 
| 2793 | 
            -
            ALTER TABLE ONLY wmap_requests
         | 
| 2904 | 
            +
            ALTER TABLE ONLY public.wmap_requests
         | 
| 2794 2905 | 
             
                ADD CONSTRAINT wmap_requests_pkey PRIMARY KEY (id);
         | 
| 2795 2906 |  | 
| 2796 2907 |  | 
| @@ -2798,7 +2909,7 @@ ALTER TABLE ONLY wmap_requests | |
| 2798 2909 | 
             
            -- Name: wmap_targets wmap_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2799 2910 | 
             
            --
         | 
| 2800 2911 |  | 
| 2801 | 
            -
            ALTER TABLE ONLY wmap_targets
         | 
| 2912 | 
            +
            ALTER TABLE ONLY public.wmap_targets
         | 
| 2802 2913 | 
             
                ADD CONSTRAINT wmap_targets_pkey PRIMARY KEY (id);
         | 
| 2803 2914 |  | 
| 2804 2915 |  | 
| @@ -2806,7 +2917,7 @@ ALTER TABLE ONLY wmap_targets | |
| 2806 2917 | 
             
            -- Name: workspaces workspaces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
         | 
| 2807 2918 | 
             
            --
         | 
| 2808 2919 |  | 
| 2809 | 
            -
            ALTER TABLE ONLY workspaces
         | 
| 2920 | 
            +
            ALTER TABLE ONLY public.workspaces
         | 
| 2810 2921 | 
             
                ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id);
         | 
| 2811 2922 |  | 
| 2812 2923 |  | 
| @@ -2814,357 +2925,357 @@ ALTER TABLE ONLY workspaces | |
| 2814 2925 | 
             
            -- Name: index_automatic_exploitation_match_results_on_match_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2815 2926 | 
             
            --
         | 
| 2816 2927 |  | 
| 2817 | 
            -
            CREATE INDEX index_automatic_exploitation_match_results_on_match_id ON automatic_exploitation_match_results USING btree (match_id);
         | 
| 2928 | 
            +
            CREATE INDEX index_automatic_exploitation_match_results_on_match_id ON public.automatic_exploitation_match_results USING btree (match_id);
         | 
| 2818 2929 |  | 
| 2819 2930 |  | 
| 2820 2931 | 
             
            --
         | 
| 2821 2932 | 
             
            -- Name: index_automatic_exploitation_match_results_on_run_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2822 2933 | 
             
            --
         | 
| 2823 2934 |  | 
| 2824 | 
            -
            CREATE INDEX index_automatic_exploitation_match_results_on_run_id ON automatic_exploitation_match_results USING btree (run_id);
         | 
| 2935 | 
            +
            CREATE INDEX index_automatic_exploitation_match_results_on_run_id ON public.automatic_exploitation_match_results USING btree (run_id);
         | 
| 2825 2936 |  | 
| 2826 2937 |  | 
| 2827 2938 | 
             
            --
         | 
| 2828 2939 | 
             
            -- Name: index_automatic_exploitation_match_sets_on_user_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2829 2940 | 
             
            --
         | 
| 2830 2941 |  | 
| 2831 | 
            -
            CREATE INDEX index_automatic_exploitation_match_sets_on_user_id ON automatic_exploitation_match_sets USING btree (user_id);
         | 
| 2942 | 
            +
            CREATE INDEX index_automatic_exploitation_match_sets_on_user_id ON public.automatic_exploitation_match_sets USING btree (user_id);
         | 
| 2832 2943 |  | 
| 2833 2944 |  | 
| 2834 2945 | 
             
            --
         | 
| 2835 2946 | 
             
            -- Name: index_automatic_exploitation_match_sets_on_workspace_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2836 2947 | 
             
            --
         | 
| 2837 2948 |  | 
| 2838 | 
            -
            CREATE INDEX index_automatic_exploitation_match_sets_on_workspace_id ON automatic_exploitation_match_sets USING btree (workspace_id);
         | 
| 2949 | 
            +
            CREATE INDEX index_automatic_exploitation_match_sets_on_workspace_id ON public.automatic_exploitation_match_sets USING btree (workspace_id);
         | 
| 2839 2950 |  | 
| 2840 2951 |  | 
| 2841 2952 | 
             
            --
         | 
| 2842 2953 | 
             
            -- Name: index_automatic_exploitation_matches_on_module_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2843 2954 | 
             
            --
         | 
| 2844 2955 |  | 
| 2845 | 
            -
            CREATE INDEX index_automatic_exploitation_matches_on_module_detail_id ON automatic_exploitation_matches USING btree (module_detail_id);
         | 
| 2956 | 
            +
            CREATE INDEX index_automatic_exploitation_matches_on_module_detail_id ON public.automatic_exploitation_matches USING btree (module_detail_id);
         | 
| 2846 2957 |  | 
| 2847 2958 |  | 
| 2848 2959 | 
             
            --
         | 
| 2849 2960 | 
             
            -- Name: index_automatic_exploitation_matches_on_module_fullname; Type: INDEX; Schema: public; Owner: -
         | 
| 2850 2961 | 
             
            --
         | 
| 2851 2962 |  | 
| 2852 | 
            -
            CREATE INDEX index_automatic_exploitation_matches_on_module_fullname ON automatic_exploitation_matches USING btree (module_fullname);
         | 
| 2963 | 
            +
            CREATE INDEX index_automatic_exploitation_matches_on_module_fullname ON public.automatic_exploitation_matches USING btree (module_fullname);
         | 
| 2853 2964 |  | 
| 2854 2965 |  | 
| 2855 2966 | 
             
            --
         | 
| 2856 2967 | 
             
            -- Name: index_automatic_exploitation_runs_on_match_set_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2857 2968 | 
             
            --
         | 
| 2858 2969 |  | 
| 2859 | 
            -
            CREATE INDEX index_automatic_exploitation_runs_on_match_set_id ON automatic_exploitation_runs USING btree (match_set_id);
         | 
| 2970 | 
            +
            CREATE INDEX index_automatic_exploitation_runs_on_match_set_id ON public.automatic_exploitation_runs USING btree (match_set_id);
         | 
| 2860 2971 |  | 
| 2861 2972 |  | 
| 2862 2973 | 
             
            --
         | 
| 2863 2974 | 
             
            -- Name: index_automatic_exploitation_runs_on_user_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2864 2975 | 
             
            --
         | 
| 2865 2976 |  | 
| 2866 | 
            -
            CREATE INDEX index_automatic_exploitation_runs_on_user_id ON automatic_exploitation_runs USING btree (user_id);
         | 
| 2977 | 
            +
            CREATE INDEX index_automatic_exploitation_runs_on_user_id ON public.automatic_exploitation_runs USING btree (user_id);
         | 
| 2867 2978 |  | 
| 2868 2979 |  | 
| 2869 2980 | 
             
            --
         | 
| 2870 2981 | 
             
            -- Name: index_automatic_exploitation_runs_on_workspace_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2871 2982 | 
             
            --
         | 
| 2872 2983 |  | 
| 2873 | 
            -
            CREATE INDEX index_automatic_exploitation_runs_on_workspace_id ON automatic_exploitation_runs USING btree (workspace_id);
         | 
| 2984 | 
            +
            CREATE INDEX index_automatic_exploitation_runs_on_workspace_id ON public.automatic_exploitation_runs USING btree (workspace_id);
         | 
| 2874 2985 |  | 
| 2875 2986 |  | 
| 2876 2987 | 
             
            --
         | 
| 2877 2988 | 
             
            -- Name: index_hosts_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 2878 2989 | 
             
            --
         | 
| 2879 2990 |  | 
| 2880 | 
            -
            CREATE INDEX index_hosts_on_name ON hosts USING btree (name);
         | 
| 2991 | 
            +
            CREATE INDEX index_hosts_on_name ON public.hosts USING btree (name);
         | 
| 2881 2992 |  | 
| 2882 2993 |  | 
| 2883 2994 | 
             
            --
         | 
| 2884 2995 | 
             
            -- Name: index_hosts_on_os_flavor; Type: INDEX; Schema: public; Owner: -
         | 
| 2885 2996 | 
             
            --
         | 
| 2886 2997 |  | 
| 2887 | 
            -
            CREATE INDEX index_hosts_on_os_flavor ON hosts USING btree (os_flavor);
         | 
| 2998 | 
            +
            CREATE INDEX index_hosts_on_os_flavor ON public.hosts USING btree (os_flavor);
         | 
| 2888 2999 |  | 
| 2889 3000 |  | 
| 2890 3001 | 
             
            --
         | 
| 2891 3002 | 
             
            -- Name: index_hosts_on_os_name; Type: INDEX; Schema: public; Owner: -
         | 
| 2892 3003 | 
             
            --
         | 
| 2893 3004 |  | 
| 2894 | 
            -
            CREATE INDEX index_hosts_on_os_name ON hosts USING btree (os_name);
         | 
| 3005 | 
            +
            CREATE INDEX index_hosts_on_os_name ON public.hosts USING btree (os_name);
         | 
| 2895 3006 |  | 
| 2896 3007 |  | 
| 2897 3008 | 
             
            --
         | 
| 2898 3009 | 
             
            -- Name: index_hosts_on_purpose; Type: INDEX; Schema: public; Owner: -
         | 
| 2899 3010 | 
             
            --
         | 
| 2900 3011 |  | 
| 2901 | 
            -
            CREATE INDEX index_hosts_on_purpose ON hosts USING btree (purpose);
         | 
| 3012 | 
            +
            CREATE INDEX index_hosts_on_purpose ON public.hosts USING btree (purpose);
         | 
| 2902 3013 |  | 
| 2903 3014 |  | 
| 2904 3015 | 
             
            --
         | 
| 2905 3016 | 
             
            -- Name: index_hosts_on_state; Type: INDEX; Schema: public; Owner: -
         | 
| 2906 3017 | 
             
            --
         | 
| 2907 3018 |  | 
| 2908 | 
            -
            CREATE INDEX index_hosts_on_state ON hosts USING btree (state);
         | 
| 3019 | 
            +
            CREATE INDEX index_hosts_on_state ON public.hosts USING btree (state);
         | 
| 2909 3020 |  | 
| 2910 3021 |  | 
| 2911 3022 | 
             
            --
         | 
| 2912 3023 | 
             
            -- Name: index_hosts_on_workspace_id_and_address; Type: INDEX; Schema: public; Owner: -
         | 
| 2913 3024 | 
             
            --
         | 
| 2914 3025 |  | 
| 2915 | 
            -
            CREATE UNIQUE INDEX index_hosts_on_workspace_id_and_address ON hosts USING btree (workspace_id, address);
         | 
| 3026 | 
            +
            CREATE UNIQUE INDEX index_hosts_on_workspace_id_and_address ON public.hosts USING btree (workspace_id, address);
         | 
| 2916 3027 |  | 
| 2917 3028 |  | 
| 2918 3029 | 
             
            --
         | 
| 2919 3030 | 
             
            -- Name: index_loots_on_module_run_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2920 3031 | 
             
            --
         | 
| 2921 3032 |  | 
| 2922 | 
            -
            CREATE INDEX index_loots_on_module_run_id ON loots USING btree (module_run_id);
         | 
| 3033 | 
            +
            CREATE INDEX index_loots_on_module_run_id ON public.loots USING btree (module_run_id);
         | 
| 2923 3034 |  | 
| 2924 3035 |  | 
| 2925 3036 | 
             
            --
         | 
| 2926 3037 | 
             
            -- Name: index_module_actions_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2927 3038 | 
             
            --
         | 
| 2928 3039 |  | 
| 2929 | 
            -
            CREATE INDEX index_module_actions_on_detail_id ON module_actions USING btree (detail_id);
         | 
| 3040 | 
            +
            CREATE INDEX index_module_actions_on_detail_id ON public.module_actions USING btree (detail_id);
         | 
| 2930 3041 |  | 
| 2931 3042 |  | 
| 2932 3043 | 
             
            --
         | 
| 2933 3044 | 
             
            -- Name: index_module_archs_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2934 3045 | 
             
            --
         | 
| 2935 3046 |  | 
| 2936 | 
            -
            CREATE INDEX index_module_archs_on_detail_id ON module_archs USING btree (detail_id);
         | 
| 3047 | 
            +
            CREATE INDEX index_module_archs_on_detail_id ON public.module_archs USING btree (detail_id);
         | 
| 2937 3048 |  | 
| 2938 3049 |  | 
| 2939 3050 | 
             
            --
         | 
| 2940 3051 | 
             
            -- Name: index_module_authors_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2941 3052 | 
             
            --
         | 
| 2942 3053 |  | 
| 2943 | 
            -
            CREATE INDEX index_module_authors_on_detail_id ON module_authors USING btree (detail_id);
         | 
| 3054 | 
            +
            CREATE INDEX index_module_authors_on_detail_id ON public.module_authors USING btree (detail_id);
         | 
| 2944 3055 |  | 
| 2945 3056 |  | 
| 2946 3057 | 
             
            --
         | 
| 2947 3058 | 
             
            -- Name: index_module_details_on_description; Type: INDEX; Schema: public; Owner: -
         | 
| 2948 3059 | 
             
            --
         | 
| 2949 3060 |  | 
| 2950 | 
            -
            CREATE INDEX index_module_details_on_description ON module_details USING btree (description);
         | 
| 3061 | 
            +
            CREATE INDEX index_module_details_on_description ON public.module_details USING btree (description);
         | 
| 2951 3062 |  | 
| 2952 3063 |  | 
| 2953 3064 | 
             
            --
         | 
| 2954 3065 | 
             
            -- Name: index_module_details_on_mtype; Type: INDEX; Schema: public; Owner: -
         | 
| 2955 3066 | 
             
            --
         | 
| 2956 3067 |  | 
| 2957 | 
            -
            CREATE INDEX index_module_details_on_mtype ON module_details USING btree (mtype);
         | 
| 3068 | 
            +
            CREATE INDEX index_module_details_on_mtype ON public.module_details USING btree (mtype);
         | 
| 2958 3069 |  | 
| 2959 3070 |  | 
| 2960 3071 | 
             
            --
         | 
| 2961 3072 | 
             
            -- Name: index_module_details_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 2962 3073 | 
             
            --
         | 
| 2963 3074 |  | 
| 2964 | 
            -
            CREATE INDEX index_module_details_on_name ON module_details USING btree (name);
         | 
| 3075 | 
            +
            CREATE INDEX index_module_details_on_name ON public.module_details USING btree (name);
         | 
| 2965 3076 |  | 
| 2966 3077 |  | 
| 2967 3078 | 
             
            --
         | 
| 2968 3079 | 
             
            -- Name: index_module_details_on_refname; Type: INDEX; Schema: public; Owner: -
         | 
| 2969 3080 | 
             
            --
         | 
| 2970 3081 |  | 
| 2971 | 
            -
            CREATE INDEX index_module_details_on_refname ON module_details USING btree (refname);
         | 
| 3082 | 
            +
            CREATE INDEX index_module_details_on_refname ON public.module_details USING btree (refname);
         | 
| 2972 3083 |  | 
| 2973 3084 |  | 
| 2974 3085 | 
             
            --
         | 
| 2975 3086 | 
             
            -- Name: index_module_mixins_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2976 3087 | 
             
            --
         | 
| 2977 3088 |  | 
| 2978 | 
            -
            CREATE INDEX index_module_mixins_on_detail_id ON module_mixins USING btree (detail_id);
         | 
| 3089 | 
            +
            CREATE INDEX index_module_mixins_on_detail_id ON public.module_mixins USING btree (detail_id);
         | 
| 2979 3090 |  | 
| 2980 3091 |  | 
| 2981 3092 | 
             
            --
         | 
| 2982 3093 | 
             
            -- Name: index_module_platforms_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2983 3094 | 
             
            --
         | 
| 2984 3095 |  | 
| 2985 | 
            -
            CREATE INDEX index_module_platforms_on_detail_id ON module_platforms USING btree (detail_id);
         | 
| 3096 | 
            +
            CREATE INDEX index_module_platforms_on_detail_id ON public.module_platforms USING btree (detail_id);
         | 
| 2986 3097 |  | 
| 2987 3098 |  | 
| 2988 3099 | 
             
            --
         | 
| 2989 3100 | 
             
            -- Name: index_module_refs_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 2990 3101 | 
             
            --
         | 
| 2991 3102 |  | 
| 2992 | 
            -
            CREATE INDEX index_module_refs_on_detail_id ON module_refs USING btree (detail_id);
         | 
| 3103 | 
            +
            CREATE INDEX index_module_refs_on_detail_id ON public.module_refs USING btree (detail_id);
         | 
| 2993 3104 |  | 
| 2994 3105 |  | 
| 2995 3106 | 
             
            --
         | 
| 2996 3107 | 
             
            -- Name: index_module_refs_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 2997 3108 | 
             
            --
         | 
| 2998 3109 |  | 
| 2999 | 
            -
            CREATE INDEX index_module_refs_on_name ON module_refs USING btree (name);
         | 
| 3110 | 
            +
            CREATE INDEX index_module_refs_on_name ON public.module_refs USING btree (name);
         | 
| 3000 3111 |  | 
| 3001 3112 |  | 
| 3002 3113 | 
             
            --
         | 
| 3003 3114 | 
             
            -- Name: index_module_runs_on_session_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3004 3115 | 
             
            --
         | 
| 3005 3116 |  | 
| 3006 | 
            -
            CREATE INDEX index_module_runs_on_session_id ON module_runs USING btree (session_id);
         | 
| 3117 | 
            +
            CREATE INDEX index_module_runs_on_session_id ON public.module_runs USING btree (session_id);
         | 
| 3007 3118 |  | 
| 3008 3119 |  | 
| 3009 3120 | 
             
            --
         | 
| 3010 3121 | 
             
            -- Name: index_module_runs_on_user_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3011 3122 | 
             
            --
         | 
| 3012 3123 |  | 
| 3013 | 
            -
            CREATE INDEX index_module_runs_on_user_id ON module_runs USING btree (user_id);
         | 
| 3124 | 
            +
            CREATE INDEX index_module_runs_on_user_id ON public.module_runs USING btree (user_id);
         | 
| 3014 3125 |  | 
| 3015 3126 |  | 
| 3016 3127 | 
             
            --
         | 
| 3017 3128 | 
             
            -- Name: index_module_targets_on_detail_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3018 3129 | 
             
            --
         | 
| 3019 3130 |  | 
| 3020 | 
            -
            CREATE INDEX index_module_targets_on_detail_id ON module_targets USING btree (detail_id);
         | 
| 3131 | 
            +
            CREATE INDEX index_module_targets_on_detail_id ON public.module_targets USING btree (detail_id);
         | 
| 3021 3132 |  | 
| 3022 3133 |  | 
| 3023 3134 | 
             
            --
         | 
| 3024 3135 | 
             
            -- Name: index_notes_on_ntype; Type: INDEX; Schema: public; Owner: -
         | 
| 3025 3136 | 
             
            --
         | 
| 3026 3137 |  | 
| 3027 | 
            -
            CREATE INDEX index_notes_on_ntype ON notes USING btree (ntype);
         | 
| 3138 | 
            +
            CREATE INDEX index_notes_on_ntype ON public.notes USING btree (ntype);
         | 
| 3028 3139 |  | 
| 3029 3140 |  | 
| 3030 3141 | 
             
            --
         | 
| 3031 3142 | 
             
            -- Name: index_notes_on_vuln_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3032 3143 | 
             
            --
         | 
| 3033 3144 |  | 
| 3034 | 
            -
            CREATE INDEX index_notes_on_vuln_id ON notes USING btree (vuln_id);
         | 
| 3145 | 
            +
            CREATE INDEX index_notes_on_vuln_id ON public.notes USING btree (vuln_id);
         | 
| 3035 3146 |  | 
| 3036 3147 |  | 
| 3037 3148 | 
             
            --
         | 
| 3038 3149 | 
             
            -- Name: index_refs_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 3039 3150 | 
             
            --
         | 
| 3040 3151 |  | 
| 3041 | 
            -
            CREATE INDEX index_refs_on_name ON refs USING btree (name);
         | 
| 3152 | 
            +
            CREATE INDEX index_refs_on_name ON public.refs USING btree (name);
         | 
| 3042 3153 |  | 
| 3043 3154 |  | 
| 3044 3155 | 
             
            --
         | 
| 3045 3156 | 
             
            -- Name: index_services_on_host_id_and_port_and_proto; Type: INDEX; Schema: public; Owner: -
         | 
| 3046 3157 | 
             
            --
         | 
| 3047 3158 |  | 
| 3048 | 
            -
            CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON services USING btree (host_id, port, proto);
         | 
| 3159 | 
            +
            CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON public.services USING btree (host_id, port, proto);
         | 
| 3049 3160 |  | 
| 3050 3161 |  | 
| 3051 3162 | 
             
            --
         | 
| 3052 3163 | 
             
            -- Name: index_services_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 3053 3164 | 
             
            --
         | 
| 3054 3165 |  | 
| 3055 | 
            -
            CREATE INDEX index_services_on_name ON services USING btree (name);
         | 
| 3166 | 
            +
            CREATE INDEX index_services_on_name ON public.services USING btree (name);
         | 
| 3056 3167 |  | 
| 3057 3168 |  | 
| 3058 3169 | 
             
            --
         | 
| 3059 3170 | 
             
            -- Name: index_services_on_port; Type: INDEX; Schema: public; Owner: -
         | 
| 3060 3171 | 
             
            --
         | 
| 3061 3172 |  | 
| 3062 | 
            -
            CREATE INDEX index_services_on_port ON services USING btree (port);
         | 
| 3173 | 
            +
            CREATE INDEX index_services_on_port ON public.services USING btree (port);
         | 
| 3063 3174 |  | 
| 3064 3175 |  | 
| 3065 3176 | 
             
            --
         | 
| 3066 3177 | 
             
            -- Name: index_services_on_proto; Type: INDEX; Schema: public; Owner: -
         | 
| 3067 3178 | 
             
            --
         | 
| 3068 3179 |  | 
| 3069 | 
            -
            CREATE INDEX index_services_on_proto ON services USING btree (proto);
         | 
| 3180 | 
            +
            CREATE INDEX index_services_on_proto ON public.services USING btree (proto);
         | 
| 3070 3181 |  | 
| 3071 3182 |  | 
| 3072 3183 | 
             
            --
         | 
| 3073 3184 | 
             
            -- Name: index_services_on_state; Type: INDEX; Schema: public; Owner: -
         | 
| 3074 3185 | 
             
            --
         | 
| 3075 3186 |  | 
| 3076 | 
            -
            CREATE INDEX index_services_on_state ON services USING btree (state);
         | 
| 3187 | 
            +
            CREATE INDEX index_services_on_state ON public.services USING btree (state);
         | 
| 3077 3188 |  | 
| 3078 3189 |  | 
| 3079 3190 | 
             
            --
         | 
| 3080 3191 | 
             
            -- Name: index_sessions_on_module_run_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3081 3192 | 
             
            --
         | 
| 3082 3193 |  | 
| 3083 | 
            -
            CREATE INDEX index_sessions_on_module_run_id ON sessions USING btree (module_run_id);
         | 
| 3194 | 
            +
            CREATE INDEX index_sessions_on_module_run_id ON public.sessions USING btree (module_run_id);
         | 
| 3084 3195 |  | 
| 3085 3196 |  | 
| 3086 3197 | 
             
            --
         | 
| 3087 3198 | 
             
            -- Name: index_vulns_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 3088 3199 | 
             
            --
         | 
| 3089 3200 |  | 
| 3090 | 
            -
            CREATE INDEX index_vulns_on_name ON vulns USING btree (name);
         | 
| 3201 | 
            +
            CREATE INDEX index_vulns_on_name ON public.vulns USING btree (name);
         | 
| 3091 3202 |  | 
| 3092 3203 |  | 
| 3093 3204 | 
             
            --
         | 
| 3094 3205 | 
             
            -- Name: index_vulns_on_origin_id; Type: INDEX; Schema: public; Owner: -
         | 
| 3095 3206 | 
             
            --
         | 
| 3096 3207 |  | 
| 3097 | 
            -
            CREATE INDEX index_vulns_on_origin_id ON vulns USING btree (origin_id);
         | 
| 3208 | 
            +
            CREATE INDEX index_vulns_on_origin_id ON public.vulns USING btree (origin_id);
         | 
| 3098 3209 |  | 
| 3099 3210 |  | 
| 3100 3211 | 
             
            --
         | 
| 3101 3212 | 
             
            -- Name: index_web_forms_on_path; Type: INDEX; Schema: public; Owner: -
         | 
| 3102 3213 | 
             
            --
         | 
| 3103 3214 |  | 
| 3104 | 
            -
            CREATE INDEX index_web_forms_on_path ON web_forms USING btree (path);
         | 
| 3215 | 
            +
            CREATE INDEX index_web_forms_on_path ON public.web_forms USING btree (path);
         | 
| 3105 3216 |  | 
| 3106 3217 |  | 
| 3107 3218 | 
             
            --
         | 
| 3108 3219 | 
             
            -- Name: index_web_pages_on_path; Type: INDEX; Schema: public; Owner: -
         | 
| 3109 3220 | 
             
            --
         | 
| 3110 3221 |  | 
| 3111 | 
            -
            CREATE INDEX index_web_pages_on_path ON web_pages USING btree (path);
         | 
| 3222 | 
            +
            CREATE INDEX index_web_pages_on_path ON public.web_pages USING btree (path);
         | 
| 3112 3223 |  | 
| 3113 3224 |  | 
| 3114 3225 | 
             
            --
         | 
| 3115 3226 | 
             
            -- Name: index_web_pages_on_query; Type: INDEX; Schema: public; Owner: -
         | 
| 3116 3227 | 
             
            --
         | 
| 3117 3228 |  | 
| 3118 | 
            -
            CREATE INDEX index_web_pages_on_query ON web_pages USING btree (query);
         | 
| 3229 | 
            +
            CREATE INDEX index_web_pages_on_query ON public.web_pages USING btree (query);
         | 
| 3119 3230 |  | 
| 3120 3231 |  | 
| 3121 3232 | 
             
            --
         | 
| 3122 3233 | 
             
            -- Name: index_web_sites_on_comments; Type: INDEX; Schema: public; Owner: -
         | 
| 3123 3234 | 
             
            --
         | 
| 3124 3235 |  | 
| 3125 | 
            -
            CREATE INDEX index_web_sites_on_comments ON web_sites USING btree (comments);
         | 
| 3236 | 
            +
            CREATE INDEX index_web_sites_on_comments ON public.web_sites USING btree (comments);
         | 
| 3126 3237 |  | 
| 3127 3238 |  | 
| 3128 3239 | 
             
            --
         | 
| 3129 3240 | 
             
            -- Name: index_web_sites_on_options; Type: INDEX; Schema: public; Owner: -
         | 
| 3130 3241 | 
             
            --
         | 
| 3131 3242 |  | 
| 3132 | 
            -
            CREATE INDEX index_web_sites_on_options ON web_sites USING btree (options);
         | 
| 3243 | 
            +
            CREATE INDEX index_web_sites_on_options ON public.web_sites USING btree (options);
         | 
| 3133 3244 |  | 
| 3134 3245 |  | 
| 3135 3246 | 
             
            --
         | 
| 3136 3247 | 
             
            -- Name: index_web_sites_on_vhost; Type: INDEX; Schema: public; Owner: -
         | 
| 3137 3248 | 
             
            --
         | 
| 3138 3249 |  | 
| 3139 | 
            -
            CREATE INDEX index_web_sites_on_vhost ON web_sites USING btree (vhost);
         | 
| 3250 | 
            +
            CREATE INDEX index_web_sites_on_vhost ON public.web_sites USING btree (vhost);
         | 
| 3140 3251 |  | 
| 3141 3252 |  | 
| 3142 3253 | 
             
            --
         | 
| 3143 3254 | 
             
            -- Name: index_web_vulns_on_method; Type: INDEX; Schema: public; Owner: -
         | 
| 3144 3255 | 
             
            --
         | 
| 3145 3256 |  | 
| 3146 | 
            -
            CREATE INDEX index_web_vulns_on_method ON web_vulns USING btree (method);
         | 
| 3257 | 
            +
            CREATE INDEX index_web_vulns_on_method ON public.web_vulns USING btree (method);
         | 
| 3147 3258 |  | 
| 3148 3259 |  | 
| 3149 3260 | 
             
            --
         | 
| 3150 3261 | 
             
            -- Name: index_web_vulns_on_name; Type: INDEX; Schema: public; Owner: -
         | 
| 3151 3262 | 
             
            --
         | 
| 3152 3263 |  | 
| 3153 | 
            -
            CREATE INDEX index_web_vulns_on_name ON web_vulns USING btree (name);
         | 
| 3264 | 
            +
            CREATE INDEX index_web_vulns_on_name ON public.web_vulns USING btree (name);
         | 
| 3154 3265 |  | 
| 3155 3266 |  | 
| 3156 3267 | 
             
            --
         | 
| 3157 3268 | 
             
            -- Name: index_web_vulns_on_path; Type: INDEX; Schema: public; Owner: -
         | 
| 3158 3269 | 
             
            --
         | 
| 3159 3270 |  | 
| 3160 | 
            -
            CREATE INDEX index_web_vulns_on_path ON web_vulns USING btree (path);
         | 
| 3271 | 
            +
            CREATE INDEX index_web_vulns_on_path ON public.web_vulns USING btree (path);
         | 
| 3161 3272 |  | 
| 3162 3273 |  | 
| 3163 3274 | 
             
            --
         | 
| 3164 3275 | 
             
            -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
         | 
| 3165 3276 | 
             
            --
         | 
| 3166 3277 |  | 
| 3167 | 
            -
            CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
         | 
| 3278 | 
            +
            CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
         | 
| 3168 3279 |  | 
| 3169 3280 |  | 
| 3170 3281 | 
             
            --
         | 
| @@ -3405,6 +3516,8 @@ INSERT INTO schema_migrations (version) VALUES ('20161004165612'); | |
| 3405 3516 |  | 
| 3406 3517 | 
             
            INSERT INTO schema_migrations (version) VALUES ('20161227212223');
         | 
| 3407 3518 |  | 
| 3519 | 
            +
            INSERT INTO schema_migrations (version) VALUES ('20180904120211');
         | 
| 3520 | 
            +
             | 
| 3408 3521 | 
             
            INSERT INTO schema_migrations (version) VALUES ('21');
         | 
| 3409 3522 |  | 
| 3410 3523 | 
             
            INSERT INTO schema_migrations (version) VALUES ('22');
         |