91 lines
3.3 KiB
Ruby
Generated
91 lines
3.3 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.0].define(version: 2024_08_19_192804) do
|
|
create_table "accounts", force: :cascade do |t|
|
|
t.string "name", null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["name"], name: "index_accounts_on_name", unique: true
|
|
end
|
|
|
|
create_table "boosts", force: :cascade do |t|
|
|
t.string "content"
|
|
t.integer "creator_id", null: false
|
|
t.integer "splat_id", null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["splat_id"], name: "index_boosts_on_splat_id"
|
|
end
|
|
|
|
create_table "categories", force: :cascade do |t|
|
|
t.string "title"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "categorizations", force: :cascade do |t|
|
|
t.integer "splat_id", null: false
|
|
t.integer "category_id", null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["category_id"], name: "index_categorizations_on_category_id"
|
|
t.index ["splat_id"], name: "index_categorizations_on_splat_id"
|
|
end
|
|
|
|
create_table "comments", force: :cascade do |t|
|
|
t.text "body"
|
|
t.integer "creator_id", null: false
|
|
t.integer "splat_id", null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "sessions", force: :cascade do |t|
|
|
t.integer "user_id", null: false
|
|
t.string "token", null: false
|
|
t.string "ip_address"
|
|
t.string "user_agent"
|
|
t.datetime "last_active_at", null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["token"], name: "index_sessions_on_token", unique: true
|
|
t.index ["user_id"], name: "index_sessions_on_user_id"
|
|
end
|
|
|
|
create_table "splats", force: :cascade do |t|
|
|
t.string "title"
|
|
t.text "body"
|
|
t.string "color"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.integer "creator_id", null: false
|
|
end
|
|
|
|
create_table "users", force: :cascade do |t|
|
|
t.integer "account_id", null: false
|
|
t.string "name", null: false
|
|
t.string "email_address", null: false
|
|
t.string "password_digest", null: false
|
|
t.boolean "active", default: true, null: false
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.index ["account_id"], name: "index_users_on_account_id"
|
|
t.index ["email_address"], name: "index_users_on_email_address", unique: true
|
|
end
|
|
|
|
add_foreign_key "categorizations", "categories"
|
|
add_foreign_key "categorizations", "splats"
|
|
add_foreign_key "sessions", "users"
|
|
add_foreign_key "users", "accounts"
|
|
end
|