# 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: 20180530162350) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "activities", force: :cascade do |t|
    t.integer  "project_id"
    t.float    "load"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "reason_id"
    t.integer  "week"
    t.integer  "year"
    t.string   "other"
  end

  create_table "devices", force: :cascade do |t|
    t.string   "manufacturer"
    t.string   "model"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "os"
  end

  create_table "integrations", force: :cascade do |t|
    t.integer  "device_id"
    t.integer  "year"
    t.integer  "week_gonogo"
    t.integer  "week_launch"
    t.integer  "bearer"
    t.string   "ua_prof"
    t.string   "ua_browser_webkit"
    t.string   "ua_browser_chrome"
    t.integer  "orangeworld_status"
    t.integer  "orangeworld_week"
    t.integer  "video_status"
    t.integer  "video_week"
    t.integer  "logo_status"
    t.integer  "logo_week"
    t.boolean  "unscoped"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "mms_week"
    t.integer  "mms_status"
  end

  create_table "miscs", force: :cascade do |t|
    t.string   "activity"
    t.integer  "user_id"
    t.float    "load"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "week"
    t.integer  "year"
  end

  create_table "projects", force: :cascade do |t|
    t.string   "name"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "devices"
    t.string   "version"
    t.text     "comment"
    t.date     "delivery_date"
    t.boolean  "status"
    t.integer  "user_id"
    t.string   "campaign"
    t.string   "client"
    t.string   "os"
  end

  create_table "reasons", force: :cascade do |t|
    t.string   "label"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.boolean  "for_projects"
  end

  create_table "test_plannings", force: :cascade do |t|
    t.integer  "test_id"
    t.integer  "device_id"
    t.integer  "priority"
    t.boolean  "status"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "user_id"
    t.date     "date_completed"
    t.boolean  "repass"
    t.integer  "week"
    t.integer  "year"
    t.string   "comment"
    t.float    "load"
    t.integer  "week_completed"
    t.integer  "year_completed"
    t.boolean  "cancelled"
    t.integer  "reason_id"
    t.string   "contact1"
    t.string   "contact2"
    t.string   "version"
    t.string   "os"
  end

  create_table "tests", force: :cascade do |t|
    t.string   "name"
    t.float    "load_pass"
    t.float    "load_repass"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "users", force: :cascade do |t|
    t.string   "encrypted_password",     default: ""
    t.string   "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "remember_created_at"
    t.integer  "sign_in_count",          default: 0,  null: false
    t.datetime "current_sign_in_at"
    t.datetime "last_sign_in_at"
    t.string   "current_sign_in_ip"
    t.string   "last_sign_in_ip"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "name"
    t.boolean  "suadmin"
    t.boolean  "admin_project"
    t.boolean  "admin_planning"
    t.boolean  "admin_integration"
    t.string   "username"
    t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  end

end
