evodata/db/schema.rb

53 lines
2.3 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.define(version: 2022_01_27_153040) do
create_table "api_keys", force: :cascade do |t|
t.string "token"
t.string "bearer_type", null: false
t.integer "bearer_id", null: false
t.index ["bearer_id", "bearer_type"], name: "index_api_keys_on_bearer_id_and_bearer_type"
t.index ["bearer_type", "bearer_id"], name: "index_api_keys_on_bearer"
t.index ["token"], name: "index_api_keys_on_token", unique: true
end
create_table "checks", force: :cascade do |t|
t.string "name"
t.text "description"
t.string "hostname"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.datetime "date", precision: 6, null: false
t.index ["hostname"], name: "index_checks_on_hostname"
t.index ["name"], name: "index_checks_on_name"
end
create_table "users", force: :cascade do |t|
t.string "name"
t.string "email", null: false
t.string "unconfirmed_email"
t.string "remember_token", null: false
t.string "session_token", null: false
t.string "password_digest", null: false
t.datetime "confirmed_at", precision: 6
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.boolean "admin", default: false, null: false
t.index ["admin"], name: "index_users_on_admin"
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["remember_token"], name: "index_users_on_remember_token", unique: true
t.index ["session_token"], name: "index_users_on_session_token", unique: true
end
end