|
11 | 11 | #
|
12 | 12 | # It's strongly recommended that you check this file into your version control system.
|
13 | 13 |
|
14 |
| -ActiveRecord::Schema.define(version: 20150317145455) do |
| 14 | +ActiveRecord::Schema.define(version: 20150326183742) do |
15 | 15 |
|
16 | 16 | # These are extensions that must be enabled in order to support this database
|
17 | 17 | enable_extension "plpgsql"
|
|
22 | 22 | t.datetime "updated_at", null: false
|
23 | 23 | end
|
24 | 24 |
|
| 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 | + |
25 | 73 | create_table "clients", force: true do |t|
|
26 | 74 | t.integer "host_id"
|
27 | 75 | t.datetime "created_at"
|
|
158 | 206 | end
|
159 | 207 |
|
160 | 208 | 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 |
162 | 210 | t.integer "host_id"
|
163 | 211 | 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 |
166 | 214 | 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 |
169 | 217 | t.string "content_type"
|
170 | 218 | t.text "name"
|
171 | 219 | t.text "info"
|
| 220 | + t.integer "module_run_id" |
172 | 221 | end
|
173 | 222 |
|
| 223 | + add_index "loots", ["module_run_id"], name: "index_loots_on_module_run_id", using: :btree |
| 224 | + |
174 | 225 | create_table "macros", force: true do |t|
|
175 | 226 | t.datetime "created_at", null: false
|
176 | 227 | t.datetime "updated_at", null: false
|
|
362 | 413 | add_index "module_refs", ["detail_id"], name: "index_module_refs_on_detail_id", using: :btree
|
363 | 414 | add_index "module_refs", ["name"], name: "index_module_refs_on_name", using: :btree
|
364 | 415 |
|
| 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 | + |
365 | 436 | create_table "module_targets", force: true do |t|
|
366 | 437 | t.integer "detail_id"
|
367 | 438 | t.integer "index"
|
|
484 | 555 | t.integer "port"
|
485 | 556 | t.string "platform"
|
486 | 557 | t.text "datastore"
|
487 |
| - t.datetime "opened_at", null: false |
| 558 | + t.datetime "opened_at", null: false |
488 | 559 | t.datetime "closed_at"
|
489 | 560 | t.string "close_reason"
|
490 | 561 | t.integer "local_id"
|
491 | 562 | t.datetime "last_seen"
|
| 563 | + t.integer "module_run_id" |
492 | 564 | end
|
493 | 565 |
|
| 566 | + add_index "sessions", ["module_run_id"], name: "index_sessions_on_module_run_id", using: :btree |
| 567 | + |
494 | 568 | create_table "tags", force: true do |t|
|
495 | 569 | t.integer "user_id"
|
496 | 570 | t.string "name", limit: 1024
|
|
0 commit comments