Skip to content

Commit

Permalink
generated scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriousLlama committed Dec 19, 2024
1 parent fec8cf7 commit dc6909a
Show file tree
Hide file tree
Showing 23 changed files with 1,240 additions and 129 deletions.
375 changes: 347 additions & 28 deletions source/backend/entities/PimsBaseContext.cs

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions source/backend/entities/ef/PimsAcqChklstSectionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,35 @@ public partial class PimsAcqChklstSectionType
[Column("EXPIRY_DATE")]
public DateOnly? ExpiryDate { 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 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)]
Expand Down
131 changes: 131 additions & 0 deletions source/backend/entities/ef/PimsAcqFileAcqFlTakeTyp.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Generated surrogate primary key.
/// </summary>
[Key]
[Column("ACQ_FILE_ACQ_FL_TAKE_TYPE_ID")]
public long AcqFileAcqFlTakeTypeId { get; set; }

/// <summary>
/// Foreign key to the PIMS_ACQUISITION_FILE table.
/// </summary>
[Column("ACQUISITION_FILE_ID")]
public long? AcquisitionFileId { get; set; }

/// <summary>
/// Foreign key to the PIMS_ACQ_FILE_TAKE_TYPE table.
/// </summary>
[Column("ACQ_FILE_TAKE_TYPE_CODE")]
[StringLength(20)]
public string AcqFileTakeTypeCode { 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("AcqFileTakeTypeCode")]
[InverseProperty("PimsAcqFileAcqFlTakeTyps")]
public virtual PimsAcqFileTakeType AcqFileTakeTypeCodeNavigation { get; set; }

[ForeignKey("AcquisitionFileId")]
[InverseProperty("PimsAcqFileAcqFlTakeTyps")]
public virtual PimsAcquisitionFile AcquisitionFile { get; set; }
}
83 changes: 83 additions & 0 deletions source/backend/entities/ef/PimsAcqFileAcqFlTakeTypHist.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
131 changes: 131 additions & 0 deletions source/backend/entities/ef/PimsAcqFileAcqProgress.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Generated surrogate primary key.
/// </summary>
[Key]
[Column("ACQ_FILE_ACQ_PROGRESS_ID")]
public long AcqFileAcqProgressId { get; set; }

/// <summary>
/// Foreign key to the PIMS_ACQUISITION_FILE table.
/// </summary>
[Column("ACQUISITION_FILE_ID")]
public long? AcquisitionFileId { get; set; }

/// <summary>
/// Foreign key to the PIMS_ACQUISITION_FILE table.
/// </summary>
[Column("ACQ_FILE_PROGESS_TYPE_CODE")]
[StringLength(20)]
public string AcqFileProgessTypeCode { 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("AcqFileProgessTypeCode")]
[InverseProperty("PimsAcqFileAcqProgresses")]
public virtual PimsAcqFileProgessType AcqFileProgessTypeCodeNavigation { get; set; }

[ForeignKey("AcquisitionFileId")]
[InverseProperty("PimsAcqFileAcqProgresses")]
public virtual PimsAcquisitionFile AcquisitionFile { get; set; }
}
Loading

0 comments on commit dc6909a

Please sign in to comment.