From 230ab3079fd4e16ebaa593f6cc5fdbcbad3c2321 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 12:32:44 -0500 Subject: Installed LINGO scoreboard --- db/schema.rb | 208 ++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 119 insertions(+), 89 deletions(-) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index 0ae9b11..0b14b24 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -2,17 +2,16 @@ # 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). +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_03_13_123149) do - - create_table "audits", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| +ActiveRecord::Schema[7.0].define(version: 2022_12_10_170549) do + create_table "audits", force: :cascade do |t| t.integer "auditable_id" t.string "auditable_type" t.integer "associated_id" @@ -26,7 +25,7 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.string "comment" t.string "remote_address" t.string "request_uuid" - t.datetime "created_at" + t.datetime "created_at", precision: nil t.index ["associated_type", "associated_id"], name: "associated_index" t.index ["auditable_type", "auditable_id", "version"], name: "auditable_index" t.index ["created_at"], name: "index_audits_on_created_at" @@ -34,17 +33,17 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.index ["user_id", "user_type"], name: "user_index" end - create_table "blogs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "blogs", force: :cascade do |t| t.string "title" t.text "body" t.string "slug" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.boolean "published", default: false, null: false - t.datetime "published_at" + t.datetime "published_at", precision: nil end - create_table "ckeditor_assets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "ckeditor_assets", force: :cascade do |t| t.string "data_file_name", null: false t.string "data_content_type" t.integer "data_file_size" @@ -52,67 +51,76 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.string "type", limit: 30 t.integer "width" t.integer "height" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["type"], name: "index_ckeditor_assets_on_type" end - create_table "games", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "games", force: :cascade do |t| t.string "title" t.string "status" t.text "progress" t.text "description" t.integer "score" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.date "started_on" t.date "finished_on" end - create_table "links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| - t.string "title", null: false - t.string "url", null: false + create_table "lingo_scores", force: :cascade do |t| + t.integer "user_id" + t.string "username" + t.string "avatar_url" + t.integer "score" t.datetime "created_at", null: false t.datetime "updated_at", null: false end - create_table "pokeviewer_abilities", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.string "name", null: false + create_table "links", force: :cascade do |t| + t.string "title", null: false + t.string "url", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false + end + + create_table "pokeviewer_abilities", force: :cascade do |t| + t.string "name", limit: 191, null: false t.string "description", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["name"], name: "index_pokeviewer_abilities_on_name", unique: true end - create_table "pokeviewer_gift_ribbons", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "pokeviewer_gift_ribbons", force: :cascade do |t| t.string "description", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false end - create_table "pokeviewer_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "pokeviewer_items", force: :cascade do |t| t.string "name", null: false t.boolean "tm", default: false, null: false t.integer "move_id" t.string "rs_description" t.string "frlg_description" t.string "emerald_description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["move_id"], name: "index_pokeviewer_items_on_move_id" end - create_table "pokeviewer_locations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "pokeviewer_locations", force: :cascade do |t| t.string "name", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false end - create_table "pokeviewer_moves", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.string "name", null: false + create_table "pokeviewer_moves", force: :cascade do |t| + t.string "name", limit: 191, null: false t.integer "pp", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "move_type", null: false t.string "rs_description", null: false t.string "frlg_description", null: false @@ -120,21 +128,21 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true end - create_table "pokeviewer_pokedex_entries", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.bigint "trainer_id" - t.bigint "species_id" + create_table "pokeviewer_pokedex_entries", force: :cascade do |t| + t.integer "trainer_id" + t.integer "species_id" t.boolean "caught", default: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["species_id"], name: "index_pokeviewer_pokedex_entries_on_species_id" t.index ["trainer_id", "species_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id_and_species_id", unique: true t.index ["trainer_id"], name: "index_pokeviewer_pokedex_entries_on_trainer_id" end - create_table "pokeviewer_pokemon", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.string "uuid", null: false + create_table "pokeviewer_pokemon", force: :cascade do |t| + t.string "uuid", limit: 191, null: false t.integer "trainer_id" - t.string "key" + t.string "key", limit: 191 t.string "ot_name", null: false t.integer "ot_number", null: false t.string "met_type", null: false @@ -144,21 +152,22 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.string "gender", null: false t.boolean "second_ability", null: false t.string "unown_letter", limit: 1 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "ot_gender", default: "", null: false t.integer "box" t.integer "slot" t.integer "location_id" t.string "pokeball", null: false - t.bigint "current_id" + t.integer "current_id" t.index ["current_id"], name: "index_pokeviewer_pokemon_on_current_id" t.index ["key"], name: "index_pokeviewer_pokemon_on_key", unique: true + t.index ["location_id"], name: "index_pokeviewer_pokemon_on_location_id" t.index ["trainer_id"], name: "index_pokeviewer_pokemon_on_trainer_id" t.index ["uuid"], name: "index_pokeviewer_pokemon_on_uuid", unique: true end - create_table "pokeviewer_revisions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "pokeviewer_revisions", force: :cascade do |t| t.integer "pokemon_id", null: false t.integer "sequential_id", null: false t.string "nickname", null: false @@ -176,7 +185,6 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.integer "smartness", null: false t.integer "toughness", null: false t.integer "sheen", null: false - t.integer "item_id" t.integer "move_1_id", null: false t.integer "move_2_id" t.integer "move_3_id" @@ -185,8 +193,8 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.integer "move_2_pp_bonuses", default: 0, null: false t.integer "move_3_pp_bonuses", default: 0, null: false t.integer "move_4_pp_bonuses", default: 0, null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.integer "cool_ribbons", default: 0, null: false t.integer "beauty_ribbons", default: 0, null: false t.integer "cute_ribbons", default: 0, null: false @@ -204,7 +212,9 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.boolean "national_ribbon", default: false t.boolean "earth_ribbon", default: false t.boolean "world_ribbon", default: false - t.bigint "species_id", null: false + t.integer "item_id" + t.integer "species_id", null: false + t.index ["item_id"], name: "index_pokeviewer_revisions_on_item_id" t.index ["move_1_id"], name: "index_pokeviewer_revisions_on_move_1_id" t.index ["move_2_id"], name: "index_pokeviewer_revisions_on_move_2_id" t.index ["move_3_id"], name: "index_pokeviewer_revisions_on_move_3_id" @@ -214,23 +224,25 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.index ["species_id"], name: "index_pokeviewer_revisions_on_species_id" end - create_table "pokeviewer_species", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.string "name", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + create_table "pokeviewer_species", force: :cascade do |t| + t.string "name", limit: 191, null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "type_1", null: false t.string "type_2" t.integer "ability_1_id", null: false t.integer "ability_2_id" + t.index ["ability_1_id"], name: "index_pokeviewer_species_on_ability_1_id" + t.index ["ability_2_id"], name: "index_pokeviewer_species_on_ability_2_id" t.index ["name"], name: "index_pokeviewer_species_on_name", unique: true end - create_table "pokeviewer_trainers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "pokeviewer_trainers", force: :cascade do |t| t.string "game", null: false - t.string "name", null: false + t.string "name", limit: 191, null: false t.integer "number", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.integer "marine_ribbon_id" t.integer "land_ribbon_id" t.integer "sky_ribbon_id" @@ -262,31 +274,31 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.index ["world_ribbon_id"], name: "index_pokeviewer_trainers_on_world_ribbon_id" end - create_table "records", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| + create_table "records", force: :cascade do |t| t.text "description" - t.string "recordable_type" + t.string "recordable_type", limit: 191 t.integer "recordable_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["recordable_type", "recordable_id"], name: "index_records_on_recordable_type_and_recordable_id" end - create_table "streams", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "streams", force: :cascade do |t| t.string "title" t.text "body" t.string "slug" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false end - create_table "taggings", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "taggings", force: :cascade do |t| t.integer "tag_id" t.string "taggable_type" t.integer "taggable_id" t.string "tagger_type" t.integer "tagger_id" t.string "context", limit: 128 - t.datetime "created_at" + t.datetime "created_at", precision: nil t.index ["context"], name: "index_taggings_on_context" t.index ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true t.index ["tag_id"], name: "index_taggings_on_tag_id" @@ -298,44 +310,62 @@ ActiveRecord::Schema.define(version: 2019_03_13_123149) do t.index ["tagger_id"], name: "index_taggings_on_tagger_id" end - create_table "tags", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| - t.string "name", limit: 255, collation: "utf8_bin" + create_table "tags", force: :cascade do |t| + t.string "name" t.integer "taggings_count", default: 0 t.index ["name"], name: "index_tags_on_name", unique: true end - create_table "updates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| - t.bigint "stream_id" + create_table "updates", force: :cascade do |t| + t.integer "stream_id" t.text "body" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["stream_id"], name: "index_updates_on_stream_id" end - create_table "users", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin", force: :cascade do |t| - t.string "login", default: "", null: false - t.string "email", default: "", null: false + create_table "users", force: :cascade do |t| + t.string "login", limit: 191, default: "", null: false + t.string "email", limit: 191, default: "", null: false t.string "encrypted_password", default: "", null: false - t.string "reset_password_token" - t.datetime "reset_password_sent_at" - t.datetime "remember_created_at" + t.string "reset_password_token", limit: 191 + t.datetime "reset_password_sent_at", precision: nil + t.datetime "remember_created_at", precision: nil t.integer "sign_in_count", default: 0, null: false - t.datetime "current_sign_in_at" - t.datetime "last_sign_in_at" + t.datetime "current_sign_in_at", precision: nil + t.datetime "last_sign_in_at", precision: nil t.string "current_sign_in_ip" t.string "last_sign_in_ip" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "pokeviewer_token" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false + t.string "pokeviewer_token", limit: 191 t.index ["email"], name: "index_users_on_email", unique: true t.index ["login"], name: "index_users_on_login", unique: true t.index ["pokeviewer_token"], name: "index_users_on_pokeviewer_token", unique: true t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end + add_foreign_key "pokeviewer_items", "pokeviewer_moves", column: "move_id" add_foreign_key "pokeviewer_pokedex_entries", "pokeviewer_species", column: "species_id" add_foreign_key "pokeviewer_pokedex_entries", "pokeviewer_trainers", column: "trainer_id" + add_foreign_key "pokeviewer_pokemon", "pokeviewer_locations", column: "location_id" add_foreign_key "pokeviewer_pokemon", "pokeviewer_revisions", column: "current_id" + add_foreign_key "pokeviewer_pokemon", "pokeviewer_trainers", column: "trainer_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_items", column: "item_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_moves", column: "move_1_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_moves", column: "move_2_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_moves", column: "move_3_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_moves", column: "move_4_id" + add_foreign_key "pokeviewer_revisions", "pokeviewer_pokemon", column: "pokemon_id" add_foreign_key "pokeviewer_revisions", "pokeviewer_species", column: "species_id" + add_foreign_key "pokeviewer_species", "pokeviewer_abilities", column: "ability_1_id" + add_foreign_key "pokeviewer_species", "pokeviewer_abilities", column: "ability_2_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "country_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "earth_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "land_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "marine_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "national_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "sky_ribbon_id" + add_foreign_key "pokeviewer_trainers", "pokeviewer_gift_ribbons", column: "world_ribbon_id" add_foreign_key "updates", "streams" end -- cgit 1.4.1