|
|
@ -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: 2022_06_17_102313) do |
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_06_30_154441) 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" |
|
|
|
|
|
|
|
|
|
|
@ -191,15 +191,17 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_17_102313) do |
|
|
|
t.integer "joint" |
|
|
|
t.integer "joint" |
|
|
|
t.bigint "created_by_id" |
|
|
|
t.bigint "created_by_id" |
|
|
|
t.integer "illness_type_0" |
|
|
|
t.integer "illness_type_0" |
|
|
|
t.integer "retirement_value_check" |
|
|
|
|
|
|
|
t.integer "tshortfall_known" |
|
|
|
t.integer "tshortfall_known" |
|
|
|
t.integer "sheltered" |
|
|
|
t.integer "sheltered" |
|
|
|
|
|
|
|
t.integer "retirement_value_check" |
|
|
|
t.integer "pregnancy_value_check" |
|
|
|
t.integer "pregnancy_value_check" |
|
|
|
t.integer "hhtype" |
|
|
|
t.integer "hhtype" |
|
|
|
t.integer "new_old" |
|
|
|
t.integer "new_old" |
|
|
|
t.integer "vacdays" |
|
|
|
t.integer "vacdays" |
|
|
|
t.bigint "scheme_id" |
|
|
|
t.bigint "scheme_id" |
|
|
|
|
|
|
|
t.bigint "location_id" |
|
|
|
t.index ["created_by_id"], name: "index_case_logs_on_created_by_id" |
|
|
|
t.index ["created_by_id"], name: "index_case_logs_on_created_by_id" |
|
|
|
|
|
|
|
t.index ["location_id"], name: "index_case_logs_on_location_id" |
|
|
|
t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" |
|
|
|
t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" |
|
|
|
t.index ["old_id"], name: "index_case_logs_on_old_id", unique: true |
|
|
|
t.index ["old_id"], name: "index_case_logs_on_old_id", unique: true |
|
|
|
t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id" |
|
|
|
t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id" |
|
|
@ -251,7 +253,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_17_102313) do |
|
|
|
|
|
|
|
|
|
|
|
create_table "logs_exports", force: :cascade do |t| |
|
|
|
create_table "logs_exports", force: :cascade do |t| |
|
|
|
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" } |
|
|
|
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" } |
|
|
|
t.datetime "started_at", null: false |
|
|
|
t.datetime "started_at", precision: nil, null: false |
|
|
|
t.integer "base_number", default: 1, null: false |
|
|
|
t.integer "base_number", default: 1, null: false |
|
|
|
t.integer "increment_number", default: 1, null: false |
|
|
|
t.integer "increment_number", default: 1, null: false |
|
|
|
t.boolean "empty_export", default: false, null: false |
|
|
|
t.boolean "empty_export", default: false, null: false |
|
|
@ -367,6 +369,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_17_102313) do |
|
|
|
t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id" |
|
|
|
t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_foreign_key "case_logs", "locations" |
|
|
|
add_foreign_key "case_logs", "schemes" |
|
|
|
add_foreign_key "case_logs", "schemes" |
|
|
|
add_foreign_key "locations", "schemes" |
|
|
|
add_foreign_key "locations", "schemes" |
|
|
|
add_foreign_key "schemes", "organisations" |
|
|
|
add_foreign_key "schemes", "organisations" |
|
|
|