|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[8.1].define(version: 2026_04_28_080729) do |
| 13 | +ActiveRecord::Schema[8.1].define(version: 2026_04_22_121000) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pg_catalog.plpgsql" |
16 | 16 | enable_extension "pg_trgm" |
|
162 | 162 | t.bigint "class_import_id", null: false |
163 | 163 | t.bigint "parent_relationship_id", null: false |
164 | 164 | t.index ["class_import_id", "parent_relationship_id"], name: "idx_on_class_import_id_parent_relationship_id_8225058195", unique: true |
165 | | - t.index ["parent_relationship_id", "class_import_id"], name: "idx_on_parent_relationship_id_class_import_id_d7c05d6c2c", unique: true |
166 | 165 | end |
167 | 166 |
|
168 | 167 | create_table "class_imports_parents", id: false, force: :cascade do |t| |
|
220 | 219 | t.bigint "cohort_import_id", null: false |
221 | 220 | t.bigint "parent_relationship_id", null: false |
222 | 221 | t.index ["cohort_import_id", "parent_relationship_id"], name: "idx_on_cohort_import_id_parent_relationship_id_c65e20d1f8", unique: true |
223 | | - t.index ["parent_relationship_id", "cohort_import_id"], name: "idx_on_parent_relationship_id_cohort_import_id_40fb9846d6", unique: true |
224 | 222 | end |
225 | 223 |
|
226 | 224 | create_table "cohort_imports_parents", id: false, force: :cascade do |t| |
|
457 | 455 | t.bigint "immunisation_import_id", null: false |
458 | 456 | t.bigint "vaccination_record_id", null: false |
459 | 457 | t.index ["immunisation_import_id", "vaccination_record_id"], name: "idx_on_immunisation_import_id_vaccination_record_id_588e859772", unique: true |
460 | | - t.index ["vaccination_record_id", "immunisation_import_id"], name: "idx_on_vaccination_record_id_immunisation_import_id_813c516ad7", unique: true |
461 | 458 | end |
462 | 459 |
|
463 | 460 | create_table "important_notices", force: :cascade do |t| |
|
760 | 757 | t.datetime "invalidated_at" |
761 | 758 | t.string "local_authority_mhclg_code" |
762 | 759 | t.string "nhs_number" |
| 760 | + t.datetime "nhs_number_first_added_at" |
763 | 761 | t.jsonb "pending_changes", default: {}, null: false |
764 | 762 | t.string "preferred_family_name" |
765 | 763 | t.string "preferred_given_name" |
|
781 | 779 | t.index ["id"], name: "index_patients_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
782 | 780 | t.index ["local_authority_mhclg_code"], name: "index_patients_on_local_authority_mhclg_code" |
783 | 781 | t.index ["nhs_number"], name: "index_patients_on_nhs_number", unique: true |
| 782 | + t.index ["nhs_number_first_added_at"], name: "index_patients_on_nhs_number_first_added_at" |
784 | 783 | t.index ["school_id"], name: "index_patients_on_school_id" |
785 | 784 | end |
786 | 785 |
|
|
0 commit comments