# 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.define(version: 2022_09_25_145906) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "censor_bear_review_logs", force: :cascade do |t| t.string "data_id" t.bigint "record_id" t.string "record_type" t.string "type" t.string "service" t.jsonb "raw_data" t.bigint "user_id" t.string "ip_address" t.bigint "operator_id" t.string "url" t.string "image_id" t.text "original" t.text "filtered" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.string "aasm_state" t.string "reason" t.datetime "operated_at" t.index ["aasm_state"], name: "index_censor_bear_review_logs_on_aasm_state" t.index ["operated_at"], name: "index_censor_bear_review_logs_on_operated_at" t.index ["created_at"], name: "index_censor_bear_review_logs_on_created_at" t.index ["operator_id"], name: "index_censor_bear_review_logs_on_operator_id" end create_table "censor_bear_stop_words", force: :cascade do |t| t.string "key" t.bigint "user_id" t.string "ugc" t.string "username" t.string "nickname" t.string "signature" t.string "dialog" t.string "replacement" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.index ["key"], name: "index_censor_bear_stop_words_on_key", unique: true end create_table "comments", force: :cascade do |t| t.text "content" t.bigint "user_id" t.boolean "is_approved", default: true t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.boolean "force_image_safe_url", default: false end create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" t.boolean "is_baned", default: false t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, 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 end