diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index bddf880..626ec36 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_05_03_221405) do +ActiveRecord::Schema.define(version: 2021_05_03_235646) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -37,6 +37,16 @@ ActiveRecord::Schema.define(version: 2021_05_03_221405) do t.index ["item_id"], name: "index_character_items_on_item_id" end + create_table "character_skills", force: :cascade do |t| + t.bigint "character_id", null: false + t.bigint "skill_id", null: false + t.bigint "xp" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["character_id"], name: "index_character_skills_on_character_id" + t.index ["skill_id"], name: "index_character_skills_on_skill_id" + end + create_table "characters", force: :cascade do |t| t.string "name" t.bigint "user_id", null: false @@ -110,6 +120,8 @@ ActiveRecord::Schema.define(version: 2021_05_03_221405) do add_foreign_key "character_items", "characters" add_foreign_key "character_items", "items" + add_foreign_key "character_skills", "characters" + add_foreign_key "character_skills", "skills" add_foreign_key "characters", "activities" add_foreign_key "characters", "users" add_foreign_key "users", "characters", column: "active_character_id" |