# 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. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. ActiveRecord::Schema.define(version: 2022_09_27_175414) do create_table "configuration_parameters", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "parameter" t.string "slug" t.string "value_guide" end create_table "customer_configurations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.bigint "configuration_parameter_id" t.bigint "customer_id", default: 0 t.text "value" t.index ["configuration_parameter_id"], name: "index_customer_configurations_on_configuration_parameter_id" t.index ["customer_id"], name: "index_customer_configurations_on_customer_id" end create_table "customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.string "slug" t.boolean "is_active", default: true t.string "logo" t.text "tools_configuration" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "api_customer_id" end create_table "dashboard_users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.bigint "user_id" t.bigint "dashboard_id" t.string "role", default: "end_user" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "is_default", default: false t.index ["dashboard_id"], name: "index_dashboard_users_on_dashboard_id" t.index ["user_id"], name: "index_dashboard_users_on_user_id" end create_table "dashboard_widgets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.bigint "widget_id" t.bigint "dashboard_id" t.integer "sort_order" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["dashboard_id"], name: "index_dashboard_widgets_on_dashboard_id" t.index ["widget_id"], name: "index_dashboard_widgets_on_widget_id" end create_table "dashboards", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.string "slug" t.bigint "customer_id", default: 0 t.boolean "is_active", default: true t.boolean "is_delete", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "is_default", default: false t.integer "sort_order" t.index ["customer_id"], name: "index_dashboards_on_customer_id" end create_table "delayed_jobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "priority", default: 0, null: false t.integer "attempts", default: 0, null: false t.text "handler", null: false t.text "last_error" t.datetime "run_at" t.datetime "locked_at" t.datetime "failed_at" t.string "locked_by" t.string "queue" t.datetime "created_at" t.datetime "updated_at" t.index ["priority", "run_at"], name: "delayed_jobs_priority" end create_table "node_tools", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "saas_id" t.integer "node_id" t.json "configuration" t.string "plugin" t.boolean "is_enabled" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "node_users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "saas_id" t.integer "node_id" t.integer "user_id" t.integer "role_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "nodes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "saas_id" t.string "name" t.boolean "is_enabled" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "reports", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "customer_id" t.string "title" t.string "report_type" t.text "link" t.string "tool" t.boolean "is_active", default: true t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.boolean "is_active", default: true t.boolean "is_delete", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "servicenow_groups", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.string "sys_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false t.string "name", default: "" t.string "role", default: "end_user", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "customer_id", default: 0 t.index ["email"], name: "index_users_on_email", unique: true t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end create_table "widgets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.string "file_name" t.string "size_type" t.boolean "is_active", default: true t.boolean "is_delete", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "module", default: "" t.string "widget_type", default: "live" t.text "filters" t.string "title" t.text "configuration" t.text "options" t.boolean "download_enabled" end end