From 484755c6e74e2e5c016617974b84186a02d3d9e1 Mon Sep 17 00:00:00 2001 From: jojo aquino Date: Mon, 16 Dec 2024 00:59:58 +0000 Subject: [PATCH] lookup data --- .../EnotaryoPH.Data/Entities/LookupData.cs | 29 +++++++++++++++++++ .../Entities/LookupDataValue.cs | 29 +++++++++++++++++++ .../EnotaryoPH.Data/NotaryoDBContext.cs | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 EnotaryoPH/EnotaryoPH.Data/Entities/LookupData.cs create mode 100644 EnotaryoPH/EnotaryoPH.Data/Entities/LookupDataValue.cs diff --git a/EnotaryoPH/EnotaryoPH.Data/Entities/LookupData.cs b/EnotaryoPH/EnotaryoPH.Data/Entities/LookupData.cs new file mode 100644 index 0000000..c42bd52 --- /dev/null +++ b/EnotaryoPH/EnotaryoPH.Data/Entities/LookupData.cs @@ -0,0 +1,29 @@ +using System.ComponentModel.DataAnnotations.Schema; + +namespace EnotaryoPH.Data.Entities +{ + [Table("LookupData")] + public class LookupData + { + [Column("LookupDataID")] + public int LookupDataID { get; set; } + + [Column("LookupData_UID")] + public Guid LookupData_UID { get; set; } + + [Column("Category")] + public string? Category { get; set; } + + [Column("ParentCategory")] + public string? ParentCategory { get; set; } + + [Column("Name")] + public string Name { get; set; } + + [Column("Description")] + public string? Description { get; set; } + + [Column("CreatedOn")] + public DateTime? CreatedOn { get; set; } + } +} \ No newline at end of file diff --git a/EnotaryoPH/EnotaryoPH.Data/Entities/LookupDataValue.cs b/EnotaryoPH/EnotaryoPH.Data/Entities/LookupDataValue.cs new file mode 100644 index 0000000..d18c1ce --- /dev/null +++ b/EnotaryoPH/EnotaryoPH.Data/Entities/LookupDataValue.cs @@ -0,0 +1,29 @@ +using System.ComponentModel.DataAnnotations.Schema; + +namespace EnotaryoPH.Data.Entities +{ + [Table("LookupDataValues")] + public class LookupDataValue + { + [Column("LookupDataValueID")] + public int LookupDataValueID { get; set; } + + [Column("LookupDataValue_UID")] + public Guid LookupDataValue_UID { get; set; } + + [Column("LookupDataID")] + public int? LookupDataID { get; set; } + + [Column("Value")] + public string Value { get; set; } + + [Column("Title")] + public string? Title { get; set; } + + [Column("SortOrder")] + public int? SortOrder { get; set; } + + [Column("CreatedOn")] + public DateTime? CreatedOn { get; set; } + } +} diff --git a/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs b/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs index fd8cec6..0b38908 100644 --- a/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs +++ b/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs @@ -18,6 +18,8 @@ namespace EnotaryoPH.Data public DbSet? Lawyers { get; set; } public DbSet? LawyerVideoConferenceParticipants { get; set; } public DbSet? LawyerVideoConferenceSchedules { get; set; } + public DbSet? LookupData { get; set; } + public DbSet? LookupDataValues { get; set; } public DbSet