From dc6909a4541392545b69c277d150b70609496c98 Mon Sep 17 00:00:00 2001 From: Manuel Rodriguez Date: Thu, 19 Dec 2024 13:22:46 -0800 Subject: [PATCH] generated scaffold --- source/backend/entities/PimsBaseContext.cs | 375 ++++++++++++++++-- .../entities/ef/PimsAcqChklstSectionType.cs | 15 + .../entities/ef/PimsAcqFileAcqFlTakeTyp.cs | 131 ++++++ .../ef/PimsAcqFileAcqFlTakeTypHist.cs | 83 ++++ .../entities/ef/PimsAcqFileAcqProgress.cs | 131 ++++++ .../entities/ef/PimsAcqFileAcqProgressHist.cs | 83 ++++ .../entities/ef/PimsAcqFileAppraisalType.cs | 79 ++++ .../entities/ef/PimsAcqFileExpropRiskType.cs | 79 ++++ .../entities/ef/PimsAcqFileLglSrvyType.cs | 79 ++++ .../entities/ef/PimsAcqFileProgessType.cs | 79 ++++ .../entities/ef/PimsAcqFileTakeType.cs | 79 ++++ .../entities/ef/PimsAcquisitionFile.cs | 42 ++ .../ef/PimsAcquisitionFileDocument.cs | 3 - .../entities/ef/PimsAcquisitionFileHist.cs | 12 + .../ef/PimsDispositionFileDocument.cs | 3 - .../backend/entities/ef/PimsDocumentQueue.cs | 63 --- .../entities/ef/PimsDocumentQueueHist.cs | 20 - .../backend/entities/ef/PimsLeaseDocument.cs | 3 - .../backend/entities/ef/PimsProjectPerson.cs | 1 - .../entities/ef/PimsProjectPersonHist.cs | 1 - source/backend/entities/ef/PimsProperty.cs | 2 +- .../ef/PimsPropertyActivityDocument.cs | 3 - .../entities/ef/PimsResearchFileDocument.cs | 3 - 23 files changed, 1240 insertions(+), 129 deletions(-) create mode 100644 source/backend/entities/ef/PimsAcqFileAcqFlTakeTyp.cs create mode 100644 source/backend/entities/ef/PimsAcqFileAcqFlTakeTypHist.cs create mode 100644 source/backend/entities/ef/PimsAcqFileAcqProgress.cs create mode 100644 source/backend/entities/ef/PimsAcqFileAcqProgressHist.cs create mode 100644 source/backend/entities/ef/PimsAcqFileAppraisalType.cs create mode 100644 source/backend/entities/ef/PimsAcqFileExpropRiskType.cs create mode 100644 source/backend/entities/ef/PimsAcqFileLglSrvyType.cs create mode 100644 source/backend/entities/ef/PimsAcqFileProgessType.cs create mode 100644 source/backend/entities/ef/PimsAcqFileTakeType.cs diff --git a/source/backend/entities/PimsBaseContext.cs b/source/backend/entities/PimsBaseContext.cs index 75a183c72b..2d81d1215b 100644 --- a/source/backend/entities/PimsBaseContext.cs +++ b/source/backend/entities/PimsBaseContext.cs @@ -26,6 +26,24 @@ public PimsBaseContext(DbContextOptions options) public virtual DbSet PimsAcqChklstSectionTypes { get; set; } + public virtual DbSet PimsAcqFileAcqFlTakeTyps { get; set; } + + public virtual DbSet PimsAcqFileAcqFlTakeTypHists { get; set; } + + public virtual DbSet PimsAcqFileAcqProgresses { get; set; } + + public virtual DbSet PimsAcqFileAcqProgressHists { get; set; } + + public virtual DbSet PimsAcqFileAppraisalTypes { get; set; } + + public virtual DbSet PimsAcqFileExpropRiskTypes { get; set; } + + public virtual DbSet PimsAcqFileLglSrvyTypes { get; set; } + + public virtual DbSet PimsAcqFileProgessTypes { get; set; } + + public virtual DbSet PimsAcqFileTakeTypes { get; set; } + public virtual DbSet PimsAcqFlTeamProfileTypes { get; set; } public virtual DbSet PimsAcqPhysFileStatusTypes { get; set; } @@ -782,11 +800,21 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) }); entity.Property(e => e.AcqChklstSectionTypeCode).HasComment("Checklist section code value."); - entity.Property(e => e.ConcurrencyControlNumber).HasDefaultValue(1L); - entity.Property(e => e.DbCreateTimestamp).HasDefaultValueSql("(getutcdate())"); - entity.Property(e => e.DbCreateUserid).HasDefaultValueSql("(user_name())"); - entity.Property(e => e.DbLastUpdateTimestamp).HasDefaultValueSql("(getutcdate())"); - entity.Property(e => e.DbLastUpdateUserid).HasDefaultValueSql("(user_name())"); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); entity.Property(e => e.Description).HasComment("Checklist section descriptive text presented to the user."); entity.Property(e => e.DisplayOrder).HasComment("Specifies the order that the checklist sections are presented to the user."); entity.Property(e => e.EffectiveDate) @@ -795,6 +823,296 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.ExpiryDate).HasComment("Date the checklist section is removed from the input form."); }); + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileAcqFlTakeTypeId).HasName("AQFATT_PK"); + + entity.ToTable("PIMS_ACQ_FILE_ACQ_FL_TAKE_TYP", tb => + { + tb.HasTrigger("PIMS_AQFATT_A_S_IUD_TR"); + tb.HasTrigger("PIMS_AQFATT_I_S_I_TR"); + tb.HasTrigger("PIMS_AQFATT_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileAcqFlTakeTypeId) + .HasDefaultValueSql("(NEXT VALUE FOR [PIMS_ACQ_FILE_ACQ_FL_TAKE_TYPE_ID_SEQ])") + .HasComment("Generated surrogate primary key."); + entity.Property(e => e.AcqFileTakeTypeCode).HasComment("Foreign key to the PIMS_ACQ_FILE_TAKE_TYPE table."); + entity.Property(e => e.AcquisitionFileId).HasComment("Foreign key to the PIMS_ACQUISITION_FILE table."); + entity.Property(e => e.AppCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the user created the record."); + entity.Property(e => e.AppCreateUserDirectory) + .HasDefaultValueSql("(user_name())") + .HasComment("The directory of the user account that created the record."); + entity.Property(e => e.AppCreateUserGuid).HasComment("The GUID of the user account that created the record."); + entity.Property(e => e.AppCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user account that created the record."); + entity.Property(e => e.AppLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the user updated the record."); + entity.Property(e => e.AppLastUpdateUserDirectory) + .HasDefaultValueSql("(user_name())") + .HasComment("The directory of the user account that updated the record."); + entity.Property(e => e.AppLastUpdateUserGuid).HasComment("The GUID of the user account that updated the record."); + entity.Property(e => e.AppLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user account that updated the record."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + + entity.HasOne(d => d.AcqFileTakeTypeCodeNavigation).WithMany(p => p.PimsAcqFileAcqFlTakeTyps).HasConstraintName("PIM_AFTKTY_PIM_AQFATT_FK"); + + entity.HasOne(d => d.AcquisitionFile).WithMany(p => p.PimsAcqFileAcqFlTakeTyps).HasConstraintName("PIM_ACQNFL_PIM_AQFATT_FK"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileAcqFlTakeTypHistId).HasName("PIMS_AQFATT_H_PK"); + + entity.Property(e => e.AcqFileAcqFlTakeTypHistId).HasDefaultValueSql("(NEXT VALUE FOR [PIMS_ACQ_FILE_ACQ_FL_TAKE_TYP_H_ID_SEQ])"); + entity.Property(e => e.EffectiveDateHist).HasDefaultValueSql("(getutcdate())"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileAcqProgressId).HasName("AQFFLP_PK"); + + entity.ToTable("PIMS_ACQ_FILE_ACQ_PROGRESS", tb => + { + tb.HasTrigger("PIMS_AQFFLP_A_S_IUD_TR"); + tb.HasTrigger("PIMS_AQFFLP_I_S_I_TR"); + tb.HasTrigger("PIMS_AQFFLP_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileAcqProgressId) + .HasDefaultValueSql("(NEXT VALUE FOR [PIMS_ACQ_FILE_ACQ_PROGRESS_ID_SEQ])") + .HasComment("Generated surrogate primary key."); + entity.Property(e => e.AcqFileProgessTypeCode).HasComment("Foreign key to the PIMS_ACQUISITION_FILE table."); + entity.Property(e => e.AcquisitionFileId).HasComment("Foreign key to the PIMS_ACQUISITION_FILE table."); + entity.Property(e => e.AppCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the user created the record."); + entity.Property(e => e.AppCreateUserDirectory) + .HasDefaultValueSql("(user_name())") + .HasComment("The directory of the user account that created the record."); + entity.Property(e => e.AppCreateUserGuid).HasComment("The GUID of the user account that created the record."); + entity.Property(e => e.AppCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user account that created the record."); + entity.Property(e => e.AppLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the user updated the record."); + entity.Property(e => e.AppLastUpdateUserDirectory) + .HasDefaultValueSql("(user_name())") + .HasComment("The directory of the user account that updated the record."); + entity.Property(e => e.AppLastUpdateUserGuid).HasComment("The GUID of the user account that updated the record."); + entity.Property(e => e.AppLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user account that updated the record."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + + entity.HasOne(d => d.AcqFileProgessTypeCodeNavigation).WithMany(p => p.PimsAcqFileAcqProgresses).HasConstraintName("PIM_AFRPGT_PIM_AQFFLP_FK"); + + entity.HasOne(d => d.AcquisitionFile).WithMany(p => p.PimsAcqFileAcqProgresses).HasConstraintName("PIM_ACQNFL_PIM_AQFFLP_FK"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileAcqProgressHistId).HasName("PIMS_AQFFLP_H_PK"); + + entity.Property(e => e.AcqFileAcqProgressHistId).HasDefaultValueSql("(NEXT VALUE FOR [PIMS_ACQ_FILE_ACQ_PROGRESS_H_ID_SEQ])"); + entity.Property(e => e.EffectiveDateHist).HasDefaultValueSql("(getutcdate())"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileAppraisalTypeCode).HasName("AFAPPRT_PK"); + + entity.ToTable("PIMS_ACQ_FILE_APPRAISAL_TYPE", tb => + { + tb.HasComment("Codified values for the acquisition file appraisal type."); + tb.HasTrigger("PIMS_AFAPPRT_I_S_I_TR"); + tb.HasTrigger("PIMS_AFAPPRT_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileAppraisalTypeCode).HasComment("Code value of the acquisition file appraisal type."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + entity.Property(e => e.Description).HasComment("Description of the acquisition file appraisal type."); + entity.Property(e => e.DisplayOrder).HasComment("Designates a preferred presentation order of the code descriptions."); + entity.Property(e => e.IsDisabled).HasComment("Indicates if the code value is inactive."); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileExpropRiskTypeCode).HasName("AFEXRT_PK"); + + entity.ToTable("PIMS_ACQ_FILE_EXPROP_RISK_TYPE", tb => + { + tb.HasComment("Codified values for the acquisition file expropriation risk type."); + tb.HasTrigger("PIMS_AFEXRT_I_S_I_TR"); + tb.HasTrigger("PIMS_AFEXRT_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileExpropRiskTypeCode).HasComment("Code value of the acquisition file expropriation risk type."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + entity.Property(e => e.Description).HasComment("Description of the acquisition file expropriation risk type."); + entity.Property(e => e.DisplayOrder).HasComment("Designates a preferred presentation order of the code descriptions."); + entity.Property(e => e.IsDisabled).HasComment("Indicates if the code value is inactive."); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileLglSrvyTypeCode).HasName("AFLSVT_PK"); + + entity.ToTable("PIMS_ACQ_FILE_LGL_SRVY_TYPE", tb => + { + tb.HasComment("Codified values for the acquisition file legal survey type."); + tb.HasTrigger("PIMS_AFLSVT_I_S_I_TR"); + tb.HasTrigger("PIMS_AFLSVT_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileLglSrvyTypeCode).HasComment("Code value of the acquisition file legal survey type."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + entity.Property(e => e.Description).HasComment("Description of the acquisition file legal survey type."); + entity.Property(e => e.DisplayOrder).HasComment("Designates a preferred presentation order of the code descriptions."); + entity.Property(e => e.IsDisabled).HasComment("Indicates if the code value is inactive."); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileProgessTypeCode).HasName("AFRPGT_PK"); + + entity.ToTable("PIMS_ACQ_FILE_PROGESS_TYPE", tb => + { + tb.HasComment("Codified values for the acquisition file progress type."); + tb.HasTrigger("PIMS_AFRPGT_I_S_I_TR"); + tb.HasTrigger("PIMS_AFRPGT_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileProgessTypeCode).HasComment("Code value of the acquisition file progress type."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + entity.Property(e => e.Description).HasComment("Description of the acquisition file progress type."); + entity.Property(e => e.DisplayOrder).HasComment("Designates a preferred presentation order of the code descriptions."); + entity.Property(e => e.IsDisabled).HasComment("Indicates if the code value is inactive."); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.AcqFileTakeTypeCode).HasName("AFTKTY_PK"); + + entity.ToTable("PIMS_ACQ_FILE_TAKE_TYPE", tb => + { + tb.HasComment("Codified values for the acquisition file take type."); + tb.HasTrigger("PIMS_AFTKTY_I_S_I_TR"); + tb.HasTrigger("PIMS_AFTKTY_I_S_U_TR"); + }); + + entity.Property(e => e.AcqFileTakeTypeCode).HasComment("Code value of the acquisition file take type."); + entity.Property(e => e.ConcurrencyControlNumber) + .HasDefaultValue(1L) + .HasComment("Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o"); + entity.Property(e => e.DbCreateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created."); + entity.Property(e => e.DbCreateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created the record."); + entity.Property(e => e.DbLastUpdateTimestamp) + .HasDefaultValueSql("(getutcdate())") + .HasComment("The date and time the record was created or last updated."); + entity.Property(e => e.DbLastUpdateUserid) + .HasDefaultValueSql("(user_name())") + .HasComment("The user or proxy account that created or last updated the record."); + entity.Property(e => e.Description).HasComment("Description of the acquisition file take type."); + entity.Property(e => e.DisplayOrder).HasComment("Designates a preferred presentation order of the code descriptions."); + entity.Property(e => e.IsDisabled).HasComment("Indicates if the code value is inactive."); + }); + modelBuilder.Entity(entity => { entity.HasKey(e => e.AcqFlTeamProfileTypeCode).HasName("AQTPPT_PK"); @@ -898,6 +1216,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.AcquisitionFileId) .HasDefaultValueSql("(NEXT VALUE FOR [PIMS_ACQUISITION_FILE_ID_SEQ])") .HasComment("Generated surrogate primary key."); + entity.Property(e => e.AcqFileAppraisalTypeCode).HasComment("Foreign key to the PIMS_ACQ_FILE_APPRAISAL_TYPE table."); + entity.Property(e => e.AcqFileExpropRiskTypeCode).HasComment("Foreign key to the PIMS_ACQ_FILE_EXPROP_RISK_TYPE table."); + entity.Property(e => e.AcqFileLglSrvyTypeCode).HasComment("Foreign key to the PIMS_ACQ_FILE_LGL_SRVY_TYPE table."); entity.Property(e => e.AcqPhysFileStatusTypeCode).HasComment("Foreign key to the PIMS_ACQ_PHYS_FILE_STATUS_TYPE table."); entity.Property(e => e.AcquisitionFileStatusTypeCode).HasComment("Foreign key to the PIMS_ACQUISITION_FILE_STATUS_TYPE table."); entity.Property(e => e.AcquisitionFundingTypeCode).HasComment("Foreign key to the PIMS_ACQUISITION_FUNDING_TYPE table."); @@ -964,6 +1285,12 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.SubfileInterestTypeCode).HasComment("Foreign key to the PIMS_SUBFILE_INTEREST_TYPE table."); entity.Property(e => e.TotalAllowableCompensation).HasComment("The maximum allowable compensation for the acquisition file. This amount should not be exceeded by the total of all assiciated H120's."); + entity.HasOne(d => d.AcqFileAppraisalTypeCodeNavigation).WithMany(p => p.PimsAcquisitionFiles).HasConstraintName("PIM_AFAPPRT_PIM_ACQNFL_FK"); + + entity.HasOne(d => d.AcqFileExpropRiskTypeCodeNavigation).WithMany(p => p.PimsAcquisitionFiles).HasConstraintName("PIM_AFEXRT_PIM_ACQNFL_FK"); + + entity.HasOne(d => d.AcqFileLglSrvyTypeCodeNavigation).WithMany(p => p.PimsAcquisitionFiles).HasConstraintName("PIM_AFLSVT_PIM_ACQNFL_FK"); + entity.HasOne(d => d.AcqPhysFileStatusTypeCodeNavigation).WithMany(p => p.PimsAcquisitionFiles).HasConstraintName("PIM_ACQPFS_PIM_ACQNFL_FK"); entity.HasOne(d => d.AcquisitionFileStatusTypeCodeNavigation).WithMany(p => p.PimsAcquisitionFiles) @@ -3032,9 +3359,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.FileName) .HasDefaultValue("") .HasComment("Name of the file stored on Mayan EDMS."); - entity.Property(e => e.MayanId) - .HasDefaultValue(-1L) - .HasComment("Mayan-generated document number used for retrieval from Mayan EDMS."); + entity.Property(e => e.MayanId).HasComment("Mayan-generated document number used for retrieval from Mayan EDMS."); entity.HasOne(d => d.DocumentStatusTypeCodeNavigation).WithMany(p => p.PimsDocuments) .OnDelete(DeleteBehavior.ClientSetNull) @@ -3143,7 +3468,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.DocumentQueueId) .HasDefaultValueSql("(NEXT VALUE FOR [PIMS_DOCUMENT_QUEUE_ID_SEQ])") .HasComment("Generated surrogate primary key."); - entity.Property(e => e.AcquisitionFileDocumentId).HasComment("Foreign key to the PIMS_ACQUISITION_FILE_DOCUMENT table."); entity.Property(e => e.AppCreateTimestamp) .HasDefaultValueSql("(getutcdate())") .HasComment("The date and time the user created the record."); @@ -3180,7 +3504,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.DbLastUpdateUserid) .HasDefaultValueSql("(user_name())") .HasComment("The user or proxy account that created or last updated the record."); - entity.Property(e => e.DispositionFileDocumentId).HasComment("Foreign key to the PIMS_DISPOSITION_FILE_DOCUMENT table."); entity.Property(e => e.DocProcessEndDt).HasComment("When the document?s processing finishes, this will be populated"); entity.Property(e => e.DocProcessRetries).HasComment("The number of times that this document has been queued for upload."); entity.Property(e => e.DocProcessStartDt).HasComment("When the document is sent to the backend for processing, this will be populated."); @@ -3189,31 +3512,17 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.DocumentId).HasComment("Foreign key to the PIMS_DOCUMENT table."); entity.Property(e => e.DocumentMetadata).HasComment("Used to store JSON-encoded metadata that needs to be added to the document during upload."); entity.Property(e => e.DocumentQueueStatusTypeCode).HasComment("Code value that represents the current status of the document as it is processed by PIMS/MAYAN"); - entity.Property(e => e.FileName).HasComment("Name of the file to be stored on Mayan EDMS."); - entity.Property(e => e.LeaseDocumentId).HasComment("Foreign key to the PIMS_LEASE_DOCUMENT table."); entity.Property(e => e.MayanError).HasComment("If the upload process fails, the error corresponding to the failure will be displayed here."); - entity.Property(e => e.PropertyActivityDocumentId).HasComment("Foreign key to the PIMS_PROPERTY_ACTIVITY_DOCUMENT table."); - entity.Property(e => e.ResearchFileDocumentId).HasComment("Foreign key to the PIMS_RESEARCH_FILE_DOCUMENT table."); - - entity.HasOne(d => d.AcquisitionFileDocument).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_ACQDOC_PIM_DOCQUE_FK"); entity.HasOne(d => d.DataSourceTypeCodeNavigation).WithMany(p => p.PimsDocumentQueues) .OnDelete(DeleteBehavior.ClientSetNull) .HasConstraintName("PIM_PIDSRT_PIM_DOCQUE_FK"); - entity.HasOne(d => d.DispositionFileDocument).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_DSPDOC_PIM_DOCQUE_FK"); - entity.HasOne(d => d.DocumentNavigation).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_DOCMNT_PIM_DOCQUE_FK"); entity.HasOne(d => d.DocumentQueueStatusTypeCodeNavigation).WithMany(p => p.PimsDocumentQueues) .OnDelete(DeleteBehavior.ClientSetNull) .HasConstraintName("PIM_DOCQST_PIM_DOCQUE_FK"); - - entity.HasOne(d => d.LeaseDocument).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_LESDOC_PIM_DOCQUE_FK"); - - entity.HasOne(d => d.PropertyActivityDocument).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_PRACDO_PIM_DOCQUE_FK"); - - entity.HasOne(d => d.ResearchFileDocument).WithMany(p => p.PimsDocumentQueues).HasConstraintName("PIM_RFLDOC_PIM_DOCQUE_FK"); }); modelBuilder.Entity(entity => @@ -6127,9 +6436,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.ClientSetNull) .HasConstraintName("PIM_PROJCT_PIM_PRJPER_FK"); - entity.HasOne(d => d.ProjectPersonRoleTypeCodeNavigation).WithMany(p => p.PimsProjectPeople) - .OnDelete(DeleteBehavior.ClientSetNull) - .HasConstraintName("PIM_PRPRLT_PIM_PRJPER_FK"); + entity.HasOne(d => d.ProjectPersonRoleTypeCodeNavigation).WithMany(p => p.PimsProjectPeople).HasConstraintName("PIM_PRPRLT_PIM_PRJPER_FK"); }); modelBuilder.Entity(entity => @@ -6824,7 +7131,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.PropertyDataSourceEffectiveDate).HasComment("Date the property was officially registered"); entity.Property(e => e.PropertyDataSourceTypeCode).HasComment("Foreign key to the property data source type table."); entity.Property(e => e.PropertyStatusTypeCode).HasComment("Foreign key to the property status type table."); - entity.Property(e => e.PropertyTypeCode).HasComment("Foreign key to the proprty type table."); + entity.Property(e => e.PropertyTypeCode).HasComment("Foreign key to the property type table."); entity.Property(e => e.RegionCode).HasComment("Foreign key to the region table."); entity.Property(e => e.ReserveName).HasComment("Name of the Indian reserve."); entity.Property(e => e.SurplusDeclarationComment).HasComment("Comment regarding the surplus declaration"); @@ -8868,6 +9175,18 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.HasSequence("PIMS_ACCESS_REQUEST_ORGANIZATION_ID_SEQ") .HasMin(1L) .HasMax(2147483647L); + modelBuilder.HasSequence("PIMS_ACQ_FILE_ACQ_FL_TAKE_TYP_H_ID_SEQ") + .HasMin(1L) + .HasMax(2147483647L); + modelBuilder.HasSequence("PIMS_ACQ_FILE_ACQ_FL_TAKE_TYPE_ID_SEQ") + .HasMin(1L) + .HasMax(2147483647L); + modelBuilder.HasSequence("PIMS_ACQ_FILE_ACQ_PROGRESS_H_ID_SEQ") + .HasMin(1L) + .HasMax(2147483647L); + modelBuilder.HasSequence("PIMS_ACQ_FILE_ACQ_PROGRESS_ID_SEQ") + .HasMin(1L) + .HasMax(2147483647L); modelBuilder.HasSequence("PIMS_ACQUISITION_ACTIVITY_ID_SEQ") .HasMin(1L) .HasMax(2147483647L); diff --git a/source/backend/entities/ef/PimsAcqChklstSectionType.cs b/source/backend/entities/ef/PimsAcqChklstSectionType.cs index 250c4c2489..d9967875a4 100644 --- a/source/backend/entities/ef/PimsAcqChklstSectionType.cs +++ b/source/backend/entities/ef/PimsAcqChklstSectionType.cs @@ -46,20 +46,35 @@ public partial class PimsAcqChklstSectionType [Column("EXPIRY_DATE")] public DateOnly? ExpiryDate { get; set; } + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// [Column("CONCURRENCY_CONTROL_NUMBER")] public long ConcurrencyControlNumber { get; set; } + /// + /// The date and time the record was created. + /// [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] public DateTime DbCreateTimestamp { get; set; } + /// + /// The user or proxy account that created the record. + /// [Required] [Column("DB_CREATE_USERID")] [StringLength(30)] public string DbCreateUserid { get; set; } + /// + /// The date and time the record was created or last updated. + /// [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] public DateTime DbLastUpdateTimestamp { get; set; } + /// + /// The user or proxy account that created or last updated the record. + /// [Required] [Column("DB_LAST_UPDATE_USERID")] [StringLength(30)] diff --git a/source/backend/entities/ef/PimsAcqFileAcqFlTakeTyp.cs b/source/backend/entities/ef/PimsAcqFileAcqFlTakeTyp.cs new file mode 100644 index 0000000000..abcd8060a9 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileAcqFlTakeTyp.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +[Table("PIMS_ACQ_FILE_ACQ_FL_TAKE_TYP")] +[Index("AcquisitionFileId", Name = "AQFATT_ACQUISITION_FILE_ID_IDX")] +[Index("AcqFileTakeTypeCode", Name = "AQFATT_ACQ_FILE_TAKE_TYPE_CODE_IDX")] +public partial class PimsAcqFileAcqFlTakeTyp +{ + /// + /// Generated surrogate primary key. + /// + [Key] + [Column("ACQ_FILE_ACQ_FL_TAKE_TYPE_ID")] + public long AcqFileAcqFlTakeTypeId { get; set; } + + /// + /// Foreign key to the PIMS_ACQUISITION_FILE table. + /// + [Column("ACQUISITION_FILE_ID")] + public long? AcquisitionFileId { get; set; } + + /// + /// Foreign key to the PIMS_ACQ_FILE_TAKE_TYPE table. + /// + [Column("ACQ_FILE_TAKE_TYPE_CODE")] + [StringLength(20)] + public string AcqFileTakeTypeCode { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the user created the record. + /// + [Column("APP_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppCreateTimestamp { get; set; } + + /// + /// The user account that created the record. + /// + [Required] + [Column("APP_CREATE_USERID")] + [StringLength(30)] + public string AppCreateUserid { get; set; } + + /// + /// The GUID of the user account that created the record. + /// + [Column("APP_CREATE_USER_GUID")] + public Guid? AppCreateUserGuid { get; set; } + + /// + /// The directory of the user account that created the record. + /// + [Required] + [Column("APP_CREATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppCreateUserDirectory { get; set; } + + /// + /// The date and time the user updated the record. + /// + [Column("APP_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppLastUpdateTimestamp { get; set; } + + /// + /// The user account that updated the record. + /// + [Required] + [Column("APP_LAST_UPDATE_USERID")] + [StringLength(30)] + public string AppLastUpdateUserid { get; set; } + + /// + /// The GUID of the user account that updated the record. + /// + [Column("APP_LAST_UPDATE_USER_GUID")] + public Guid? AppLastUpdateUserGuid { get; set; } + + /// + /// The directory of the user account that updated the record. + /// + [Required] + [Column("APP_LAST_UPDATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppLastUpdateUserDirectory { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [ForeignKey("AcqFileTakeTypeCode")] + [InverseProperty("PimsAcqFileAcqFlTakeTyps")] + public virtual PimsAcqFileTakeType AcqFileTakeTypeCodeNavigation { get; set; } + + [ForeignKey("AcquisitionFileId")] + [InverseProperty("PimsAcqFileAcqFlTakeTyps")] + public virtual PimsAcquisitionFile AcquisitionFile { get; set; } +} diff --git a/source/backend/entities/ef/PimsAcqFileAcqFlTakeTypHist.cs b/source/backend/entities/ef/PimsAcqFileAcqFlTakeTypHist.cs new file mode 100644 index 0000000000..032c7e79b8 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileAcqFlTakeTypHist.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +[Table("PIMS_ACQ_FILE_ACQ_FL_TAKE_TYP_HIST")] +[Index("AcqFileAcqFlTakeTypHistId", "EndDateHist", Name = "PIMS_AQFATT_H_UK", IsUnique = true)] +public partial class PimsAcqFileAcqFlTakeTypHist +{ + [Key] + [Column("_ACQ_FILE_ACQ_FL_TAKE_TYP_HIST_ID")] + public long AcqFileAcqFlTakeTypHistId { get; set; } + + [Column("EFFECTIVE_DATE_HIST", TypeName = "datetime")] + public DateTime EffectiveDateHist { get; set; } + + [Column("END_DATE_HIST", TypeName = "datetime")] + public DateTime? EndDateHist { get; set; } + + [Column("ACQ_FILE_ACQ_FL_TAKE_TYPE_ID")] + public long AcqFileAcqFlTakeTypeId { get; set; } + + [Column("ACQUISITION_FILE_ID")] + public long? AcquisitionFileId { get; set; } + + [Column("ACQ_FILE_TAKE_TYPE_CODE")] + [StringLength(20)] + public string AcqFileTakeTypeCode { get; set; } + + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + [Column("APP_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppCreateTimestamp { get; set; } + + [Required] + [Column("APP_CREATE_USERID")] + [StringLength(30)] + public string AppCreateUserid { get; set; } + + [Column("APP_CREATE_USER_GUID")] + public Guid? AppCreateUserGuid { get; set; } + + [Required] + [Column("APP_CREATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppCreateUserDirectory { get; set; } + + [Column("APP_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppLastUpdateTimestamp { get; set; } + + [Required] + [Column("APP_LAST_UPDATE_USERID")] + [StringLength(30)] + public string AppLastUpdateUserid { get; set; } + + [Column("APP_LAST_UPDATE_USER_GUID")] + public Guid? AppLastUpdateUserGuid { get; set; } + + [Required] + [Column("APP_LAST_UPDATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppLastUpdateUserDirectory { get; set; } + + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } +} diff --git a/source/backend/entities/ef/PimsAcqFileAcqProgress.cs b/source/backend/entities/ef/PimsAcqFileAcqProgress.cs new file mode 100644 index 0000000000..1c8e59cf0b --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileAcqProgress.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +[Table("PIMS_ACQ_FILE_ACQ_PROGRESS")] +[Index("AcquisitionFileId", Name = "AQFFLP_ACQUISITION_FILE_ID_IDX")] +[Index("AcqFileProgessTypeCode", Name = "AQFFLP_ACQ_FILE_PROGESS_TYPE_CODE_IDX")] +public partial class PimsAcqFileAcqProgress +{ + /// + /// Generated surrogate primary key. + /// + [Key] + [Column("ACQ_FILE_ACQ_PROGRESS_ID")] + public long AcqFileAcqProgressId { get; set; } + + /// + /// Foreign key to the PIMS_ACQUISITION_FILE table. + /// + [Column("ACQUISITION_FILE_ID")] + public long? AcquisitionFileId { get; set; } + + /// + /// Foreign key to the PIMS_ACQUISITION_FILE table. + /// + [Column("ACQ_FILE_PROGESS_TYPE_CODE")] + [StringLength(20)] + public string AcqFileProgessTypeCode { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the user created the record. + /// + [Column("APP_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppCreateTimestamp { get; set; } + + /// + /// The user account that created the record. + /// + [Required] + [Column("APP_CREATE_USERID")] + [StringLength(30)] + public string AppCreateUserid { get; set; } + + /// + /// The GUID of the user account that created the record. + /// + [Column("APP_CREATE_USER_GUID")] + public Guid? AppCreateUserGuid { get; set; } + + /// + /// The directory of the user account that created the record. + /// + [Required] + [Column("APP_CREATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppCreateUserDirectory { get; set; } + + /// + /// The date and time the user updated the record. + /// + [Column("APP_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppLastUpdateTimestamp { get; set; } + + /// + /// The user account that updated the record. + /// + [Required] + [Column("APP_LAST_UPDATE_USERID")] + [StringLength(30)] + public string AppLastUpdateUserid { get; set; } + + /// + /// The GUID of the user account that updated the record. + /// + [Column("APP_LAST_UPDATE_USER_GUID")] + public Guid? AppLastUpdateUserGuid { get; set; } + + /// + /// The directory of the user account that updated the record. + /// + [Required] + [Column("APP_LAST_UPDATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppLastUpdateUserDirectory { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [ForeignKey("AcqFileProgessTypeCode")] + [InverseProperty("PimsAcqFileAcqProgresses")] + public virtual PimsAcqFileProgessType AcqFileProgessTypeCodeNavigation { get; set; } + + [ForeignKey("AcquisitionFileId")] + [InverseProperty("PimsAcqFileAcqProgresses")] + public virtual PimsAcquisitionFile AcquisitionFile { get; set; } +} diff --git a/source/backend/entities/ef/PimsAcqFileAcqProgressHist.cs b/source/backend/entities/ef/PimsAcqFileAcqProgressHist.cs new file mode 100644 index 0000000000..a76116af46 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileAcqProgressHist.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +[Table("PIMS_ACQ_FILE_ACQ_PROGRESS_HIST")] +[Index("AcqFileAcqProgressHistId", "EndDateHist", Name = "PIMS_AQFFLP_H_UK", IsUnique = true)] +public partial class PimsAcqFileAcqProgressHist +{ + [Key] + [Column("_ACQ_FILE_ACQ_PROGRESS_HIST_ID")] + public long AcqFileAcqProgressHistId { get; set; } + + [Column("EFFECTIVE_DATE_HIST", TypeName = "datetime")] + public DateTime EffectiveDateHist { get; set; } + + [Column("END_DATE_HIST", TypeName = "datetime")] + public DateTime? EndDateHist { get; set; } + + [Column("ACQ_FILE_ACQ_PROGRESS_ID")] + public long AcqFileAcqProgressId { get; set; } + + [Column("ACQUISITION_FILE_ID")] + public long? AcquisitionFileId { get; set; } + + [Column("ACQ_FILE_PROGESS_TYPE_CODE")] + [StringLength(20)] + public string AcqFileProgessTypeCode { get; set; } + + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + [Column("APP_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppCreateTimestamp { get; set; } + + [Required] + [Column("APP_CREATE_USERID")] + [StringLength(30)] + public string AppCreateUserid { get; set; } + + [Column("APP_CREATE_USER_GUID")] + public Guid? AppCreateUserGuid { get; set; } + + [Required] + [Column("APP_CREATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppCreateUserDirectory { get; set; } + + [Column("APP_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime AppLastUpdateTimestamp { get; set; } + + [Required] + [Column("APP_LAST_UPDATE_USERID")] + [StringLength(30)] + public string AppLastUpdateUserid { get; set; } + + [Column("APP_LAST_UPDATE_USER_GUID")] + public Guid? AppLastUpdateUserGuid { get; set; } + + [Required] + [Column("APP_LAST_UPDATE_USER_DIRECTORY")] + [StringLength(30)] + public string AppLastUpdateUserDirectory { get; set; } + + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } +} diff --git a/source/backend/entities/ef/PimsAcqFileAppraisalType.cs b/source/backend/entities/ef/PimsAcqFileAppraisalType.cs new file mode 100644 index 0000000000..e54377a765 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileAppraisalType.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +/// +/// Codified values for the acquisition file appraisal type. +/// +[Table("PIMS_ACQ_FILE_APPRAISAL_TYPE")] +public partial class PimsAcqFileAppraisalType +{ + /// + /// Code value of the acquisition file appraisal type. + /// + [Key] + [Column("ACQ_FILE_APPRAISAL_TYPE_CODE")] + [StringLength(20)] + public string AcqFileAppraisalTypeCode { get; set; } + + /// + /// Description of the acquisition file appraisal type. + /// + [Required] + [Column("DESCRIPTION")] + [StringLength(200)] + public string Description { get; set; } + + /// + /// Indicates if the code value is inactive. + /// + [Column("IS_DISABLED")] + public bool IsDisabled { get; set; } + + /// + /// Designates a preferred presentation order of the code descriptions. + /// + [Column("DISPLAY_ORDER")] + public int? DisplayOrder { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [InverseProperty("AcqFileAppraisalTypeCodeNavigation")] + public virtual ICollection PimsAcquisitionFiles { get; set; } = new List(); +} diff --git a/source/backend/entities/ef/PimsAcqFileExpropRiskType.cs b/source/backend/entities/ef/PimsAcqFileExpropRiskType.cs new file mode 100644 index 0000000000..4030eb821a --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileExpropRiskType.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +/// +/// Codified values for the acquisition file expropriation risk type. +/// +[Table("PIMS_ACQ_FILE_EXPROP_RISK_TYPE")] +public partial class PimsAcqFileExpropRiskType +{ + /// + /// Code value of the acquisition file expropriation risk type. + /// + [Key] + [Column("ACQ_FILE_EXPROP_RISK_TYPE_CODE")] + [StringLength(20)] + public string AcqFileExpropRiskTypeCode { get; set; } + + /// + /// Description of the acquisition file expropriation risk type. + /// + [Required] + [Column("DESCRIPTION")] + [StringLength(200)] + public string Description { get; set; } + + /// + /// Indicates if the code value is inactive. + /// + [Column("IS_DISABLED")] + public bool IsDisabled { get; set; } + + /// + /// Designates a preferred presentation order of the code descriptions. + /// + [Column("DISPLAY_ORDER")] + public int? DisplayOrder { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [InverseProperty("AcqFileExpropRiskTypeCodeNavigation")] + public virtual ICollection PimsAcquisitionFiles { get; set; } = new List(); +} diff --git a/source/backend/entities/ef/PimsAcqFileLglSrvyType.cs b/source/backend/entities/ef/PimsAcqFileLglSrvyType.cs new file mode 100644 index 0000000000..346c5887e4 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileLglSrvyType.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +/// +/// Codified values for the acquisition file legal survey type. +/// +[Table("PIMS_ACQ_FILE_LGL_SRVY_TYPE")] +public partial class PimsAcqFileLglSrvyType +{ + /// + /// Code value of the acquisition file legal survey type. + /// + [Key] + [Column("ACQ_FILE_LGL_SRVY_TYPE_CODE")] + [StringLength(20)] + public string AcqFileLglSrvyTypeCode { get; set; } + + /// + /// Description of the acquisition file legal survey type. + /// + [Required] + [Column("DESCRIPTION")] + [StringLength(200)] + public string Description { get; set; } + + /// + /// Indicates if the code value is inactive. + /// + [Column("IS_DISABLED")] + public bool IsDisabled { get; set; } + + /// + /// Designates a preferred presentation order of the code descriptions. + /// + [Column("DISPLAY_ORDER")] + public int? DisplayOrder { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [InverseProperty("AcqFileLglSrvyTypeCodeNavigation")] + public virtual ICollection PimsAcquisitionFiles { get; set; } = new List(); +} diff --git a/source/backend/entities/ef/PimsAcqFileProgessType.cs b/source/backend/entities/ef/PimsAcqFileProgessType.cs new file mode 100644 index 0000000000..96653b8312 --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileProgessType.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +/// +/// Codified values for the acquisition file progress type. +/// +[Table("PIMS_ACQ_FILE_PROGESS_TYPE")] +public partial class PimsAcqFileProgessType +{ + /// + /// Code value of the acquisition file progress type. + /// + [Key] + [Column("ACQ_FILE_PROGESS_TYPE_CODE")] + [StringLength(20)] + public string AcqFileProgessTypeCode { get; set; } + + /// + /// Description of the acquisition file progress type. + /// + [Required] + [Column("DESCRIPTION")] + [StringLength(200)] + public string Description { get; set; } + + /// + /// Indicates if the code value is inactive. + /// + [Column("IS_DISABLED")] + public bool IsDisabled { get; set; } + + /// + /// Designates a preferred presentation order of the code descriptions. + /// + [Column("DISPLAY_ORDER")] + public int? DisplayOrder { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [InverseProperty("AcqFileProgessTypeCodeNavigation")] + public virtual ICollection PimsAcqFileAcqProgresses { get; set; } = new List(); +} diff --git a/source/backend/entities/ef/PimsAcqFileTakeType.cs b/source/backend/entities/ef/PimsAcqFileTakeType.cs new file mode 100644 index 0000000000..cc133b326a --- /dev/null +++ b/source/backend/entities/ef/PimsAcqFileTakeType.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; + +namespace Pims.Dal.Entities; + +/// +/// Codified values for the acquisition file take type. +/// +[Table("PIMS_ACQ_FILE_TAKE_TYPE")] +public partial class PimsAcqFileTakeType +{ + /// + /// Code value of the acquisition file take type. + /// + [Key] + [Column("ACQ_FILE_TAKE_TYPE_CODE")] + [StringLength(20)] + public string AcqFileTakeTypeCode { get; set; } + + /// + /// Description of the acquisition file take type. + /// + [Required] + [Column("DESCRIPTION")] + [StringLength(200)] + public string Description { get; set; } + + /// + /// Indicates if the code value is inactive. + /// + [Column("IS_DISABLED")] + public bool IsDisabled { get; set; } + + /// + /// Designates a preferred presentation order of the code descriptions. + /// + [Column("DISPLAY_ORDER")] + public int? DisplayOrder { get; set; } + + /// + /// Application code is responsible for retrieving the row and then incrementing the value of the CONCURRENCY_CONTROL_NUMBER column by one prior to issuing an update. If this is done then the update will succeed, provided that the row was not updated by any o + /// + [Column("CONCURRENCY_CONTROL_NUMBER")] + public long ConcurrencyControlNumber { get; set; } + + /// + /// The date and time the record was created. + /// + [Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbCreateTimestamp { get; set; } + + /// + /// The user or proxy account that created the record. + /// + [Required] + [Column("DB_CREATE_USERID")] + [StringLength(30)] + public string DbCreateUserid { get; set; } + + /// + /// The date and time the record was created or last updated. + /// + [Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")] + public DateTime DbLastUpdateTimestamp { get; set; } + + /// + /// The user or proxy account that created or last updated the record. + /// + [Required] + [Column("DB_LAST_UPDATE_USERID")] + [StringLength(30)] + public string DbLastUpdateUserid { get; set; } + + [InverseProperty("AcqFileTakeTypeCodeNavigation")] + public virtual ICollection PimsAcqFileAcqFlTakeTyps { get; set; } = new List(); +} diff --git a/source/backend/entities/ef/PimsAcquisitionFile.cs b/source/backend/entities/ef/PimsAcquisitionFile.cs index cc2ce826af..9b3e519112 100644 --- a/source/backend/entities/ef/PimsAcquisitionFile.cs +++ b/source/backend/entities/ef/PimsAcquisitionFile.cs @@ -13,6 +13,9 @@ namespace Pims.Dal.Entities; [Index("AcquisitionFileStatusTypeCode", Name = "ACQNFL_ACQUISITION_FILE_STATUS_TYPE_CODE_IDX")] [Index("AcquisitionFundingTypeCode", Name = "ACQNFL_ACQUISITION_FUNDING_TYPE_CODE_IDX")] [Index("AcquisitionTypeCode", Name = "ACQNFL_ACQUISITION_TYPE_CODE_IDX")] +[Index("AcqFileAppraisalTypeCode", Name = "ACQNFL_ACQ_FILE_APPRAISAL_TYPE_CODE_IDX")] +[Index("AcqFileExpropRiskTypeCode", Name = "ACQNFL_ACQ_FILE_EXPROP_RISK_TYPE_CODE_IDX")] +[Index("AcqFileLglSrvyTypeCode", Name = "ACQNFL_ACQ_FILE_LGL_SRVY_TYPE_CODE_IDX")] [Index("AcqPhysFileStatusTypeCode", Name = "ACQNFL_ACQ_PHYS_FILE_STATUS_TYPE_CODE_IDX")] [Index("FileNo", Name = "ACQNFL_FILE_NO_IDX")] [Index("LegacyFileNumber", Name = "ACQNFL_LEGACY_FILE_NUMBER_IDX")] @@ -91,6 +94,27 @@ public partial class PimsAcquisitionFile [StringLength(20)] public string SubfileInterestTypeCode { get; set; } + /// + /// Foreign key to the PIMS_ACQ_FILE_APPRAISAL_TYPE table. + /// + [Column("ACQ_FILE_APPRAISAL_TYPE_CODE")] + [StringLength(20)] + public string AcqFileAppraisalTypeCode { get; set; } + + /// + /// Foreign key to the PIMS_ACQ_FILE_LGL_SRVY_TYPE table. + /// + [Column("ACQ_FILE_LGL_SRVY_TYPE_CODE")] + [StringLength(20)] + public string AcqFileLglSrvyTypeCode { get; set; } + + /// + /// Foreign key to the PIMS_ACQ_FILE_EXPROP_RISK_TYPE table. + /// + [Column("ACQ_FILE_EXPROP_RISK_TYPE_CODE")] + [StringLength(20)] + public string AcqFileExpropRiskTypeCode { get; set; } + /// /// Descriptive name given to the acquisition file. /// @@ -265,6 +289,18 @@ public partial class PimsAcquisitionFile [StringLength(30)] public string DbLastUpdateUserid { get; set; } + [ForeignKey("AcqFileAppraisalTypeCode")] + [InverseProperty("PimsAcquisitionFiles")] + public virtual PimsAcqFileAppraisalType AcqFileAppraisalTypeCodeNavigation { get; set; } + + [ForeignKey("AcqFileExpropRiskTypeCode")] + [InverseProperty("PimsAcquisitionFiles")] + public virtual PimsAcqFileExpropRiskType AcqFileExpropRiskTypeCodeNavigation { get; set; } + + [ForeignKey("AcqFileLglSrvyTypeCode")] + [InverseProperty("PimsAcquisitionFiles")] + public virtual PimsAcqFileLglSrvyType AcqFileLglSrvyTypeCodeNavigation { get; set; } + [ForeignKey("AcqPhysFileStatusTypeCode")] [InverseProperty("PimsAcquisitionFiles")] public virtual PimsAcqPhysFileStatusType AcqPhysFileStatusTypeCodeNavigation { get; set; } @@ -284,6 +320,12 @@ public partial class PimsAcquisitionFile [InverseProperty("PrntAcquisitionFile")] public virtual ICollection InversePrntAcquisitionFile { get; set; } = new List(); + [InverseProperty("AcquisitionFile")] + public virtual ICollection PimsAcqFileAcqFlTakeTyps { get; set; } = new List(); + + [InverseProperty("AcquisitionFile")] + public virtual ICollection PimsAcqFileAcqProgresses { get; set; } = new List(); + [InverseProperty("AcquisitionFile")] public virtual ICollection PimsAcquisitionChecklistItems { get; set; } = new List(); diff --git a/source/backend/entities/ef/PimsAcquisitionFileDocument.cs b/source/backend/entities/ef/PimsAcquisitionFileDocument.cs index e47638dd40..22124041e2 100644 --- a/source/backend/entities/ef/PimsAcquisitionFileDocument.cs +++ b/source/backend/entities/ef/PimsAcquisitionFileDocument.cs @@ -83,7 +83,4 @@ public partial class PimsAcquisitionFileDocument [ForeignKey("DocumentId")] [InverseProperty("PimsAcquisitionFileDocuments")] public virtual PimsDocument Document { get; set; } - - [InverseProperty("AcquisitionFileDocument")] - public virtual ICollection PimsDocumentQueues { get; set; } = new List(); } diff --git a/source/backend/entities/ef/PimsAcquisitionFileHist.cs b/source/backend/entities/ef/PimsAcquisitionFileHist.cs index 4240521d63..2af1474c7d 100644 --- a/source/backend/entities/ef/PimsAcquisitionFileHist.cs +++ b/source/backend/entities/ef/PimsAcquisitionFileHist.cs @@ -57,6 +57,18 @@ public partial class PimsAcquisitionFileHist [StringLength(20)] public string SubfileInterestTypeCode { get; set; } + [Column("ACQ_FILE_APPRAISAL_TYPE_CODE")] + [StringLength(20)] + public string AcqFileAppraisalTypeCode { get; set; } + + [Column("ACQ_FILE_LGL_SRVY_TYPE_CODE")] + [StringLength(20)] + public string AcqFileLglSrvyTypeCode { get; set; } + + [Column("ACQ_FILE_EXPROP_RISK_TYPE_CODE")] + [StringLength(20)] + public string AcqFileExpropRiskTypeCode { get; set; } + [Required] [Column("FILE_NAME")] [StringLength(500)] diff --git a/source/backend/entities/ef/PimsDispositionFileDocument.cs b/source/backend/entities/ef/PimsDispositionFileDocument.cs index 9dd5bb81a5..080ee86f55 100644 --- a/source/backend/entities/ef/PimsDispositionFileDocument.cs +++ b/source/backend/entities/ef/PimsDispositionFileDocument.cs @@ -122,7 +122,4 @@ public partial class PimsDispositionFileDocument [ForeignKey("DocumentId")] [InverseProperty("PimsDispositionFileDocuments")] public virtual PimsDocument Document { get; set; } - - [InverseProperty("DispositionFileDocument")] - public virtual ICollection PimsDocumentQueues { get; set; } = new List(); } diff --git a/source/backend/entities/ef/PimsDocumentQueue.cs b/source/backend/entities/ef/PimsDocumentQueue.cs index 8901d496a0..a4dc9c20a1 100644 --- a/source/backend/entities/ef/PimsDocumentQueue.cs +++ b/source/backend/entities/ef/PimsDocumentQueue.cs @@ -10,14 +10,9 @@ namespace Pims.Dal.Entities; /// Table providing progress tracking of document inclusion into the MAYAN EDMS. /// [Table("PIMS_DOCUMENT_QUEUE")] -[Index("AcquisitionFileDocumentId", Name = "DOCQUE_ACQUISITION_FILE_DOCUMENT_ID_IDX")] [Index("DataSourceTypeCode", Name = "DOCQUE_DATA_SOURCE_TYPE_CODE_IDX")] -[Index("DispositionFileDocumentId", Name = "DOCQUE_DISPOSITION_FILE_DOCUMENT_ID_IDX")] [Index("DocumentId", Name = "DOCQUE_DOCUMENT_ID_IDX")] [Index("DocumentQueueStatusTypeCode", Name = "DOCQUE_DOCUMENT_QUEUE_STATUS_TYPE_CODE_IDX")] -[Index("LeaseDocumentId", Name = "DOCQUE_LEASE_DOCUMENT_ID_IDX")] -[Index("PropertyActivityDocumentId", Name = "DOCQUE_PROPERTY_ACTIVITY_DOCUMENT_ID_IDX")] -[Index("ResearchFileDocumentId", Name = "DOCQUE_RESEARCH_FILE_DOCUMENT_ID_IDX")] public partial class PimsDocumentQueue { /// @@ -49,44 +44,6 @@ public partial class PimsDocumentQueue [StringLength(20)] public string DataSourceTypeCode { get; set; } - /// - /// Foreign key to the PIMS_PROPERTY_ACTIVITY_DOCUMENT table. - /// - [Column("PROPERTY_ACTIVITY_DOCUMENT_ID")] - public long? PropertyActivityDocumentId { get; set; } - - /// - /// Foreign key to the PIMS_ACQUISITION_FILE_DOCUMENT table. - /// - [Column("ACQUISITION_FILE_DOCUMENT_ID")] - public long? AcquisitionFileDocumentId { get; set; } - - /// - /// Foreign key to the PIMS_RESEARCH_FILE_DOCUMENT table. - /// - [Column("RESEARCH_FILE_DOCUMENT_ID")] - public long? ResearchFileDocumentId { get; set; } - - /// - /// Foreign key to the PIMS_LEASE_DOCUMENT table. - /// - [Column("LEASE_DOCUMENT_ID")] - public long? LeaseDocumentId { get; set; } - - /// - /// Foreign key to the PIMS_DISPOSITION_FILE_DOCUMENT table. - /// - [Column("DISPOSITION_FILE_DOCUMENT_ID")] - public long? DispositionFileDocumentId { get; set; } - - /// - /// Name of the file to be stored on Mayan EDMS. - /// - [Required] - [Column("FILE_NAME")] - [StringLength(500)] - public string FileName { get; set; } - /// /// Fluid key used to uniquely identify document in external system. /// @@ -222,18 +179,10 @@ public partial class PimsDocumentQueue [StringLength(30)] public string DbLastUpdateUserid { get; set; } - [ForeignKey("AcquisitionFileDocumentId")] - [InverseProperty("PimsDocumentQueues")] - public virtual PimsAcquisitionFileDocument AcquisitionFileDocument { get; set; } - [ForeignKey("DataSourceTypeCode")] [InverseProperty("PimsDocumentQueues")] public virtual PimsDataSourceType DataSourceTypeCodeNavigation { get; set; } - [ForeignKey("DispositionFileDocumentId")] - [InverseProperty("PimsDocumentQueues")] - public virtual PimsDispositionFileDocument DispositionFileDocument { get; set; } - [ForeignKey("DocumentId")] [InverseProperty("PimsDocumentQueues")] public virtual PimsDocument DocumentNavigation { get; set; } @@ -241,16 +190,4 @@ public partial class PimsDocumentQueue [ForeignKey("DocumentQueueStatusTypeCode")] [InverseProperty("PimsDocumentQueues")] public virtual PimsDocumentQueueStatusType DocumentQueueStatusTypeCodeNavigation { get; set; } - - [ForeignKey("LeaseDocumentId")] - [InverseProperty("PimsDocumentQueues")] - public virtual PimsLeaseDocument LeaseDocument { get; set; } - - [ForeignKey("PropertyActivityDocumentId")] - [InverseProperty("PimsDocumentQueues")] - public virtual PimsPropertyActivityDocument PropertyActivityDocument { get; set; } - - [ForeignKey("ResearchFileDocumentId")] - [InverseProperty("PimsDocumentQueues")] - public virtual PimsResearchFileDocument ResearchFileDocument { get; set; } } diff --git a/source/backend/entities/ef/PimsDocumentQueueHist.cs b/source/backend/entities/ef/PimsDocumentQueueHist.cs index 641b5af92a..6e8844ec48 100644 --- a/source/backend/entities/ef/PimsDocumentQueueHist.cs +++ b/source/backend/entities/ef/PimsDocumentQueueHist.cs @@ -36,26 +36,6 @@ public partial class PimsDocumentQueueHist [StringLength(20)] public string DataSourceTypeCode { get; set; } - [Column("PROPERTY_ACTIVITY_DOCUMENT_ID")] - public long? PropertyActivityDocumentId { get; set; } - - [Column("ACQUISITION_FILE_DOCUMENT_ID")] - public long? AcquisitionFileDocumentId { get; set; } - - [Column("RESEARCH_FILE_DOCUMENT_ID")] - public long? ResearchFileDocumentId { get; set; } - - [Column("LEASE_DOCUMENT_ID")] - public long? LeaseDocumentId { get; set; } - - [Column("DISPOSITION_FILE_DOCUMENT_ID")] - public long? DispositionFileDocumentId { get; set; } - - [Required] - [Column("FILE_NAME")] - [StringLength(500)] - public string FileName { get; set; } - [Column("DOCUMENT_EXTERNAL_ID")] [StringLength(1000)] public string DocumentExternalId { get; set; } diff --git a/source/backend/entities/ef/PimsLeaseDocument.cs b/source/backend/entities/ef/PimsLeaseDocument.cs index ff7898538a..7feb7e01f4 100644 --- a/source/backend/entities/ef/PimsLeaseDocument.cs +++ b/source/backend/entities/ef/PimsLeaseDocument.cs @@ -82,7 +82,4 @@ public partial class PimsLeaseDocument [ForeignKey("LeaseId")] [InverseProperty("PimsLeaseDocuments")] public virtual PimsLease Lease { get; set; } - - [InverseProperty("LeaseDocument")] - public virtual ICollection PimsDocumentQueues { get; set; } = new List(); } diff --git a/source/backend/entities/ef/PimsProjectPerson.cs b/source/backend/entities/ef/PimsProjectPerson.cs index 40ed4b439e..207edf1148 100644 --- a/source/backend/entities/ef/PimsProjectPerson.cs +++ b/source/backend/entities/ef/PimsProjectPerson.cs @@ -26,7 +26,6 @@ public partial class PimsProjectPerson [Column("PERSON_ID")] public long PersonId { get; set; } - [Required] [Column("PROJECT_PERSON_ROLE_TYPE_CODE")] [StringLength(20)] public string ProjectPersonRoleTypeCode { get; set; } diff --git a/source/backend/entities/ef/PimsProjectPersonHist.cs b/source/backend/entities/ef/PimsProjectPersonHist.cs index f0faf300db..1c208a9c62 100644 --- a/source/backend/entities/ef/PimsProjectPersonHist.cs +++ b/source/backend/entities/ef/PimsProjectPersonHist.cs @@ -29,7 +29,6 @@ public partial class PimsProjectPersonHist [Column("PERSON_ID")] public long PersonId { get; set; } - [Required] [Column("PROJECT_PERSON_ROLE_TYPE_CODE")] [StringLength(20)] public string ProjectPersonRoleTypeCode { get; set; } diff --git a/source/backend/entities/ef/PimsProperty.cs b/source/backend/entities/ef/PimsProperty.cs index aad0f949d2..336dc1c694 100644 --- a/source/backend/entities/ef/PimsProperty.cs +++ b/source/backend/entities/ef/PimsProperty.cs @@ -36,7 +36,7 @@ public partial class PimsProperty public long PropertyId { get; set; } /// - /// Foreign key to the proprty type table. + /// Foreign key to the property type table. /// [Required] [Column("PROPERTY_TYPE_CODE")] diff --git a/source/backend/entities/ef/PimsPropertyActivityDocument.cs b/source/backend/entities/ef/PimsPropertyActivityDocument.cs index 9aa01e1354..ab45cfc93d 100644 --- a/source/backend/entities/ef/PimsPropertyActivityDocument.cs +++ b/source/backend/entities/ef/PimsPropertyActivityDocument.cs @@ -76,9 +76,6 @@ public partial class PimsPropertyActivityDocument [InverseProperty("PimsPropertyActivityDocuments")] public virtual PimsDocument Document { get; set; } - [InverseProperty("PropertyActivityDocument")] - public virtual ICollection PimsDocumentQueues { get; set; } = new List(); - [ForeignKey("PimsPropertyActivityId")] [InverseProperty("PimsPropertyActivityDocuments")] public virtual PimsPropertyActivity PimsPropertyActivity { get; set; } diff --git a/source/backend/entities/ef/PimsResearchFileDocument.cs b/source/backend/entities/ef/PimsResearchFileDocument.cs index 76853ca017..cc5242d1b8 100644 --- a/source/backend/entities/ef/PimsResearchFileDocument.cs +++ b/source/backend/entities/ef/PimsResearchFileDocument.cs @@ -79,9 +79,6 @@ public partial class PimsResearchFileDocument [InverseProperty("PimsResearchFileDocuments")] public virtual PimsDocument Document { get; set; } - [InverseProperty("ResearchFileDocument")] - public virtual ICollection PimsDocumentQueues { get; set; } = new List(); - [ForeignKey("ResearchFileId")] [InverseProperty("PimsResearchFileDocuments")] public virtual PimsResearchFile ResearchFile { get; set; }