From 30576e050b3ddebf13c1d2cf7b40c658cce15102 Mon Sep 17 00:00:00 2001 From: arden-dave <111718037+arden-dave@users.noreply.github.com> Date: Fri, 7 Jul 2023 16:32:22 +0800 Subject: [PATCH] HRIS-333 [BE] Implement add new request schedule (#292) --- api/Context/HrisContext.cs | 1 + api/Entities/ChangeScheduleRequest.cs | 17 + api/Entities/Notification.cs | 2 +- api/Enums/NotificationTypeEnum.cs | 2 + ...55350_AddChangeScheduleRequest.Designer.cs | 3986 +++++++++++++++++ ...20230706055350_AddChangeScheduleRequest.cs | 130 + api/Migrations/HrisContextModelSnapshot.cs | 68 +- .../ChangeScheduleData.cs | 9 + .../NotificationData.cs | 10 + api/Requests/ChangeSchedRequest.cs | 8 + .../Mutations/EmployeeScheduleMutation.cs | 27 + api/Services/EmployeeScheduleService.cs | 31 +- api/Services/NotificationService.cs | 62 + api/Subscriptions/SubscriptionObjectType.cs | 10 + api/Utils/Validation.cs | 35 + .../EmployeeScheduleServiceValidation.cs | 31 + 16 files changed, 4416 insertions(+), 13 deletions(-) create mode 100644 api/Entities/ChangeScheduleRequest.cs create mode 100644 api/Migrations/20230706055350_AddChangeScheduleRequest.Designer.cs create mode 100644 api/Migrations/20230706055350_AddChangeScheduleRequest.cs create mode 100644 api/NotificationDataClasses/ChangeScheduleData.cs create mode 100644 api/NotificationDataClasses/NotificationData.cs create mode 100644 api/Requests/ChangeSchedRequest.cs create mode 100644 api/Utils/Validation/EmployeeScheduleServiceValidation.cs diff --git a/api/Context/HrisContext.cs b/api/Context/HrisContext.cs index 0f33d5c3..a7e1c8e4 100644 --- a/api/Context/HrisContext.cs +++ b/api/Context/HrisContext.cs @@ -34,6 +34,7 @@ public HrisContext(DbContextOptions options) public DbSet Overtimes { get; set; } = default!; public DbSet ChangeShiftRequests { get; set; } = default!; public DbSet ESLChangeShiftRequests { get; set; } = default!; + public DbSet ChangeScheduleRequests { get; set; } = default!; public DbSet Positions { get; set; } = default!; public DbSet ESLOffsets { get; set; } = default!; public DbSet
Forms { get; set; } = default!; diff --git a/api/Entities/ChangeScheduleRequest.cs b/api/Entities/ChangeScheduleRequest.cs new file mode 100644 index 00000000..9949c03a --- /dev/null +++ b/api/Entities/ChangeScheduleRequest.cs @@ -0,0 +1,17 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace api.Entities +{ + public class ChangeScheduleRequest : BaseEntity + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + public int UserId { get; set; } + public bool? IsManagerApproved { get; set; } + public bool? IsLeaderApproved { get; set; } + public string Data { get; set; } = default!; + public User User { get; set; } = default!; + } +} diff --git a/api/Entities/Notification.cs b/api/Entities/Notification.cs index a8aab73f..e462092c 100644 --- a/api/Entities/Notification.cs +++ b/api/Entities/Notification.cs @@ -9,11 +9,11 @@ public class Notification : BaseEntity [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public int? RecipientId { get; set; } + public int? RelatedEntityId { get; set; } public string Type { get; set; } = default!; public string Data { get; set; } = default!; public DateTime? ReadAt { get; set; } = default!; public bool IsRead { get; set; } = false; - public User? Recipient { get; set; } } } diff --git a/api/Enums/NotificationTypeEnum.cs b/api/Enums/NotificationTypeEnum.cs index cdf32e96..0390e933 100644 --- a/api/Enums/NotificationTypeEnum.cs +++ b/api/Enums/NotificationTypeEnum.cs @@ -9,11 +9,13 @@ public static class NotificationTypeEnum public const string CHANGE_SHIFT = "change shift"; public const string ESL_OFFSET_SCHEDULE = "esl change shift"; public const string ESL_OFFSET = "offset"; + public const string CHANGE_SCHEDULE = "change schedule"; public const string LEAVE_RESOLVED = "leave_resolved"; public const string OVERTIME_RESOLVED = "overtime_resolved"; public const string UNDERTIME_RESOLVED = "undertime_resolved"; public const string CHANGE_SHIFT_RESOLVED = "change shift_resolved"; public const string ESL_OFFSET_SCHEDULE_RESOLVED = "esl change shift_resolved"; public const string ESL_OFFSET_RESOLVED = "offset_resolved"; + public const string CHANGE_SCHEDULE_RESOLVED = "change schedule_resolved"; } } diff --git a/api/Migrations/20230706055350_AddChangeScheduleRequest.Designer.cs b/api/Migrations/20230706055350_AddChangeScheduleRequest.Designer.cs new file mode 100644 index 00000000..cae306ba --- /dev/null +++ b/api/Migrations/20230706055350_AddChangeScheduleRequest.Designer.cs @@ -0,0 +1,3986 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using api.Context; + +#nullable disable + +namespace api.Migrations +{ + [DbContext(typeof(HrisContext))] + [Migration("20230706055350_AddChangeScheduleRequest")] + partial class AddChangeScheduleRequest + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.1") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("api.Entities.ChangeScheduleRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Data") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsManagerApproved") + .HasColumnType("bit"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("ChangeScheduleRequests"); + }); + + modelBuilder.Entity("api.Entities.ChangeShiftRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Description") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsManagerApproved") + .HasColumnType("bit"); + + b.Property("ManagerId") + .HasColumnType("int"); + + b.Property("OtherProject") + .HasColumnType("nvarchar(max)"); + + b.Property("TimeEntryId") + .HasColumnType("int"); + + b.Property("TimeIn") + .HasColumnType("time"); + + b.Property("TimeOut") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ManagerId"); + + b.HasIndex("TimeEntryId") + .IsUnique(); + + b.HasIndex("UserId"); + + b.ToTable("ChangeShiftRequests"); + }); + + modelBuilder.Entity("api.Entities.ESLChangeShiftRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Description") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("TeamLeaderId") + .HasColumnType("int"); + + b.Property("TimeEntryId") + .HasColumnType("int"); + + b.Property("TimeIn") + .HasColumnType("time"); + + b.Property("TimeOut") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TeamLeaderId"); + + b.HasIndex("TimeEntryId"); + + b.HasIndex("UserId"); + + b.ToTable("ESLChangeShiftRequests"); + }); + + modelBuilder.Entity("api.Entities.ESLOffset", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Description") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ESLChangeShiftRequestId") + .HasColumnType("int"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsUsed") + .HasColumnType("bit"); + + b.Property("TeamLeaderId") + .HasColumnType("int"); + + b.Property("TimeEntryId") + .HasColumnType("int"); + + b.Property("TimeIn") + .HasColumnType("time"); + + b.Property("TimeOut") + .HasColumnType("time"); + + b.Property("Title") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ESLChangeShiftRequestId"); + + b.HasIndex("TeamLeaderId"); + + b.HasIndex("TimeEntryId"); + + b.HasIndex("UserId"); + + b.ToTable("ESLOffsets"); + }); + + modelBuilder.Entity("api.Entities.EmployeeSchedule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("EmployeeSchedules"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Morning Shift", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Afternoon Shift", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.Form", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Field") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.Property("Value") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Forms"); + }); + + modelBuilder.Entity("api.Entities.Leave", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Days") + .HasColumnType("real"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsManagerApproved") + .HasColumnType("bit"); + + b.Property("IsWithPay") + .HasColumnType("bit"); + + b.Property("LeaveDate") + .HasColumnType("datetime2"); + + b.Property("LeaveTypeId") + .HasColumnType("int"); + + b.Property("ManagerId") + .HasColumnType("int"); + + b.Property("OtherProject") + .HasColumnType("nvarchar(max)"); + + b.Property("ProjectId") + .HasColumnType("int"); + + b.Property("Reason") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("LeaveTypeId"); + + b.HasIndex("ManagerId"); + + b.HasIndex("ProjectId"); + + b.HasIndex("UserId"); + + b.ToTable("Leaves"); + }); + + modelBuilder.Entity("api.Entities.LeaveType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("LeaveTypes"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Sick leave", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Bereavement leave", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Emergency leave", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Vacation leave", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Maternity/Paternity leave", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Undertime", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.Media", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CollectionName") + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("FileName") + .HasColumnType("nvarchar(max)"); + + b.Property("MimeType") + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("TimeId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("TimeId"); + + b.ToTable("Medias"); + + b.HasData( + new + { + Id = 1, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 7, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 8, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 9, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 10, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 11, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 12, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 13, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 14, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 15, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 16, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 17, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 18, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 19, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 20, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 21, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 22, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 23, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 24, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 25, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 26, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 27, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 28, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 29, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 30, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 31, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 32, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 33, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 34, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 35, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 36, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 37, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 38, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 39, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 40, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 41, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 42, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 43, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 44, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 45, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 46, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 47, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 48, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 49, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 50, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 51, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 52, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 53, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 54, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 55, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 56, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 57, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 58, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 59, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 60, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 61, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 62, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 63, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 64, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 65, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 66, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 67, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 68, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 69, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 70, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 71, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 72, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 73, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 74, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 75, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 76, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 77, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 78, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 79, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 80, + CollectionName = "avatar", + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + FileName = "default.png", + MimeType = "image/png", + Name = "defaultAvatar", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.MultiProject", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ChangeShiftRequestId") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("LeaveId") + .HasColumnType("int"); + + b.Property("OvertimeId") + .HasColumnType("int"); + + b.Property("ProjectId") + .HasColumnType("int"); + + b.Property("ProjectLeaderId") + .HasColumnType("int"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ChangeShiftRequestId"); + + b.HasIndex("LeaveId"); + + b.HasIndex("OvertimeId"); + + b.HasIndex("ProjectId"); + + b.HasIndex("ProjectLeaderId"); + + b.ToTable("MultiProjects"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(579), + LeaveId = 1, + ProjectId = 1, + ProjectLeaderId = 1, + Type = "leave", + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(581) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1965), + OvertimeId = 2, + ProjectId = 1, + ProjectLeaderId = 1, + Type = "overtime", + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1967) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2215), + OvertimeId = 3, + ProjectId = 1, + ProjectLeaderId = 1, + Type = "overtime", + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2216) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2218), + OvertimeId = 1, + ProjectId = 1, + ProjectLeaderId = 1, + Type = "overtime", + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2219) + }); + }); + + modelBuilder.Entity("api.Entities.Notification", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Data") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsRead") + .HasColumnType("bit"); + + b.Property("ReadAt") + .HasColumnType("datetime2"); + + b.Property("RecipientId") + .HasColumnType("int"); + + b.Property("RelatedEntityId") + .HasColumnType("int"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("RecipientId"); + + b.ToTable("Notifications"); + + b.HasDiscriminator("Discriminator").HasValue("Notification"); + + b.UseTphMappingStrategy(); + }); + + modelBuilder.Entity("api.Entities.Overtime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ApprovedMinutes") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsManagerApproved") + .HasColumnType("bit"); + + b.Property("ManagerId") + .HasColumnType("int"); + + b.Property("ManagerRemarks") + .HasColumnType("nvarchar(max)"); + + b.Property("OtherProject") + .HasColumnType("nvarchar(max)"); + + b.Property("OvertimeDate") + .HasColumnType("datetime2"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestedMinutes") + .HasColumnType("int"); + + b.Property("TimeEntryId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ManagerId"); + + b.HasIndex("TimeEntryId") + .IsUnique(); + + b.HasIndex("UserId"); + + b.ToTable("Overtimes"); + + b.HasData( + new + { + Id = 1, + ApprovedMinutes = 125, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + IsLeaderApproved = true, + IsManagerApproved = true, + ManagerId = 33, + OtherProject = "Other project", + OvertimeDate = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "1 Lorem ipsum dolor, sit amet consectetur adipisicing elit. Odit, id maiores perspiciatis animi assumenda, non laudantium qui doloribus soluta accusamus eaque et voluptate. Porro, explicabo rem fugit vel nisi eligendi.", + RequestedMinutes = 125, + TimeEntryId = 1, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 33 + }, + new + { + Id = 2, + ApprovedMinutes = 125, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + IsLeaderApproved = true, + IsManagerApproved = false, + ManagerId = 33, + OtherProject = "Other project", + OvertimeDate = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "1 Lorem ipsum dolor, sit amet consectetur adipisicing elit. Odit, id maiores perspiciatis animi assumenda, non laudantium qui doloribus soluta accusamus eaque et voluptate. Porro, explicabo rem fugit vel nisi eligendi.", + RequestedMinutes = 125, + TimeEntryId = 2, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 53 + }, + new + { + Id = 3, + ApprovedMinutes = 125, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + ManagerId = 33, + OtherProject = "Other project", + OvertimeDate = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "1 Lorem ipsum dolor, sit amet consectetur adipisicing elit. Odit, id maiores perspiciatis animi assumenda, non laudantium qui doloribus soluta accusamus eaque et voluptate. Porro, explicabo rem fugit vel nisi eligendi.", + RequestedMinutes = 125, + TimeEntryId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 64 + }); + }); + + modelBuilder.Entity("api.Entities.Personal_Access_Token", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Expiration") + .HasColumnType("datetime2"); + + b.Property("Token") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Personal_Access_Tokens"); + }); + + modelBuilder.Entity("api.Entities.Position", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("Positions"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Manager", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Assistant Manager", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Admin", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Web Developer", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "ESL Teacher", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Web Developer - Trainer", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 7, + CreatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Web Developer - Team Leader", + UpdatedAt = new DateTime(2023, 3, 20, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.Project", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProjectLeaderId") + .HasColumnType("int"); + + b.Property("ProjectSubLeaderId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ProjectLeaderId"); + + b.HasIndex("ProjectSubLeaderId"); + + b.ToTable("Projects"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Admin", + ProjectLeaderId = 21, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Casec", + ProjectLeaderId = 6, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Shaperon", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "01Booster", + ProjectLeaderId = 72, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Edge", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "DTS", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 7, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "OJT", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 8, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Safie", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 9, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "AAA Education", + ProjectLeaderId = 74, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 10, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Development Training", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 11, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Yamato", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 12, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Next Base", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 13, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "MetaJobs", + ProjectLeaderId = 25, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 14, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Prrrr", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 15, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Aironworks", + ProjectLeaderId = 70, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 16, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "OsakaMetro", + ProjectLeaderId = 68, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 17, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Others", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 18, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "MeetsOne", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 19, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Study Gear", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 20, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Spacee", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 21, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Zeon", + ProjectLeaderId = 30, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.Role", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("Roles"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Manager", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "HR Admin", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Employee", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.Time", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("TimeHour") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("Times"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "First time in", + TimeHour = new TimeSpan(0, 9, 15, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "Second time in", + TimeHour = new TimeSpan(0, 9, 15, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "Third time in", + TimeHour = new TimeSpan(0, 10, 15, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "First time out", + TimeHour = new TimeSpan(0, 18, 15, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "Second time out", + TimeHour = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Remarks = "Third time out", + TimeHour = new TimeSpan(0, 19, 59, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.TimeEntry", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BreakEndTime") + .HasColumnType("time"); + + b.Property("BreakStartTime") + .HasColumnType("time"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Date") + .HasColumnType("datetime2"); + + b.Property("EndTime") + .HasColumnType("time"); + + b.Property("StartTime") + .HasColumnType("time"); + + b.Property("TimeInId") + .HasColumnType("int"); + + b.Property("TimeOutId") + .HasColumnType("int"); + + b.Property("TrackedHours") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.Property("WorkedHours") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("TimeInId"); + + b.HasIndex("TimeOutId"); + + b.HasIndex("UserId"); + + b.ToTable("TimeEntries"); + + b.HasData( + new + { + Id = 1, + BreakEndTime = new TimeSpan(0, 0, 0, 0, 0), + BreakStartTime = new TimeSpan(0, 0, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Date = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + EndTime = new TimeSpan(0, 18, 30, 0, 0), + StartTime = new TimeSpan(0, 9, 30, 0, 0), + TimeInId = 1, + TimeOutId = 4, + TrackedHours = new TimeSpan(0, 8, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 1, + WorkedHours = "08:00" + }, + new + { + Id = 2, + BreakEndTime = new TimeSpan(0, 0, 0, 0, 0), + BreakStartTime = new TimeSpan(0, 0, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Date = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + EndTime = new TimeSpan(0, 18, 30, 0, 0), + StartTime = new TimeSpan(0, 9, 30, 0, 0), + TimeInId = 2, + TimeOutId = 5, + TrackedHours = new TimeSpan(0, 8, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 2, + WorkedHours = "08:15" + }, + new + { + Id = 3, + BreakEndTime = new TimeSpan(0, 0, 0, 0, 0), + BreakStartTime = new TimeSpan(0, 0, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Date = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + EndTime = new TimeSpan(0, 18, 30, 0, 0), + StartTime = new TimeSpan(0, 9, 30, 0, 0), + TimeInId = 3, + TimeOutId = 6, + TrackedHours = new TimeSpan(0, 8, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + UserId = 1, + WorkedHours = "08:44" + }); + }); + + modelBuilder.Entity("api.Entities.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Email") + .HasColumnType("nvarchar(max)"); + + b.Property("EmployeeScheduleId") + .HasColumnType("int"); + + b.Property("IsOnline") + .HasColumnType("bit"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("PaidLeaves") + .HasColumnType("real"); + + b.Property("PositionId") + .HasColumnType("int"); + + b.Property("ProfileImageId") + .HasColumnType("int"); + + b.Property("RoleId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("EmployeeScheduleId"); + + b.HasIndex("PositionId"); + + b.HasIndex("ProfileImageId"); + + b.HasIndex("RoleId"); + + b.ToTable("Users"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "abduljalil.palala@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Abdul Jalil Palala", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 1, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "alvil.balbuena@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Alvil Balbuena", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 2, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "nicoleamber.mariscal@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Nicole Amber Mariscal", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 3, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ardendave.cabotaje@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Arden Dave Cabotaje", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 4, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "brucenigel.vilo@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Bruce Nigel Vilo", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 5, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "charlotte.sacmar@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Charlotte Sacmar", + PaidLeaves = 12f, + PositionId = 7, + ProfileImageId = 6, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 7, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "chevy.banico@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Chevy Banico", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 7, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 8, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "daisuke.nishide@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Daisuke Nishide", + PaidLeaves = 12f, + PositionId = 1, + ProfileImageId = 8, + RoleId = 1, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 9, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "derick.bulawan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Derick Bulawan", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 9, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 10, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "dether.dacuma@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Dether Dacuma", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 10, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 11, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "dexterlouie.aniez@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Dexter Louie Aniez", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 11, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 12, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "efren.catedrilla@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Efren Catedrilla II", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 12, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 13, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "egie.garciano@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Egie Garciano", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 13, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 14, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "elainegrace.jalipa@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Elaine Grace Jalipa", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 14, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 15, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "elyric.manatad@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Elyric Manatad", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 15, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 16, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "fionakathryn.nono@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Fiona Kathryn Nono", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 16, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 17, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "francis.delossantos@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Francis Delos Santos", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 17, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 18, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "fumihito.umekita@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Fumihito Umekita", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 18, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 19, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "gabrielhansley.suarez@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Gabriel Hansley Suarez", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 19, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 20, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "geneno.sampayan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Sampayan Geneno", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 20, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 21, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "genrevel.manreal@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Genrevel Manreal", + PaidLeaves = 12f, + PositionId = 3, + ProfileImageId = 21, + RoleId = 2, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 22, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "preciousgift.canovas@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Gift Canovas", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 22, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 23, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "marygoldie.satinitigan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Mary Goldie Satinitigan", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 23, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 24, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ianmichael.urriza@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Ian Michael Urriza", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 24, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 25, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "inahmarie.sanjuan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Inah Marie San Juan", + PaidLeaves = 12f, + PositionId = 7, + ProfileImageId = 25, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 26, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "janzen.guzman@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Janzen Guzman", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 26, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 27, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jasonclyde.chua@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jason Clyde Chua", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 27, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 28, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jennifer.chan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jennifer Chan", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 28, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 29, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jeraldjoshua.echavia@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jerald Joshua Echavia", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 29, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 30, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jeremiah.caballero@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jeremiah Caballero", + PaidLeaves = 12f, + PositionId = 7, + ProfileImageId = 30, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 31, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "marcjermaine.pontiveros@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Marc Jermaine Pontiveros", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 31, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 32, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jesamae.obcial@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jesamae Obcial", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 32, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 33, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jhoannadianne.ardiente@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jhoanna Dianne Ardiente", + PaidLeaves = 12f, + PositionId = 3, + ProfileImageId = 33, + RoleId = 2, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 34, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jhonrhon.escabillas@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jhon Rhon Escabillas", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 34, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 35, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "jieno.pepito@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jieno Pepito", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 35, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 36, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "joash.canete@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Joash Cañete", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 36, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 37, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "johnpaul.banera@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "John Paul Banera", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 37, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 38, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "johnharvey.catampongan@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "John Harvey Catampongan", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 38, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 39, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "johnroy.cabezas@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "John Roy Cabezas", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 39, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 40, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "johnstephen.degillo@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "John Stephen Degillo", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 40, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 41, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "josegabriel.javier@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jose Gabriel Javier", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 41, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 42, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "josephroqueisidro.navares@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Joseph Roque Isidro Navares", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 42, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 43, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "joshua.escarilla@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Joshua Escarilla", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 43, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 44, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "joshua.galit@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Joshua Galit", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 44, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 45, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "julesrussel.lucero@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Jules Russel Lucero", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 45, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 46, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "karloandre.lee@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Karlo Andre Lee", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 46, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 47, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "kenorenz.bacunawa@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Keno Renz Bacunawa", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 47, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 48, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "kentnino.ipili@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Kent Niño Ipili", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 48, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 49, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "kurt.dacudag@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Kurt Dacudag", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 49, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 50, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "lemar.escomo@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Lemar Escomo", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 50, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 51, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "louisegwen.pujante@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Louise Gwen Pujante", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 51, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 52, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "markjason.delima@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Mark Jason Delima", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 52, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 53, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "melanthony.ando@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Mel Anthony Ando", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 53, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 54, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "michael.silverio@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Michael Silverio", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 54, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 55, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "neilmar.laurente@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Neilmar Laurente", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 55, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 56, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "kylenikka.lizardo@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Kyle Nikka Lizardo", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 56, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 57, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "nilo.castillano@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Nilo Castillano Jr", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 57, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 58, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "paulerick.doroy@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Paul Erick Doroy", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 58, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 59, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ejanton.potot@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "EJ Anton Potot", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 59, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 60, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "mariaysabellaradgelouise.lucero@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Maria Ysabella Radge Louise Lucero", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 60, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 61, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "redempto.legaspi@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Redempto Dagoc Legaspi III", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 61, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 62, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "reneangelo.gunayon@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Rene Angelo Gunayon", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 62, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 63, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "richelle.isla@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Richelle Isla", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 63, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 64, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "rj.fajardo@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "RJ Fajardo", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 64, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 65, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "roberto.delrosario@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Roberto Del Rosario", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 65, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 66, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "rogeliojohn.oliverio@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Rogelio John Oliverio", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 66, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 67, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "roman.duetes@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Roman Duetes", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 67, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 68, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "rose.augusto@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Rose Augusto", + PaidLeaves = 12f, + PositionId = 7, + ProfileImageId = 68, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 69, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ryanjasper.macapobre@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Ryan Jasper Macapobre", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 69, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 70, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ryan.dupay@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Ryan Dupay", + PaidLeaves = 12f, + PositionId = 2, + ProfileImageId = 70, + RoleId = 1, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 71, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "sheena.belino@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Sheena Belino", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 71, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 72, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "soki.terai@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Souki Terai", + PaidLeaves = 12f, + PositionId = 7, + ProfileImageId = 72, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 73, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "sonrhey.deiparine@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Son Rhey Deiparine", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 73, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 74, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "christan.shane.plaza@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Christan Plaza", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 74, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 75, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "marytherese.alegre@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Mary Therese Alegre", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 75, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 76, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "trishamarie.villasencio@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Trisha Marie Villasencio", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 76, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 77, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "ruziboev.vali@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Vali Ruziboev", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 77, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 78, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "wylenjoan.lee@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Wylen Joan Lee", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 78, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 79, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "zionkeenen.tavera@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Zion Keenen Tavera", + PaidLeaves = 12f, + PositionId = 4, + ProfileImageId = 79, + RoleId = 3, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 80, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Email = "quennie.andeza@sun-asterisk.com", + EmployeeScheduleId = 1, + IsOnline = false, + Name = "Quennie Andeza", + PaidLeaves = 12f, + PositionId = 3, + ProfileImageId = 80, + RoleId = 2, + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.WorkInterruption", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("OtherReason") + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("TimeEntryId") + .HasColumnType("int"); + + b.Property("TimeIn") + .HasColumnType("time"); + + b.Property("TimeOut") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("WorkInterruptionTypeId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("TimeEntryId"); + + b.HasIndex("WorkInterruptionTypeId"); + + b.ToTable("WorkInterruptions"); + }); + + modelBuilder.Entity("api.Entities.WorkInterruptionType", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.ToTable("WorkInterruptionTypes"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Power Interruption", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Lost Internet Connection", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Emergency", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Errands", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Name = "Others", + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.WorkingDayTime", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BreakFrom") + .HasColumnType("time"); + + b.Property("BreakTo") + .HasColumnType("time"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Day") + .HasColumnType("nvarchar(max)"); + + b.Property("EmployeeScheduleId") + .HasColumnType("int"); + + b.Property("From") + .HasColumnType("time"); + + b.Property("To") + .HasColumnType("time"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("EmployeeScheduleId"); + + b.ToTable("WorkingDayTimes"); + + b.HasData( + new + { + Id = 1, + BreakFrom = new TimeSpan(0, 12, 0, 0, 0), + BreakTo = new TimeSpan(0, 13, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Monday", + EmployeeScheduleId = 1, + From = new TimeSpan(0, 9, 30, 0, 0), + To = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 2, + BreakFrom = new TimeSpan(0, 12, 0, 0, 0), + BreakTo = new TimeSpan(0, 13, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Tuesday", + EmployeeScheduleId = 1, + From = new TimeSpan(0, 9, 30, 0, 0), + To = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 3, + BreakFrom = new TimeSpan(0, 12, 0, 0, 0), + BreakTo = new TimeSpan(0, 13, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Wednesday", + EmployeeScheduleId = 1, + From = new TimeSpan(0, 9, 30, 0, 0), + To = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 4, + BreakFrom = new TimeSpan(0, 12, 0, 0, 0), + BreakTo = new TimeSpan(0, 13, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Thursday", + EmployeeScheduleId = 1, + From = new TimeSpan(0, 9, 30, 0, 0), + To = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 5, + BreakFrom = new TimeSpan(0, 12, 0, 0, 0), + BreakTo = new TimeSpan(0, 13, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Friday", + EmployeeScheduleId = 1, + From = new TimeSpan(0, 9, 30, 0, 0), + To = new TimeSpan(0, 18, 30, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 6, + BreakFrom = new TimeSpan(0, 17, 0, 0, 0), + BreakTo = new TimeSpan(0, 18, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Monday", + EmployeeScheduleId = 2, + From = new TimeSpan(0, 13, 0, 0, 0), + To = new TimeSpan(0, 22, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 7, + BreakFrom = new TimeSpan(0, 17, 0, 0, 0), + BreakTo = new TimeSpan(0, 18, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Tuesday", + EmployeeScheduleId = 2, + From = new TimeSpan(0, 13, 0, 0, 0), + To = new TimeSpan(0, 22, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 8, + BreakFrom = new TimeSpan(0, 17, 0, 0, 0), + BreakTo = new TimeSpan(0, 18, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Wednesday", + EmployeeScheduleId = 2, + From = new TimeSpan(0, 13, 0, 0, 0), + To = new TimeSpan(0, 22, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 9, + BreakFrom = new TimeSpan(0, 17, 0, 0, 0), + BreakTo = new TimeSpan(0, 18, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Thursday", + EmployeeScheduleId = 2, + From = new TimeSpan(0, 13, 0, 0, 0), + To = new TimeSpan(0, 22, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }, + new + { + Id = 10, + BreakFrom = new TimeSpan(0, 17, 0, 0, 0), + BreakTo = new TimeSpan(0, 18, 0, 0, 0), + CreatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827), + Day = "Friday", + EmployeeScheduleId = 2, + From = new TimeSpan(0, 13, 0, 0, 0), + To = new TimeSpan(0, 22, 0, 0, 0), + UpdatedAt = new DateTime(2023, 1, 27, 16, 28, 6, 79, DateTimeKind.Local).AddTicks(7827) + }); + }); + + modelBuilder.Entity("api.Entities.ChangeShiftNotification", b => + { + b.HasBaseType("api.Entities.Notification"); + + b.Property("ChangeShiftRequestId") + .HasColumnType("int"); + + b.HasIndex("ChangeShiftRequestId"); + + b.HasDiscriminator().HasValue("ChangeShiftNotification"); + }); + + modelBuilder.Entity("api.Entities.ESLChangeShiftNotification", b => + { + b.HasBaseType("api.Entities.Notification"); + + b.Property("ESLChangeShiftRequestId") + .HasColumnType("int"); + + b.HasIndex("ESLChangeShiftRequestId"); + + b.HasDiscriminator().HasValue("ESLChangeShiftNotification"); + }); + + modelBuilder.Entity("api.Entities.ESLOffsetNotification", b => + { + b.HasBaseType("api.Entities.Notification"); + + b.Property("ESLOffsetId") + .HasColumnType("int"); + + b.HasIndex("ESLOffsetId"); + + b.HasDiscriminator().HasValue("ESLOffsetNotification"); + }); + + modelBuilder.Entity("api.Entities.LeaveNotification", b => + { + b.HasBaseType("api.Entities.Notification"); + + b.Property("LeaveId") + .HasColumnType("int"); + + b.HasIndex("LeaveId"); + + b.HasDiscriminator().HasValue("LeaveNotification"); + + b.HasData( + new + { + Id = 1, + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4791), + Data = "Some JSON Data", + IsRead = false, + RecipientId = 70, + Type = "leave", + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4813), + LeaveId = 1 + }); + }); + + modelBuilder.Entity("api.Entities.OvertimeNotification", b => + { + b.HasBaseType("api.Entities.Notification"); + + b.Property("OvertimeId") + .HasColumnType("int"); + + b.HasIndex("OvertimeId"); + + b.HasDiscriminator().HasValue("OvertimeNotification"); + }); + + modelBuilder.Entity("api.Entities.ChangeScheduleRequest", b => + { + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.ChangeShiftRequest", b => + { + b.HasOne("api.Entities.User", "Manager") + .WithMany() + .HasForeignKey("ManagerId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.TimeEntry", "TimeEntry") + .WithOne("ChangeShiftRequest") + .HasForeignKey("api.Entities.ChangeShiftRequest", "TimeEntryId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.Navigation("Manager"); + + b.Navigation("TimeEntry"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.ESLChangeShiftRequest", b => + { + b.HasOne("api.Entities.User", "TeamLeader") + .WithMany() + .HasForeignKey("TeamLeaderId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.TimeEntry", "TimeEntry") + .WithMany() + .HasForeignKey("TimeEntryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.Navigation("TeamLeader"); + + b.Navigation("TimeEntry"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.ESLOffset", b => + { + b.HasOne("api.Entities.ESLChangeShiftRequest", "ESLChangeShiftRequest") + .WithMany("ESLOffsets") + .HasForeignKey("ESLChangeShiftRequestId"); + + b.HasOne("api.Entities.User", "TeamLeader") + .WithMany() + .HasForeignKey("TeamLeaderId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.TimeEntry", "TimeEntry") + .WithMany("ESLOffsets") + .HasForeignKey("TimeEntryId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.Navigation("ESLChangeShiftRequest"); + + b.Navigation("TeamLeader"); + + b.Navigation("TimeEntry"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.Form", b => + { + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.Leave", b => + { + b.HasOne("api.Entities.LeaveType", "LeaveType") + .WithMany() + .HasForeignKey("LeaveTypeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api.Entities.User", "Manager") + .WithMany() + .HasForeignKey("ManagerId"); + + b.HasOne("api.Entities.Project", null) + .WithMany("Leaves") + .HasForeignKey("ProjectId"); + + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("LeaveType"); + + b.Navigation("Manager"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.Media", b => + { + b.HasOne("api.Entities.Time", null) + .WithMany("Media") + .HasForeignKey("TimeId"); + }); + + modelBuilder.Entity("api.Entities.MultiProject", b => + { + b.HasOne("api.Entities.ChangeShiftRequest", null) + .WithMany("MultiProjects") + .HasForeignKey("ChangeShiftRequestId"); + + b.HasOne("api.Entities.Leave", null) + .WithMany("LeaveProjects") + .HasForeignKey("LeaveId"); + + b.HasOne("api.Entities.Overtime", null) + .WithMany("MultiProjects") + .HasForeignKey("OvertimeId"); + + b.HasOne("api.Entities.Project", "Project") + .WithMany() + .HasForeignKey("ProjectId"); + + b.HasOne("api.Entities.User", "ProjectLeader") + .WithMany() + .HasForeignKey("ProjectLeaderId"); + + b.Navigation("Project"); + + b.Navigation("ProjectLeader"); + }); + + modelBuilder.Entity("api.Entities.Notification", b => + { + b.HasOne("api.Entities.User", "Recipient") + .WithMany() + .HasForeignKey("RecipientId"); + + b.Navigation("Recipient"); + }); + + modelBuilder.Entity("api.Entities.Overtime", b => + { + b.HasOne("api.Entities.User", "Manager") + .WithMany() + .HasForeignKey("ManagerId"); + + b.HasOne("api.Entities.TimeEntry", "TimeEntry") + .WithOne("Overtime") + .HasForeignKey("api.Entities.Overtime", "TimeEntryId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.HasOne("api.Entities.User", "User") + .WithMany("Overtimes") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.Navigation("Manager"); + + b.Navigation("TimeEntry"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.Personal_Access_Token", b => + { + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.Project", b => + { + b.HasOne("api.Entities.User", "ProjectLeader") + .WithMany() + .HasForeignKey("ProjectLeaderId"); + + b.HasOne("api.Entities.User", "ProjectSubLeader") + .WithMany() + .HasForeignKey("ProjectSubLeaderId"); + + b.Navigation("ProjectLeader"); + + b.Navigation("ProjectSubLeader"); + }); + + modelBuilder.Entity("api.Entities.TimeEntry", b => + { + b.HasOne("api.Entities.Time", "TimeIn") + .WithMany() + .HasForeignKey("TimeInId"); + + b.HasOne("api.Entities.Time", "TimeOut") + .WithMany() + .HasForeignKey("TimeOutId"); + + b.HasOne("api.Entities.User", "User") + .WithMany("TimeEntries") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("TimeIn"); + + b.Navigation("TimeOut"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("api.Entities.User", b => + { + b.HasOne("api.Entities.EmployeeSchedule", "EmployeeSchedule") + .WithMany("Users") + .HasForeignKey("EmployeeScheduleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api.Entities.Position", "Position") + .WithMany() + .HasForeignKey("PositionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api.Entities.Media", "ProfileImage") + .WithMany() + .HasForeignKey("ProfileImageId"); + + b.HasOne("api.Entities.Role", "Role") + .WithMany("Users") + .HasForeignKey("RoleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("EmployeeSchedule"); + + b.Navigation("Position"); + + b.Navigation("ProfileImage"); + + b.Navigation("Role"); + }); + + modelBuilder.Entity("api.Entities.WorkInterruption", b => + { + b.HasOne("api.Entities.TimeEntry", "TimeEntry") + .WithMany("WorkInterruptions") + .HasForeignKey("TimeEntryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("api.Entities.WorkInterruptionType", "WorkInterruptionType") + .WithMany("WorkInterruption") + .HasForeignKey("WorkInterruptionTypeId"); + + b.Navigation("TimeEntry"); + + b.Navigation("WorkInterruptionType"); + }); + + modelBuilder.Entity("api.Entities.WorkingDayTime", b => + { + b.HasOne("api.Entities.EmployeeSchedule", "EmployeeSchedule") + .WithMany("WorkingDayTimes") + .HasForeignKey("EmployeeScheduleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("EmployeeSchedule"); + }); + + modelBuilder.Entity("api.Entities.ChangeShiftNotification", b => + { + b.HasOne("api.Entities.ChangeShiftRequest", "ChangeShiftRequest") + .WithMany() + .HasForeignKey("ChangeShiftRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("ChangeShiftRequest"); + }); + + modelBuilder.Entity("api.Entities.ESLChangeShiftNotification", b => + { + b.HasOne("api.Entities.ESLChangeShiftRequest", "ESLChangeShiftRequest") + .WithMany() + .HasForeignKey("ESLChangeShiftRequestId") + .OnDelete(DeleteBehavior.NoAction) + .IsRequired(); + + b.Navigation("ESLChangeShiftRequest"); + }); + + modelBuilder.Entity("api.Entities.ESLOffsetNotification", b => + { + b.HasOne("api.Entities.ESLOffset", "ESLOffset") + .WithMany() + .HasForeignKey("ESLOffsetId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("ESLOffset"); + }); + + modelBuilder.Entity("api.Entities.LeaveNotification", b => + { + b.HasOne("api.Entities.Leave", "Leave") + .WithMany("LeaveNotifications") + .HasForeignKey("LeaveId"); + + b.Navigation("Leave"); + }); + + modelBuilder.Entity("api.Entities.OvertimeNotification", b => + { + b.HasOne("api.Entities.Overtime", "Overtime") + .WithMany() + .HasForeignKey("OvertimeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Overtime"); + }); + + modelBuilder.Entity("api.Entities.ChangeShiftRequest", b => + { + b.Navigation("MultiProjects"); + }); + + modelBuilder.Entity("api.Entities.ESLChangeShiftRequest", b => + { + b.Navigation("ESLOffsets"); + }); + + modelBuilder.Entity("api.Entities.EmployeeSchedule", b => + { + b.Navigation("Users"); + + b.Navigation("WorkingDayTimes"); + }); + + modelBuilder.Entity("api.Entities.Leave", b => + { + b.Navigation("LeaveNotifications"); + + b.Navigation("LeaveProjects"); + }); + + modelBuilder.Entity("api.Entities.Overtime", b => + { + b.Navigation("MultiProjects"); + }); + + modelBuilder.Entity("api.Entities.Project", b => + { + b.Navigation("Leaves"); + }); + + modelBuilder.Entity("api.Entities.Role", b => + { + b.Navigation("Users"); + }); + + modelBuilder.Entity("api.Entities.Time", b => + { + b.Navigation("Media"); + }); + + modelBuilder.Entity("api.Entities.TimeEntry", b => + { + b.Navigation("ChangeShiftRequest"); + + b.Navigation("ESLOffsets"); + + b.Navigation("Overtime"); + + b.Navigation("WorkInterruptions"); + }); + + modelBuilder.Entity("api.Entities.User", b => + { + b.Navigation("Overtimes"); + + b.Navigation("TimeEntries"); + }); + + modelBuilder.Entity("api.Entities.WorkInterruptionType", b => + { + b.Navigation("WorkInterruption"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/api/Migrations/20230706055350_AddChangeScheduleRequest.cs b/api/Migrations/20230706055350_AddChangeScheduleRequest.cs new file mode 100644 index 00000000..8329c82d --- /dev/null +++ b/api/Migrations/20230706055350_AddChangeScheduleRequest.cs @@ -0,0 +1,130 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace api.Migrations +{ + /// + public partial class AddChangeScheduleRequest : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "RelatedEntityId", + table: "Notifications", + type: "int", + nullable: true); + + migrationBuilder.CreateTable( + name: "ChangeScheduleRequests", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + UserId = table.Column(type: "int", nullable: false), + IsManagerApproved = table.Column(type: "bit", nullable: true), + IsLeaderApproved = table.Column(type: "bit", nullable: true), + Data = table.Column(type: "nvarchar(max)", nullable: false), + CreatedAt = table.Column(type: "datetime2", nullable: true), + UpdatedAt = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_ChangeScheduleRequests", x => x.Id); + table.ForeignKey( + name: "FK_ChangeScheduleRequests_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 1, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(579), new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(581) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 2, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1965), new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1967) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 3, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2215), new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2216) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 4, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2218), new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2219) }); + + migrationBuilder.UpdateData( + table: "Notifications", + keyColumn: "Id", + keyValue: 1, + columns: new[] { "CreatedAt", "RelatedEntityId", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4791), null, new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4813) }); + + migrationBuilder.CreateIndex( + name: "IX_ChangeScheduleRequests_UserId", + table: "ChangeScheduleRequests", + column: "UserId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ChangeScheduleRequests"); + + migrationBuilder.DropColumn( + name: "RelatedEntityId", + table: "Notifications"); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 1, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 6, 8, 10, 7, 6, 798, DateTimeKind.Local).AddTicks(8855), new DateTime(2023, 6, 8, 10, 7, 6, 798, DateTimeKind.Local).AddTicks(8857) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 2, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(1605), new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(1609) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 3, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2264), new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2267) }); + + migrationBuilder.UpdateData( + table: "MultiProjects", + keyColumn: "Id", + keyValue: 4, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2273), new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2274) }); + + migrationBuilder.UpdateData( + table: "Notifications", + keyColumn: "Id", + keyValue: 1, + columns: new[] { "CreatedAt", "UpdatedAt" }, + values: new object[] { new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(4795), new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(4808) }); + } + } +} diff --git a/api/Migrations/HrisContextModelSnapshot.cs b/api/Migrations/HrisContextModelSnapshot.cs index 138ee731..d4a28de7 100644 --- a/api/Migrations/HrisContextModelSnapshot.cs +++ b/api/Migrations/HrisContextModelSnapshot.cs @@ -22,6 +22,40 @@ protected override void BuildModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + modelBuilder.Entity("api.Entities.ChangeScheduleRequest", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("Data") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsLeaderApproved") + .HasColumnType("bit"); + + b.Property("IsManagerApproved") + .HasColumnType("bit"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("ChangeScheduleRequests"); + }); + modelBuilder.Entity("api.Entities.ChangeShiftRequest", b => { b.Property("Id") @@ -1274,42 +1308,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 798, DateTimeKind.Local).AddTicks(8855), + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(579), LeaveId = 1, ProjectId = 1, ProjectLeaderId = 1, Type = "leave", - UpdatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 798, DateTimeKind.Local).AddTicks(8857) + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(581) }, new { Id = 2, - CreatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(1605), + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1965), OvertimeId = 2, ProjectId = 1, ProjectLeaderId = 1, Type = "overtime", - UpdatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(1609) + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(1967) }, new { Id = 3, - CreatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2264), + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2215), OvertimeId = 3, ProjectId = 1, ProjectLeaderId = 1, Type = "overtime", - UpdatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2267) + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2216) }, new { Id = 4, - CreatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2273), + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2218), OvertimeId = 1, ProjectId = 1, ProjectLeaderId = 1, Type = "overtime", - UpdatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(2274) + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(2219) }); }); @@ -1341,6 +1375,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("RecipientId") .HasColumnType("int"); + b.Property("RelatedEntityId") + .HasColumnType("int"); + b.Property("Type") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -3483,12 +3520,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) new { Id = 1, - CreatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(4795), + CreatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4791), Data = "Some JSON Data", IsRead = false, RecipientId = 70, Type = "leave", - UpdatedAt = new DateTime(2023, 6, 8, 10, 7, 6, 799, DateTimeKind.Local).AddTicks(4808), + UpdatedAt = new DateTime(2023, 7, 6, 13, 53, 47, 42, DateTimeKind.Local).AddTicks(4813), LeaveId = 1 }); }); @@ -3505,6 +3542,17 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasDiscriminator().HasValue("OvertimeNotification"); }); + modelBuilder.Entity("api.Entities.ChangeScheduleRequest", b => + { + b.HasOne("api.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + modelBuilder.Entity("api.Entities.ChangeShiftRequest", b => { b.HasOne("api.Entities.User", "Manager") diff --git a/api/NotificationDataClasses/ChangeScheduleData.cs b/api/NotificationDataClasses/ChangeScheduleData.cs new file mode 100644 index 00000000..0460ccf1 --- /dev/null +++ b/api/NotificationDataClasses/ChangeScheduleData.cs @@ -0,0 +1,9 @@ +using api.Requests; + +namespace api.NotificationDataClasses +{ + public class ChangeScheduleData : NotificationData + { + public List WorkingDays { get; set; } = default!; + } +} diff --git a/api/NotificationDataClasses/NotificationData.cs b/api/NotificationDataClasses/NotificationData.cs new file mode 100644 index 00000000..a6208a91 --- /dev/null +++ b/api/NotificationDataClasses/NotificationData.cs @@ -0,0 +1,10 @@ +namespace api.NotificationDataClasses +{ + public class NotificationData + { + public NotificationUser User { get; set; } = default!; + public string Type { get; set; } = default!; + public string Status { get; set; } = default!; + public string? Remarks { get; set; } = default!; + } +} diff --git a/api/Requests/ChangeSchedRequest.cs b/api/Requests/ChangeSchedRequest.cs new file mode 100644 index 00000000..f8757310 --- /dev/null +++ b/api/Requests/ChangeSchedRequest.cs @@ -0,0 +1,8 @@ +namespace api.Requests +{ + public class ChangeSchedRequest + { + public List LeaderIds { get; set; } = default!; + public List WorkingDays { get; set; } = default!; + } +} diff --git a/api/Schema/Mutations/EmployeeScheduleMutation.cs b/api/Schema/Mutations/EmployeeScheduleMutation.cs index 97ce8bb3..3c4d189d 100644 --- a/api/Schema/Mutations/EmployeeScheduleMutation.cs +++ b/api/Schema/Mutations/EmployeeScheduleMutation.cs @@ -1,4 +1,5 @@ using api.Context; +using api.Entities; using api.Middlewares.Attributes; using api.Requests; using api.Services; @@ -98,5 +99,31 @@ public async Task DeleteEmployeeSchedule([Service] IDbContextFactory ChangeScheduleRequest([Service] IDbContextFactory contextFactory, [Service] EmployeeScheduleService _employeeSchedueleService, [Service] NotificationService _notificationService, ChangeSchedRequest request) + { + using HrisContext context = contextFactory.CreateDbContext(); + try + { + using var transaction = context.Database.BeginTransaction(); + var scheduleRequest = await _employeeSchedueleService.ChangeSchedule(request, context); + + var notificationsList = await _notificationService.createChangeScheduleRequestNotification(request, scheduleRequest, context); + notificationsList.ForEach(notif => _notificationService.sendNotificationEvent(notif)); + + transaction.Commit(); + return scheduleRequest; + } + catch (GraphQLException) + { + throw; + } + catch (Exception e) + { + throw new GraphQLException(ErrorBuilder.New() + .SetMessage(e.Message) + .Build()); + } + } } } diff --git a/api/Services/EmployeeScheduleService.cs b/api/Services/EmployeeScheduleService.cs index 886f480c..5feab5e7 100644 --- a/api/Services/EmployeeScheduleService.cs +++ b/api/Services/EmployeeScheduleService.cs @@ -1,3 +1,4 @@ +using System.Text.Json; using api.Context; using api.DTOs; using api.Entities; @@ -11,14 +12,16 @@ namespace api.Services public class EmployeeScheduleService { private readonly IDbContextFactory _contextFactory = default!; - private readonly CustomInputValidation _customInputValidation; + private readonly EmployeeScheduleServiceInputValidation _customInputValidation; private readonly HttpContextService _httpService; + private readonly HttpContext? _httpContext; public EmployeeScheduleService(IDbContextFactory contextFactory, IHttpContextAccessor accessor) { _contextFactory = contextFactory; - _customInputValidation = new CustomInputValidation(_contextFactory); + _customInputValidation = new EmployeeScheduleServiceInputValidation(_contextFactory); _httpService = new HttpContextService(accessor); + _httpContext = accessor.HttpContext; } public async Task> GetAllEmployeeScheduleDetails() { @@ -156,6 +159,30 @@ public async Task UpdateMemberSchedule(UpdateMemberScheduleRequest reque return SuccessMessageEnum.EMPLOYEE_SCHEDULE_UPDATED; } + public async Task ChangeSchedule(ChangeSchedRequest request, HrisContext context) + { + // Validate input + var errors = _customInputValidation.checkChangeScheduleRequestInput(request).Result; + if (errors.Count > 0) + { + throw new GraphQLException(errors); + } + + var user = (User)_httpContext?.Items["User"]!; + var serializedData = JsonSerializer.Serialize(request.WorkingDays); + + ChangeScheduleRequest changeRequest = new ChangeScheduleRequest + { + UserId = user.Id, + Data = serializedData + }; + + await context.ChangeScheduleRequests.AddAsync(changeRequest); + await context.SaveChangesAsync(); + + return changeRequest; + } + private void UpdateMemberScheduleInputValidation(UpdateMemberScheduleRequest request, HrisContext context) { var errors = _customInputValidation.CheckUpdateMemberScheduleRequestInput(request, context); diff --git a/api/Services/NotificationService.cs b/api/Services/NotificationService.cs index 0e4953ad..a178e664 100644 --- a/api/Services/NotificationService.cs +++ b/api/Services/NotificationService.cs @@ -461,6 +461,55 @@ public async Task createESLOffsetRequestNotification(ESLO return newNotification; } + public async Task> createChangeScheduleRequestNotification(ChangeSchedRequest request, ChangeScheduleRequest changeSchedule, HrisContext context) + { + List notificationsList = new List(); + + var manager = await context.Users.Where(x => x.PositionId == PositionEnum.ASSISTANT_MANAGER).FirstAsync(); + var httpContext = _accessor.HttpContext!; + var user = (User)httpContext.Items["User"]!; + + + var data = JsonSerializer.Serialize(new ChangeScheduleData + { + User = new NotificationUser + { + Id = user!.Id, + Name = user.Name!, + AvatarLink = _userService.GenerateAvatarLink(user?.ProfileImageId ?? default) + }, + Type = NotificationDataTypeEnum.REQUEST, + Status = RequestStatus.PENDING, + WorkingDays = request.WorkingDays + } + ); + + var managerNotification = new Notification + { + RecipientId = manager.Id, + Type = NotificationTypeEnum.CHANGE_SCHEDULE, + Data = data, + }; + + foreach (var leaderId in request.LeaderIds) + { + var newNotification = new Notification + { + RecipientId = leaderId, + Type = NotificationTypeEnum.CHANGE_SCHEDULE, + Data = data, + RelatedEntityId = changeSchedule.Id + }; + notificationsList.Add(newNotification); + } + + notificationsList.Add(managerNotification); + + await context.Notifications.AddRangeAsync(notificationsList); + await context.SaveChangesAsync(); + return notificationsList; + } + public async Task> getByRecipientId(int id) { using (HrisContext context = _contextFactory.CreateDbContext()) @@ -675,6 +724,19 @@ public async void sendESLOffsetNotificationEvent(ESLOffsetNotification notif) throw; } } + + public async void sendNotificationEvent(Notification notif) + { + try + { + string topic = $"{notif.RecipientId}_{nameof(SubscriptionObjectType.NotificationCreated)}"; + await _eventSender.SendAsync(topic, notif); + } + catch (Exception) + { + throw; + } + } public async Task> IsReadAll(int id) { using HrisContext context = _contextFactory.CreateDbContext(); diff --git a/api/Subscriptions/SubscriptionObjectType.cs b/api/Subscriptions/SubscriptionObjectType.cs index c96a9f4a..9993c979 100644 --- a/api/Subscriptions/SubscriptionObjectType.cs +++ b/api/Subscriptions/SubscriptionObjectType.cs @@ -50,6 +50,11 @@ public ValueTask> OvertimeSummaryEventReceiver(int i var topic = $"{id}_{nameof(OvertimeSummaryCreated)}"; return eventReceiver.SubscribeAsync(topic); } + public ValueTask> EventReceiver(int id, [Service] ITopicEventReceiver eventReceiver) + { + var topic = $"{id}_{nameof(NotificationCreated)}"; + return eventReceiver.SubscribeAsync(topic); + } // Resolver [Subscribe(With = nameof(OvertimeSummaryEventReceiver))] @@ -87,5 +92,10 @@ public ESLOffsetNotification ESLOffsetCreated([EventMessage] ESLOffsetNotificati { return notification; } + [Subscribe(With = nameof(EventReceiver))] + public Notification NotificationCreated([EventMessage] Notification notification) + { + return notification; + } } } diff --git a/api/Utils/Validation.cs b/api/Utils/Validation.cs index b8562d9f..4ed0a96e 100644 --- a/api/Utils/Validation.cs +++ b/api/Utils/Validation.cs @@ -653,5 +653,40 @@ internal List CheckUpdateMemberScheduleRequestInput(UpdateMemberSchedule return errors; } + + public List checkListOfWorkingDays(List workingDays) + { + var errors = new List(); + + foreach (var workingDay in workingDays) + { + if (string.IsNullOrEmpty(workingDay.Day)) + { + errors.Add(buildError(nameof(workingDay.Day), InputValidationMessageEnum.INVALID_DAY)); + } + + if (string.IsNullOrEmpty(workingDay.From)) + { + errors.Add(buildError(nameof(workingDay.From), InputValidationMessageEnum.INVALID_START_TIME)); + } + + if (string.IsNullOrEmpty(workingDay.To)) + { + errors.Add(buildError(nameof(workingDay.To), InputValidationMessageEnum.INVALID_END_TIME)); + } + + if (string.IsNullOrEmpty(workingDay.BreakFrom)) + { + errors.Add(buildError(nameof(workingDay.BreakFrom), InputValidationMessageEnum.INVALID_END_TIME)); + } + + if (string.IsNullOrEmpty(workingDay.BreakTo)) + { + errors.Add(buildError(nameof(workingDay.BreakTo), InputValidationMessageEnum.INVALID_END_TIME)); + } + } + + return errors; + } } } diff --git a/api/Utils/Validation/EmployeeScheduleServiceValidation.cs b/api/Utils/Validation/EmployeeScheduleServiceValidation.cs new file mode 100644 index 00000000..512c39f3 --- /dev/null +++ b/api/Utils/Validation/EmployeeScheduleServiceValidation.cs @@ -0,0 +1,31 @@ +using api.Context; +using api.Enums; +using api.Requests; +using Microsoft.EntityFrameworkCore; + +namespace api.Utils +{ + public class EmployeeScheduleServiceInputValidation : CustomInputValidation + { + // constructor + public EmployeeScheduleServiceInputValidation(IDbContextFactory contextFactory) : base(contextFactory) + { + + } + + public async Task> checkChangeScheduleRequestInput(ChangeSchedRequest request) + { + var errors = new List(); + + foreach (var userId in request.LeaderIds) + { + var validLeader = await checkProjectLeaderUser(userId); + if (!validLeader) errors.Add(buildError(nameof(userId), InputValidationMessageEnum.INVALID_TEAM_LEADER)); + } + + errors.AddRange(checkListOfWorkingDays(request.WorkingDays)); + + return errors; + } + } +}