diff --git a/TramsDataApi/DatabaseModels/LegacyTramsDbContext.cs b/TramsDataApi/DatabaseModels/LegacyTramsDbContext.cs index 74d1ac24e..750a325fa 100644 --- a/TramsDataApi/DatabaseModels/LegacyTramsDbContext.cs +++ b/TramsDataApi/DatabaseModels/LegacyTramsDbContext.cs @@ -1652,6 +1652,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .HasColumnName("URN at time of the section 8 inspection"); entity.Property(e => e.WebLink).HasColumnName("Web link"); + + entity.Property(e => e.UngradedInspectionOverallOutcome).HasColumnName("Ungraded inspection overall outcome"); }); modelBuilder.Entity(entity => diff --git a/TramsDataApi/DatabaseModels/MisEstablishments.cs b/TramsDataApi/DatabaseModels/MisEstablishments.cs index d3214e3fe..195e48359 100644 --- a/TramsDataApi/DatabaseModels/MisEstablishments.cs +++ b/TramsDataApi/DatabaseModels/MisEstablishments.cs @@ -45,7 +45,7 @@ public partial class MisEstablishments public int? LaestabAtTimeOfLatestFullInspection { get; set; } public string SchoolNameAtTimeOfLatestFullInspection { get; set; } public string SchoolTypeAtTimeOfLatestFullInspection { get; set; } - public int? OverallEffectiveness { get; set; } + public string OverallEffectiveness { get; set; } public string CategoryOfConcern { get; set; } public int? QualityOfEducation { get; set; } public int? BehaviourAndAttitudes { get; set; } @@ -72,5 +72,6 @@ public partial class MisEstablishments public string PreviousSafeguardingIsEffective { get; set; } public int? PreviousEarlyYearsProvisionWhereApplicable { get; set; } public string PreviousSixthFormProvisionWhereApplicable { get; set; } + public string UngradedInspectionOverallOutcome { get; set; } } } diff --git a/TramsDataApi/Factories/MISEstablishmentResponseFactory.cs b/TramsDataApi/Factories/MISEstablishmentResponseFactory.cs index e424462e5..5cf1fb1f7 100644 --- a/TramsDataApi/Factories/MISEstablishmentResponseFactory.cs +++ b/TramsDataApi/Factories/MISEstablishmentResponseFactory.cs @@ -91,7 +91,8 @@ public static MISEstablishmentResponse Create(MisEstablishments misEstablishment misEstablishments.PreviousEffectivenessOfLeadershipAndManagement.ToString(), PreviousIsSafeguardingEffective = misEstablishments.PreviousSafeguardingIsEffective, PreviousEarlyYearsProvision = misEstablishments.PreviousEarlyYearsProvisionWhereApplicable.ToString(), - PreviousSixthFormProvision = misEstablishments.PreviousSixthFormProvisionWhereApplicable + PreviousSixthFormProvision = misEstablishments.PreviousSixthFormProvisionWhereApplicable, + UngradedInspectionOverallOutcome = misEstablishments.UngradedInspectionOverallOutcome }; } } diff --git a/TramsDataApi/ResponseModels/MISEstablishmentResponse.cs b/TramsDataApi/ResponseModels/MISEstablishmentResponse.cs index c497fe4f1..e4cfbd05a 100644 --- a/TramsDataApi/ResponseModels/MISEstablishmentResponse.cs +++ b/TramsDataApi/ResponseModels/MISEstablishmentResponse.cs @@ -68,5 +68,6 @@ public class MISEstablishmentResponse public string PreviousIsSafeguardingEffective { get; set; } public string PreviousEarlyYearsProvision { get; set; } public string PreviousSixthFormProvision { get; set; } + public string UngradedInspectionOverallOutcome { get; set; } } } \ No newline at end of file