add management of items !

This commit is contained in:
2021-05-29 00:10:32 +02:00
parent f8c539bb87
commit f4f3862c74
24 changed files with 373 additions and 7 deletions

61
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_05_28_125553) do
ActiveRecord::Schema.define(version: 2021_05_28_214602) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -194,6 +194,65 @@ ActiveRecord::Schema.define(version: 2021_05_28_125553) do
t.index ["wow_realm_id"], name: "index_wow_guilds_on_wow_realm_id"
end
create_table "wow_item_classes", force: :cascade do |t|
t.integer "item_class_id"
t.jsonb "name"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["item_class_id"], name: "index_wow_item_classes_on_item_class_id", unique: true
end
create_table "wow_item_inventory_types", force: :cascade do |t|
t.jsonb "name"
t.string "item_inventory_type"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["item_inventory_type"], name: "index_wow_item_inventory_types_on_item_inventory_type", unique: true
end
create_table "wow_item_qualities", force: :cascade do |t|
t.jsonb "name"
t.string "item_quality_type"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["item_quality_type"], name: "index_wow_item_qualities_on_item_quality_type", unique: true
end
create_table "wow_item_sub_classes", force: :cascade do |t|
t.integer "item_sub_class_id"
t.jsonb "display_name"
t.jsonb "verbose_name"
t.bigint "wow_item_class_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["item_sub_class_id"], name: "index_wow_item_sub_classes_on_item_sub_class_id"
t.index ["wow_item_class_id"], name: "index_wow_item_sub_classes_on_wow_item_class_id"
end
create_table "wow_items", force: :cascade do |t|
t.jsonb "name"
t.integer "level"
t.integer "required_level"
t.integer "sell_price"
t.boolean "is_equippable"
t.integer "media_id"
t.integer "max_count"
t.integer "purchase_price"
t.integer "item_id"
t.boolean "is_stackable"
t.bigint "wow_item_class_id"
t.bigint "wow_item_sub_class_id"
t.bigint "wow_item_quality_id"
t.bigint "wow_item_inventory_type_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["item_id"], name: "index_wow_items_on_item_id", unique: true
t.index ["wow_item_class_id"], name: "index_wow_items_on_wow_item_class_id"
t.index ["wow_item_inventory_type_id"], name: "index_wow_items_on_wow_item_inventory_type_id"
t.index ["wow_item_quality_id"], name: "index_wow_items_on_wow_item_quality_id"
t.index ["wow_item_sub_class_id"], name: "index_wow_items_on_wow_item_sub_class_id"
end
create_table "wow_mounts", force: :cascade do |t|
t.jsonb "name"
t.string "source_type"