-ActiveRecord::Schema.define(version: 2021_04_07_024256) do
+ActiveRecord::Schema.define(version: 2021_04_29_014205) do
@@ -2310,2 +2310,4 @@ create_table "users", id: :serial, force: :cascade do |t|
t.boolean "site_float_management", default: false, null: false
+ t.boolean "can_merge_jobseekers", default: false, null: false
+ t.boolean "employment_fund", default: false, null: false
t.index ["active"], name: "index_users_on_active"
@@ -2473,6 +2475,17 @@ create_table "wage_subsidy_requests", force: :cascade do |t|
t.bigint "requested_by_id"
+ t.bigint "first_approved_by_id"
+ t.datetime "first_approved_at"
+ t.bigint "rejected_by_id"
+ t.datetime "rejected_at"
+ t.text "rejection_reason"
+ t.index "((id)::text) text_pattern_ops", name: "index_wage_subsidy_requests_on_cast_id_as_text"
+ t.bigint "second_approved_by_id"
+ t.datetime "second_approved_at"
t.index ["custom_expense_type_id"], name: "index_wage_subsidy_requests_on_custom_expense_type_id"
+ t.index ["first_approved_by_id"], name: "index_wage_subsidy_requests_on_first_approved_by_id"
t.index ["jobseeker_id"], name: "index_wage_subsidy_requests_on_jobseeker_id"
t.index ["placement_id"], name: "index_wage_subsidy_requests_on_placement_id"
+ t.index ["rejected_by_id"], name: "index_wage_subsidy_requests_on_rejected_by_id"
t.index ["requested_by_id"], name: "index_wage_subsidy_requests_on_requested_by_id"
+ t.index ["second_approved_by_id"], name: "index_wage_subsidy_requests_on_second_approved_by_id"
t.index ["wage_subsidy_agreement_id"], name: "index_wage_subsidy_requests_on_wage_subsidy_agreement_id"
@@ -2569,3 +2582,6 @@ create_table "widget_configurations", id: :serial, force: :cascade do |t|
add_foreign_key "wage_subsidy_requests", "placements"
+ add_foreign_key "wage_subsidy_requests", "users", column: "first_approved_by_id"
+ add_foreign_key "wage_subsidy_requests", "users", column: "rejected_by_id"
add_foreign_key "wage_subsidy_requests", "users", column: "requested_by_id"
+ add_foreign_key "wage_subsidy_requests", "users", column: "second_approved_by_id"
add_foreign_key "wage_subsidy_requests", "wage_subsidy_agreements"