Before adding workers
This commit is contained in:
+34
-32
@@ -24,27 +24,6 @@ ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "id_card_configurations", force: :cascade do |t|
|
||||
t.string "print_name"
|
||||
t.string "network_provider"
|
||||
t.string "card_template"
|
||||
t.string "rx_group_number"
|
||||
t.string "pl_plan_key"
|
||||
t.boolean "active", 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_configurations_on_employer_id"
|
||||
t.index ["employer_logo_id"], name: "index_id_card_configurations_on_employer_logo_id"
|
||||
t.index ["network_logo_id"], name: "index_id_card_configurations_on_network_logo_id"
|
||||
t.index ["provider_section_id"], name: "index_id_card_configurations_on_provider_section_id"
|
||||
t.index ["rx_section_id"], name: "index_id_card_configurations_on_rx_section_id"
|
||||
end
|
||||
|
||||
create_table "id_card_employer_logos", force: :cascade do |t|
|
||||
t.string "filename"
|
||||
t.binary "image_data"
|
||||
@@ -71,10 +50,10 @@ ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
|
||||
create_table "id_card_field_exceptions", force: :cascade do |t|
|
||||
t.string "exception_type"
|
||||
t.string "exception_value"
|
||||
t.bigint "configuration_id", null: false
|
||||
t.bigint "setup_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["configuration_id"], name: "index_id_card_field_exceptions_on_configuration_id"
|
||||
t.index ["setup_id"], name: "index_id_card_field_exceptions_on_setup_id"
|
||||
end
|
||||
|
||||
create_table "id_card_network_logos", force: :cascade do |t|
|
||||
@@ -103,10 +82,10 @@ ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
|
||||
t.integer "pb_product_key"
|
||||
t.string "pl_plan_key"
|
||||
t.boolean "template"
|
||||
t.bigint "configuration_id"
|
||||
t.bigint "setup_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["configuration_id"], name: "index_id_card_plans_on_configuration_id"
|
||||
t.index ["setup_id"], name: "index_id_card_plans_on_setup_id"
|
||||
end
|
||||
|
||||
create_table "id_card_print_data", force: :cascade do |t|
|
||||
@@ -247,6 +226,29 @@ ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
|
||||
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"
|
||||
@@ -263,17 +265,17 @@ ActiveRecord::Schema[7.2].define(version: 2026_01_16_182836) do
|
||||
t.index ["id_card_plan_id"], name: "index_members_on_id_card_plan_id"
|
||||
end
|
||||
|
||||
add_foreign_key "id_card_configurations", "employers"
|
||||
add_foreign_key "id_card_configurations", "id_card_employer_logos", column: "employer_logo_id"
|
||||
add_foreign_key "id_card_configurations", "id_card_network_logos", column: "network_logo_id"
|
||||
add_foreign_key "id_card_configurations", "id_card_provider_sections", column: "provider_section_id"
|
||||
add_foreign_key "id_card_configurations", "id_card_rx_sections", column: "rx_section_id"
|
||||
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_configurations", column: "configuration_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_configurations", column: "configuration_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
|
||||
|
||||
Reference in New Issue
Block a user