add geo info and do refractor on workers
This commit is contained in:
35
db/schema.rb
generated
35
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_04_29_132126) do
|
||||
ActiveRecord::Schema.define(version: 2021_04_29_161239) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -127,6 +127,8 @@ ActiveRecord::Schema.define(version: 2021_04_29_132126) do
|
||||
t.string "href"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.bigint "last_position_id"
|
||||
t.bigint "bind_position_id"
|
||||
t.index ["character_id"], name: "index_wow_characters_on_character_id", unique: true
|
||||
t.index ["user_id"], name: "index_wow_characters_on_user_id"
|
||||
t.index ["wow_character_title_id"], name: "index_wow_characters_on_wow_character_title_id"
|
||||
@@ -147,6 +149,35 @@ ActiveRecord::Schema.define(version: 2021_04_29_132126) do
|
||||
t.index ["class_id"], name: "index_wow_classes_on_class_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_geo_maps", force: :cascade do |t|
|
||||
t.integer "map_id"
|
||||
t.jsonb "name"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["map_id"], name: "index_wow_geo_maps_on_map_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_geo_positions", force: :cascade do |t|
|
||||
t.float "x"
|
||||
t.float "y"
|
||||
t.float "z"
|
||||
t.float "facing"
|
||||
t.bigint "wow_geo_zone_id"
|
||||
t.bigint "wow_geo_map_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["wow_geo_map_id"], name: "index_wow_geo_positions_on_wow_geo_map_id"
|
||||
t.index ["wow_geo_zone_id"], name: "index_wow_geo_positions_on_wow_geo_zone_id"
|
||||
end
|
||||
|
||||
create_table "wow_geo_zones", force: :cascade do |t|
|
||||
t.integer "zone_id"
|
||||
t.jsonb "name"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["zone_id"], name: "index_wow_geo_zones_on_zone_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_mounts", force: :cascade do |t|
|
||||
t.jsonb "name"
|
||||
t.string "source_type"
|
||||
@@ -232,4 +263,6 @@ ActiveRecord::Schema.define(version: 2021_04_29_132126) do
|
||||
t.index ["realm_id"], name: "index_wow_realms_on_realm_id", unique: true
|
||||
end
|
||||
|
||||
add_foreign_key "wow_characters", "wow_geo_positions", column: "bind_position_id"
|
||||
add_foreign_key "wow_characters", "wow_geo_positions", column: "last_position_id"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user