Skip to content

Commit 5bf2a1a

Browse files
committed
Merge branch 'staging/rails-4.0' into bug/MSP-12516/db-manager-match-set
2 parents 75343ef + 2b02670 commit 5bf2a1a

File tree

2 files changed

+82
-8
lines changed

2 files changed

+82
-8
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ GIT
3333

3434
GIT
3535
remote: git://github.com/rapid7/metasploit_data_models.git
36-
revision: 6add26dc6aa83905db698fe9072d1d9901b1a2d6
36+
revision: 24b05f5ec4c337e85968986f0777a823755513cc
3737
branch: staging/rails-4.0
3838
specs:
3939
metasploit_data_models (0.23.3.pre.rails.pre.4.0)

db/schema.rb

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended that you check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(version: 20150317145455) do
14+
ActiveRecord::Schema.define(version: 20150326183742) do
1515

1616
# These are extensions that must be enabled in order to support this database
1717
enable_extension "plpgsql"
@@ -22,6 +22,54 @@
2222
t.datetime "updated_at", null: false
2323
end
2424

25+
create_table "automatic_exploitation_match_results", force: true do |t|
26+
t.integer "match_id"
27+
t.integer "run_id"
28+
t.string "state", null: false
29+
t.datetime "created_at"
30+
t.datetime "updated_at"
31+
end
32+
33+
add_index "automatic_exploitation_match_results", ["match_id"], name: "index_automatic_exploitation_match_results_on_match_id", using: :btree
34+
add_index "automatic_exploitation_match_results", ["run_id"], name: "index_automatic_exploitation_match_results_on_run_id", using: :btree
35+
36+
create_table "automatic_exploitation_match_sets", force: true do |t|
37+
t.integer "workspace_id"
38+
t.integer "user_id"
39+
t.datetime "created_at"
40+
t.datetime "updated_at"
41+
end
42+
43+
add_index "automatic_exploitation_match_sets", ["user_id"], name: "index_automatic_exploitation_match_sets_on_user_id", using: :btree
44+
add_index "automatic_exploitation_match_sets", ["workspace_id"], name: "index_automatic_exploitation_match_sets_on_workspace_id", using: :btree
45+
46+
create_table "automatic_exploitation_matches", force: true do |t|
47+
t.integer "module_detail_id"
48+
t.string "state"
49+
t.integer "nexpose_data_vulnerability_definition_id"
50+
t.datetime "created_at"
51+
t.datetime "updated_at"
52+
t.integer "match_set_id"
53+
t.string "matchable_type"
54+
t.integer "matchable_id"
55+
t.text "module_fullname"
56+
end
57+
58+
add_index "automatic_exploitation_matches", ["module_detail_id"], name: "index_automatic_exploitation_matches_on_module_detail_id", using: :btree
59+
add_index "automatic_exploitation_matches", ["module_fullname"], name: "index_automatic_exploitation_matches_on_module_fullname", using: :btree
60+
61+
create_table "automatic_exploitation_runs", force: true do |t|
62+
t.integer "workspace_id"
63+
t.integer "user_id"
64+
t.integer "match_set_id"
65+
t.datetime "created_at"
66+
t.datetime "updated_at"
67+
end
68+
69+
add_index "automatic_exploitation_runs", ["match_set_id"], name: "index_automatic_exploitation_runs_on_match_set_id", using: :btree
70+
add_index "automatic_exploitation_runs", ["user_id"], name: "index_automatic_exploitation_runs_on_user_id", using: :btree
71+
add_index "automatic_exploitation_runs", ["workspace_id"], name: "index_automatic_exploitation_runs_on_workspace_id", using: :btree
72+
2573
create_table "clients", force: true do |t|
2674
t.integer "host_id"
2775
t.datetime "created_at"
@@ -158,19 +206,22 @@
158206
end
159207

160208
create_table "loots", force: true do |t|
161-
t.integer "workspace_id", default: 1, null: false
209+
t.integer "workspace_id", default: 1, null: false
162210
t.integer "host_id"
163211
t.integer "service_id"
164-
t.string "ltype", limit: 512
165-
t.string "path", limit: 1024
212+
t.string "ltype", limit: 512
213+
t.string "path", limit: 1024
166214
t.text "data"
167-
t.datetime "created_at", null: false
168-
t.datetime "updated_at", null: false
215+
t.datetime "created_at", null: false
216+
t.datetime "updated_at", null: false
169217
t.string "content_type"
170218
t.text "name"
171219
t.text "info"
220+
t.integer "module_run_id"
172221
end
173222

223+
add_index "loots", ["module_run_id"], name: "index_loots_on_module_run_id", using: :btree
224+
174225
create_table "macros", force: true do |t|
175226
t.datetime "created_at", null: false
176227
t.datetime "updated_at", null: false
@@ -362,6 +413,26 @@
362413
add_index "module_refs", ["detail_id"], name: "index_module_refs_on_detail_id", using: :btree
363414
add_index "module_refs", ["name"], name: "index_module_refs_on_name", using: :btree
364415

416+
create_table "module_runs", force: true do |t|
417+
t.datetime "attempted_at"
418+
t.text "fail_detail"
419+
t.string "fail_reason"
420+
t.text "module_fullname"
421+
t.integer "port"
422+
t.string "proto"
423+
t.integer "session_id"
424+
t.string "status"
425+
t.integer "trackable_id"
426+
t.string "trackable_type"
427+
t.integer "user_id"
428+
t.string "username"
429+
t.datetime "created_at"
430+
t.datetime "updated_at"
431+
end
432+
433+
add_index "module_runs", ["session_id"], name: "index_module_runs_on_session_id", using: :btree
434+
add_index "module_runs", ["user_id"], name: "index_module_runs_on_user_id", using: :btree
435+
365436
create_table "module_targets", force: true do |t|
366437
t.integer "detail_id"
367438
t.integer "index"
@@ -484,13 +555,16 @@
484555
t.integer "port"
485556
t.string "platform"
486557
t.text "datastore"
487-
t.datetime "opened_at", null: false
558+
t.datetime "opened_at", null: false
488559
t.datetime "closed_at"
489560
t.string "close_reason"
490561
t.integer "local_id"
491562
t.datetime "last_seen"
563+
t.integer "module_run_id"
492564
end
493565

566+
add_index "sessions", ["module_run_id"], name: "index_sessions_on_module_run_id", using: :btree
567+
494568
create_table "tags", force: true do |t|
495569
t.integer "user_id"
496570
t.string "name", limit: 1024

0 commit comments

Comments
 (0)