# frozen_string_literal: true # 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: 20_220_411_181_501) do # These are extensions that must be enabled in order to support this database enable_extension 'plpgsql' create_table 'cnas', force: :cascade do |t| t.string 'short_name' t.string 'cna_id' t.string 'organization_name' t.string 'scope' t.jsonb 'contact' t.jsonb 'disclosure_policy' t.jsonb 'security_advisories' t.string 'resources', array: true t.jsonb 'cna' t.string 'country' t.datetime 'created_at', null: false t.datetime 'updated_at', null: false t.index ['cna_id'], name: 'index_cnas_on_cna_id', unique: true end 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.datetime 'created_at', null: false t.datetime 'updated_at', null: false 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.datetime 'created_at', precision: nil, null: false t.datetime 'updated_at', precision: nil, null: false t.index ['cve_id'], name: 'index_cves_on_cve_id', unique: true end create_table 'github_advisories', force: :cascade do |t| t.string 'schema_version' t.string 'ghsa_id' t.date 'modified' t.date 'published' t.string 'aliases', array: true t.string 'summary' t.string 'details' t.jsonb 'severity' t.jsonb 'affected' t.jsonb 'references' t.jsonb 'database_specific' t.index ['ghsa_id'], name: 'index_github_advisories_on_ghsa_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 'github_users', force: :cascade do |t| t.string 'github_id' t.string 'login' t.string 'name' t.string 'avatar_url' t.string 'bio' t.text 'bio_html' t.string 'location' t.jsonb 'repositories' 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