# 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 to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20100118182413) do

  create_table "proctors", :force => true do |t|
    t.string   "name"
    t.integer  "school_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "schools", :force => true do |t|
    t.string   "email"
    t.string   "name"
    t.string   "contact_phone"
    t.string   "contact_name"
    t.integer  "enrollment"
    t.boolean  "admin",             :default => false
    t.string   "crypted_password"
    t.string   "password_salt"
    t.string   "persistence_token"
    t.integer  "login_count"
    t.datetime "last_request"
    t.datetime "last_login_at"
    t.datetime "current_login_at"
    t.datetime "current_login"
    t.string   "last_login_ip"
    t.string   "current_login_ip"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "perishable_token",  :default => "",    :null => false
    t.integer  "school_score"
    t.string   "slug"
  end

  add_index "schools", ["perishable_token"], :name => "index_schools_on_perishable_token"
  add_index "schools", ["slug"], :name => "index_schools_on_slug"

  create_table "settings", :force => true do |t|
    t.string   "var",        :null => false
    t.text     "value"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "students", :force => true do |t|
    t.string   "last_name"
    t.string   "first_name"
    t.integer  "team_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "test_score"
  end

  create_table "teams", :force => true do |t|
    t.integer  "school_id"
    t.string   "level"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "test_score"
    t.integer  "students_count",         :default => 0
    t.boolean  "team_score_checked",     :default => false, :null => false
    t.boolean  "student_scores_checked", :default => false, :null => false
    t.boolean  "is_exhibition",          :default => true,  :null => false
    t.integer  "team_score"
  end

  create_table "uploads", :force => true do |t|
    t.string   "name"
    t.string   "upload_file_name"
    t.string   "upload_content_type"
    t.integer  "upload_file_size"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end
