From 9e61c29b94f2b4a714df5814a46f5e92d06ac755 Mon Sep 17 00:00:00 2001 From: jojo aquino Date: Fri, 28 Mar 2025 12:27:23 +0000 Subject: [PATCH] new VideoRecording entity --- .../Entities/LawyerVideoConferenceSchedule.cs | 14 ++++---- .../Entities/VideoRecording.cs | 32 +++++++++++++++++++ .../EnotaryoPH.Data/NotaryoDBContext.cs | 1 + 3 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 EnotaryoPH/EnotaryoPH.Data/Entities/VideoRecording.cs diff --git a/EnotaryoPH/EnotaryoPH.Data/Entities/LawyerVideoConferenceSchedule.cs b/EnotaryoPH/EnotaryoPH.Data/Entities/LawyerVideoConferenceSchedule.cs index 94be60f..f59f893 100644 --- a/EnotaryoPH/EnotaryoPH.Data/Entities/LawyerVideoConferenceSchedule.cs +++ b/EnotaryoPH/EnotaryoPH.Data/Entities/LawyerVideoConferenceSchedule.cs @@ -5,12 +5,6 @@ namespace EnotaryoPH.Data.Entities [Table("LawyerVideoConferenceSchedule")] public class LawyerVideoConferenceSchedule { - [Column("ServerCallID")] - public string? ServerCallID { get; set; } - - [Column("RecordingID")] - public string? RecordingID { get; set; } - [Column("CreatedOn")] public DateTime? CreatedOn { get; set; } @@ -40,10 +34,18 @@ namespace EnotaryoPH.Data.Entities [Column("MeetingRoomUserID")] public string? MeetingRoomUserID { get; set; } + [Column("RecordingID")] + public string? RecordingID { get; set; } + + [Column("ServerCallID")] + public string? ServerCallID { get; set; } + [Column("Status")] public string? Status { get; set; } [Column("TransactionID")] public int TransactionID { get; set; } + + public VideoRecording VideoRecording { get; set; } } } \ No newline at end of file diff --git a/EnotaryoPH/EnotaryoPH.Data/Entities/VideoRecording.cs b/EnotaryoPH/EnotaryoPH.Data/Entities/VideoRecording.cs new file mode 100644 index 0000000..60450b4 --- /dev/null +++ b/EnotaryoPH/EnotaryoPH.Data/Entities/VideoRecording.cs @@ -0,0 +1,32 @@ +using System.ComponentModel.DataAnnotations.Schema; + +namespace EnotaryoPH.Data.Entities +{ + [Table("VideoRecordings")] + public class VideoRecording + { + [Column("CreatedOn")] + public DateTime? CreatedOn { get; set; } + + [Column("LocationType")] + public string? LocationType { get; set; } + + [Column("Metadata")] + public string? Metadata { get; set; } + + [Column("Path")] + public string? Path { get; set; } + + [ForeignKey("VideoConferenceScheduleID")] + public LawyerVideoConferenceSchedule VideoConferenceSchedule { get; set; } + + [Column("VideoConferenceScheduleID")] + public int VideoConferenceScheduleID { get; set; } + + [Column("VideoRecording_UID")] + public Guid? VideoRecording_UID { get; set; } + + [Column("VideoRecordingID")] + public int VideoRecordingID { get; set; } + } +} \ No newline at end of file diff --git a/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs b/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs index 27ddf2a..0ad5e93 100644 --- a/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs +++ b/EnotaryoPH/EnotaryoPH.Data/NotaryoDBContext.cs @@ -37,5 +37,6 @@ namespace EnotaryoPH.Data public DbSet TransactionSignatories { get; set; } public DbSet TransactionSignatoryDeclineReasons { get; set; } public DbSet Users { get; set; } + public DbSet VideoRecordings { get; set; } } } \ No newline at end of file