# 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[7.2].define(version: 2026_02_27_213305) do create_table "action_text_rich_texts", force: :cascade do |t| t.string "name", null: false t.text "body" t.string "record_type", null: false t.bigint "record_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true end create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false t.bigint "record_id", null: false t.bigint "blob_id", null: false t.datetime "created_at", null: false t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true end create_table "active_storage_blobs", force: :cascade do |t| t.string "key", null: false t.string "filename", null: false t.string "content_type" t.text "metadata" t.string "service_name", null: false t.bigint "byte_size", null: false t.string "checksum" t.datetime "created_at", null: false t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true end create_table "active_storage_variant_records", force: :cascade do |t| t.bigint "blob_id", null: false t.string "variation_digest", null: false t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end create_table "alternate_network_logos", force: :cascade do |t| t.string "network_logo_filename" t.string "exception_type" t.string "exception_value" t.bigint "employer_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["employer_id"], name: "index_alternate_network_logos_on_employer_id" end create_table "card_exception_items", force: :cascade do |t| t.string "field_name" t.string "field_value" t.bigint "card_logo_file_id" t.bigint "card_provider_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["card_logo_file_id"], name: "index_card_exception_items_on_card_logo_file_id" t.index ["card_provider_id"], name: "index_card_exception_items_on_card_provider_id" end create_table "card_exceptions", force: :cascade do |t| t.string "type" t.string "value" t.bigint "employer_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["employer_id"], name: "index_card_exceptions_on_employer_id" end create_table "card_logo_files", force: :cascade do |t| t.string "filename" t.binary "image_data" t.string "content_type" t.string "logo_type" t.boolean "active", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.float "aspect_ratio" end create_table "card_providers", force: :cascade do |t| t.string "provider_code" t.string "provider_line_1" t.string "provider_line_2" t.string "provider_line_3" t.string "provider_line_4" t.string "provider_line_5" t.string "provider_line_6" t.string "provider_line_7" t.string "provider_line_8" t.string "provider_line_9" t.string "provider_line_10" t.string "provider_line_11" t.string "provider_line_12" t.string "claim_to_1" t.string "claim_to_2" t.string "claim_to_3" t.string "claim_to_4" t.string "claim_to_5" t.string "claim_to_6" t.string "claim_to_7" t.string "claim_to_8" t.string "claim_to_9" t.string "claim_to_10" t.string "claim_to_11" t.string "claim_to_12" t.string "mail_to" t.string "mail_to_2" t.string "contact_line_1" t.string "contact_line_2" t.string "contact_line_3" t.string "group_number" t.string "rx_group_id" t.string "rx_contact" t.string "provider_lookup_1" t.string "provider_lookup_2" t.string "precert_1" t.string "precert_2" t.string "precert_3" t.string "precert_4" t.string "precert_5" t.string "precert_6" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "title" end create_table "card_rxes", force: :cascade do |t| t.string "help_desk" t.string "customer_service" t.string "web_url" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "employer_card_logos", force: :cascade do |t| t.bigint "employer_id", null: false t.bigint "card_logo_file_id", null: false t.string "logo_type" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["card_logo_file_id"], name: "index_employer_card_logos_on_card_logo_file_id" t.index ["employer_id"], name: "index_employer_card_logos_on_employer_id" end create_table "employers", force: :cascade do |t| t.string "name" t.string "id_card_display_name" t.string "slug" t.string "pl_plan_key" t.integer "company_pb_entity_key" t.integer "plan_id" t.string "group_number" t.string "rx_group_number" t.string "effective_date" t.string "employer_logo_filename" t.string "network_provider" t.string "default_network_logo" t.string "single_card_template" t.string "multiple_card_template" t.boolean "active", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.bigint "card_provider_id" t.bigint "card_rx_id" t.index ["card_provider_id"], name: "index_employers_on_card_provider_id" t.index ["card_rx_id"], name: "index_employers_on_card_rx_id" end create_table "id_card_benefits", force: :cascade do |t| t.string "benefit_desc" t.string "benefit" t.integer "sequence" t.bigint "id_card_benefits_template_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["id_card_benefits_template_id"], name: "index_id_card_benefits_on_id_card_benefits_template_id" end create_table "id_card_benefits_templates", force: :cascade do |t| t.string "title" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "members", force: :cascade do |t| t.string "name" t.string "id_card_display_name" t.string "family_id" t.integer "mb_member_key" t.integer "pb_entity_key" t.integer "pl_plan_key" t.bigint "employer_id" t.bigint "plan_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["employer_id"], name: "index_members_on_employer_id" t.index ["plan_id"], name: "index_members_on_plan_id" end create_table "plan_benefits", force: :cascade do |t| t.string "benefit_desc" t.string "benefit" t.integer "sequence" t.bigint "plan_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["plan_id"], name: "index_plan_benefits_on_plan_id" end create_table "plans", force: :cascade do |t| t.string "title" t.integer "pb_product_key" t.bigint "employer_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["employer_id"], name: "index_plans_on_employer_id" end create_table "sample_id_cards", force: :cascade do |t| t.string "full_name" t.string "family_id" t.string "primary_mb_member_key" t.string "employer_name" t.string "group_number" t.string "rx_group" t.string "medical_eff_date" t.string "provider_code" t.string "provider_line_1" t.string "provider_line_2" t.string "provider_line_3" t.string "provider_line_4" t.string "provider_line_5" t.string "provider_line_6" t.string "provider_line_7" t.string "provider_line_8" t.string "provider_line_9" t.string "provider_line_10" t.string "provider_line_11" t.string "provider_line_12" t.string "claim_to_1" t.string "claim_to_2" t.string "claim_to_3" t.string "claim_to_4" t.string "claim_to_5" t.string "claim_to_6" t.string "claim_to_7" t.string "claim_to_8" t.string "claim_to_9" t.string "claim_to_10" t.string "claim_to_11" t.string "claim_to_12" t.string "customer_service" t.string "web_url" t.string "dependent_1" t.string "dependent_2" t.string "dependent_3" t.string "dependent_4" t.string "dependent_5" t.string "dependent_6" t.string "dependent_7" t.string "dependent_8" t.string "plan_id" t.string "benefit_desc_1" t.string "benefit_1" t.string "benefit_desc_2" t.string "benefit_2" t.string "benefit_desc_3" t.string "benefit_3" t.string "benefit_desc_4" t.string "benefit_4" t.string "benefit_desc_5" t.string "benefit_5" t.string "benefit_desc_6" t.string "benefit_6" t.string "benefit_desc_7" t.string "benefit_7" t.string "benefit_desc_8" t.string "benefit_8" t.string "benefit_desc_9" t.string "benefit_9" t.string "benefit_desc_10" t.string "benefit_10" t.string "benefit_desc_11" t.string "benefit_11" t.string "benefit_desc_12" t.string "benefit_12" t.string "benefit_desc_13" t.string "benefit_13" t.string "benefit_desc_14" t.string "benefit_14" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "name" end add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "alternate_network_logos", "employers" add_foreign_key "card_exception_items", "card_logo_files" add_foreign_key "card_exception_items", "card_providers" add_foreign_key "card_exceptions", "employers" add_foreign_key "employer_card_logos", "card_logo_files" add_foreign_key "employer_card_logos", "employers" add_foreign_key "employers", "card_providers" add_foreign_key "employers", "card_rxes" add_foreign_key "id_card_benefits", "id_card_benefits_templates" add_foreign_key "members", "employers" add_foreign_key "members", "plans" add_foreign_key "plan_benefits", "plans" add_foreign_key "plans", "employers" end