diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index eae72c9..5d9fffe 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_27_002712) do +ActiveRecord::Schema.define(version: 2021_05_29_195809) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -109,6 +109,15 @@ ActiveRecord::Schema.define(version: 2021_05_27_002712) do t.datetime "updated_at", precision: 6, null: false end + create_table "conditions", force: :cascade do |t| + t.string "gid" + t.string "name" + t.text "description" + t.jsonb "whatnot" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + end + create_table "equipment", force: :cascade do |t| t.bigint "character_id", null: false t.bigint "item_id", null: false @@ -183,6 +192,16 @@ ActiveRecord::Schema.define(version: 2021_05_27_002712) do t.index ["gid"], name: "index_skills_on_gid" end + create_table "states", force: :cascade do |t| + t.bigint "character_id", null: false + t.bigint "condition_id", null: false + t.datetime "expires_at" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["character_id"], name: "index_states_on_character_id" + t.index ["condition_id"], name: "index_states_on_condition_id" + end + create_table "title_awards", force: :cascade do |t| t.bigint "title_id", null: false t.bigint "character_id", null: false @@ -247,6 +266,8 @@ ActiveRecord::Schema.define(version: 2021_05_27_002712) do add_foreign_key "hearths", "characters" add_foreign_key "learned_activities", "activities" add_foreign_key "learned_activities", "characters" + add_foreign_key "states", "characters" + add_foreign_key "states", "conditions" add_foreign_key "title_awards", "characters" add_foreign_key "title_awards", "titles" add_foreign_key "users", "characters", column: "active_character_id" |