diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 177 |
1 files changed, 176 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index fc6614a..ede1db3 100644 --- a/db/schema.rb +++ b/db/schema.rb | |||
@@ -10,7 +10,7 @@ | |||
10 | # | 10 | # |
11 | # It's strongly recommended that you check this file into your version control system. | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 | ||
13 | ActiveRecord::Schema.define(version: 20170703013609) do | 13 | ActiveRecord::Schema.define(version: 20171015171559) do |
14 | 14 | ||
15 | create_table "ckeditor_assets", force: :cascade do |t| | 15 | create_table "ckeditor_assets", force: :cascade do |t| |
16 | t.string "data_file_name", null: false | 16 | t.string "data_file_name", null: false |
@@ -34,6 +34,179 @@ ActiveRecord::Schema.define(version: 20170703013609) do | |||
34 | t.datetime "updated_at", null: false | 34 | t.datetime "updated_at", null: false |
35 | end | 35 | end |
36 | 36 | ||
37 | create_table "pokeviewer_abilities", force: :cascade do |t| | ||
38 | t.string "name", limit: 191, null: false | ||
39 | t.string "description", null: false | ||
40 | t.datetime "created_at", null: false | ||
41 | t.datetime "updated_at", null: false | ||
42 | t.index ["name"], name: "index_pokeviewer_abilities_on_name", unique: true | ||
43 | end | ||
44 | |||
45 | create_table "pokeviewer_gift_ribbons", force: :cascade do |t| | ||
46 | t.string "description", null: false | ||
47 | t.datetime "created_at", null: false | ||
48 | t.datetime "updated_at", null: false | ||
49 | end | ||
50 | |||
51 | create_table "pokeviewer_items", force: :cascade do |t| | ||
52 | t.string "name", null: false | ||
53 | t.boolean "tm", default: false, null: false | ||
54 | t.integer "move_id" | ||
55 | t.string "rs_description" | ||
56 | t.string "frlg_description" | ||
57 | t.string "emerald_description" | ||
58 | t.datetime "created_at", null: false | ||
59 | t.datetime "updated_at", null: false | ||
60 | t.index ["move_id"], name: "index_pokeviewer_items_on_move_id" | ||
61 | end | ||
62 | |||
63 | create_table "pokeviewer_locations", force: :cascade do |t| | ||
64 | t.string "name", null: false | ||
65 | t.datetime "created_at", null: false | ||
66 | t.datetime "updated_at", null: false | ||
67 | end | ||
68 | |||
69 | create_table "pokeviewer_moves", force: :cascade do |t| | ||
70 | t.string "name", limit: 191, null: false | ||
71 | t.integer "pp", null: false | ||
72 | t.datetime "created_at", null: false | ||
73 | t.datetime "updated_at", null: false | ||
74 | t.string "move_type", null: false | ||
75 | t.string "rs_description", null: false | ||
76 | t.string "frlg_description", null: false | ||
77 | t.string "emerald_description" | ||
78 | t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true | ||
79 | end | ||
80 | |||
81 | create_table "pokeviewer_pokemon", force: :cascade do |t| | ||
82 | t.string "uuid", limit: 191, null: false | ||
83 | t.integer "species_id", null: false | ||
84 | t.integer "trainer_id" | ||
85 | t.string "key", limit: 191 | ||
86 | t.string "ot_name", null: false | ||
87 | t.integer "ot_number", null: false | ||
88 | t.string "met_type", null: false | ||
89 | t.integer "met_level" | ||
90 | t.boolean "shiny", default: false, null: false | ||
91 | t.string "nature", null: false | ||
92 | t.string "gender", null: false | ||
93 | t.boolean "second_ability", null: false | ||
94 | t.string "unown_letter", limit: 1 | ||
95 | t.datetime "created_at", null: false | ||
96 | t.datetime "updated_at", null: false | ||
97 | t.string "ot_gender", default: "", null: false | ||
98 | t.integer "box" | ||
99 | t.integer "slot" | ||
100 | t.integer "location_id" | ||
101 | t.string "pokeball", null: false | ||
102 | t.index ["key"], name: "index_pokeviewer_pokemon_on_key", unique: true | ||
103 | t.index ["species_id"], name: "index_pokeviewer_pokemon_on_species_id" | ||
104 | t.index ["trainer_id"], name: "index_pokeviewer_pokemon_on_trainer_id" | ||
105 | t.index ["uuid"], name: "index_pokeviewer_pokemon_on_uuid", unique: true | ||
106 | end | ||
107 | |||
108 | create_table "pokeviewer_revisions", force: :cascade do |t| | ||
109 | t.integer "pokemon_id", null: false | ||
110 | t.integer "sequential_id", null: false | ||
111 | t.string "nickname", null: false | ||
112 | t.integer "experience", null: false | ||
113 | t.integer "level", null: false | ||
114 | t.integer "hp", null: false | ||
115 | t.integer "attack", null: false | ||
116 | t.integer "defense", null: false | ||
117 | t.integer "special_attack", null: false | ||
118 | t.integer "special_defense", null: false | ||
119 | t.integer "speed", null: false | ||
120 | t.integer "coolness", null: false | ||
121 | t.integer "beauty", null: false | ||
122 | t.integer "cuteness", null: false | ||
123 | t.integer "smartness", null: false | ||
124 | t.integer "toughness", null: false | ||
125 | t.integer "sheen", null: false | ||
126 | t.integer "item_id" | ||
127 | t.integer "move_1_id", null: false | ||
128 | t.integer "move_2_id" | ||
129 | t.integer "move_3_id" | ||
130 | t.integer "move_4_id" | ||
131 | t.integer "move_1_pp_bonuses", default: 0, null: false | ||
132 | t.integer "move_2_pp_bonuses", default: 0, null: false | ||
133 | t.integer "move_3_pp_bonuses", default: 0, null: false | ||
134 | t.integer "move_4_pp_bonuses", default: 0, null: false | ||
135 | t.datetime "created_at", null: false | ||
136 | t.datetime "updated_at", null: false | ||
137 | t.integer "cool_ribbons", default: 0, null: false | ||
138 | t.integer "beauty_ribbons", default: 0, null: false | ||
139 | t.integer "cute_ribbons", default: 0, null: false | ||
140 | t.integer "smart_ribbons", default: 0, null: false | ||
141 | t.integer "tough_ribbons", default: 0, null: false | ||
142 | t.boolean "champion_ribbon", default: false | ||
143 | t.boolean "winning_ribbon", default: false | ||
144 | t.boolean "victory_ribbon", default: false | ||
145 | t.boolean "artist_ribbon", default: false | ||
146 | t.boolean "effort_ribbon", default: false | ||
147 | t.boolean "marine_ribbon", default: false | ||
148 | t.boolean "land_ribbon", default: false | ||
149 | t.boolean "sky_ribbon", default: false | ||
150 | t.boolean "country_ribbon", default: false | ||
151 | t.boolean "national_ribbon", default: false | ||
152 | t.boolean "earth_ribbon", default: false | ||
153 | t.boolean "world_ribbon", default: false | ||
154 | t.index ["move_1_id"], name: "index_pokeviewer_revisions_on_move_1_id" | ||
155 | t.index ["move_2_id"], name: "index_pokeviewer_revisions_on_move_2_id" | ||
156 | t.index ["move_3_id"], name: "index_pokeviewer_revisions_on_move_3_id" | ||
157 | t.index ["move_4_id"], name: "index_pokeviewer_revisions_on_move_4_id" | ||
158 | t.index ["pokemon_id", "sequential_id"], name: "index_pokeviewer_revisions_on_pokemon_id_and_sequential_id", unique: true | ||
159 | t.index ["pokemon_id"], name: "index_pokeviewer_revisions_on_pokemon_id" | ||
160 | end | ||
161 | |||
162 | create_table "pokeviewer_species", force: :cascade do |t| | ||
163 | t.string "name", limit: 191, null: false | ||
164 | t.datetime "created_at", null: false | ||
165 | t.datetime "updated_at", null: false | ||
166 | t.string "type_1", null: false | ||
167 | t.string "type_2" | ||
168 | t.integer "ability_1_id", null: false | ||
169 | t.integer "ability_2_id" | ||
170 | t.index ["name"], name: "index_pokeviewer_species_on_name", unique: true | ||
171 | end | ||
172 | |||
173 | create_table "pokeviewer_trainers", force: :cascade do |t| | ||
174 | t.string "game", null: false | ||
175 | t.string "name", limit: 191, null: false | ||
176 | t.integer "number", null: false | ||
177 | t.datetime "created_at", null: false | ||
178 | t.datetime "updated_at", null: false | ||
179 | t.integer "marine_ribbon_id" | ||
180 | t.integer "land_ribbon_id" | ||
181 | t.integer "sky_ribbon_id" | ||
182 | t.integer "country_ribbon_id" | ||
183 | t.integer "national_ribbon_id" | ||
184 | t.integer "earth_ribbon_id" | ||
185 | t.integer "world_ribbon_id" | ||
186 | t.string "box_1_name", null: false | ||
187 | t.string "box_2_name", null: false | ||
188 | t.string "box_3_name", null: false | ||
189 | t.string "box_4_name", null: false | ||
190 | t.string "box_5_name", null: false | ||
191 | t.string "box_6_name", null: false | ||
192 | t.string "box_7_name", null: false | ||
193 | t.string "box_8_name", null: false | ||
194 | t.string "box_9_name", null: false | ||
195 | t.string "box_10_name", null: false | ||
196 | t.string "box_11_name", null: false | ||
197 | t.string "box_12_name", null: false | ||
198 | t.string "box_13_name", null: false | ||
199 | t.string "box_14_name", null: false | ||
200 | t.index ["country_ribbon_id"], name: "index_pokeviewer_trainers_on_country_ribbon_id" | ||
201 | t.index ["earth_ribbon_id"], name: "index_pokeviewer_trainers_on_earth_ribbon_id" | ||
202 | t.index ["land_ribbon_id"], name: "index_pokeviewer_trainers_on_land_ribbon_id" | ||
203 | t.index ["marine_ribbon_id"], name: "index_pokeviewer_trainers_on_marine_ribbon_id" | ||
204 | t.index ["name", "number"], name: "index_pokeviewer_trainers_on_name_and_number", unique: true | ||
205 | t.index ["national_ribbon_id"], name: "index_pokeviewer_trainers_on_national_ribbon_id" | ||
206 | t.index ["sky_ribbon_id"], name: "index_pokeviewer_trainers_on_sky_ribbon_id" | ||
207 | t.index ["world_ribbon_id"], name: "index_pokeviewer_trainers_on_world_ribbon_id" | ||
208 | end | ||
209 | |||
37 | create_table "records", force: :cascade do |t| | 210 | create_table "records", force: :cascade do |t| |
38 | t.text "description" | 211 | t.text "description" |
39 | t.string "recordable_type", limit: 191 | 212 | t.string "recordable_type", limit: 191 |
@@ -57,8 +230,10 @@ ActiveRecord::Schema.define(version: 20170703013609) do | |||
57 | t.string "last_sign_in_ip" | 230 | t.string "last_sign_in_ip" |
58 | t.datetime "created_at", null: false | 231 | t.datetime "created_at", null: false |
59 | t.datetime "updated_at", null: false | 232 | t.datetime "updated_at", null: false |
233 | t.string "pokeviewer_token", limit: 191 | ||
60 | t.index ["email"], name: "index_users_on_email", unique: true | 234 | t.index ["email"], name: "index_users_on_email", unique: true |
61 | t.index ["login"], name: "index_users_on_login", unique: true | 235 | t.index ["login"], name: "index_users_on_login", unique: true |
236 | t.index ["pokeviewer_token"], name: "index_users_on_pokeviewer_token", unique: true | ||
62 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true | 237 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
63 | end | 238 | end |
64 | 239 | ||