# 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_01_16_182836) do create_table "employers", force: :cascade do |t| t.string "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 "effective_date" t.boolean "active", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "id_card_employer_logos", force: :cascade do |t| t.string "filename" t.binary "image_data" t.string "content_type" t.float "aspect_ratio" t.boolean "active", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "id_card_field_exception_items", force: :cascade do |t| t.string "field_name" t.string "field_value" t.bigint "field_exception_id", null: false t.bigint "network_logo_id" t.bigint "provider_section_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["field_exception_id"], name: "index_id_card_field_exception_items_on_field_exception_id" t.index ["network_logo_id"], name: "index_id_card_field_exception_items_on_network_logo_id" t.index ["provider_section_id"], name: "index_id_card_field_exception_items_on_provider_section_id" end create_table "id_card_field_exceptions", force: :cascade do |t| t.string "exception_type" t.string "exception_value" t.bigint "setup_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["setup_id"], name: "index_id_card_field_exceptions_on_setup_id" end create_table "id_card_network_logos", force: :cascade do |t| t.string "filename" t.binary "image_data" t.string "content_type" t.float "aspect_ratio" t.boolean "default", default: false t.boolean "active", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "id_card_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_id_card_plan_benefits_on_plan_id" end create_table "id_card_plans", force: :cascade do |t| t.string "title" t.integer "pb_product_key" t.string "pl_plan_key" t.boolean "template" t.bigint "setup_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["setup_id"], name: "index_id_card_plans_on_setup_id" end create_table "id_card_print_data", force: :cascade do |t| t.string "full_name_last_name_first" t.string "employer_name" t.string "pl_plan_key" t.string "group_number" t.string "primary_mb_member_key" t.string "family_id" t.string "full_name" t.string "rx_group" t.string "medical_eff_date" t.string "network_provider" 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.boolean "sample", default: false t.string "sample_key" t.string "sample_plan_title" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "id_card_provider_sections", force: :cascade do |t| t.string "title" 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.boolean "default", default: false t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "id_card_rx_sections", force: :cascade do |t| t.string "title" 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 "id_card_setups", force: :cascade do |t| t.string "print_name" t.string "network_provider" t.string "card_template" t.string "card_color" t.string "rx_group_number" t.string "pl_plan_key" t.boolean "active", default: false t.boolean "has_divisions", default: false t.bigint "employer_id", null: false t.bigint "employer_logo_id" t.bigint "network_logo_id" t.bigint "provider_section_id" t.bigint "rx_section_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["employer_id"], name: "index_id_card_setups_on_employer_id" t.index ["employer_logo_id"], name: "index_id_card_setups_on_employer_logo_id" t.index ["network_logo_id"], name: "index_id_card_setups_on_network_logo_id" t.index ["provider_section_id"], name: "index_id_card_setups_on_provider_section_id" t.index ["rx_section_id"], name: "index_id_card_setups_on_rx_section_id" end create_table "members", force: :cascade do |t| t.string "name" t.string "family_id" t.integer "mb_member_key" t.integer "pb_entity_key" t.integer "pl_plan_key" t.string "id_card_display_name" t.string "division" t.bigint "employer_id" t.bigint "id_card_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 ["id_card_plan_id"], name: "index_members_on_id_card_plan_id" end add_foreign_key "id_card_field_exception_items", "id_card_field_exceptions", column: "field_exception_id" add_foreign_key "id_card_field_exception_items", "id_card_network_logos", column: "network_logo_id" add_foreign_key "id_card_field_exception_items", "id_card_provider_sections", column: "provider_section_id" add_foreign_key "id_card_field_exceptions", "id_card_setups", column: "setup_id" add_foreign_key "id_card_plan_benefits", "id_card_plans", column: "plan_id" add_foreign_key "id_card_plans", "id_card_setups", column: "setup_id" add_foreign_key "id_card_setups", "employers" add_foreign_key "id_card_setups", "id_card_employer_logos", column: "employer_logo_id" add_foreign_key "id_card_setups", "id_card_network_logos", column: "network_logo_id" add_foreign_key "id_card_setups", "id_card_provider_sections", column: "provider_section_id" add_foreign_key "id_card_setups", "id_card_rx_sections", column: "rx_section_id" add_foreign_key "members", "employers" add_foreign_key "members", "id_card_plans" end