2022-04-01 14:07:49 -05:00
|
|
|
# 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.
|
|
|
|
|
2022-04-04 13:18:03 -05:00
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_04_04_150811) do
|
2022-04-01 14:07:49 -05:00
|
|
|
# These are extensions that must be enabled in order to support this database
|
|
|
|
enable_extension "plpgsql"
|
|
|
|
|
2022-04-04 13:18:03 -05:00
|
|
|
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
|
|
|
|
|
2022-04-01 14:07:49 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
end
|