|
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| |
|
221 | 220 | t.bigint "cohort_import_id", null: false |
222 | 221 | t.bigint "parent_relationship_id", null: false |
223 | 222 | t.index ["cohort_import_id", "parent_relationship_id"], name: "idx_on_cohort_import_id_parent_relationship_id_c65e20d1f8", unique: true |
224 | | - t.index ["parent_relationship_id", "cohort_import_id"], name: "idx_on_parent_relationship_id_cohort_import_id_40fb9846d6", unique: true |
225 | 223 | end |
226 | 224 |
|
227 | 225 | create_table "cohort_imports_parents", id: false, force: :cascade do |t| |
|
460 | 458 | t.bigint "immunisation_import_id", null: false |
461 | 459 | t.bigint "vaccination_record_id", null: false |
462 | 460 | t.index ["immunisation_import_id", "vaccination_record_id"], name: "idx_on_immunisation_import_id_vaccination_record_id_588e859772", unique: true |
463 | | - t.index ["vaccination_record_id", "immunisation_import_id"], name: "idx_on_vaccination_record_id_immunisation_import_id_813c516ad7", unique: true |
464 | 461 | end |
465 | 462 |
|
466 | 463 | create_table "important_notices", force: :cascade do |t| |
|
763 | 760 | t.datetime "invalidated_at" |
764 | 761 | t.string "local_authority_mhclg_code" |
765 | 762 | t.string "nhs_number" |
| 763 | + t.datetime "nhs_number_first_added_at" |
766 | 764 | t.jsonb "pending_changes", default: {}, null: false |
767 | 765 | t.string "preferred_family_name" |
768 | 766 | t.string "preferred_given_name" |
|
784 | 782 | t.index ["id"], name: "index_patients_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
785 | 783 | t.index ["local_authority_mhclg_code"], name: "index_patients_on_local_authority_mhclg_code" |
786 | 784 | t.index ["nhs_number"], name: "index_patients_on_nhs_number", unique: true |
| 785 | + t.index ["nhs_number_first_added_at"], name: "index_patients_on_nhs_number_first_added_at" |
787 | 786 | t.index ["school_id"], name: "index_patients_on_school_id" |
788 | 787 | end |
789 | 788 |
|
|
0 commit comments