impress/db/schema.rb

182 lines
7.7 KiB
Ruby
Raw Normal View History

2010-11-06 15:08:42 -07: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.
#
2010-11-06 15:08:42 -07:00
# 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.
2011-06-27 12:33:34 -07:00
ActiveRecord::Schema.define(:version => 20110626202605) do
create_table "auth_servers", :force => true do |t|
2011-05-20 16:19:14 -07:00
t.string "short_name", :limit => 10, :null => false
t.string "name", :limit => 40, :null => false
t.text "icon", :limit => 16777215, :null => false
t.text "gateway", :limit => 16777215, :null => false
t.string "secret", :limit => 64, :null => false
end
create_table "contributions", :force => true do |t|
t.string "contributed_type", :limit => 8, :null => false
t.integer "contributed_id", :null => false
t.integer "user_id", :null => false
t.datetime "created_at", :null => false
end
2011-05-20 16:19:14 -07:00
create_table "forums", :force => true do |t|
t.string "name"
t.text "description"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "sort_index"
end
create_table "item_outfit_relationships", :force => true do |t|
t.integer "item_id"
t.integer "outfit_id"
t.boolean "is_worn"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "login_cookies", :force => true do |t|
t.integer "user_id", :null => false
t.integer "series", :null => false
t.integer "token", :null => false
end
add_index "login_cookies", ["user_id", "series"], :name => "login_cookies_user_id_and_series"
add_index "login_cookies", ["user_id"], :name => "login_cookies_user_id"
create_table "objects", :force => true do |t|
2011-05-20 16:19:14 -07:00
t.text "zones_restrict", :null => false
t.text "thumbnail_url", :limit => 16777215, :null => false
t.string "name", :limit => 100, :null => false
t.text "description", :limit => 16777215, :null => false
t.string "category", :limit => 50
t.string "type", :limit => 50
t.string "rarity", :limit => 25
t.integer "rarity_index", :limit => 2
2011-05-20 16:19:14 -07:00
t.integer "price", :limit => 3, :null => false
t.integer "weight_lbs", :limit => 2
2011-05-20 16:19:14 -07:00
t.text "species_support_ids", :limit => 16777215
t.boolean "sold_in_mall", :null => false
t.datetime "last_spidered"
end
add_index "objects", ["last_spidered"], :name => "objects_last_spidered"
add_index "objects", ["name"], :name => "name"
create_table "outfits", :force => true do |t|
t.integer "pet_state_id"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
2011-02-10 14:50:47 -08:00
t.string "name"
t.boolean "starred", :default => false, :null => false
end
create_table "parents_swf_assets", :id => false, :force => true do |t|
t.integer "parent_id", :limit => 3, :null => false
t.integer "swf_asset_id", :limit => 3, :null => false
2010-11-06 15:08:42 -07:00
t.string "swf_asset_type", :limit => 7, :null => false
end
add_index "parents_swf_assets", ["parent_id", "swf_asset_id", "swf_asset_type"], :name => "unique_parents_swf_assets", :unique => true
add_index "parents_swf_assets", ["parent_id"], :name => "parent_swf_assets_parent_id"
add_index "parents_swf_assets", ["swf_asset_id"], :name => "parents_swf_assets_swf_asset_id"
2010-07-10 09:42:18 -07:00
create_table "pet_loads", :force => true do |t|
2011-05-20 16:19:14 -07:00
t.string "pet_name", :limit => 20, :null => false
t.text "amf", :limit => 16777215, :null => false
t.datetime "created_at", :null => false
2010-07-10 09:42:18 -07:00
end
create_table "pet_states", :force => true do |t|
2011-05-20 16:19:14 -07:00
t.integer "pet_type_id", :limit => 3, :null => false
t.text "swf_asset_ids", :null => false
end
add_index "pet_states", ["pet_type_id"], :name => "pet_states_pet_type_id"
create_table "pet_types", :force => true do |t|
t.integer "color_id", :limit => 1, :null => false
t.integer "species_id", :limit => 1, :null => false
t.datetime "created_at", :null => false
t.integer "body_id", :limit => 2, :null => false
t.string "image_hash", :limit => 8
end
add_index "pet_types", ["species_id", "color_id"], :name => "pet_types_species_color", :unique => true
create_table "pets", :force => true do |t|
t.string "name", :limit => 20, :null => false
t.integer "pet_type_id", :limit => 3, :null => false
end
add_index "pets", ["name"], :name => "pets_name", :unique => true
add_index "pets", ["pet_type_id"], :name => "pets_pet_type_id"
2011-05-20 16:19:14 -07:00
create_table "posts", :force => true do |t|
t.integer "topic_id"
t.integer "user_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
end
2010-07-10 09:42:18 -07:00
create_table "schema_info", :id => false, :force => true do |t|
t.integer "version", :default => 0, :null => false
end
create_table "swf_assets", :id => false, :force => true do |t|
2011-05-20 16:19:14 -07:00
t.string "type", :limit => 7, :null => false
t.integer "id", :limit => 3, :null => false
t.text "url", :limit => 16777215, :null => false
t.integer "zone_id", :limit => 1, :null => false
t.text "zones_restrict", :null => false
t.datetime "created_at", :null => false
t.integer "body_id", :limit => 2, :null => false
t.boolean "has_image", :default => false, :null => false
t.boolean "image_requested", :default => false, :null => false
end
add_index "swf_assets", ["body_id"], :name => "swf_assets_body_id_and_object_id"
add_index "swf_assets", ["type", "id"], :name => "swf_assets_type_and_id"
2010-07-10 09:42:18 -07:00
add_index "swf_assets", ["zone_id"], :name => "idx_swf_assets_zone_id"
2011-05-20 16:19:14 -07:00
create_table "topics", :force => true do |t|
t.string "title"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "forum_id"
t.integer "original_post_id"
end
create_table "users", :force => true do |t|
t.string "name", :limit => 20, :null => false
t.integer "auth_server_id", :limit => 1, :null => false
t.integer "remote_id", :null => false
t.integer "points", :default => 0, :null => false
t.boolean "beta", :default => false, :null => false
t.string "remember_token"
t.datetime "remember_created_at"
2011-05-20 16:19:14 -07:00
t.boolean "forum_admin", :default => false, :null => false
t.boolean "forum_moderator"
2011-06-27 12:33:34 -07:00
t.boolean "image_mode_tester", :default => false, :null => false
end
create_table "zones", :force => true do |t|
t.integer "depth", :limit => 1, :null => false
t.integer "type_id", :limit => 1, :null => false
t.string "type", :limit => 40, :null => false
t.string "label", :limit => 40, :null => false
end
end