1
0
Fork 0
dokkan-data-rails/db/schema.rb

173 lines
6 KiB
Ruby
Raw Normal View History

2015-09-29 21:21:05 -04: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 that you check this file into your version control system.
2015-10-14 11:24:15 -04:00
ActiveRecord::Schema.define(version: 20151014155435) do
2015-10-06 13:55:12 -04:00
create_table "awaken_types", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-10-20 16:43:19 -04:00
create_table "cards", force: :cascade do |t|
t.integer "character_id"
t.integer "rarity_id"
t.integer "type_id"
t.integer "leader_skill_id"
t.integer "passive_skill_id"
t.integer "super_attack_id"
t.integer "dokkan_id"
t.string "title"
t.string "gameid", default: "0000000"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "awaken_type_id"
t.boolean "verified", default: false
end
add_index "cards", ["awaken_type_id"], name: "index_cards_on_awaken_type_id"
add_index "cards", ["character_id"], name: "index_cards_on_character_id"
add_index "cards", ["dokkan_id"], name: "index_cards_on_dokkan_id"
add_index "cards", ["leader_skill_id"], name: "index_cards_on_leader_skill_id"
add_index "cards", ["passive_skill_id"], name: "index_cards_on_passive_skill_id"
add_index "cards", ["rarity_id"], name: "index_cards_on_rarity_id"
add_index "cards", ["super_attack_id"], name: "index_cards_on_super_attack_id"
add_index "cards", ["type_id"], name: "index_cards_on_type_id"
2015-10-06 13:55:12 -04:00
create_table "cards_links", id: false, force: :cascade do |t|
t.integer "card_id"
t.integer "link_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "cards_links", ["card_id"], name: "index_cards_links_on_card_id"
add_index "cards_links", ["link_id"], name: "index_cards_links_on_link_id"
create_table "characters", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-10-14 11:24:15 -04:00
create_table "evidences", force: :cascade do |t|
t.string "screenshot_file_name"
t.string "screenshot_content_type"
t.integer "screenshot_file_size"
t.datetime "screenshot_updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "card_id"
end
add_index "evidences", ["card_id"], name: "index_evidences_on_card_id"
2015-10-06 13:55:12 -04:00
create_table "leader_skills", force: :cascade do |t|
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-10-01 11:56:40 -04:00
create_table "links", force: :cascade do |t|
t.string "name"
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-09-29 21:21:05 -04:00
2015-10-06 13:55:12 -04:00
create_table "medals", force: :cascade do |t|
t.string "name"
t.text "location"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "passive_skills", force: :cascade do |t|
t.string "name"
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "rarities", force: :cascade do |t|
t.string "name"
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-10-08 15:18:21 -04:00
create_table "roles", force: :cascade do |t|
t.string "name"
t.integer "resource_id"
t.string "resource_type"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "roles", ["name", "resource_type", "resource_id"], name: "index_roles_on_name_and_resource_type_and_resource_id"
add_index "roles", ["name"], name: "index_roles_on_name"
2015-10-06 13:55:12 -04:00
create_table "super_attacks", force: :cascade do |t|
t.string "name"
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "types", force: :cascade do |t|
t.string "name"
t.string "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-09-29 21:21:05 -04:00
create_table "users", force: :cascade do |t|
t.string "provider"
t.string "uid"
t.string "nickname"
t.string "email"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
2015-10-08 15:18:21 -04:00
create_table "users_roles", id: false, force: :cascade do |t|
t.integer "user_id"
t.integer "role_id"
end
add_index "users_roles", ["user_id", "role_id"], name: "index_users_roles_on_user_id_and_role_id"
create_table "version_associations", force: :cascade do |t|
t.integer "version_id"
t.string "foreign_key_name", null: false
t.integer "foreign_key_id"
end
add_index "version_associations", ["foreign_key_name", "foreign_key_id"], name: "index_version_associations_on_foreign_key"
add_index "version_associations", ["version_id"], name: "index_version_associations_on_version_id"
create_table "versions", force: :cascade do |t|
t.string "item_type", null: false
t.integer "item_id", null: false
t.string "event", null: false
t.string "whodunnit"
t.text "object", limit: 1073741823
t.datetime "created_at"
t.integer "transaction_id"
end
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
add_index "versions", ["transaction_id"], name: "index_versions_on_transaction_id"
2015-09-29 21:21:05 -04:00
end