|
11 | 11 | #
|
12 | 12 | # It's strongly recommended to check this file into your version control system.
|
13 | 13 |
|
14 |
| -ActiveRecord::Schema.define(:version => 20150212214222) do |
| 14 | +ActiveRecord::Schema.define(:version => 20150326183742) do |
15 | 15 |
|
16 | 16 | create_table "api_keys", :force => true do |t|
|
17 | 17 | t.text "token"
|
18 | 18 | t.datetime "created_at", :null => false
|
19 | 19 | t.datetime "updated_at", :null => false
|
20 | 20 | end
|
21 | 21 |
|
| 22 | + create_table "automatic_exploitation_match_results", :force => true do |t| |
| 23 | + t.integer "match_id" |
| 24 | + t.integer "run_id" |
| 25 | + t.string "state", :null => false |
| 26 | + t.datetime "created_at", :null => false |
| 27 | + t.datetime "updated_at", :null => false |
| 28 | + end |
| 29 | + |
| 30 | + add_index "automatic_exploitation_match_results", ["match_id"], :name => "index_automatic_exploitation_match_results_on_match_id" |
| 31 | + add_index "automatic_exploitation_match_results", ["run_id"], :name => "index_automatic_exploitation_match_results_on_run_id" |
| 32 | + |
| 33 | + create_table "automatic_exploitation_match_sets", :force => true do |t| |
| 34 | + t.integer "workspace_id" |
| 35 | + t.integer "user_id" |
| 36 | + t.datetime "created_at", :null => false |
| 37 | + t.datetime "updated_at", :null => false |
| 38 | + end |
| 39 | + |
| 40 | + add_index "automatic_exploitation_match_sets", ["user_id"], :name => "index_automatic_exploitation_match_sets_on_user_id" |
| 41 | + add_index "automatic_exploitation_match_sets", ["workspace_id"], :name => "index_automatic_exploitation_match_sets_on_workspace_id" |
| 42 | + |
| 43 | + create_table "automatic_exploitation_matches", :force => true do |t| |
| 44 | + t.integer "module_detail_id" |
| 45 | + t.string "state" |
| 46 | + t.integer "nexpose_data_vulnerability_definition_id" |
| 47 | + t.datetime "created_at", :null => false |
| 48 | + t.datetime "updated_at", :null => false |
| 49 | + t.integer "match_set_id" |
| 50 | + t.string "matchable_type" |
| 51 | + t.integer "matchable_id" |
| 52 | + t.text "module_fullname" |
| 53 | + end |
| 54 | + |
| 55 | + add_index "automatic_exploitation_matches", ["module_detail_id"], :name => "index_automatic_exploitation_matches_on_ref_id" |
| 56 | + add_index "automatic_exploitation_matches", ["module_fullname"], :name => "index_automatic_exploitation_matches_on_module_fullname" |
| 57 | + |
| 58 | + create_table "automatic_exploitation_runs", :force => true do |t| |
| 59 | + t.integer "workspace_id" |
| 60 | + t.integer "user_id" |
| 61 | + t.integer "match_set_id" |
| 62 | + t.datetime "created_at", :null => false |
| 63 | + t.datetime "updated_at", :null => false |
| 64 | + end |
| 65 | + |
| 66 | + add_index "automatic_exploitation_runs", ["match_set_id"], :name => "index_automatic_exploitation_runs_on_match_set_id" |
| 67 | + add_index "automatic_exploitation_runs", ["user_id"], :name => "index_automatic_exploitation_runs_on_user_id" |
| 68 | + add_index "automatic_exploitation_runs", ["workspace_id"], :name => "index_automatic_exploitation_runs_on_workspace_id" |
| 69 | + |
22 | 70 | create_table "clients", :force => true do |t|
|
23 | 71 | t.integer "host_id"
|
24 | 72 | t.datetime "created_at"
|
|
155 | 203 | end
|
156 | 204 |
|
157 | 205 | create_table "loots", :force => true do |t|
|
158 |
| - t.integer "workspace_id", :default => 1, :null => false |
| 206 | + t.integer "workspace_id", :default => 1, :null => false |
159 | 207 | t.integer "host_id"
|
160 | 208 | t.integer "service_id"
|
161 |
| - t.string "ltype", :limit => 512 |
162 |
| - t.string "path", :limit => 1024 |
| 209 | + t.string "ltype", :limit => 512 |
| 210 | + t.string "path", :limit => 1024 |
163 | 211 | t.text "data"
|
164 |
| - t.datetime "created_at", :null => false |
165 |
| - t.datetime "updated_at", :null => false |
| 212 | + t.datetime "created_at", :null => false |
| 213 | + t.datetime "updated_at", :null => false |
166 | 214 | t.string "content_type"
|
167 | 215 | t.text "name"
|
168 | 216 | t.text "info"
|
| 217 | + t.integer "module_run_id" |
169 | 218 | end
|
170 | 219 |
|
| 220 | + add_index "loots", ["module_run_id"], :name => "index_loots_on_module_run_id" |
| 221 | + |
171 | 222 | create_table "macros", :force => true do |t|
|
172 | 223 | t.datetime "created_at", :null => false
|
173 | 224 | t.datetime "updated_at", :null => false
|
|
359 | 410 | add_index "module_refs", ["detail_id"], :name => "index_module_refs_on_module_detail_id"
|
360 | 411 | add_index "module_refs", ["name"], :name => "index_module_refs_on_name"
|
361 | 412 |
|
| 413 | + create_table "module_runs", :force => true do |t| |
| 414 | + t.datetime "attempted_at" |
| 415 | + t.text "fail_detail" |
| 416 | + t.string "fail_reason" |
| 417 | + t.text "module_fullname" |
| 418 | + t.integer "port" |
| 419 | + t.string "proto" |
| 420 | + t.integer "session_id" |
| 421 | + t.string "status" |
| 422 | + t.integer "trackable_id" |
| 423 | + t.string "trackable_type" |
| 424 | + t.integer "user_id" |
| 425 | + t.string "username" |
| 426 | + t.datetime "created_at", :null => false |
| 427 | + t.datetime "updated_at", :null => false |
| 428 | + end |
| 429 | + |
| 430 | + add_index "module_runs", ["session_id"], :name => "index_module_runs_on_session_id" |
| 431 | + add_index "module_runs", ["user_id"], :name => "index_module_runs_on_user_id" |
| 432 | + |
362 | 433 | create_table "module_targets", :force => true do |t|
|
363 | 434 | t.integer "detail_id"
|
364 | 435 | t.integer "index"
|
|
481 | 552 | t.integer "port"
|
482 | 553 | t.string "platform"
|
483 | 554 | t.text "datastore"
|
484 |
| - t.datetime "opened_at", :null => false |
| 555 | + t.datetime "opened_at", :null => false |
485 | 556 | t.datetime "closed_at"
|
486 | 557 | t.string "close_reason"
|
487 | 558 | t.integer "local_id"
|
488 | 559 | t.datetime "last_seen"
|
| 560 | + t.integer "module_run_id" |
489 | 561 | end
|
490 | 562 |
|
| 563 | + add_index "sessions", ["module_run_id"], :name => "index_sessions_on_module_run_id" |
| 564 | + |
491 | 565 | create_table "tags", :force => true do |t|
|
492 | 566 | t.integer "user_id"
|
493 | 567 | t.string "name", :limit => 1024
|
|
0 commit comments