|
|
|
@ -10,7 +10,7 @@ |
|
|
|
# |
|
|
|
# |
|
|
|
# It's strongly recommended that you check this file into your version control system. |
|
|
|
# It's strongly recommended that you check this file into your version control system. |
|
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2024_08_19_143150) do |
|
|
|
ActiveRecord::Schema[7.0].define(version: 2024_09_05_092332) do |
|
|
|
# These are extensions that must be enabled in order to support this database |
|
|
|
# These are extensions that must be enabled in order to support this database |
|
|
|
enable_extension "plpgsql" |
|
|
|
enable_extension "plpgsql" |
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_08_19_143150) do |
|
|
|
t.text "choice" |
|
|
|
t.text "choice" |
|
|
|
t.integer "total_logs_count" |
|
|
|
t.integer "total_logs_count" |
|
|
|
t.string "rent_type_fix_status", default: "not_applied" |
|
|
|
t.string "rent_type_fix_status", default: "not_applied" |
|
|
|
|
|
|
|
t.integer "organisation_id" |
|
|
|
t.index ["identifier"], name: "index_bulk_uploads_on_identifier", unique: true |
|
|
|
t.index ["identifier"], name: "index_bulk_uploads_on_identifier", unique: true |
|
|
|
t.index ["user_id"], name: "index_bulk_uploads_on_user_id" |
|
|
|
t.index ["user_id"], name: "index_bulk_uploads_on_user_id" |
|
|
|
end |
|
|
|
end |
|
|
|
@ -429,19 +430,24 @@ ActiveRecord::Schema[7.0].define(version: 2024_08_19_143150) do |
|
|
|
|
|
|
|
|
|
|
|
create_table "merge_requests", force: :cascade do |t| |
|
|
|
create_table "merge_requests", force: :cascade do |t| |
|
|
|
t.integer "requesting_organisation_id" |
|
|
|
t.integer "requesting_organisation_id" |
|
|
|
t.text "other_merging_organisations" |
|
|
|
|
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "updated_at", null: false |
|
|
|
t.datetime "updated_at", null: false |
|
|
|
t.integer "status" |
|
|
|
|
|
|
|
t.integer "absorbing_organisation_id" |
|
|
|
t.integer "absorbing_organisation_id" |
|
|
|
t.boolean "new_absorbing_organisation" |
|
|
|
t.datetime "merge_date" |
|
|
|
t.boolean "telephone_number_correct" |
|
|
|
t.integer "requester_id" |
|
|
|
t.string "new_telephone_number" |
|
|
|
t.string "helpdesk_ticket" |
|
|
|
t.string "new_organisation_name" |
|
|
|
t.integer "total_users" |
|
|
|
t.string "new_organisation_address_line1" |
|
|
|
t.integer "total_schemes" |
|
|
|
t.string "new_organisation_address_line2" |
|
|
|
t.integer "total_lettings_logs" |
|
|
|
t.string "new_organisation_postcode" |
|
|
|
t.integer "total_sales_logs" |
|
|
|
t.string "new_organisation_telephone_number" |
|
|
|
t.integer "total_stock_owners" |
|
|
|
|
|
|
|
t.integer "total_managing_agents" |
|
|
|
|
|
|
|
t.boolean "signed_dsa", default: false |
|
|
|
|
|
|
|
t.datetime "discarded_at" |
|
|
|
|
|
|
|
t.datetime "last_failed_attempt" |
|
|
|
|
|
|
|
t.boolean "request_merged" |
|
|
|
|
|
|
|
t.boolean "processing" |
|
|
|
|
|
|
|
t.boolean "existing_absorbing_organisation" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
create_table "notifications", force: :cascade do |t| |
|
|
|
create_table "notifications", force: :cascade do |t| |
|
|
|
|