Skip to content

Commit

Permalink
generated scaffold and removed lingering files
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriousLlama committed Jan 23, 2024
1 parent 03a7a3f commit 521827e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 313 deletions.
5 changes: 1 addition & 4 deletions source/backend/entities/PimsBaseContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5598,6 +5598,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
entity.Property(e => e.FileNumber).HasComment("The (ARCS/ORCS) number identifying the Property File.");
entity.Property(e => e.FileNumberSuffix).HasComment("A suffix to distinguish between Property Files with the same number.");
entity.Property(e => e.GeneralLocation).HasComment("Descriptive location of the property, primarily for H120 activities.");
entity.Property(e => e.IsDisposed).HasComment("Has the property currently in disposition status? This infers that the property was once owned by the Ministry but has since ceased to retain ownership of the property.");
entity.Property(e => e.IsOwned)
.HasDefaultValue(true)
.HasComment("Is the property currently owned?");
Expand Down Expand Up @@ -5642,8 +5643,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
entity.HasOne(d => d.PphStatusTypeCodeNavigation).WithMany(p => p.PimsProperties).HasConstraintName("PIM_PPHSTT_PIM_PRPRTY_FK");
entity.HasOne(d => d.PropMgmtOrg).WithMany(p => p.PimsProperties).HasConstraintName("PIM_ORG_PIM_PRPRTY_FK");
entity.HasOne(d => d.PropertyAreaUnitTypeCodeNavigation).WithMany(p => p.PimsProperties).HasConstraintName("PIM_ARUNIT_PIM_PRPRTY_FK");
entity.HasOne(d => d.PropertyClassificationTypeCodeNavigation).WithMany(p => p.PimsProperties)
Expand All @@ -5654,8 +5653,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("PIM_PIDSRT_PIM_PRPRTY_FK");
entity.HasOne(d => d.PropertyManager).WithMany(p => p.PimsProperties).HasConstraintName("PIM_PERSON_PIM_PRPRTY_FK");
entity.HasOne(d => d.PropertyStatusTypeCodeNavigation).WithMany(p => p.PimsProperties)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("PIM_PRPSTS_PIM_PRPRTY_FK");
Expand Down
3 changes: 0 additions & 3 deletions source/backend/entities/ef/PimsOrganization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ public partial class PimsOrganization
[InverseProperty("Organization")]
public virtual ICollection<PimsPropActInvolvedParty> PimsPropActInvolvedParties { get; set; } = new List<PimsPropActInvolvedParty>();

[InverseProperty("PropMgmtOrg")]
public virtual ICollection<PimsProperty> PimsProperties { get; set; } = new List<PimsProperty>();

[InverseProperty("ServiceProviderOrg")]
public virtual ICollection<PimsPropertyActivity> PimsPropertyActivities { get; set; } = new List<PimsPropertyActivity>();

Expand Down
3 changes: 0 additions & 3 deletions source/backend/entities/ef/PimsPerson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ public partial class PimsPerson
[InverseProperty("Person")]
public virtual ICollection<PimsPropActMinContact> PimsPropActMinContacts { get; set; } = new List<PimsPropActMinContact>();

[InverseProperty("PropertyManager")]
public virtual ICollection<PimsProperty> PimsProperties { get; set; } = new List<PimsProperty>();

[InverseProperty("ServiceProviderPerson")]
public virtual ICollection<PimsPropertyActivity> PimsPropertyActivities { get; set; } = new List<PimsPropertyActivity>();

Expand Down
71 changes: 0 additions & 71 deletions source/backend/entities/ef/PimsPropPropClassificationHist.cs

This file was deleted.

