2012-10-26 10:04:52 +00:00
|
|
|
# encoding: UTF-8
|
|
|
|
# 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.
|
|
|
|
|
2012-12-03 23:40:14 +00:00
|
|
|
ActiveRecord::Schema.define(:version => 20121203225613) do
|
2012-10-26 10:04:52 +00:00
|
|
|
|
|
|
|
create_table "item_categories", :force => true do |t|
|
|
|
|
t.text "name"
|
|
|
|
t.string "icon"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
create_table "items", :force => true do |t|
|
|
|
|
t.text "name"
|
|
|
|
t.text "desc"
|
|
|
|
t.text "link"
|
2012-11-04 00:14:21 +00:00
|
|
|
t.text "permission"
|
2012-10-26 10:04:52 +00:00
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "item_category_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
create_table "mappings", :force => true do |t|
|
|
|
|
t.text "category"
|
|
|
|
t.integer "xloc"
|
|
|
|
t.integer "yloc"
|
2012-10-26 10:43:01 +00:00
|
|
|
t.integer "item_id"
|
|
|
|
t.integer "synapse_id"
|
2012-10-26 10:04:52 +00:00
|
|
|
t.integer "map_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
create_table "maps", :force => true do |t|
|
|
|
|
t.text "name"
|
|
|
|
t.text "desc"
|
|
|
|
t.text "permission"
|
|
|
|
t.integer "user_id"
|
2012-11-04 00:14:21 +00:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
2012-12-03 23:40:14 +00:00
|
|
|
t.boolean "arranged"
|
2012-10-26 10:04:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
create_table "synapses", :force => true do |t|
|
|
|
|
t.text "desc"
|
|
|
|
t.text "category"
|
2012-11-04 00:14:21 +00:00
|
|
|
t.text "weight"
|
|
|
|
t.text "permission"
|
2012-10-26 10:04:52 +00:00
|
|
|
t.integer "node1_id"
|
|
|
|
t.integer "node2_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
|
|
|
|
create_table "users", :force => true do |t|
|
|
|
|
t.string "name"
|
|
|
|
t.string "email"
|
2012-11-04 00:14:21 +00:00
|
|
|
t.string "code", :limit => 8
|
|
|
|
t.string "joinedwithcode", :limit => 8
|
2012-10-26 10:04:52 +00:00
|
|
|
t.string "crypted_password"
|
|
|
|
t.string "password_salt"
|
|
|
|
t.string "persistence_token"
|
|
|
|
t.string "perishable_token"
|
2012-10-29 17:52:29 +00:00
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
2012-10-26 10:04:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|