|
|
|
@ -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_01_30_084707) do |
|
|
|
ActiveRecord::Schema[7.0].define(version: 2024_02_09_153215) 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" |
|
|
|
|
|
|
|
|
|
|
|
@ -192,14 +192,14 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.integer "hb" |
|
|
|
t.integer "hb" |
|
|
|
t.integer "hbrentshortfall" |
|
|
|
t.integer "hbrentshortfall" |
|
|
|
t.integer "property_relet" |
|
|
|
t.integer "property_relet" |
|
|
|
t.datetime "mrcdate" |
|
|
|
t.datetime "mrcdate", precision: nil |
|
|
|
t.integer "incref" |
|
|
|
t.integer "incref" |
|
|
|
t.datetime "startdate" |
|
|
|
t.datetime "startdate", precision: nil |
|
|
|
t.integer "armedforces" |
|
|
|
t.integer "armedforces" |
|
|
|
t.integer "first_time_property_let_as_social_housing" |
|
|
|
t.integer "first_time_property_let_as_social_housing" |
|
|
|
t.integer "unitletas" |
|
|
|
t.integer "unitletas" |
|
|
|
t.integer "builtype" |
|
|
|
t.integer "builtype" |
|
|
|
t.datetime "voiddate" |
|
|
|
t.datetime "voiddate", precision: nil |
|
|
|
t.bigint "owning_organisation_id" |
|
|
|
t.bigint "owning_organisation_id" |
|
|
|
t.bigint "managing_organisation_id" |
|
|
|
t.bigint "managing_organisation_id" |
|
|
|
t.integer "renttype" |
|
|
|
t.integer "renttype" |
|
|
|
@ -305,6 +305,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.integer "duplicate_set_id" |
|
|
|
t.integer "duplicate_set_id" |
|
|
|
t.integer "nationality_all" |
|
|
|
t.integer "nationality_all" |
|
|
|
t.integer "nationality_all_group" |
|
|
|
t.integer "nationality_all_group" |
|
|
|
|
|
|
|
t.integer "reasonother_value_check" |
|
|
|
t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id" |
|
|
|
t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id" |
|
|
|
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" |
|
|
|
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" |
|
|
|
t.index ["location_id"], name: "index_lettings_logs_on_location_id" |
|
|
|
t.index ["location_id"], name: "index_lettings_logs_on_location_id" |
|
|
|
@ -355,7 +356,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.string "old_id" |
|
|
|
t.string "old_id" |
|
|
|
t.string "old_visible_id" |
|
|
|
t.string "old_visible_id" |
|
|
|
t.string "mobility_type" |
|
|
|
t.string "mobility_type" |
|
|
|
t.datetime "startdate" |
|
|
|
t.datetime "startdate", precision: nil |
|
|
|
t.string "location_admin_district" |
|
|
|
t.string "location_admin_district" |
|
|
|
t.boolean "confirmed" |
|
|
|
t.boolean "confirmed" |
|
|
|
t.boolean "is_la_inferred" |
|
|
|
t.boolean "is_la_inferred" |
|
|
|
@ -555,7 +556,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.integer "stairbought" |
|
|
|
t.integer "stairbought" |
|
|
|
t.integer "stairowned" |
|
|
|
t.integer "stairowned" |
|
|
|
t.decimal "mrent", precision: 10, scale: 2 |
|
|
|
t.decimal "mrent", precision: 10, scale: 2 |
|
|
|
t.datetime "exdate" |
|
|
|
t.datetime "exdate", precision: nil |
|
|
|
t.integer "exday" |
|
|
|
t.integer "exday" |
|
|
|
t.integer "exmonth" |
|
|
|
t.integer "exmonth" |
|
|
|
t.integer "exyear" |
|
|
|
t.integer "exyear" |
|
|
|
@ -591,7 +592,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.integer "wchair" |
|
|
|
t.integer "wchair" |
|
|
|
t.integer "income2_value_check" |
|
|
|
t.integer "income2_value_check" |
|
|
|
t.integer "armedforcesspouse" |
|
|
|
t.integer "armedforcesspouse" |
|
|
|
t.datetime "hodate" |
|
|
|
t.datetime "hodate", precision: nil |
|
|
|
t.integer "hoday" |
|
|
|
t.integer "hoday" |
|
|
|
t.integer "homonth" |
|
|
|
t.integer "homonth" |
|
|
|
t.integer "hoyear" |
|
|
|
t.integer "hoyear" |
|
|
|
@ -709,8 +710,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.string "name" |
|
|
|
t.string "name" |
|
|
|
t.bigint "organisation_id" |
|
|
|
t.bigint "organisation_id" |
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
t.integer "sign_in_count", default: 0, null: false |
|
|
|
t.datetime "current_sign_in_at" |
|
|
|
t.datetime "current_sign_in_at", precision: nil |
|
|
|
t.datetime "last_sign_in_at" |
|
|
|
t.datetime "last_sign_in_at", precision: nil |
|
|
|
t.string "current_sign_in_ip" |
|
|
|
t.string "current_sign_in_ip" |
|
|
|
t.string "last_sign_in_ip" |
|
|
|
t.string "last_sign_in_ip" |
|
|
|
t.integer "role" |
|
|
|
t.integer "role" |
|
|
|
@ -718,7 +719,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.string "phone" |
|
|
|
t.string "phone" |
|
|
|
t.integer "failed_attempts", default: 0 |
|
|
|
t.integer "failed_attempts", default: 0 |
|
|
|
t.string "unlock_token" |
|
|
|
t.string "unlock_token" |
|
|
|
t.datetime "locked_at" |
|
|
|
t.datetime "locked_at", precision: nil |
|
|
|
t.boolean "is_dpo", default: false |
|
|
|
t.boolean "is_dpo", default: false |
|
|
|
t.boolean "is_key_contact", default: false |
|
|
|
t.boolean "is_key_contact", default: false |
|
|
|
t.integer "second_factor_attempts_count", default: 0 |
|
|
|
t.integer "second_factor_attempts_count", default: 0 |
|
|
|
@ -726,12 +727,12 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_30_084707) do |
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
t.string "encrypted_otp_secret_key_iv" |
|
|
|
t.string "encrypted_otp_secret_key_salt" |
|
|
|
t.string "encrypted_otp_secret_key_salt" |
|
|
|
t.string "direct_otp" |
|
|
|
t.string "direct_otp" |
|
|
|
t.datetime "direct_otp_sent_at" |
|
|
|
t.datetime "direct_otp_sent_at", precision: nil |
|
|
|
t.datetime "totp_timestamp", precision: nil |
|
|
|
t.datetime "totp_timestamp", precision: nil |
|
|
|
t.boolean "active", default: true |
|
|
|
t.boolean "active", default: true |
|
|
|
t.string "confirmation_token" |
|
|
|
t.string "confirmation_token" |
|
|
|
t.datetime "confirmed_at" |
|
|
|
t.datetime "confirmed_at", precision: nil |
|
|
|
t.datetime "confirmation_sent_at" |
|
|
|
t.datetime "confirmation_sent_at", precision: nil |
|
|
|
t.string "unconfirmed_email" |
|
|
|
t.string "unconfirmed_email" |
|
|
|
t.boolean "initial_confirmation_sent" |
|
|
|
t.boolean "initial_confirmation_sent" |
|
|
|
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true |
|
|
|
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true |
|
|
|
|