Skip to content

Commit

Permalink
Generated scaffold for s81 (#4047)
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriousLlama committed May 28, 2024
1 parent fbe690d commit cfb8920
Show file tree
Hide file tree
Showing 8 changed files with 778 additions and 5 deletions.
222 changes: 219 additions & 3 deletions source/backend/entities/PimsBaseContext.cs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions source/backend/entities/ef/PimsHistoricalFileNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Pims.Dal.Entities;
[Index("DataSourceTypeCode", Name = "HFLNUM_DATA_SOURCE_TYPE_CODE_IDX")]
[Index("HistoricalFileNumber", Name = "HFLNUM_HISTORICAL_FILE_NUMBER_IDX")]
[Index("PropertyId", Name = "HFLNUM_PROPERTY_ID_IDX")]
[Index("PropertyId", "HistoricalFileNumberTypeCode", "HistoricalFileNumber", "OtherHistFileNumberTypeCode", "IsDisabled", Name = "HFLNUM_PROPERTY_ID_UK", IsUnique = true)]
public partial class PimsHistoricalFileNumber
{
/// <summary>
Expand Down
35 changes: 33 additions & 2 deletions source/backend/entities/ef/PimsLease.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,61 +19,89 @@ namespace Pims.Dal.Entities;
[Index("LeaseResponsibilityTypeCode", Name = "LEASE_LEASE_RESPONSIBILITY_TYPE_CODE_IDX")]
[Index("LeaseStatusTypeCode", Name = "LEASE_LEASE_STATUS_TYPE_CODE_IDX")]
[Index("LFileNo", Name = "LEASE_L_FILE_NO_IDX")]
[Index("ProjectId", Name = "LEASE_PROJECT_ID_IDX")]
[Index("PsFileNo", Name = "LEASE_PS_FILE_NO_IDX")]
[Index("RegionCode", Name = "LEASE_REGION_CODE_IDX")]
[Index("TfaFileNo", Name = "LEASE_TFA_FILE_NO_IDX")]
[Index("TfaFileNumber", Name = "LEASE_TFA_FILE_NUMBER_IDX")]
public partial class PimsLease
{
/// <summary>
/// Generated surrogate primary key.
/// </summary>
[Key]
[Column("LEASE_ID")]
public long LeaseId { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_PAY_RVBL_TYPE table.
/// </summary>
[Required]
[Column("LEASE_PAY_RVBL_TYPE_CODE")]
[StringLength(20)]
public string LeasePayRvblTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_LICENSE_TYPE table.
/// </summary>
[Required]
[Column("LEASE_LICENSE_TYPE_CODE")]
[StringLength(20)]
public string LeaseLicenseTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_CATEGORY_TYPE table.
/// </summary>
[Column("LEASE_CATEGORY_TYPE_CODE")]
[StringLength(20)]
public string LeaseCategoryTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_PURPOSE_TYPE table.
/// </summary>
[Required]
[Column("LEASE_PURPOSE_TYPE_CODE")]
[StringLength(20)]
public string LeasePurposeTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_PROGRAM_TYPE table.
/// </summary>
[Required]
[Column("LEASE_PROGRAM_TYPE_CODE")]
[StringLength(20)]
public string LeaseProgramTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_INITIATOR_TYPE table.
/// </summary>
[Column("LEASE_INITIATOR_TYPE_CODE")]
[StringLength(20)]
public string LeaseInitiatorTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_RESPONSIBILITY_TYPE table.
/// </summary>
[Column("LEASE_RESPONSIBILITY_TYPE_CODE")]
[StringLength(20)]
public string LeaseResponsibilityTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_STATUS_TYPE table.
/// </summary>
[Required]
[Column("LEASE_STATUS_TYPE_CODE")]
[StringLength(20)]
public string LeaseStatusTypeCode { get; set; }

/// <summary>
/// MoTI region associated with the lease
/// Foreign key to the PIMS_REGION table.
/// </summary>
[Column("REGION_CODE")]
public short? RegionCode { get; set; }

/// <summary>
/// Project associated with this lease.
/// Foreign key to the PIMS_PROJECT table.
/// </summary>
[Column("PROJECT_ID")]
public long? ProjectId { get; set; }
Expand Down Expand Up @@ -395,6 +423,9 @@ public partial class PimsLease
[InverseProperty("Lease")]
public virtual ICollection<PimsInsurance> PimsInsurances { get; set; } = new List<PimsInsurance>();

[InverseProperty("Lease")]
public virtual ICollection<PimsLeaseChecklistItem> PimsLeaseChecklistItems { get; set; } = new List<PimsLeaseChecklistItem>();

[InverseProperty("Lease")]
public virtual ICollection<PimsLeaseConsultation> PimsLeaseConsultations { get; set; } = new List<PimsLeaseConsultation>();

Expand Down
149 changes: 149 additions & 0 deletions source/backend/entities/ef/PimsLeaseChecklistItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Pims.Dal.Entities;

/// <summary>
/// Table that contains the lease &amp; license checklist items.
/// </summary>
[Table("PIMS_LEASE_CHECKLIST_ITEM")]
[Index("LeaseChklstItemStatusTypeCode", Name = "LCHKLI_LEASE_CHKLST_ITEM_STATUS_TYPE_CODE_IDX")]
[Index("LeaseChklstItemTypeCode", Name = "LCHKLI_LEASE_CHKLST_ITEM_TYPE_CODE_IDX")]
[Index("LeaseId", Name = "LCHKLI_LEASE_ID_IDX")]
[Index("LeaseId", "LeaseChklstItemTypeCode", Name = "LCHKLI_LEASE_ID_UK", IsUnique = true)]
public partial class PimsLeaseChecklistItem
{
/// <summary>
/// Generated surrogate primary key
/// </summary>
[Key]
[Column("LEASE_CHECKLIST_ITEM_ID")]
public long LeaseChecklistItemId { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE table.
/// </summary>
[Column("LEASE_ID")]
public long LeaseId { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_CHKLST_ITEM_TYPE table.
/// </summary>
[Required]
[Column("LEASE_CHKLST_ITEM_TYPE_CODE")]
[StringLength(20)]
public string LeaseChklstItemTypeCode { get; set; }

/// <summary>
/// Foreign key to the PIMS_LEASE_CHKLST_ITEM_STATUS_TYPE table.
/// </summary>
[Required]
[Column("LEASE_CHKLST_ITEM_STATUS_TYPE_CODE")]
[StringLength(20)]
public string LeaseChklstItemStatusTypeCode { get; set; }

/// <summary>
/// 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
/// </summary>
[Column("CONCURRENCY_CONTROL_NUMBER")]
public long ConcurrencyControlNumber { get; set; }

/// <summary>
/// The date and time the user created the record.
/// </summary>
[Column("APP_CREATE_TIMESTAMP", TypeName = "datetime")]
public DateTime AppCreateTimestamp { get; set; }

/// <summary>
/// The user account that created the record.
/// </summary>
[Required]
[Column("APP_CREATE_USERID")]
[StringLength(30)]
public string AppCreateUserid { get; set; }

/// <summary>
/// The GUID of the user account that created the record.
/// </summary>
[Column("APP_CREATE_USER_GUID")]
public Guid? AppCreateUserGuid { get; set; }

/// <summary>
/// The directory of the user account that created the record.
/// </summary>
[Required]
[Column("APP_CREATE_USER_DIRECTORY")]
[StringLength(30)]
public string AppCreateUserDirectory { get; set; }

/// <summary>
/// The date and time the user updated the record.
/// </summary>
[Column("APP_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")]
public DateTime AppLastUpdateTimestamp { get; set; }

/// <summary>
/// The user account that updated the record.
/// </summary>
[Required]
[Column("APP_LAST_UPDATE_USERID")]
[StringLength(30)]
public string AppLastUpdateUserid { get; set; }

/// <summary>
/// The GUID of the user account that updated the record.
/// </summary>
[Column("APP_LAST_UPDATE_USER_GUID")]
public Guid? AppLastUpdateUserGuid { get; set; }

/// <summary>
/// The directory of the user account that updated the record.
/// </summary>
[Required]
[Column("APP_LAST_UPDATE_USER_DIRECTORY")]
[StringLength(30)]
public string AppLastUpdateUserDirectory { get; set; }

/// <summary>
/// The date and time the record was created.
/// </summary>
[Column("DB_CREATE_TIMESTAMP", TypeName = "datetime")]
public DateTime DbCreateTimestamp { get; set; }

/// <summary>
/// The user or proxy account that created the record.
/// </summary>
[Required]
[Column("DB_CREATE_USERID")]
[StringLength(30)]
public string DbCreateUserid { get; set; }

/// <summary>
/// The date and time the record was created or last updated.
/// </summary>
[Column("DB_LAST_UPDATE_TIMESTAMP", TypeName = "datetime")]
public DateTime DbLastUpdateTimestamp { get; set; }

/// <summary>
/// The user or proxy account that created or last updated the record.
/// </summary>
[Required]
[Column("DB_LAST_UPDATE_USERID")]
[StringLength(30)]
public string DbLastUpdateUserid { get; set; }

[ForeignKey("LeaseId")]
[InverseProperty("PimsLeaseChecklistItems")]
public virtual PimsLease Lease { get; set; }

[ForeignKey("LeaseChklstItemStatusTypeCode")]
[InverseProperty("PimsLeaseChecklistItems")]
public virtual PimsLeaseChklstItemStatusType LeaseChklstItemStatusTypeCodeNavigation { get; set; }

[ForeignKey("LeaseChklstItemTypeCode")]
[InverseProperty("PimsLeaseChecklistItems")]
public virtual PimsLeaseChklstItemType LeaseChklstItemTypeCodeNavigation { get; set; }
}
89 changes: 89 additions & 0 deletions source/backend/entities/ef/PimsLeaseChecklistItemHist.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Pims.Dal.Entities;

[Table("PIMS_LEASE_CHECKLIST_ITEM_HIST")]
[Index("LeaseChecklistItemHistId", "EndDateHist", Name = "PIMS_LCHKLI_H_UK", IsUnique = true)]
public partial class PimsLeaseChecklistItemHist
{
[Key]
[Column("_LEASE_CHECKLIST_ITEM_HIST_ID")]
public long LeaseChecklistItemHistId { 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("LEASE_CHECKLIST_ITEM_ID")]
public long LeaseChecklistItemId { get; set; }

[Column("LEASE_ID")]
public long LeaseId { get; set; }

[Required]
[Column("LEASE_CHKLST_ITEM_TYPE_CODE")]
[StringLength(20)]
public string LeaseChklstItemTypeCode { get; set; }

[Required]
[Column("LEASE_CHKLST_ITEM_STATUS_TYPE_CODE")]
[StringLength(20)]
public string LeaseChklstItemStatusTypeCode { 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; }
}
Loading

0 comments on commit cfb8920

Please sign in to comment.