data_importer/db/schema.rb

85 lines
2.7 KiB
Ruby

# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2022_04_07_083218) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "cpes", force: :cascade do |t|
t.string "status"
t.date "modification_date"
t.integer "nvd_id"
t.jsonb "references"
t.string "title"
t.string "name"
t.index ["nvd_id"], name: "index_cpes_on_nvd_id", unique: true
end
create_table "cvemon_cves", force: :cascade do |t|
t.string "cve_id"
t.string "urls", array: true
t.index ["cve_id"], name: "index_cvemon_cves_on_cve_id", unique: true
end
create_table "cves", force: :cascade do |t|
t.jsonb "cve_data_meta"
t.string "cve_id"
t.jsonb "affects"
t.string "data_format"
t.string "data_type"
t.string "data_version"
t.jsonb "description"
t.jsonb "impact"
t.jsonb "problemtype"
t.jsonb "references"
t.jsonb "source"
t.index ["cve_id"], name: "index_cves_on_cve_id", unique: true
end
create_table "github_pocs", force: :cascade do |t|
t.integer "github_poc_id"
t.string "cve_id", default: "None"
t.string "name"
t.string "full_name"
t.jsonb "owner"
t.string "html_url"
t.string "description"
t.boolean "fork"
t.date "created_at"
t.date "updated_at"
t.date "pushed_at"
t.integer "stargazers_count"
t.integer "watchers_count"
t.integer "forks_count"
t.boolean "allow_forking"
t.boolean "is_template"
t.string "topics", array: true
t.string "visibility"
t.integer "forks"
t.integer "watchers"
t.integer "score"
t.index ["github_poc_id"], name: "index_github_pocs_on_github_poc_id", unique: true
end
create_table "inthewild_cve_exploits", force: :cascade do |t|
t.string "cve_id"
t.string "earliest_report"
end
create_table "trickest_poc_cves", force: :cascade do |t|
t.string "cve_id"
t.string "cve_url"
t.string "description"
t.string "poc_links", array: true
end
end