diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 9a41002..55a66d9 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_06_05_223042) do +ActiveRecord::Schema.define(version: 2021_06_06_214340) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -185,6 +185,17 @@ ActiveRecord::Schema.define(version: 2021_06_05_223042) do t.index ["gid"], name: "index_locations_on_gid" end + create_table "messages", force: :cascade do |t| + t.bigint "sender_id" + t.bigint "recipient_id", null: false + t.string "subject" + t.text "body" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["recipient_id"], name: "index_messages_on_recipient_id" + t.index ["sender_id"], name: "index_messages_on_sender_id" + end + create_table "monsters", force: :cascade do |t| t.string "gid" t.string "name" @@ -279,6 +290,8 @@ ActiveRecord::Schema.define(version: 2021_06_05_223042) do add_foreign_key "hearths", "characters" add_foreign_key "learned_activities", "activities" add_foreign_key "learned_activities", "characters" + add_foreign_key "messages", "characters", column: "recipient_id" + add_foreign_key "messages", "characters", column: "sender_id" add_foreign_key "states", "characters" add_foreign_key "states", "conditions" add_foreign_key "title_awards", "characters" |