22 changes: 6 additions & 16 deletions source/backend/entities/ef/PimsProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ namespace Pims.Dal.Entities;
[Index("PropertyAreaUnitTypeCode", Name = "PRPRTY_PROPERTY_AREA_UNIT_TYPE_CODE_IDX")]
[Index("PropertyClassificationTypeCode", Name = "PRPRTY_PROPERTY_CLASSIFICATION_TYPE_CODE_IDX")]
[Index("PropertyDataSourceTypeCode", Name = "PRPRTY_PROPERTY_DATA_SOURCE_TYPE_CODE_IDX")]
[Index("PropertyManagerId", Name = "PRPRTY_PROPERTY_MANAGER_ID_IDX")]
[Index("PropertyStatusTypeCode", Name = "PRPRTY_PROPERTY_STATUS_TYPE_CODE_IDX")]
[Index("PropertyTypeCode", Name = "PRPRTY_PROPERTY_TYPE_CODE_IDX")]
[Index("PropMgmtOrgId", Name = "PRPRTY_PROP_MGMT_ORG_ID_IDX")]
[Index("RegionCode", Name = "PRPRTY_REGION_CODE_IDX")]
[Index("SurplusDeclarationTypeCode", Name = "PRPRTY_SURPLUS_DECLARATION_TYPE_CODE_IDX")]
[Index("SurveyPlanNumber", Name = "PRPRTY_SURVEY_PLAN_NUMBER_IDX")]
Expand All @@ -35,12 +33,6 @@ public partial class PimsProperty
[Column("PROPERTY_ID")]
public long PropertyId { get; set; }

[Column("PROPERTY_MANAGER_ID")]
public long? PropertyManagerId { get; set; }

[Column("PROP_MGMT_ORG_ID")]
public long? PropMgmtOrgId { get; set; }

[Required]
[Column("PROPERTY_TYPE_CODE")]
[StringLength(20)]
Expand Down Expand Up @@ -225,6 +217,12 @@ public partial class PimsProperty
[Column("IS_OWNED")]
public bool IsOwned { get; set; }

/// <summary>
/// Has the property currently in disposition status? This infers that the property was once owned by the Ministry but has since ceased to retain ownership of the property.
/// </summary>
[Column("IS_DISPOSED")]
public bool IsDisposed { get; set; }

/// <summary>
/// Is this a property of interest to the Ministry?
/// </summary>
Expand Down Expand Up @@ -417,10 +415,6 @@ public partial class PimsProperty
[InverseProperty("PimsProperties")]
public virtual PimsPphStatusType PphStatusTypeCodeNavigation { get; set; }

[ForeignKey("PropMgmtOrgId")]
[InverseProperty("PimsProperties")]
public virtual PimsOrganization PropMgmtOrg { get; set; }

[ForeignKey("PropertyAreaUnitTypeCode")]
[InverseProperty("PimsProperties")]
public virtual PimsAreaUnitType PropertyAreaUnitTypeCodeNavigation { get; set; }
Expand All @@ -433,10 +427,6 @@ public partial class PimsProperty
[InverseProperty("PimsProperties")]
public virtual PimsDataSourceType PropertyDataSourceTypeCodeNavigation { get; set; }

[ForeignKey("PropertyManagerId")]
[InverseProperty("PimsProperties")]
public virtual PimsPerson PropertyManager { get; set; }

[ForeignKey("PropertyStatusTypeCode")]
[InverseProperty("PimsProperties")]
public virtual PimsPropertyStatusType PropertyStatusTypeCodeNavigation { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions source/backend/entities/ef/PimsPropertyBoundaryVw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public partial class PimsPropertyBoundaryVw
[Column("IS_OWNED")]
public bool IsOwned { get; set; }

[Column("IS_DISPOSED")]
public bool IsDisposed { get; set; }

[Column("IS_PROPERTY_OF_INTEREST")]
public bool IsPropertyOfInterest { get; set; }

Expand Down
134 changes: 0 additions & 134 deletions source/backend/entities/ef/PimsPropertyDispositionFile.cs

This file was deleted.

Loading

0 comments on commit 521827e

Please sign in to comment.