sillyforum/db/schema.rb
2026-03-17 12:49:38 +00:00

71 lines
2.7 KiB
Ruby
Generated

# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_03_17_112347) do
create_table "categories", force: :cascade do |t|
t.datetime "created_at", null: false
t.text "description"
t.string "title"
t.datetime "updated_at", null: false
end
create_table "forum_profiles", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "forum_threads", force: :cascade do |t|
t.text "body"
t.datetime "created_at", null: false
t.integer "forum_topic_id", null: false
t.string "title"
t.datetime "updated_at", null: false
t.index ["forum_topic_id"], name: "index_forum_threads_on_forum_topic_id"
end
create_table "forum_topics", force: :cascade do |t|
t.integer "category_id", null: false
t.datetime "created_at", null: false
t.text "description"
t.string "title"
t.datetime "updated_at", null: false
t.index ["category_id"], name: "index_forum_topics_on_category_id"
end
create_table "replies", force: :cascade do |t|
t.text "body"
t.datetime "created_at", null: false
t.integer "thread_id"
t.datetime "updated_at", null: false
t.integer "user_id", null: false
t.index ["thread_id"], name: "index_replies_on_thread_id"
t.index ["user_id"], name: "index_replies_on_user_id"
end
create_table "users", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "displayname"
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.text "profile"
t.datetime "remember_created_at"
t.datetime "reset_password_sent_at"
t.string "reset_password_token"
t.datetime "updated_at", null: false
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end
add_foreign_key "forum_threads", "forum_topics"
add_foreign_key "forum_topics", "categories"
add_foreign_key "replies", "users"
end