88 lines
3.2 KiB
Ruby
88 lines
3.2 KiB
Ruby
# 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.
|
|
#
|
|
# This file is the source Rails uses to define your schema when running `rails
|
|
# db:schema:load`. When creating a new database, `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: 2020_09_13_092045) do
|
|
|
|
# These are extensions that must be enabled in order to support this database
|
|
enable_extension "pgcrypto"
|
|
enable_extension "plpgsql"
|
|
enable_extension "uuid-ossp"
|
|
|
|
create_table "compositions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
|
t.uuid "user_id"
|
|
t.string "hash"
|
|
t.string "characters", default: [], array: true
|
|
t.string "weapons", default: [], array: true
|
|
t.string "summons", default: [], array: true
|
|
t.datetime "created_at", precision: 6, null: false
|
|
t.datetime "updated_at", precision: 6, null: false
|
|
t.index ["user_id"], name: "index_compositions_on_user_id"
|
|
end
|
|
|
|
create_table "grid_weapons", force: :cascade do |t|
|
|
t.uuid "composition_id"
|
|
t.uuid "weapon_id"
|
|
t.uuid "weapon_key1_id"
|
|
t.uuid "weapon_key2_id"
|
|
t.integer "uncap_level"
|
|
t.integer "position"
|
|
t.datetime "created_at", precision: 6, null: false
|
|
t.datetime "updated_at", precision: 6, null: false
|
|
t.index ["composition_id"], name: "index_grid_weapons_on_composition_id"
|
|
t.index ["weapon_id"], name: "index_grid_weapons_on_weapon_id"
|
|
t.index ["weapon_key1_id"], name: "index_grid_weapons_on_weapon_key1_id"
|
|
t.index ["weapon_key2_id"], name: "index_grid_weapons_on_weapon_key2_id"
|
|
end
|
|
|
|
create_table "users", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
|
t.string "email"
|
|
t.string "password"
|
|
t.string "username"
|
|
t.integer "granblue_id"
|
|
t.datetime "created_at", precision: 6, null: false
|
|
t.datetime "updated_at", precision: 6, null: false
|
|
end
|
|
|
|
create_table "weapon_keys", force: :cascade do |t|
|
|
t.string "name_en"
|
|
t.string "name_jp"
|
|
t.integer "series"
|
|
t.integer "type"
|
|
t.datetime "created_at", precision: 6, null: false
|
|
t.datetime "updated_at", precision: 6, null: false
|
|
end
|
|
|
|
create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
|
t.string "name_en"
|
|
t.string "name_jp"
|
|
t.integer "granblue_id"
|
|
t.integer "rarity"
|
|
t.integer "element"
|
|
t.integer "proficiency"
|
|
t.string "series"
|
|
t.boolean "flb"
|
|
t.boolean "ulb"
|
|
t.integer "max_level"
|
|
t.integer "max_skill_level"
|
|
t.integer "min_hp"
|
|
t.integer "max_hp"
|
|
t.integer "max_hp_flb"
|
|
t.integer "max_hp_ulb"
|
|
t.integer "min_atk"
|
|
t.integer "max_atk"
|
|
t.integer "max_atk_flb"
|
|
t.integer "max_atk_ulb"
|
|
t.datetime "created_at", precision: 6, null: false
|
|
t.datetime "updated_at", precision: 6, null: false
|
|
end
|
|
|
|
end
|