|
|
@ -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_07_19_122509) do |
|
|
|
ActiveRecord::Schema[7.0].define(version: 2022_07_20_082855) 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" |
|
|
|
|
|
|
|
|
|
|
@ -200,10 +200,12 @@ ActiveRecord::Schema[7.0].define(version: 2022_07_19_122509) do |
|
|
|
t.integer "vacdays" |
|
|
|
t.integer "vacdays" |
|
|
|
t.bigint "scheme_id" |
|
|
|
t.bigint "scheme_id" |
|
|
|
t.bigint "location_id" |
|
|
|
t.bigint "location_id" |
|
|
|
|
|
|
|
t.bigint "organisations_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 ["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 ["organisations_id"], name: "index_case_logs_on_organisations_id" |
|
|
|
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" |
|
|
|
t.index ["scheme_id"], name: "index_case_logs_on_scheme_id" |
|
|
|
t.index ["scheme_id"], name: "index_case_logs_on_scheme_id" |
|
|
|
end |
|
|
|
end |
|
|
@ -379,9 +381,10 @@ ActiveRecord::Schema[7.0].define(version: 2022_07_19_122509) do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
add_foreign_key "case_logs", "locations" |
|
|
|
add_foreign_key "case_logs", "locations" |
|
|
|
add_foreign_key "case_logs", "schemes" |
|
|
|
add_foreign_key "case_logs", "organisations", column: "owning_organisation_id", on_delete: :cascade |
|
|
|
|
|
|
|
add_foreign_key "case_logs", "schemes", on_delete: :cascade |
|
|
|
add_foreign_key "locations", "schemes" |
|
|
|
add_foreign_key "locations", "schemes" |
|
|
|
add_foreign_key "schemes", "organisations", column: "managing_organisation_id", on_delete: :cascade |
|
|
|
add_foreign_key "schemes", "organisations", column: "managing_organisation_id" |
|
|
|
add_foreign_key "schemes", "organisations", column: "owning_organisation_id", on_delete: :cascade |
|
|
|
add_foreign_key "schemes", "organisations", column: "owning_organisation_id", on_delete: :cascade |
|
|
|
add_foreign_key "users", "organisations", on_delete: :cascade |
|
|
|
add_foreign_key "users", "organisations", on_delete: :cascade |
|
|
|
end |
|
|
|
end |
|
|
|