eve_app 0.1.22 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +9 -0
- data/.ruby-version +1 -0
- data/.travis.yml +15 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +167 -0
- data/app/models/eve_app/region.rb +4 -0
- data/app/models/eve_app/solar_system.rb +12 -0
- data/app/models/eve_app/solar_system_jump.rb +15 -0
- data/bin/rails +14 -0
- data/build.sh +8 -0
- data/eve_app.gemspec +30 -0
- data/lib/eve_app/sde/normalizer.rb +8 -5
- data/lib/eve_app/version.rb +1 -1
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +35 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +20 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +47 -0
- data/test/dummy/config/environments/production.rb +83 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cors.rb +16 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config/secrets.yml +32 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/schema.rb +490 -0
- data/test/dummy/log/.keep +0 -0
- data/test/eve_app/item_parser_test.rb +48 -0
- data/test/fixtures/types.yml +48 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/support/data/eft.txt +16 -0
- data/test/support/data/hangar.txt +10 -0
- data/test/test_helper.rb +18 -0
- metadata +123 -4
@@ -0,0 +1,33 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
11
|
+
#
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# If you are preloading your application and using Active Record, it's
|
36
|
+
# recommended that you close any connections to the database before workers
|
37
|
+
# are forked to prevent connection leakage.
|
38
|
+
#
|
39
|
+
# before_fork do
|
40
|
+
# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
|
41
|
+
# end
|
42
|
+
|
43
|
+
# The code in the `on_worker_boot` will be called if you are using
|
44
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
45
|
+
# process is booted, this block will be run. If you are using the `preload_app!`
|
46
|
+
# option, you will want to use this block to reconnect to any threads
|
47
|
+
# or connections that may have been created at application boot, as Ruby
|
48
|
+
# cannot share connections between processes.
|
49
|
+
#
|
50
|
+
# on_worker_boot do
|
51
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
|
55
|
+
# Allow puma to be restarted by `rails restart` command.
|
56
|
+
plugin :tmp_restart
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
# Shared secrets are available across all environments.
|
14
|
+
|
15
|
+
# shared:
|
16
|
+
# api_key: a1B2c3D4e5F6
|
17
|
+
|
18
|
+
# Environmental secrets are only available for that specific environment.
|
19
|
+
|
20
|
+
development:
|
21
|
+
secret_key_base: e55273b507e71bb7a822f9cee4cd117f8ba3f34947d5ab608ae0802faf9b0741b4799a076adfe48de1c4cf9fb0014a813d2bee080fdc3de306b92db310f46690
|
22
|
+
|
23
|
+
test:
|
24
|
+
secret_key_base: 7809b350b32ab8b3f381c3376e6e24b4673761184912b0bc90d3cc76efb88f73c5334a33f9b88bc864f5ac507aba2a807cda7296cf527df1ec15d5e8ba7228a2
|
25
|
+
|
26
|
+
# Do not keep production secrets in the unencrypted secrets file.
|
27
|
+
# Instead, either read values from the environment.
|
28
|
+
# Or, use `bin/rails secrets:setup` to configure encrypted secrets
|
29
|
+
# and move the `production:` environment over there.
|
30
|
+
|
31
|
+
production:
|
32
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,490 @@
|
|
1
|
+
ActiveRecord::Schema.define(version: 20180504102441) do
|
2
|
+
create_table "eve_activities", id: :serial, force: :cascade do |t|
|
3
|
+
t.integer "type_id", null: false
|
4
|
+
t.integer "activityID", null: false
|
5
|
+
t.integer "time"
|
6
|
+
t.index ["type_id"], name: "idx_activities_type_id"
|
7
|
+
end
|
8
|
+
|
9
|
+
create_table "eve_activity_materials", id: :serial, force: :cascade do |t|
|
10
|
+
t.integer "type_id"
|
11
|
+
t.integer "activity_id"
|
12
|
+
t.integer "material_type_id"
|
13
|
+
t.integer "quantity"
|
14
|
+
t.index ["activity_id"], name: "idx_activity_materials_activity_id"
|
15
|
+
t.index ["material_type_id"], name: "idx_activity_materials_material_type_id"
|
16
|
+
t.index ["type_id"], name: "idx_activity_materials_type_id"
|
17
|
+
end
|
18
|
+
|
19
|
+
create_table "eve_activity_probabilities", id: false, force: :cascade do |t|
|
20
|
+
t.integer "type_id"
|
21
|
+
t.integer "activity_id"
|
22
|
+
t.integer "product_type_id"
|
23
|
+
t.decimal "probability", precision: 3, scale: 2
|
24
|
+
t.index ["activity_id"], name: "idx_activity_probabilities_activity_id"
|
25
|
+
t.index ["product_type_id"], name: "idx_activity_probabilities_product_type_id"
|
26
|
+
t.index ["type_id"], name: "idx_activity_probabilities_type_id"
|
27
|
+
end
|
28
|
+
|
29
|
+
create_table "eve_activity_products", id: false, force: :cascade do |t|
|
30
|
+
t.integer "type_id"
|
31
|
+
t.integer "activity_id"
|
32
|
+
t.integer "product_type_id"
|
33
|
+
t.integer "quantity"
|
34
|
+
t.index ["activity_id"], name: "idx_activity_products_activity_id"
|
35
|
+
t.index ["product_type_id"], name: "idx_activity_products_product_type_id"
|
36
|
+
t.index ["type_id"], name: "idx_activity_products_type_id"
|
37
|
+
end
|
38
|
+
|
39
|
+
create_table "eve_activity_skills", id: false, force: :cascade do |t|
|
40
|
+
t.integer "type_id"
|
41
|
+
t.integer "activity_id"
|
42
|
+
t.integer "skill_id"
|
43
|
+
t.integer "level"
|
44
|
+
t.index ["activity_id"], name: "idx_activity_skills_activity_id"
|
45
|
+
t.index ["skill_id"], name: "idx_activity_skills_skill_id"
|
46
|
+
t.index ["type_id"], name: "idx_activity_skills_type_id"
|
47
|
+
end
|
48
|
+
|
49
|
+
create_table "eve_assembly_line_type_detail_per_categories", id: false, force: :cascade do |t|
|
50
|
+
t.integer "assembly_line_type_id", null: false
|
51
|
+
t.integer "category_id", null: false
|
52
|
+
t.float "time_multiplier"
|
53
|
+
t.float "material_multiplier"
|
54
|
+
t.float "cost_multiplier"
|
55
|
+
t.index ["assembly_line_type_id"], name: "idx_assembly_line_type_detail_per_categories_assembly_line_"
|
56
|
+
t.index ["category_id"], name: "idx_assembly_line_type_detail_per_categories_category_id"
|
57
|
+
end
|
58
|
+
|
59
|
+
create_table "eve_assembly_line_type_detail_per_groups", id: false, force: :cascade do |t|
|
60
|
+
t.integer "assembly_line_type_id", null: false
|
61
|
+
t.integer "group_id", null: false
|
62
|
+
t.float "time_multiplier"
|
63
|
+
t.float "material_multiplier"
|
64
|
+
t.float "cost_multiplier"
|
65
|
+
t.index ["assembly_line_type_id"], name: "idx_assembly_line_type_detail_per_groups_assembly_line_type"
|
66
|
+
t.index ["group_id"], name: "idx_assembly_line_type_detail_per_groups_group_id"
|
67
|
+
end
|
68
|
+
|
69
|
+
create_table "eve_assembly_line_types", id: :integer, default: nil, force: :cascade do |t|
|
70
|
+
t.string "name", limit: 100
|
71
|
+
t.string "description", limit: 1000
|
72
|
+
t.float "base_time_multiplier"
|
73
|
+
t.float "base_material_multiplier"
|
74
|
+
t.float "base_cost_multiplier"
|
75
|
+
t.float "volume"
|
76
|
+
t.integer "activity_id"
|
77
|
+
t.float "min_cost_per_hour"
|
78
|
+
t.index ["activity_id"], name: "idx_assembly_line_types_activity_id"
|
79
|
+
t.index ["id"], name: "idx_assembly_line_types_id"
|
80
|
+
t.index ["name"], name: "idx_assembly_line_types_name"
|
81
|
+
end
|
82
|
+
|
83
|
+
create_table "eve_attribute_categories", id: false, force: :cascade do |t|
|
84
|
+
t.integer "category_id", null: false
|
85
|
+
t.string "category_name", limit: 50
|
86
|
+
t.string "category_description", limit: 200
|
87
|
+
t.index ["category_id"], name: "idx_attribute_categories_category_id"
|
88
|
+
end
|
89
|
+
|
90
|
+
create_table "eve_attribute_types", id: false, force: :cascade do |t|
|
91
|
+
t.integer "attribute_id", null: false
|
92
|
+
t.string "attribute_name", limit: 100
|
93
|
+
t.string "description", limit: 1000
|
94
|
+
t.integer "icon_id"
|
95
|
+
t.float "default_value"
|
96
|
+
t.boolean "published"
|
97
|
+
t.string "display_name", limit: 150
|
98
|
+
t.integer "unit_id"
|
99
|
+
t.boolean "stackable"
|
100
|
+
t.boolean "high_is_good"
|
101
|
+
t.integer "category_id"
|
102
|
+
t.index ["attribute_id"], name: "idx_attribute_types_attribute_id"
|
103
|
+
t.index ["category_id"], name: "idx_attribute_types_category_id"
|
104
|
+
t.index ["icon_id"], name: "idx_attribute_types_icon_id"
|
105
|
+
t.index ["unit_id"], name: "idx_attribute_types_unit_id"
|
106
|
+
end
|
107
|
+
|
108
|
+
create_table "eve_blueprints", id: false, force: :cascade do |t|
|
109
|
+
t.integer "type_id", null: false
|
110
|
+
t.integer "max_production_limit"
|
111
|
+
t.index ["type_id"], name: "idx_blueprints_type_id"
|
112
|
+
end
|
113
|
+
|
114
|
+
create_table "eve_categories", id: :integer, default: nil, force: :cascade do |t|
|
115
|
+
t.string "name", limit: 100
|
116
|
+
t.integer "icon_id"
|
117
|
+
t.boolean "published"
|
118
|
+
t.index ["icon_id"], name: "idx_categories_icon_id"
|
119
|
+
t.index ["id"], name: "idx_categories_id"
|
120
|
+
t.index ["name"], name: "idx_categories_name"
|
121
|
+
end
|
122
|
+
|
123
|
+
create_table "eve_constellations", id: :integer, default: nil, force: :cascade do |t|
|
124
|
+
t.integer "region_id"
|
125
|
+
t.string "name", limit: 100
|
126
|
+
t.float "x"
|
127
|
+
t.float "y"
|
128
|
+
t.float "z"
|
129
|
+
t.float "x_min"
|
130
|
+
t.float "x_max"
|
131
|
+
t.float "y_min"
|
132
|
+
t.float "y_max"
|
133
|
+
t.float "z_min"
|
134
|
+
t.float "z_max"
|
135
|
+
t.integer "faction_id"
|
136
|
+
t.float "radius"
|
137
|
+
t.index ["faction_id"], name: "idx_constellations_faction_id"
|
138
|
+
t.index ["id"], name: "idx_constellations_id"
|
139
|
+
t.index ["name"], name: "idx_constellations_name"
|
140
|
+
t.index ["region_id"], name: "idx_constellations_region_id"
|
141
|
+
end
|
142
|
+
|
143
|
+
create_table "eve_denormalizes", id: false, force: :cascade do |t|
|
144
|
+
t.integer "item_id", null: false
|
145
|
+
t.integer "type_id"
|
146
|
+
t.integer "group_id"
|
147
|
+
t.integer "solar_system_id"
|
148
|
+
t.integer "constellation_id"
|
149
|
+
t.integer "region_id"
|
150
|
+
t.integer "orbit_id"
|
151
|
+
t.float "x"
|
152
|
+
t.float "y"
|
153
|
+
t.float "z"
|
154
|
+
t.float "radius"
|
155
|
+
t.string "item_name", limit: 100
|
156
|
+
t.float "security"
|
157
|
+
t.integer "celestial_index"
|
158
|
+
t.integer "orbit_index"
|
159
|
+
t.index ["constellation_id"], name: "idx_denormalizes_constellation_id"
|
160
|
+
t.index ["group_id"], name: "idx_denormalizes_group_id"
|
161
|
+
t.index ["item_id"], name: "idx_denormalizes_item_id"
|
162
|
+
t.index ["orbit_id"], name: "idx_denormalizes_orbit_id"
|
163
|
+
t.index ["region_id"], name: "idx_denormalizes_region_id"
|
164
|
+
t.index ["solar_system_id"], name: "idx_denormalizes_solar_system_id"
|
165
|
+
t.index ["type_id"], name: "idx_denormalizes_type_id"
|
166
|
+
end
|
167
|
+
|
168
|
+
create_table "eve_effects", id: :integer, default: nil, force: :cascade do |t|
|
169
|
+
t.string "name", limit: 400
|
170
|
+
t.integer "category"
|
171
|
+
t.integer "pre_expression"
|
172
|
+
t.integer "post_expression"
|
173
|
+
t.string "description", limit: 1000
|
174
|
+
t.string "guid", limit: 60
|
175
|
+
t.integer "icon_id"
|
176
|
+
t.boolean "is_offensive"
|
177
|
+
t.boolean "is_assistance"
|
178
|
+
t.integer "duration_attribute_id"
|
179
|
+
t.integer "tracking_speed_attribute_id"
|
180
|
+
t.integer "discharge_attribute_id"
|
181
|
+
t.integer "range_attribute_id"
|
182
|
+
t.integer "falloff_attribute_id"
|
183
|
+
t.boolean "disallow_auto_repeat"
|
184
|
+
t.boolean "published"
|
185
|
+
t.string "display_name", limit: 100
|
186
|
+
t.boolean "is_warp_safe"
|
187
|
+
t.boolean "range_chance"
|
188
|
+
t.boolean "electronic_chance"
|
189
|
+
t.boolean "propulsion_chance"
|
190
|
+
t.integer "distribution"
|
191
|
+
t.string "sfx_name", limit: 20
|
192
|
+
t.integer "npc_usage_chance_attribute_id"
|
193
|
+
t.integer "npc_activation_chance_attribute_id"
|
194
|
+
t.integer "fitting_usage_chance_attribute_id"
|
195
|
+
t.text "modifier_info"
|
196
|
+
t.index ["discharge_attribute_id"], name: "idx_effects_discharge_attribute_id"
|
197
|
+
t.index ["duration_attribute_id"], name: "idx_effects_duration_attribute_id"
|
198
|
+
t.index ["falloff_attribute_id"], name: "idx_effects_falloff_attribute_id"
|
199
|
+
t.index ["fitting_usage_chance_attribute_id"], name: "idx_effects_fitting_usage_chance_attribute_id"
|
200
|
+
t.index ["guid"], name: "idx_effects_guid"
|
201
|
+
t.index ["icon_id"], name: "idx_effects_icon_id"
|
202
|
+
t.index ["id"], name: "idx_effects_id"
|
203
|
+
t.index ["name"], name: "idx_effects_name"
|
204
|
+
t.index ["npc_activation_chance_attribute_id"], name: "idx_effects_npc_activation_chance_attribute_id"
|
205
|
+
t.index ["npc_usage_chance_attribute_id"], name: "idx_effects_npc_usage_chance_attribute_id"
|
206
|
+
t.index ["range_attribute_id"], name: "idx_effects_range_attribute_id"
|
207
|
+
t.index ["tracking_speed_attribute_id"], name: "idx_effects_tracking_speed_attribute_id"
|
208
|
+
end
|
209
|
+
|
210
|
+
create_table "eve_expressions", id: :integer, default: nil, force: :cascade do |t|
|
211
|
+
t.integer "operand_id"
|
212
|
+
t.integer "arg1"
|
213
|
+
t.integer "arg2"
|
214
|
+
t.string "value", limit: 100
|
215
|
+
t.string "description", limit: 1000
|
216
|
+
t.string "name", limit: 500
|
217
|
+
t.integer "type_id"
|
218
|
+
t.integer "group_id"
|
219
|
+
t.integer "attribute_id"
|
220
|
+
t.index ["attribute_id"], name: "idx_expressions_attribute_id"
|
221
|
+
t.index ["group_id"], name: "idx_expressions_group_id"
|
222
|
+
t.index ["id"], name: "idx_expressions_id"
|
223
|
+
t.index ["name"], name: "idx_expressions_name"
|
224
|
+
t.index ["operand_id"], name: "idx_expressions_operand_id"
|
225
|
+
t.index ["type_id"], name: "idx_expressions_type_id"
|
226
|
+
end
|
227
|
+
|
228
|
+
create_table "eve_groups", id: :integer, default: nil, force: :cascade do |t|
|
229
|
+
t.integer "category_id"
|
230
|
+
t.string "name", limit: 100
|
231
|
+
t.integer "icon_id"
|
232
|
+
t.boolean "use_base_price"
|
233
|
+
t.boolean "anchored"
|
234
|
+
t.boolean "anchorable"
|
235
|
+
t.boolean "fittable_non_singleton"
|
236
|
+
t.boolean "published"
|
237
|
+
t.index ["category_id"], name: "idx_groups_category_id"
|
238
|
+
t.index ["icon_id"], name: "idx_groups_icon_id"
|
239
|
+
t.index ["id"], name: "idx_groups_id"
|
240
|
+
t.index ["name"], name: "idx_groups_name"
|
241
|
+
end
|
242
|
+
|
243
|
+
create_table "eve_jumps", id: false, force: :cascade do |t|
|
244
|
+
t.integer "stargate_id", null: false
|
245
|
+
t.integer "destination_id"
|
246
|
+
t.index ["destination_id"], name: "idx_jumps_destination_id"
|
247
|
+
t.index ["stargate_id"], name: "idx_jumps_stargate_id"
|
248
|
+
end
|
249
|
+
|
250
|
+
create_table "eve_location_scenes", id: false, force: :cascade do |t|
|
251
|
+
t.integer "location_id", null: false
|
252
|
+
t.integer "graphic_id"
|
253
|
+
t.index ["graphic_id"], name: "idx_location_scenes_graphic_id"
|
254
|
+
t.index ["location_id"], name: "idx_location_scenes_location_id"
|
255
|
+
end
|
256
|
+
|
257
|
+
create_table "eve_market_groups", id: :integer, default: nil, force: :cascade do |t|
|
258
|
+
t.integer "parent_group_id"
|
259
|
+
t.string "name", limit: 100
|
260
|
+
t.string "description", limit: 3000
|
261
|
+
t.integer "icon_id"
|
262
|
+
t.boolean "has_types"
|
263
|
+
t.integer "root_group_id"
|
264
|
+
t.index ["icon_id"], name: "idx_market_groups_icon_id"
|
265
|
+
t.index ["id"], name: "idx_market_groups_id"
|
266
|
+
t.index ["name"], name: "idx_market_groups_name"
|
267
|
+
t.index ["parent_group_id"], name: "idx_market_groups_parent_group_id"
|
268
|
+
t.index ["root_group_id"], name: "idx_market_groups_root_group_id"
|
269
|
+
end
|
270
|
+
|
271
|
+
create_table "eve_meta_groups", id: :integer, default: nil, force: :cascade do |t|
|
272
|
+
t.string "name", limit: 100
|
273
|
+
t.string "description", limit: 1000
|
274
|
+
t.integer "icon_id"
|
275
|
+
t.index ["icon_id"], name: "idx_meta_groups_icon_id"
|
276
|
+
t.index ["id"], name: "idx_meta_groups_id"
|
277
|
+
t.index ["name"], name: "idx_meta_groups_name"
|
278
|
+
end
|
279
|
+
|
280
|
+
create_table "eve_meta_types", id: false, force: :cascade do |t|
|
281
|
+
t.integer "type_id", null: false
|
282
|
+
t.integer "parent_type_id"
|
283
|
+
t.integer "meta_group_id"
|
284
|
+
t.index ["meta_group_id"], name: "idx_meta_types_meta_group_id"
|
285
|
+
t.index ["parent_type_id"], name: "idx_meta_types_parent_type_id"
|
286
|
+
t.index ["type_id"], name: "idx_meta_types_type_id"
|
287
|
+
end
|
288
|
+
|
289
|
+
create_table "eve_region_jumps", id: false, force: :cascade do |t|
|
290
|
+
t.integer "from_region_id", null: false
|
291
|
+
t.integer "to_region_id", null: false
|
292
|
+
t.index ["from_region_id"], name: "idx_region_jumps_from_region_id"
|
293
|
+
t.index ["to_region_id"], name: "idx_region_jumps_to_region_id"
|
294
|
+
end
|
295
|
+
|
296
|
+
create_table "eve_regions", id: :integer, default: nil, force: :cascade do |t|
|
297
|
+
t.string "name", limit: 100
|
298
|
+
t.float "x"
|
299
|
+
t.float "y"
|
300
|
+
t.float "z"
|
301
|
+
t.float "x_min"
|
302
|
+
t.float "x_max"
|
303
|
+
t.float "y_min"
|
304
|
+
t.float "y_max"
|
305
|
+
t.float "z_min"
|
306
|
+
t.float "z_max"
|
307
|
+
t.integer "faction_id"
|
308
|
+
t.float "radius"
|
309
|
+
t.index ["faction_id"], name: "idx_regions_faction_id"
|
310
|
+
t.index ["id"], name: "idx_regions_id"
|
311
|
+
t.index ["name"], name: "idx_regions_name"
|
312
|
+
end
|
313
|
+
|
314
|
+
create_table "eve_solar_system_jumps", id: false, force: :cascade do |t|
|
315
|
+
t.integer "from_region_id"
|
316
|
+
t.integer "from_constellation_id"
|
317
|
+
t.integer "from_solar_system_id", null: false
|
318
|
+
t.integer "to_solar_system_id", null: false
|
319
|
+
t.integer "to_constellation_id"
|
320
|
+
t.integer "to_region_id"
|
321
|
+
t.index ["from_constellation_id"], name: "idx_solar_system_jumps_from_constellation_id"
|
322
|
+
t.index ["from_region_id"], name: "idx_solar_system_jumps_from_region_id"
|
323
|
+
t.index ["from_solar_system_id"], name: "idx_solar_system_jumps_from_solar_system_id"
|
324
|
+
t.index ["to_constellation_id"], name: "idx_solar_system_jumps_to_constellation_id"
|
325
|
+
t.index ["to_region_id"], name: "idx_solar_system_jumps_to_region_id"
|
326
|
+
t.index ["to_solar_system_id"], name: "idx_solar_system_jumps_to_solar_system_id"
|
327
|
+
end
|
328
|
+
|
329
|
+
create_table "eve_solar_systems", id: :integer, default: nil, force: :cascade do |t|
|
330
|
+
t.integer "region_id"
|
331
|
+
t.integer "constellation_id"
|
332
|
+
t.string "name", limit: 100
|
333
|
+
t.float "x"
|
334
|
+
t.float "y"
|
335
|
+
t.float "z"
|
336
|
+
t.float "x_min"
|
337
|
+
t.float "x_max"
|
338
|
+
t.float "y_min"
|
339
|
+
t.float "y_max"
|
340
|
+
t.float "z_min"
|
341
|
+
t.float "z_max"
|
342
|
+
t.float "luminosity"
|
343
|
+
t.boolean "border"
|
344
|
+
t.boolean "fringe"
|
345
|
+
t.boolean "corridor"
|
346
|
+
t.boolean "hub"
|
347
|
+
t.boolean "international"
|
348
|
+
t.boolean "regional"
|
349
|
+
t.boolean "constellation"
|
350
|
+
t.float "security"
|
351
|
+
t.integer "faction_id"
|
352
|
+
t.float "radius"
|
353
|
+
t.integer "sun_type_id"
|
354
|
+
t.string "security_class", limit: 2
|
355
|
+
t.index ["constellation_id"], name: "idx_solar_systems_constellation_id"
|
356
|
+
t.index ["faction_id"], name: "idx_solar_systems_faction_id"
|
357
|
+
t.index ["id"], name: "idx_solar_systems_id"
|
358
|
+
t.index ["name"], name: "idx_solar_systems_name"
|
359
|
+
t.index ["region_id"], name: "idx_solar_systems_region_id"
|
360
|
+
t.index ["sun_type_id"], name: "idx_solar_systems_sun_type_id"
|
361
|
+
end
|
362
|
+
|
363
|
+
create_table "eve_station_types", id: :integer, default: nil, force: :cascade do |t|
|
364
|
+
t.float "dock_entry_x"
|
365
|
+
t.float "dock_entry_y"
|
366
|
+
t.float "dock_entry_z"
|
367
|
+
t.float "dock_orientation_x"
|
368
|
+
t.float "dock_orientation_y"
|
369
|
+
t.float "dock_orientation_z"
|
370
|
+
t.integer "operation_id"
|
371
|
+
t.integer "office_slots"
|
372
|
+
t.float "reprocessing_efficiency"
|
373
|
+
t.boolean "conquerable"
|
374
|
+
t.index ["id"], name: "idx_station_types_id"
|
375
|
+
t.index ["operation_id"], name: "idx_station_types_operation_id"
|
376
|
+
end
|
377
|
+
|
378
|
+
create_table "eve_stations", id: :bigint, default: nil, force: :cascade do |t|
|
379
|
+
t.float "security"
|
380
|
+
t.float "docking_cost_per_volume"
|
381
|
+
t.float "max_ship_volume_dockable"
|
382
|
+
t.integer "office_rental_cost"
|
383
|
+
t.integer "operation_id"
|
384
|
+
t.integer "type_id"
|
385
|
+
t.integer "corporation_id"
|
386
|
+
t.integer "solar_system_id"
|
387
|
+
t.integer "constellation_id"
|
388
|
+
t.integer "region_id"
|
389
|
+
t.string "name", limit: 100
|
390
|
+
t.float "x"
|
391
|
+
t.float "y"
|
392
|
+
t.float "z"
|
393
|
+
t.float "reprocessing_efficiency"
|
394
|
+
t.float "reprocessing_stations_take"
|
395
|
+
t.integer "reprocessing_hangar_flag"
|
396
|
+
t.index ["constellation_id"], name: "idx_stations_constellation_id"
|
397
|
+
t.index ["corporation_id"], name: "idx_stations_corporation_id"
|
398
|
+
t.index ["id"], name: "idx_stations_id"
|
399
|
+
t.index ["name"], name: "idx_stations_name"
|
400
|
+
t.index ["operation_id"], name: "idx_stations_operation_id"
|
401
|
+
t.index ["region_id"], name: "idx_stations_region_id"
|
402
|
+
t.index ["solar_system_id"], name: "idx_stations_solar_system_id"
|
403
|
+
t.index ["type_id"], name: "idx_stations_type_id"
|
404
|
+
end
|
405
|
+
|
406
|
+
create_table "eve_traits", id: :integer, default: nil, force: :cascade do |t|
|
407
|
+
t.integer "type_id"
|
408
|
+
t.integer "skill_id"
|
409
|
+
t.float "bonus"
|
410
|
+
t.text "bonus_text"
|
411
|
+
t.integer "unit_id"
|
412
|
+
t.index ["id"], name: "idx_traits_id"
|
413
|
+
t.index ["skill_id"], name: "idx_traits_skill_id"
|
414
|
+
t.index ["type_id"], name: "idx_traits_type_id"
|
415
|
+
t.index ["unit_id"], name: "idx_traits_unit_id"
|
416
|
+
end
|
417
|
+
|
418
|
+
create_table "eve_type_attributes", id: false, force: :cascade do |t|
|
419
|
+
t.integer "type_id", null: false
|
420
|
+
t.integer "attribute_id", null: false
|
421
|
+
t.integer "value_int"
|
422
|
+
t.float "value_float"
|
423
|
+
t.index ["attribute_id"], name: "idx_type_attributes_attribute_id"
|
424
|
+
t.index ["type_id"], name: "idx_type_attributes_type_id"
|
425
|
+
end
|
426
|
+
|
427
|
+
create_table "eve_type_effects", id: false, force: :cascade do |t|
|
428
|
+
t.integer "type_id", null: false
|
429
|
+
t.integer "effect_id", null: false
|
430
|
+
t.boolean "is_default"
|
431
|
+
t.index ["effect_id"], name: "idx_type_effects_effect_id"
|
432
|
+
t.index ["type_id"], name: "idx_type_effects_type_id"
|
433
|
+
end
|
434
|
+
|
435
|
+
create_table "eve_types", id: :integer, default: nil, force: :cascade do |t|
|
436
|
+
t.integer "group_id"
|
437
|
+
t.string "name", limit: 100
|
438
|
+
t.text "description"
|
439
|
+
t.float "mass"
|
440
|
+
t.float "volume"
|
441
|
+
t.float "capacity"
|
442
|
+
t.integer "portion_size"
|
443
|
+
t.integer "race_id"
|
444
|
+
t.decimal "base_price", precision: 19, scale: 4
|
445
|
+
t.boolean "published"
|
446
|
+
t.integer "market_group_id"
|
447
|
+
t.integer "icon_id"
|
448
|
+
t.integer "sound_id"
|
449
|
+
t.integer "graphic_id"
|
450
|
+
t.integer "category_id"
|
451
|
+
t.string "category_name"
|
452
|
+
t.string "group_name"
|
453
|
+
t.string "market_group_name"
|
454
|
+
t.integer "market_group_root_id"
|
455
|
+
t.integer "blueprint_type_id"
|
456
|
+
t.index ["blueprint_type_id"], name: "idx_types_blueprint_type_id"
|
457
|
+
t.index ["category_id"], name: "idx_types_category_id"
|
458
|
+
t.index ["graphic_id"], name: "idx_types_graphic_id"
|
459
|
+
t.index ["group_id"], name: "idx_types_group_id"
|
460
|
+
t.index ["icon_id"], name: "idx_types_icon_id"
|
461
|
+
t.index ["id"], name: "idx_types_id"
|
462
|
+
t.index ["market_group_id"], name: "idx_types_market_group_id"
|
463
|
+
t.index ["market_group_root_id"], name: "idx_types_market_group_root_id"
|
464
|
+
t.index ["name"], name: "idx_types_name"
|
465
|
+
t.index ["race_id"], name: "idx_types_race_id"
|
466
|
+
t.index ["sound_id"], name: "idx_types_sound_id"
|
467
|
+
end
|
468
|
+
|
469
|
+
create_table "eve_universes", id: :integer, default: nil, force: :cascade do |t|
|
470
|
+
t.string "name", limit: 100
|
471
|
+
t.float "x"
|
472
|
+
t.float "y"
|
473
|
+
t.float "z"
|
474
|
+
t.float "x_min"
|
475
|
+
t.float "x_max"
|
476
|
+
t.float "y_min"
|
477
|
+
t.float "y_max"
|
478
|
+
t.float "z_min"
|
479
|
+
t.float "z_max"
|
480
|
+
t.float "radius"
|
481
|
+
t.index ["id"], name: "idx_universes_id"
|
482
|
+
t.index ["name"], name: "idx_universes_name"
|
483
|
+
end
|
484
|
+
|
485
|
+
create_table "eve_volumes", id: false, force: :cascade do |t|
|
486
|
+
t.integer "type_id", null: false
|
487
|
+
t.integer "volume"
|
488
|
+
t.index ["type_id"], name: "idx_volumes_type_id"
|
489
|
+
end
|
490
|
+
end
|