configure entities
This commit is contained in:
parent
7457cbbf0e
commit
65cbfc53a7
@ -5,11 +5,17 @@ namespace EnotaryoPH.Data.Entities
|
|||||||
[Table("Transactions")]
|
[Table("Transactions")]
|
||||||
public class Transaction
|
public class Transaction
|
||||||
{
|
{
|
||||||
[Column("TransactionID")]
|
[Column("CreatedOn")]
|
||||||
public int TransactionID { get; set; }
|
public DateTime? CreatedOn { get; set; }
|
||||||
|
|
||||||
[Column("TransactionDate")]
|
[Column("IsRecorded")]
|
||||||
public DateTime TransactionDate { get; set; }
|
public bool? IsRecorded { get; set; }
|
||||||
|
|
||||||
|
[Column("LawyerID")]
|
||||||
|
public int? LawyerID { get; set; }
|
||||||
|
|
||||||
|
[Column("PreferredLawyerID")]
|
||||||
|
public int? PreferredLawyerID { get; set; }
|
||||||
|
|
||||||
[Column("PrincipalID")]
|
[Column("PrincipalID")]
|
||||||
public int PrincipalID { get; set; }
|
public int PrincipalID { get; set; }
|
||||||
@ -17,19 +23,15 @@ namespace EnotaryoPH.Data.Entities
|
|||||||
[Column("Status")]
|
[Column("Status")]
|
||||||
public string Status { get; set; }
|
public string Status { get; set; }
|
||||||
|
|
||||||
[Column("CreatedOn")]
|
|
||||||
public DateTime? CreatedOn { get; set; }
|
|
||||||
|
|
||||||
[Column("Transaction_UID")]
|
[Column("Transaction_UID")]
|
||||||
public Guid? Transaction_UID { get; set; }
|
public Guid? Transaction_UID { get; set; }
|
||||||
|
|
||||||
[Column("PreferredLawyerID")]
|
[Column("TransactionDate")]
|
||||||
public int? PreferredLawyerID { get; set; }
|
public DateTime TransactionDate { get; set; }
|
||||||
|
|
||||||
[Column("LawyerID")]
|
public TransactionDocument TransactionDocument { get; set; }
|
||||||
public int? LawyerID { get; set; }
|
|
||||||
|
|
||||||
[Column("IsRecorded")]
|
[Column("TransactionID")]
|
||||||
public bool? IsRecorded { get; set; }
|
public int TransactionID { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,11 +5,14 @@ namespace EnotaryoPH.Data.Entities
|
|||||||
[Table("TransactionDocuments")]
|
[Table("TransactionDocuments")]
|
||||||
public class TransactionDocument
|
public class TransactionDocument
|
||||||
{
|
{
|
||||||
[Column("TransactionDocumentID")]
|
[Column("CreatedOn")]
|
||||||
public int TransactionDocumentID { get; set; }
|
public DateTime? CreatedOn { get; set; }
|
||||||
|
|
||||||
[Column("TransactionID")]
|
[Column("DocumentType")]
|
||||||
public int TransactionID { get; set; }
|
public string DocumentType { get; set; }
|
||||||
|
|
||||||
|
[Column("File")]
|
||||||
|
public byte[] File { get; set; }
|
||||||
|
|
||||||
[Column("Filename")]
|
[Column("Filename")]
|
||||||
public string Filename { get; set; }
|
public string Filename { get; set; }
|
||||||
@ -17,19 +20,19 @@ namespace EnotaryoPH.Data.Entities
|
|||||||
[Column("Notes")]
|
[Column("Notes")]
|
||||||
public string? Notes { get; set; }
|
public string? Notes { get; set; }
|
||||||
|
|
||||||
[Column("File")]
|
[ForeignKey("TransactionID")]
|
||||||
public byte[] File { get; set; }
|
public Transaction Transaction { get; set; }
|
||||||
|
|
||||||
[Column("UploadedOn")]
|
|
||||||
public DateTime UploadedOn { get; set; }
|
|
||||||
|
|
||||||
[Column("CreatedOn")]
|
|
||||||
public DateTime? CreatedOn { get; set; }
|
|
||||||
|
|
||||||
[Column("TransactionDocument_UID")]
|
[Column("TransactionDocument_UID")]
|
||||||
public Guid? TransactionDocument_UID { get; set; }
|
public Guid? TransactionDocument_UID { get; set; }
|
||||||
|
|
||||||
[Column("DocumentType")]
|
[Column("TransactionDocumentID")]
|
||||||
public string DocumentType { get; set; }
|
public int TransactionDocumentID { get; set; }
|
||||||
|
|
||||||
|
[Column("TransactionID")]
|
||||||
|
public int TransactionID { get; set; }
|
||||||
|
|
||||||
|
[Column("UploadedOn")]
|
||||||
|
public DateTime UploadedOn { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,7 +12,21 @@ namespace EnotaryoPH.Data
|
|||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseNpgsql(_configuration.GetConnectionString("NotaryoDatabase"));
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseNpgsql(_configuration.GetConnectionString("NotaryoDatabase"));
|
||||||
|
|
||||||
public DbSet<User>? Users { get; set; }
|
public DbSet<ErrorLog>? ErrorLogs { get; set; }
|
||||||
|
public DbSet<EventLog>? EventLogs { get; set; }
|
||||||
|
public DbSet<IdentificationDocument>? IdentificationDocuments { get; set; }
|
||||||
public DbSet<Lawyer>? Lawyers { get; set; }
|
public DbSet<Lawyer>? Lawyers { get; set; }
|
||||||
|
public DbSet<LawyerVideoConferenceParticipant>? LawyerVideoConferenceParticipants { get; set; }
|
||||||
|
public DbSet<LawyerVideoConferenceSchedule>? LawyerVideoConferenceSchedules { get; set; }
|
||||||
|
public DbSet<Template>? Templates { get; set; }
|
||||||
|
public DbSet<TransactionDeclineReason>? TransactionDeclineReasons { get; set; }
|
||||||
|
public DbSet<TransactionDocument>? TransactionDocuments { get; set; }
|
||||||
|
public DbSet<TransactionNotary>? TransactionNotaries { get; set; }
|
||||||
|
public DbSet<TransactionOTP>? TransactionOTPs { get; set; }
|
||||||
|
public DbSet<Transaction>? Transactions { get; set; }
|
||||||
|
public DbSet<TransactionSelfie>? TransactionSelfies { get; set; }
|
||||||
|
public DbSet<TransactionSignatory>? TransactionSignatories { get; set; }
|
||||||
|
public DbSet<TransactionSignatoryDeclineReason>? TransactionSignatoryDeclineReasons { get; set; }
|
||||||
|
public DbSet<User>? Users { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user