skill-assessment-app/db/schema.rb

114 lines
4.8 KiB
Ruby
Raw Normal View History

2016-07-26 11:59:23 -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.
#
# 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.
2017-03-02 10:00:56 -06:00
ActiveRecord::Schema.define(version: 20170228161729) do
2016-07-26 17:00:00 -05:00
create_table "answers", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "candidate_id"
t.integer "question_id"
t.text "answer", limit: 65535
t.integer "saved"
t.boolean "submitted"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["candidate_id"], name: "index_answers_on_candidate_id", using: :btree
t.index ["question_id"], name: "index_answers_on_question_id", using: :btree
t.index ["submitted"], name: "index_answers_on_submitted", using: :btree
end
create_table "candidates", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string "test_hash"
t.string "name"
t.string "email"
t.string "experience"
t.string "project"
t.string "position"
t.string "skill_needs"
2016-07-26 17:00:00 -05:00
t.integer "recruiter_id"
t.boolean "completed"
t.datetime "completed_at"
2016-07-26 17:00:00 -05:00
t.boolean "reminded"
2017-03-02 10:00:56 -06:00
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
2016-07-27 11:17:50 -05:00
t.integer "quiz_id"
2017-03-02 10:00:56 -06:00
t.integer "review_status", default: 0, null: false
t.text "review_comments", limit: 65535
2016-07-27 11:17:50 -05:00
t.index ["quiz_id"], name: "index_candidates_on_quiz_id", using: :btree
2016-07-26 17:00:00 -05:00
t.index ["recruiter_id"], name: "index_candidates_on_recruiter_id", using: :btree
t.index ["test_hash"], name: "index_candidates_on_test_hash", unique: true, using: :btree
end
create_table "questions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "quiz_id"
t.text "question", limit: 65535
t.string "category"
t.string "input_type"
t.text "input_options", limit: 65535
t.string "sort"
t.boolean "active"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
2016-08-03 08:55:30 -05:00
t.string "attachment"
2016-07-26 17:00:00 -05:00
t.index ["active"], name: "index_questions_on_active", using: :btree
t.index ["quiz_id"], name: "index_questions_on_quiz_id", using: :btree
t.index ["sort"], name: "index_questions_on_sort", using: :btree
end
2017-02-10 12:03:50 -06:00
create_table "quiz_comments", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "user_id"
t.string "test_hash"
t.text "message", limit: 65535
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2016-07-26 17:00:00 -05:00
create_table "quizzes", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string "unit"
t.string "dept"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
2016-08-18 18:22:57 -05:00
t.string "name"
2016-07-26 17:00:00 -05:00
end
create_table "reviewer_to_quizzes", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "user_id", null: false
t.integer "quiz_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["quiz_id"], name: "index_reviewer_to_quizzes_on_quiz_id", using: :btree
end
2016-11-17 22:43:19 -06:00
create_table "reviewer_votes", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "candidate_id"
t.integer "user_id"
2017-03-02 10:00:56 -06:00
t.integer "vote", default: 0, null: false
t.integer "veto", default: 0, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
2016-11-17 22:43:19 -06:00
t.index ["candidate_id", "user_id"], name: "index_reviewer_votes_on_candidate_id_and_user_id", unique: true, using: :btree
end
2016-07-26 17:00:00 -05:00
create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string "name"
t.string "email"
t.string "password_digest"
t.string "role"
t.boolean "active"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
2016-08-24 15:02:32 -05:00
t.string "reset_token"
t.datetime "reset_timestamp"
t.index ["reset_token"], name: "index_users_on_reset_token", using: :btree
2016-07-26 17:00:00 -05:00
end
2016-07-26 11:59:23 -05:00
end